fast-path.generated.go 695 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307
  1. // //+build ignore
  2. // Copyright (c) 2012-2015 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // ************************************************************
  5. // DO NOT EDIT.
  6. // THIS FILE IS AUTO-GENERATED from fast-path.go.tmpl
  7. // ************************************************************
  8. package codec
  9. // Fast path functions try to create a fast path encode or decode implementation
  10. // for common maps and slices.
  11. //
  12. // We define the functions and register then in this single file
  13. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  14. // This file can be omitted without causing a build failure.
  15. //
  16. // The advantage of fast paths is:
  17. // - Many calls bypass reflection altogether
  18. //
  19. // Currently support
  20. // - slice of all builtin types,
  21. // - map of all builtin types to string or interface value
  22. // - symetrical maps of all builtin types (e.g. str-str, uint8-uint8)
  23. // This should provide adequate "typical" implementations.
  24. //
  25. // Note that fast track decode functions must handle values for which an address cannot be obtained.
  26. // For example:
  27. // m2 := map[string]int{}
  28. // p2 := []interface{}{m2}
  29. // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
  30. //
  31. import (
  32. "reflect"
  33. "sort"
  34. )
  35. const fastpathCheckNilFalse = false // for reflect
  36. const fastpathCheckNilTrue = true // for type switch
  37. type fastpathT struct{}
  38. var fastpathTV fastpathT
  39. type fastpathE struct {
  40. rtid uintptr
  41. rt reflect.Type
  42. encfn func(encFnInfo, reflect.Value)
  43. decfn func(decFnInfo, reflect.Value)
  44. }
  45. type fastpathA [239]fastpathE
  46. func (x *fastpathA) index(rtid uintptr) int {
  47. // use binary search to grab the index (adapted from sort/search.go)
  48. h, i, j := 0, 0, 239 // len(x)
  49. for i < j {
  50. h = i + (j-i)/2
  51. if x[h].rtid < rtid {
  52. i = h + 1
  53. } else {
  54. j = h
  55. }
  56. }
  57. if i < 239 && x[i].rtid == rtid {
  58. return i
  59. }
  60. return -1
  61. }
  62. type fastpathAslice []fastpathE
  63. func (x fastpathAslice) Len() int { return len(x) }
  64. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  65. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  66. var fastpathAV fastpathA
  67. // due to possible initialization loop error, make fastpath in an init()
  68. func init() {
  69. if !fastpathEnabled {
  70. return
  71. }
  72. i := 0
  73. fn := func(v interface{}, fe func(encFnInfo, reflect.Value), fd func(decFnInfo, reflect.Value)) (f fastpathE) {
  74. xrt := reflect.TypeOf(v)
  75. xptr := reflect.ValueOf(xrt).Pointer()
  76. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  77. i++
  78. return
  79. }
  80. fn([]interface{}(nil), (encFnInfo).fastpathEncSliceIntfR, (decFnInfo).fastpathDecSliceIntfR)
  81. fn([]string(nil), (encFnInfo).fastpathEncSliceStringR, (decFnInfo).fastpathDecSliceStringR)
  82. fn([]float32(nil), (encFnInfo).fastpathEncSliceFloat32R, (decFnInfo).fastpathDecSliceFloat32R)
  83. fn([]float64(nil), (encFnInfo).fastpathEncSliceFloat64R, (decFnInfo).fastpathDecSliceFloat64R)
  84. fn([]uint(nil), (encFnInfo).fastpathEncSliceUintR, (decFnInfo).fastpathDecSliceUintR)
  85. fn([]uint16(nil), (encFnInfo).fastpathEncSliceUint16R, (decFnInfo).fastpathDecSliceUint16R)
  86. fn([]uint32(nil), (encFnInfo).fastpathEncSliceUint32R, (decFnInfo).fastpathDecSliceUint32R)
  87. fn([]uint64(nil), (encFnInfo).fastpathEncSliceUint64R, (decFnInfo).fastpathDecSliceUint64R)
  88. fn([]int(nil), (encFnInfo).fastpathEncSliceIntR, (decFnInfo).fastpathDecSliceIntR)
  89. fn([]int8(nil), (encFnInfo).fastpathEncSliceInt8R, (decFnInfo).fastpathDecSliceInt8R)
  90. fn([]int16(nil), (encFnInfo).fastpathEncSliceInt16R, (decFnInfo).fastpathDecSliceInt16R)
  91. fn([]int32(nil), (encFnInfo).fastpathEncSliceInt32R, (decFnInfo).fastpathDecSliceInt32R)
  92. fn([]int64(nil), (encFnInfo).fastpathEncSliceInt64R, (decFnInfo).fastpathDecSliceInt64R)
  93. fn([]bool(nil), (encFnInfo).fastpathEncSliceBoolR, (decFnInfo).fastpathDecSliceBoolR)
  94. fn(map[interface{}]interface{}(nil), (encFnInfo).fastpathEncMapIntfIntfR, (decFnInfo).fastpathDecMapIntfIntfR)
  95. fn(map[interface{}]string(nil), (encFnInfo).fastpathEncMapIntfStringR, (decFnInfo).fastpathDecMapIntfStringR)
  96. fn(map[interface{}]uint(nil), (encFnInfo).fastpathEncMapIntfUintR, (decFnInfo).fastpathDecMapIntfUintR)
  97. fn(map[interface{}]uint8(nil), (encFnInfo).fastpathEncMapIntfUint8R, (decFnInfo).fastpathDecMapIntfUint8R)
  98. fn(map[interface{}]uint16(nil), (encFnInfo).fastpathEncMapIntfUint16R, (decFnInfo).fastpathDecMapIntfUint16R)
  99. fn(map[interface{}]uint32(nil), (encFnInfo).fastpathEncMapIntfUint32R, (decFnInfo).fastpathDecMapIntfUint32R)
  100. fn(map[interface{}]uint64(nil), (encFnInfo).fastpathEncMapIntfUint64R, (decFnInfo).fastpathDecMapIntfUint64R)
  101. fn(map[interface{}]int(nil), (encFnInfo).fastpathEncMapIntfIntR, (decFnInfo).fastpathDecMapIntfIntR)
  102. fn(map[interface{}]int8(nil), (encFnInfo).fastpathEncMapIntfInt8R, (decFnInfo).fastpathDecMapIntfInt8R)
  103. fn(map[interface{}]int16(nil), (encFnInfo).fastpathEncMapIntfInt16R, (decFnInfo).fastpathDecMapIntfInt16R)
  104. fn(map[interface{}]int32(nil), (encFnInfo).fastpathEncMapIntfInt32R, (decFnInfo).fastpathDecMapIntfInt32R)
  105. fn(map[interface{}]int64(nil), (encFnInfo).fastpathEncMapIntfInt64R, (decFnInfo).fastpathDecMapIntfInt64R)
  106. fn(map[interface{}]float32(nil), (encFnInfo).fastpathEncMapIntfFloat32R, (decFnInfo).fastpathDecMapIntfFloat32R)
  107. fn(map[interface{}]float64(nil), (encFnInfo).fastpathEncMapIntfFloat64R, (decFnInfo).fastpathDecMapIntfFloat64R)
  108. fn(map[interface{}]bool(nil), (encFnInfo).fastpathEncMapIntfBoolR, (decFnInfo).fastpathDecMapIntfBoolR)
  109. fn(map[string]interface{}(nil), (encFnInfo).fastpathEncMapStringIntfR, (decFnInfo).fastpathDecMapStringIntfR)
  110. fn(map[string]string(nil), (encFnInfo).fastpathEncMapStringStringR, (decFnInfo).fastpathDecMapStringStringR)
  111. fn(map[string]uint(nil), (encFnInfo).fastpathEncMapStringUintR, (decFnInfo).fastpathDecMapStringUintR)
  112. fn(map[string]uint8(nil), (encFnInfo).fastpathEncMapStringUint8R, (decFnInfo).fastpathDecMapStringUint8R)
  113. fn(map[string]uint16(nil), (encFnInfo).fastpathEncMapStringUint16R, (decFnInfo).fastpathDecMapStringUint16R)
  114. fn(map[string]uint32(nil), (encFnInfo).fastpathEncMapStringUint32R, (decFnInfo).fastpathDecMapStringUint32R)
  115. fn(map[string]uint64(nil), (encFnInfo).fastpathEncMapStringUint64R, (decFnInfo).fastpathDecMapStringUint64R)
  116. fn(map[string]int(nil), (encFnInfo).fastpathEncMapStringIntR, (decFnInfo).fastpathDecMapStringIntR)
  117. fn(map[string]int8(nil), (encFnInfo).fastpathEncMapStringInt8R, (decFnInfo).fastpathDecMapStringInt8R)
  118. fn(map[string]int16(nil), (encFnInfo).fastpathEncMapStringInt16R, (decFnInfo).fastpathDecMapStringInt16R)
  119. fn(map[string]int32(nil), (encFnInfo).fastpathEncMapStringInt32R, (decFnInfo).fastpathDecMapStringInt32R)
  120. fn(map[string]int64(nil), (encFnInfo).fastpathEncMapStringInt64R, (decFnInfo).fastpathDecMapStringInt64R)
  121. fn(map[string]float32(nil), (encFnInfo).fastpathEncMapStringFloat32R, (decFnInfo).fastpathDecMapStringFloat32R)
  122. fn(map[string]float64(nil), (encFnInfo).fastpathEncMapStringFloat64R, (decFnInfo).fastpathDecMapStringFloat64R)
  123. fn(map[string]bool(nil), (encFnInfo).fastpathEncMapStringBoolR, (decFnInfo).fastpathDecMapStringBoolR)
  124. fn(map[float32]interface{}(nil), (encFnInfo).fastpathEncMapFloat32IntfR, (decFnInfo).fastpathDecMapFloat32IntfR)
  125. fn(map[float32]string(nil), (encFnInfo).fastpathEncMapFloat32StringR, (decFnInfo).fastpathDecMapFloat32StringR)
  126. fn(map[float32]uint(nil), (encFnInfo).fastpathEncMapFloat32UintR, (decFnInfo).fastpathDecMapFloat32UintR)
  127. fn(map[float32]uint8(nil), (encFnInfo).fastpathEncMapFloat32Uint8R, (decFnInfo).fastpathDecMapFloat32Uint8R)
  128. fn(map[float32]uint16(nil), (encFnInfo).fastpathEncMapFloat32Uint16R, (decFnInfo).fastpathDecMapFloat32Uint16R)
  129. fn(map[float32]uint32(nil), (encFnInfo).fastpathEncMapFloat32Uint32R, (decFnInfo).fastpathDecMapFloat32Uint32R)
  130. fn(map[float32]uint64(nil), (encFnInfo).fastpathEncMapFloat32Uint64R, (decFnInfo).fastpathDecMapFloat32Uint64R)
  131. fn(map[float32]int(nil), (encFnInfo).fastpathEncMapFloat32IntR, (decFnInfo).fastpathDecMapFloat32IntR)
  132. fn(map[float32]int8(nil), (encFnInfo).fastpathEncMapFloat32Int8R, (decFnInfo).fastpathDecMapFloat32Int8R)
  133. fn(map[float32]int16(nil), (encFnInfo).fastpathEncMapFloat32Int16R, (decFnInfo).fastpathDecMapFloat32Int16R)
  134. fn(map[float32]int32(nil), (encFnInfo).fastpathEncMapFloat32Int32R, (decFnInfo).fastpathDecMapFloat32Int32R)
  135. fn(map[float32]int64(nil), (encFnInfo).fastpathEncMapFloat32Int64R, (decFnInfo).fastpathDecMapFloat32Int64R)
  136. fn(map[float32]float32(nil), (encFnInfo).fastpathEncMapFloat32Float32R, (decFnInfo).fastpathDecMapFloat32Float32R)
  137. fn(map[float32]float64(nil), (encFnInfo).fastpathEncMapFloat32Float64R, (decFnInfo).fastpathDecMapFloat32Float64R)
  138. fn(map[float32]bool(nil), (encFnInfo).fastpathEncMapFloat32BoolR, (decFnInfo).fastpathDecMapFloat32BoolR)
  139. fn(map[float64]interface{}(nil), (encFnInfo).fastpathEncMapFloat64IntfR, (decFnInfo).fastpathDecMapFloat64IntfR)
  140. fn(map[float64]string(nil), (encFnInfo).fastpathEncMapFloat64StringR, (decFnInfo).fastpathDecMapFloat64StringR)
  141. fn(map[float64]uint(nil), (encFnInfo).fastpathEncMapFloat64UintR, (decFnInfo).fastpathDecMapFloat64UintR)
  142. fn(map[float64]uint8(nil), (encFnInfo).fastpathEncMapFloat64Uint8R, (decFnInfo).fastpathDecMapFloat64Uint8R)
  143. fn(map[float64]uint16(nil), (encFnInfo).fastpathEncMapFloat64Uint16R, (decFnInfo).fastpathDecMapFloat64Uint16R)
  144. fn(map[float64]uint32(nil), (encFnInfo).fastpathEncMapFloat64Uint32R, (decFnInfo).fastpathDecMapFloat64Uint32R)
  145. fn(map[float64]uint64(nil), (encFnInfo).fastpathEncMapFloat64Uint64R, (decFnInfo).fastpathDecMapFloat64Uint64R)
  146. fn(map[float64]int(nil), (encFnInfo).fastpathEncMapFloat64IntR, (decFnInfo).fastpathDecMapFloat64IntR)
  147. fn(map[float64]int8(nil), (encFnInfo).fastpathEncMapFloat64Int8R, (decFnInfo).fastpathDecMapFloat64Int8R)
  148. fn(map[float64]int16(nil), (encFnInfo).fastpathEncMapFloat64Int16R, (decFnInfo).fastpathDecMapFloat64Int16R)
  149. fn(map[float64]int32(nil), (encFnInfo).fastpathEncMapFloat64Int32R, (decFnInfo).fastpathDecMapFloat64Int32R)
  150. fn(map[float64]int64(nil), (encFnInfo).fastpathEncMapFloat64Int64R, (decFnInfo).fastpathDecMapFloat64Int64R)
  151. fn(map[float64]float32(nil), (encFnInfo).fastpathEncMapFloat64Float32R, (decFnInfo).fastpathDecMapFloat64Float32R)
  152. fn(map[float64]float64(nil), (encFnInfo).fastpathEncMapFloat64Float64R, (decFnInfo).fastpathDecMapFloat64Float64R)
  153. fn(map[float64]bool(nil), (encFnInfo).fastpathEncMapFloat64BoolR, (decFnInfo).fastpathDecMapFloat64BoolR)
  154. fn(map[uint]interface{}(nil), (encFnInfo).fastpathEncMapUintIntfR, (decFnInfo).fastpathDecMapUintIntfR)
  155. fn(map[uint]string(nil), (encFnInfo).fastpathEncMapUintStringR, (decFnInfo).fastpathDecMapUintStringR)
  156. fn(map[uint]uint(nil), (encFnInfo).fastpathEncMapUintUintR, (decFnInfo).fastpathDecMapUintUintR)
  157. fn(map[uint]uint8(nil), (encFnInfo).fastpathEncMapUintUint8R, (decFnInfo).fastpathDecMapUintUint8R)
  158. fn(map[uint]uint16(nil), (encFnInfo).fastpathEncMapUintUint16R, (decFnInfo).fastpathDecMapUintUint16R)
  159. fn(map[uint]uint32(nil), (encFnInfo).fastpathEncMapUintUint32R, (decFnInfo).fastpathDecMapUintUint32R)
  160. fn(map[uint]uint64(nil), (encFnInfo).fastpathEncMapUintUint64R, (decFnInfo).fastpathDecMapUintUint64R)
  161. fn(map[uint]int(nil), (encFnInfo).fastpathEncMapUintIntR, (decFnInfo).fastpathDecMapUintIntR)
  162. fn(map[uint]int8(nil), (encFnInfo).fastpathEncMapUintInt8R, (decFnInfo).fastpathDecMapUintInt8R)
  163. fn(map[uint]int16(nil), (encFnInfo).fastpathEncMapUintInt16R, (decFnInfo).fastpathDecMapUintInt16R)
  164. fn(map[uint]int32(nil), (encFnInfo).fastpathEncMapUintInt32R, (decFnInfo).fastpathDecMapUintInt32R)
  165. fn(map[uint]int64(nil), (encFnInfo).fastpathEncMapUintInt64R, (decFnInfo).fastpathDecMapUintInt64R)
  166. fn(map[uint]float32(nil), (encFnInfo).fastpathEncMapUintFloat32R, (decFnInfo).fastpathDecMapUintFloat32R)
  167. fn(map[uint]float64(nil), (encFnInfo).fastpathEncMapUintFloat64R, (decFnInfo).fastpathDecMapUintFloat64R)
  168. fn(map[uint]bool(nil), (encFnInfo).fastpathEncMapUintBoolR, (decFnInfo).fastpathDecMapUintBoolR)
  169. fn(map[uint8]interface{}(nil), (encFnInfo).fastpathEncMapUint8IntfR, (decFnInfo).fastpathDecMapUint8IntfR)
  170. fn(map[uint8]string(nil), (encFnInfo).fastpathEncMapUint8StringR, (decFnInfo).fastpathDecMapUint8StringR)
  171. fn(map[uint8]uint(nil), (encFnInfo).fastpathEncMapUint8UintR, (decFnInfo).fastpathDecMapUint8UintR)
  172. fn(map[uint8]uint8(nil), (encFnInfo).fastpathEncMapUint8Uint8R, (decFnInfo).fastpathDecMapUint8Uint8R)
  173. fn(map[uint8]uint16(nil), (encFnInfo).fastpathEncMapUint8Uint16R, (decFnInfo).fastpathDecMapUint8Uint16R)
  174. fn(map[uint8]uint32(nil), (encFnInfo).fastpathEncMapUint8Uint32R, (decFnInfo).fastpathDecMapUint8Uint32R)
  175. fn(map[uint8]uint64(nil), (encFnInfo).fastpathEncMapUint8Uint64R, (decFnInfo).fastpathDecMapUint8Uint64R)
  176. fn(map[uint8]int(nil), (encFnInfo).fastpathEncMapUint8IntR, (decFnInfo).fastpathDecMapUint8IntR)
  177. fn(map[uint8]int8(nil), (encFnInfo).fastpathEncMapUint8Int8R, (decFnInfo).fastpathDecMapUint8Int8R)
  178. fn(map[uint8]int16(nil), (encFnInfo).fastpathEncMapUint8Int16R, (decFnInfo).fastpathDecMapUint8Int16R)
  179. fn(map[uint8]int32(nil), (encFnInfo).fastpathEncMapUint8Int32R, (decFnInfo).fastpathDecMapUint8Int32R)
  180. fn(map[uint8]int64(nil), (encFnInfo).fastpathEncMapUint8Int64R, (decFnInfo).fastpathDecMapUint8Int64R)
  181. fn(map[uint8]float32(nil), (encFnInfo).fastpathEncMapUint8Float32R, (decFnInfo).fastpathDecMapUint8Float32R)
  182. fn(map[uint8]float64(nil), (encFnInfo).fastpathEncMapUint8Float64R, (decFnInfo).fastpathDecMapUint8Float64R)
  183. fn(map[uint8]bool(nil), (encFnInfo).fastpathEncMapUint8BoolR, (decFnInfo).fastpathDecMapUint8BoolR)
  184. fn(map[uint16]interface{}(nil), (encFnInfo).fastpathEncMapUint16IntfR, (decFnInfo).fastpathDecMapUint16IntfR)
  185. fn(map[uint16]string(nil), (encFnInfo).fastpathEncMapUint16StringR, (decFnInfo).fastpathDecMapUint16StringR)
  186. fn(map[uint16]uint(nil), (encFnInfo).fastpathEncMapUint16UintR, (decFnInfo).fastpathDecMapUint16UintR)
  187. fn(map[uint16]uint8(nil), (encFnInfo).fastpathEncMapUint16Uint8R, (decFnInfo).fastpathDecMapUint16Uint8R)
  188. fn(map[uint16]uint16(nil), (encFnInfo).fastpathEncMapUint16Uint16R, (decFnInfo).fastpathDecMapUint16Uint16R)
  189. fn(map[uint16]uint32(nil), (encFnInfo).fastpathEncMapUint16Uint32R, (decFnInfo).fastpathDecMapUint16Uint32R)
  190. fn(map[uint16]uint64(nil), (encFnInfo).fastpathEncMapUint16Uint64R, (decFnInfo).fastpathDecMapUint16Uint64R)
  191. fn(map[uint16]int(nil), (encFnInfo).fastpathEncMapUint16IntR, (decFnInfo).fastpathDecMapUint16IntR)
  192. fn(map[uint16]int8(nil), (encFnInfo).fastpathEncMapUint16Int8R, (decFnInfo).fastpathDecMapUint16Int8R)
  193. fn(map[uint16]int16(nil), (encFnInfo).fastpathEncMapUint16Int16R, (decFnInfo).fastpathDecMapUint16Int16R)
  194. fn(map[uint16]int32(nil), (encFnInfo).fastpathEncMapUint16Int32R, (decFnInfo).fastpathDecMapUint16Int32R)
  195. fn(map[uint16]int64(nil), (encFnInfo).fastpathEncMapUint16Int64R, (decFnInfo).fastpathDecMapUint16Int64R)
  196. fn(map[uint16]float32(nil), (encFnInfo).fastpathEncMapUint16Float32R, (decFnInfo).fastpathDecMapUint16Float32R)
  197. fn(map[uint16]float64(nil), (encFnInfo).fastpathEncMapUint16Float64R, (decFnInfo).fastpathDecMapUint16Float64R)
  198. fn(map[uint16]bool(nil), (encFnInfo).fastpathEncMapUint16BoolR, (decFnInfo).fastpathDecMapUint16BoolR)
  199. fn(map[uint32]interface{}(nil), (encFnInfo).fastpathEncMapUint32IntfR, (decFnInfo).fastpathDecMapUint32IntfR)
  200. fn(map[uint32]string(nil), (encFnInfo).fastpathEncMapUint32StringR, (decFnInfo).fastpathDecMapUint32StringR)
  201. fn(map[uint32]uint(nil), (encFnInfo).fastpathEncMapUint32UintR, (decFnInfo).fastpathDecMapUint32UintR)
  202. fn(map[uint32]uint8(nil), (encFnInfo).fastpathEncMapUint32Uint8R, (decFnInfo).fastpathDecMapUint32Uint8R)
  203. fn(map[uint32]uint16(nil), (encFnInfo).fastpathEncMapUint32Uint16R, (decFnInfo).fastpathDecMapUint32Uint16R)
  204. fn(map[uint32]uint32(nil), (encFnInfo).fastpathEncMapUint32Uint32R, (decFnInfo).fastpathDecMapUint32Uint32R)
  205. fn(map[uint32]uint64(nil), (encFnInfo).fastpathEncMapUint32Uint64R, (decFnInfo).fastpathDecMapUint32Uint64R)
  206. fn(map[uint32]int(nil), (encFnInfo).fastpathEncMapUint32IntR, (decFnInfo).fastpathDecMapUint32IntR)
  207. fn(map[uint32]int8(nil), (encFnInfo).fastpathEncMapUint32Int8R, (decFnInfo).fastpathDecMapUint32Int8R)
  208. fn(map[uint32]int16(nil), (encFnInfo).fastpathEncMapUint32Int16R, (decFnInfo).fastpathDecMapUint32Int16R)
  209. fn(map[uint32]int32(nil), (encFnInfo).fastpathEncMapUint32Int32R, (decFnInfo).fastpathDecMapUint32Int32R)
  210. fn(map[uint32]int64(nil), (encFnInfo).fastpathEncMapUint32Int64R, (decFnInfo).fastpathDecMapUint32Int64R)
  211. fn(map[uint32]float32(nil), (encFnInfo).fastpathEncMapUint32Float32R, (decFnInfo).fastpathDecMapUint32Float32R)
  212. fn(map[uint32]float64(nil), (encFnInfo).fastpathEncMapUint32Float64R, (decFnInfo).fastpathDecMapUint32Float64R)
  213. fn(map[uint32]bool(nil), (encFnInfo).fastpathEncMapUint32BoolR, (decFnInfo).fastpathDecMapUint32BoolR)
  214. fn(map[uint64]interface{}(nil), (encFnInfo).fastpathEncMapUint64IntfR, (decFnInfo).fastpathDecMapUint64IntfR)
  215. fn(map[uint64]string(nil), (encFnInfo).fastpathEncMapUint64StringR, (decFnInfo).fastpathDecMapUint64StringR)
  216. fn(map[uint64]uint(nil), (encFnInfo).fastpathEncMapUint64UintR, (decFnInfo).fastpathDecMapUint64UintR)
  217. fn(map[uint64]uint8(nil), (encFnInfo).fastpathEncMapUint64Uint8R, (decFnInfo).fastpathDecMapUint64Uint8R)
  218. fn(map[uint64]uint16(nil), (encFnInfo).fastpathEncMapUint64Uint16R, (decFnInfo).fastpathDecMapUint64Uint16R)
  219. fn(map[uint64]uint32(nil), (encFnInfo).fastpathEncMapUint64Uint32R, (decFnInfo).fastpathDecMapUint64Uint32R)
  220. fn(map[uint64]uint64(nil), (encFnInfo).fastpathEncMapUint64Uint64R, (decFnInfo).fastpathDecMapUint64Uint64R)
  221. fn(map[uint64]int(nil), (encFnInfo).fastpathEncMapUint64IntR, (decFnInfo).fastpathDecMapUint64IntR)
  222. fn(map[uint64]int8(nil), (encFnInfo).fastpathEncMapUint64Int8R, (decFnInfo).fastpathDecMapUint64Int8R)
  223. fn(map[uint64]int16(nil), (encFnInfo).fastpathEncMapUint64Int16R, (decFnInfo).fastpathDecMapUint64Int16R)
  224. fn(map[uint64]int32(nil), (encFnInfo).fastpathEncMapUint64Int32R, (decFnInfo).fastpathDecMapUint64Int32R)
  225. fn(map[uint64]int64(nil), (encFnInfo).fastpathEncMapUint64Int64R, (decFnInfo).fastpathDecMapUint64Int64R)
  226. fn(map[uint64]float32(nil), (encFnInfo).fastpathEncMapUint64Float32R, (decFnInfo).fastpathDecMapUint64Float32R)
  227. fn(map[uint64]float64(nil), (encFnInfo).fastpathEncMapUint64Float64R, (decFnInfo).fastpathDecMapUint64Float64R)
  228. fn(map[uint64]bool(nil), (encFnInfo).fastpathEncMapUint64BoolR, (decFnInfo).fastpathDecMapUint64BoolR)
  229. fn(map[int]interface{}(nil), (encFnInfo).fastpathEncMapIntIntfR, (decFnInfo).fastpathDecMapIntIntfR)
  230. fn(map[int]string(nil), (encFnInfo).fastpathEncMapIntStringR, (decFnInfo).fastpathDecMapIntStringR)
  231. fn(map[int]uint(nil), (encFnInfo).fastpathEncMapIntUintR, (decFnInfo).fastpathDecMapIntUintR)
  232. fn(map[int]uint8(nil), (encFnInfo).fastpathEncMapIntUint8R, (decFnInfo).fastpathDecMapIntUint8R)
  233. fn(map[int]uint16(nil), (encFnInfo).fastpathEncMapIntUint16R, (decFnInfo).fastpathDecMapIntUint16R)
  234. fn(map[int]uint32(nil), (encFnInfo).fastpathEncMapIntUint32R, (decFnInfo).fastpathDecMapIntUint32R)
  235. fn(map[int]uint64(nil), (encFnInfo).fastpathEncMapIntUint64R, (decFnInfo).fastpathDecMapIntUint64R)
  236. fn(map[int]int(nil), (encFnInfo).fastpathEncMapIntIntR, (decFnInfo).fastpathDecMapIntIntR)
  237. fn(map[int]int8(nil), (encFnInfo).fastpathEncMapIntInt8R, (decFnInfo).fastpathDecMapIntInt8R)
  238. fn(map[int]int16(nil), (encFnInfo).fastpathEncMapIntInt16R, (decFnInfo).fastpathDecMapIntInt16R)
  239. fn(map[int]int32(nil), (encFnInfo).fastpathEncMapIntInt32R, (decFnInfo).fastpathDecMapIntInt32R)
  240. fn(map[int]int64(nil), (encFnInfo).fastpathEncMapIntInt64R, (decFnInfo).fastpathDecMapIntInt64R)
  241. fn(map[int]float32(nil), (encFnInfo).fastpathEncMapIntFloat32R, (decFnInfo).fastpathDecMapIntFloat32R)
  242. fn(map[int]float64(nil), (encFnInfo).fastpathEncMapIntFloat64R, (decFnInfo).fastpathDecMapIntFloat64R)
  243. fn(map[int]bool(nil), (encFnInfo).fastpathEncMapIntBoolR, (decFnInfo).fastpathDecMapIntBoolR)
  244. fn(map[int8]interface{}(nil), (encFnInfo).fastpathEncMapInt8IntfR, (decFnInfo).fastpathDecMapInt8IntfR)
  245. fn(map[int8]string(nil), (encFnInfo).fastpathEncMapInt8StringR, (decFnInfo).fastpathDecMapInt8StringR)
  246. fn(map[int8]uint(nil), (encFnInfo).fastpathEncMapInt8UintR, (decFnInfo).fastpathDecMapInt8UintR)
  247. fn(map[int8]uint8(nil), (encFnInfo).fastpathEncMapInt8Uint8R, (decFnInfo).fastpathDecMapInt8Uint8R)
  248. fn(map[int8]uint16(nil), (encFnInfo).fastpathEncMapInt8Uint16R, (decFnInfo).fastpathDecMapInt8Uint16R)
  249. fn(map[int8]uint32(nil), (encFnInfo).fastpathEncMapInt8Uint32R, (decFnInfo).fastpathDecMapInt8Uint32R)
  250. fn(map[int8]uint64(nil), (encFnInfo).fastpathEncMapInt8Uint64R, (decFnInfo).fastpathDecMapInt8Uint64R)
  251. fn(map[int8]int(nil), (encFnInfo).fastpathEncMapInt8IntR, (decFnInfo).fastpathDecMapInt8IntR)
  252. fn(map[int8]int8(nil), (encFnInfo).fastpathEncMapInt8Int8R, (decFnInfo).fastpathDecMapInt8Int8R)
  253. fn(map[int8]int16(nil), (encFnInfo).fastpathEncMapInt8Int16R, (decFnInfo).fastpathDecMapInt8Int16R)
  254. fn(map[int8]int32(nil), (encFnInfo).fastpathEncMapInt8Int32R, (decFnInfo).fastpathDecMapInt8Int32R)
  255. fn(map[int8]int64(nil), (encFnInfo).fastpathEncMapInt8Int64R, (decFnInfo).fastpathDecMapInt8Int64R)
  256. fn(map[int8]float32(nil), (encFnInfo).fastpathEncMapInt8Float32R, (decFnInfo).fastpathDecMapInt8Float32R)
  257. fn(map[int8]float64(nil), (encFnInfo).fastpathEncMapInt8Float64R, (decFnInfo).fastpathDecMapInt8Float64R)
  258. fn(map[int8]bool(nil), (encFnInfo).fastpathEncMapInt8BoolR, (decFnInfo).fastpathDecMapInt8BoolR)
  259. fn(map[int16]interface{}(nil), (encFnInfo).fastpathEncMapInt16IntfR, (decFnInfo).fastpathDecMapInt16IntfR)
  260. fn(map[int16]string(nil), (encFnInfo).fastpathEncMapInt16StringR, (decFnInfo).fastpathDecMapInt16StringR)
  261. fn(map[int16]uint(nil), (encFnInfo).fastpathEncMapInt16UintR, (decFnInfo).fastpathDecMapInt16UintR)
  262. fn(map[int16]uint8(nil), (encFnInfo).fastpathEncMapInt16Uint8R, (decFnInfo).fastpathDecMapInt16Uint8R)
  263. fn(map[int16]uint16(nil), (encFnInfo).fastpathEncMapInt16Uint16R, (decFnInfo).fastpathDecMapInt16Uint16R)
  264. fn(map[int16]uint32(nil), (encFnInfo).fastpathEncMapInt16Uint32R, (decFnInfo).fastpathDecMapInt16Uint32R)
  265. fn(map[int16]uint64(nil), (encFnInfo).fastpathEncMapInt16Uint64R, (decFnInfo).fastpathDecMapInt16Uint64R)
  266. fn(map[int16]int(nil), (encFnInfo).fastpathEncMapInt16IntR, (decFnInfo).fastpathDecMapInt16IntR)
  267. fn(map[int16]int8(nil), (encFnInfo).fastpathEncMapInt16Int8R, (decFnInfo).fastpathDecMapInt16Int8R)
  268. fn(map[int16]int16(nil), (encFnInfo).fastpathEncMapInt16Int16R, (decFnInfo).fastpathDecMapInt16Int16R)
  269. fn(map[int16]int32(nil), (encFnInfo).fastpathEncMapInt16Int32R, (decFnInfo).fastpathDecMapInt16Int32R)
  270. fn(map[int16]int64(nil), (encFnInfo).fastpathEncMapInt16Int64R, (decFnInfo).fastpathDecMapInt16Int64R)
  271. fn(map[int16]float32(nil), (encFnInfo).fastpathEncMapInt16Float32R, (decFnInfo).fastpathDecMapInt16Float32R)
  272. fn(map[int16]float64(nil), (encFnInfo).fastpathEncMapInt16Float64R, (decFnInfo).fastpathDecMapInt16Float64R)
  273. fn(map[int16]bool(nil), (encFnInfo).fastpathEncMapInt16BoolR, (decFnInfo).fastpathDecMapInt16BoolR)
  274. fn(map[int32]interface{}(nil), (encFnInfo).fastpathEncMapInt32IntfR, (decFnInfo).fastpathDecMapInt32IntfR)
  275. fn(map[int32]string(nil), (encFnInfo).fastpathEncMapInt32StringR, (decFnInfo).fastpathDecMapInt32StringR)
  276. fn(map[int32]uint(nil), (encFnInfo).fastpathEncMapInt32UintR, (decFnInfo).fastpathDecMapInt32UintR)
  277. fn(map[int32]uint8(nil), (encFnInfo).fastpathEncMapInt32Uint8R, (decFnInfo).fastpathDecMapInt32Uint8R)
  278. fn(map[int32]uint16(nil), (encFnInfo).fastpathEncMapInt32Uint16R, (decFnInfo).fastpathDecMapInt32Uint16R)
  279. fn(map[int32]uint32(nil), (encFnInfo).fastpathEncMapInt32Uint32R, (decFnInfo).fastpathDecMapInt32Uint32R)
  280. fn(map[int32]uint64(nil), (encFnInfo).fastpathEncMapInt32Uint64R, (decFnInfo).fastpathDecMapInt32Uint64R)
  281. fn(map[int32]int(nil), (encFnInfo).fastpathEncMapInt32IntR, (decFnInfo).fastpathDecMapInt32IntR)
  282. fn(map[int32]int8(nil), (encFnInfo).fastpathEncMapInt32Int8R, (decFnInfo).fastpathDecMapInt32Int8R)
  283. fn(map[int32]int16(nil), (encFnInfo).fastpathEncMapInt32Int16R, (decFnInfo).fastpathDecMapInt32Int16R)
  284. fn(map[int32]int32(nil), (encFnInfo).fastpathEncMapInt32Int32R, (decFnInfo).fastpathDecMapInt32Int32R)
  285. fn(map[int32]int64(nil), (encFnInfo).fastpathEncMapInt32Int64R, (decFnInfo).fastpathDecMapInt32Int64R)
  286. fn(map[int32]float32(nil), (encFnInfo).fastpathEncMapInt32Float32R, (decFnInfo).fastpathDecMapInt32Float32R)
  287. fn(map[int32]float64(nil), (encFnInfo).fastpathEncMapInt32Float64R, (decFnInfo).fastpathDecMapInt32Float64R)
  288. fn(map[int32]bool(nil), (encFnInfo).fastpathEncMapInt32BoolR, (decFnInfo).fastpathDecMapInt32BoolR)
  289. fn(map[int64]interface{}(nil), (encFnInfo).fastpathEncMapInt64IntfR, (decFnInfo).fastpathDecMapInt64IntfR)
  290. fn(map[int64]string(nil), (encFnInfo).fastpathEncMapInt64StringR, (decFnInfo).fastpathDecMapInt64StringR)
  291. fn(map[int64]uint(nil), (encFnInfo).fastpathEncMapInt64UintR, (decFnInfo).fastpathDecMapInt64UintR)
  292. fn(map[int64]uint8(nil), (encFnInfo).fastpathEncMapInt64Uint8R, (decFnInfo).fastpathDecMapInt64Uint8R)
  293. fn(map[int64]uint16(nil), (encFnInfo).fastpathEncMapInt64Uint16R, (decFnInfo).fastpathDecMapInt64Uint16R)
  294. fn(map[int64]uint32(nil), (encFnInfo).fastpathEncMapInt64Uint32R, (decFnInfo).fastpathDecMapInt64Uint32R)
  295. fn(map[int64]uint64(nil), (encFnInfo).fastpathEncMapInt64Uint64R, (decFnInfo).fastpathDecMapInt64Uint64R)
  296. fn(map[int64]int(nil), (encFnInfo).fastpathEncMapInt64IntR, (decFnInfo).fastpathDecMapInt64IntR)
  297. fn(map[int64]int8(nil), (encFnInfo).fastpathEncMapInt64Int8R, (decFnInfo).fastpathDecMapInt64Int8R)
  298. fn(map[int64]int16(nil), (encFnInfo).fastpathEncMapInt64Int16R, (decFnInfo).fastpathDecMapInt64Int16R)
  299. fn(map[int64]int32(nil), (encFnInfo).fastpathEncMapInt64Int32R, (decFnInfo).fastpathDecMapInt64Int32R)
  300. fn(map[int64]int64(nil), (encFnInfo).fastpathEncMapInt64Int64R, (decFnInfo).fastpathDecMapInt64Int64R)
  301. fn(map[int64]float32(nil), (encFnInfo).fastpathEncMapInt64Float32R, (decFnInfo).fastpathDecMapInt64Float32R)
  302. fn(map[int64]float64(nil), (encFnInfo).fastpathEncMapInt64Float64R, (decFnInfo).fastpathDecMapInt64Float64R)
  303. fn(map[int64]bool(nil), (encFnInfo).fastpathEncMapInt64BoolR, (decFnInfo).fastpathDecMapInt64BoolR)
  304. fn(map[bool]interface{}(nil), (encFnInfo).fastpathEncMapBoolIntfR, (decFnInfo).fastpathDecMapBoolIntfR)
  305. fn(map[bool]string(nil), (encFnInfo).fastpathEncMapBoolStringR, (decFnInfo).fastpathDecMapBoolStringR)
  306. fn(map[bool]uint(nil), (encFnInfo).fastpathEncMapBoolUintR, (decFnInfo).fastpathDecMapBoolUintR)
  307. fn(map[bool]uint8(nil), (encFnInfo).fastpathEncMapBoolUint8R, (decFnInfo).fastpathDecMapBoolUint8R)
  308. fn(map[bool]uint16(nil), (encFnInfo).fastpathEncMapBoolUint16R, (decFnInfo).fastpathDecMapBoolUint16R)
  309. fn(map[bool]uint32(nil), (encFnInfo).fastpathEncMapBoolUint32R, (decFnInfo).fastpathDecMapBoolUint32R)
  310. fn(map[bool]uint64(nil), (encFnInfo).fastpathEncMapBoolUint64R, (decFnInfo).fastpathDecMapBoolUint64R)
  311. fn(map[bool]int(nil), (encFnInfo).fastpathEncMapBoolIntR, (decFnInfo).fastpathDecMapBoolIntR)
  312. fn(map[bool]int8(nil), (encFnInfo).fastpathEncMapBoolInt8R, (decFnInfo).fastpathDecMapBoolInt8R)
  313. fn(map[bool]int16(nil), (encFnInfo).fastpathEncMapBoolInt16R, (decFnInfo).fastpathDecMapBoolInt16R)
  314. fn(map[bool]int32(nil), (encFnInfo).fastpathEncMapBoolInt32R, (decFnInfo).fastpathDecMapBoolInt32R)
  315. fn(map[bool]int64(nil), (encFnInfo).fastpathEncMapBoolInt64R, (decFnInfo).fastpathDecMapBoolInt64R)
  316. fn(map[bool]float32(nil), (encFnInfo).fastpathEncMapBoolFloat32R, (decFnInfo).fastpathDecMapBoolFloat32R)
  317. fn(map[bool]float64(nil), (encFnInfo).fastpathEncMapBoolFloat64R, (decFnInfo).fastpathDecMapBoolFloat64R)
  318. fn(map[bool]bool(nil), (encFnInfo).fastpathEncMapBoolBoolR, (decFnInfo).fastpathDecMapBoolBoolR)
  319. sort.Sort(fastpathAslice(fastpathAV[:]))
  320. }
  321. // -- encode
  322. // -- -- fast path type switch
  323. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  324. switch v := iv.(type) {
  325. case []interface{}:
  326. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  327. case *[]interface{}:
  328. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  329. case map[interface{}]interface{}:
  330. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  331. case *map[interface{}]interface{}:
  332. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  333. case map[interface{}]string:
  334. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  335. case *map[interface{}]string:
  336. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  337. case map[interface{}]uint:
  338. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  339. case *map[interface{}]uint:
  340. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  341. case map[interface{}]uint8:
  342. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  343. case *map[interface{}]uint8:
  344. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  345. case map[interface{}]uint16:
  346. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  347. case *map[interface{}]uint16:
  348. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  349. case map[interface{}]uint32:
  350. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  351. case *map[interface{}]uint32:
  352. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  353. case map[interface{}]uint64:
  354. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  355. case *map[interface{}]uint64:
  356. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  357. case map[interface{}]int:
  358. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  359. case *map[interface{}]int:
  360. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  361. case map[interface{}]int8:
  362. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  363. case *map[interface{}]int8:
  364. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  365. case map[interface{}]int16:
  366. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  367. case *map[interface{}]int16:
  368. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  369. case map[interface{}]int32:
  370. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  371. case *map[interface{}]int32:
  372. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  373. case map[interface{}]int64:
  374. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  375. case *map[interface{}]int64:
  376. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  377. case map[interface{}]float32:
  378. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  379. case *map[interface{}]float32:
  380. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  381. case map[interface{}]float64:
  382. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  383. case *map[interface{}]float64:
  384. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  385. case map[interface{}]bool:
  386. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  387. case *map[interface{}]bool:
  388. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  389. case []string:
  390. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  391. case *[]string:
  392. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  393. case map[string]interface{}:
  394. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  395. case *map[string]interface{}:
  396. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  397. case map[string]string:
  398. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  399. case *map[string]string:
  400. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  401. case map[string]uint:
  402. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  403. case *map[string]uint:
  404. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  405. case map[string]uint8:
  406. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  407. case *map[string]uint8:
  408. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  409. case map[string]uint16:
  410. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  411. case *map[string]uint16:
  412. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  413. case map[string]uint32:
  414. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  415. case *map[string]uint32:
  416. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  417. case map[string]uint64:
  418. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  419. case *map[string]uint64:
  420. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  421. case map[string]int:
  422. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  423. case *map[string]int:
  424. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  425. case map[string]int8:
  426. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  427. case *map[string]int8:
  428. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  429. case map[string]int16:
  430. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  431. case *map[string]int16:
  432. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  433. case map[string]int32:
  434. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  435. case *map[string]int32:
  436. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  437. case map[string]int64:
  438. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  439. case *map[string]int64:
  440. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  441. case map[string]float32:
  442. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  443. case *map[string]float32:
  444. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  445. case map[string]float64:
  446. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  447. case *map[string]float64:
  448. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  449. case map[string]bool:
  450. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  451. case *map[string]bool:
  452. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  453. case []float32:
  454. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  455. case *[]float32:
  456. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  457. case map[float32]interface{}:
  458. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  459. case *map[float32]interface{}:
  460. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  461. case map[float32]string:
  462. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  463. case *map[float32]string:
  464. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  465. case map[float32]uint:
  466. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  467. case *map[float32]uint:
  468. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  469. case map[float32]uint8:
  470. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  471. case *map[float32]uint8:
  472. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  473. case map[float32]uint16:
  474. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  475. case *map[float32]uint16:
  476. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  477. case map[float32]uint32:
  478. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  479. case *map[float32]uint32:
  480. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  481. case map[float32]uint64:
  482. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  483. case *map[float32]uint64:
  484. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  485. case map[float32]int:
  486. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  487. case *map[float32]int:
  488. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  489. case map[float32]int8:
  490. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  491. case *map[float32]int8:
  492. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  493. case map[float32]int16:
  494. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  495. case *map[float32]int16:
  496. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  497. case map[float32]int32:
  498. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  499. case *map[float32]int32:
  500. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  501. case map[float32]int64:
  502. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  503. case *map[float32]int64:
  504. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  505. case map[float32]float32:
  506. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  507. case *map[float32]float32:
  508. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  509. case map[float32]float64:
  510. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  511. case *map[float32]float64:
  512. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  513. case map[float32]bool:
  514. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  515. case *map[float32]bool:
  516. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  517. case []float64:
  518. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  519. case *[]float64:
  520. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  521. case map[float64]interface{}:
  522. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  523. case *map[float64]interface{}:
  524. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  525. case map[float64]string:
  526. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  527. case *map[float64]string:
  528. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  529. case map[float64]uint:
  530. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  531. case *map[float64]uint:
  532. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  533. case map[float64]uint8:
  534. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  535. case *map[float64]uint8:
  536. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  537. case map[float64]uint16:
  538. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  539. case *map[float64]uint16:
  540. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  541. case map[float64]uint32:
  542. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  543. case *map[float64]uint32:
  544. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  545. case map[float64]uint64:
  546. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  547. case *map[float64]uint64:
  548. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  549. case map[float64]int:
  550. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  551. case *map[float64]int:
  552. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  553. case map[float64]int8:
  554. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  555. case *map[float64]int8:
  556. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  557. case map[float64]int16:
  558. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  559. case *map[float64]int16:
  560. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  561. case map[float64]int32:
  562. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  563. case *map[float64]int32:
  564. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  565. case map[float64]int64:
  566. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  567. case *map[float64]int64:
  568. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  569. case map[float64]float32:
  570. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  571. case *map[float64]float32:
  572. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  573. case map[float64]float64:
  574. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  575. case *map[float64]float64:
  576. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  577. case map[float64]bool:
  578. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  579. case *map[float64]bool:
  580. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  581. case []uint:
  582. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  583. case *[]uint:
  584. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  585. case map[uint]interface{}:
  586. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  587. case *map[uint]interface{}:
  588. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  589. case map[uint]string:
  590. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  591. case *map[uint]string:
  592. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  593. case map[uint]uint:
  594. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  595. case *map[uint]uint:
  596. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  597. case map[uint]uint8:
  598. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  599. case *map[uint]uint8:
  600. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  601. case map[uint]uint16:
  602. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  603. case *map[uint]uint16:
  604. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  605. case map[uint]uint32:
  606. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  607. case *map[uint]uint32:
  608. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  609. case map[uint]uint64:
  610. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  611. case *map[uint]uint64:
  612. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  613. case map[uint]int:
  614. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  615. case *map[uint]int:
  616. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  617. case map[uint]int8:
  618. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  619. case *map[uint]int8:
  620. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  621. case map[uint]int16:
  622. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  623. case *map[uint]int16:
  624. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  625. case map[uint]int32:
  626. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  627. case *map[uint]int32:
  628. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  629. case map[uint]int64:
  630. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  631. case *map[uint]int64:
  632. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  633. case map[uint]float32:
  634. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  635. case *map[uint]float32:
  636. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  637. case map[uint]float64:
  638. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  639. case *map[uint]float64:
  640. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  641. case map[uint]bool:
  642. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  643. case *map[uint]bool:
  644. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  645. case map[uint8]interface{}:
  646. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  647. case *map[uint8]interface{}:
  648. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  649. case map[uint8]string:
  650. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  651. case *map[uint8]string:
  652. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  653. case map[uint8]uint:
  654. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  655. case *map[uint8]uint:
  656. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  657. case map[uint8]uint8:
  658. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  659. case *map[uint8]uint8:
  660. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  661. case map[uint8]uint16:
  662. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  663. case *map[uint8]uint16:
  664. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  665. case map[uint8]uint32:
  666. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  667. case *map[uint8]uint32:
  668. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  669. case map[uint8]uint64:
  670. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  671. case *map[uint8]uint64:
  672. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  673. case map[uint8]int:
  674. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  675. case *map[uint8]int:
  676. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  677. case map[uint8]int8:
  678. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  679. case *map[uint8]int8:
  680. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  681. case map[uint8]int16:
  682. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  683. case *map[uint8]int16:
  684. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  685. case map[uint8]int32:
  686. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  687. case *map[uint8]int32:
  688. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  689. case map[uint8]int64:
  690. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  691. case *map[uint8]int64:
  692. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  693. case map[uint8]float32:
  694. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  695. case *map[uint8]float32:
  696. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  697. case map[uint8]float64:
  698. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  699. case *map[uint8]float64:
  700. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  701. case map[uint8]bool:
  702. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  703. case *map[uint8]bool:
  704. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  705. case []uint16:
  706. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  707. case *[]uint16:
  708. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  709. case map[uint16]interface{}:
  710. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  711. case *map[uint16]interface{}:
  712. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  713. case map[uint16]string:
  714. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  715. case *map[uint16]string:
  716. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  717. case map[uint16]uint:
  718. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  719. case *map[uint16]uint:
  720. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  721. case map[uint16]uint8:
  722. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  723. case *map[uint16]uint8:
  724. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  725. case map[uint16]uint16:
  726. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  727. case *map[uint16]uint16:
  728. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  729. case map[uint16]uint32:
  730. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  731. case *map[uint16]uint32:
  732. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  733. case map[uint16]uint64:
  734. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  735. case *map[uint16]uint64:
  736. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  737. case map[uint16]int:
  738. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  739. case *map[uint16]int:
  740. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  741. case map[uint16]int8:
  742. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  743. case *map[uint16]int8:
  744. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  745. case map[uint16]int16:
  746. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  747. case *map[uint16]int16:
  748. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  749. case map[uint16]int32:
  750. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  751. case *map[uint16]int32:
  752. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  753. case map[uint16]int64:
  754. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  755. case *map[uint16]int64:
  756. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  757. case map[uint16]float32:
  758. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  759. case *map[uint16]float32:
  760. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  761. case map[uint16]float64:
  762. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  763. case *map[uint16]float64:
  764. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  765. case map[uint16]bool:
  766. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  767. case *map[uint16]bool:
  768. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  769. case []uint32:
  770. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  771. case *[]uint32:
  772. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  773. case map[uint32]interface{}:
  774. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  775. case *map[uint32]interface{}:
  776. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  777. case map[uint32]string:
  778. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  779. case *map[uint32]string:
  780. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  781. case map[uint32]uint:
  782. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  783. case *map[uint32]uint:
  784. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  785. case map[uint32]uint8:
  786. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  787. case *map[uint32]uint8:
  788. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  789. case map[uint32]uint16:
  790. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  791. case *map[uint32]uint16:
  792. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  793. case map[uint32]uint32:
  794. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  795. case *map[uint32]uint32:
  796. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  797. case map[uint32]uint64:
  798. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  799. case *map[uint32]uint64:
  800. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  801. case map[uint32]int:
  802. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  803. case *map[uint32]int:
  804. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  805. case map[uint32]int8:
  806. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  807. case *map[uint32]int8:
  808. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  809. case map[uint32]int16:
  810. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  811. case *map[uint32]int16:
  812. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  813. case map[uint32]int32:
  814. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  815. case *map[uint32]int32:
  816. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  817. case map[uint32]int64:
  818. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  819. case *map[uint32]int64:
  820. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  821. case map[uint32]float32:
  822. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  823. case *map[uint32]float32:
  824. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  825. case map[uint32]float64:
  826. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  827. case *map[uint32]float64:
  828. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  829. case map[uint32]bool:
  830. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  831. case *map[uint32]bool:
  832. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  833. case []uint64:
  834. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  835. case *[]uint64:
  836. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  837. case map[uint64]interface{}:
  838. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  839. case *map[uint64]interface{}:
  840. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  841. case map[uint64]string:
  842. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  843. case *map[uint64]string:
  844. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  845. case map[uint64]uint:
  846. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  847. case *map[uint64]uint:
  848. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  849. case map[uint64]uint8:
  850. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  851. case *map[uint64]uint8:
  852. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  853. case map[uint64]uint16:
  854. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  855. case *map[uint64]uint16:
  856. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  857. case map[uint64]uint32:
  858. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  859. case *map[uint64]uint32:
  860. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  861. case map[uint64]uint64:
  862. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  863. case *map[uint64]uint64:
  864. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  865. case map[uint64]int:
  866. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  867. case *map[uint64]int:
  868. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  869. case map[uint64]int8:
  870. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  871. case *map[uint64]int8:
  872. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  873. case map[uint64]int16:
  874. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  875. case *map[uint64]int16:
  876. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  877. case map[uint64]int32:
  878. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  879. case *map[uint64]int32:
  880. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  881. case map[uint64]int64:
  882. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  883. case *map[uint64]int64:
  884. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  885. case map[uint64]float32:
  886. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  887. case *map[uint64]float32:
  888. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  889. case map[uint64]float64:
  890. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  891. case *map[uint64]float64:
  892. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  893. case map[uint64]bool:
  894. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  895. case *map[uint64]bool:
  896. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  897. case []int:
  898. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  899. case *[]int:
  900. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  901. case map[int]interface{}:
  902. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  903. case *map[int]interface{}:
  904. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  905. case map[int]string:
  906. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  907. case *map[int]string:
  908. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  909. case map[int]uint:
  910. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  911. case *map[int]uint:
  912. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  913. case map[int]uint8:
  914. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  915. case *map[int]uint8:
  916. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  917. case map[int]uint16:
  918. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  919. case *map[int]uint16:
  920. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  921. case map[int]uint32:
  922. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  923. case *map[int]uint32:
  924. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  925. case map[int]uint64:
  926. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  927. case *map[int]uint64:
  928. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  929. case map[int]int:
  930. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  931. case *map[int]int:
  932. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  933. case map[int]int8:
  934. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  935. case *map[int]int8:
  936. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  937. case map[int]int16:
  938. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  939. case *map[int]int16:
  940. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  941. case map[int]int32:
  942. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  943. case *map[int]int32:
  944. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  945. case map[int]int64:
  946. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  947. case *map[int]int64:
  948. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  949. case map[int]float32:
  950. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  951. case *map[int]float32:
  952. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  953. case map[int]float64:
  954. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  955. case *map[int]float64:
  956. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  957. case map[int]bool:
  958. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  959. case *map[int]bool:
  960. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  961. case []int8:
  962. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  963. case *[]int8:
  964. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  965. case map[int8]interface{}:
  966. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  967. case *map[int8]interface{}:
  968. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  969. case map[int8]string:
  970. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  971. case *map[int8]string:
  972. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  973. case map[int8]uint:
  974. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  975. case *map[int8]uint:
  976. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  977. case map[int8]uint8:
  978. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  979. case *map[int8]uint8:
  980. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  981. case map[int8]uint16:
  982. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  983. case *map[int8]uint16:
  984. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  985. case map[int8]uint32:
  986. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  987. case *map[int8]uint32:
  988. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  989. case map[int8]uint64:
  990. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  991. case *map[int8]uint64:
  992. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  993. case map[int8]int:
  994. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  995. case *map[int8]int:
  996. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  997. case map[int8]int8:
  998. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  999. case *map[int8]int8:
  1000. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  1001. case map[int8]int16:
  1002. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  1003. case *map[int8]int16:
  1004. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  1005. case map[int8]int32:
  1006. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  1007. case *map[int8]int32:
  1008. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  1009. case map[int8]int64:
  1010. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  1011. case *map[int8]int64:
  1012. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  1013. case map[int8]float32:
  1014. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  1015. case *map[int8]float32:
  1016. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  1017. case map[int8]float64:
  1018. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  1019. case *map[int8]float64:
  1020. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  1021. case map[int8]bool:
  1022. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  1023. case *map[int8]bool:
  1024. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  1025. case []int16:
  1026. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1027. case *[]int16:
  1028. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1029. case map[int16]interface{}:
  1030. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  1031. case *map[int16]interface{}:
  1032. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  1033. case map[int16]string:
  1034. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  1035. case *map[int16]string:
  1036. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  1037. case map[int16]uint:
  1038. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  1039. case *map[int16]uint:
  1040. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  1041. case map[int16]uint8:
  1042. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  1043. case *map[int16]uint8:
  1044. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  1045. case map[int16]uint16:
  1046. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  1047. case *map[int16]uint16:
  1048. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  1049. case map[int16]uint32:
  1050. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  1051. case *map[int16]uint32:
  1052. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  1053. case map[int16]uint64:
  1054. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  1055. case *map[int16]uint64:
  1056. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  1057. case map[int16]int:
  1058. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  1059. case *map[int16]int:
  1060. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  1061. case map[int16]int8:
  1062. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  1063. case *map[int16]int8:
  1064. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  1065. case map[int16]int16:
  1066. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  1067. case *map[int16]int16:
  1068. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  1069. case map[int16]int32:
  1070. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  1071. case *map[int16]int32:
  1072. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  1073. case map[int16]int64:
  1074. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  1075. case *map[int16]int64:
  1076. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  1077. case map[int16]float32:
  1078. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  1079. case *map[int16]float32:
  1080. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  1081. case map[int16]float64:
  1082. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  1083. case *map[int16]float64:
  1084. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  1085. case map[int16]bool:
  1086. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  1087. case *map[int16]bool:
  1088. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  1089. case []int32:
  1090. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1091. case *[]int32:
  1092. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1093. case map[int32]interface{}:
  1094. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  1095. case *map[int32]interface{}:
  1096. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  1097. case map[int32]string:
  1098. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  1099. case *map[int32]string:
  1100. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  1101. case map[int32]uint:
  1102. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  1103. case *map[int32]uint:
  1104. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  1105. case map[int32]uint8:
  1106. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  1107. case *map[int32]uint8:
  1108. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  1109. case map[int32]uint16:
  1110. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  1111. case *map[int32]uint16:
  1112. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  1113. case map[int32]uint32:
  1114. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  1115. case *map[int32]uint32:
  1116. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  1117. case map[int32]uint64:
  1118. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  1119. case *map[int32]uint64:
  1120. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  1121. case map[int32]int:
  1122. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  1123. case *map[int32]int:
  1124. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  1125. case map[int32]int8:
  1126. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  1127. case *map[int32]int8:
  1128. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  1129. case map[int32]int16:
  1130. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  1131. case *map[int32]int16:
  1132. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  1133. case map[int32]int32:
  1134. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  1135. case *map[int32]int32:
  1136. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  1137. case map[int32]int64:
  1138. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  1139. case *map[int32]int64:
  1140. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  1141. case map[int32]float32:
  1142. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  1143. case *map[int32]float32:
  1144. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  1145. case map[int32]float64:
  1146. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  1147. case *map[int32]float64:
  1148. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  1149. case map[int32]bool:
  1150. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  1151. case *map[int32]bool:
  1152. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  1153. case []int64:
  1154. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1155. case *[]int64:
  1156. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1157. case map[int64]interface{}:
  1158. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  1159. case *map[int64]interface{}:
  1160. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  1161. case map[int64]string:
  1162. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  1163. case *map[int64]string:
  1164. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  1165. case map[int64]uint:
  1166. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  1167. case *map[int64]uint:
  1168. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  1169. case map[int64]uint8:
  1170. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  1171. case *map[int64]uint8:
  1172. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  1173. case map[int64]uint16:
  1174. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  1175. case *map[int64]uint16:
  1176. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  1177. case map[int64]uint32:
  1178. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  1179. case *map[int64]uint32:
  1180. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  1181. case map[int64]uint64:
  1182. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  1183. case *map[int64]uint64:
  1184. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  1185. case map[int64]int:
  1186. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  1187. case *map[int64]int:
  1188. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  1189. case map[int64]int8:
  1190. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  1191. case *map[int64]int8:
  1192. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  1193. case map[int64]int16:
  1194. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  1195. case *map[int64]int16:
  1196. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  1197. case map[int64]int32:
  1198. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  1199. case *map[int64]int32:
  1200. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  1201. case map[int64]int64:
  1202. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  1203. case *map[int64]int64:
  1204. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  1205. case map[int64]float32:
  1206. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  1207. case *map[int64]float32:
  1208. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  1209. case map[int64]float64:
  1210. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  1211. case *map[int64]float64:
  1212. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  1213. case map[int64]bool:
  1214. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  1215. case *map[int64]bool:
  1216. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  1217. case []bool:
  1218. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1219. case *[]bool:
  1220. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1221. case map[bool]interface{}:
  1222. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  1223. case *map[bool]interface{}:
  1224. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  1225. case map[bool]string:
  1226. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  1227. case *map[bool]string:
  1228. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  1229. case map[bool]uint:
  1230. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  1231. case *map[bool]uint:
  1232. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  1233. case map[bool]uint8:
  1234. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  1235. case *map[bool]uint8:
  1236. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  1237. case map[bool]uint16:
  1238. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  1239. case *map[bool]uint16:
  1240. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  1241. case map[bool]uint32:
  1242. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  1243. case *map[bool]uint32:
  1244. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  1245. case map[bool]uint64:
  1246. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  1247. case *map[bool]uint64:
  1248. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  1249. case map[bool]int:
  1250. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  1251. case *map[bool]int:
  1252. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  1253. case map[bool]int8:
  1254. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  1255. case *map[bool]int8:
  1256. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  1257. case map[bool]int16:
  1258. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  1259. case *map[bool]int16:
  1260. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  1261. case map[bool]int32:
  1262. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  1263. case *map[bool]int32:
  1264. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  1265. case map[bool]int64:
  1266. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  1267. case *map[bool]int64:
  1268. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  1269. case map[bool]float32:
  1270. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  1271. case *map[bool]float32:
  1272. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  1273. case map[bool]float64:
  1274. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  1275. case *map[bool]float64:
  1276. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  1277. case map[bool]bool:
  1278. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  1279. case *map[bool]bool:
  1280. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  1281. default:
  1282. return false
  1283. }
  1284. return true
  1285. }
  1286. func fastpathEncodeTypeSwitchSlice(iv interface{}, e *Encoder) bool {
  1287. switch v := iv.(type) {
  1288. case []interface{}:
  1289. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  1290. case *[]interface{}:
  1291. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  1292. case []string:
  1293. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  1294. case *[]string:
  1295. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  1296. case []float32:
  1297. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  1298. case *[]float32:
  1299. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  1300. case []float64:
  1301. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  1302. case *[]float64:
  1303. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  1304. case []uint:
  1305. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  1306. case *[]uint:
  1307. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  1308. case []uint16:
  1309. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  1310. case *[]uint16:
  1311. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  1312. case []uint32:
  1313. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  1314. case *[]uint32:
  1315. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  1316. case []uint64:
  1317. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  1318. case *[]uint64:
  1319. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  1320. case []int:
  1321. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  1322. case *[]int:
  1323. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  1324. case []int8:
  1325. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  1326. case *[]int8:
  1327. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  1328. case []int16:
  1329. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1330. case *[]int16:
  1331. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1332. case []int32:
  1333. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1334. case *[]int32:
  1335. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1336. case []int64:
  1337. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1338. case *[]int64:
  1339. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1340. case []bool:
  1341. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1342. case *[]bool:
  1343. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1344. default:
  1345. return false
  1346. }
  1347. return true
  1348. }
  1349. func fastpathEncodeTypeSwitchMap(iv interface{}, e *Encoder) bool {
  1350. switch v := iv.(type) {
  1351. case map[interface{}]interface{}:
  1352. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  1353. case *map[interface{}]interface{}:
  1354. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  1355. case map[interface{}]string:
  1356. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  1357. case *map[interface{}]string:
  1358. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  1359. case map[interface{}]uint:
  1360. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  1361. case *map[interface{}]uint:
  1362. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  1363. case map[interface{}]uint8:
  1364. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  1365. case *map[interface{}]uint8:
  1366. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  1367. case map[interface{}]uint16:
  1368. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  1369. case *map[interface{}]uint16:
  1370. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  1371. case map[interface{}]uint32:
  1372. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  1373. case *map[interface{}]uint32:
  1374. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  1375. case map[interface{}]uint64:
  1376. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  1377. case *map[interface{}]uint64:
  1378. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  1379. case map[interface{}]int:
  1380. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  1381. case *map[interface{}]int:
  1382. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  1383. case map[interface{}]int8:
  1384. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  1385. case *map[interface{}]int8:
  1386. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  1387. case map[interface{}]int16:
  1388. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  1389. case *map[interface{}]int16:
  1390. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  1391. case map[interface{}]int32:
  1392. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  1393. case *map[interface{}]int32:
  1394. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  1395. case map[interface{}]int64:
  1396. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  1397. case *map[interface{}]int64:
  1398. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  1399. case map[interface{}]float32:
  1400. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  1401. case *map[interface{}]float32:
  1402. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  1403. case map[interface{}]float64:
  1404. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  1405. case *map[interface{}]float64:
  1406. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  1407. case map[interface{}]bool:
  1408. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  1409. case *map[interface{}]bool:
  1410. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  1411. case map[string]interface{}:
  1412. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  1413. case *map[string]interface{}:
  1414. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  1415. case map[string]string:
  1416. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  1417. case *map[string]string:
  1418. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  1419. case map[string]uint:
  1420. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  1421. case *map[string]uint:
  1422. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  1423. case map[string]uint8:
  1424. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  1425. case *map[string]uint8:
  1426. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  1427. case map[string]uint16:
  1428. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  1429. case *map[string]uint16:
  1430. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  1431. case map[string]uint32:
  1432. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  1433. case *map[string]uint32:
  1434. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  1435. case map[string]uint64:
  1436. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  1437. case *map[string]uint64:
  1438. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  1439. case map[string]int:
  1440. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  1441. case *map[string]int:
  1442. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  1443. case map[string]int8:
  1444. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  1445. case *map[string]int8:
  1446. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  1447. case map[string]int16:
  1448. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  1449. case *map[string]int16:
  1450. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  1451. case map[string]int32:
  1452. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  1453. case *map[string]int32:
  1454. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  1455. case map[string]int64:
  1456. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  1457. case *map[string]int64:
  1458. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  1459. case map[string]float32:
  1460. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  1461. case *map[string]float32:
  1462. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  1463. case map[string]float64:
  1464. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  1465. case *map[string]float64:
  1466. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  1467. case map[string]bool:
  1468. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  1469. case *map[string]bool:
  1470. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  1471. case map[float32]interface{}:
  1472. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  1473. case *map[float32]interface{}:
  1474. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  1475. case map[float32]string:
  1476. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  1477. case *map[float32]string:
  1478. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  1479. case map[float32]uint:
  1480. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  1481. case *map[float32]uint:
  1482. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  1483. case map[float32]uint8:
  1484. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  1485. case *map[float32]uint8:
  1486. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  1487. case map[float32]uint16:
  1488. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  1489. case *map[float32]uint16:
  1490. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  1491. case map[float32]uint32:
  1492. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  1493. case *map[float32]uint32:
  1494. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  1495. case map[float32]uint64:
  1496. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  1497. case *map[float32]uint64:
  1498. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  1499. case map[float32]int:
  1500. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  1501. case *map[float32]int:
  1502. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  1503. case map[float32]int8:
  1504. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  1505. case *map[float32]int8:
  1506. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  1507. case map[float32]int16:
  1508. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  1509. case *map[float32]int16:
  1510. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  1511. case map[float32]int32:
  1512. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  1513. case *map[float32]int32:
  1514. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  1515. case map[float32]int64:
  1516. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  1517. case *map[float32]int64:
  1518. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  1519. case map[float32]float32:
  1520. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  1521. case *map[float32]float32:
  1522. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  1523. case map[float32]float64:
  1524. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  1525. case *map[float32]float64:
  1526. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  1527. case map[float32]bool:
  1528. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  1529. case *map[float32]bool:
  1530. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  1531. case map[float64]interface{}:
  1532. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  1533. case *map[float64]interface{}:
  1534. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  1535. case map[float64]string:
  1536. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  1537. case *map[float64]string:
  1538. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  1539. case map[float64]uint:
  1540. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  1541. case *map[float64]uint:
  1542. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  1543. case map[float64]uint8:
  1544. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  1545. case *map[float64]uint8:
  1546. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  1547. case map[float64]uint16:
  1548. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  1549. case *map[float64]uint16:
  1550. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  1551. case map[float64]uint32:
  1552. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  1553. case *map[float64]uint32:
  1554. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  1555. case map[float64]uint64:
  1556. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  1557. case *map[float64]uint64:
  1558. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  1559. case map[float64]int:
  1560. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  1561. case *map[float64]int:
  1562. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  1563. case map[float64]int8:
  1564. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  1565. case *map[float64]int8:
  1566. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  1567. case map[float64]int16:
  1568. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  1569. case *map[float64]int16:
  1570. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  1571. case map[float64]int32:
  1572. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  1573. case *map[float64]int32:
  1574. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  1575. case map[float64]int64:
  1576. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  1577. case *map[float64]int64:
  1578. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  1579. case map[float64]float32:
  1580. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  1581. case *map[float64]float32:
  1582. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  1583. case map[float64]float64:
  1584. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  1585. case *map[float64]float64:
  1586. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  1587. case map[float64]bool:
  1588. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  1589. case *map[float64]bool:
  1590. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  1591. case map[uint]interface{}:
  1592. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  1593. case *map[uint]interface{}:
  1594. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  1595. case map[uint]string:
  1596. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  1597. case *map[uint]string:
  1598. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  1599. case map[uint]uint:
  1600. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  1601. case *map[uint]uint:
  1602. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  1603. case map[uint]uint8:
  1604. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  1605. case *map[uint]uint8:
  1606. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  1607. case map[uint]uint16:
  1608. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  1609. case *map[uint]uint16:
  1610. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  1611. case map[uint]uint32:
  1612. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  1613. case *map[uint]uint32:
  1614. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  1615. case map[uint]uint64:
  1616. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  1617. case *map[uint]uint64:
  1618. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  1619. case map[uint]int:
  1620. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  1621. case *map[uint]int:
  1622. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  1623. case map[uint]int8:
  1624. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  1625. case *map[uint]int8:
  1626. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  1627. case map[uint]int16:
  1628. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  1629. case *map[uint]int16:
  1630. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  1631. case map[uint]int32:
  1632. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  1633. case *map[uint]int32:
  1634. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  1635. case map[uint]int64:
  1636. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  1637. case *map[uint]int64:
  1638. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  1639. case map[uint]float32:
  1640. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  1641. case *map[uint]float32:
  1642. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  1643. case map[uint]float64:
  1644. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  1645. case *map[uint]float64:
  1646. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  1647. case map[uint]bool:
  1648. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  1649. case *map[uint]bool:
  1650. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  1651. case map[uint8]interface{}:
  1652. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  1653. case *map[uint8]interface{}:
  1654. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  1655. case map[uint8]string:
  1656. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  1657. case *map[uint8]string:
  1658. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  1659. case map[uint8]uint:
  1660. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  1661. case *map[uint8]uint:
  1662. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  1663. case map[uint8]uint8:
  1664. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  1665. case *map[uint8]uint8:
  1666. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  1667. case map[uint8]uint16:
  1668. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  1669. case *map[uint8]uint16:
  1670. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  1671. case map[uint8]uint32:
  1672. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  1673. case *map[uint8]uint32:
  1674. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  1675. case map[uint8]uint64:
  1676. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  1677. case *map[uint8]uint64:
  1678. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  1679. case map[uint8]int:
  1680. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  1681. case *map[uint8]int:
  1682. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  1683. case map[uint8]int8:
  1684. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  1685. case *map[uint8]int8:
  1686. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  1687. case map[uint8]int16:
  1688. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  1689. case *map[uint8]int16:
  1690. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  1691. case map[uint8]int32:
  1692. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  1693. case *map[uint8]int32:
  1694. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  1695. case map[uint8]int64:
  1696. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  1697. case *map[uint8]int64:
  1698. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  1699. case map[uint8]float32:
  1700. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  1701. case *map[uint8]float32:
  1702. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  1703. case map[uint8]float64:
  1704. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  1705. case *map[uint8]float64:
  1706. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  1707. case map[uint8]bool:
  1708. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  1709. case *map[uint8]bool:
  1710. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  1711. case map[uint16]interface{}:
  1712. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  1713. case *map[uint16]interface{}:
  1714. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  1715. case map[uint16]string:
  1716. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  1717. case *map[uint16]string:
  1718. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  1719. case map[uint16]uint:
  1720. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  1721. case *map[uint16]uint:
  1722. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  1723. case map[uint16]uint8:
  1724. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  1725. case *map[uint16]uint8:
  1726. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  1727. case map[uint16]uint16:
  1728. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  1729. case *map[uint16]uint16:
  1730. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  1731. case map[uint16]uint32:
  1732. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  1733. case *map[uint16]uint32:
  1734. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  1735. case map[uint16]uint64:
  1736. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  1737. case *map[uint16]uint64:
  1738. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  1739. case map[uint16]int:
  1740. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  1741. case *map[uint16]int:
  1742. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  1743. case map[uint16]int8:
  1744. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  1745. case *map[uint16]int8:
  1746. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  1747. case map[uint16]int16:
  1748. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  1749. case *map[uint16]int16:
  1750. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  1751. case map[uint16]int32:
  1752. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  1753. case *map[uint16]int32:
  1754. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  1755. case map[uint16]int64:
  1756. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  1757. case *map[uint16]int64:
  1758. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  1759. case map[uint16]float32:
  1760. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  1761. case *map[uint16]float32:
  1762. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  1763. case map[uint16]float64:
  1764. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  1765. case *map[uint16]float64:
  1766. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  1767. case map[uint16]bool:
  1768. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  1769. case *map[uint16]bool:
  1770. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  1771. case map[uint32]interface{}:
  1772. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  1773. case *map[uint32]interface{}:
  1774. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  1775. case map[uint32]string:
  1776. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  1777. case *map[uint32]string:
  1778. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  1779. case map[uint32]uint:
  1780. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  1781. case *map[uint32]uint:
  1782. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  1783. case map[uint32]uint8:
  1784. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  1785. case *map[uint32]uint8:
  1786. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  1787. case map[uint32]uint16:
  1788. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  1789. case *map[uint32]uint16:
  1790. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  1791. case map[uint32]uint32:
  1792. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  1793. case *map[uint32]uint32:
  1794. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  1795. case map[uint32]uint64:
  1796. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  1797. case *map[uint32]uint64:
  1798. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  1799. case map[uint32]int:
  1800. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  1801. case *map[uint32]int:
  1802. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  1803. case map[uint32]int8:
  1804. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  1805. case *map[uint32]int8:
  1806. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  1807. case map[uint32]int16:
  1808. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  1809. case *map[uint32]int16:
  1810. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  1811. case map[uint32]int32:
  1812. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  1813. case *map[uint32]int32:
  1814. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  1815. case map[uint32]int64:
  1816. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  1817. case *map[uint32]int64:
  1818. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  1819. case map[uint32]float32:
  1820. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  1821. case *map[uint32]float32:
  1822. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  1823. case map[uint32]float64:
  1824. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  1825. case *map[uint32]float64:
  1826. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  1827. case map[uint32]bool:
  1828. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  1829. case *map[uint32]bool:
  1830. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  1831. case map[uint64]interface{}:
  1832. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  1833. case *map[uint64]interface{}:
  1834. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  1835. case map[uint64]string:
  1836. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  1837. case *map[uint64]string:
  1838. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  1839. case map[uint64]uint:
  1840. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  1841. case *map[uint64]uint:
  1842. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  1843. case map[uint64]uint8:
  1844. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  1845. case *map[uint64]uint8:
  1846. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  1847. case map[uint64]uint16:
  1848. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  1849. case *map[uint64]uint16:
  1850. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  1851. case map[uint64]uint32:
  1852. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  1853. case *map[uint64]uint32:
  1854. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  1855. case map[uint64]uint64:
  1856. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  1857. case *map[uint64]uint64:
  1858. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  1859. case map[uint64]int:
  1860. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  1861. case *map[uint64]int:
  1862. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  1863. case map[uint64]int8:
  1864. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  1865. case *map[uint64]int8:
  1866. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  1867. case map[uint64]int16:
  1868. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  1869. case *map[uint64]int16:
  1870. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  1871. case map[uint64]int32:
  1872. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  1873. case *map[uint64]int32:
  1874. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  1875. case map[uint64]int64:
  1876. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  1877. case *map[uint64]int64:
  1878. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  1879. case map[uint64]float32:
  1880. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  1881. case *map[uint64]float32:
  1882. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  1883. case map[uint64]float64:
  1884. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  1885. case *map[uint64]float64:
  1886. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  1887. case map[uint64]bool:
  1888. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  1889. case *map[uint64]bool:
  1890. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  1891. case map[int]interface{}:
  1892. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  1893. case *map[int]interface{}:
  1894. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  1895. case map[int]string:
  1896. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  1897. case *map[int]string:
  1898. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  1899. case map[int]uint:
  1900. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  1901. case *map[int]uint:
  1902. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  1903. case map[int]uint8:
  1904. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  1905. case *map[int]uint8:
  1906. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  1907. case map[int]uint16:
  1908. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  1909. case *map[int]uint16:
  1910. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  1911. case map[int]uint32:
  1912. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  1913. case *map[int]uint32:
  1914. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  1915. case map[int]uint64:
  1916. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  1917. case *map[int]uint64:
  1918. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  1919. case map[int]int:
  1920. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  1921. case *map[int]int:
  1922. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  1923. case map[int]int8:
  1924. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  1925. case *map[int]int8:
  1926. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  1927. case map[int]int16:
  1928. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  1929. case *map[int]int16:
  1930. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  1931. case map[int]int32:
  1932. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  1933. case *map[int]int32:
  1934. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  1935. case map[int]int64:
  1936. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  1937. case *map[int]int64:
  1938. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  1939. case map[int]float32:
  1940. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  1941. case *map[int]float32:
  1942. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  1943. case map[int]float64:
  1944. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  1945. case *map[int]float64:
  1946. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  1947. case map[int]bool:
  1948. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  1949. case *map[int]bool:
  1950. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  1951. case map[int8]interface{}:
  1952. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  1953. case *map[int8]interface{}:
  1954. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  1955. case map[int8]string:
  1956. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  1957. case *map[int8]string:
  1958. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  1959. case map[int8]uint:
  1960. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  1961. case *map[int8]uint:
  1962. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  1963. case map[int8]uint8:
  1964. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  1965. case *map[int8]uint8:
  1966. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  1967. case map[int8]uint16:
  1968. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  1969. case *map[int8]uint16:
  1970. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  1971. case map[int8]uint32:
  1972. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  1973. case *map[int8]uint32:
  1974. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  1975. case map[int8]uint64:
  1976. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  1977. case *map[int8]uint64:
  1978. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  1979. case map[int8]int:
  1980. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  1981. case *map[int8]int:
  1982. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  1983. case map[int8]int8:
  1984. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  1985. case *map[int8]int8:
  1986. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  1987. case map[int8]int16:
  1988. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  1989. case *map[int8]int16:
  1990. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  1991. case map[int8]int32:
  1992. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  1993. case *map[int8]int32:
  1994. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  1995. case map[int8]int64:
  1996. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  1997. case *map[int8]int64:
  1998. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  1999. case map[int8]float32:
  2000. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  2001. case *map[int8]float32:
  2002. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  2003. case map[int8]float64:
  2004. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  2005. case *map[int8]float64:
  2006. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  2007. case map[int8]bool:
  2008. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  2009. case *map[int8]bool:
  2010. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  2011. case map[int16]interface{}:
  2012. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  2013. case *map[int16]interface{}:
  2014. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  2015. case map[int16]string:
  2016. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  2017. case *map[int16]string:
  2018. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  2019. case map[int16]uint:
  2020. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  2021. case *map[int16]uint:
  2022. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  2023. case map[int16]uint8:
  2024. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  2025. case *map[int16]uint8:
  2026. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  2027. case map[int16]uint16:
  2028. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  2029. case *map[int16]uint16:
  2030. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  2031. case map[int16]uint32:
  2032. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  2033. case *map[int16]uint32:
  2034. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  2035. case map[int16]uint64:
  2036. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  2037. case *map[int16]uint64:
  2038. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  2039. case map[int16]int:
  2040. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  2041. case *map[int16]int:
  2042. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  2043. case map[int16]int8:
  2044. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  2045. case *map[int16]int8:
  2046. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  2047. case map[int16]int16:
  2048. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  2049. case *map[int16]int16:
  2050. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  2051. case map[int16]int32:
  2052. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  2053. case *map[int16]int32:
  2054. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  2055. case map[int16]int64:
  2056. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  2057. case *map[int16]int64:
  2058. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  2059. case map[int16]float32:
  2060. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  2061. case *map[int16]float32:
  2062. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  2063. case map[int16]float64:
  2064. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  2065. case *map[int16]float64:
  2066. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  2067. case map[int16]bool:
  2068. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  2069. case *map[int16]bool:
  2070. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  2071. case map[int32]interface{}:
  2072. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  2073. case *map[int32]interface{}:
  2074. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  2075. case map[int32]string:
  2076. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  2077. case *map[int32]string:
  2078. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  2079. case map[int32]uint:
  2080. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  2081. case *map[int32]uint:
  2082. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  2083. case map[int32]uint8:
  2084. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  2085. case *map[int32]uint8:
  2086. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  2087. case map[int32]uint16:
  2088. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  2089. case *map[int32]uint16:
  2090. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  2091. case map[int32]uint32:
  2092. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  2093. case *map[int32]uint32:
  2094. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  2095. case map[int32]uint64:
  2096. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  2097. case *map[int32]uint64:
  2098. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  2099. case map[int32]int:
  2100. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  2101. case *map[int32]int:
  2102. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  2103. case map[int32]int8:
  2104. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  2105. case *map[int32]int8:
  2106. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  2107. case map[int32]int16:
  2108. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  2109. case *map[int32]int16:
  2110. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  2111. case map[int32]int32:
  2112. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  2113. case *map[int32]int32:
  2114. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  2115. case map[int32]int64:
  2116. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  2117. case *map[int32]int64:
  2118. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  2119. case map[int32]float32:
  2120. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  2121. case *map[int32]float32:
  2122. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  2123. case map[int32]float64:
  2124. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  2125. case *map[int32]float64:
  2126. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  2127. case map[int32]bool:
  2128. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  2129. case *map[int32]bool:
  2130. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  2131. case map[int64]interface{}:
  2132. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  2133. case *map[int64]interface{}:
  2134. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  2135. case map[int64]string:
  2136. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  2137. case *map[int64]string:
  2138. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  2139. case map[int64]uint:
  2140. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  2141. case *map[int64]uint:
  2142. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  2143. case map[int64]uint8:
  2144. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  2145. case *map[int64]uint8:
  2146. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  2147. case map[int64]uint16:
  2148. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  2149. case *map[int64]uint16:
  2150. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  2151. case map[int64]uint32:
  2152. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  2153. case *map[int64]uint32:
  2154. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  2155. case map[int64]uint64:
  2156. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  2157. case *map[int64]uint64:
  2158. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  2159. case map[int64]int:
  2160. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  2161. case *map[int64]int:
  2162. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  2163. case map[int64]int8:
  2164. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  2165. case *map[int64]int8:
  2166. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  2167. case map[int64]int16:
  2168. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  2169. case *map[int64]int16:
  2170. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  2171. case map[int64]int32:
  2172. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  2173. case *map[int64]int32:
  2174. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  2175. case map[int64]int64:
  2176. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  2177. case *map[int64]int64:
  2178. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  2179. case map[int64]float32:
  2180. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  2181. case *map[int64]float32:
  2182. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  2183. case map[int64]float64:
  2184. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  2185. case *map[int64]float64:
  2186. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  2187. case map[int64]bool:
  2188. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  2189. case *map[int64]bool:
  2190. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  2191. case map[bool]interface{}:
  2192. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  2193. case *map[bool]interface{}:
  2194. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  2195. case map[bool]string:
  2196. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  2197. case *map[bool]string:
  2198. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  2199. case map[bool]uint:
  2200. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  2201. case *map[bool]uint:
  2202. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  2203. case map[bool]uint8:
  2204. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  2205. case *map[bool]uint8:
  2206. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  2207. case map[bool]uint16:
  2208. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  2209. case *map[bool]uint16:
  2210. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  2211. case map[bool]uint32:
  2212. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  2213. case *map[bool]uint32:
  2214. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  2215. case map[bool]uint64:
  2216. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  2217. case *map[bool]uint64:
  2218. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  2219. case map[bool]int:
  2220. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  2221. case *map[bool]int:
  2222. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  2223. case map[bool]int8:
  2224. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  2225. case *map[bool]int8:
  2226. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  2227. case map[bool]int16:
  2228. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  2229. case *map[bool]int16:
  2230. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  2231. case map[bool]int32:
  2232. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  2233. case *map[bool]int32:
  2234. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  2235. case map[bool]int64:
  2236. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  2237. case *map[bool]int64:
  2238. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  2239. case map[bool]float32:
  2240. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  2241. case *map[bool]float32:
  2242. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  2243. case map[bool]float64:
  2244. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  2245. case *map[bool]float64:
  2246. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  2247. case map[bool]bool:
  2248. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  2249. case *map[bool]bool:
  2250. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  2251. default:
  2252. return false
  2253. }
  2254. return true
  2255. }
  2256. // -- -- fast path functions
  2257. func (f encFnInfo) fastpathEncSliceIntfR(rv reflect.Value) {
  2258. fastpathTV.EncSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e)
  2259. }
  2260. func (_ fastpathT) EncSliceIntfV(v []interface{}, checkNil bool, e *Encoder) {
  2261. ee := e.e
  2262. if checkNil && v == nil {
  2263. ee.EncodeNil()
  2264. return
  2265. }
  2266. ee.EncodeArrayStart(len(v))
  2267. if e.be {
  2268. for _, v2 := range v {
  2269. e.encode(v2)
  2270. }
  2271. } else {
  2272. for j, v2 := range v {
  2273. if j > 0 {
  2274. ee.EncodeArrayEntrySeparator()
  2275. }
  2276. e.encode(v2)
  2277. }
  2278. ee.EncodeArrayEnd()
  2279. }
  2280. }
  2281. func (f encFnInfo) fastpathEncSliceStringR(rv reflect.Value) {
  2282. fastpathTV.EncSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e)
  2283. }
  2284. func (_ fastpathT) EncSliceStringV(v []string, checkNil bool, e *Encoder) {
  2285. ee := e.e
  2286. if checkNil && v == nil {
  2287. ee.EncodeNil()
  2288. return
  2289. }
  2290. ee.EncodeArrayStart(len(v))
  2291. if e.be {
  2292. for _, v2 := range v {
  2293. ee.EncodeString(c_UTF8, v2)
  2294. }
  2295. } else {
  2296. for j, v2 := range v {
  2297. if j > 0 {
  2298. ee.EncodeArrayEntrySeparator()
  2299. }
  2300. ee.EncodeString(c_UTF8, v2)
  2301. }
  2302. ee.EncodeArrayEnd()
  2303. }
  2304. }
  2305. func (f encFnInfo) fastpathEncSliceFloat32R(rv reflect.Value) {
  2306. fastpathTV.EncSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e)
  2307. }
  2308. func (_ fastpathT) EncSliceFloat32V(v []float32, checkNil bool, e *Encoder) {
  2309. ee := e.e
  2310. if checkNil && v == nil {
  2311. ee.EncodeNil()
  2312. return
  2313. }
  2314. ee.EncodeArrayStart(len(v))
  2315. if e.be {
  2316. for _, v2 := range v {
  2317. ee.EncodeFloat32(v2)
  2318. }
  2319. } else {
  2320. for j, v2 := range v {
  2321. if j > 0 {
  2322. ee.EncodeArrayEntrySeparator()
  2323. }
  2324. ee.EncodeFloat32(v2)
  2325. }
  2326. ee.EncodeArrayEnd()
  2327. }
  2328. }
  2329. func (f encFnInfo) fastpathEncSliceFloat64R(rv reflect.Value) {
  2330. fastpathTV.EncSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e)
  2331. }
  2332. func (_ fastpathT) EncSliceFloat64V(v []float64, checkNil bool, e *Encoder) {
  2333. ee := e.e
  2334. if checkNil && v == nil {
  2335. ee.EncodeNil()
  2336. return
  2337. }
  2338. ee.EncodeArrayStart(len(v))
  2339. if e.be {
  2340. for _, v2 := range v {
  2341. ee.EncodeFloat64(v2)
  2342. }
  2343. } else {
  2344. for j, v2 := range v {
  2345. if j > 0 {
  2346. ee.EncodeArrayEntrySeparator()
  2347. }
  2348. ee.EncodeFloat64(v2)
  2349. }
  2350. ee.EncodeArrayEnd()
  2351. }
  2352. }
  2353. func (f encFnInfo) fastpathEncSliceUintR(rv reflect.Value) {
  2354. fastpathTV.EncSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e)
  2355. }
  2356. func (_ fastpathT) EncSliceUintV(v []uint, checkNil bool, e *Encoder) {
  2357. ee := e.e
  2358. if checkNil && v == nil {
  2359. ee.EncodeNil()
  2360. return
  2361. }
  2362. ee.EncodeArrayStart(len(v))
  2363. if e.be {
  2364. for _, v2 := range v {
  2365. ee.EncodeUint(uint64(v2))
  2366. }
  2367. } else {
  2368. for j, v2 := range v {
  2369. if j > 0 {
  2370. ee.EncodeArrayEntrySeparator()
  2371. }
  2372. ee.EncodeUint(uint64(v2))
  2373. }
  2374. ee.EncodeArrayEnd()
  2375. }
  2376. }
  2377. func (f encFnInfo) fastpathEncSliceUint16R(rv reflect.Value) {
  2378. fastpathTV.EncSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e)
  2379. }
  2380. func (_ fastpathT) EncSliceUint16V(v []uint16, checkNil bool, e *Encoder) {
  2381. ee := e.e
  2382. if checkNil && v == nil {
  2383. ee.EncodeNil()
  2384. return
  2385. }
  2386. ee.EncodeArrayStart(len(v))
  2387. if e.be {
  2388. for _, v2 := range v {
  2389. ee.EncodeUint(uint64(v2))
  2390. }
  2391. } else {
  2392. for j, v2 := range v {
  2393. if j > 0 {
  2394. ee.EncodeArrayEntrySeparator()
  2395. }
  2396. ee.EncodeUint(uint64(v2))
  2397. }
  2398. ee.EncodeArrayEnd()
  2399. }
  2400. }
  2401. func (f encFnInfo) fastpathEncSliceUint32R(rv reflect.Value) {
  2402. fastpathTV.EncSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e)
  2403. }
  2404. func (_ fastpathT) EncSliceUint32V(v []uint32, checkNil bool, e *Encoder) {
  2405. ee := e.e
  2406. if checkNil && v == nil {
  2407. ee.EncodeNil()
  2408. return
  2409. }
  2410. ee.EncodeArrayStart(len(v))
  2411. if e.be {
  2412. for _, v2 := range v {
  2413. ee.EncodeUint(uint64(v2))
  2414. }
  2415. } else {
  2416. for j, v2 := range v {
  2417. if j > 0 {
  2418. ee.EncodeArrayEntrySeparator()
  2419. }
  2420. ee.EncodeUint(uint64(v2))
  2421. }
  2422. ee.EncodeArrayEnd()
  2423. }
  2424. }
  2425. func (f encFnInfo) fastpathEncSliceUint64R(rv reflect.Value) {
  2426. fastpathTV.EncSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e)
  2427. }
  2428. func (_ fastpathT) EncSliceUint64V(v []uint64, checkNil bool, e *Encoder) {
  2429. ee := e.e
  2430. if checkNil && v == nil {
  2431. ee.EncodeNil()
  2432. return
  2433. }
  2434. ee.EncodeArrayStart(len(v))
  2435. if e.be {
  2436. for _, v2 := range v {
  2437. ee.EncodeUint(uint64(v2))
  2438. }
  2439. } else {
  2440. for j, v2 := range v {
  2441. if j > 0 {
  2442. ee.EncodeArrayEntrySeparator()
  2443. }
  2444. ee.EncodeUint(uint64(v2))
  2445. }
  2446. ee.EncodeArrayEnd()
  2447. }
  2448. }
  2449. func (f encFnInfo) fastpathEncSliceIntR(rv reflect.Value) {
  2450. fastpathTV.EncSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e)
  2451. }
  2452. func (_ fastpathT) EncSliceIntV(v []int, checkNil bool, e *Encoder) {
  2453. ee := e.e
  2454. if checkNil && v == nil {
  2455. ee.EncodeNil()
  2456. return
  2457. }
  2458. ee.EncodeArrayStart(len(v))
  2459. if e.be {
  2460. for _, v2 := range v {
  2461. ee.EncodeInt(int64(v2))
  2462. }
  2463. } else {
  2464. for j, v2 := range v {
  2465. if j > 0 {
  2466. ee.EncodeArrayEntrySeparator()
  2467. }
  2468. ee.EncodeInt(int64(v2))
  2469. }
  2470. ee.EncodeArrayEnd()
  2471. }
  2472. }
  2473. func (f encFnInfo) fastpathEncSliceInt8R(rv reflect.Value) {
  2474. fastpathTV.EncSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e)
  2475. }
  2476. func (_ fastpathT) EncSliceInt8V(v []int8, checkNil bool, e *Encoder) {
  2477. ee := e.e
  2478. if checkNil && v == nil {
  2479. ee.EncodeNil()
  2480. return
  2481. }
  2482. ee.EncodeArrayStart(len(v))
  2483. if e.be {
  2484. for _, v2 := range v {
  2485. ee.EncodeInt(int64(v2))
  2486. }
  2487. } else {
  2488. for j, v2 := range v {
  2489. if j > 0 {
  2490. ee.EncodeArrayEntrySeparator()
  2491. }
  2492. ee.EncodeInt(int64(v2))
  2493. }
  2494. ee.EncodeArrayEnd()
  2495. }
  2496. }
  2497. func (f encFnInfo) fastpathEncSliceInt16R(rv reflect.Value) {
  2498. fastpathTV.EncSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e)
  2499. }
  2500. func (_ fastpathT) EncSliceInt16V(v []int16, checkNil bool, e *Encoder) {
  2501. ee := e.e
  2502. if checkNil && v == nil {
  2503. ee.EncodeNil()
  2504. return
  2505. }
  2506. ee.EncodeArrayStart(len(v))
  2507. if e.be {
  2508. for _, v2 := range v {
  2509. ee.EncodeInt(int64(v2))
  2510. }
  2511. } else {
  2512. for j, v2 := range v {
  2513. if j > 0 {
  2514. ee.EncodeArrayEntrySeparator()
  2515. }
  2516. ee.EncodeInt(int64(v2))
  2517. }
  2518. ee.EncodeArrayEnd()
  2519. }
  2520. }
  2521. func (f encFnInfo) fastpathEncSliceInt32R(rv reflect.Value) {
  2522. fastpathTV.EncSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e)
  2523. }
  2524. func (_ fastpathT) EncSliceInt32V(v []int32, checkNil bool, e *Encoder) {
  2525. ee := e.e
  2526. if checkNil && v == nil {
  2527. ee.EncodeNil()
  2528. return
  2529. }
  2530. ee.EncodeArrayStart(len(v))
  2531. if e.be {
  2532. for _, v2 := range v {
  2533. ee.EncodeInt(int64(v2))
  2534. }
  2535. } else {
  2536. for j, v2 := range v {
  2537. if j > 0 {
  2538. ee.EncodeArrayEntrySeparator()
  2539. }
  2540. ee.EncodeInt(int64(v2))
  2541. }
  2542. ee.EncodeArrayEnd()
  2543. }
  2544. }
  2545. func (f encFnInfo) fastpathEncSliceInt64R(rv reflect.Value) {
  2546. fastpathTV.EncSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e)
  2547. }
  2548. func (_ fastpathT) EncSliceInt64V(v []int64, checkNil bool, e *Encoder) {
  2549. ee := e.e
  2550. if checkNil && v == nil {
  2551. ee.EncodeNil()
  2552. return
  2553. }
  2554. ee.EncodeArrayStart(len(v))
  2555. if e.be {
  2556. for _, v2 := range v {
  2557. ee.EncodeInt(int64(v2))
  2558. }
  2559. } else {
  2560. for j, v2 := range v {
  2561. if j > 0 {
  2562. ee.EncodeArrayEntrySeparator()
  2563. }
  2564. ee.EncodeInt(int64(v2))
  2565. }
  2566. ee.EncodeArrayEnd()
  2567. }
  2568. }
  2569. func (f encFnInfo) fastpathEncSliceBoolR(rv reflect.Value) {
  2570. fastpathTV.EncSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e)
  2571. }
  2572. func (_ fastpathT) EncSliceBoolV(v []bool, checkNil bool, e *Encoder) {
  2573. ee := e.e
  2574. if checkNil && v == nil {
  2575. ee.EncodeNil()
  2576. return
  2577. }
  2578. ee.EncodeArrayStart(len(v))
  2579. if e.be {
  2580. for _, v2 := range v {
  2581. ee.EncodeBool(v2)
  2582. }
  2583. } else {
  2584. for j, v2 := range v {
  2585. if j > 0 {
  2586. ee.EncodeArrayEntrySeparator()
  2587. }
  2588. ee.EncodeBool(v2)
  2589. }
  2590. ee.EncodeArrayEnd()
  2591. }
  2592. }
  2593. func (f encFnInfo) fastpathEncMapIntfIntfR(rv reflect.Value) {
  2594. fastpathTV.EncMapIntfIntfV(rv.Interface().(map[interface{}]interface{}), fastpathCheckNilFalse, f.e)
  2595. }
  2596. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, e *Encoder) {
  2597. ee := e.e
  2598. if checkNil && v == nil {
  2599. ee.EncodeNil()
  2600. return
  2601. }
  2602. ee.EncodeMapStart(len(v))
  2603. if e.be {
  2604. for k2, v2 := range v {
  2605. e.encode(k2)
  2606. e.encode(v2)
  2607. }
  2608. } else {
  2609. j := 0
  2610. for k2, v2 := range v {
  2611. if j > 0 {
  2612. ee.EncodeMapEntrySeparator()
  2613. }
  2614. e.encode(k2)
  2615. ee.EncodeMapKVSeparator()
  2616. e.encode(v2)
  2617. j++
  2618. }
  2619. ee.EncodeMapEnd()
  2620. }
  2621. }
  2622. func (f encFnInfo) fastpathEncMapIntfStringR(rv reflect.Value) {
  2623. fastpathTV.EncMapIntfStringV(rv.Interface().(map[interface{}]string), fastpathCheckNilFalse, f.e)
  2624. }
  2625. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, checkNil bool, e *Encoder) {
  2626. ee := e.e
  2627. if checkNil && v == nil {
  2628. ee.EncodeNil()
  2629. return
  2630. }
  2631. ee.EncodeMapStart(len(v))
  2632. if e.be {
  2633. for k2, v2 := range v {
  2634. e.encode(k2)
  2635. ee.EncodeString(c_UTF8, v2)
  2636. }
  2637. } else {
  2638. j := 0
  2639. for k2, v2 := range v {
  2640. if j > 0 {
  2641. ee.EncodeMapEntrySeparator()
  2642. }
  2643. e.encode(k2)
  2644. ee.EncodeMapKVSeparator()
  2645. ee.EncodeString(c_UTF8, v2)
  2646. j++
  2647. }
  2648. ee.EncodeMapEnd()
  2649. }
  2650. }
  2651. func (f encFnInfo) fastpathEncMapIntfUintR(rv reflect.Value) {
  2652. fastpathTV.EncMapIntfUintV(rv.Interface().(map[interface{}]uint), fastpathCheckNilFalse, f.e)
  2653. }
  2654. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, checkNil bool, e *Encoder) {
  2655. ee := e.e
  2656. if checkNil && v == nil {
  2657. ee.EncodeNil()
  2658. return
  2659. }
  2660. ee.EncodeMapStart(len(v))
  2661. if e.be {
  2662. for k2, v2 := range v {
  2663. e.encode(k2)
  2664. ee.EncodeUint(uint64(v2))
  2665. }
  2666. } else {
  2667. j := 0
  2668. for k2, v2 := range v {
  2669. if j > 0 {
  2670. ee.EncodeMapEntrySeparator()
  2671. }
  2672. e.encode(k2)
  2673. ee.EncodeMapKVSeparator()
  2674. ee.EncodeUint(uint64(v2))
  2675. j++
  2676. }
  2677. ee.EncodeMapEnd()
  2678. }
  2679. }
  2680. func (f encFnInfo) fastpathEncMapIntfUint8R(rv reflect.Value) {
  2681. fastpathTV.EncMapIntfUint8V(rv.Interface().(map[interface{}]uint8), fastpathCheckNilFalse, f.e)
  2682. }
  2683. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, checkNil bool, e *Encoder) {
  2684. ee := e.e
  2685. if checkNil && v == nil {
  2686. ee.EncodeNil()
  2687. return
  2688. }
  2689. ee.EncodeMapStart(len(v))
  2690. if e.be {
  2691. for k2, v2 := range v {
  2692. e.encode(k2)
  2693. ee.EncodeUint(uint64(v2))
  2694. }
  2695. } else {
  2696. j := 0
  2697. for k2, v2 := range v {
  2698. if j > 0 {
  2699. ee.EncodeMapEntrySeparator()
  2700. }
  2701. e.encode(k2)
  2702. ee.EncodeMapKVSeparator()
  2703. ee.EncodeUint(uint64(v2))
  2704. j++
  2705. }
  2706. ee.EncodeMapEnd()
  2707. }
  2708. }
  2709. func (f encFnInfo) fastpathEncMapIntfUint16R(rv reflect.Value) {
  2710. fastpathTV.EncMapIntfUint16V(rv.Interface().(map[interface{}]uint16), fastpathCheckNilFalse, f.e)
  2711. }
  2712. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, checkNil bool, e *Encoder) {
  2713. ee := e.e
  2714. if checkNil && v == nil {
  2715. ee.EncodeNil()
  2716. return
  2717. }
  2718. ee.EncodeMapStart(len(v))
  2719. if e.be {
  2720. for k2, v2 := range v {
  2721. e.encode(k2)
  2722. ee.EncodeUint(uint64(v2))
  2723. }
  2724. } else {
  2725. j := 0
  2726. for k2, v2 := range v {
  2727. if j > 0 {
  2728. ee.EncodeMapEntrySeparator()
  2729. }
  2730. e.encode(k2)
  2731. ee.EncodeMapKVSeparator()
  2732. ee.EncodeUint(uint64(v2))
  2733. j++
  2734. }
  2735. ee.EncodeMapEnd()
  2736. }
  2737. }
  2738. func (f encFnInfo) fastpathEncMapIntfUint32R(rv reflect.Value) {
  2739. fastpathTV.EncMapIntfUint32V(rv.Interface().(map[interface{}]uint32), fastpathCheckNilFalse, f.e)
  2740. }
  2741. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, checkNil bool, e *Encoder) {
  2742. ee := e.e
  2743. if checkNil && v == nil {
  2744. ee.EncodeNil()
  2745. return
  2746. }
  2747. ee.EncodeMapStart(len(v))
  2748. if e.be {
  2749. for k2, v2 := range v {
  2750. e.encode(k2)
  2751. ee.EncodeUint(uint64(v2))
  2752. }
  2753. } else {
  2754. j := 0
  2755. for k2, v2 := range v {
  2756. if j > 0 {
  2757. ee.EncodeMapEntrySeparator()
  2758. }
  2759. e.encode(k2)
  2760. ee.EncodeMapKVSeparator()
  2761. ee.EncodeUint(uint64(v2))
  2762. j++
  2763. }
  2764. ee.EncodeMapEnd()
  2765. }
  2766. }
  2767. func (f encFnInfo) fastpathEncMapIntfUint64R(rv reflect.Value) {
  2768. fastpathTV.EncMapIntfUint64V(rv.Interface().(map[interface{}]uint64), fastpathCheckNilFalse, f.e)
  2769. }
  2770. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, checkNil bool, e *Encoder) {
  2771. ee := e.e
  2772. if checkNil && v == nil {
  2773. ee.EncodeNil()
  2774. return
  2775. }
  2776. ee.EncodeMapStart(len(v))
  2777. if e.be {
  2778. for k2, v2 := range v {
  2779. e.encode(k2)
  2780. ee.EncodeUint(uint64(v2))
  2781. }
  2782. } else {
  2783. j := 0
  2784. for k2, v2 := range v {
  2785. if j > 0 {
  2786. ee.EncodeMapEntrySeparator()
  2787. }
  2788. e.encode(k2)
  2789. ee.EncodeMapKVSeparator()
  2790. ee.EncodeUint(uint64(v2))
  2791. j++
  2792. }
  2793. ee.EncodeMapEnd()
  2794. }
  2795. }
  2796. func (f encFnInfo) fastpathEncMapIntfIntR(rv reflect.Value) {
  2797. fastpathTV.EncMapIntfIntV(rv.Interface().(map[interface{}]int), fastpathCheckNilFalse, f.e)
  2798. }
  2799. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, checkNil bool, e *Encoder) {
  2800. ee := e.e
  2801. if checkNil && v == nil {
  2802. ee.EncodeNil()
  2803. return
  2804. }
  2805. ee.EncodeMapStart(len(v))
  2806. if e.be {
  2807. for k2, v2 := range v {
  2808. e.encode(k2)
  2809. ee.EncodeInt(int64(v2))
  2810. }
  2811. } else {
  2812. j := 0
  2813. for k2, v2 := range v {
  2814. if j > 0 {
  2815. ee.EncodeMapEntrySeparator()
  2816. }
  2817. e.encode(k2)
  2818. ee.EncodeMapKVSeparator()
  2819. ee.EncodeInt(int64(v2))
  2820. j++
  2821. }
  2822. ee.EncodeMapEnd()
  2823. }
  2824. }
  2825. func (f encFnInfo) fastpathEncMapIntfInt8R(rv reflect.Value) {
  2826. fastpathTV.EncMapIntfInt8V(rv.Interface().(map[interface{}]int8), fastpathCheckNilFalse, f.e)
  2827. }
  2828. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, checkNil bool, e *Encoder) {
  2829. ee := e.e
  2830. if checkNil && v == nil {
  2831. ee.EncodeNil()
  2832. return
  2833. }
  2834. ee.EncodeMapStart(len(v))
  2835. if e.be {
  2836. for k2, v2 := range v {
  2837. e.encode(k2)
  2838. ee.EncodeInt(int64(v2))
  2839. }
  2840. } else {
  2841. j := 0
  2842. for k2, v2 := range v {
  2843. if j > 0 {
  2844. ee.EncodeMapEntrySeparator()
  2845. }
  2846. e.encode(k2)
  2847. ee.EncodeMapKVSeparator()
  2848. ee.EncodeInt(int64(v2))
  2849. j++
  2850. }
  2851. ee.EncodeMapEnd()
  2852. }
  2853. }
  2854. func (f encFnInfo) fastpathEncMapIntfInt16R(rv reflect.Value) {
  2855. fastpathTV.EncMapIntfInt16V(rv.Interface().(map[interface{}]int16), fastpathCheckNilFalse, f.e)
  2856. }
  2857. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, checkNil bool, e *Encoder) {
  2858. ee := e.e
  2859. if checkNil && v == nil {
  2860. ee.EncodeNil()
  2861. return
  2862. }
  2863. ee.EncodeMapStart(len(v))
  2864. if e.be {
  2865. for k2, v2 := range v {
  2866. e.encode(k2)
  2867. ee.EncodeInt(int64(v2))
  2868. }
  2869. } else {
  2870. j := 0
  2871. for k2, v2 := range v {
  2872. if j > 0 {
  2873. ee.EncodeMapEntrySeparator()
  2874. }
  2875. e.encode(k2)
  2876. ee.EncodeMapKVSeparator()
  2877. ee.EncodeInt(int64(v2))
  2878. j++
  2879. }
  2880. ee.EncodeMapEnd()
  2881. }
  2882. }
  2883. func (f encFnInfo) fastpathEncMapIntfInt32R(rv reflect.Value) {
  2884. fastpathTV.EncMapIntfInt32V(rv.Interface().(map[interface{}]int32), fastpathCheckNilFalse, f.e)
  2885. }
  2886. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, checkNil bool, e *Encoder) {
  2887. ee := e.e
  2888. if checkNil && v == nil {
  2889. ee.EncodeNil()
  2890. return
  2891. }
  2892. ee.EncodeMapStart(len(v))
  2893. if e.be {
  2894. for k2, v2 := range v {
  2895. e.encode(k2)
  2896. ee.EncodeInt(int64(v2))
  2897. }
  2898. } else {
  2899. j := 0
  2900. for k2, v2 := range v {
  2901. if j > 0 {
  2902. ee.EncodeMapEntrySeparator()
  2903. }
  2904. e.encode(k2)
  2905. ee.EncodeMapKVSeparator()
  2906. ee.EncodeInt(int64(v2))
  2907. j++
  2908. }
  2909. ee.EncodeMapEnd()
  2910. }
  2911. }
  2912. func (f encFnInfo) fastpathEncMapIntfInt64R(rv reflect.Value) {
  2913. fastpathTV.EncMapIntfInt64V(rv.Interface().(map[interface{}]int64), fastpathCheckNilFalse, f.e)
  2914. }
  2915. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, checkNil bool, e *Encoder) {
  2916. ee := e.e
  2917. if checkNil && v == nil {
  2918. ee.EncodeNil()
  2919. return
  2920. }
  2921. ee.EncodeMapStart(len(v))
  2922. if e.be {
  2923. for k2, v2 := range v {
  2924. e.encode(k2)
  2925. ee.EncodeInt(int64(v2))
  2926. }
  2927. } else {
  2928. j := 0
  2929. for k2, v2 := range v {
  2930. if j > 0 {
  2931. ee.EncodeMapEntrySeparator()
  2932. }
  2933. e.encode(k2)
  2934. ee.EncodeMapKVSeparator()
  2935. ee.EncodeInt(int64(v2))
  2936. j++
  2937. }
  2938. ee.EncodeMapEnd()
  2939. }
  2940. }
  2941. func (f encFnInfo) fastpathEncMapIntfFloat32R(rv reflect.Value) {
  2942. fastpathTV.EncMapIntfFloat32V(rv.Interface().(map[interface{}]float32), fastpathCheckNilFalse, f.e)
  2943. }
  2944. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, checkNil bool, e *Encoder) {
  2945. ee := e.e
  2946. if checkNil && v == nil {
  2947. ee.EncodeNil()
  2948. return
  2949. }
  2950. ee.EncodeMapStart(len(v))
  2951. if e.be {
  2952. for k2, v2 := range v {
  2953. e.encode(k2)
  2954. ee.EncodeFloat32(v2)
  2955. }
  2956. } else {
  2957. j := 0
  2958. for k2, v2 := range v {
  2959. if j > 0 {
  2960. ee.EncodeMapEntrySeparator()
  2961. }
  2962. e.encode(k2)
  2963. ee.EncodeMapKVSeparator()
  2964. ee.EncodeFloat32(v2)
  2965. j++
  2966. }
  2967. ee.EncodeMapEnd()
  2968. }
  2969. }
  2970. func (f encFnInfo) fastpathEncMapIntfFloat64R(rv reflect.Value) {
  2971. fastpathTV.EncMapIntfFloat64V(rv.Interface().(map[interface{}]float64), fastpathCheckNilFalse, f.e)
  2972. }
  2973. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, checkNil bool, e *Encoder) {
  2974. ee := e.e
  2975. if checkNil && v == nil {
  2976. ee.EncodeNil()
  2977. return
  2978. }
  2979. ee.EncodeMapStart(len(v))
  2980. if e.be {
  2981. for k2, v2 := range v {
  2982. e.encode(k2)
  2983. ee.EncodeFloat64(v2)
  2984. }
  2985. } else {
  2986. j := 0
  2987. for k2, v2 := range v {
  2988. if j > 0 {
  2989. ee.EncodeMapEntrySeparator()
  2990. }
  2991. e.encode(k2)
  2992. ee.EncodeMapKVSeparator()
  2993. ee.EncodeFloat64(v2)
  2994. j++
  2995. }
  2996. ee.EncodeMapEnd()
  2997. }
  2998. }
  2999. func (f encFnInfo) fastpathEncMapIntfBoolR(rv reflect.Value) {
  3000. fastpathTV.EncMapIntfBoolV(rv.Interface().(map[interface{}]bool), fastpathCheckNilFalse, f.e)
  3001. }
  3002. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, checkNil bool, e *Encoder) {
  3003. ee := e.e
  3004. if checkNil && v == nil {
  3005. ee.EncodeNil()
  3006. return
  3007. }
  3008. ee.EncodeMapStart(len(v))
  3009. if e.be {
  3010. for k2, v2 := range v {
  3011. e.encode(k2)
  3012. ee.EncodeBool(v2)
  3013. }
  3014. } else {
  3015. j := 0
  3016. for k2, v2 := range v {
  3017. if j > 0 {
  3018. ee.EncodeMapEntrySeparator()
  3019. }
  3020. e.encode(k2)
  3021. ee.EncodeMapKVSeparator()
  3022. ee.EncodeBool(v2)
  3023. j++
  3024. }
  3025. ee.EncodeMapEnd()
  3026. }
  3027. }
  3028. func (f encFnInfo) fastpathEncMapStringIntfR(rv reflect.Value) {
  3029. fastpathTV.EncMapStringIntfV(rv.Interface().(map[string]interface{}), fastpathCheckNilFalse, f.e)
  3030. }
  3031. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, checkNil bool, e *Encoder) {
  3032. ee := e.e
  3033. if checkNil && v == nil {
  3034. ee.EncodeNil()
  3035. return
  3036. }
  3037. ee.EncodeMapStart(len(v))
  3038. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3039. if e.be {
  3040. for k2, v2 := range v {
  3041. if asSymbols {
  3042. ee.EncodeSymbol(k2)
  3043. } else {
  3044. ee.EncodeString(c_UTF8, k2)
  3045. }
  3046. e.encode(v2)
  3047. }
  3048. } else {
  3049. j := 0
  3050. for k2, v2 := range v {
  3051. if j > 0 {
  3052. ee.EncodeMapEntrySeparator()
  3053. }
  3054. if asSymbols {
  3055. ee.EncodeSymbol(k2)
  3056. } else {
  3057. ee.EncodeString(c_UTF8, k2)
  3058. }
  3059. ee.EncodeMapKVSeparator()
  3060. e.encode(v2)
  3061. j++
  3062. }
  3063. ee.EncodeMapEnd()
  3064. }
  3065. }
  3066. func (f encFnInfo) fastpathEncMapStringStringR(rv reflect.Value) {
  3067. fastpathTV.EncMapStringStringV(rv.Interface().(map[string]string), fastpathCheckNilFalse, f.e)
  3068. }
  3069. func (_ fastpathT) EncMapStringStringV(v map[string]string, checkNil bool, e *Encoder) {
  3070. ee := e.e
  3071. if checkNil && v == nil {
  3072. ee.EncodeNil()
  3073. return
  3074. }
  3075. ee.EncodeMapStart(len(v))
  3076. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3077. if e.be {
  3078. for k2, v2 := range v {
  3079. if asSymbols {
  3080. ee.EncodeSymbol(k2)
  3081. } else {
  3082. ee.EncodeString(c_UTF8, k2)
  3083. }
  3084. ee.EncodeString(c_UTF8, v2)
  3085. }
  3086. } else {
  3087. j := 0
  3088. for k2, v2 := range v {
  3089. if j > 0 {
  3090. ee.EncodeMapEntrySeparator()
  3091. }
  3092. if asSymbols {
  3093. ee.EncodeSymbol(k2)
  3094. } else {
  3095. ee.EncodeString(c_UTF8, k2)
  3096. }
  3097. ee.EncodeMapKVSeparator()
  3098. ee.EncodeString(c_UTF8, v2)
  3099. j++
  3100. }
  3101. ee.EncodeMapEnd()
  3102. }
  3103. }
  3104. func (f encFnInfo) fastpathEncMapStringUintR(rv reflect.Value) {
  3105. fastpathTV.EncMapStringUintV(rv.Interface().(map[string]uint), fastpathCheckNilFalse, f.e)
  3106. }
  3107. func (_ fastpathT) EncMapStringUintV(v map[string]uint, checkNil bool, e *Encoder) {
  3108. ee := e.e
  3109. if checkNil && v == nil {
  3110. ee.EncodeNil()
  3111. return
  3112. }
  3113. ee.EncodeMapStart(len(v))
  3114. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3115. if e.be {
  3116. for k2, v2 := range v {
  3117. if asSymbols {
  3118. ee.EncodeSymbol(k2)
  3119. } else {
  3120. ee.EncodeString(c_UTF8, k2)
  3121. }
  3122. ee.EncodeUint(uint64(v2))
  3123. }
  3124. } else {
  3125. j := 0
  3126. for k2, v2 := range v {
  3127. if j > 0 {
  3128. ee.EncodeMapEntrySeparator()
  3129. }
  3130. if asSymbols {
  3131. ee.EncodeSymbol(k2)
  3132. } else {
  3133. ee.EncodeString(c_UTF8, k2)
  3134. }
  3135. ee.EncodeMapKVSeparator()
  3136. ee.EncodeUint(uint64(v2))
  3137. j++
  3138. }
  3139. ee.EncodeMapEnd()
  3140. }
  3141. }
  3142. func (f encFnInfo) fastpathEncMapStringUint8R(rv reflect.Value) {
  3143. fastpathTV.EncMapStringUint8V(rv.Interface().(map[string]uint8), fastpathCheckNilFalse, f.e)
  3144. }
  3145. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, checkNil bool, e *Encoder) {
  3146. ee := e.e
  3147. if checkNil && v == nil {
  3148. ee.EncodeNil()
  3149. return
  3150. }
  3151. ee.EncodeMapStart(len(v))
  3152. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3153. if e.be {
  3154. for k2, v2 := range v {
  3155. if asSymbols {
  3156. ee.EncodeSymbol(k2)
  3157. } else {
  3158. ee.EncodeString(c_UTF8, k2)
  3159. }
  3160. ee.EncodeUint(uint64(v2))
  3161. }
  3162. } else {
  3163. j := 0
  3164. for k2, v2 := range v {
  3165. if j > 0 {
  3166. ee.EncodeMapEntrySeparator()
  3167. }
  3168. if asSymbols {
  3169. ee.EncodeSymbol(k2)
  3170. } else {
  3171. ee.EncodeString(c_UTF8, k2)
  3172. }
  3173. ee.EncodeMapKVSeparator()
  3174. ee.EncodeUint(uint64(v2))
  3175. j++
  3176. }
  3177. ee.EncodeMapEnd()
  3178. }
  3179. }
  3180. func (f encFnInfo) fastpathEncMapStringUint16R(rv reflect.Value) {
  3181. fastpathTV.EncMapStringUint16V(rv.Interface().(map[string]uint16), fastpathCheckNilFalse, f.e)
  3182. }
  3183. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, checkNil bool, e *Encoder) {
  3184. ee := e.e
  3185. if checkNil && v == nil {
  3186. ee.EncodeNil()
  3187. return
  3188. }
  3189. ee.EncodeMapStart(len(v))
  3190. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3191. if e.be {
  3192. for k2, v2 := range v {
  3193. if asSymbols {
  3194. ee.EncodeSymbol(k2)
  3195. } else {
  3196. ee.EncodeString(c_UTF8, k2)
  3197. }
  3198. ee.EncodeUint(uint64(v2))
  3199. }
  3200. } else {
  3201. j := 0
  3202. for k2, v2 := range v {
  3203. if j > 0 {
  3204. ee.EncodeMapEntrySeparator()
  3205. }
  3206. if asSymbols {
  3207. ee.EncodeSymbol(k2)
  3208. } else {
  3209. ee.EncodeString(c_UTF8, k2)
  3210. }
  3211. ee.EncodeMapKVSeparator()
  3212. ee.EncodeUint(uint64(v2))
  3213. j++
  3214. }
  3215. ee.EncodeMapEnd()
  3216. }
  3217. }
  3218. func (f encFnInfo) fastpathEncMapStringUint32R(rv reflect.Value) {
  3219. fastpathTV.EncMapStringUint32V(rv.Interface().(map[string]uint32), fastpathCheckNilFalse, f.e)
  3220. }
  3221. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, checkNil bool, e *Encoder) {
  3222. ee := e.e
  3223. if checkNil && v == nil {
  3224. ee.EncodeNil()
  3225. return
  3226. }
  3227. ee.EncodeMapStart(len(v))
  3228. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3229. if e.be {
  3230. for k2, v2 := range v {
  3231. if asSymbols {
  3232. ee.EncodeSymbol(k2)
  3233. } else {
  3234. ee.EncodeString(c_UTF8, k2)
  3235. }
  3236. ee.EncodeUint(uint64(v2))
  3237. }
  3238. } else {
  3239. j := 0
  3240. for k2, v2 := range v {
  3241. if j > 0 {
  3242. ee.EncodeMapEntrySeparator()
  3243. }
  3244. if asSymbols {
  3245. ee.EncodeSymbol(k2)
  3246. } else {
  3247. ee.EncodeString(c_UTF8, k2)
  3248. }
  3249. ee.EncodeMapKVSeparator()
  3250. ee.EncodeUint(uint64(v2))
  3251. j++
  3252. }
  3253. ee.EncodeMapEnd()
  3254. }
  3255. }
  3256. func (f encFnInfo) fastpathEncMapStringUint64R(rv reflect.Value) {
  3257. fastpathTV.EncMapStringUint64V(rv.Interface().(map[string]uint64), fastpathCheckNilFalse, f.e)
  3258. }
  3259. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, checkNil bool, e *Encoder) {
  3260. ee := e.e
  3261. if checkNil && v == nil {
  3262. ee.EncodeNil()
  3263. return
  3264. }
  3265. ee.EncodeMapStart(len(v))
  3266. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3267. if e.be {
  3268. for k2, v2 := range v {
  3269. if asSymbols {
  3270. ee.EncodeSymbol(k2)
  3271. } else {
  3272. ee.EncodeString(c_UTF8, k2)
  3273. }
  3274. ee.EncodeUint(uint64(v2))
  3275. }
  3276. } else {
  3277. j := 0
  3278. for k2, v2 := range v {
  3279. if j > 0 {
  3280. ee.EncodeMapEntrySeparator()
  3281. }
  3282. if asSymbols {
  3283. ee.EncodeSymbol(k2)
  3284. } else {
  3285. ee.EncodeString(c_UTF8, k2)
  3286. }
  3287. ee.EncodeMapKVSeparator()
  3288. ee.EncodeUint(uint64(v2))
  3289. j++
  3290. }
  3291. ee.EncodeMapEnd()
  3292. }
  3293. }
  3294. func (f encFnInfo) fastpathEncMapStringIntR(rv reflect.Value) {
  3295. fastpathTV.EncMapStringIntV(rv.Interface().(map[string]int), fastpathCheckNilFalse, f.e)
  3296. }
  3297. func (_ fastpathT) EncMapStringIntV(v map[string]int, checkNil bool, e *Encoder) {
  3298. ee := e.e
  3299. if checkNil && v == nil {
  3300. ee.EncodeNil()
  3301. return
  3302. }
  3303. ee.EncodeMapStart(len(v))
  3304. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3305. if e.be {
  3306. for k2, v2 := range v {
  3307. if asSymbols {
  3308. ee.EncodeSymbol(k2)
  3309. } else {
  3310. ee.EncodeString(c_UTF8, k2)
  3311. }
  3312. ee.EncodeInt(int64(v2))
  3313. }
  3314. } else {
  3315. j := 0
  3316. for k2, v2 := range v {
  3317. if j > 0 {
  3318. ee.EncodeMapEntrySeparator()
  3319. }
  3320. if asSymbols {
  3321. ee.EncodeSymbol(k2)
  3322. } else {
  3323. ee.EncodeString(c_UTF8, k2)
  3324. }
  3325. ee.EncodeMapKVSeparator()
  3326. ee.EncodeInt(int64(v2))
  3327. j++
  3328. }
  3329. ee.EncodeMapEnd()
  3330. }
  3331. }
  3332. func (f encFnInfo) fastpathEncMapStringInt8R(rv reflect.Value) {
  3333. fastpathTV.EncMapStringInt8V(rv.Interface().(map[string]int8), fastpathCheckNilFalse, f.e)
  3334. }
  3335. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, checkNil bool, e *Encoder) {
  3336. ee := e.e
  3337. if checkNil && v == nil {
  3338. ee.EncodeNil()
  3339. return
  3340. }
  3341. ee.EncodeMapStart(len(v))
  3342. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3343. if e.be {
  3344. for k2, v2 := range v {
  3345. if asSymbols {
  3346. ee.EncodeSymbol(k2)
  3347. } else {
  3348. ee.EncodeString(c_UTF8, k2)
  3349. }
  3350. ee.EncodeInt(int64(v2))
  3351. }
  3352. } else {
  3353. j := 0
  3354. for k2, v2 := range v {
  3355. if j > 0 {
  3356. ee.EncodeMapEntrySeparator()
  3357. }
  3358. if asSymbols {
  3359. ee.EncodeSymbol(k2)
  3360. } else {
  3361. ee.EncodeString(c_UTF8, k2)
  3362. }
  3363. ee.EncodeMapKVSeparator()
  3364. ee.EncodeInt(int64(v2))
  3365. j++
  3366. }
  3367. ee.EncodeMapEnd()
  3368. }
  3369. }
  3370. func (f encFnInfo) fastpathEncMapStringInt16R(rv reflect.Value) {
  3371. fastpathTV.EncMapStringInt16V(rv.Interface().(map[string]int16), fastpathCheckNilFalse, f.e)
  3372. }
  3373. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, checkNil bool, e *Encoder) {
  3374. ee := e.e
  3375. if checkNil && v == nil {
  3376. ee.EncodeNil()
  3377. return
  3378. }
  3379. ee.EncodeMapStart(len(v))
  3380. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3381. if e.be {
  3382. for k2, v2 := range v {
  3383. if asSymbols {
  3384. ee.EncodeSymbol(k2)
  3385. } else {
  3386. ee.EncodeString(c_UTF8, k2)
  3387. }
  3388. ee.EncodeInt(int64(v2))
  3389. }
  3390. } else {
  3391. j := 0
  3392. for k2, v2 := range v {
  3393. if j > 0 {
  3394. ee.EncodeMapEntrySeparator()
  3395. }
  3396. if asSymbols {
  3397. ee.EncodeSymbol(k2)
  3398. } else {
  3399. ee.EncodeString(c_UTF8, k2)
  3400. }
  3401. ee.EncodeMapKVSeparator()
  3402. ee.EncodeInt(int64(v2))
  3403. j++
  3404. }
  3405. ee.EncodeMapEnd()
  3406. }
  3407. }
  3408. func (f encFnInfo) fastpathEncMapStringInt32R(rv reflect.Value) {
  3409. fastpathTV.EncMapStringInt32V(rv.Interface().(map[string]int32), fastpathCheckNilFalse, f.e)
  3410. }
  3411. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, checkNil bool, e *Encoder) {
  3412. ee := e.e
  3413. if checkNil && v == nil {
  3414. ee.EncodeNil()
  3415. return
  3416. }
  3417. ee.EncodeMapStart(len(v))
  3418. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3419. if e.be {
  3420. for k2, v2 := range v {
  3421. if asSymbols {
  3422. ee.EncodeSymbol(k2)
  3423. } else {
  3424. ee.EncodeString(c_UTF8, k2)
  3425. }
  3426. ee.EncodeInt(int64(v2))
  3427. }
  3428. } else {
  3429. j := 0
  3430. for k2, v2 := range v {
  3431. if j > 0 {
  3432. ee.EncodeMapEntrySeparator()
  3433. }
  3434. if asSymbols {
  3435. ee.EncodeSymbol(k2)
  3436. } else {
  3437. ee.EncodeString(c_UTF8, k2)
  3438. }
  3439. ee.EncodeMapKVSeparator()
  3440. ee.EncodeInt(int64(v2))
  3441. j++
  3442. }
  3443. ee.EncodeMapEnd()
  3444. }
  3445. }
  3446. func (f encFnInfo) fastpathEncMapStringInt64R(rv reflect.Value) {
  3447. fastpathTV.EncMapStringInt64V(rv.Interface().(map[string]int64), fastpathCheckNilFalse, f.e)
  3448. }
  3449. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, checkNil bool, e *Encoder) {
  3450. ee := e.e
  3451. if checkNil && v == nil {
  3452. ee.EncodeNil()
  3453. return
  3454. }
  3455. ee.EncodeMapStart(len(v))
  3456. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3457. if e.be {
  3458. for k2, v2 := range v {
  3459. if asSymbols {
  3460. ee.EncodeSymbol(k2)
  3461. } else {
  3462. ee.EncodeString(c_UTF8, k2)
  3463. }
  3464. ee.EncodeInt(int64(v2))
  3465. }
  3466. } else {
  3467. j := 0
  3468. for k2, v2 := range v {
  3469. if j > 0 {
  3470. ee.EncodeMapEntrySeparator()
  3471. }
  3472. if asSymbols {
  3473. ee.EncodeSymbol(k2)
  3474. } else {
  3475. ee.EncodeString(c_UTF8, k2)
  3476. }
  3477. ee.EncodeMapKVSeparator()
  3478. ee.EncodeInt(int64(v2))
  3479. j++
  3480. }
  3481. ee.EncodeMapEnd()
  3482. }
  3483. }
  3484. func (f encFnInfo) fastpathEncMapStringFloat32R(rv reflect.Value) {
  3485. fastpathTV.EncMapStringFloat32V(rv.Interface().(map[string]float32), fastpathCheckNilFalse, f.e)
  3486. }
  3487. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, checkNil bool, e *Encoder) {
  3488. ee := e.e
  3489. if checkNil && v == nil {
  3490. ee.EncodeNil()
  3491. return
  3492. }
  3493. ee.EncodeMapStart(len(v))
  3494. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3495. if e.be {
  3496. for k2, v2 := range v {
  3497. if asSymbols {
  3498. ee.EncodeSymbol(k2)
  3499. } else {
  3500. ee.EncodeString(c_UTF8, k2)
  3501. }
  3502. ee.EncodeFloat32(v2)
  3503. }
  3504. } else {
  3505. j := 0
  3506. for k2, v2 := range v {
  3507. if j > 0 {
  3508. ee.EncodeMapEntrySeparator()
  3509. }
  3510. if asSymbols {
  3511. ee.EncodeSymbol(k2)
  3512. } else {
  3513. ee.EncodeString(c_UTF8, k2)
  3514. }
  3515. ee.EncodeMapKVSeparator()
  3516. ee.EncodeFloat32(v2)
  3517. j++
  3518. }
  3519. ee.EncodeMapEnd()
  3520. }
  3521. }
  3522. func (f encFnInfo) fastpathEncMapStringFloat64R(rv reflect.Value) {
  3523. fastpathTV.EncMapStringFloat64V(rv.Interface().(map[string]float64), fastpathCheckNilFalse, f.e)
  3524. }
  3525. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, checkNil bool, e *Encoder) {
  3526. ee := e.e
  3527. if checkNil && v == nil {
  3528. ee.EncodeNil()
  3529. return
  3530. }
  3531. ee.EncodeMapStart(len(v))
  3532. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3533. if e.be {
  3534. for k2, v2 := range v {
  3535. if asSymbols {
  3536. ee.EncodeSymbol(k2)
  3537. } else {
  3538. ee.EncodeString(c_UTF8, k2)
  3539. }
  3540. ee.EncodeFloat64(v2)
  3541. }
  3542. } else {
  3543. j := 0
  3544. for k2, v2 := range v {
  3545. if j > 0 {
  3546. ee.EncodeMapEntrySeparator()
  3547. }
  3548. if asSymbols {
  3549. ee.EncodeSymbol(k2)
  3550. } else {
  3551. ee.EncodeString(c_UTF8, k2)
  3552. }
  3553. ee.EncodeMapKVSeparator()
  3554. ee.EncodeFloat64(v2)
  3555. j++
  3556. }
  3557. ee.EncodeMapEnd()
  3558. }
  3559. }
  3560. func (f encFnInfo) fastpathEncMapStringBoolR(rv reflect.Value) {
  3561. fastpathTV.EncMapStringBoolV(rv.Interface().(map[string]bool), fastpathCheckNilFalse, f.e)
  3562. }
  3563. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, checkNil bool, e *Encoder) {
  3564. ee := e.e
  3565. if checkNil && v == nil {
  3566. ee.EncodeNil()
  3567. return
  3568. }
  3569. ee.EncodeMapStart(len(v))
  3570. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3571. if e.be {
  3572. for k2, v2 := range v {
  3573. if asSymbols {
  3574. ee.EncodeSymbol(k2)
  3575. } else {
  3576. ee.EncodeString(c_UTF8, k2)
  3577. }
  3578. ee.EncodeBool(v2)
  3579. }
  3580. } else {
  3581. j := 0
  3582. for k2, v2 := range v {
  3583. if j > 0 {
  3584. ee.EncodeMapEntrySeparator()
  3585. }
  3586. if asSymbols {
  3587. ee.EncodeSymbol(k2)
  3588. } else {
  3589. ee.EncodeString(c_UTF8, k2)
  3590. }
  3591. ee.EncodeMapKVSeparator()
  3592. ee.EncodeBool(v2)
  3593. j++
  3594. }
  3595. ee.EncodeMapEnd()
  3596. }
  3597. }
  3598. func (f encFnInfo) fastpathEncMapFloat32IntfR(rv reflect.Value) {
  3599. fastpathTV.EncMapFloat32IntfV(rv.Interface().(map[float32]interface{}), fastpathCheckNilFalse, f.e)
  3600. }
  3601. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, checkNil bool, e *Encoder) {
  3602. ee := e.e
  3603. if checkNil && v == nil {
  3604. ee.EncodeNil()
  3605. return
  3606. }
  3607. ee.EncodeMapStart(len(v))
  3608. if e.be {
  3609. for k2, v2 := range v {
  3610. ee.EncodeFloat32(k2)
  3611. e.encode(v2)
  3612. }
  3613. } else {
  3614. j := 0
  3615. for k2, v2 := range v {
  3616. if j > 0 {
  3617. ee.EncodeMapEntrySeparator()
  3618. }
  3619. ee.EncodeFloat32(k2)
  3620. ee.EncodeMapKVSeparator()
  3621. e.encode(v2)
  3622. j++
  3623. }
  3624. ee.EncodeMapEnd()
  3625. }
  3626. }
  3627. func (f encFnInfo) fastpathEncMapFloat32StringR(rv reflect.Value) {
  3628. fastpathTV.EncMapFloat32StringV(rv.Interface().(map[float32]string), fastpathCheckNilFalse, f.e)
  3629. }
  3630. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, checkNil bool, e *Encoder) {
  3631. ee := e.e
  3632. if checkNil && v == nil {
  3633. ee.EncodeNil()
  3634. return
  3635. }
  3636. ee.EncodeMapStart(len(v))
  3637. if e.be {
  3638. for k2, v2 := range v {
  3639. ee.EncodeFloat32(k2)
  3640. ee.EncodeString(c_UTF8, v2)
  3641. }
  3642. } else {
  3643. j := 0
  3644. for k2, v2 := range v {
  3645. if j > 0 {
  3646. ee.EncodeMapEntrySeparator()
  3647. }
  3648. ee.EncodeFloat32(k2)
  3649. ee.EncodeMapKVSeparator()
  3650. ee.EncodeString(c_UTF8, v2)
  3651. j++
  3652. }
  3653. ee.EncodeMapEnd()
  3654. }
  3655. }
  3656. func (f encFnInfo) fastpathEncMapFloat32UintR(rv reflect.Value) {
  3657. fastpathTV.EncMapFloat32UintV(rv.Interface().(map[float32]uint), fastpathCheckNilFalse, f.e)
  3658. }
  3659. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, checkNil bool, e *Encoder) {
  3660. ee := e.e
  3661. if checkNil && v == nil {
  3662. ee.EncodeNil()
  3663. return
  3664. }
  3665. ee.EncodeMapStart(len(v))
  3666. if e.be {
  3667. for k2, v2 := range v {
  3668. ee.EncodeFloat32(k2)
  3669. ee.EncodeUint(uint64(v2))
  3670. }
  3671. } else {
  3672. j := 0
  3673. for k2, v2 := range v {
  3674. if j > 0 {
  3675. ee.EncodeMapEntrySeparator()
  3676. }
  3677. ee.EncodeFloat32(k2)
  3678. ee.EncodeMapKVSeparator()
  3679. ee.EncodeUint(uint64(v2))
  3680. j++
  3681. }
  3682. ee.EncodeMapEnd()
  3683. }
  3684. }
  3685. func (f encFnInfo) fastpathEncMapFloat32Uint8R(rv reflect.Value) {
  3686. fastpathTV.EncMapFloat32Uint8V(rv.Interface().(map[float32]uint8), fastpathCheckNilFalse, f.e)
  3687. }
  3688. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, checkNil bool, e *Encoder) {
  3689. ee := e.e
  3690. if checkNil && v == nil {
  3691. ee.EncodeNil()
  3692. return
  3693. }
  3694. ee.EncodeMapStart(len(v))
  3695. if e.be {
  3696. for k2, v2 := range v {
  3697. ee.EncodeFloat32(k2)
  3698. ee.EncodeUint(uint64(v2))
  3699. }
  3700. } else {
  3701. j := 0
  3702. for k2, v2 := range v {
  3703. if j > 0 {
  3704. ee.EncodeMapEntrySeparator()
  3705. }
  3706. ee.EncodeFloat32(k2)
  3707. ee.EncodeMapKVSeparator()
  3708. ee.EncodeUint(uint64(v2))
  3709. j++
  3710. }
  3711. ee.EncodeMapEnd()
  3712. }
  3713. }
  3714. func (f encFnInfo) fastpathEncMapFloat32Uint16R(rv reflect.Value) {
  3715. fastpathTV.EncMapFloat32Uint16V(rv.Interface().(map[float32]uint16), fastpathCheckNilFalse, f.e)
  3716. }
  3717. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, checkNil bool, e *Encoder) {
  3718. ee := e.e
  3719. if checkNil && v == nil {
  3720. ee.EncodeNil()
  3721. return
  3722. }
  3723. ee.EncodeMapStart(len(v))
  3724. if e.be {
  3725. for k2, v2 := range v {
  3726. ee.EncodeFloat32(k2)
  3727. ee.EncodeUint(uint64(v2))
  3728. }
  3729. } else {
  3730. j := 0
  3731. for k2, v2 := range v {
  3732. if j > 0 {
  3733. ee.EncodeMapEntrySeparator()
  3734. }
  3735. ee.EncodeFloat32(k2)
  3736. ee.EncodeMapKVSeparator()
  3737. ee.EncodeUint(uint64(v2))
  3738. j++
  3739. }
  3740. ee.EncodeMapEnd()
  3741. }
  3742. }
  3743. func (f encFnInfo) fastpathEncMapFloat32Uint32R(rv reflect.Value) {
  3744. fastpathTV.EncMapFloat32Uint32V(rv.Interface().(map[float32]uint32), fastpathCheckNilFalse, f.e)
  3745. }
  3746. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, checkNil bool, e *Encoder) {
  3747. ee := e.e
  3748. if checkNil && v == nil {
  3749. ee.EncodeNil()
  3750. return
  3751. }
  3752. ee.EncodeMapStart(len(v))
  3753. if e.be {
  3754. for k2, v2 := range v {
  3755. ee.EncodeFloat32(k2)
  3756. ee.EncodeUint(uint64(v2))
  3757. }
  3758. } else {
  3759. j := 0
  3760. for k2, v2 := range v {
  3761. if j > 0 {
  3762. ee.EncodeMapEntrySeparator()
  3763. }
  3764. ee.EncodeFloat32(k2)
  3765. ee.EncodeMapKVSeparator()
  3766. ee.EncodeUint(uint64(v2))
  3767. j++
  3768. }
  3769. ee.EncodeMapEnd()
  3770. }
  3771. }
  3772. func (f encFnInfo) fastpathEncMapFloat32Uint64R(rv reflect.Value) {
  3773. fastpathTV.EncMapFloat32Uint64V(rv.Interface().(map[float32]uint64), fastpathCheckNilFalse, f.e)
  3774. }
  3775. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, checkNil bool, e *Encoder) {
  3776. ee := e.e
  3777. if checkNil && v == nil {
  3778. ee.EncodeNil()
  3779. return
  3780. }
  3781. ee.EncodeMapStart(len(v))
  3782. if e.be {
  3783. for k2, v2 := range v {
  3784. ee.EncodeFloat32(k2)
  3785. ee.EncodeUint(uint64(v2))
  3786. }
  3787. } else {
  3788. j := 0
  3789. for k2, v2 := range v {
  3790. if j > 0 {
  3791. ee.EncodeMapEntrySeparator()
  3792. }
  3793. ee.EncodeFloat32(k2)
  3794. ee.EncodeMapKVSeparator()
  3795. ee.EncodeUint(uint64(v2))
  3796. j++
  3797. }
  3798. ee.EncodeMapEnd()
  3799. }
  3800. }
  3801. func (f encFnInfo) fastpathEncMapFloat32IntR(rv reflect.Value) {
  3802. fastpathTV.EncMapFloat32IntV(rv.Interface().(map[float32]int), fastpathCheckNilFalse, f.e)
  3803. }
  3804. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, checkNil bool, e *Encoder) {
  3805. ee := e.e
  3806. if checkNil && v == nil {
  3807. ee.EncodeNil()
  3808. return
  3809. }
  3810. ee.EncodeMapStart(len(v))
  3811. if e.be {
  3812. for k2, v2 := range v {
  3813. ee.EncodeFloat32(k2)
  3814. ee.EncodeInt(int64(v2))
  3815. }
  3816. } else {
  3817. j := 0
  3818. for k2, v2 := range v {
  3819. if j > 0 {
  3820. ee.EncodeMapEntrySeparator()
  3821. }
  3822. ee.EncodeFloat32(k2)
  3823. ee.EncodeMapKVSeparator()
  3824. ee.EncodeInt(int64(v2))
  3825. j++
  3826. }
  3827. ee.EncodeMapEnd()
  3828. }
  3829. }
  3830. func (f encFnInfo) fastpathEncMapFloat32Int8R(rv reflect.Value) {
  3831. fastpathTV.EncMapFloat32Int8V(rv.Interface().(map[float32]int8), fastpathCheckNilFalse, f.e)
  3832. }
  3833. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, checkNil bool, e *Encoder) {
  3834. ee := e.e
  3835. if checkNil && v == nil {
  3836. ee.EncodeNil()
  3837. return
  3838. }
  3839. ee.EncodeMapStart(len(v))
  3840. if e.be {
  3841. for k2, v2 := range v {
  3842. ee.EncodeFloat32(k2)
  3843. ee.EncodeInt(int64(v2))
  3844. }
  3845. } else {
  3846. j := 0
  3847. for k2, v2 := range v {
  3848. if j > 0 {
  3849. ee.EncodeMapEntrySeparator()
  3850. }
  3851. ee.EncodeFloat32(k2)
  3852. ee.EncodeMapKVSeparator()
  3853. ee.EncodeInt(int64(v2))
  3854. j++
  3855. }
  3856. ee.EncodeMapEnd()
  3857. }
  3858. }
  3859. func (f encFnInfo) fastpathEncMapFloat32Int16R(rv reflect.Value) {
  3860. fastpathTV.EncMapFloat32Int16V(rv.Interface().(map[float32]int16), fastpathCheckNilFalse, f.e)
  3861. }
  3862. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, checkNil bool, e *Encoder) {
  3863. ee := e.e
  3864. if checkNil && v == nil {
  3865. ee.EncodeNil()
  3866. return
  3867. }
  3868. ee.EncodeMapStart(len(v))
  3869. if e.be {
  3870. for k2, v2 := range v {
  3871. ee.EncodeFloat32(k2)
  3872. ee.EncodeInt(int64(v2))
  3873. }
  3874. } else {
  3875. j := 0
  3876. for k2, v2 := range v {
  3877. if j > 0 {
  3878. ee.EncodeMapEntrySeparator()
  3879. }
  3880. ee.EncodeFloat32(k2)
  3881. ee.EncodeMapKVSeparator()
  3882. ee.EncodeInt(int64(v2))
  3883. j++
  3884. }
  3885. ee.EncodeMapEnd()
  3886. }
  3887. }
  3888. func (f encFnInfo) fastpathEncMapFloat32Int32R(rv reflect.Value) {
  3889. fastpathTV.EncMapFloat32Int32V(rv.Interface().(map[float32]int32), fastpathCheckNilFalse, f.e)
  3890. }
  3891. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, checkNil bool, e *Encoder) {
  3892. ee := e.e
  3893. if checkNil && v == nil {
  3894. ee.EncodeNil()
  3895. return
  3896. }
  3897. ee.EncodeMapStart(len(v))
  3898. if e.be {
  3899. for k2, v2 := range v {
  3900. ee.EncodeFloat32(k2)
  3901. ee.EncodeInt(int64(v2))
  3902. }
  3903. } else {
  3904. j := 0
  3905. for k2, v2 := range v {
  3906. if j > 0 {
  3907. ee.EncodeMapEntrySeparator()
  3908. }
  3909. ee.EncodeFloat32(k2)
  3910. ee.EncodeMapKVSeparator()
  3911. ee.EncodeInt(int64(v2))
  3912. j++
  3913. }
  3914. ee.EncodeMapEnd()
  3915. }
  3916. }
  3917. func (f encFnInfo) fastpathEncMapFloat32Int64R(rv reflect.Value) {
  3918. fastpathTV.EncMapFloat32Int64V(rv.Interface().(map[float32]int64), fastpathCheckNilFalse, f.e)
  3919. }
  3920. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, checkNil bool, e *Encoder) {
  3921. ee := e.e
  3922. if checkNil && v == nil {
  3923. ee.EncodeNil()
  3924. return
  3925. }
  3926. ee.EncodeMapStart(len(v))
  3927. if e.be {
  3928. for k2, v2 := range v {
  3929. ee.EncodeFloat32(k2)
  3930. ee.EncodeInt(int64(v2))
  3931. }
  3932. } else {
  3933. j := 0
  3934. for k2, v2 := range v {
  3935. if j > 0 {
  3936. ee.EncodeMapEntrySeparator()
  3937. }
  3938. ee.EncodeFloat32(k2)
  3939. ee.EncodeMapKVSeparator()
  3940. ee.EncodeInt(int64(v2))
  3941. j++
  3942. }
  3943. ee.EncodeMapEnd()
  3944. }
  3945. }
  3946. func (f encFnInfo) fastpathEncMapFloat32Float32R(rv reflect.Value) {
  3947. fastpathTV.EncMapFloat32Float32V(rv.Interface().(map[float32]float32), fastpathCheckNilFalse, f.e)
  3948. }
  3949. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, checkNil bool, e *Encoder) {
  3950. ee := e.e
  3951. if checkNil && v == nil {
  3952. ee.EncodeNil()
  3953. return
  3954. }
  3955. ee.EncodeMapStart(len(v))
  3956. if e.be {
  3957. for k2, v2 := range v {
  3958. ee.EncodeFloat32(k2)
  3959. ee.EncodeFloat32(v2)
  3960. }
  3961. } else {
  3962. j := 0
  3963. for k2, v2 := range v {
  3964. if j > 0 {
  3965. ee.EncodeMapEntrySeparator()
  3966. }
  3967. ee.EncodeFloat32(k2)
  3968. ee.EncodeMapKVSeparator()
  3969. ee.EncodeFloat32(v2)
  3970. j++
  3971. }
  3972. ee.EncodeMapEnd()
  3973. }
  3974. }
  3975. func (f encFnInfo) fastpathEncMapFloat32Float64R(rv reflect.Value) {
  3976. fastpathTV.EncMapFloat32Float64V(rv.Interface().(map[float32]float64), fastpathCheckNilFalse, f.e)
  3977. }
  3978. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, checkNil bool, e *Encoder) {
  3979. ee := e.e
  3980. if checkNil && v == nil {
  3981. ee.EncodeNil()
  3982. return
  3983. }
  3984. ee.EncodeMapStart(len(v))
  3985. if e.be {
  3986. for k2, v2 := range v {
  3987. ee.EncodeFloat32(k2)
  3988. ee.EncodeFloat64(v2)
  3989. }
  3990. } else {
  3991. j := 0
  3992. for k2, v2 := range v {
  3993. if j > 0 {
  3994. ee.EncodeMapEntrySeparator()
  3995. }
  3996. ee.EncodeFloat32(k2)
  3997. ee.EncodeMapKVSeparator()
  3998. ee.EncodeFloat64(v2)
  3999. j++
  4000. }
  4001. ee.EncodeMapEnd()
  4002. }
  4003. }
  4004. func (f encFnInfo) fastpathEncMapFloat32BoolR(rv reflect.Value) {
  4005. fastpathTV.EncMapFloat32BoolV(rv.Interface().(map[float32]bool), fastpathCheckNilFalse, f.e)
  4006. }
  4007. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, checkNil bool, e *Encoder) {
  4008. ee := e.e
  4009. if checkNil && v == nil {
  4010. ee.EncodeNil()
  4011. return
  4012. }
  4013. ee.EncodeMapStart(len(v))
  4014. if e.be {
  4015. for k2, v2 := range v {
  4016. ee.EncodeFloat32(k2)
  4017. ee.EncodeBool(v2)
  4018. }
  4019. } else {
  4020. j := 0
  4021. for k2, v2 := range v {
  4022. if j > 0 {
  4023. ee.EncodeMapEntrySeparator()
  4024. }
  4025. ee.EncodeFloat32(k2)
  4026. ee.EncodeMapKVSeparator()
  4027. ee.EncodeBool(v2)
  4028. j++
  4029. }
  4030. ee.EncodeMapEnd()
  4031. }
  4032. }
  4033. func (f encFnInfo) fastpathEncMapFloat64IntfR(rv reflect.Value) {
  4034. fastpathTV.EncMapFloat64IntfV(rv.Interface().(map[float64]interface{}), fastpathCheckNilFalse, f.e)
  4035. }
  4036. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, checkNil bool, e *Encoder) {
  4037. ee := e.e
  4038. if checkNil && v == nil {
  4039. ee.EncodeNil()
  4040. return
  4041. }
  4042. ee.EncodeMapStart(len(v))
  4043. if e.be {
  4044. for k2, v2 := range v {
  4045. ee.EncodeFloat64(k2)
  4046. e.encode(v2)
  4047. }
  4048. } else {
  4049. j := 0
  4050. for k2, v2 := range v {
  4051. if j > 0 {
  4052. ee.EncodeMapEntrySeparator()
  4053. }
  4054. ee.EncodeFloat64(k2)
  4055. ee.EncodeMapKVSeparator()
  4056. e.encode(v2)
  4057. j++
  4058. }
  4059. ee.EncodeMapEnd()
  4060. }
  4061. }
  4062. func (f encFnInfo) fastpathEncMapFloat64StringR(rv reflect.Value) {
  4063. fastpathTV.EncMapFloat64StringV(rv.Interface().(map[float64]string), fastpathCheckNilFalse, f.e)
  4064. }
  4065. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, checkNil bool, e *Encoder) {
  4066. ee := e.e
  4067. if checkNil && v == nil {
  4068. ee.EncodeNil()
  4069. return
  4070. }
  4071. ee.EncodeMapStart(len(v))
  4072. if e.be {
  4073. for k2, v2 := range v {
  4074. ee.EncodeFloat64(k2)
  4075. ee.EncodeString(c_UTF8, v2)
  4076. }
  4077. } else {
  4078. j := 0
  4079. for k2, v2 := range v {
  4080. if j > 0 {
  4081. ee.EncodeMapEntrySeparator()
  4082. }
  4083. ee.EncodeFloat64(k2)
  4084. ee.EncodeMapKVSeparator()
  4085. ee.EncodeString(c_UTF8, v2)
  4086. j++
  4087. }
  4088. ee.EncodeMapEnd()
  4089. }
  4090. }
  4091. func (f encFnInfo) fastpathEncMapFloat64UintR(rv reflect.Value) {
  4092. fastpathTV.EncMapFloat64UintV(rv.Interface().(map[float64]uint), fastpathCheckNilFalse, f.e)
  4093. }
  4094. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, checkNil bool, e *Encoder) {
  4095. ee := e.e
  4096. if checkNil && v == nil {
  4097. ee.EncodeNil()
  4098. return
  4099. }
  4100. ee.EncodeMapStart(len(v))
  4101. if e.be {
  4102. for k2, v2 := range v {
  4103. ee.EncodeFloat64(k2)
  4104. ee.EncodeUint(uint64(v2))
  4105. }
  4106. } else {
  4107. j := 0
  4108. for k2, v2 := range v {
  4109. if j > 0 {
  4110. ee.EncodeMapEntrySeparator()
  4111. }
  4112. ee.EncodeFloat64(k2)
  4113. ee.EncodeMapKVSeparator()
  4114. ee.EncodeUint(uint64(v2))
  4115. j++
  4116. }
  4117. ee.EncodeMapEnd()
  4118. }
  4119. }
  4120. func (f encFnInfo) fastpathEncMapFloat64Uint8R(rv reflect.Value) {
  4121. fastpathTV.EncMapFloat64Uint8V(rv.Interface().(map[float64]uint8), fastpathCheckNilFalse, f.e)
  4122. }
  4123. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, checkNil bool, e *Encoder) {
  4124. ee := e.e
  4125. if checkNil && v == nil {
  4126. ee.EncodeNil()
  4127. return
  4128. }
  4129. ee.EncodeMapStart(len(v))
  4130. if e.be {
  4131. for k2, v2 := range v {
  4132. ee.EncodeFloat64(k2)
  4133. ee.EncodeUint(uint64(v2))
  4134. }
  4135. } else {
  4136. j := 0
  4137. for k2, v2 := range v {
  4138. if j > 0 {
  4139. ee.EncodeMapEntrySeparator()
  4140. }
  4141. ee.EncodeFloat64(k2)
  4142. ee.EncodeMapKVSeparator()
  4143. ee.EncodeUint(uint64(v2))
  4144. j++
  4145. }
  4146. ee.EncodeMapEnd()
  4147. }
  4148. }
  4149. func (f encFnInfo) fastpathEncMapFloat64Uint16R(rv reflect.Value) {
  4150. fastpathTV.EncMapFloat64Uint16V(rv.Interface().(map[float64]uint16), fastpathCheckNilFalse, f.e)
  4151. }
  4152. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, checkNil bool, e *Encoder) {
  4153. ee := e.e
  4154. if checkNil && v == nil {
  4155. ee.EncodeNil()
  4156. return
  4157. }
  4158. ee.EncodeMapStart(len(v))
  4159. if e.be {
  4160. for k2, v2 := range v {
  4161. ee.EncodeFloat64(k2)
  4162. ee.EncodeUint(uint64(v2))
  4163. }
  4164. } else {
  4165. j := 0
  4166. for k2, v2 := range v {
  4167. if j > 0 {
  4168. ee.EncodeMapEntrySeparator()
  4169. }
  4170. ee.EncodeFloat64(k2)
  4171. ee.EncodeMapKVSeparator()
  4172. ee.EncodeUint(uint64(v2))
  4173. j++
  4174. }
  4175. ee.EncodeMapEnd()
  4176. }
  4177. }
  4178. func (f encFnInfo) fastpathEncMapFloat64Uint32R(rv reflect.Value) {
  4179. fastpathTV.EncMapFloat64Uint32V(rv.Interface().(map[float64]uint32), fastpathCheckNilFalse, f.e)
  4180. }
  4181. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, checkNil bool, e *Encoder) {
  4182. ee := e.e
  4183. if checkNil && v == nil {
  4184. ee.EncodeNil()
  4185. return
  4186. }
  4187. ee.EncodeMapStart(len(v))
  4188. if e.be {
  4189. for k2, v2 := range v {
  4190. ee.EncodeFloat64(k2)
  4191. ee.EncodeUint(uint64(v2))
  4192. }
  4193. } else {
  4194. j := 0
  4195. for k2, v2 := range v {
  4196. if j > 0 {
  4197. ee.EncodeMapEntrySeparator()
  4198. }
  4199. ee.EncodeFloat64(k2)
  4200. ee.EncodeMapKVSeparator()
  4201. ee.EncodeUint(uint64(v2))
  4202. j++
  4203. }
  4204. ee.EncodeMapEnd()
  4205. }
  4206. }
  4207. func (f encFnInfo) fastpathEncMapFloat64Uint64R(rv reflect.Value) {
  4208. fastpathTV.EncMapFloat64Uint64V(rv.Interface().(map[float64]uint64), fastpathCheckNilFalse, f.e)
  4209. }
  4210. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, checkNil bool, e *Encoder) {
  4211. ee := e.e
  4212. if checkNil && v == nil {
  4213. ee.EncodeNil()
  4214. return
  4215. }
  4216. ee.EncodeMapStart(len(v))
  4217. if e.be {
  4218. for k2, v2 := range v {
  4219. ee.EncodeFloat64(k2)
  4220. ee.EncodeUint(uint64(v2))
  4221. }
  4222. } else {
  4223. j := 0
  4224. for k2, v2 := range v {
  4225. if j > 0 {
  4226. ee.EncodeMapEntrySeparator()
  4227. }
  4228. ee.EncodeFloat64(k2)
  4229. ee.EncodeMapKVSeparator()
  4230. ee.EncodeUint(uint64(v2))
  4231. j++
  4232. }
  4233. ee.EncodeMapEnd()
  4234. }
  4235. }
  4236. func (f encFnInfo) fastpathEncMapFloat64IntR(rv reflect.Value) {
  4237. fastpathTV.EncMapFloat64IntV(rv.Interface().(map[float64]int), fastpathCheckNilFalse, f.e)
  4238. }
  4239. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, checkNil bool, e *Encoder) {
  4240. ee := e.e
  4241. if checkNil && v == nil {
  4242. ee.EncodeNil()
  4243. return
  4244. }
  4245. ee.EncodeMapStart(len(v))
  4246. if e.be {
  4247. for k2, v2 := range v {
  4248. ee.EncodeFloat64(k2)
  4249. ee.EncodeInt(int64(v2))
  4250. }
  4251. } else {
  4252. j := 0
  4253. for k2, v2 := range v {
  4254. if j > 0 {
  4255. ee.EncodeMapEntrySeparator()
  4256. }
  4257. ee.EncodeFloat64(k2)
  4258. ee.EncodeMapKVSeparator()
  4259. ee.EncodeInt(int64(v2))
  4260. j++
  4261. }
  4262. ee.EncodeMapEnd()
  4263. }
  4264. }
  4265. func (f encFnInfo) fastpathEncMapFloat64Int8R(rv reflect.Value) {
  4266. fastpathTV.EncMapFloat64Int8V(rv.Interface().(map[float64]int8), fastpathCheckNilFalse, f.e)
  4267. }
  4268. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, checkNil bool, e *Encoder) {
  4269. ee := e.e
  4270. if checkNil && v == nil {
  4271. ee.EncodeNil()
  4272. return
  4273. }
  4274. ee.EncodeMapStart(len(v))
  4275. if e.be {
  4276. for k2, v2 := range v {
  4277. ee.EncodeFloat64(k2)
  4278. ee.EncodeInt(int64(v2))
  4279. }
  4280. } else {
  4281. j := 0
  4282. for k2, v2 := range v {
  4283. if j > 0 {
  4284. ee.EncodeMapEntrySeparator()
  4285. }
  4286. ee.EncodeFloat64(k2)
  4287. ee.EncodeMapKVSeparator()
  4288. ee.EncodeInt(int64(v2))
  4289. j++
  4290. }
  4291. ee.EncodeMapEnd()
  4292. }
  4293. }
  4294. func (f encFnInfo) fastpathEncMapFloat64Int16R(rv reflect.Value) {
  4295. fastpathTV.EncMapFloat64Int16V(rv.Interface().(map[float64]int16), fastpathCheckNilFalse, f.e)
  4296. }
  4297. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, checkNil bool, e *Encoder) {
  4298. ee := e.e
  4299. if checkNil && v == nil {
  4300. ee.EncodeNil()
  4301. return
  4302. }
  4303. ee.EncodeMapStart(len(v))
  4304. if e.be {
  4305. for k2, v2 := range v {
  4306. ee.EncodeFloat64(k2)
  4307. ee.EncodeInt(int64(v2))
  4308. }
  4309. } else {
  4310. j := 0
  4311. for k2, v2 := range v {
  4312. if j > 0 {
  4313. ee.EncodeMapEntrySeparator()
  4314. }
  4315. ee.EncodeFloat64(k2)
  4316. ee.EncodeMapKVSeparator()
  4317. ee.EncodeInt(int64(v2))
  4318. j++
  4319. }
  4320. ee.EncodeMapEnd()
  4321. }
  4322. }
  4323. func (f encFnInfo) fastpathEncMapFloat64Int32R(rv reflect.Value) {
  4324. fastpathTV.EncMapFloat64Int32V(rv.Interface().(map[float64]int32), fastpathCheckNilFalse, f.e)
  4325. }
  4326. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, checkNil bool, e *Encoder) {
  4327. ee := e.e
  4328. if checkNil && v == nil {
  4329. ee.EncodeNil()
  4330. return
  4331. }
  4332. ee.EncodeMapStart(len(v))
  4333. if e.be {
  4334. for k2, v2 := range v {
  4335. ee.EncodeFloat64(k2)
  4336. ee.EncodeInt(int64(v2))
  4337. }
  4338. } else {
  4339. j := 0
  4340. for k2, v2 := range v {
  4341. if j > 0 {
  4342. ee.EncodeMapEntrySeparator()
  4343. }
  4344. ee.EncodeFloat64(k2)
  4345. ee.EncodeMapKVSeparator()
  4346. ee.EncodeInt(int64(v2))
  4347. j++
  4348. }
  4349. ee.EncodeMapEnd()
  4350. }
  4351. }
  4352. func (f encFnInfo) fastpathEncMapFloat64Int64R(rv reflect.Value) {
  4353. fastpathTV.EncMapFloat64Int64V(rv.Interface().(map[float64]int64), fastpathCheckNilFalse, f.e)
  4354. }
  4355. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, checkNil bool, e *Encoder) {
  4356. ee := e.e
  4357. if checkNil && v == nil {
  4358. ee.EncodeNil()
  4359. return
  4360. }
  4361. ee.EncodeMapStart(len(v))
  4362. if e.be {
  4363. for k2, v2 := range v {
  4364. ee.EncodeFloat64(k2)
  4365. ee.EncodeInt(int64(v2))
  4366. }
  4367. } else {
  4368. j := 0
  4369. for k2, v2 := range v {
  4370. if j > 0 {
  4371. ee.EncodeMapEntrySeparator()
  4372. }
  4373. ee.EncodeFloat64(k2)
  4374. ee.EncodeMapKVSeparator()
  4375. ee.EncodeInt(int64(v2))
  4376. j++
  4377. }
  4378. ee.EncodeMapEnd()
  4379. }
  4380. }
  4381. func (f encFnInfo) fastpathEncMapFloat64Float32R(rv reflect.Value) {
  4382. fastpathTV.EncMapFloat64Float32V(rv.Interface().(map[float64]float32), fastpathCheckNilFalse, f.e)
  4383. }
  4384. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, checkNil bool, e *Encoder) {
  4385. ee := e.e
  4386. if checkNil && v == nil {
  4387. ee.EncodeNil()
  4388. return
  4389. }
  4390. ee.EncodeMapStart(len(v))
  4391. if e.be {
  4392. for k2, v2 := range v {
  4393. ee.EncodeFloat64(k2)
  4394. ee.EncodeFloat32(v2)
  4395. }
  4396. } else {
  4397. j := 0
  4398. for k2, v2 := range v {
  4399. if j > 0 {
  4400. ee.EncodeMapEntrySeparator()
  4401. }
  4402. ee.EncodeFloat64(k2)
  4403. ee.EncodeMapKVSeparator()
  4404. ee.EncodeFloat32(v2)
  4405. j++
  4406. }
  4407. ee.EncodeMapEnd()
  4408. }
  4409. }
  4410. func (f encFnInfo) fastpathEncMapFloat64Float64R(rv reflect.Value) {
  4411. fastpathTV.EncMapFloat64Float64V(rv.Interface().(map[float64]float64), fastpathCheckNilFalse, f.e)
  4412. }
  4413. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, checkNil bool, e *Encoder) {
  4414. ee := e.e
  4415. if checkNil && v == nil {
  4416. ee.EncodeNil()
  4417. return
  4418. }
  4419. ee.EncodeMapStart(len(v))
  4420. if e.be {
  4421. for k2, v2 := range v {
  4422. ee.EncodeFloat64(k2)
  4423. ee.EncodeFloat64(v2)
  4424. }
  4425. } else {
  4426. j := 0
  4427. for k2, v2 := range v {
  4428. if j > 0 {
  4429. ee.EncodeMapEntrySeparator()
  4430. }
  4431. ee.EncodeFloat64(k2)
  4432. ee.EncodeMapKVSeparator()
  4433. ee.EncodeFloat64(v2)
  4434. j++
  4435. }
  4436. ee.EncodeMapEnd()
  4437. }
  4438. }
  4439. func (f encFnInfo) fastpathEncMapFloat64BoolR(rv reflect.Value) {
  4440. fastpathTV.EncMapFloat64BoolV(rv.Interface().(map[float64]bool), fastpathCheckNilFalse, f.e)
  4441. }
  4442. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, checkNil bool, e *Encoder) {
  4443. ee := e.e
  4444. if checkNil && v == nil {
  4445. ee.EncodeNil()
  4446. return
  4447. }
  4448. ee.EncodeMapStart(len(v))
  4449. if e.be {
  4450. for k2, v2 := range v {
  4451. ee.EncodeFloat64(k2)
  4452. ee.EncodeBool(v2)
  4453. }
  4454. } else {
  4455. j := 0
  4456. for k2, v2 := range v {
  4457. if j > 0 {
  4458. ee.EncodeMapEntrySeparator()
  4459. }
  4460. ee.EncodeFloat64(k2)
  4461. ee.EncodeMapKVSeparator()
  4462. ee.EncodeBool(v2)
  4463. j++
  4464. }
  4465. ee.EncodeMapEnd()
  4466. }
  4467. }
  4468. func (f encFnInfo) fastpathEncMapUintIntfR(rv reflect.Value) {
  4469. fastpathTV.EncMapUintIntfV(rv.Interface().(map[uint]interface{}), fastpathCheckNilFalse, f.e)
  4470. }
  4471. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, checkNil bool, e *Encoder) {
  4472. ee := e.e
  4473. if checkNil && v == nil {
  4474. ee.EncodeNil()
  4475. return
  4476. }
  4477. ee.EncodeMapStart(len(v))
  4478. if e.be {
  4479. for k2, v2 := range v {
  4480. ee.EncodeUint(uint64(k2))
  4481. e.encode(v2)
  4482. }
  4483. } else {
  4484. j := 0
  4485. for k2, v2 := range v {
  4486. if j > 0 {
  4487. ee.EncodeMapEntrySeparator()
  4488. }
  4489. ee.EncodeUint(uint64(k2))
  4490. ee.EncodeMapKVSeparator()
  4491. e.encode(v2)
  4492. j++
  4493. }
  4494. ee.EncodeMapEnd()
  4495. }
  4496. }
  4497. func (f encFnInfo) fastpathEncMapUintStringR(rv reflect.Value) {
  4498. fastpathTV.EncMapUintStringV(rv.Interface().(map[uint]string), fastpathCheckNilFalse, f.e)
  4499. }
  4500. func (_ fastpathT) EncMapUintStringV(v map[uint]string, checkNil bool, e *Encoder) {
  4501. ee := e.e
  4502. if checkNil && v == nil {
  4503. ee.EncodeNil()
  4504. return
  4505. }
  4506. ee.EncodeMapStart(len(v))
  4507. if e.be {
  4508. for k2, v2 := range v {
  4509. ee.EncodeUint(uint64(k2))
  4510. ee.EncodeString(c_UTF8, v2)
  4511. }
  4512. } else {
  4513. j := 0
  4514. for k2, v2 := range v {
  4515. if j > 0 {
  4516. ee.EncodeMapEntrySeparator()
  4517. }
  4518. ee.EncodeUint(uint64(k2))
  4519. ee.EncodeMapKVSeparator()
  4520. ee.EncodeString(c_UTF8, v2)
  4521. j++
  4522. }
  4523. ee.EncodeMapEnd()
  4524. }
  4525. }
  4526. func (f encFnInfo) fastpathEncMapUintUintR(rv reflect.Value) {
  4527. fastpathTV.EncMapUintUintV(rv.Interface().(map[uint]uint), fastpathCheckNilFalse, f.e)
  4528. }
  4529. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, checkNil bool, e *Encoder) {
  4530. ee := e.e
  4531. if checkNil && v == nil {
  4532. ee.EncodeNil()
  4533. return
  4534. }
  4535. ee.EncodeMapStart(len(v))
  4536. if e.be {
  4537. for k2, v2 := range v {
  4538. ee.EncodeUint(uint64(k2))
  4539. ee.EncodeUint(uint64(v2))
  4540. }
  4541. } else {
  4542. j := 0
  4543. for k2, v2 := range v {
  4544. if j > 0 {
  4545. ee.EncodeMapEntrySeparator()
  4546. }
  4547. ee.EncodeUint(uint64(k2))
  4548. ee.EncodeMapKVSeparator()
  4549. ee.EncodeUint(uint64(v2))
  4550. j++
  4551. }
  4552. ee.EncodeMapEnd()
  4553. }
  4554. }
  4555. func (f encFnInfo) fastpathEncMapUintUint8R(rv reflect.Value) {
  4556. fastpathTV.EncMapUintUint8V(rv.Interface().(map[uint]uint8), fastpathCheckNilFalse, f.e)
  4557. }
  4558. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, checkNil bool, e *Encoder) {
  4559. ee := e.e
  4560. if checkNil && v == nil {
  4561. ee.EncodeNil()
  4562. return
  4563. }
  4564. ee.EncodeMapStart(len(v))
  4565. if e.be {
  4566. for k2, v2 := range v {
  4567. ee.EncodeUint(uint64(k2))
  4568. ee.EncodeUint(uint64(v2))
  4569. }
  4570. } else {
  4571. j := 0
  4572. for k2, v2 := range v {
  4573. if j > 0 {
  4574. ee.EncodeMapEntrySeparator()
  4575. }
  4576. ee.EncodeUint(uint64(k2))
  4577. ee.EncodeMapKVSeparator()
  4578. ee.EncodeUint(uint64(v2))
  4579. j++
  4580. }
  4581. ee.EncodeMapEnd()
  4582. }
  4583. }
  4584. func (f encFnInfo) fastpathEncMapUintUint16R(rv reflect.Value) {
  4585. fastpathTV.EncMapUintUint16V(rv.Interface().(map[uint]uint16), fastpathCheckNilFalse, f.e)
  4586. }
  4587. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, checkNil bool, e *Encoder) {
  4588. ee := e.e
  4589. if checkNil && v == nil {
  4590. ee.EncodeNil()
  4591. return
  4592. }
  4593. ee.EncodeMapStart(len(v))
  4594. if e.be {
  4595. for k2, v2 := range v {
  4596. ee.EncodeUint(uint64(k2))
  4597. ee.EncodeUint(uint64(v2))
  4598. }
  4599. } else {
  4600. j := 0
  4601. for k2, v2 := range v {
  4602. if j > 0 {
  4603. ee.EncodeMapEntrySeparator()
  4604. }
  4605. ee.EncodeUint(uint64(k2))
  4606. ee.EncodeMapKVSeparator()
  4607. ee.EncodeUint(uint64(v2))
  4608. j++
  4609. }
  4610. ee.EncodeMapEnd()
  4611. }
  4612. }
  4613. func (f encFnInfo) fastpathEncMapUintUint32R(rv reflect.Value) {
  4614. fastpathTV.EncMapUintUint32V(rv.Interface().(map[uint]uint32), fastpathCheckNilFalse, f.e)
  4615. }
  4616. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, checkNil bool, e *Encoder) {
  4617. ee := e.e
  4618. if checkNil && v == nil {
  4619. ee.EncodeNil()
  4620. return
  4621. }
  4622. ee.EncodeMapStart(len(v))
  4623. if e.be {
  4624. for k2, v2 := range v {
  4625. ee.EncodeUint(uint64(k2))
  4626. ee.EncodeUint(uint64(v2))
  4627. }
  4628. } else {
  4629. j := 0
  4630. for k2, v2 := range v {
  4631. if j > 0 {
  4632. ee.EncodeMapEntrySeparator()
  4633. }
  4634. ee.EncodeUint(uint64(k2))
  4635. ee.EncodeMapKVSeparator()
  4636. ee.EncodeUint(uint64(v2))
  4637. j++
  4638. }
  4639. ee.EncodeMapEnd()
  4640. }
  4641. }
  4642. func (f encFnInfo) fastpathEncMapUintUint64R(rv reflect.Value) {
  4643. fastpathTV.EncMapUintUint64V(rv.Interface().(map[uint]uint64), fastpathCheckNilFalse, f.e)
  4644. }
  4645. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, checkNil bool, e *Encoder) {
  4646. ee := e.e
  4647. if checkNil && v == nil {
  4648. ee.EncodeNil()
  4649. return
  4650. }
  4651. ee.EncodeMapStart(len(v))
  4652. if e.be {
  4653. for k2, v2 := range v {
  4654. ee.EncodeUint(uint64(k2))
  4655. ee.EncodeUint(uint64(v2))
  4656. }
  4657. } else {
  4658. j := 0
  4659. for k2, v2 := range v {
  4660. if j > 0 {
  4661. ee.EncodeMapEntrySeparator()
  4662. }
  4663. ee.EncodeUint(uint64(k2))
  4664. ee.EncodeMapKVSeparator()
  4665. ee.EncodeUint(uint64(v2))
  4666. j++
  4667. }
  4668. ee.EncodeMapEnd()
  4669. }
  4670. }
  4671. func (f encFnInfo) fastpathEncMapUintIntR(rv reflect.Value) {
  4672. fastpathTV.EncMapUintIntV(rv.Interface().(map[uint]int), fastpathCheckNilFalse, f.e)
  4673. }
  4674. func (_ fastpathT) EncMapUintIntV(v map[uint]int, checkNil bool, e *Encoder) {
  4675. ee := e.e
  4676. if checkNil && v == nil {
  4677. ee.EncodeNil()
  4678. return
  4679. }
  4680. ee.EncodeMapStart(len(v))
  4681. if e.be {
  4682. for k2, v2 := range v {
  4683. ee.EncodeUint(uint64(k2))
  4684. ee.EncodeInt(int64(v2))
  4685. }
  4686. } else {
  4687. j := 0
  4688. for k2, v2 := range v {
  4689. if j > 0 {
  4690. ee.EncodeMapEntrySeparator()
  4691. }
  4692. ee.EncodeUint(uint64(k2))
  4693. ee.EncodeMapKVSeparator()
  4694. ee.EncodeInt(int64(v2))
  4695. j++
  4696. }
  4697. ee.EncodeMapEnd()
  4698. }
  4699. }
  4700. func (f encFnInfo) fastpathEncMapUintInt8R(rv reflect.Value) {
  4701. fastpathTV.EncMapUintInt8V(rv.Interface().(map[uint]int8), fastpathCheckNilFalse, f.e)
  4702. }
  4703. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, checkNil bool, e *Encoder) {
  4704. ee := e.e
  4705. if checkNil && v == nil {
  4706. ee.EncodeNil()
  4707. return
  4708. }
  4709. ee.EncodeMapStart(len(v))
  4710. if e.be {
  4711. for k2, v2 := range v {
  4712. ee.EncodeUint(uint64(k2))
  4713. ee.EncodeInt(int64(v2))
  4714. }
  4715. } else {
  4716. j := 0
  4717. for k2, v2 := range v {
  4718. if j > 0 {
  4719. ee.EncodeMapEntrySeparator()
  4720. }
  4721. ee.EncodeUint(uint64(k2))
  4722. ee.EncodeMapKVSeparator()
  4723. ee.EncodeInt(int64(v2))
  4724. j++
  4725. }
  4726. ee.EncodeMapEnd()
  4727. }
  4728. }
  4729. func (f encFnInfo) fastpathEncMapUintInt16R(rv reflect.Value) {
  4730. fastpathTV.EncMapUintInt16V(rv.Interface().(map[uint]int16), fastpathCheckNilFalse, f.e)
  4731. }
  4732. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, checkNil bool, e *Encoder) {
  4733. ee := e.e
  4734. if checkNil && v == nil {
  4735. ee.EncodeNil()
  4736. return
  4737. }
  4738. ee.EncodeMapStart(len(v))
  4739. if e.be {
  4740. for k2, v2 := range v {
  4741. ee.EncodeUint(uint64(k2))
  4742. ee.EncodeInt(int64(v2))
  4743. }
  4744. } else {
  4745. j := 0
  4746. for k2, v2 := range v {
  4747. if j > 0 {
  4748. ee.EncodeMapEntrySeparator()
  4749. }
  4750. ee.EncodeUint(uint64(k2))
  4751. ee.EncodeMapKVSeparator()
  4752. ee.EncodeInt(int64(v2))
  4753. j++
  4754. }
  4755. ee.EncodeMapEnd()
  4756. }
  4757. }
  4758. func (f encFnInfo) fastpathEncMapUintInt32R(rv reflect.Value) {
  4759. fastpathTV.EncMapUintInt32V(rv.Interface().(map[uint]int32), fastpathCheckNilFalse, f.e)
  4760. }
  4761. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, checkNil bool, e *Encoder) {
  4762. ee := e.e
  4763. if checkNil && v == nil {
  4764. ee.EncodeNil()
  4765. return
  4766. }
  4767. ee.EncodeMapStart(len(v))
  4768. if e.be {
  4769. for k2, v2 := range v {
  4770. ee.EncodeUint(uint64(k2))
  4771. ee.EncodeInt(int64(v2))
  4772. }
  4773. } else {
  4774. j := 0
  4775. for k2, v2 := range v {
  4776. if j > 0 {
  4777. ee.EncodeMapEntrySeparator()
  4778. }
  4779. ee.EncodeUint(uint64(k2))
  4780. ee.EncodeMapKVSeparator()
  4781. ee.EncodeInt(int64(v2))
  4782. j++
  4783. }
  4784. ee.EncodeMapEnd()
  4785. }
  4786. }
  4787. func (f encFnInfo) fastpathEncMapUintInt64R(rv reflect.Value) {
  4788. fastpathTV.EncMapUintInt64V(rv.Interface().(map[uint]int64), fastpathCheckNilFalse, f.e)
  4789. }
  4790. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, checkNil bool, e *Encoder) {
  4791. ee := e.e
  4792. if checkNil && v == nil {
  4793. ee.EncodeNil()
  4794. return
  4795. }
  4796. ee.EncodeMapStart(len(v))
  4797. if e.be {
  4798. for k2, v2 := range v {
  4799. ee.EncodeUint(uint64(k2))
  4800. ee.EncodeInt(int64(v2))
  4801. }
  4802. } else {
  4803. j := 0
  4804. for k2, v2 := range v {
  4805. if j > 0 {
  4806. ee.EncodeMapEntrySeparator()
  4807. }
  4808. ee.EncodeUint(uint64(k2))
  4809. ee.EncodeMapKVSeparator()
  4810. ee.EncodeInt(int64(v2))
  4811. j++
  4812. }
  4813. ee.EncodeMapEnd()
  4814. }
  4815. }
  4816. func (f encFnInfo) fastpathEncMapUintFloat32R(rv reflect.Value) {
  4817. fastpathTV.EncMapUintFloat32V(rv.Interface().(map[uint]float32), fastpathCheckNilFalse, f.e)
  4818. }
  4819. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, checkNil bool, e *Encoder) {
  4820. ee := e.e
  4821. if checkNil && v == nil {
  4822. ee.EncodeNil()
  4823. return
  4824. }
  4825. ee.EncodeMapStart(len(v))
  4826. if e.be {
  4827. for k2, v2 := range v {
  4828. ee.EncodeUint(uint64(k2))
  4829. ee.EncodeFloat32(v2)
  4830. }
  4831. } else {
  4832. j := 0
  4833. for k2, v2 := range v {
  4834. if j > 0 {
  4835. ee.EncodeMapEntrySeparator()
  4836. }
  4837. ee.EncodeUint(uint64(k2))
  4838. ee.EncodeMapKVSeparator()
  4839. ee.EncodeFloat32(v2)
  4840. j++
  4841. }
  4842. ee.EncodeMapEnd()
  4843. }
  4844. }
  4845. func (f encFnInfo) fastpathEncMapUintFloat64R(rv reflect.Value) {
  4846. fastpathTV.EncMapUintFloat64V(rv.Interface().(map[uint]float64), fastpathCheckNilFalse, f.e)
  4847. }
  4848. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, checkNil bool, e *Encoder) {
  4849. ee := e.e
  4850. if checkNil && v == nil {
  4851. ee.EncodeNil()
  4852. return
  4853. }
  4854. ee.EncodeMapStart(len(v))
  4855. if e.be {
  4856. for k2, v2 := range v {
  4857. ee.EncodeUint(uint64(k2))
  4858. ee.EncodeFloat64(v2)
  4859. }
  4860. } else {
  4861. j := 0
  4862. for k2, v2 := range v {
  4863. if j > 0 {
  4864. ee.EncodeMapEntrySeparator()
  4865. }
  4866. ee.EncodeUint(uint64(k2))
  4867. ee.EncodeMapKVSeparator()
  4868. ee.EncodeFloat64(v2)
  4869. j++
  4870. }
  4871. ee.EncodeMapEnd()
  4872. }
  4873. }
  4874. func (f encFnInfo) fastpathEncMapUintBoolR(rv reflect.Value) {
  4875. fastpathTV.EncMapUintBoolV(rv.Interface().(map[uint]bool), fastpathCheckNilFalse, f.e)
  4876. }
  4877. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, checkNil bool, e *Encoder) {
  4878. ee := e.e
  4879. if checkNil && v == nil {
  4880. ee.EncodeNil()
  4881. return
  4882. }
  4883. ee.EncodeMapStart(len(v))
  4884. if e.be {
  4885. for k2, v2 := range v {
  4886. ee.EncodeUint(uint64(k2))
  4887. ee.EncodeBool(v2)
  4888. }
  4889. } else {
  4890. j := 0
  4891. for k2, v2 := range v {
  4892. if j > 0 {
  4893. ee.EncodeMapEntrySeparator()
  4894. }
  4895. ee.EncodeUint(uint64(k2))
  4896. ee.EncodeMapKVSeparator()
  4897. ee.EncodeBool(v2)
  4898. j++
  4899. }
  4900. ee.EncodeMapEnd()
  4901. }
  4902. }
  4903. func (f encFnInfo) fastpathEncMapUint8IntfR(rv reflect.Value) {
  4904. fastpathTV.EncMapUint8IntfV(rv.Interface().(map[uint8]interface{}), fastpathCheckNilFalse, f.e)
  4905. }
  4906. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, checkNil bool, e *Encoder) {
  4907. ee := e.e
  4908. if checkNil && v == nil {
  4909. ee.EncodeNil()
  4910. return
  4911. }
  4912. ee.EncodeMapStart(len(v))
  4913. if e.be {
  4914. for k2, v2 := range v {
  4915. ee.EncodeUint(uint64(k2))
  4916. e.encode(v2)
  4917. }
  4918. } else {
  4919. j := 0
  4920. for k2, v2 := range v {
  4921. if j > 0 {
  4922. ee.EncodeMapEntrySeparator()
  4923. }
  4924. ee.EncodeUint(uint64(k2))
  4925. ee.EncodeMapKVSeparator()
  4926. e.encode(v2)
  4927. j++
  4928. }
  4929. ee.EncodeMapEnd()
  4930. }
  4931. }
  4932. func (f encFnInfo) fastpathEncMapUint8StringR(rv reflect.Value) {
  4933. fastpathTV.EncMapUint8StringV(rv.Interface().(map[uint8]string), fastpathCheckNilFalse, f.e)
  4934. }
  4935. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, checkNil bool, e *Encoder) {
  4936. ee := e.e
  4937. if checkNil && v == nil {
  4938. ee.EncodeNil()
  4939. return
  4940. }
  4941. ee.EncodeMapStart(len(v))
  4942. if e.be {
  4943. for k2, v2 := range v {
  4944. ee.EncodeUint(uint64(k2))
  4945. ee.EncodeString(c_UTF8, v2)
  4946. }
  4947. } else {
  4948. j := 0
  4949. for k2, v2 := range v {
  4950. if j > 0 {
  4951. ee.EncodeMapEntrySeparator()
  4952. }
  4953. ee.EncodeUint(uint64(k2))
  4954. ee.EncodeMapKVSeparator()
  4955. ee.EncodeString(c_UTF8, v2)
  4956. j++
  4957. }
  4958. ee.EncodeMapEnd()
  4959. }
  4960. }
  4961. func (f encFnInfo) fastpathEncMapUint8UintR(rv reflect.Value) {
  4962. fastpathTV.EncMapUint8UintV(rv.Interface().(map[uint8]uint), fastpathCheckNilFalse, f.e)
  4963. }
  4964. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, checkNil bool, e *Encoder) {
  4965. ee := e.e
  4966. if checkNil && v == nil {
  4967. ee.EncodeNil()
  4968. return
  4969. }
  4970. ee.EncodeMapStart(len(v))
  4971. if e.be {
  4972. for k2, v2 := range v {
  4973. ee.EncodeUint(uint64(k2))
  4974. ee.EncodeUint(uint64(v2))
  4975. }
  4976. } else {
  4977. j := 0
  4978. for k2, v2 := range v {
  4979. if j > 0 {
  4980. ee.EncodeMapEntrySeparator()
  4981. }
  4982. ee.EncodeUint(uint64(k2))
  4983. ee.EncodeMapKVSeparator()
  4984. ee.EncodeUint(uint64(v2))
  4985. j++
  4986. }
  4987. ee.EncodeMapEnd()
  4988. }
  4989. }
  4990. func (f encFnInfo) fastpathEncMapUint8Uint8R(rv reflect.Value) {
  4991. fastpathTV.EncMapUint8Uint8V(rv.Interface().(map[uint8]uint8), fastpathCheckNilFalse, f.e)
  4992. }
  4993. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, checkNil bool, e *Encoder) {
  4994. ee := e.e
  4995. if checkNil && v == nil {
  4996. ee.EncodeNil()
  4997. return
  4998. }
  4999. ee.EncodeMapStart(len(v))
  5000. if e.be {
  5001. for k2, v2 := range v {
  5002. ee.EncodeUint(uint64(k2))
  5003. ee.EncodeUint(uint64(v2))
  5004. }
  5005. } else {
  5006. j := 0
  5007. for k2, v2 := range v {
  5008. if j > 0 {
  5009. ee.EncodeMapEntrySeparator()
  5010. }
  5011. ee.EncodeUint(uint64(k2))
  5012. ee.EncodeMapKVSeparator()
  5013. ee.EncodeUint(uint64(v2))
  5014. j++
  5015. }
  5016. ee.EncodeMapEnd()
  5017. }
  5018. }
  5019. func (f encFnInfo) fastpathEncMapUint8Uint16R(rv reflect.Value) {
  5020. fastpathTV.EncMapUint8Uint16V(rv.Interface().(map[uint8]uint16), fastpathCheckNilFalse, f.e)
  5021. }
  5022. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, checkNil bool, e *Encoder) {
  5023. ee := e.e
  5024. if checkNil && v == nil {
  5025. ee.EncodeNil()
  5026. return
  5027. }
  5028. ee.EncodeMapStart(len(v))
  5029. if e.be {
  5030. for k2, v2 := range v {
  5031. ee.EncodeUint(uint64(k2))
  5032. ee.EncodeUint(uint64(v2))
  5033. }
  5034. } else {
  5035. j := 0
  5036. for k2, v2 := range v {
  5037. if j > 0 {
  5038. ee.EncodeMapEntrySeparator()
  5039. }
  5040. ee.EncodeUint(uint64(k2))
  5041. ee.EncodeMapKVSeparator()
  5042. ee.EncodeUint(uint64(v2))
  5043. j++
  5044. }
  5045. ee.EncodeMapEnd()
  5046. }
  5047. }
  5048. func (f encFnInfo) fastpathEncMapUint8Uint32R(rv reflect.Value) {
  5049. fastpathTV.EncMapUint8Uint32V(rv.Interface().(map[uint8]uint32), fastpathCheckNilFalse, f.e)
  5050. }
  5051. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, checkNil bool, e *Encoder) {
  5052. ee := e.e
  5053. if checkNil && v == nil {
  5054. ee.EncodeNil()
  5055. return
  5056. }
  5057. ee.EncodeMapStart(len(v))
  5058. if e.be {
  5059. for k2, v2 := range v {
  5060. ee.EncodeUint(uint64(k2))
  5061. ee.EncodeUint(uint64(v2))
  5062. }
  5063. } else {
  5064. j := 0
  5065. for k2, v2 := range v {
  5066. if j > 0 {
  5067. ee.EncodeMapEntrySeparator()
  5068. }
  5069. ee.EncodeUint(uint64(k2))
  5070. ee.EncodeMapKVSeparator()
  5071. ee.EncodeUint(uint64(v2))
  5072. j++
  5073. }
  5074. ee.EncodeMapEnd()
  5075. }
  5076. }
  5077. func (f encFnInfo) fastpathEncMapUint8Uint64R(rv reflect.Value) {
  5078. fastpathTV.EncMapUint8Uint64V(rv.Interface().(map[uint8]uint64), fastpathCheckNilFalse, f.e)
  5079. }
  5080. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, checkNil bool, e *Encoder) {
  5081. ee := e.e
  5082. if checkNil && v == nil {
  5083. ee.EncodeNil()
  5084. return
  5085. }
  5086. ee.EncodeMapStart(len(v))
  5087. if e.be {
  5088. for k2, v2 := range v {
  5089. ee.EncodeUint(uint64(k2))
  5090. ee.EncodeUint(uint64(v2))
  5091. }
  5092. } else {
  5093. j := 0
  5094. for k2, v2 := range v {
  5095. if j > 0 {
  5096. ee.EncodeMapEntrySeparator()
  5097. }
  5098. ee.EncodeUint(uint64(k2))
  5099. ee.EncodeMapKVSeparator()
  5100. ee.EncodeUint(uint64(v2))
  5101. j++
  5102. }
  5103. ee.EncodeMapEnd()
  5104. }
  5105. }
  5106. func (f encFnInfo) fastpathEncMapUint8IntR(rv reflect.Value) {
  5107. fastpathTV.EncMapUint8IntV(rv.Interface().(map[uint8]int), fastpathCheckNilFalse, f.e)
  5108. }
  5109. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, checkNil bool, e *Encoder) {
  5110. ee := e.e
  5111. if checkNil && v == nil {
  5112. ee.EncodeNil()
  5113. return
  5114. }
  5115. ee.EncodeMapStart(len(v))
  5116. if e.be {
  5117. for k2, v2 := range v {
  5118. ee.EncodeUint(uint64(k2))
  5119. ee.EncodeInt(int64(v2))
  5120. }
  5121. } else {
  5122. j := 0
  5123. for k2, v2 := range v {
  5124. if j > 0 {
  5125. ee.EncodeMapEntrySeparator()
  5126. }
  5127. ee.EncodeUint(uint64(k2))
  5128. ee.EncodeMapKVSeparator()
  5129. ee.EncodeInt(int64(v2))
  5130. j++
  5131. }
  5132. ee.EncodeMapEnd()
  5133. }
  5134. }
  5135. func (f encFnInfo) fastpathEncMapUint8Int8R(rv reflect.Value) {
  5136. fastpathTV.EncMapUint8Int8V(rv.Interface().(map[uint8]int8), fastpathCheckNilFalse, f.e)
  5137. }
  5138. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, checkNil bool, e *Encoder) {
  5139. ee := e.e
  5140. if checkNil && v == nil {
  5141. ee.EncodeNil()
  5142. return
  5143. }
  5144. ee.EncodeMapStart(len(v))
  5145. if e.be {
  5146. for k2, v2 := range v {
  5147. ee.EncodeUint(uint64(k2))
  5148. ee.EncodeInt(int64(v2))
  5149. }
  5150. } else {
  5151. j := 0
  5152. for k2, v2 := range v {
  5153. if j > 0 {
  5154. ee.EncodeMapEntrySeparator()
  5155. }
  5156. ee.EncodeUint(uint64(k2))
  5157. ee.EncodeMapKVSeparator()
  5158. ee.EncodeInt(int64(v2))
  5159. j++
  5160. }
  5161. ee.EncodeMapEnd()
  5162. }
  5163. }
  5164. func (f encFnInfo) fastpathEncMapUint8Int16R(rv reflect.Value) {
  5165. fastpathTV.EncMapUint8Int16V(rv.Interface().(map[uint8]int16), fastpathCheckNilFalse, f.e)
  5166. }
  5167. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, checkNil bool, e *Encoder) {
  5168. ee := e.e
  5169. if checkNil && v == nil {
  5170. ee.EncodeNil()
  5171. return
  5172. }
  5173. ee.EncodeMapStart(len(v))
  5174. if e.be {
  5175. for k2, v2 := range v {
  5176. ee.EncodeUint(uint64(k2))
  5177. ee.EncodeInt(int64(v2))
  5178. }
  5179. } else {
  5180. j := 0
  5181. for k2, v2 := range v {
  5182. if j > 0 {
  5183. ee.EncodeMapEntrySeparator()
  5184. }
  5185. ee.EncodeUint(uint64(k2))
  5186. ee.EncodeMapKVSeparator()
  5187. ee.EncodeInt(int64(v2))
  5188. j++
  5189. }
  5190. ee.EncodeMapEnd()
  5191. }
  5192. }
  5193. func (f encFnInfo) fastpathEncMapUint8Int32R(rv reflect.Value) {
  5194. fastpathTV.EncMapUint8Int32V(rv.Interface().(map[uint8]int32), fastpathCheckNilFalse, f.e)
  5195. }
  5196. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, checkNil bool, e *Encoder) {
  5197. ee := e.e
  5198. if checkNil && v == nil {
  5199. ee.EncodeNil()
  5200. return
  5201. }
  5202. ee.EncodeMapStart(len(v))
  5203. if e.be {
  5204. for k2, v2 := range v {
  5205. ee.EncodeUint(uint64(k2))
  5206. ee.EncodeInt(int64(v2))
  5207. }
  5208. } else {
  5209. j := 0
  5210. for k2, v2 := range v {
  5211. if j > 0 {
  5212. ee.EncodeMapEntrySeparator()
  5213. }
  5214. ee.EncodeUint(uint64(k2))
  5215. ee.EncodeMapKVSeparator()
  5216. ee.EncodeInt(int64(v2))
  5217. j++
  5218. }
  5219. ee.EncodeMapEnd()
  5220. }
  5221. }
  5222. func (f encFnInfo) fastpathEncMapUint8Int64R(rv reflect.Value) {
  5223. fastpathTV.EncMapUint8Int64V(rv.Interface().(map[uint8]int64), fastpathCheckNilFalse, f.e)
  5224. }
  5225. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, checkNil bool, e *Encoder) {
  5226. ee := e.e
  5227. if checkNil && v == nil {
  5228. ee.EncodeNil()
  5229. return
  5230. }
  5231. ee.EncodeMapStart(len(v))
  5232. if e.be {
  5233. for k2, v2 := range v {
  5234. ee.EncodeUint(uint64(k2))
  5235. ee.EncodeInt(int64(v2))
  5236. }
  5237. } else {
  5238. j := 0
  5239. for k2, v2 := range v {
  5240. if j > 0 {
  5241. ee.EncodeMapEntrySeparator()
  5242. }
  5243. ee.EncodeUint(uint64(k2))
  5244. ee.EncodeMapKVSeparator()
  5245. ee.EncodeInt(int64(v2))
  5246. j++
  5247. }
  5248. ee.EncodeMapEnd()
  5249. }
  5250. }
  5251. func (f encFnInfo) fastpathEncMapUint8Float32R(rv reflect.Value) {
  5252. fastpathTV.EncMapUint8Float32V(rv.Interface().(map[uint8]float32), fastpathCheckNilFalse, f.e)
  5253. }
  5254. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, checkNil bool, e *Encoder) {
  5255. ee := e.e
  5256. if checkNil && v == nil {
  5257. ee.EncodeNil()
  5258. return
  5259. }
  5260. ee.EncodeMapStart(len(v))
  5261. if e.be {
  5262. for k2, v2 := range v {
  5263. ee.EncodeUint(uint64(k2))
  5264. ee.EncodeFloat32(v2)
  5265. }
  5266. } else {
  5267. j := 0
  5268. for k2, v2 := range v {
  5269. if j > 0 {
  5270. ee.EncodeMapEntrySeparator()
  5271. }
  5272. ee.EncodeUint(uint64(k2))
  5273. ee.EncodeMapKVSeparator()
  5274. ee.EncodeFloat32(v2)
  5275. j++
  5276. }
  5277. ee.EncodeMapEnd()
  5278. }
  5279. }
  5280. func (f encFnInfo) fastpathEncMapUint8Float64R(rv reflect.Value) {
  5281. fastpathTV.EncMapUint8Float64V(rv.Interface().(map[uint8]float64), fastpathCheckNilFalse, f.e)
  5282. }
  5283. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, checkNil bool, e *Encoder) {
  5284. ee := e.e
  5285. if checkNil && v == nil {
  5286. ee.EncodeNil()
  5287. return
  5288. }
  5289. ee.EncodeMapStart(len(v))
  5290. if e.be {
  5291. for k2, v2 := range v {
  5292. ee.EncodeUint(uint64(k2))
  5293. ee.EncodeFloat64(v2)
  5294. }
  5295. } else {
  5296. j := 0
  5297. for k2, v2 := range v {
  5298. if j > 0 {
  5299. ee.EncodeMapEntrySeparator()
  5300. }
  5301. ee.EncodeUint(uint64(k2))
  5302. ee.EncodeMapKVSeparator()
  5303. ee.EncodeFloat64(v2)
  5304. j++
  5305. }
  5306. ee.EncodeMapEnd()
  5307. }
  5308. }
  5309. func (f encFnInfo) fastpathEncMapUint8BoolR(rv reflect.Value) {
  5310. fastpathTV.EncMapUint8BoolV(rv.Interface().(map[uint8]bool), fastpathCheckNilFalse, f.e)
  5311. }
  5312. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, checkNil bool, e *Encoder) {
  5313. ee := e.e
  5314. if checkNil && v == nil {
  5315. ee.EncodeNil()
  5316. return
  5317. }
  5318. ee.EncodeMapStart(len(v))
  5319. if e.be {
  5320. for k2, v2 := range v {
  5321. ee.EncodeUint(uint64(k2))
  5322. ee.EncodeBool(v2)
  5323. }
  5324. } else {
  5325. j := 0
  5326. for k2, v2 := range v {
  5327. if j > 0 {
  5328. ee.EncodeMapEntrySeparator()
  5329. }
  5330. ee.EncodeUint(uint64(k2))
  5331. ee.EncodeMapKVSeparator()
  5332. ee.EncodeBool(v2)
  5333. j++
  5334. }
  5335. ee.EncodeMapEnd()
  5336. }
  5337. }
  5338. func (f encFnInfo) fastpathEncMapUint16IntfR(rv reflect.Value) {
  5339. fastpathTV.EncMapUint16IntfV(rv.Interface().(map[uint16]interface{}), fastpathCheckNilFalse, f.e)
  5340. }
  5341. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, checkNil bool, e *Encoder) {
  5342. ee := e.e
  5343. if checkNil && v == nil {
  5344. ee.EncodeNil()
  5345. return
  5346. }
  5347. ee.EncodeMapStart(len(v))
  5348. if e.be {
  5349. for k2, v2 := range v {
  5350. ee.EncodeUint(uint64(k2))
  5351. e.encode(v2)
  5352. }
  5353. } else {
  5354. j := 0
  5355. for k2, v2 := range v {
  5356. if j > 0 {
  5357. ee.EncodeMapEntrySeparator()
  5358. }
  5359. ee.EncodeUint(uint64(k2))
  5360. ee.EncodeMapKVSeparator()
  5361. e.encode(v2)
  5362. j++
  5363. }
  5364. ee.EncodeMapEnd()
  5365. }
  5366. }
  5367. func (f encFnInfo) fastpathEncMapUint16StringR(rv reflect.Value) {
  5368. fastpathTV.EncMapUint16StringV(rv.Interface().(map[uint16]string), fastpathCheckNilFalse, f.e)
  5369. }
  5370. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, checkNil bool, e *Encoder) {
  5371. ee := e.e
  5372. if checkNil && v == nil {
  5373. ee.EncodeNil()
  5374. return
  5375. }
  5376. ee.EncodeMapStart(len(v))
  5377. if e.be {
  5378. for k2, v2 := range v {
  5379. ee.EncodeUint(uint64(k2))
  5380. ee.EncodeString(c_UTF8, v2)
  5381. }
  5382. } else {
  5383. j := 0
  5384. for k2, v2 := range v {
  5385. if j > 0 {
  5386. ee.EncodeMapEntrySeparator()
  5387. }
  5388. ee.EncodeUint(uint64(k2))
  5389. ee.EncodeMapKVSeparator()
  5390. ee.EncodeString(c_UTF8, v2)
  5391. j++
  5392. }
  5393. ee.EncodeMapEnd()
  5394. }
  5395. }
  5396. func (f encFnInfo) fastpathEncMapUint16UintR(rv reflect.Value) {
  5397. fastpathTV.EncMapUint16UintV(rv.Interface().(map[uint16]uint), fastpathCheckNilFalse, f.e)
  5398. }
  5399. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, checkNil bool, e *Encoder) {
  5400. ee := e.e
  5401. if checkNil && v == nil {
  5402. ee.EncodeNil()
  5403. return
  5404. }
  5405. ee.EncodeMapStart(len(v))
  5406. if e.be {
  5407. for k2, v2 := range v {
  5408. ee.EncodeUint(uint64(k2))
  5409. ee.EncodeUint(uint64(v2))
  5410. }
  5411. } else {
  5412. j := 0
  5413. for k2, v2 := range v {
  5414. if j > 0 {
  5415. ee.EncodeMapEntrySeparator()
  5416. }
  5417. ee.EncodeUint(uint64(k2))
  5418. ee.EncodeMapKVSeparator()
  5419. ee.EncodeUint(uint64(v2))
  5420. j++
  5421. }
  5422. ee.EncodeMapEnd()
  5423. }
  5424. }
  5425. func (f encFnInfo) fastpathEncMapUint16Uint8R(rv reflect.Value) {
  5426. fastpathTV.EncMapUint16Uint8V(rv.Interface().(map[uint16]uint8), fastpathCheckNilFalse, f.e)
  5427. }
  5428. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, checkNil bool, e *Encoder) {
  5429. ee := e.e
  5430. if checkNil && v == nil {
  5431. ee.EncodeNil()
  5432. return
  5433. }
  5434. ee.EncodeMapStart(len(v))
  5435. if e.be {
  5436. for k2, v2 := range v {
  5437. ee.EncodeUint(uint64(k2))
  5438. ee.EncodeUint(uint64(v2))
  5439. }
  5440. } else {
  5441. j := 0
  5442. for k2, v2 := range v {
  5443. if j > 0 {
  5444. ee.EncodeMapEntrySeparator()
  5445. }
  5446. ee.EncodeUint(uint64(k2))
  5447. ee.EncodeMapKVSeparator()
  5448. ee.EncodeUint(uint64(v2))
  5449. j++
  5450. }
  5451. ee.EncodeMapEnd()
  5452. }
  5453. }
  5454. func (f encFnInfo) fastpathEncMapUint16Uint16R(rv reflect.Value) {
  5455. fastpathTV.EncMapUint16Uint16V(rv.Interface().(map[uint16]uint16), fastpathCheckNilFalse, f.e)
  5456. }
  5457. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, checkNil bool, e *Encoder) {
  5458. ee := e.e
  5459. if checkNil && v == nil {
  5460. ee.EncodeNil()
  5461. return
  5462. }
  5463. ee.EncodeMapStart(len(v))
  5464. if e.be {
  5465. for k2, v2 := range v {
  5466. ee.EncodeUint(uint64(k2))
  5467. ee.EncodeUint(uint64(v2))
  5468. }
  5469. } else {
  5470. j := 0
  5471. for k2, v2 := range v {
  5472. if j > 0 {
  5473. ee.EncodeMapEntrySeparator()
  5474. }
  5475. ee.EncodeUint(uint64(k2))
  5476. ee.EncodeMapKVSeparator()
  5477. ee.EncodeUint(uint64(v2))
  5478. j++
  5479. }
  5480. ee.EncodeMapEnd()
  5481. }
  5482. }
  5483. func (f encFnInfo) fastpathEncMapUint16Uint32R(rv reflect.Value) {
  5484. fastpathTV.EncMapUint16Uint32V(rv.Interface().(map[uint16]uint32), fastpathCheckNilFalse, f.e)
  5485. }
  5486. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, checkNil bool, e *Encoder) {
  5487. ee := e.e
  5488. if checkNil && v == nil {
  5489. ee.EncodeNil()
  5490. return
  5491. }
  5492. ee.EncodeMapStart(len(v))
  5493. if e.be {
  5494. for k2, v2 := range v {
  5495. ee.EncodeUint(uint64(k2))
  5496. ee.EncodeUint(uint64(v2))
  5497. }
  5498. } else {
  5499. j := 0
  5500. for k2, v2 := range v {
  5501. if j > 0 {
  5502. ee.EncodeMapEntrySeparator()
  5503. }
  5504. ee.EncodeUint(uint64(k2))
  5505. ee.EncodeMapKVSeparator()
  5506. ee.EncodeUint(uint64(v2))
  5507. j++
  5508. }
  5509. ee.EncodeMapEnd()
  5510. }
  5511. }
  5512. func (f encFnInfo) fastpathEncMapUint16Uint64R(rv reflect.Value) {
  5513. fastpathTV.EncMapUint16Uint64V(rv.Interface().(map[uint16]uint64), fastpathCheckNilFalse, f.e)
  5514. }
  5515. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, checkNil bool, e *Encoder) {
  5516. ee := e.e
  5517. if checkNil && v == nil {
  5518. ee.EncodeNil()
  5519. return
  5520. }
  5521. ee.EncodeMapStart(len(v))
  5522. if e.be {
  5523. for k2, v2 := range v {
  5524. ee.EncodeUint(uint64(k2))
  5525. ee.EncodeUint(uint64(v2))
  5526. }
  5527. } else {
  5528. j := 0
  5529. for k2, v2 := range v {
  5530. if j > 0 {
  5531. ee.EncodeMapEntrySeparator()
  5532. }
  5533. ee.EncodeUint(uint64(k2))
  5534. ee.EncodeMapKVSeparator()
  5535. ee.EncodeUint(uint64(v2))
  5536. j++
  5537. }
  5538. ee.EncodeMapEnd()
  5539. }
  5540. }
  5541. func (f encFnInfo) fastpathEncMapUint16IntR(rv reflect.Value) {
  5542. fastpathTV.EncMapUint16IntV(rv.Interface().(map[uint16]int), fastpathCheckNilFalse, f.e)
  5543. }
  5544. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, checkNil bool, e *Encoder) {
  5545. ee := e.e
  5546. if checkNil && v == nil {
  5547. ee.EncodeNil()
  5548. return
  5549. }
  5550. ee.EncodeMapStart(len(v))
  5551. if e.be {
  5552. for k2, v2 := range v {
  5553. ee.EncodeUint(uint64(k2))
  5554. ee.EncodeInt(int64(v2))
  5555. }
  5556. } else {
  5557. j := 0
  5558. for k2, v2 := range v {
  5559. if j > 0 {
  5560. ee.EncodeMapEntrySeparator()
  5561. }
  5562. ee.EncodeUint(uint64(k2))
  5563. ee.EncodeMapKVSeparator()
  5564. ee.EncodeInt(int64(v2))
  5565. j++
  5566. }
  5567. ee.EncodeMapEnd()
  5568. }
  5569. }
  5570. func (f encFnInfo) fastpathEncMapUint16Int8R(rv reflect.Value) {
  5571. fastpathTV.EncMapUint16Int8V(rv.Interface().(map[uint16]int8), fastpathCheckNilFalse, f.e)
  5572. }
  5573. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, checkNil bool, e *Encoder) {
  5574. ee := e.e
  5575. if checkNil && v == nil {
  5576. ee.EncodeNil()
  5577. return
  5578. }
  5579. ee.EncodeMapStart(len(v))
  5580. if e.be {
  5581. for k2, v2 := range v {
  5582. ee.EncodeUint(uint64(k2))
  5583. ee.EncodeInt(int64(v2))
  5584. }
  5585. } else {
  5586. j := 0
  5587. for k2, v2 := range v {
  5588. if j > 0 {
  5589. ee.EncodeMapEntrySeparator()
  5590. }
  5591. ee.EncodeUint(uint64(k2))
  5592. ee.EncodeMapKVSeparator()
  5593. ee.EncodeInt(int64(v2))
  5594. j++
  5595. }
  5596. ee.EncodeMapEnd()
  5597. }
  5598. }
  5599. func (f encFnInfo) fastpathEncMapUint16Int16R(rv reflect.Value) {
  5600. fastpathTV.EncMapUint16Int16V(rv.Interface().(map[uint16]int16), fastpathCheckNilFalse, f.e)
  5601. }
  5602. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, checkNil bool, e *Encoder) {
  5603. ee := e.e
  5604. if checkNil && v == nil {
  5605. ee.EncodeNil()
  5606. return
  5607. }
  5608. ee.EncodeMapStart(len(v))
  5609. if e.be {
  5610. for k2, v2 := range v {
  5611. ee.EncodeUint(uint64(k2))
  5612. ee.EncodeInt(int64(v2))
  5613. }
  5614. } else {
  5615. j := 0
  5616. for k2, v2 := range v {
  5617. if j > 0 {
  5618. ee.EncodeMapEntrySeparator()
  5619. }
  5620. ee.EncodeUint(uint64(k2))
  5621. ee.EncodeMapKVSeparator()
  5622. ee.EncodeInt(int64(v2))
  5623. j++
  5624. }
  5625. ee.EncodeMapEnd()
  5626. }
  5627. }
  5628. func (f encFnInfo) fastpathEncMapUint16Int32R(rv reflect.Value) {
  5629. fastpathTV.EncMapUint16Int32V(rv.Interface().(map[uint16]int32), fastpathCheckNilFalse, f.e)
  5630. }
  5631. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, checkNil bool, e *Encoder) {
  5632. ee := e.e
  5633. if checkNil && v == nil {
  5634. ee.EncodeNil()
  5635. return
  5636. }
  5637. ee.EncodeMapStart(len(v))
  5638. if e.be {
  5639. for k2, v2 := range v {
  5640. ee.EncodeUint(uint64(k2))
  5641. ee.EncodeInt(int64(v2))
  5642. }
  5643. } else {
  5644. j := 0
  5645. for k2, v2 := range v {
  5646. if j > 0 {
  5647. ee.EncodeMapEntrySeparator()
  5648. }
  5649. ee.EncodeUint(uint64(k2))
  5650. ee.EncodeMapKVSeparator()
  5651. ee.EncodeInt(int64(v2))
  5652. j++
  5653. }
  5654. ee.EncodeMapEnd()
  5655. }
  5656. }
  5657. func (f encFnInfo) fastpathEncMapUint16Int64R(rv reflect.Value) {
  5658. fastpathTV.EncMapUint16Int64V(rv.Interface().(map[uint16]int64), fastpathCheckNilFalse, f.e)
  5659. }
  5660. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, checkNil bool, e *Encoder) {
  5661. ee := e.e
  5662. if checkNil && v == nil {
  5663. ee.EncodeNil()
  5664. return
  5665. }
  5666. ee.EncodeMapStart(len(v))
  5667. if e.be {
  5668. for k2, v2 := range v {
  5669. ee.EncodeUint(uint64(k2))
  5670. ee.EncodeInt(int64(v2))
  5671. }
  5672. } else {
  5673. j := 0
  5674. for k2, v2 := range v {
  5675. if j > 0 {
  5676. ee.EncodeMapEntrySeparator()
  5677. }
  5678. ee.EncodeUint(uint64(k2))
  5679. ee.EncodeMapKVSeparator()
  5680. ee.EncodeInt(int64(v2))
  5681. j++
  5682. }
  5683. ee.EncodeMapEnd()
  5684. }
  5685. }
  5686. func (f encFnInfo) fastpathEncMapUint16Float32R(rv reflect.Value) {
  5687. fastpathTV.EncMapUint16Float32V(rv.Interface().(map[uint16]float32), fastpathCheckNilFalse, f.e)
  5688. }
  5689. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, checkNil bool, e *Encoder) {
  5690. ee := e.e
  5691. if checkNil && v == nil {
  5692. ee.EncodeNil()
  5693. return
  5694. }
  5695. ee.EncodeMapStart(len(v))
  5696. if e.be {
  5697. for k2, v2 := range v {
  5698. ee.EncodeUint(uint64(k2))
  5699. ee.EncodeFloat32(v2)
  5700. }
  5701. } else {
  5702. j := 0
  5703. for k2, v2 := range v {
  5704. if j > 0 {
  5705. ee.EncodeMapEntrySeparator()
  5706. }
  5707. ee.EncodeUint(uint64(k2))
  5708. ee.EncodeMapKVSeparator()
  5709. ee.EncodeFloat32(v2)
  5710. j++
  5711. }
  5712. ee.EncodeMapEnd()
  5713. }
  5714. }
  5715. func (f encFnInfo) fastpathEncMapUint16Float64R(rv reflect.Value) {
  5716. fastpathTV.EncMapUint16Float64V(rv.Interface().(map[uint16]float64), fastpathCheckNilFalse, f.e)
  5717. }
  5718. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, checkNil bool, e *Encoder) {
  5719. ee := e.e
  5720. if checkNil && v == nil {
  5721. ee.EncodeNil()
  5722. return
  5723. }
  5724. ee.EncodeMapStart(len(v))
  5725. if e.be {
  5726. for k2, v2 := range v {
  5727. ee.EncodeUint(uint64(k2))
  5728. ee.EncodeFloat64(v2)
  5729. }
  5730. } else {
  5731. j := 0
  5732. for k2, v2 := range v {
  5733. if j > 0 {
  5734. ee.EncodeMapEntrySeparator()
  5735. }
  5736. ee.EncodeUint(uint64(k2))
  5737. ee.EncodeMapKVSeparator()
  5738. ee.EncodeFloat64(v2)
  5739. j++
  5740. }
  5741. ee.EncodeMapEnd()
  5742. }
  5743. }
  5744. func (f encFnInfo) fastpathEncMapUint16BoolR(rv reflect.Value) {
  5745. fastpathTV.EncMapUint16BoolV(rv.Interface().(map[uint16]bool), fastpathCheckNilFalse, f.e)
  5746. }
  5747. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, checkNil bool, e *Encoder) {
  5748. ee := e.e
  5749. if checkNil && v == nil {
  5750. ee.EncodeNil()
  5751. return
  5752. }
  5753. ee.EncodeMapStart(len(v))
  5754. if e.be {
  5755. for k2, v2 := range v {
  5756. ee.EncodeUint(uint64(k2))
  5757. ee.EncodeBool(v2)
  5758. }
  5759. } else {
  5760. j := 0
  5761. for k2, v2 := range v {
  5762. if j > 0 {
  5763. ee.EncodeMapEntrySeparator()
  5764. }
  5765. ee.EncodeUint(uint64(k2))
  5766. ee.EncodeMapKVSeparator()
  5767. ee.EncodeBool(v2)
  5768. j++
  5769. }
  5770. ee.EncodeMapEnd()
  5771. }
  5772. }
  5773. func (f encFnInfo) fastpathEncMapUint32IntfR(rv reflect.Value) {
  5774. fastpathTV.EncMapUint32IntfV(rv.Interface().(map[uint32]interface{}), fastpathCheckNilFalse, f.e)
  5775. }
  5776. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, checkNil bool, e *Encoder) {
  5777. ee := e.e
  5778. if checkNil && v == nil {
  5779. ee.EncodeNil()
  5780. return
  5781. }
  5782. ee.EncodeMapStart(len(v))
  5783. if e.be {
  5784. for k2, v2 := range v {
  5785. ee.EncodeUint(uint64(k2))
  5786. e.encode(v2)
  5787. }
  5788. } else {
  5789. j := 0
  5790. for k2, v2 := range v {
  5791. if j > 0 {
  5792. ee.EncodeMapEntrySeparator()
  5793. }
  5794. ee.EncodeUint(uint64(k2))
  5795. ee.EncodeMapKVSeparator()
  5796. e.encode(v2)
  5797. j++
  5798. }
  5799. ee.EncodeMapEnd()
  5800. }
  5801. }
  5802. func (f encFnInfo) fastpathEncMapUint32StringR(rv reflect.Value) {
  5803. fastpathTV.EncMapUint32StringV(rv.Interface().(map[uint32]string), fastpathCheckNilFalse, f.e)
  5804. }
  5805. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, checkNil bool, e *Encoder) {
  5806. ee := e.e
  5807. if checkNil && v == nil {
  5808. ee.EncodeNil()
  5809. return
  5810. }
  5811. ee.EncodeMapStart(len(v))
  5812. if e.be {
  5813. for k2, v2 := range v {
  5814. ee.EncodeUint(uint64(k2))
  5815. ee.EncodeString(c_UTF8, v2)
  5816. }
  5817. } else {
  5818. j := 0
  5819. for k2, v2 := range v {
  5820. if j > 0 {
  5821. ee.EncodeMapEntrySeparator()
  5822. }
  5823. ee.EncodeUint(uint64(k2))
  5824. ee.EncodeMapKVSeparator()
  5825. ee.EncodeString(c_UTF8, v2)
  5826. j++
  5827. }
  5828. ee.EncodeMapEnd()
  5829. }
  5830. }
  5831. func (f encFnInfo) fastpathEncMapUint32UintR(rv reflect.Value) {
  5832. fastpathTV.EncMapUint32UintV(rv.Interface().(map[uint32]uint), fastpathCheckNilFalse, f.e)
  5833. }
  5834. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, checkNil bool, e *Encoder) {
  5835. ee := e.e
  5836. if checkNil && v == nil {
  5837. ee.EncodeNil()
  5838. return
  5839. }
  5840. ee.EncodeMapStart(len(v))
  5841. if e.be {
  5842. for k2, v2 := range v {
  5843. ee.EncodeUint(uint64(k2))
  5844. ee.EncodeUint(uint64(v2))
  5845. }
  5846. } else {
  5847. j := 0
  5848. for k2, v2 := range v {
  5849. if j > 0 {
  5850. ee.EncodeMapEntrySeparator()
  5851. }
  5852. ee.EncodeUint(uint64(k2))
  5853. ee.EncodeMapKVSeparator()
  5854. ee.EncodeUint(uint64(v2))
  5855. j++
  5856. }
  5857. ee.EncodeMapEnd()
  5858. }
  5859. }
  5860. func (f encFnInfo) fastpathEncMapUint32Uint8R(rv reflect.Value) {
  5861. fastpathTV.EncMapUint32Uint8V(rv.Interface().(map[uint32]uint8), fastpathCheckNilFalse, f.e)
  5862. }
  5863. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, checkNil bool, e *Encoder) {
  5864. ee := e.e
  5865. if checkNil && v == nil {
  5866. ee.EncodeNil()
  5867. return
  5868. }
  5869. ee.EncodeMapStart(len(v))
  5870. if e.be {
  5871. for k2, v2 := range v {
  5872. ee.EncodeUint(uint64(k2))
  5873. ee.EncodeUint(uint64(v2))
  5874. }
  5875. } else {
  5876. j := 0
  5877. for k2, v2 := range v {
  5878. if j > 0 {
  5879. ee.EncodeMapEntrySeparator()
  5880. }
  5881. ee.EncodeUint(uint64(k2))
  5882. ee.EncodeMapKVSeparator()
  5883. ee.EncodeUint(uint64(v2))
  5884. j++
  5885. }
  5886. ee.EncodeMapEnd()
  5887. }
  5888. }
  5889. func (f encFnInfo) fastpathEncMapUint32Uint16R(rv reflect.Value) {
  5890. fastpathTV.EncMapUint32Uint16V(rv.Interface().(map[uint32]uint16), fastpathCheckNilFalse, f.e)
  5891. }
  5892. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, checkNil bool, e *Encoder) {
  5893. ee := e.e
  5894. if checkNil && v == nil {
  5895. ee.EncodeNil()
  5896. return
  5897. }
  5898. ee.EncodeMapStart(len(v))
  5899. if e.be {
  5900. for k2, v2 := range v {
  5901. ee.EncodeUint(uint64(k2))
  5902. ee.EncodeUint(uint64(v2))
  5903. }
  5904. } else {
  5905. j := 0
  5906. for k2, v2 := range v {
  5907. if j > 0 {
  5908. ee.EncodeMapEntrySeparator()
  5909. }
  5910. ee.EncodeUint(uint64(k2))
  5911. ee.EncodeMapKVSeparator()
  5912. ee.EncodeUint(uint64(v2))
  5913. j++
  5914. }
  5915. ee.EncodeMapEnd()
  5916. }
  5917. }
  5918. func (f encFnInfo) fastpathEncMapUint32Uint32R(rv reflect.Value) {
  5919. fastpathTV.EncMapUint32Uint32V(rv.Interface().(map[uint32]uint32), fastpathCheckNilFalse, f.e)
  5920. }
  5921. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, checkNil bool, e *Encoder) {
  5922. ee := e.e
  5923. if checkNil && v == nil {
  5924. ee.EncodeNil()
  5925. return
  5926. }
  5927. ee.EncodeMapStart(len(v))
  5928. if e.be {
  5929. for k2, v2 := range v {
  5930. ee.EncodeUint(uint64(k2))
  5931. ee.EncodeUint(uint64(v2))
  5932. }
  5933. } else {
  5934. j := 0
  5935. for k2, v2 := range v {
  5936. if j > 0 {
  5937. ee.EncodeMapEntrySeparator()
  5938. }
  5939. ee.EncodeUint(uint64(k2))
  5940. ee.EncodeMapKVSeparator()
  5941. ee.EncodeUint(uint64(v2))
  5942. j++
  5943. }
  5944. ee.EncodeMapEnd()
  5945. }
  5946. }
  5947. func (f encFnInfo) fastpathEncMapUint32Uint64R(rv reflect.Value) {
  5948. fastpathTV.EncMapUint32Uint64V(rv.Interface().(map[uint32]uint64), fastpathCheckNilFalse, f.e)
  5949. }
  5950. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, checkNil bool, e *Encoder) {
  5951. ee := e.e
  5952. if checkNil && v == nil {
  5953. ee.EncodeNil()
  5954. return
  5955. }
  5956. ee.EncodeMapStart(len(v))
  5957. if e.be {
  5958. for k2, v2 := range v {
  5959. ee.EncodeUint(uint64(k2))
  5960. ee.EncodeUint(uint64(v2))
  5961. }
  5962. } else {
  5963. j := 0
  5964. for k2, v2 := range v {
  5965. if j > 0 {
  5966. ee.EncodeMapEntrySeparator()
  5967. }
  5968. ee.EncodeUint(uint64(k2))
  5969. ee.EncodeMapKVSeparator()
  5970. ee.EncodeUint(uint64(v2))
  5971. j++
  5972. }
  5973. ee.EncodeMapEnd()
  5974. }
  5975. }
  5976. func (f encFnInfo) fastpathEncMapUint32IntR(rv reflect.Value) {
  5977. fastpathTV.EncMapUint32IntV(rv.Interface().(map[uint32]int), fastpathCheckNilFalse, f.e)
  5978. }
  5979. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, checkNil bool, e *Encoder) {
  5980. ee := e.e
  5981. if checkNil && v == nil {
  5982. ee.EncodeNil()
  5983. return
  5984. }
  5985. ee.EncodeMapStart(len(v))
  5986. if e.be {
  5987. for k2, v2 := range v {
  5988. ee.EncodeUint(uint64(k2))
  5989. ee.EncodeInt(int64(v2))
  5990. }
  5991. } else {
  5992. j := 0
  5993. for k2, v2 := range v {
  5994. if j > 0 {
  5995. ee.EncodeMapEntrySeparator()
  5996. }
  5997. ee.EncodeUint(uint64(k2))
  5998. ee.EncodeMapKVSeparator()
  5999. ee.EncodeInt(int64(v2))
  6000. j++
  6001. }
  6002. ee.EncodeMapEnd()
  6003. }
  6004. }
  6005. func (f encFnInfo) fastpathEncMapUint32Int8R(rv reflect.Value) {
  6006. fastpathTV.EncMapUint32Int8V(rv.Interface().(map[uint32]int8), fastpathCheckNilFalse, f.e)
  6007. }
  6008. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, checkNil bool, e *Encoder) {
  6009. ee := e.e
  6010. if checkNil && v == nil {
  6011. ee.EncodeNil()
  6012. return
  6013. }
  6014. ee.EncodeMapStart(len(v))
  6015. if e.be {
  6016. for k2, v2 := range v {
  6017. ee.EncodeUint(uint64(k2))
  6018. ee.EncodeInt(int64(v2))
  6019. }
  6020. } else {
  6021. j := 0
  6022. for k2, v2 := range v {
  6023. if j > 0 {
  6024. ee.EncodeMapEntrySeparator()
  6025. }
  6026. ee.EncodeUint(uint64(k2))
  6027. ee.EncodeMapKVSeparator()
  6028. ee.EncodeInt(int64(v2))
  6029. j++
  6030. }
  6031. ee.EncodeMapEnd()
  6032. }
  6033. }
  6034. func (f encFnInfo) fastpathEncMapUint32Int16R(rv reflect.Value) {
  6035. fastpathTV.EncMapUint32Int16V(rv.Interface().(map[uint32]int16), fastpathCheckNilFalse, f.e)
  6036. }
  6037. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, checkNil bool, e *Encoder) {
  6038. ee := e.e
  6039. if checkNil && v == nil {
  6040. ee.EncodeNil()
  6041. return
  6042. }
  6043. ee.EncodeMapStart(len(v))
  6044. if e.be {
  6045. for k2, v2 := range v {
  6046. ee.EncodeUint(uint64(k2))
  6047. ee.EncodeInt(int64(v2))
  6048. }
  6049. } else {
  6050. j := 0
  6051. for k2, v2 := range v {
  6052. if j > 0 {
  6053. ee.EncodeMapEntrySeparator()
  6054. }
  6055. ee.EncodeUint(uint64(k2))
  6056. ee.EncodeMapKVSeparator()
  6057. ee.EncodeInt(int64(v2))
  6058. j++
  6059. }
  6060. ee.EncodeMapEnd()
  6061. }
  6062. }
  6063. func (f encFnInfo) fastpathEncMapUint32Int32R(rv reflect.Value) {
  6064. fastpathTV.EncMapUint32Int32V(rv.Interface().(map[uint32]int32), fastpathCheckNilFalse, f.e)
  6065. }
  6066. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, checkNil bool, e *Encoder) {
  6067. ee := e.e
  6068. if checkNil && v == nil {
  6069. ee.EncodeNil()
  6070. return
  6071. }
  6072. ee.EncodeMapStart(len(v))
  6073. if e.be {
  6074. for k2, v2 := range v {
  6075. ee.EncodeUint(uint64(k2))
  6076. ee.EncodeInt(int64(v2))
  6077. }
  6078. } else {
  6079. j := 0
  6080. for k2, v2 := range v {
  6081. if j > 0 {
  6082. ee.EncodeMapEntrySeparator()
  6083. }
  6084. ee.EncodeUint(uint64(k2))
  6085. ee.EncodeMapKVSeparator()
  6086. ee.EncodeInt(int64(v2))
  6087. j++
  6088. }
  6089. ee.EncodeMapEnd()
  6090. }
  6091. }
  6092. func (f encFnInfo) fastpathEncMapUint32Int64R(rv reflect.Value) {
  6093. fastpathTV.EncMapUint32Int64V(rv.Interface().(map[uint32]int64), fastpathCheckNilFalse, f.e)
  6094. }
  6095. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, checkNil bool, e *Encoder) {
  6096. ee := e.e
  6097. if checkNil && v == nil {
  6098. ee.EncodeNil()
  6099. return
  6100. }
  6101. ee.EncodeMapStart(len(v))
  6102. if e.be {
  6103. for k2, v2 := range v {
  6104. ee.EncodeUint(uint64(k2))
  6105. ee.EncodeInt(int64(v2))
  6106. }
  6107. } else {
  6108. j := 0
  6109. for k2, v2 := range v {
  6110. if j > 0 {
  6111. ee.EncodeMapEntrySeparator()
  6112. }
  6113. ee.EncodeUint(uint64(k2))
  6114. ee.EncodeMapKVSeparator()
  6115. ee.EncodeInt(int64(v2))
  6116. j++
  6117. }
  6118. ee.EncodeMapEnd()
  6119. }
  6120. }
  6121. func (f encFnInfo) fastpathEncMapUint32Float32R(rv reflect.Value) {
  6122. fastpathTV.EncMapUint32Float32V(rv.Interface().(map[uint32]float32), fastpathCheckNilFalse, f.e)
  6123. }
  6124. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, checkNil bool, e *Encoder) {
  6125. ee := e.e
  6126. if checkNil && v == nil {
  6127. ee.EncodeNil()
  6128. return
  6129. }
  6130. ee.EncodeMapStart(len(v))
  6131. if e.be {
  6132. for k2, v2 := range v {
  6133. ee.EncodeUint(uint64(k2))
  6134. ee.EncodeFloat32(v2)
  6135. }
  6136. } else {
  6137. j := 0
  6138. for k2, v2 := range v {
  6139. if j > 0 {
  6140. ee.EncodeMapEntrySeparator()
  6141. }
  6142. ee.EncodeUint(uint64(k2))
  6143. ee.EncodeMapKVSeparator()
  6144. ee.EncodeFloat32(v2)
  6145. j++
  6146. }
  6147. ee.EncodeMapEnd()
  6148. }
  6149. }
  6150. func (f encFnInfo) fastpathEncMapUint32Float64R(rv reflect.Value) {
  6151. fastpathTV.EncMapUint32Float64V(rv.Interface().(map[uint32]float64), fastpathCheckNilFalse, f.e)
  6152. }
  6153. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, checkNil bool, e *Encoder) {
  6154. ee := e.e
  6155. if checkNil && v == nil {
  6156. ee.EncodeNil()
  6157. return
  6158. }
  6159. ee.EncodeMapStart(len(v))
  6160. if e.be {
  6161. for k2, v2 := range v {
  6162. ee.EncodeUint(uint64(k2))
  6163. ee.EncodeFloat64(v2)
  6164. }
  6165. } else {
  6166. j := 0
  6167. for k2, v2 := range v {
  6168. if j > 0 {
  6169. ee.EncodeMapEntrySeparator()
  6170. }
  6171. ee.EncodeUint(uint64(k2))
  6172. ee.EncodeMapKVSeparator()
  6173. ee.EncodeFloat64(v2)
  6174. j++
  6175. }
  6176. ee.EncodeMapEnd()
  6177. }
  6178. }
  6179. func (f encFnInfo) fastpathEncMapUint32BoolR(rv reflect.Value) {
  6180. fastpathTV.EncMapUint32BoolV(rv.Interface().(map[uint32]bool), fastpathCheckNilFalse, f.e)
  6181. }
  6182. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, checkNil bool, e *Encoder) {
  6183. ee := e.e
  6184. if checkNil && v == nil {
  6185. ee.EncodeNil()
  6186. return
  6187. }
  6188. ee.EncodeMapStart(len(v))
  6189. if e.be {
  6190. for k2, v2 := range v {
  6191. ee.EncodeUint(uint64(k2))
  6192. ee.EncodeBool(v2)
  6193. }
  6194. } else {
  6195. j := 0
  6196. for k2, v2 := range v {
  6197. if j > 0 {
  6198. ee.EncodeMapEntrySeparator()
  6199. }
  6200. ee.EncodeUint(uint64(k2))
  6201. ee.EncodeMapKVSeparator()
  6202. ee.EncodeBool(v2)
  6203. j++
  6204. }
  6205. ee.EncodeMapEnd()
  6206. }
  6207. }
  6208. func (f encFnInfo) fastpathEncMapUint64IntfR(rv reflect.Value) {
  6209. fastpathTV.EncMapUint64IntfV(rv.Interface().(map[uint64]interface{}), fastpathCheckNilFalse, f.e)
  6210. }
  6211. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, checkNil bool, e *Encoder) {
  6212. ee := e.e
  6213. if checkNil && v == nil {
  6214. ee.EncodeNil()
  6215. return
  6216. }
  6217. ee.EncodeMapStart(len(v))
  6218. if e.be {
  6219. for k2, v2 := range v {
  6220. ee.EncodeUint(uint64(k2))
  6221. e.encode(v2)
  6222. }
  6223. } else {
  6224. j := 0
  6225. for k2, v2 := range v {
  6226. if j > 0 {
  6227. ee.EncodeMapEntrySeparator()
  6228. }
  6229. ee.EncodeUint(uint64(k2))
  6230. ee.EncodeMapKVSeparator()
  6231. e.encode(v2)
  6232. j++
  6233. }
  6234. ee.EncodeMapEnd()
  6235. }
  6236. }
  6237. func (f encFnInfo) fastpathEncMapUint64StringR(rv reflect.Value) {
  6238. fastpathTV.EncMapUint64StringV(rv.Interface().(map[uint64]string), fastpathCheckNilFalse, f.e)
  6239. }
  6240. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, checkNil bool, e *Encoder) {
  6241. ee := e.e
  6242. if checkNil && v == nil {
  6243. ee.EncodeNil()
  6244. return
  6245. }
  6246. ee.EncodeMapStart(len(v))
  6247. if e.be {
  6248. for k2, v2 := range v {
  6249. ee.EncodeUint(uint64(k2))
  6250. ee.EncodeString(c_UTF8, v2)
  6251. }
  6252. } else {
  6253. j := 0
  6254. for k2, v2 := range v {
  6255. if j > 0 {
  6256. ee.EncodeMapEntrySeparator()
  6257. }
  6258. ee.EncodeUint(uint64(k2))
  6259. ee.EncodeMapKVSeparator()
  6260. ee.EncodeString(c_UTF8, v2)
  6261. j++
  6262. }
  6263. ee.EncodeMapEnd()
  6264. }
  6265. }
  6266. func (f encFnInfo) fastpathEncMapUint64UintR(rv reflect.Value) {
  6267. fastpathTV.EncMapUint64UintV(rv.Interface().(map[uint64]uint), fastpathCheckNilFalse, f.e)
  6268. }
  6269. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, checkNil bool, e *Encoder) {
  6270. ee := e.e
  6271. if checkNil && v == nil {
  6272. ee.EncodeNil()
  6273. return
  6274. }
  6275. ee.EncodeMapStart(len(v))
  6276. if e.be {
  6277. for k2, v2 := range v {
  6278. ee.EncodeUint(uint64(k2))
  6279. ee.EncodeUint(uint64(v2))
  6280. }
  6281. } else {
  6282. j := 0
  6283. for k2, v2 := range v {
  6284. if j > 0 {
  6285. ee.EncodeMapEntrySeparator()
  6286. }
  6287. ee.EncodeUint(uint64(k2))
  6288. ee.EncodeMapKVSeparator()
  6289. ee.EncodeUint(uint64(v2))
  6290. j++
  6291. }
  6292. ee.EncodeMapEnd()
  6293. }
  6294. }
  6295. func (f encFnInfo) fastpathEncMapUint64Uint8R(rv reflect.Value) {
  6296. fastpathTV.EncMapUint64Uint8V(rv.Interface().(map[uint64]uint8), fastpathCheckNilFalse, f.e)
  6297. }
  6298. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, checkNil bool, e *Encoder) {
  6299. ee := e.e
  6300. if checkNil && v == nil {
  6301. ee.EncodeNil()
  6302. return
  6303. }
  6304. ee.EncodeMapStart(len(v))
  6305. if e.be {
  6306. for k2, v2 := range v {
  6307. ee.EncodeUint(uint64(k2))
  6308. ee.EncodeUint(uint64(v2))
  6309. }
  6310. } else {
  6311. j := 0
  6312. for k2, v2 := range v {
  6313. if j > 0 {
  6314. ee.EncodeMapEntrySeparator()
  6315. }
  6316. ee.EncodeUint(uint64(k2))
  6317. ee.EncodeMapKVSeparator()
  6318. ee.EncodeUint(uint64(v2))
  6319. j++
  6320. }
  6321. ee.EncodeMapEnd()
  6322. }
  6323. }
  6324. func (f encFnInfo) fastpathEncMapUint64Uint16R(rv reflect.Value) {
  6325. fastpathTV.EncMapUint64Uint16V(rv.Interface().(map[uint64]uint16), fastpathCheckNilFalse, f.e)
  6326. }
  6327. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, checkNil bool, e *Encoder) {
  6328. ee := e.e
  6329. if checkNil && v == nil {
  6330. ee.EncodeNil()
  6331. return
  6332. }
  6333. ee.EncodeMapStart(len(v))
  6334. if e.be {
  6335. for k2, v2 := range v {
  6336. ee.EncodeUint(uint64(k2))
  6337. ee.EncodeUint(uint64(v2))
  6338. }
  6339. } else {
  6340. j := 0
  6341. for k2, v2 := range v {
  6342. if j > 0 {
  6343. ee.EncodeMapEntrySeparator()
  6344. }
  6345. ee.EncodeUint(uint64(k2))
  6346. ee.EncodeMapKVSeparator()
  6347. ee.EncodeUint(uint64(v2))
  6348. j++
  6349. }
  6350. ee.EncodeMapEnd()
  6351. }
  6352. }
  6353. func (f encFnInfo) fastpathEncMapUint64Uint32R(rv reflect.Value) {
  6354. fastpathTV.EncMapUint64Uint32V(rv.Interface().(map[uint64]uint32), fastpathCheckNilFalse, f.e)
  6355. }
  6356. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, checkNil bool, e *Encoder) {
  6357. ee := e.e
  6358. if checkNil && v == nil {
  6359. ee.EncodeNil()
  6360. return
  6361. }
  6362. ee.EncodeMapStart(len(v))
  6363. if e.be {
  6364. for k2, v2 := range v {
  6365. ee.EncodeUint(uint64(k2))
  6366. ee.EncodeUint(uint64(v2))
  6367. }
  6368. } else {
  6369. j := 0
  6370. for k2, v2 := range v {
  6371. if j > 0 {
  6372. ee.EncodeMapEntrySeparator()
  6373. }
  6374. ee.EncodeUint(uint64(k2))
  6375. ee.EncodeMapKVSeparator()
  6376. ee.EncodeUint(uint64(v2))
  6377. j++
  6378. }
  6379. ee.EncodeMapEnd()
  6380. }
  6381. }
  6382. func (f encFnInfo) fastpathEncMapUint64Uint64R(rv reflect.Value) {
  6383. fastpathTV.EncMapUint64Uint64V(rv.Interface().(map[uint64]uint64), fastpathCheckNilFalse, f.e)
  6384. }
  6385. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, checkNil bool, e *Encoder) {
  6386. ee := e.e
  6387. if checkNil && v == nil {
  6388. ee.EncodeNil()
  6389. return
  6390. }
  6391. ee.EncodeMapStart(len(v))
  6392. if e.be {
  6393. for k2, v2 := range v {
  6394. ee.EncodeUint(uint64(k2))
  6395. ee.EncodeUint(uint64(v2))
  6396. }
  6397. } else {
  6398. j := 0
  6399. for k2, v2 := range v {
  6400. if j > 0 {
  6401. ee.EncodeMapEntrySeparator()
  6402. }
  6403. ee.EncodeUint(uint64(k2))
  6404. ee.EncodeMapKVSeparator()
  6405. ee.EncodeUint(uint64(v2))
  6406. j++
  6407. }
  6408. ee.EncodeMapEnd()
  6409. }
  6410. }
  6411. func (f encFnInfo) fastpathEncMapUint64IntR(rv reflect.Value) {
  6412. fastpathTV.EncMapUint64IntV(rv.Interface().(map[uint64]int), fastpathCheckNilFalse, f.e)
  6413. }
  6414. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, checkNil bool, e *Encoder) {
  6415. ee := e.e
  6416. if checkNil && v == nil {
  6417. ee.EncodeNil()
  6418. return
  6419. }
  6420. ee.EncodeMapStart(len(v))
  6421. if e.be {
  6422. for k2, v2 := range v {
  6423. ee.EncodeUint(uint64(k2))
  6424. ee.EncodeInt(int64(v2))
  6425. }
  6426. } else {
  6427. j := 0
  6428. for k2, v2 := range v {
  6429. if j > 0 {
  6430. ee.EncodeMapEntrySeparator()
  6431. }
  6432. ee.EncodeUint(uint64(k2))
  6433. ee.EncodeMapKVSeparator()
  6434. ee.EncodeInt(int64(v2))
  6435. j++
  6436. }
  6437. ee.EncodeMapEnd()
  6438. }
  6439. }
  6440. func (f encFnInfo) fastpathEncMapUint64Int8R(rv reflect.Value) {
  6441. fastpathTV.EncMapUint64Int8V(rv.Interface().(map[uint64]int8), fastpathCheckNilFalse, f.e)
  6442. }
  6443. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, checkNil bool, e *Encoder) {
  6444. ee := e.e
  6445. if checkNil && v == nil {
  6446. ee.EncodeNil()
  6447. return
  6448. }
  6449. ee.EncodeMapStart(len(v))
  6450. if e.be {
  6451. for k2, v2 := range v {
  6452. ee.EncodeUint(uint64(k2))
  6453. ee.EncodeInt(int64(v2))
  6454. }
  6455. } else {
  6456. j := 0
  6457. for k2, v2 := range v {
  6458. if j > 0 {
  6459. ee.EncodeMapEntrySeparator()
  6460. }
  6461. ee.EncodeUint(uint64(k2))
  6462. ee.EncodeMapKVSeparator()
  6463. ee.EncodeInt(int64(v2))
  6464. j++
  6465. }
  6466. ee.EncodeMapEnd()
  6467. }
  6468. }
  6469. func (f encFnInfo) fastpathEncMapUint64Int16R(rv reflect.Value) {
  6470. fastpathTV.EncMapUint64Int16V(rv.Interface().(map[uint64]int16), fastpathCheckNilFalse, f.e)
  6471. }
  6472. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, checkNil bool, e *Encoder) {
  6473. ee := e.e
  6474. if checkNil && v == nil {
  6475. ee.EncodeNil()
  6476. return
  6477. }
  6478. ee.EncodeMapStart(len(v))
  6479. if e.be {
  6480. for k2, v2 := range v {
  6481. ee.EncodeUint(uint64(k2))
  6482. ee.EncodeInt(int64(v2))
  6483. }
  6484. } else {
  6485. j := 0
  6486. for k2, v2 := range v {
  6487. if j > 0 {
  6488. ee.EncodeMapEntrySeparator()
  6489. }
  6490. ee.EncodeUint(uint64(k2))
  6491. ee.EncodeMapKVSeparator()
  6492. ee.EncodeInt(int64(v2))
  6493. j++
  6494. }
  6495. ee.EncodeMapEnd()
  6496. }
  6497. }
  6498. func (f encFnInfo) fastpathEncMapUint64Int32R(rv reflect.Value) {
  6499. fastpathTV.EncMapUint64Int32V(rv.Interface().(map[uint64]int32), fastpathCheckNilFalse, f.e)
  6500. }
  6501. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, checkNil bool, e *Encoder) {
  6502. ee := e.e
  6503. if checkNil && v == nil {
  6504. ee.EncodeNil()
  6505. return
  6506. }
  6507. ee.EncodeMapStart(len(v))
  6508. if e.be {
  6509. for k2, v2 := range v {
  6510. ee.EncodeUint(uint64(k2))
  6511. ee.EncodeInt(int64(v2))
  6512. }
  6513. } else {
  6514. j := 0
  6515. for k2, v2 := range v {
  6516. if j > 0 {
  6517. ee.EncodeMapEntrySeparator()
  6518. }
  6519. ee.EncodeUint(uint64(k2))
  6520. ee.EncodeMapKVSeparator()
  6521. ee.EncodeInt(int64(v2))
  6522. j++
  6523. }
  6524. ee.EncodeMapEnd()
  6525. }
  6526. }
  6527. func (f encFnInfo) fastpathEncMapUint64Int64R(rv reflect.Value) {
  6528. fastpathTV.EncMapUint64Int64V(rv.Interface().(map[uint64]int64), fastpathCheckNilFalse, f.e)
  6529. }
  6530. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, checkNil bool, e *Encoder) {
  6531. ee := e.e
  6532. if checkNil && v == nil {
  6533. ee.EncodeNil()
  6534. return
  6535. }
  6536. ee.EncodeMapStart(len(v))
  6537. if e.be {
  6538. for k2, v2 := range v {
  6539. ee.EncodeUint(uint64(k2))
  6540. ee.EncodeInt(int64(v2))
  6541. }
  6542. } else {
  6543. j := 0
  6544. for k2, v2 := range v {
  6545. if j > 0 {
  6546. ee.EncodeMapEntrySeparator()
  6547. }
  6548. ee.EncodeUint(uint64(k2))
  6549. ee.EncodeMapKVSeparator()
  6550. ee.EncodeInt(int64(v2))
  6551. j++
  6552. }
  6553. ee.EncodeMapEnd()
  6554. }
  6555. }
  6556. func (f encFnInfo) fastpathEncMapUint64Float32R(rv reflect.Value) {
  6557. fastpathTV.EncMapUint64Float32V(rv.Interface().(map[uint64]float32), fastpathCheckNilFalse, f.e)
  6558. }
  6559. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, checkNil bool, e *Encoder) {
  6560. ee := e.e
  6561. if checkNil && v == nil {
  6562. ee.EncodeNil()
  6563. return
  6564. }
  6565. ee.EncodeMapStart(len(v))
  6566. if e.be {
  6567. for k2, v2 := range v {
  6568. ee.EncodeUint(uint64(k2))
  6569. ee.EncodeFloat32(v2)
  6570. }
  6571. } else {
  6572. j := 0
  6573. for k2, v2 := range v {
  6574. if j > 0 {
  6575. ee.EncodeMapEntrySeparator()
  6576. }
  6577. ee.EncodeUint(uint64(k2))
  6578. ee.EncodeMapKVSeparator()
  6579. ee.EncodeFloat32(v2)
  6580. j++
  6581. }
  6582. ee.EncodeMapEnd()
  6583. }
  6584. }
  6585. func (f encFnInfo) fastpathEncMapUint64Float64R(rv reflect.Value) {
  6586. fastpathTV.EncMapUint64Float64V(rv.Interface().(map[uint64]float64), fastpathCheckNilFalse, f.e)
  6587. }
  6588. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, checkNil bool, e *Encoder) {
  6589. ee := e.e
  6590. if checkNil && v == nil {
  6591. ee.EncodeNil()
  6592. return
  6593. }
  6594. ee.EncodeMapStart(len(v))
  6595. if e.be {
  6596. for k2, v2 := range v {
  6597. ee.EncodeUint(uint64(k2))
  6598. ee.EncodeFloat64(v2)
  6599. }
  6600. } else {
  6601. j := 0
  6602. for k2, v2 := range v {
  6603. if j > 0 {
  6604. ee.EncodeMapEntrySeparator()
  6605. }
  6606. ee.EncodeUint(uint64(k2))
  6607. ee.EncodeMapKVSeparator()
  6608. ee.EncodeFloat64(v2)
  6609. j++
  6610. }
  6611. ee.EncodeMapEnd()
  6612. }
  6613. }
  6614. func (f encFnInfo) fastpathEncMapUint64BoolR(rv reflect.Value) {
  6615. fastpathTV.EncMapUint64BoolV(rv.Interface().(map[uint64]bool), fastpathCheckNilFalse, f.e)
  6616. }
  6617. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, checkNil bool, e *Encoder) {
  6618. ee := e.e
  6619. if checkNil && v == nil {
  6620. ee.EncodeNil()
  6621. return
  6622. }
  6623. ee.EncodeMapStart(len(v))
  6624. if e.be {
  6625. for k2, v2 := range v {
  6626. ee.EncodeUint(uint64(k2))
  6627. ee.EncodeBool(v2)
  6628. }
  6629. } else {
  6630. j := 0
  6631. for k2, v2 := range v {
  6632. if j > 0 {
  6633. ee.EncodeMapEntrySeparator()
  6634. }
  6635. ee.EncodeUint(uint64(k2))
  6636. ee.EncodeMapKVSeparator()
  6637. ee.EncodeBool(v2)
  6638. j++
  6639. }
  6640. ee.EncodeMapEnd()
  6641. }
  6642. }
  6643. func (f encFnInfo) fastpathEncMapIntIntfR(rv reflect.Value) {
  6644. fastpathTV.EncMapIntIntfV(rv.Interface().(map[int]interface{}), fastpathCheckNilFalse, f.e)
  6645. }
  6646. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, checkNil bool, e *Encoder) {
  6647. ee := e.e
  6648. if checkNil && v == nil {
  6649. ee.EncodeNil()
  6650. return
  6651. }
  6652. ee.EncodeMapStart(len(v))
  6653. if e.be {
  6654. for k2, v2 := range v {
  6655. ee.EncodeInt(int64(k2))
  6656. e.encode(v2)
  6657. }
  6658. } else {
  6659. j := 0
  6660. for k2, v2 := range v {
  6661. if j > 0 {
  6662. ee.EncodeMapEntrySeparator()
  6663. }
  6664. ee.EncodeInt(int64(k2))
  6665. ee.EncodeMapKVSeparator()
  6666. e.encode(v2)
  6667. j++
  6668. }
  6669. ee.EncodeMapEnd()
  6670. }
  6671. }
  6672. func (f encFnInfo) fastpathEncMapIntStringR(rv reflect.Value) {
  6673. fastpathTV.EncMapIntStringV(rv.Interface().(map[int]string), fastpathCheckNilFalse, f.e)
  6674. }
  6675. func (_ fastpathT) EncMapIntStringV(v map[int]string, checkNil bool, e *Encoder) {
  6676. ee := e.e
  6677. if checkNil && v == nil {
  6678. ee.EncodeNil()
  6679. return
  6680. }
  6681. ee.EncodeMapStart(len(v))
  6682. if e.be {
  6683. for k2, v2 := range v {
  6684. ee.EncodeInt(int64(k2))
  6685. ee.EncodeString(c_UTF8, v2)
  6686. }
  6687. } else {
  6688. j := 0
  6689. for k2, v2 := range v {
  6690. if j > 0 {
  6691. ee.EncodeMapEntrySeparator()
  6692. }
  6693. ee.EncodeInt(int64(k2))
  6694. ee.EncodeMapKVSeparator()
  6695. ee.EncodeString(c_UTF8, v2)
  6696. j++
  6697. }
  6698. ee.EncodeMapEnd()
  6699. }
  6700. }
  6701. func (f encFnInfo) fastpathEncMapIntUintR(rv reflect.Value) {
  6702. fastpathTV.EncMapIntUintV(rv.Interface().(map[int]uint), fastpathCheckNilFalse, f.e)
  6703. }
  6704. func (_ fastpathT) EncMapIntUintV(v map[int]uint, checkNil bool, e *Encoder) {
  6705. ee := e.e
  6706. if checkNil && v == nil {
  6707. ee.EncodeNil()
  6708. return
  6709. }
  6710. ee.EncodeMapStart(len(v))
  6711. if e.be {
  6712. for k2, v2 := range v {
  6713. ee.EncodeInt(int64(k2))
  6714. ee.EncodeUint(uint64(v2))
  6715. }
  6716. } else {
  6717. j := 0
  6718. for k2, v2 := range v {
  6719. if j > 0 {
  6720. ee.EncodeMapEntrySeparator()
  6721. }
  6722. ee.EncodeInt(int64(k2))
  6723. ee.EncodeMapKVSeparator()
  6724. ee.EncodeUint(uint64(v2))
  6725. j++
  6726. }
  6727. ee.EncodeMapEnd()
  6728. }
  6729. }
  6730. func (f encFnInfo) fastpathEncMapIntUint8R(rv reflect.Value) {
  6731. fastpathTV.EncMapIntUint8V(rv.Interface().(map[int]uint8), fastpathCheckNilFalse, f.e)
  6732. }
  6733. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, checkNil bool, e *Encoder) {
  6734. ee := e.e
  6735. if checkNil && v == nil {
  6736. ee.EncodeNil()
  6737. return
  6738. }
  6739. ee.EncodeMapStart(len(v))
  6740. if e.be {
  6741. for k2, v2 := range v {
  6742. ee.EncodeInt(int64(k2))
  6743. ee.EncodeUint(uint64(v2))
  6744. }
  6745. } else {
  6746. j := 0
  6747. for k2, v2 := range v {
  6748. if j > 0 {
  6749. ee.EncodeMapEntrySeparator()
  6750. }
  6751. ee.EncodeInt(int64(k2))
  6752. ee.EncodeMapKVSeparator()
  6753. ee.EncodeUint(uint64(v2))
  6754. j++
  6755. }
  6756. ee.EncodeMapEnd()
  6757. }
  6758. }
  6759. func (f encFnInfo) fastpathEncMapIntUint16R(rv reflect.Value) {
  6760. fastpathTV.EncMapIntUint16V(rv.Interface().(map[int]uint16), fastpathCheckNilFalse, f.e)
  6761. }
  6762. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, checkNil bool, e *Encoder) {
  6763. ee := e.e
  6764. if checkNil && v == nil {
  6765. ee.EncodeNil()
  6766. return
  6767. }
  6768. ee.EncodeMapStart(len(v))
  6769. if e.be {
  6770. for k2, v2 := range v {
  6771. ee.EncodeInt(int64(k2))
  6772. ee.EncodeUint(uint64(v2))
  6773. }
  6774. } else {
  6775. j := 0
  6776. for k2, v2 := range v {
  6777. if j > 0 {
  6778. ee.EncodeMapEntrySeparator()
  6779. }
  6780. ee.EncodeInt(int64(k2))
  6781. ee.EncodeMapKVSeparator()
  6782. ee.EncodeUint(uint64(v2))
  6783. j++
  6784. }
  6785. ee.EncodeMapEnd()
  6786. }
  6787. }
  6788. func (f encFnInfo) fastpathEncMapIntUint32R(rv reflect.Value) {
  6789. fastpathTV.EncMapIntUint32V(rv.Interface().(map[int]uint32), fastpathCheckNilFalse, f.e)
  6790. }
  6791. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, checkNil bool, e *Encoder) {
  6792. ee := e.e
  6793. if checkNil && v == nil {
  6794. ee.EncodeNil()
  6795. return
  6796. }
  6797. ee.EncodeMapStart(len(v))
  6798. if e.be {
  6799. for k2, v2 := range v {
  6800. ee.EncodeInt(int64(k2))
  6801. ee.EncodeUint(uint64(v2))
  6802. }
  6803. } else {
  6804. j := 0
  6805. for k2, v2 := range v {
  6806. if j > 0 {
  6807. ee.EncodeMapEntrySeparator()
  6808. }
  6809. ee.EncodeInt(int64(k2))
  6810. ee.EncodeMapKVSeparator()
  6811. ee.EncodeUint(uint64(v2))
  6812. j++
  6813. }
  6814. ee.EncodeMapEnd()
  6815. }
  6816. }
  6817. func (f encFnInfo) fastpathEncMapIntUint64R(rv reflect.Value) {
  6818. fastpathTV.EncMapIntUint64V(rv.Interface().(map[int]uint64), fastpathCheckNilFalse, f.e)
  6819. }
  6820. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, checkNil bool, e *Encoder) {
  6821. ee := e.e
  6822. if checkNil && v == nil {
  6823. ee.EncodeNil()
  6824. return
  6825. }
  6826. ee.EncodeMapStart(len(v))
  6827. if e.be {
  6828. for k2, v2 := range v {
  6829. ee.EncodeInt(int64(k2))
  6830. ee.EncodeUint(uint64(v2))
  6831. }
  6832. } else {
  6833. j := 0
  6834. for k2, v2 := range v {
  6835. if j > 0 {
  6836. ee.EncodeMapEntrySeparator()
  6837. }
  6838. ee.EncodeInt(int64(k2))
  6839. ee.EncodeMapKVSeparator()
  6840. ee.EncodeUint(uint64(v2))
  6841. j++
  6842. }
  6843. ee.EncodeMapEnd()
  6844. }
  6845. }
  6846. func (f encFnInfo) fastpathEncMapIntIntR(rv reflect.Value) {
  6847. fastpathTV.EncMapIntIntV(rv.Interface().(map[int]int), fastpathCheckNilFalse, f.e)
  6848. }
  6849. func (_ fastpathT) EncMapIntIntV(v map[int]int, checkNil bool, e *Encoder) {
  6850. ee := e.e
  6851. if checkNil && v == nil {
  6852. ee.EncodeNil()
  6853. return
  6854. }
  6855. ee.EncodeMapStart(len(v))
  6856. if e.be {
  6857. for k2, v2 := range v {
  6858. ee.EncodeInt(int64(k2))
  6859. ee.EncodeInt(int64(v2))
  6860. }
  6861. } else {
  6862. j := 0
  6863. for k2, v2 := range v {
  6864. if j > 0 {
  6865. ee.EncodeMapEntrySeparator()
  6866. }
  6867. ee.EncodeInt(int64(k2))
  6868. ee.EncodeMapKVSeparator()
  6869. ee.EncodeInt(int64(v2))
  6870. j++
  6871. }
  6872. ee.EncodeMapEnd()
  6873. }
  6874. }
  6875. func (f encFnInfo) fastpathEncMapIntInt8R(rv reflect.Value) {
  6876. fastpathTV.EncMapIntInt8V(rv.Interface().(map[int]int8), fastpathCheckNilFalse, f.e)
  6877. }
  6878. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, checkNil bool, e *Encoder) {
  6879. ee := e.e
  6880. if checkNil && v == nil {
  6881. ee.EncodeNil()
  6882. return
  6883. }
  6884. ee.EncodeMapStart(len(v))
  6885. if e.be {
  6886. for k2, v2 := range v {
  6887. ee.EncodeInt(int64(k2))
  6888. ee.EncodeInt(int64(v2))
  6889. }
  6890. } else {
  6891. j := 0
  6892. for k2, v2 := range v {
  6893. if j > 0 {
  6894. ee.EncodeMapEntrySeparator()
  6895. }
  6896. ee.EncodeInt(int64(k2))
  6897. ee.EncodeMapKVSeparator()
  6898. ee.EncodeInt(int64(v2))
  6899. j++
  6900. }
  6901. ee.EncodeMapEnd()
  6902. }
  6903. }
  6904. func (f encFnInfo) fastpathEncMapIntInt16R(rv reflect.Value) {
  6905. fastpathTV.EncMapIntInt16V(rv.Interface().(map[int]int16), fastpathCheckNilFalse, f.e)
  6906. }
  6907. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, checkNil bool, e *Encoder) {
  6908. ee := e.e
  6909. if checkNil && v == nil {
  6910. ee.EncodeNil()
  6911. return
  6912. }
  6913. ee.EncodeMapStart(len(v))
  6914. if e.be {
  6915. for k2, v2 := range v {
  6916. ee.EncodeInt(int64(k2))
  6917. ee.EncodeInt(int64(v2))
  6918. }
  6919. } else {
  6920. j := 0
  6921. for k2, v2 := range v {
  6922. if j > 0 {
  6923. ee.EncodeMapEntrySeparator()
  6924. }
  6925. ee.EncodeInt(int64(k2))
  6926. ee.EncodeMapKVSeparator()
  6927. ee.EncodeInt(int64(v2))
  6928. j++
  6929. }
  6930. ee.EncodeMapEnd()
  6931. }
  6932. }
  6933. func (f encFnInfo) fastpathEncMapIntInt32R(rv reflect.Value) {
  6934. fastpathTV.EncMapIntInt32V(rv.Interface().(map[int]int32), fastpathCheckNilFalse, f.e)
  6935. }
  6936. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, checkNil bool, e *Encoder) {
  6937. ee := e.e
  6938. if checkNil && v == nil {
  6939. ee.EncodeNil()
  6940. return
  6941. }
  6942. ee.EncodeMapStart(len(v))
  6943. if e.be {
  6944. for k2, v2 := range v {
  6945. ee.EncodeInt(int64(k2))
  6946. ee.EncodeInt(int64(v2))
  6947. }
  6948. } else {
  6949. j := 0
  6950. for k2, v2 := range v {
  6951. if j > 0 {
  6952. ee.EncodeMapEntrySeparator()
  6953. }
  6954. ee.EncodeInt(int64(k2))
  6955. ee.EncodeMapKVSeparator()
  6956. ee.EncodeInt(int64(v2))
  6957. j++
  6958. }
  6959. ee.EncodeMapEnd()
  6960. }
  6961. }
  6962. func (f encFnInfo) fastpathEncMapIntInt64R(rv reflect.Value) {
  6963. fastpathTV.EncMapIntInt64V(rv.Interface().(map[int]int64), fastpathCheckNilFalse, f.e)
  6964. }
  6965. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, checkNil bool, e *Encoder) {
  6966. ee := e.e
  6967. if checkNil && v == nil {
  6968. ee.EncodeNil()
  6969. return
  6970. }
  6971. ee.EncodeMapStart(len(v))
  6972. if e.be {
  6973. for k2, v2 := range v {
  6974. ee.EncodeInt(int64(k2))
  6975. ee.EncodeInt(int64(v2))
  6976. }
  6977. } else {
  6978. j := 0
  6979. for k2, v2 := range v {
  6980. if j > 0 {
  6981. ee.EncodeMapEntrySeparator()
  6982. }
  6983. ee.EncodeInt(int64(k2))
  6984. ee.EncodeMapKVSeparator()
  6985. ee.EncodeInt(int64(v2))
  6986. j++
  6987. }
  6988. ee.EncodeMapEnd()
  6989. }
  6990. }
  6991. func (f encFnInfo) fastpathEncMapIntFloat32R(rv reflect.Value) {
  6992. fastpathTV.EncMapIntFloat32V(rv.Interface().(map[int]float32), fastpathCheckNilFalse, f.e)
  6993. }
  6994. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, checkNil bool, e *Encoder) {
  6995. ee := e.e
  6996. if checkNil && v == nil {
  6997. ee.EncodeNil()
  6998. return
  6999. }
  7000. ee.EncodeMapStart(len(v))
  7001. if e.be {
  7002. for k2, v2 := range v {
  7003. ee.EncodeInt(int64(k2))
  7004. ee.EncodeFloat32(v2)
  7005. }
  7006. } else {
  7007. j := 0
  7008. for k2, v2 := range v {
  7009. if j > 0 {
  7010. ee.EncodeMapEntrySeparator()
  7011. }
  7012. ee.EncodeInt(int64(k2))
  7013. ee.EncodeMapKVSeparator()
  7014. ee.EncodeFloat32(v2)
  7015. j++
  7016. }
  7017. ee.EncodeMapEnd()
  7018. }
  7019. }
  7020. func (f encFnInfo) fastpathEncMapIntFloat64R(rv reflect.Value) {
  7021. fastpathTV.EncMapIntFloat64V(rv.Interface().(map[int]float64), fastpathCheckNilFalse, f.e)
  7022. }
  7023. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, checkNil bool, e *Encoder) {
  7024. ee := e.e
  7025. if checkNil && v == nil {
  7026. ee.EncodeNil()
  7027. return
  7028. }
  7029. ee.EncodeMapStart(len(v))
  7030. if e.be {
  7031. for k2, v2 := range v {
  7032. ee.EncodeInt(int64(k2))
  7033. ee.EncodeFloat64(v2)
  7034. }
  7035. } else {
  7036. j := 0
  7037. for k2, v2 := range v {
  7038. if j > 0 {
  7039. ee.EncodeMapEntrySeparator()
  7040. }
  7041. ee.EncodeInt(int64(k2))
  7042. ee.EncodeMapKVSeparator()
  7043. ee.EncodeFloat64(v2)
  7044. j++
  7045. }
  7046. ee.EncodeMapEnd()
  7047. }
  7048. }
  7049. func (f encFnInfo) fastpathEncMapIntBoolR(rv reflect.Value) {
  7050. fastpathTV.EncMapIntBoolV(rv.Interface().(map[int]bool), fastpathCheckNilFalse, f.e)
  7051. }
  7052. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, checkNil bool, e *Encoder) {
  7053. ee := e.e
  7054. if checkNil && v == nil {
  7055. ee.EncodeNil()
  7056. return
  7057. }
  7058. ee.EncodeMapStart(len(v))
  7059. if e.be {
  7060. for k2, v2 := range v {
  7061. ee.EncodeInt(int64(k2))
  7062. ee.EncodeBool(v2)
  7063. }
  7064. } else {
  7065. j := 0
  7066. for k2, v2 := range v {
  7067. if j > 0 {
  7068. ee.EncodeMapEntrySeparator()
  7069. }
  7070. ee.EncodeInt(int64(k2))
  7071. ee.EncodeMapKVSeparator()
  7072. ee.EncodeBool(v2)
  7073. j++
  7074. }
  7075. ee.EncodeMapEnd()
  7076. }
  7077. }
  7078. func (f encFnInfo) fastpathEncMapInt8IntfR(rv reflect.Value) {
  7079. fastpathTV.EncMapInt8IntfV(rv.Interface().(map[int8]interface{}), fastpathCheckNilFalse, f.e)
  7080. }
  7081. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, checkNil bool, e *Encoder) {
  7082. ee := e.e
  7083. if checkNil && v == nil {
  7084. ee.EncodeNil()
  7085. return
  7086. }
  7087. ee.EncodeMapStart(len(v))
  7088. if e.be {
  7089. for k2, v2 := range v {
  7090. ee.EncodeInt(int64(k2))
  7091. e.encode(v2)
  7092. }
  7093. } else {
  7094. j := 0
  7095. for k2, v2 := range v {
  7096. if j > 0 {
  7097. ee.EncodeMapEntrySeparator()
  7098. }
  7099. ee.EncodeInt(int64(k2))
  7100. ee.EncodeMapKVSeparator()
  7101. e.encode(v2)
  7102. j++
  7103. }
  7104. ee.EncodeMapEnd()
  7105. }
  7106. }
  7107. func (f encFnInfo) fastpathEncMapInt8StringR(rv reflect.Value) {
  7108. fastpathTV.EncMapInt8StringV(rv.Interface().(map[int8]string), fastpathCheckNilFalse, f.e)
  7109. }
  7110. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, checkNil bool, e *Encoder) {
  7111. ee := e.e
  7112. if checkNil && v == nil {
  7113. ee.EncodeNil()
  7114. return
  7115. }
  7116. ee.EncodeMapStart(len(v))
  7117. if e.be {
  7118. for k2, v2 := range v {
  7119. ee.EncodeInt(int64(k2))
  7120. ee.EncodeString(c_UTF8, v2)
  7121. }
  7122. } else {
  7123. j := 0
  7124. for k2, v2 := range v {
  7125. if j > 0 {
  7126. ee.EncodeMapEntrySeparator()
  7127. }
  7128. ee.EncodeInt(int64(k2))
  7129. ee.EncodeMapKVSeparator()
  7130. ee.EncodeString(c_UTF8, v2)
  7131. j++
  7132. }
  7133. ee.EncodeMapEnd()
  7134. }
  7135. }
  7136. func (f encFnInfo) fastpathEncMapInt8UintR(rv reflect.Value) {
  7137. fastpathTV.EncMapInt8UintV(rv.Interface().(map[int8]uint), fastpathCheckNilFalse, f.e)
  7138. }
  7139. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, checkNil bool, e *Encoder) {
  7140. ee := e.e
  7141. if checkNil && v == nil {
  7142. ee.EncodeNil()
  7143. return
  7144. }
  7145. ee.EncodeMapStart(len(v))
  7146. if e.be {
  7147. for k2, v2 := range v {
  7148. ee.EncodeInt(int64(k2))
  7149. ee.EncodeUint(uint64(v2))
  7150. }
  7151. } else {
  7152. j := 0
  7153. for k2, v2 := range v {
  7154. if j > 0 {
  7155. ee.EncodeMapEntrySeparator()
  7156. }
  7157. ee.EncodeInt(int64(k2))
  7158. ee.EncodeMapKVSeparator()
  7159. ee.EncodeUint(uint64(v2))
  7160. j++
  7161. }
  7162. ee.EncodeMapEnd()
  7163. }
  7164. }
  7165. func (f encFnInfo) fastpathEncMapInt8Uint8R(rv reflect.Value) {
  7166. fastpathTV.EncMapInt8Uint8V(rv.Interface().(map[int8]uint8), fastpathCheckNilFalse, f.e)
  7167. }
  7168. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, checkNil bool, e *Encoder) {
  7169. ee := e.e
  7170. if checkNil && v == nil {
  7171. ee.EncodeNil()
  7172. return
  7173. }
  7174. ee.EncodeMapStart(len(v))
  7175. if e.be {
  7176. for k2, v2 := range v {
  7177. ee.EncodeInt(int64(k2))
  7178. ee.EncodeUint(uint64(v2))
  7179. }
  7180. } else {
  7181. j := 0
  7182. for k2, v2 := range v {
  7183. if j > 0 {
  7184. ee.EncodeMapEntrySeparator()
  7185. }
  7186. ee.EncodeInt(int64(k2))
  7187. ee.EncodeMapKVSeparator()
  7188. ee.EncodeUint(uint64(v2))
  7189. j++
  7190. }
  7191. ee.EncodeMapEnd()
  7192. }
  7193. }
  7194. func (f encFnInfo) fastpathEncMapInt8Uint16R(rv reflect.Value) {
  7195. fastpathTV.EncMapInt8Uint16V(rv.Interface().(map[int8]uint16), fastpathCheckNilFalse, f.e)
  7196. }
  7197. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, checkNil bool, e *Encoder) {
  7198. ee := e.e
  7199. if checkNil && v == nil {
  7200. ee.EncodeNil()
  7201. return
  7202. }
  7203. ee.EncodeMapStart(len(v))
  7204. if e.be {
  7205. for k2, v2 := range v {
  7206. ee.EncodeInt(int64(k2))
  7207. ee.EncodeUint(uint64(v2))
  7208. }
  7209. } else {
  7210. j := 0
  7211. for k2, v2 := range v {
  7212. if j > 0 {
  7213. ee.EncodeMapEntrySeparator()
  7214. }
  7215. ee.EncodeInt(int64(k2))
  7216. ee.EncodeMapKVSeparator()
  7217. ee.EncodeUint(uint64(v2))
  7218. j++
  7219. }
  7220. ee.EncodeMapEnd()
  7221. }
  7222. }
  7223. func (f encFnInfo) fastpathEncMapInt8Uint32R(rv reflect.Value) {
  7224. fastpathTV.EncMapInt8Uint32V(rv.Interface().(map[int8]uint32), fastpathCheckNilFalse, f.e)
  7225. }
  7226. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, checkNil bool, e *Encoder) {
  7227. ee := e.e
  7228. if checkNil && v == nil {
  7229. ee.EncodeNil()
  7230. return
  7231. }
  7232. ee.EncodeMapStart(len(v))
  7233. if e.be {
  7234. for k2, v2 := range v {
  7235. ee.EncodeInt(int64(k2))
  7236. ee.EncodeUint(uint64(v2))
  7237. }
  7238. } else {
  7239. j := 0
  7240. for k2, v2 := range v {
  7241. if j > 0 {
  7242. ee.EncodeMapEntrySeparator()
  7243. }
  7244. ee.EncodeInt(int64(k2))
  7245. ee.EncodeMapKVSeparator()
  7246. ee.EncodeUint(uint64(v2))
  7247. j++
  7248. }
  7249. ee.EncodeMapEnd()
  7250. }
  7251. }
  7252. func (f encFnInfo) fastpathEncMapInt8Uint64R(rv reflect.Value) {
  7253. fastpathTV.EncMapInt8Uint64V(rv.Interface().(map[int8]uint64), fastpathCheckNilFalse, f.e)
  7254. }
  7255. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, checkNil bool, e *Encoder) {
  7256. ee := e.e
  7257. if checkNil && v == nil {
  7258. ee.EncodeNil()
  7259. return
  7260. }
  7261. ee.EncodeMapStart(len(v))
  7262. if e.be {
  7263. for k2, v2 := range v {
  7264. ee.EncodeInt(int64(k2))
  7265. ee.EncodeUint(uint64(v2))
  7266. }
  7267. } else {
  7268. j := 0
  7269. for k2, v2 := range v {
  7270. if j > 0 {
  7271. ee.EncodeMapEntrySeparator()
  7272. }
  7273. ee.EncodeInt(int64(k2))
  7274. ee.EncodeMapKVSeparator()
  7275. ee.EncodeUint(uint64(v2))
  7276. j++
  7277. }
  7278. ee.EncodeMapEnd()
  7279. }
  7280. }
  7281. func (f encFnInfo) fastpathEncMapInt8IntR(rv reflect.Value) {
  7282. fastpathTV.EncMapInt8IntV(rv.Interface().(map[int8]int), fastpathCheckNilFalse, f.e)
  7283. }
  7284. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, checkNil bool, e *Encoder) {
  7285. ee := e.e
  7286. if checkNil && v == nil {
  7287. ee.EncodeNil()
  7288. return
  7289. }
  7290. ee.EncodeMapStart(len(v))
  7291. if e.be {
  7292. for k2, v2 := range v {
  7293. ee.EncodeInt(int64(k2))
  7294. ee.EncodeInt(int64(v2))
  7295. }
  7296. } else {
  7297. j := 0
  7298. for k2, v2 := range v {
  7299. if j > 0 {
  7300. ee.EncodeMapEntrySeparator()
  7301. }
  7302. ee.EncodeInt(int64(k2))
  7303. ee.EncodeMapKVSeparator()
  7304. ee.EncodeInt(int64(v2))
  7305. j++
  7306. }
  7307. ee.EncodeMapEnd()
  7308. }
  7309. }
  7310. func (f encFnInfo) fastpathEncMapInt8Int8R(rv reflect.Value) {
  7311. fastpathTV.EncMapInt8Int8V(rv.Interface().(map[int8]int8), fastpathCheckNilFalse, f.e)
  7312. }
  7313. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, checkNil bool, e *Encoder) {
  7314. ee := e.e
  7315. if checkNil && v == nil {
  7316. ee.EncodeNil()
  7317. return
  7318. }
  7319. ee.EncodeMapStart(len(v))
  7320. if e.be {
  7321. for k2, v2 := range v {
  7322. ee.EncodeInt(int64(k2))
  7323. ee.EncodeInt(int64(v2))
  7324. }
  7325. } else {
  7326. j := 0
  7327. for k2, v2 := range v {
  7328. if j > 0 {
  7329. ee.EncodeMapEntrySeparator()
  7330. }
  7331. ee.EncodeInt(int64(k2))
  7332. ee.EncodeMapKVSeparator()
  7333. ee.EncodeInt(int64(v2))
  7334. j++
  7335. }
  7336. ee.EncodeMapEnd()
  7337. }
  7338. }
  7339. func (f encFnInfo) fastpathEncMapInt8Int16R(rv reflect.Value) {
  7340. fastpathTV.EncMapInt8Int16V(rv.Interface().(map[int8]int16), fastpathCheckNilFalse, f.e)
  7341. }
  7342. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, checkNil bool, e *Encoder) {
  7343. ee := e.e
  7344. if checkNil && v == nil {
  7345. ee.EncodeNil()
  7346. return
  7347. }
  7348. ee.EncodeMapStart(len(v))
  7349. if e.be {
  7350. for k2, v2 := range v {
  7351. ee.EncodeInt(int64(k2))
  7352. ee.EncodeInt(int64(v2))
  7353. }
  7354. } else {
  7355. j := 0
  7356. for k2, v2 := range v {
  7357. if j > 0 {
  7358. ee.EncodeMapEntrySeparator()
  7359. }
  7360. ee.EncodeInt(int64(k2))
  7361. ee.EncodeMapKVSeparator()
  7362. ee.EncodeInt(int64(v2))
  7363. j++
  7364. }
  7365. ee.EncodeMapEnd()
  7366. }
  7367. }
  7368. func (f encFnInfo) fastpathEncMapInt8Int32R(rv reflect.Value) {
  7369. fastpathTV.EncMapInt8Int32V(rv.Interface().(map[int8]int32), fastpathCheckNilFalse, f.e)
  7370. }
  7371. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, checkNil bool, e *Encoder) {
  7372. ee := e.e
  7373. if checkNil && v == nil {
  7374. ee.EncodeNil()
  7375. return
  7376. }
  7377. ee.EncodeMapStart(len(v))
  7378. if e.be {
  7379. for k2, v2 := range v {
  7380. ee.EncodeInt(int64(k2))
  7381. ee.EncodeInt(int64(v2))
  7382. }
  7383. } else {
  7384. j := 0
  7385. for k2, v2 := range v {
  7386. if j > 0 {
  7387. ee.EncodeMapEntrySeparator()
  7388. }
  7389. ee.EncodeInt(int64(k2))
  7390. ee.EncodeMapKVSeparator()
  7391. ee.EncodeInt(int64(v2))
  7392. j++
  7393. }
  7394. ee.EncodeMapEnd()
  7395. }
  7396. }
  7397. func (f encFnInfo) fastpathEncMapInt8Int64R(rv reflect.Value) {
  7398. fastpathTV.EncMapInt8Int64V(rv.Interface().(map[int8]int64), fastpathCheckNilFalse, f.e)
  7399. }
  7400. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, checkNil bool, e *Encoder) {
  7401. ee := e.e
  7402. if checkNil && v == nil {
  7403. ee.EncodeNil()
  7404. return
  7405. }
  7406. ee.EncodeMapStart(len(v))
  7407. if e.be {
  7408. for k2, v2 := range v {
  7409. ee.EncodeInt(int64(k2))
  7410. ee.EncodeInt(int64(v2))
  7411. }
  7412. } else {
  7413. j := 0
  7414. for k2, v2 := range v {
  7415. if j > 0 {
  7416. ee.EncodeMapEntrySeparator()
  7417. }
  7418. ee.EncodeInt(int64(k2))
  7419. ee.EncodeMapKVSeparator()
  7420. ee.EncodeInt(int64(v2))
  7421. j++
  7422. }
  7423. ee.EncodeMapEnd()
  7424. }
  7425. }
  7426. func (f encFnInfo) fastpathEncMapInt8Float32R(rv reflect.Value) {
  7427. fastpathTV.EncMapInt8Float32V(rv.Interface().(map[int8]float32), fastpathCheckNilFalse, f.e)
  7428. }
  7429. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, checkNil bool, e *Encoder) {
  7430. ee := e.e
  7431. if checkNil && v == nil {
  7432. ee.EncodeNil()
  7433. return
  7434. }
  7435. ee.EncodeMapStart(len(v))
  7436. if e.be {
  7437. for k2, v2 := range v {
  7438. ee.EncodeInt(int64(k2))
  7439. ee.EncodeFloat32(v2)
  7440. }
  7441. } else {
  7442. j := 0
  7443. for k2, v2 := range v {
  7444. if j > 0 {
  7445. ee.EncodeMapEntrySeparator()
  7446. }
  7447. ee.EncodeInt(int64(k2))
  7448. ee.EncodeMapKVSeparator()
  7449. ee.EncodeFloat32(v2)
  7450. j++
  7451. }
  7452. ee.EncodeMapEnd()
  7453. }
  7454. }
  7455. func (f encFnInfo) fastpathEncMapInt8Float64R(rv reflect.Value) {
  7456. fastpathTV.EncMapInt8Float64V(rv.Interface().(map[int8]float64), fastpathCheckNilFalse, f.e)
  7457. }
  7458. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, checkNil bool, e *Encoder) {
  7459. ee := e.e
  7460. if checkNil && v == nil {
  7461. ee.EncodeNil()
  7462. return
  7463. }
  7464. ee.EncodeMapStart(len(v))
  7465. if e.be {
  7466. for k2, v2 := range v {
  7467. ee.EncodeInt(int64(k2))
  7468. ee.EncodeFloat64(v2)
  7469. }
  7470. } else {
  7471. j := 0
  7472. for k2, v2 := range v {
  7473. if j > 0 {
  7474. ee.EncodeMapEntrySeparator()
  7475. }
  7476. ee.EncodeInt(int64(k2))
  7477. ee.EncodeMapKVSeparator()
  7478. ee.EncodeFloat64(v2)
  7479. j++
  7480. }
  7481. ee.EncodeMapEnd()
  7482. }
  7483. }
  7484. func (f encFnInfo) fastpathEncMapInt8BoolR(rv reflect.Value) {
  7485. fastpathTV.EncMapInt8BoolV(rv.Interface().(map[int8]bool), fastpathCheckNilFalse, f.e)
  7486. }
  7487. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, checkNil bool, e *Encoder) {
  7488. ee := e.e
  7489. if checkNil && v == nil {
  7490. ee.EncodeNil()
  7491. return
  7492. }
  7493. ee.EncodeMapStart(len(v))
  7494. if e.be {
  7495. for k2, v2 := range v {
  7496. ee.EncodeInt(int64(k2))
  7497. ee.EncodeBool(v2)
  7498. }
  7499. } else {
  7500. j := 0
  7501. for k2, v2 := range v {
  7502. if j > 0 {
  7503. ee.EncodeMapEntrySeparator()
  7504. }
  7505. ee.EncodeInt(int64(k2))
  7506. ee.EncodeMapKVSeparator()
  7507. ee.EncodeBool(v2)
  7508. j++
  7509. }
  7510. ee.EncodeMapEnd()
  7511. }
  7512. }
  7513. func (f encFnInfo) fastpathEncMapInt16IntfR(rv reflect.Value) {
  7514. fastpathTV.EncMapInt16IntfV(rv.Interface().(map[int16]interface{}), fastpathCheckNilFalse, f.e)
  7515. }
  7516. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, checkNil bool, e *Encoder) {
  7517. ee := e.e
  7518. if checkNil && v == nil {
  7519. ee.EncodeNil()
  7520. return
  7521. }
  7522. ee.EncodeMapStart(len(v))
  7523. if e.be {
  7524. for k2, v2 := range v {
  7525. ee.EncodeInt(int64(k2))
  7526. e.encode(v2)
  7527. }
  7528. } else {
  7529. j := 0
  7530. for k2, v2 := range v {
  7531. if j > 0 {
  7532. ee.EncodeMapEntrySeparator()
  7533. }
  7534. ee.EncodeInt(int64(k2))
  7535. ee.EncodeMapKVSeparator()
  7536. e.encode(v2)
  7537. j++
  7538. }
  7539. ee.EncodeMapEnd()
  7540. }
  7541. }
  7542. func (f encFnInfo) fastpathEncMapInt16StringR(rv reflect.Value) {
  7543. fastpathTV.EncMapInt16StringV(rv.Interface().(map[int16]string), fastpathCheckNilFalse, f.e)
  7544. }
  7545. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, checkNil bool, e *Encoder) {
  7546. ee := e.e
  7547. if checkNil && v == nil {
  7548. ee.EncodeNil()
  7549. return
  7550. }
  7551. ee.EncodeMapStart(len(v))
  7552. if e.be {
  7553. for k2, v2 := range v {
  7554. ee.EncodeInt(int64(k2))
  7555. ee.EncodeString(c_UTF8, v2)
  7556. }
  7557. } else {
  7558. j := 0
  7559. for k2, v2 := range v {
  7560. if j > 0 {
  7561. ee.EncodeMapEntrySeparator()
  7562. }
  7563. ee.EncodeInt(int64(k2))
  7564. ee.EncodeMapKVSeparator()
  7565. ee.EncodeString(c_UTF8, v2)
  7566. j++
  7567. }
  7568. ee.EncodeMapEnd()
  7569. }
  7570. }
  7571. func (f encFnInfo) fastpathEncMapInt16UintR(rv reflect.Value) {
  7572. fastpathTV.EncMapInt16UintV(rv.Interface().(map[int16]uint), fastpathCheckNilFalse, f.e)
  7573. }
  7574. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, checkNil bool, e *Encoder) {
  7575. ee := e.e
  7576. if checkNil && v == nil {
  7577. ee.EncodeNil()
  7578. return
  7579. }
  7580. ee.EncodeMapStart(len(v))
  7581. if e.be {
  7582. for k2, v2 := range v {
  7583. ee.EncodeInt(int64(k2))
  7584. ee.EncodeUint(uint64(v2))
  7585. }
  7586. } else {
  7587. j := 0
  7588. for k2, v2 := range v {
  7589. if j > 0 {
  7590. ee.EncodeMapEntrySeparator()
  7591. }
  7592. ee.EncodeInt(int64(k2))
  7593. ee.EncodeMapKVSeparator()
  7594. ee.EncodeUint(uint64(v2))
  7595. j++
  7596. }
  7597. ee.EncodeMapEnd()
  7598. }
  7599. }
  7600. func (f encFnInfo) fastpathEncMapInt16Uint8R(rv reflect.Value) {
  7601. fastpathTV.EncMapInt16Uint8V(rv.Interface().(map[int16]uint8), fastpathCheckNilFalse, f.e)
  7602. }
  7603. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, checkNil bool, e *Encoder) {
  7604. ee := e.e
  7605. if checkNil && v == nil {
  7606. ee.EncodeNil()
  7607. return
  7608. }
  7609. ee.EncodeMapStart(len(v))
  7610. if e.be {
  7611. for k2, v2 := range v {
  7612. ee.EncodeInt(int64(k2))
  7613. ee.EncodeUint(uint64(v2))
  7614. }
  7615. } else {
  7616. j := 0
  7617. for k2, v2 := range v {
  7618. if j > 0 {
  7619. ee.EncodeMapEntrySeparator()
  7620. }
  7621. ee.EncodeInt(int64(k2))
  7622. ee.EncodeMapKVSeparator()
  7623. ee.EncodeUint(uint64(v2))
  7624. j++
  7625. }
  7626. ee.EncodeMapEnd()
  7627. }
  7628. }
  7629. func (f encFnInfo) fastpathEncMapInt16Uint16R(rv reflect.Value) {
  7630. fastpathTV.EncMapInt16Uint16V(rv.Interface().(map[int16]uint16), fastpathCheckNilFalse, f.e)
  7631. }
  7632. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, checkNil bool, e *Encoder) {
  7633. ee := e.e
  7634. if checkNil && v == nil {
  7635. ee.EncodeNil()
  7636. return
  7637. }
  7638. ee.EncodeMapStart(len(v))
  7639. if e.be {
  7640. for k2, v2 := range v {
  7641. ee.EncodeInt(int64(k2))
  7642. ee.EncodeUint(uint64(v2))
  7643. }
  7644. } else {
  7645. j := 0
  7646. for k2, v2 := range v {
  7647. if j > 0 {
  7648. ee.EncodeMapEntrySeparator()
  7649. }
  7650. ee.EncodeInt(int64(k2))
  7651. ee.EncodeMapKVSeparator()
  7652. ee.EncodeUint(uint64(v2))
  7653. j++
  7654. }
  7655. ee.EncodeMapEnd()
  7656. }
  7657. }
  7658. func (f encFnInfo) fastpathEncMapInt16Uint32R(rv reflect.Value) {
  7659. fastpathTV.EncMapInt16Uint32V(rv.Interface().(map[int16]uint32), fastpathCheckNilFalse, f.e)
  7660. }
  7661. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, checkNil bool, e *Encoder) {
  7662. ee := e.e
  7663. if checkNil && v == nil {
  7664. ee.EncodeNil()
  7665. return
  7666. }
  7667. ee.EncodeMapStart(len(v))
  7668. if e.be {
  7669. for k2, v2 := range v {
  7670. ee.EncodeInt(int64(k2))
  7671. ee.EncodeUint(uint64(v2))
  7672. }
  7673. } else {
  7674. j := 0
  7675. for k2, v2 := range v {
  7676. if j > 0 {
  7677. ee.EncodeMapEntrySeparator()
  7678. }
  7679. ee.EncodeInt(int64(k2))
  7680. ee.EncodeMapKVSeparator()
  7681. ee.EncodeUint(uint64(v2))
  7682. j++
  7683. }
  7684. ee.EncodeMapEnd()
  7685. }
  7686. }
  7687. func (f encFnInfo) fastpathEncMapInt16Uint64R(rv reflect.Value) {
  7688. fastpathTV.EncMapInt16Uint64V(rv.Interface().(map[int16]uint64), fastpathCheckNilFalse, f.e)
  7689. }
  7690. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, checkNil bool, e *Encoder) {
  7691. ee := e.e
  7692. if checkNil && v == nil {
  7693. ee.EncodeNil()
  7694. return
  7695. }
  7696. ee.EncodeMapStart(len(v))
  7697. if e.be {
  7698. for k2, v2 := range v {
  7699. ee.EncodeInt(int64(k2))
  7700. ee.EncodeUint(uint64(v2))
  7701. }
  7702. } else {
  7703. j := 0
  7704. for k2, v2 := range v {
  7705. if j > 0 {
  7706. ee.EncodeMapEntrySeparator()
  7707. }
  7708. ee.EncodeInt(int64(k2))
  7709. ee.EncodeMapKVSeparator()
  7710. ee.EncodeUint(uint64(v2))
  7711. j++
  7712. }
  7713. ee.EncodeMapEnd()
  7714. }
  7715. }
  7716. func (f encFnInfo) fastpathEncMapInt16IntR(rv reflect.Value) {
  7717. fastpathTV.EncMapInt16IntV(rv.Interface().(map[int16]int), fastpathCheckNilFalse, f.e)
  7718. }
  7719. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, checkNil bool, e *Encoder) {
  7720. ee := e.e
  7721. if checkNil && v == nil {
  7722. ee.EncodeNil()
  7723. return
  7724. }
  7725. ee.EncodeMapStart(len(v))
  7726. if e.be {
  7727. for k2, v2 := range v {
  7728. ee.EncodeInt(int64(k2))
  7729. ee.EncodeInt(int64(v2))
  7730. }
  7731. } else {
  7732. j := 0
  7733. for k2, v2 := range v {
  7734. if j > 0 {
  7735. ee.EncodeMapEntrySeparator()
  7736. }
  7737. ee.EncodeInt(int64(k2))
  7738. ee.EncodeMapKVSeparator()
  7739. ee.EncodeInt(int64(v2))
  7740. j++
  7741. }
  7742. ee.EncodeMapEnd()
  7743. }
  7744. }
  7745. func (f encFnInfo) fastpathEncMapInt16Int8R(rv reflect.Value) {
  7746. fastpathTV.EncMapInt16Int8V(rv.Interface().(map[int16]int8), fastpathCheckNilFalse, f.e)
  7747. }
  7748. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, checkNil bool, e *Encoder) {
  7749. ee := e.e
  7750. if checkNil && v == nil {
  7751. ee.EncodeNil()
  7752. return
  7753. }
  7754. ee.EncodeMapStart(len(v))
  7755. if e.be {
  7756. for k2, v2 := range v {
  7757. ee.EncodeInt(int64(k2))
  7758. ee.EncodeInt(int64(v2))
  7759. }
  7760. } else {
  7761. j := 0
  7762. for k2, v2 := range v {
  7763. if j > 0 {
  7764. ee.EncodeMapEntrySeparator()
  7765. }
  7766. ee.EncodeInt(int64(k2))
  7767. ee.EncodeMapKVSeparator()
  7768. ee.EncodeInt(int64(v2))
  7769. j++
  7770. }
  7771. ee.EncodeMapEnd()
  7772. }
  7773. }
  7774. func (f encFnInfo) fastpathEncMapInt16Int16R(rv reflect.Value) {
  7775. fastpathTV.EncMapInt16Int16V(rv.Interface().(map[int16]int16), fastpathCheckNilFalse, f.e)
  7776. }
  7777. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, checkNil bool, e *Encoder) {
  7778. ee := e.e
  7779. if checkNil && v == nil {
  7780. ee.EncodeNil()
  7781. return
  7782. }
  7783. ee.EncodeMapStart(len(v))
  7784. if e.be {
  7785. for k2, v2 := range v {
  7786. ee.EncodeInt(int64(k2))
  7787. ee.EncodeInt(int64(v2))
  7788. }
  7789. } else {
  7790. j := 0
  7791. for k2, v2 := range v {
  7792. if j > 0 {
  7793. ee.EncodeMapEntrySeparator()
  7794. }
  7795. ee.EncodeInt(int64(k2))
  7796. ee.EncodeMapKVSeparator()
  7797. ee.EncodeInt(int64(v2))
  7798. j++
  7799. }
  7800. ee.EncodeMapEnd()
  7801. }
  7802. }
  7803. func (f encFnInfo) fastpathEncMapInt16Int32R(rv reflect.Value) {
  7804. fastpathTV.EncMapInt16Int32V(rv.Interface().(map[int16]int32), fastpathCheckNilFalse, f.e)
  7805. }
  7806. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, checkNil bool, e *Encoder) {
  7807. ee := e.e
  7808. if checkNil && v == nil {
  7809. ee.EncodeNil()
  7810. return
  7811. }
  7812. ee.EncodeMapStart(len(v))
  7813. if e.be {
  7814. for k2, v2 := range v {
  7815. ee.EncodeInt(int64(k2))
  7816. ee.EncodeInt(int64(v2))
  7817. }
  7818. } else {
  7819. j := 0
  7820. for k2, v2 := range v {
  7821. if j > 0 {
  7822. ee.EncodeMapEntrySeparator()
  7823. }
  7824. ee.EncodeInt(int64(k2))
  7825. ee.EncodeMapKVSeparator()
  7826. ee.EncodeInt(int64(v2))
  7827. j++
  7828. }
  7829. ee.EncodeMapEnd()
  7830. }
  7831. }
  7832. func (f encFnInfo) fastpathEncMapInt16Int64R(rv reflect.Value) {
  7833. fastpathTV.EncMapInt16Int64V(rv.Interface().(map[int16]int64), fastpathCheckNilFalse, f.e)
  7834. }
  7835. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, checkNil bool, e *Encoder) {
  7836. ee := e.e
  7837. if checkNil && v == nil {
  7838. ee.EncodeNil()
  7839. return
  7840. }
  7841. ee.EncodeMapStart(len(v))
  7842. if e.be {
  7843. for k2, v2 := range v {
  7844. ee.EncodeInt(int64(k2))
  7845. ee.EncodeInt(int64(v2))
  7846. }
  7847. } else {
  7848. j := 0
  7849. for k2, v2 := range v {
  7850. if j > 0 {
  7851. ee.EncodeMapEntrySeparator()
  7852. }
  7853. ee.EncodeInt(int64(k2))
  7854. ee.EncodeMapKVSeparator()
  7855. ee.EncodeInt(int64(v2))
  7856. j++
  7857. }
  7858. ee.EncodeMapEnd()
  7859. }
  7860. }
  7861. func (f encFnInfo) fastpathEncMapInt16Float32R(rv reflect.Value) {
  7862. fastpathTV.EncMapInt16Float32V(rv.Interface().(map[int16]float32), fastpathCheckNilFalse, f.e)
  7863. }
  7864. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, checkNil bool, e *Encoder) {
  7865. ee := e.e
  7866. if checkNil && v == nil {
  7867. ee.EncodeNil()
  7868. return
  7869. }
  7870. ee.EncodeMapStart(len(v))
  7871. if e.be {
  7872. for k2, v2 := range v {
  7873. ee.EncodeInt(int64(k2))
  7874. ee.EncodeFloat32(v2)
  7875. }
  7876. } else {
  7877. j := 0
  7878. for k2, v2 := range v {
  7879. if j > 0 {
  7880. ee.EncodeMapEntrySeparator()
  7881. }
  7882. ee.EncodeInt(int64(k2))
  7883. ee.EncodeMapKVSeparator()
  7884. ee.EncodeFloat32(v2)
  7885. j++
  7886. }
  7887. ee.EncodeMapEnd()
  7888. }
  7889. }
  7890. func (f encFnInfo) fastpathEncMapInt16Float64R(rv reflect.Value) {
  7891. fastpathTV.EncMapInt16Float64V(rv.Interface().(map[int16]float64), fastpathCheckNilFalse, f.e)
  7892. }
  7893. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, checkNil bool, e *Encoder) {
  7894. ee := e.e
  7895. if checkNil && v == nil {
  7896. ee.EncodeNil()
  7897. return
  7898. }
  7899. ee.EncodeMapStart(len(v))
  7900. if e.be {
  7901. for k2, v2 := range v {
  7902. ee.EncodeInt(int64(k2))
  7903. ee.EncodeFloat64(v2)
  7904. }
  7905. } else {
  7906. j := 0
  7907. for k2, v2 := range v {
  7908. if j > 0 {
  7909. ee.EncodeMapEntrySeparator()
  7910. }
  7911. ee.EncodeInt(int64(k2))
  7912. ee.EncodeMapKVSeparator()
  7913. ee.EncodeFloat64(v2)
  7914. j++
  7915. }
  7916. ee.EncodeMapEnd()
  7917. }
  7918. }
  7919. func (f encFnInfo) fastpathEncMapInt16BoolR(rv reflect.Value) {
  7920. fastpathTV.EncMapInt16BoolV(rv.Interface().(map[int16]bool), fastpathCheckNilFalse, f.e)
  7921. }
  7922. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, checkNil bool, e *Encoder) {
  7923. ee := e.e
  7924. if checkNil && v == nil {
  7925. ee.EncodeNil()
  7926. return
  7927. }
  7928. ee.EncodeMapStart(len(v))
  7929. if e.be {
  7930. for k2, v2 := range v {
  7931. ee.EncodeInt(int64(k2))
  7932. ee.EncodeBool(v2)
  7933. }
  7934. } else {
  7935. j := 0
  7936. for k2, v2 := range v {
  7937. if j > 0 {
  7938. ee.EncodeMapEntrySeparator()
  7939. }
  7940. ee.EncodeInt(int64(k2))
  7941. ee.EncodeMapKVSeparator()
  7942. ee.EncodeBool(v2)
  7943. j++
  7944. }
  7945. ee.EncodeMapEnd()
  7946. }
  7947. }
  7948. func (f encFnInfo) fastpathEncMapInt32IntfR(rv reflect.Value) {
  7949. fastpathTV.EncMapInt32IntfV(rv.Interface().(map[int32]interface{}), fastpathCheckNilFalse, f.e)
  7950. }
  7951. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, checkNil bool, e *Encoder) {
  7952. ee := e.e
  7953. if checkNil && v == nil {
  7954. ee.EncodeNil()
  7955. return
  7956. }
  7957. ee.EncodeMapStart(len(v))
  7958. if e.be {
  7959. for k2, v2 := range v {
  7960. ee.EncodeInt(int64(k2))
  7961. e.encode(v2)
  7962. }
  7963. } else {
  7964. j := 0
  7965. for k2, v2 := range v {
  7966. if j > 0 {
  7967. ee.EncodeMapEntrySeparator()
  7968. }
  7969. ee.EncodeInt(int64(k2))
  7970. ee.EncodeMapKVSeparator()
  7971. e.encode(v2)
  7972. j++
  7973. }
  7974. ee.EncodeMapEnd()
  7975. }
  7976. }
  7977. func (f encFnInfo) fastpathEncMapInt32StringR(rv reflect.Value) {
  7978. fastpathTV.EncMapInt32StringV(rv.Interface().(map[int32]string), fastpathCheckNilFalse, f.e)
  7979. }
  7980. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, checkNil bool, e *Encoder) {
  7981. ee := e.e
  7982. if checkNil && v == nil {
  7983. ee.EncodeNil()
  7984. return
  7985. }
  7986. ee.EncodeMapStart(len(v))
  7987. if e.be {
  7988. for k2, v2 := range v {
  7989. ee.EncodeInt(int64(k2))
  7990. ee.EncodeString(c_UTF8, v2)
  7991. }
  7992. } else {
  7993. j := 0
  7994. for k2, v2 := range v {
  7995. if j > 0 {
  7996. ee.EncodeMapEntrySeparator()
  7997. }
  7998. ee.EncodeInt(int64(k2))
  7999. ee.EncodeMapKVSeparator()
  8000. ee.EncodeString(c_UTF8, v2)
  8001. j++
  8002. }
  8003. ee.EncodeMapEnd()
  8004. }
  8005. }
  8006. func (f encFnInfo) fastpathEncMapInt32UintR(rv reflect.Value) {
  8007. fastpathTV.EncMapInt32UintV(rv.Interface().(map[int32]uint), fastpathCheckNilFalse, f.e)
  8008. }
  8009. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, checkNil bool, e *Encoder) {
  8010. ee := e.e
  8011. if checkNil && v == nil {
  8012. ee.EncodeNil()
  8013. return
  8014. }
  8015. ee.EncodeMapStart(len(v))
  8016. if e.be {
  8017. for k2, v2 := range v {
  8018. ee.EncodeInt(int64(k2))
  8019. ee.EncodeUint(uint64(v2))
  8020. }
  8021. } else {
  8022. j := 0
  8023. for k2, v2 := range v {
  8024. if j > 0 {
  8025. ee.EncodeMapEntrySeparator()
  8026. }
  8027. ee.EncodeInt(int64(k2))
  8028. ee.EncodeMapKVSeparator()
  8029. ee.EncodeUint(uint64(v2))
  8030. j++
  8031. }
  8032. ee.EncodeMapEnd()
  8033. }
  8034. }
  8035. func (f encFnInfo) fastpathEncMapInt32Uint8R(rv reflect.Value) {
  8036. fastpathTV.EncMapInt32Uint8V(rv.Interface().(map[int32]uint8), fastpathCheckNilFalse, f.e)
  8037. }
  8038. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, checkNil bool, e *Encoder) {
  8039. ee := e.e
  8040. if checkNil && v == nil {
  8041. ee.EncodeNil()
  8042. return
  8043. }
  8044. ee.EncodeMapStart(len(v))
  8045. if e.be {
  8046. for k2, v2 := range v {
  8047. ee.EncodeInt(int64(k2))
  8048. ee.EncodeUint(uint64(v2))
  8049. }
  8050. } else {
  8051. j := 0
  8052. for k2, v2 := range v {
  8053. if j > 0 {
  8054. ee.EncodeMapEntrySeparator()
  8055. }
  8056. ee.EncodeInt(int64(k2))
  8057. ee.EncodeMapKVSeparator()
  8058. ee.EncodeUint(uint64(v2))
  8059. j++
  8060. }
  8061. ee.EncodeMapEnd()
  8062. }
  8063. }
  8064. func (f encFnInfo) fastpathEncMapInt32Uint16R(rv reflect.Value) {
  8065. fastpathTV.EncMapInt32Uint16V(rv.Interface().(map[int32]uint16), fastpathCheckNilFalse, f.e)
  8066. }
  8067. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, checkNil bool, e *Encoder) {
  8068. ee := e.e
  8069. if checkNil && v == nil {
  8070. ee.EncodeNil()
  8071. return
  8072. }
  8073. ee.EncodeMapStart(len(v))
  8074. if e.be {
  8075. for k2, v2 := range v {
  8076. ee.EncodeInt(int64(k2))
  8077. ee.EncodeUint(uint64(v2))
  8078. }
  8079. } else {
  8080. j := 0
  8081. for k2, v2 := range v {
  8082. if j > 0 {
  8083. ee.EncodeMapEntrySeparator()
  8084. }
  8085. ee.EncodeInt(int64(k2))
  8086. ee.EncodeMapKVSeparator()
  8087. ee.EncodeUint(uint64(v2))
  8088. j++
  8089. }
  8090. ee.EncodeMapEnd()
  8091. }
  8092. }
  8093. func (f encFnInfo) fastpathEncMapInt32Uint32R(rv reflect.Value) {
  8094. fastpathTV.EncMapInt32Uint32V(rv.Interface().(map[int32]uint32), fastpathCheckNilFalse, f.e)
  8095. }
  8096. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, checkNil bool, e *Encoder) {
  8097. ee := e.e
  8098. if checkNil && v == nil {
  8099. ee.EncodeNil()
  8100. return
  8101. }
  8102. ee.EncodeMapStart(len(v))
  8103. if e.be {
  8104. for k2, v2 := range v {
  8105. ee.EncodeInt(int64(k2))
  8106. ee.EncodeUint(uint64(v2))
  8107. }
  8108. } else {
  8109. j := 0
  8110. for k2, v2 := range v {
  8111. if j > 0 {
  8112. ee.EncodeMapEntrySeparator()
  8113. }
  8114. ee.EncodeInt(int64(k2))
  8115. ee.EncodeMapKVSeparator()
  8116. ee.EncodeUint(uint64(v2))
  8117. j++
  8118. }
  8119. ee.EncodeMapEnd()
  8120. }
  8121. }
  8122. func (f encFnInfo) fastpathEncMapInt32Uint64R(rv reflect.Value) {
  8123. fastpathTV.EncMapInt32Uint64V(rv.Interface().(map[int32]uint64), fastpathCheckNilFalse, f.e)
  8124. }
  8125. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, checkNil bool, e *Encoder) {
  8126. ee := e.e
  8127. if checkNil && v == nil {
  8128. ee.EncodeNil()
  8129. return
  8130. }
  8131. ee.EncodeMapStart(len(v))
  8132. if e.be {
  8133. for k2, v2 := range v {
  8134. ee.EncodeInt(int64(k2))
  8135. ee.EncodeUint(uint64(v2))
  8136. }
  8137. } else {
  8138. j := 0
  8139. for k2, v2 := range v {
  8140. if j > 0 {
  8141. ee.EncodeMapEntrySeparator()
  8142. }
  8143. ee.EncodeInt(int64(k2))
  8144. ee.EncodeMapKVSeparator()
  8145. ee.EncodeUint(uint64(v2))
  8146. j++
  8147. }
  8148. ee.EncodeMapEnd()
  8149. }
  8150. }
  8151. func (f encFnInfo) fastpathEncMapInt32IntR(rv reflect.Value) {
  8152. fastpathTV.EncMapInt32IntV(rv.Interface().(map[int32]int), fastpathCheckNilFalse, f.e)
  8153. }
  8154. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, checkNil bool, e *Encoder) {
  8155. ee := e.e
  8156. if checkNil && v == nil {
  8157. ee.EncodeNil()
  8158. return
  8159. }
  8160. ee.EncodeMapStart(len(v))
  8161. if e.be {
  8162. for k2, v2 := range v {
  8163. ee.EncodeInt(int64(k2))
  8164. ee.EncodeInt(int64(v2))
  8165. }
  8166. } else {
  8167. j := 0
  8168. for k2, v2 := range v {
  8169. if j > 0 {
  8170. ee.EncodeMapEntrySeparator()
  8171. }
  8172. ee.EncodeInt(int64(k2))
  8173. ee.EncodeMapKVSeparator()
  8174. ee.EncodeInt(int64(v2))
  8175. j++
  8176. }
  8177. ee.EncodeMapEnd()
  8178. }
  8179. }
  8180. func (f encFnInfo) fastpathEncMapInt32Int8R(rv reflect.Value) {
  8181. fastpathTV.EncMapInt32Int8V(rv.Interface().(map[int32]int8), fastpathCheckNilFalse, f.e)
  8182. }
  8183. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, checkNil bool, e *Encoder) {
  8184. ee := e.e
  8185. if checkNil && v == nil {
  8186. ee.EncodeNil()
  8187. return
  8188. }
  8189. ee.EncodeMapStart(len(v))
  8190. if e.be {
  8191. for k2, v2 := range v {
  8192. ee.EncodeInt(int64(k2))
  8193. ee.EncodeInt(int64(v2))
  8194. }
  8195. } else {
  8196. j := 0
  8197. for k2, v2 := range v {
  8198. if j > 0 {
  8199. ee.EncodeMapEntrySeparator()
  8200. }
  8201. ee.EncodeInt(int64(k2))
  8202. ee.EncodeMapKVSeparator()
  8203. ee.EncodeInt(int64(v2))
  8204. j++
  8205. }
  8206. ee.EncodeMapEnd()
  8207. }
  8208. }
  8209. func (f encFnInfo) fastpathEncMapInt32Int16R(rv reflect.Value) {
  8210. fastpathTV.EncMapInt32Int16V(rv.Interface().(map[int32]int16), fastpathCheckNilFalse, f.e)
  8211. }
  8212. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, checkNil bool, e *Encoder) {
  8213. ee := e.e
  8214. if checkNil && v == nil {
  8215. ee.EncodeNil()
  8216. return
  8217. }
  8218. ee.EncodeMapStart(len(v))
  8219. if e.be {
  8220. for k2, v2 := range v {
  8221. ee.EncodeInt(int64(k2))
  8222. ee.EncodeInt(int64(v2))
  8223. }
  8224. } else {
  8225. j := 0
  8226. for k2, v2 := range v {
  8227. if j > 0 {
  8228. ee.EncodeMapEntrySeparator()
  8229. }
  8230. ee.EncodeInt(int64(k2))
  8231. ee.EncodeMapKVSeparator()
  8232. ee.EncodeInt(int64(v2))
  8233. j++
  8234. }
  8235. ee.EncodeMapEnd()
  8236. }
  8237. }
  8238. func (f encFnInfo) fastpathEncMapInt32Int32R(rv reflect.Value) {
  8239. fastpathTV.EncMapInt32Int32V(rv.Interface().(map[int32]int32), fastpathCheckNilFalse, f.e)
  8240. }
  8241. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, checkNil bool, e *Encoder) {
  8242. ee := e.e
  8243. if checkNil && v == nil {
  8244. ee.EncodeNil()
  8245. return
  8246. }
  8247. ee.EncodeMapStart(len(v))
  8248. if e.be {
  8249. for k2, v2 := range v {
  8250. ee.EncodeInt(int64(k2))
  8251. ee.EncodeInt(int64(v2))
  8252. }
  8253. } else {
  8254. j := 0
  8255. for k2, v2 := range v {
  8256. if j > 0 {
  8257. ee.EncodeMapEntrySeparator()
  8258. }
  8259. ee.EncodeInt(int64(k2))
  8260. ee.EncodeMapKVSeparator()
  8261. ee.EncodeInt(int64(v2))
  8262. j++
  8263. }
  8264. ee.EncodeMapEnd()
  8265. }
  8266. }
  8267. func (f encFnInfo) fastpathEncMapInt32Int64R(rv reflect.Value) {
  8268. fastpathTV.EncMapInt32Int64V(rv.Interface().(map[int32]int64), fastpathCheckNilFalse, f.e)
  8269. }
  8270. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, checkNil bool, e *Encoder) {
  8271. ee := e.e
  8272. if checkNil && v == nil {
  8273. ee.EncodeNil()
  8274. return
  8275. }
  8276. ee.EncodeMapStart(len(v))
  8277. if e.be {
  8278. for k2, v2 := range v {
  8279. ee.EncodeInt(int64(k2))
  8280. ee.EncodeInt(int64(v2))
  8281. }
  8282. } else {
  8283. j := 0
  8284. for k2, v2 := range v {
  8285. if j > 0 {
  8286. ee.EncodeMapEntrySeparator()
  8287. }
  8288. ee.EncodeInt(int64(k2))
  8289. ee.EncodeMapKVSeparator()
  8290. ee.EncodeInt(int64(v2))
  8291. j++
  8292. }
  8293. ee.EncodeMapEnd()
  8294. }
  8295. }
  8296. func (f encFnInfo) fastpathEncMapInt32Float32R(rv reflect.Value) {
  8297. fastpathTV.EncMapInt32Float32V(rv.Interface().(map[int32]float32), fastpathCheckNilFalse, f.e)
  8298. }
  8299. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, checkNil bool, e *Encoder) {
  8300. ee := e.e
  8301. if checkNil && v == nil {
  8302. ee.EncodeNil()
  8303. return
  8304. }
  8305. ee.EncodeMapStart(len(v))
  8306. if e.be {
  8307. for k2, v2 := range v {
  8308. ee.EncodeInt(int64(k2))
  8309. ee.EncodeFloat32(v2)
  8310. }
  8311. } else {
  8312. j := 0
  8313. for k2, v2 := range v {
  8314. if j > 0 {
  8315. ee.EncodeMapEntrySeparator()
  8316. }
  8317. ee.EncodeInt(int64(k2))
  8318. ee.EncodeMapKVSeparator()
  8319. ee.EncodeFloat32(v2)
  8320. j++
  8321. }
  8322. ee.EncodeMapEnd()
  8323. }
  8324. }
  8325. func (f encFnInfo) fastpathEncMapInt32Float64R(rv reflect.Value) {
  8326. fastpathTV.EncMapInt32Float64V(rv.Interface().(map[int32]float64), fastpathCheckNilFalse, f.e)
  8327. }
  8328. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, checkNil bool, e *Encoder) {
  8329. ee := e.e
  8330. if checkNil && v == nil {
  8331. ee.EncodeNil()
  8332. return
  8333. }
  8334. ee.EncodeMapStart(len(v))
  8335. if e.be {
  8336. for k2, v2 := range v {
  8337. ee.EncodeInt(int64(k2))
  8338. ee.EncodeFloat64(v2)
  8339. }
  8340. } else {
  8341. j := 0
  8342. for k2, v2 := range v {
  8343. if j > 0 {
  8344. ee.EncodeMapEntrySeparator()
  8345. }
  8346. ee.EncodeInt(int64(k2))
  8347. ee.EncodeMapKVSeparator()
  8348. ee.EncodeFloat64(v2)
  8349. j++
  8350. }
  8351. ee.EncodeMapEnd()
  8352. }
  8353. }
  8354. func (f encFnInfo) fastpathEncMapInt32BoolR(rv reflect.Value) {
  8355. fastpathTV.EncMapInt32BoolV(rv.Interface().(map[int32]bool), fastpathCheckNilFalse, f.e)
  8356. }
  8357. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, checkNil bool, e *Encoder) {
  8358. ee := e.e
  8359. if checkNil && v == nil {
  8360. ee.EncodeNil()
  8361. return
  8362. }
  8363. ee.EncodeMapStart(len(v))
  8364. if e.be {
  8365. for k2, v2 := range v {
  8366. ee.EncodeInt(int64(k2))
  8367. ee.EncodeBool(v2)
  8368. }
  8369. } else {
  8370. j := 0
  8371. for k2, v2 := range v {
  8372. if j > 0 {
  8373. ee.EncodeMapEntrySeparator()
  8374. }
  8375. ee.EncodeInt(int64(k2))
  8376. ee.EncodeMapKVSeparator()
  8377. ee.EncodeBool(v2)
  8378. j++
  8379. }
  8380. ee.EncodeMapEnd()
  8381. }
  8382. }
  8383. func (f encFnInfo) fastpathEncMapInt64IntfR(rv reflect.Value) {
  8384. fastpathTV.EncMapInt64IntfV(rv.Interface().(map[int64]interface{}), fastpathCheckNilFalse, f.e)
  8385. }
  8386. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, checkNil bool, e *Encoder) {
  8387. ee := e.e
  8388. if checkNil && v == nil {
  8389. ee.EncodeNil()
  8390. return
  8391. }
  8392. ee.EncodeMapStart(len(v))
  8393. if e.be {
  8394. for k2, v2 := range v {
  8395. ee.EncodeInt(int64(k2))
  8396. e.encode(v2)
  8397. }
  8398. } else {
  8399. j := 0
  8400. for k2, v2 := range v {
  8401. if j > 0 {
  8402. ee.EncodeMapEntrySeparator()
  8403. }
  8404. ee.EncodeInt(int64(k2))
  8405. ee.EncodeMapKVSeparator()
  8406. e.encode(v2)
  8407. j++
  8408. }
  8409. ee.EncodeMapEnd()
  8410. }
  8411. }
  8412. func (f encFnInfo) fastpathEncMapInt64StringR(rv reflect.Value) {
  8413. fastpathTV.EncMapInt64StringV(rv.Interface().(map[int64]string), fastpathCheckNilFalse, f.e)
  8414. }
  8415. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, checkNil bool, e *Encoder) {
  8416. ee := e.e
  8417. if checkNil && v == nil {
  8418. ee.EncodeNil()
  8419. return
  8420. }
  8421. ee.EncodeMapStart(len(v))
  8422. if e.be {
  8423. for k2, v2 := range v {
  8424. ee.EncodeInt(int64(k2))
  8425. ee.EncodeString(c_UTF8, v2)
  8426. }
  8427. } else {
  8428. j := 0
  8429. for k2, v2 := range v {
  8430. if j > 0 {
  8431. ee.EncodeMapEntrySeparator()
  8432. }
  8433. ee.EncodeInt(int64(k2))
  8434. ee.EncodeMapKVSeparator()
  8435. ee.EncodeString(c_UTF8, v2)
  8436. j++
  8437. }
  8438. ee.EncodeMapEnd()
  8439. }
  8440. }
  8441. func (f encFnInfo) fastpathEncMapInt64UintR(rv reflect.Value) {
  8442. fastpathTV.EncMapInt64UintV(rv.Interface().(map[int64]uint), fastpathCheckNilFalse, f.e)
  8443. }
  8444. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, checkNil bool, e *Encoder) {
  8445. ee := e.e
  8446. if checkNil && v == nil {
  8447. ee.EncodeNil()
  8448. return
  8449. }
  8450. ee.EncodeMapStart(len(v))
  8451. if e.be {
  8452. for k2, v2 := range v {
  8453. ee.EncodeInt(int64(k2))
  8454. ee.EncodeUint(uint64(v2))
  8455. }
  8456. } else {
  8457. j := 0
  8458. for k2, v2 := range v {
  8459. if j > 0 {
  8460. ee.EncodeMapEntrySeparator()
  8461. }
  8462. ee.EncodeInt(int64(k2))
  8463. ee.EncodeMapKVSeparator()
  8464. ee.EncodeUint(uint64(v2))
  8465. j++
  8466. }
  8467. ee.EncodeMapEnd()
  8468. }
  8469. }
  8470. func (f encFnInfo) fastpathEncMapInt64Uint8R(rv reflect.Value) {
  8471. fastpathTV.EncMapInt64Uint8V(rv.Interface().(map[int64]uint8), fastpathCheckNilFalse, f.e)
  8472. }
  8473. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, checkNil bool, e *Encoder) {
  8474. ee := e.e
  8475. if checkNil && v == nil {
  8476. ee.EncodeNil()
  8477. return
  8478. }
  8479. ee.EncodeMapStart(len(v))
  8480. if e.be {
  8481. for k2, v2 := range v {
  8482. ee.EncodeInt(int64(k2))
  8483. ee.EncodeUint(uint64(v2))
  8484. }
  8485. } else {
  8486. j := 0
  8487. for k2, v2 := range v {
  8488. if j > 0 {
  8489. ee.EncodeMapEntrySeparator()
  8490. }
  8491. ee.EncodeInt(int64(k2))
  8492. ee.EncodeMapKVSeparator()
  8493. ee.EncodeUint(uint64(v2))
  8494. j++
  8495. }
  8496. ee.EncodeMapEnd()
  8497. }
  8498. }
  8499. func (f encFnInfo) fastpathEncMapInt64Uint16R(rv reflect.Value) {
  8500. fastpathTV.EncMapInt64Uint16V(rv.Interface().(map[int64]uint16), fastpathCheckNilFalse, f.e)
  8501. }
  8502. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, checkNil bool, e *Encoder) {
  8503. ee := e.e
  8504. if checkNil && v == nil {
  8505. ee.EncodeNil()
  8506. return
  8507. }
  8508. ee.EncodeMapStart(len(v))
  8509. if e.be {
  8510. for k2, v2 := range v {
  8511. ee.EncodeInt(int64(k2))
  8512. ee.EncodeUint(uint64(v2))
  8513. }
  8514. } else {
  8515. j := 0
  8516. for k2, v2 := range v {
  8517. if j > 0 {
  8518. ee.EncodeMapEntrySeparator()
  8519. }
  8520. ee.EncodeInt(int64(k2))
  8521. ee.EncodeMapKVSeparator()
  8522. ee.EncodeUint(uint64(v2))
  8523. j++
  8524. }
  8525. ee.EncodeMapEnd()
  8526. }
  8527. }
  8528. func (f encFnInfo) fastpathEncMapInt64Uint32R(rv reflect.Value) {
  8529. fastpathTV.EncMapInt64Uint32V(rv.Interface().(map[int64]uint32), fastpathCheckNilFalse, f.e)
  8530. }
  8531. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, checkNil bool, e *Encoder) {
  8532. ee := e.e
  8533. if checkNil && v == nil {
  8534. ee.EncodeNil()
  8535. return
  8536. }
  8537. ee.EncodeMapStart(len(v))
  8538. if e.be {
  8539. for k2, v2 := range v {
  8540. ee.EncodeInt(int64(k2))
  8541. ee.EncodeUint(uint64(v2))
  8542. }
  8543. } else {
  8544. j := 0
  8545. for k2, v2 := range v {
  8546. if j > 0 {
  8547. ee.EncodeMapEntrySeparator()
  8548. }
  8549. ee.EncodeInt(int64(k2))
  8550. ee.EncodeMapKVSeparator()
  8551. ee.EncodeUint(uint64(v2))
  8552. j++
  8553. }
  8554. ee.EncodeMapEnd()
  8555. }
  8556. }
  8557. func (f encFnInfo) fastpathEncMapInt64Uint64R(rv reflect.Value) {
  8558. fastpathTV.EncMapInt64Uint64V(rv.Interface().(map[int64]uint64), fastpathCheckNilFalse, f.e)
  8559. }
  8560. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, checkNil bool, e *Encoder) {
  8561. ee := e.e
  8562. if checkNil && v == nil {
  8563. ee.EncodeNil()
  8564. return
  8565. }
  8566. ee.EncodeMapStart(len(v))
  8567. if e.be {
  8568. for k2, v2 := range v {
  8569. ee.EncodeInt(int64(k2))
  8570. ee.EncodeUint(uint64(v2))
  8571. }
  8572. } else {
  8573. j := 0
  8574. for k2, v2 := range v {
  8575. if j > 0 {
  8576. ee.EncodeMapEntrySeparator()
  8577. }
  8578. ee.EncodeInt(int64(k2))
  8579. ee.EncodeMapKVSeparator()
  8580. ee.EncodeUint(uint64(v2))
  8581. j++
  8582. }
  8583. ee.EncodeMapEnd()
  8584. }
  8585. }
  8586. func (f encFnInfo) fastpathEncMapInt64IntR(rv reflect.Value) {
  8587. fastpathTV.EncMapInt64IntV(rv.Interface().(map[int64]int), fastpathCheckNilFalse, f.e)
  8588. }
  8589. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, checkNil bool, e *Encoder) {
  8590. ee := e.e
  8591. if checkNil && v == nil {
  8592. ee.EncodeNil()
  8593. return
  8594. }
  8595. ee.EncodeMapStart(len(v))
  8596. if e.be {
  8597. for k2, v2 := range v {
  8598. ee.EncodeInt(int64(k2))
  8599. ee.EncodeInt(int64(v2))
  8600. }
  8601. } else {
  8602. j := 0
  8603. for k2, v2 := range v {
  8604. if j > 0 {
  8605. ee.EncodeMapEntrySeparator()
  8606. }
  8607. ee.EncodeInt(int64(k2))
  8608. ee.EncodeMapKVSeparator()
  8609. ee.EncodeInt(int64(v2))
  8610. j++
  8611. }
  8612. ee.EncodeMapEnd()
  8613. }
  8614. }
  8615. func (f encFnInfo) fastpathEncMapInt64Int8R(rv reflect.Value) {
  8616. fastpathTV.EncMapInt64Int8V(rv.Interface().(map[int64]int8), fastpathCheckNilFalse, f.e)
  8617. }
  8618. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, checkNil bool, e *Encoder) {
  8619. ee := e.e
  8620. if checkNil && v == nil {
  8621. ee.EncodeNil()
  8622. return
  8623. }
  8624. ee.EncodeMapStart(len(v))
  8625. if e.be {
  8626. for k2, v2 := range v {
  8627. ee.EncodeInt(int64(k2))
  8628. ee.EncodeInt(int64(v2))
  8629. }
  8630. } else {
  8631. j := 0
  8632. for k2, v2 := range v {
  8633. if j > 0 {
  8634. ee.EncodeMapEntrySeparator()
  8635. }
  8636. ee.EncodeInt(int64(k2))
  8637. ee.EncodeMapKVSeparator()
  8638. ee.EncodeInt(int64(v2))
  8639. j++
  8640. }
  8641. ee.EncodeMapEnd()
  8642. }
  8643. }
  8644. func (f encFnInfo) fastpathEncMapInt64Int16R(rv reflect.Value) {
  8645. fastpathTV.EncMapInt64Int16V(rv.Interface().(map[int64]int16), fastpathCheckNilFalse, f.e)
  8646. }
  8647. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, checkNil bool, e *Encoder) {
  8648. ee := e.e
  8649. if checkNil && v == nil {
  8650. ee.EncodeNil()
  8651. return
  8652. }
  8653. ee.EncodeMapStart(len(v))
  8654. if e.be {
  8655. for k2, v2 := range v {
  8656. ee.EncodeInt(int64(k2))
  8657. ee.EncodeInt(int64(v2))
  8658. }
  8659. } else {
  8660. j := 0
  8661. for k2, v2 := range v {
  8662. if j > 0 {
  8663. ee.EncodeMapEntrySeparator()
  8664. }
  8665. ee.EncodeInt(int64(k2))
  8666. ee.EncodeMapKVSeparator()
  8667. ee.EncodeInt(int64(v2))
  8668. j++
  8669. }
  8670. ee.EncodeMapEnd()
  8671. }
  8672. }
  8673. func (f encFnInfo) fastpathEncMapInt64Int32R(rv reflect.Value) {
  8674. fastpathTV.EncMapInt64Int32V(rv.Interface().(map[int64]int32), fastpathCheckNilFalse, f.e)
  8675. }
  8676. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, checkNil bool, e *Encoder) {
  8677. ee := e.e
  8678. if checkNil && v == nil {
  8679. ee.EncodeNil()
  8680. return
  8681. }
  8682. ee.EncodeMapStart(len(v))
  8683. if e.be {
  8684. for k2, v2 := range v {
  8685. ee.EncodeInt(int64(k2))
  8686. ee.EncodeInt(int64(v2))
  8687. }
  8688. } else {
  8689. j := 0
  8690. for k2, v2 := range v {
  8691. if j > 0 {
  8692. ee.EncodeMapEntrySeparator()
  8693. }
  8694. ee.EncodeInt(int64(k2))
  8695. ee.EncodeMapKVSeparator()
  8696. ee.EncodeInt(int64(v2))
  8697. j++
  8698. }
  8699. ee.EncodeMapEnd()
  8700. }
  8701. }
  8702. func (f encFnInfo) fastpathEncMapInt64Int64R(rv reflect.Value) {
  8703. fastpathTV.EncMapInt64Int64V(rv.Interface().(map[int64]int64), fastpathCheckNilFalse, f.e)
  8704. }
  8705. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, checkNil bool, e *Encoder) {
  8706. ee := e.e
  8707. if checkNil && v == nil {
  8708. ee.EncodeNil()
  8709. return
  8710. }
  8711. ee.EncodeMapStart(len(v))
  8712. if e.be {
  8713. for k2, v2 := range v {
  8714. ee.EncodeInt(int64(k2))
  8715. ee.EncodeInt(int64(v2))
  8716. }
  8717. } else {
  8718. j := 0
  8719. for k2, v2 := range v {
  8720. if j > 0 {
  8721. ee.EncodeMapEntrySeparator()
  8722. }
  8723. ee.EncodeInt(int64(k2))
  8724. ee.EncodeMapKVSeparator()
  8725. ee.EncodeInt(int64(v2))
  8726. j++
  8727. }
  8728. ee.EncodeMapEnd()
  8729. }
  8730. }
  8731. func (f encFnInfo) fastpathEncMapInt64Float32R(rv reflect.Value) {
  8732. fastpathTV.EncMapInt64Float32V(rv.Interface().(map[int64]float32), fastpathCheckNilFalse, f.e)
  8733. }
  8734. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, checkNil bool, e *Encoder) {
  8735. ee := e.e
  8736. if checkNil && v == nil {
  8737. ee.EncodeNil()
  8738. return
  8739. }
  8740. ee.EncodeMapStart(len(v))
  8741. if e.be {
  8742. for k2, v2 := range v {
  8743. ee.EncodeInt(int64(k2))
  8744. ee.EncodeFloat32(v2)
  8745. }
  8746. } else {
  8747. j := 0
  8748. for k2, v2 := range v {
  8749. if j > 0 {
  8750. ee.EncodeMapEntrySeparator()
  8751. }
  8752. ee.EncodeInt(int64(k2))
  8753. ee.EncodeMapKVSeparator()
  8754. ee.EncodeFloat32(v2)
  8755. j++
  8756. }
  8757. ee.EncodeMapEnd()
  8758. }
  8759. }
  8760. func (f encFnInfo) fastpathEncMapInt64Float64R(rv reflect.Value) {
  8761. fastpathTV.EncMapInt64Float64V(rv.Interface().(map[int64]float64), fastpathCheckNilFalse, f.e)
  8762. }
  8763. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, checkNil bool, e *Encoder) {
  8764. ee := e.e
  8765. if checkNil && v == nil {
  8766. ee.EncodeNil()
  8767. return
  8768. }
  8769. ee.EncodeMapStart(len(v))
  8770. if e.be {
  8771. for k2, v2 := range v {
  8772. ee.EncodeInt(int64(k2))
  8773. ee.EncodeFloat64(v2)
  8774. }
  8775. } else {
  8776. j := 0
  8777. for k2, v2 := range v {
  8778. if j > 0 {
  8779. ee.EncodeMapEntrySeparator()
  8780. }
  8781. ee.EncodeInt(int64(k2))
  8782. ee.EncodeMapKVSeparator()
  8783. ee.EncodeFloat64(v2)
  8784. j++
  8785. }
  8786. ee.EncodeMapEnd()
  8787. }
  8788. }
  8789. func (f encFnInfo) fastpathEncMapInt64BoolR(rv reflect.Value) {
  8790. fastpathTV.EncMapInt64BoolV(rv.Interface().(map[int64]bool), fastpathCheckNilFalse, f.e)
  8791. }
  8792. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, checkNil bool, e *Encoder) {
  8793. ee := e.e
  8794. if checkNil && v == nil {
  8795. ee.EncodeNil()
  8796. return
  8797. }
  8798. ee.EncodeMapStart(len(v))
  8799. if e.be {
  8800. for k2, v2 := range v {
  8801. ee.EncodeInt(int64(k2))
  8802. ee.EncodeBool(v2)
  8803. }
  8804. } else {
  8805. j := 0
  8806. for k2, v2 := range v {
  8807. if j > 0 {
  8808. ee.EncodeMapEntrySeparator()
  8809. }
  8810. ee.EncodeInt(int64(k2))
  8811. ee.EncodeMapKVSeparator()
  8812. ee.EncodeBool(v2)
  8813. j++
  8814. }
  8815. ee.EncodeMapEnd()
  8816. }
  8817. }
  8818. func (f encFnInfo) fastpathEncMapBoolIntfR(rv reflect.Value) {
  8819. fastpathTV.EncMapBoolIntfV(rv.Interface().(map[bool]interface{}), fastpathCheckNilFalse, f.e)
  8820. }
  8821. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, checkNil bool, e *Encoder) {
  8822. ee := e.e
  8823. if checkNil && v == nil {
  8824. ee.EncodeNil()
  8825. return
  8826. }
  8827. ee.EncodeMapStart(len(v))
  8828. if e.be {
  8829. for k2, v2 := range v {
  8830. ee.EncodeBool(k2)
  8831. e.encode(v2)
  8832. }
  8833. } else {
  8834. j := 0
  8835. for k2, v2 := range v {
  8836. if j > 0 {
  8837. ee.EncodeMapEntrySeparator()
  8838. }
  8839. ee.EncodeBool(k2)
  8840. ee.EncodeMapKVSeparator()
  8841. e.encode(v2)
  8842. j++
  8843. }
  8844. ee.EncodeMapEnd()
  8845. }
  8846. }
  8847. func (f encFnInfo) fastpathEncMapBoolStringR(rv reflect.Value) {
  8848. fastpathTV.EncMapBoolStringV(rv.Interface().(map[bool]string), fastpathCheckNilFalse, f.e)
  8849. }
  8850. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, checkNil bool, e *Encoder) {
  8851. ee := e.e
  8852. if checkNil && v == nil {
  8853. ee.EncodeNil()
  8854. return
  8855. }
  8856. ee.EncodeMapStart(len(v))
  8857. if e.be {
  8858. for k2, v2 := range v {
  8859. ee.EncodeBool(k2)
  8860. ee.EncodeString(c_UTF8, v2)
  8861. }
  8862. } else {
  8863. j := 0
  8864. for k2, v2 := range v {
  8865. if j > 0 {
  8866. ee.EncodeMapEntrySeparator()
  8867. }
  8868. ee.EncodeBool(k2)
  8869. ee.EncodeMapKVSeparator()
  8870. ee.EncodeString(c_UTF8, v2)
  8871. j++
  8872. }
  8873. ee.EncodeMapEnd()
  8874. }
  8875. }
  8876. func (f encFnInfo) fastpathEncMapBoolUintR(rv reflect.Value) {
  8877. fastpathTV.EncMapBoolUintV(rv.Interface().(map[bool]uint), fastpathCheckNilFalse, f.e)
  8878. }
  8879. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, checkNil bool, e *Encoder) {
  8880. ee := e.e
  8881. if checkNil && v == nil {
  8882. ee.EncodeNil()
  8883. return
  8884. }
  8885. ee.EncodeMapStart(len(v))
  8886. if e.be {
  8887. for k2, v2 := range v {
  8888. ee.EncodeBool(k2)
  8889. ee.EncodeUint(uint64(v2))
  8890. }
  8891. } else {
  8892. j := 0
  8893. for k2, v2 := range v {
  8894. if j > 0 {
  8895. ee.EncodeMapEntrySeparator()
  8896. }
  8897. ee.EncodeBool(k2)
  8898. ee.EncodeMapKVSeparator()
  8899. ee.EncodeUint(uint64(v2))
  8900. j++
  8901. }
  8902. ee.EncodeMapEnd()
  8903. }
  8904. }
  8905. func (f encFnInfo) fastpathEncMapBoolUint8R(rv reflect.Value) {
  8906. fastpathTV.EncMapBoolUint8V(rv.Interface().(map[bool]uint8), fastpathCheckNilFalse, f.e)
  8907. }
  8908. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, checkNil bool, e *Encoder) {
  8909. ee := e.e
  8910. if checkNil && v == nil {
  8911. ee.EncodeNil()
  8912. return
  8913. }
  8914. ee.EncodeMapStart(len(v))
  8915. if e.be {
  8916. for k2, v2 := range v {
  8917. ee.EncodeBool(k2)
  8918. ee.EncodeUint(uint64(v2))
  8919. }
  8920. } else {
  8921. j := 0
  8922. for k2, v2 := range v {
  8923. if j > 0 {
  8924. ee.EncodeMapEntrySeparator()
  8925. }
  8926. ee.EncodeBool(k2)
  8927. ee.EncodeMapKVSeparator()
  8928. ee.EncodeUint(uint64(v2))
  8929. j++
  8930. }
  8931. ee.EncodeMapEnd()
  8932. }
  8933. }
  8934. func (f encFnInfo) fastpathEncMapBoolUint16R(rv reflect.Value) {
  8935. fastpathTV.EncMapBoolUint16V(rv.Interface().(map[bool]uint16), fastpathCheckNilFalse, f.e)
  8936. }
  8937. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, checkNil bool, e *Encoder) {
  8938. ee := e.e
  8939. if checkNil && v == nil {
  8940. ee.EncodeNil()
  8941. return
  8942. }
  8943. ee.EncodeMapStart(len(v))
  8944. if e.be {
  8945. for k2, v2 := range v {
  8946. ee.EncodeBool(k2)
  8947. ee.EncodeUint(uint64(v2))
  8948. }
  8949. } else {
  8950. j := 0
  8951. for k2, v2 := range v {
  8952. if j > 0 {
  8953. ee.EncodeMapEntrySeparator()
  8954. }
  8955. ee.EncodeBool(k2)
  8956. ee.EncodeMapKVSeparator()
  8957. ee.EncodeUint(uint64(v2))
  8958. j++
  8959. }
  8960. ee.EncodeMapEnd()
  8961. }
  8962. }
  8963. func (f encFnInfo) fastpathEncMapBoolUint32R(rv reflect.Value) {
  8964. fastpathTV.EncMapBoolUint32V(rv.Interface().(map[bool]uint32), fastpathCheckNilFalse, f.e)
  8965. }
  8966. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, checkNil bool, e *Encoder) {
  8967. ee := e.e
  8968. if checkNil && v == nil {
  8969. ee.EncodeNil()
  8970. return
  8971. }
  8972. ee.EncodeMapStart(len(v))
  8973. if e.be {
  8974. for k2, v2 := range v {
  8975. ee.EncodeBool(k2)
  8976. ee.EncodeUint(uint64(v2))
  8977. }
  8978. } else {
  8979. j := 0
  8980. for k2, v2 := range v {
  8981. if j > 0 {
  8982. ee.EncodeMapEntrySeparator()
  8983. }
  8984. ee.EncodeBool(k2)
  8985. ee.EncodeMapKVSeparator()
  8986. ee.EncodeUint(uint64(v2))
  8987. j++
  8988. }
  8989. ee.EncodeMapEnd()
  8990. }
  8991. }
  8992. func (f encFnInfo) fastpathEncMapBoolUint64R(rv reflect.Value) {
  8993. fastpathTV.EncMapBoolUint64V(rv.Interface().(map[bool]uint64), fastpathCheckNilFalse, f.e)
  8994. }
  8995. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, checkNil bool, e *Encoder) {
  8996. ee := e.e
  8997. if checkNil && v == nil {
  8998. ee.EncodeNil()
  8999. return
  9000. }
  9001. ee.EncodeMapStart(len(v))
  9002. if e.be {
  9003. for k2, v2 := range v {
  9004. ee.EncodeBool(k2)
  9005. ee.EncodeUint(uint64(v2))
  9006. }
  9007. } else {
  9008. j := 0
  9009. for k2, v2 := range v {
  9010. if j > 0 {
  9011. ee.EncodeMapEntrySeparator()
  9012. }
  9013. ee.EncodeBool(k2)
  9014. ee.EncodeMapKVSeparator()
  9015. ee.EncodeUint(uint64(v2))
  9016. j++
  9017. }
  9018. ee.EncodeMapEnd()
  9019. }
  9020. }
  9021. func (f encFnInfo) fastpathEncMapBoolIntR(rv reflect.Value) {
  9022. fastpathTV.EncMapBoolIntV(rv.Interface().(map[bool]int), fastpathCheckNilFalse, f.e)
  9023. }
  9024. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, checkNil bool, e *Encoder) {
  9025. ee := e.e
  9026. if checkNil && v == nil {
  9027. ee.EncodeNil()
  9028. return
  9029. }
  9030. ee.EncodeMapStart(len(v))
  9031. if e.be {
  9032. for k2, v2 := range v {
  9033. ee.EncodeBool(k2)
  9034. ee.EncodeInt(int64(v2))
  9035. }
  9036. } else {
  9037. j := 0
  9038. for k2, v2 := range v {
  9039. if j > 0 {
  9040. ee.EncodeMapEntrySeparator()
  9041. }
  9042. ee.EncodeBool(k2)
  9043. ee.EncodeMapKVSeparator()
  9044. ee.EncodeInt(int64(v2))
  9045. j++
  9046. }
  9047. ee.EncodeMapEnd()
  9048. }
  9049. }
  9050. func (f encFnInfo) fastpathEncMapBoolInt8R(rv reflect.Value) {
  9051. fastpathTV.EncMapBoolInt8V(rv.Interface().(map[bool]int8), fastpathCheckNilFalse, f.e)
  9052. }
  9053. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, checkNil bool, e *Encoder) {
  9054. ee := e.e
  9055. if checkNil && v == nil {
  9056. ee.EncodeNil()
  9057. return
  9058. }
  9059. ee.EncodeMapStart(len(v))
  9060. if e.be {
  9061. for k2, v2 := range v {
  9062. ee.EncodeBool(k2)
  9063. ee.EncodeInt(int64(v2))
  9064. }
  9065. } else {
  9066. j := 0
  9067. for k2, v2 := range v {
  9068. if j > 0 {
  9069. ee.EncodeMapEntrySeparator()
  9070. }
  9071. ee.EncodeBool(k2)
  9072. ee.EncodeMapKVSeparator()
  9073. ee.EncodeInt(int64(v2))
  9074. j++
  9075. }
  9076. ee.EncodeMapEnd()
  9077. }
  9078. }
  9079. func (f encFnInfo) fastpathEncMapBoolInt16R(rv reflect.Value) {
  9080. fastpathTV.EncMapBoolInt16V(rv.Interface().(map[bool]int16), fastpathCheckNilFalse, f.e)
  9081. }
  9082. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, checkNil bool, e *Encoder) {
  9083. ee := e.e
  9084. if checkNil && v == nil {
  9085. ee.EncodeNil()
  9086. return
  9087. }
  9088. ee.EncodeMapStart(len(v))
  9089. if e.be {
  9090. for k2, v2 := range v {
  9091. ee.EncodeBool(k2)
  9092. ee.EncodeInt(int64(v2))
  9093. }
  9094. } else {
  9095. j := 0
  9096. for k2, v2 := range v {
  9097. if j > 0 {
  9098. ee.EncodeMapEntrySeparator()
  9099. }
  9100. ee.EncodeBool(k2)
  9101. ee.EncodeMapKVSeparator()
  9102. ee.EncodeInt(int64(v2))
  9103. j++
  9104. }
  9105. ee.EncodeMapEnd()
  9106. }
  9107. }
  9108. func (f encFnInfo) fastpathEncMapBoolInt32R(rv reflect.Value) {
  9109. fastpathTV.EncMapBoolInt32V(rv.Interface().(map[bool]int32), fastpathCheckNilFalse, f.e)
  9110. }
  9111. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, checkNil bool, e *Encoder) {
  9112. ee := e.e
  9113. if checkNil && v == nil {
  9114. ee.EncodeNil()
  9115. return
  9116. }
  9117. ee.EncodeMapStart(len(v))
  9118. if e.be {
  9119. for k2, v2 := range v {
  9120. ee.EncodeBool(k2)
  9121. ee.EncodeInt(int64(v2))
  9122. }
  9123. } else {
  9124. j := 0
  9125. for k2, v2 := range v {
  9126. if j > 0 {
  9127. ee.EncodeMapEntrySeparator()
  9128. }
  9129. ee.EncodeBool(k2)
  9130. ee.EncodeMapKVSeparator()
  9131. ee.EncodeInt(int64(v2))
  9132. j++
  9133. }
  9134. ee.EncodeMapEnd()
  9135. }
  9136. }
  9137. func (f encFnInfo) fastpathEncMapBoolInt64R(rv reflect.Value) {
  9138. fastpathTV.EncMapBoolInt64V(rv.Interface().(map[bool]int64), fastpathCheckNilFalse, f.e)
  9139. }
  9140. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, checkNil bool, e *Encoder) {
  9141. ee := e.e
  9142. if checkNil && v == nil {
  9143. ee.EncodeNil()
  9144. return
  9145. }
  9146. ee.EncodeMapStart(len(v))
  9147. if e.be {
  9148. for k2, v2 := range v {
  9149. ee.EncodeBool(k2)
  9150. ee.EncodeInt(int64(v2))
  9151. }
  9152. } else {
  9153. j := 0
  9154. for k2, v2 := range v {
  9155. if j > 0 {
  9156. ee.EncodeMapEntrySeparator()
  9157. }
  9158. ee.EncodeBool(k2)
  9159. ee.EncodeMapKVSeparator()
  9160. ee.EncodeInt(int64(v2))
  9161. j++
  9162. }
  9163. ee.EncodeMapEnd()
  9164. }
  9165. }
  9166. func (f encFnInfo) fastpathEncMapBoolFloat32R(rv reflect.Value) {
  9167. fastpathTV.EncMapBoolFloat32V(rv.Interface().(map[bool]float32), fastpathCheckNilFalse, f.e)
  9168. }
  9169. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, checkNil bool, e *Encoder) {
  9170. ee := e.e
  9171. if checkNil && v == nil {
  9172. ee.EncodeNil()
  9173. return
  9174. }
  9175. ee.EncodeMapStart(len(v))
  9176. if e.be {
  9177. for k2, v2 := range v {
  9178. ee.EncodeBool(k2)
  9179. ee.EncodeFloat32(v2)
  9180. }
  9181. } else {
  9182. j := 0
  9183. for k2, v2 := range v {
  9184. if j > 0 {
  9185. ee.EncodeMapEntrySeparator()
  9186. }
  9187. ee.EncodeBool(k2)
  9188. ee.EncodeMapKVSeparator()
  9189. ee.EncodeFloat32(v2)
  9190. j++
  9191. }
  9192. ee.EncodeMapEnd()
  9193. }
  9194. }
  9195. func (f encFnInfo) fastpathEncMapBoolFloat64R(rv reflect.Value) {
  9196. fastpathTV.EncMapBoolFloat64V(rv.Interface().(map[bool]float64), fastpathCheckNilFalse, f.e)
  9197. }
  9198. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, checkNil bool, e *Encoder) {
  9199. ee := e.e
  9200. if checkNil && v == nil {
  9201. ee.EncodeNil()
  9202. return
  9203. }
  9204. ee.EncodeMapStart(len(v))
  9205. if e.be {
  9206. for k2, v2 := range v {
  9207. ee.EncodeBool(k2)
  9208. ee.EncodeFloat64(v2)
  9209. }
  9210. } else {
  9211. j := 0
  9212. for k2, v2 := range v {
  9213. if j > 0 {
  9214. ee.EncodeMapEntrySeparator()
  9215. }
  9216. ee.EncodeBool(k2)
  9217. ee.EncodeMapKVSeparator()
  9218. ee.EncodeFloat64(v2)
  9219. j++
  9220. }
  9221. ee.EncodeMapEnd()
  9222. }
  9223. }
  9224. func (f encFnInfo) fastpathEncMapBoolBoolR(rv reflect.Value) {
  9225. fastpathTV.EncMapBoolBoolV(rv.Interface().(map[bool]bool), fastpathCheckNilFalse, f.e)
  9226. }
  9227. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, checkNil bool, e *Encoder) {
  9228. ee := e.e
  9229. if checkNil && v == nil {
  9230. ee.EncodeNil()
  9231. return
  9232. }
  9233. ee.EncodeMapStart(len(v))
  9234. if e.be {
  9235. for k2, v2 := range v {
  9236. ee.EncodeBool(k2)
  9237. ee.EncodeBool(v2)
  9238. }
  9239. } else {
  9240. j := 0
  9241. for k2, v2 := range v {
  9242. if j > 0 {
  9243. ee.EncodeMapEntrySeparator()
  9244. }
  9245. ee.EncodeBool(k2)
  9246. ee.EncodeMapKVSeparator()
  9247. ee.EncodeBool(v2)
  9248. j++
  9249. }
  9250. ee.EncodeMapEnd()
  9251. }
  9252. }
  9253. // -- decode
  9254. // -- -- fast path type switch
  9255. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  9256. switch v := iv.(type) {
  9257. case []interface{}:
  9258. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, d)
  9259. case *[]interface{}:
  9260. v2, changed2 := fastpathTV.DecSliceIntfV(*v, fastpathCheckNilFalse, true, d)
  9261. if changed2 {
  9262. *v = v2
  9263. }
  9264. case map[interface{}]interface{}:
  9265. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, d)
  9266. case *map[interface{}]interface{}:
  9267. v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, fastpathCheckNilFalse, true, d)
  9268. if changed2 {
  9269. *v = v2
  9270. }
  9271. case map[interface{}]string:
  9272. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, d)
  9273. case *map[interface{}]string:
  9274. v2, changed2 := fastpathTV.DecMapIntfStringV(*v, fastpathCheckNilFalse, true, d)
  9275. if changed2 {
  9276. *v = v2
  9277. }
  9278. case map[interface{}]uint:
  9279. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, d)
  9280. case *map[interface{}]uint:
  9281. v2, changed2 := fastpathTV.DecMapIntfUintV(*v, fastpathCheckNilFalse, true, d)
  9282. if changed2 {
  9283. *v = v2
  9284. }
  9285. case map[interface{}]uint8:
  9286. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, d)
  9287. case *map[interface{}]uint8:
  9288. v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, fastpathCheckNilFalse, true, d)
  9289. if changed2 {
  9290. *v = v2
  9291. }
  9292. case map[interface{}]uint16:
  9293. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, d)
  9294. case *map[interface{}]uint16:
  9295. v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, fastpathCheckNilFalse, true, d)
  9296. if changed2 {
  9297. *v = v2
  9298. }
  9299. case map[interface{}]uint32:
  9300. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, d)
  9301. case *map[interface{}]uint32:
  9302. v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, fastpathCheckNilFalse, true, d)
  9303. if changed2 {
  9304. *v = v2
  9305. }
  9306. case map[interface{}]uint64:
  9307. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, d)
  9308. case *map[interface{}]uint64:
  9309. v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, fastpathCheckNilFalse, true, d)
  9310. if changed2 {
  9311. *v = v2
  9312. }
  9313. case map[interface{}]int:
  9314. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, d)
  9315. case *map[interface{}]int:
  9316. v2, changed2 := fastpathTV.DecMapIntfIntV(*v, fastpathCheckNilFalse, true, d)
  9317. if changed2 {
  9318. *v = v2
  9319. }
  9320. case map[interface{}]int8:
  9321. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, d)
  9322. case *map[interface{}]int8:
  9323. v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, fastpathCheckNilFalse, true, d)
  9324. if changed2 {
  9325. *v = v2
  9326. }
  9327. case map[interface{}]int16:
  9328. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, d)
  9329. case *map[interface{}]int16:
  9330. v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, fastpathCheckNilFalse, true, d)
  9331. if changed2 {
  9332. *v = v2
  9333. }
  9334. case map[interface{}]int32:
  9335. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, d)
  9336. case *map[interface{}]int32:
  9337. v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, fastpathCheckNilFalse, true, d)
  9338. if changed2 {
  9339. *v = v2
  9340. }
  9341. case map[interface{}]int64:
  9342. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, d)
  9343. case *map[interface{}]int64:
  9344. v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, fastpathCheckNilFalse, true, d)
  9345. if changed2 {
  9346. *v = v2
  9347. }
  9348. case map[interface{}]float32:
  9349. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, d)
  9350. case *map[interface{}]float32:
  9351. v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, fastpathCheckNilFalse, true, d)
  9352. if changed2 {
  9353. *v = v2
  9354. }
  9355. case map[interface{}]float64:
  9356. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, d)
  9357. case *map[interface{}]float64:
  9358. v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, fastpathCheckNilFalse, true, d)
  9359. if changed2 {
  9360. *v = v2
  9361. }
  9362. case map[interface{}]bool:
  9363. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, d)
  9364. case *map[interface{}]bool:
  9365. v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, fastpathCheckNilFalse, true, d)
  9366. if changed2 {
  9367. *v = v2
  9368. }
  9369. case []string:
  9370. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, d)
  9371. case *[]string:
  9372. v2, changed2 := fastpathTV.DecSliceStringV(*v, fastpathCheckNilFalse, true, d)
  9373. if changed2 {
  9374. *v = v2
  9375. }
  9376. case map[string]interface{}:
  9377. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, d)
  9378. case *map[string]interface{}:
  9379. v2, changed2 := fastpathTV.DecMapStringIntfV(*v, fastpathCheckNilFalse, true, d)
  9380. if changed2 {
  9381. *v = v2
  9382. }
  9383. case map[string]string:
  9384. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, d)
  9385. case *map[string]string:
  9386. v2, changed2 := fastpathTV.DecMapStringStringV(*v, fastpathCheckNilFalse, true, d)
  9387. if changed2 {
  9388. *v = v2
  9389. }
  9390. case map[string]uint:
  9391. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, d)
  9392. case *map[string]uint:
  9393. v2, changed2 := fastpathTV.DecMapStringUintV(*v, fastpathCheckNilFalse, true, d)
  9394. if changed2 {
  9395. *v = v2
  9396. }
  9397. case map[string]uint8:
  9398. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, d)
  9399. case *map[string]uint8:
  9400. v2, changed2 := fastpathTV.DecMapStringUint8V(*v, fastpathCheckNilFalse, true, d)
  9401. if changed2 {
  9402. *v = v2
  9403. }
  9404. case map[string]uint16:
  9405. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, d)
  9406. case *map[string]uint16:
  9407. v2, changed2 := fastpathTV.DecMapStringUint16V(*v, fastpathCheckNilFalse, true, d)
  9408. if changed2 {
  9409. *v = v2
  9410. }
  9411. case map[string]uint32:
  9412. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, d)
  9413. case *map[string]uint32:
  9414. v2, changed2 := fastpathTV.DecMapStringUint32V(*v, fastpathCheckNilFalse, true, d)
  9415. if changed2 {
  9416. *v = v2
  9417. }
  9418. case map[string]uint64:
  9419. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, d)
  9420. case *map[string]uint64:
  9421. v2, changed2 := fastpathTV.DecMapStringUint64V(*v, fastpathCheckNilFalse, true, d)
  9422. if changed2 {
  9423. *v = v2
  9424. }
  9425. case map[string]int:
  9426. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, d)
  9427. case *map[string]int:
  9428. v2, changed2 := fastpathTV.DecMapStringIntV(*v, fastpathCheckNilFalse, true, d)
  9429. if changed2 {
  9430. *v = v2
  9431. }
  9432. case map[string]int8:
  9433. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, d)
  9434. case *map[string]int8:
  9435. v2, changed2 := fastpathTV.DecMapStringInt8V(*v, fastpathCheckNilFalse, true, d)
  9436. if changed2 {
  9437. *v = v2
  9438. }
  9439. case map[string]int16:
  9440. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, d)
  9441. case *map[string]int16:
  9442. v2, changed2 := fastpathTV.DecMapStringInt16V(*v, fastpathCheckNilFalse, true, d)
  9443. if changed2 {
  9444. *v = v2
  9445. }
  9446. case map[string]int32:
  9447. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, d)
  9448. case *map[string]int32:
  9449. v2, changed2 := fastpathTV.DecMapStringInt32V(*v, fastpathCheckNilFalse, true, d)
  9450. if changed2 {
  9451. *v = v2
  9452. }
  9453. case map[string]int64:
  9454. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, d)
  9455. case *map[string]int64:
  9456. v2, changed2 := fastpathTV.DecMapStringInt64V(*v, fastpathCheckNilFalse, true, d)
  9457. if changed2 {
  9458. *v = v2
  9459. }
  9460. case map[string]float32:
  9461. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, d)
  9462. case *map[string]float32:
  9463. v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, fastpathCheckNilFalse, true, d)
  9464. if changed2 {
  9465. *v = v2
  9466. }
  9467. case map[string]float64:
  9468. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, d)
  9469. case *map[string]float64:
  9470. v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, fastpathCheckNilFalse, true, d)
  9471. if changed2 {
  9472. *v = v2
  9473. }
  9474. case map[string]bool:
  9475. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, d)
  9476. case *map[string]bool:
  9477. v2, changed2 := fastpathTV.DecMapStringBoolV(*v, fastpathCheckNilFalse, true, d)
  9478. if changed2 {
  9479. *v = v2
  9480. }
  9481. case []float32:
  9482. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, d)
  9483. case *[]float32:
  9484. v2, changed2 := fastpathTV.DecSliceFloat32V(*v, fastpathCheckNilFalse, true, d)
  9485. if changed2 {
  9486. *v = v2
  9487. }
  9488. case map[float32]interface{}:
  9489. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, d)
  9490. case *map[float32]interface{}:
  9491. v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, fastpathCheckNilFalse, true, d)
  9492. if changed2 {
  9493. *v = v2
  9494. }
  9495. case map[float32]string:
  9496. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, d)
  9497. case *map[float32]string:
  9498. v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, fastpathCheckNilFalse, true, d)
  9499. if changed2 {
  9500. *v = v2
  9501. }
  9502. case map[float32]uint:
  9503. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, d)
  9504. case *map[float32]uint:
  9505. v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, fastpathCheckNilFalse, true, d)
  9506. if changed2 {
  9507. *v = v2
  9508. }
  9509. case map[float32]uint8:
  9510. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, d)
  9511. case *map[float32]uint8:
  9512. v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, fastpathCheckNilFalse, true, d)
  9513. if changed2 {
  9514. *v = v2
  9515. }
  9516. case map[float32]uint16:
  9517. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, d)
  9518. case *map[float32]uint16:
  9519. v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, fastpathCheckNilFalse, true, d)
  9520. if changed2 {
  9521. *v = v2
  9522. }
  9523. case map[float32]uint32:
  9524. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, d)
  9525. case *map[float32]uint32:
  9526. v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, fastpathCheckNilFalse, true, d)
  9527. if changed2 {
  9528. *v = v2
  9529. }
  9530. case map[float32]uint64:
  9531. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, d)
  9532. case *map[float32]uint64:
  9533. v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, fastpathCheckNilFalse, true, d)
  9534. if changed2 {
  9535. *v = v2
  9536. }
  9537. case map[float32]int:
  9538. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, d)
  9539. case *map[float32]int:
  9540. v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, fastpathCheckNilFalse, true, d)
  9541. if changed2 {
  9542. *v = v2
  9543. }
  9544. case map[float32]int8:
  9545. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, d)
  9546. case *map[float32]int8:
  9547. v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, fastpathCheckNilFalse, true, d)
  9548. if changed2 {
  9549. *v = v2
  9550. }
  9551. case map[float32]int16:
  9552. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, d)
  9553. case *map[float32]int16:
  9554. v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, fastpathCheckNilFalse, true, d)
  9555. if changed2 {
  9556. *v = v2
  9557. }
  9558. case map[float32]int32:
  9559. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, d)
  9560. case *map[float32]int32:
  9561. v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, fastpathCheckNilFalse, true, d)
  9562. if changed2 {
  9563. *v = v2
  9564. }
  9565. case map[float32]int64:
  9566. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, d)
  9567. case *map[float32]int64:
  9568. v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, fastpathCheckNilFalse, true, d)
  9569. if changed2 {
  9570. *v = v2
  9571. }
  9572. case map[float32]float32:
  9573. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, d)
  9574. case *map[float32]float32:
  9575. v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, fastpathCheckNilFalse, true, d)
  9576. if changed2 {
  9577. *v = v2
  9578. }
  9579. case map[float32]float64:
  9580. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, d)
  9581. case *map[float32]float64:
  9582. v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, fastpathCheckNilFalse, true, d)
  9583. if changed2 {
  9584. *v = v2
  9585. }
  9586. case map[float32]bool:
  9587. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, d)
  9588. case *map[float32]bool:
  9589. v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, fastpathCheckNilFalse, true, d)
  9590. if changed2 {
  9591. *v = v2
  9592. }
  9593. case []float64:
  9594. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, d)
  9595. case *[]float64:
  9596. v2, changed2 := fastpathTV.DecSliceFloat64V(*v, fastpathCheckNilFalse, true, d)
  9597. if changed2 {
  9598. *v = v2
  9599. }
  9600. case map[float64]interface{}:
  9601. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, d)
  9602. case *map[float64]interface{}:
  9603. v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, fastpathCheckNilFalse, true, d)
  9604. if changed2 {
  9605. *v = v2
  9606. }
  9607. case map[float64]string:
  9608. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, d)
  9609. case *map[float64]string:
  9610. v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, fastpathCheckNilFalse, true, d)
  9611. if changed2 {
  9612. *v = v2
  9613. }
  9614. case map[float64]uint:
  9615. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, d)
  9616. case *map[float64]uint:
  9617. v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, fastpathCheckNilFalse, true, d)
  9618. if changed2 {
  9619. *v = v2
  9620. }
  9621. case map[float64]uint8:
  9622. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, d)
  9623. case *map[float64]uint8:
  9624. v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, fastpathCheckNilFalse, true, d)
  9625. if changed2 {
  9626. *v = v2
  9627. }
  9628. case map[float64]uint16:
  9629. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, d)
  9630. case *map[float64]uint16:
  9631. v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, fastpathCheckNilFalse, true, d)
  9632. if changed2 {
  9633. *v = v2
  9634. }
  9635. case map[float64]uint32:
  9636. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, d)
  9637. case *map[float64]uint32:
  9638. v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, fastpathCheckNilFalse, true, d)
  9639. if changed2 {
  9640. *v = v2
  9641. }
  9642. case map[float64]uint64:
  9643. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, d)
  9644. case *map[float64]uint64:
  9645. v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, fastpathCheckNilFalse, true, d)
  9646. if changed2 {
  9647. *v = v2
  9648. }
  9649. case map[float64]int:
  9650. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, d)
  9651. case *map[float64]int:
  9652. v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, fastpathCheckNilFalse, true, d)
  9653. if changed2 {
  9654. *v = v2
  9655. }
  9656. case map[float64]int8:
  9657. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, d)
  9658. case *map[float64]int8:
  9659. v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, fastpathCheckNilFalse, true, d)
  9660. if changed2 {
  9661. *v = v2
  9662. }
  9663. case map[float64]int16:
  9664. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, d)
  9665. case *map[float64]int16:
  9666. v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, fastpathCheckNilFalse, true, d)
  9667. if changed2 {
  9668. *v = v2
  9669. }
  9670. case map[float64]int32:
  9671. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, d)
  9672. case *map[float64]int32:
  9673. v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, fastpathCheckNilFalse, true, d)
  9674. if changed2 {
  9675. *v = v2
  9676. }
  9677. case map[float64]int64:
  9678. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, d)
  9679. case *map[float64]int64:
  9680. v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, fastpathCheckNilFalse, true, d)
  9681. if changed2 {
  9682. *v = v2
  9683. }
  9684. case map[float64]float32:
  9685. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, d)
  9686. case *map[float64]float32:
  9687. v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, fastpathCheckNilFalse, true, d)
  9688. if changed2 {
  9689. *v = v2
  9690. }
  9691. case map[float64]float64:
  9692. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, d)
  9693. case *map[float64]float64:
  9694. v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, fastpathCheckNilFalse, true, d)
  9695. if changed2 {
  9696. *v = v2
  9697. }
  9698. case map[float64]bool:
  9699. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, d)
  9700. case *map[float64]bool:
  9701. v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, fastpathCheckNilFalse, true, d)
  9702. if changed2 {
  9703. *v = v2
  9704. }
  9705. case []uint:
  9706. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, d)
  9707. case *[]uint:
  9708. v2, changed2 := fastpathTV.DecSliceUintV(*v, fastpathCheckNilFalse, true, d)
  9709. if changed2 {
  9710. *v = v2
  9711. }
  9712. case map[uint]interface{}:
  9713. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, d)
  9714. case *map[uint]interface{}:
  9715. v2, changed2 := fastpathTV.DecMapUintIntfV(*v, fastpathCheckNilFalse, true, d)
  9716. if changed2 {
  9717. *v = v2
  9718. }
  9719. case map[uint]string:
  9720. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, d)
  9721. case *map[uint]string:
  9722. v2, changed2 := fastpathTV.DecMapUintStringV(*v, fastpathCheckNilFalse, true, d)
  9723. if changed2 {
  9724. *v = v2
  9725. }
  9726. case map[uint]uint:
  9727. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, d)
  9728. case *map[uint]uint:
  9729. v2, changed2 := fastpathTV.DecMapUintUintV(*v, fastpathCheckNilFalse, true, d)
  9730. if changed2 {
  9731. *v = v2
  9732. }
  9733. case map[uint]uint8:
  9734. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, d)
  9735. case *map[uint]uint8:
  9736. v2, changed2 := fastpathTV.DecMapUintUint8V(*v, fastpathCheckNilFalse, true, d)
  9737. if changed2 {
  9738. *v = v2
  9739. }
  9740. case map[uint]uint16:
  9741. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, d)
  9742. case *map[uint]uint16:
  9743. v2, changed2 := fastpathTV.DecMapUintUint16V(*v, fastpathCheckNilFalse, true, d)
  9744. if changed2 {
  9745. *v = v2
  9746. }
  9747. case map[uint]uint32:
  9748. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, d)
  9749. case *map[uint]uint32:
  9750. v2, changed2 := fastpathTV.DecMapUintUint32V(*v, fastpathCheckNilFalse, true, d)
  9751. if changed2 {
  9752. *v = v2
  9753. }
  9754. case map[uint]uint64:
  9755. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, d)
  9756. case *map[uint]uint64:
  9757. v2, changed2 := fastpathTV.DecMapUintUint64V(*v, fastpathCheckNilFalse, true, d)
  9758. if changed2 {
  9759. *v = v2
  9760. }
  9761. case map[uint]int:
  9762. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, d)
  9763. case *map[uint]int:
  9764. v2, changed2 := fastpathTV.DecMapUintIntV(*v, fastpathCheckNilFalse, true, d)
  9765. if changed2 {
  9766. *v = v2
  9767. }
  9768. case map[uint]int8:
  9769. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, d)
  9770. case *map[uint]int8:
  9771. v2, changed2 := fastpathTV.DecMapUintInt8V(*v, fastpathCheckNilFalse, true, d)
  9772. if changed2 {
  9773. *v = v2
  9774. }
  9775. case map[uint]int16:
  9776. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, d)
  9777. case *map[uint]int16:
  9778. v2, changed2 := fastpathTV.DecMapUintInt16V(*v, fastpathCheckNilFalse, true, d)
  9779. if changed2 {
  9780. *v = v2
  9781. }
  9782. case map[uint]int32:
  9783. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, d)
  9784. case *map[uint]int32:
  9785. v2, changed2 := fastpathTV.DecMapUintInt32V(*v, fastpathCheckNilFalse, true, d)
  9786. if changed2 {
  9787. *v = v2
  9788. }
  9789. case map[uint]int64:
  9790. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, d)
  9791. case *map[uint]int64:
  9792. v2, changed2 := fastpathTV.DecMapUintInt64V(*v, fastpathCheckNilFalse, true, d)
  9793. if changed2 {
  9794. *v = v2
  9795. }
  9796. case map[uint]float32:
  9797. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, d)
  9798. case *map[uint]float32:
  9799. v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, fastpathCheckNilFalse, true, d)
  9800. if changed2 {
  9801. *v = v2
  9802. }
  9803. case map[uint]float64:
  9804. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, d)
  9805. case *map[uint]float64:
  9806. v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, fastpathCheckNilFalse, true, d)
  9807. if changed2 {
  9808. *v = v2
  9809. }
  9810. case map[uint]bool:
  9811. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, d)
  9812. case *map[uint]bool:
  9813. v2, changed2 := fastpathTV.DecMapUintBoolV(*v, fastpathCheckNilFalse, true, d)
  9814. if changed2 {
  9815. *v = v2
  9816. }
  9817. case map[uint8]interface{}:
  9818. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, d)
  9819. case *map[uint8]interface{}:
  9820. v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, fastpathCheckNilFalse, true, d)
  9821. if changed2 {
  9822. *v = v2
  9823. }
  9824. case map[uint8]string:
  9825. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, d)
  9826. case *map[uint8]string:
  9827. v2, changed2 := fastpathTV.DecMapUint8StringV(*v, fastpathCheckNilFalse, true, d)
  9828. if changed2 {
  9829. *v = v2
  9830. }
  9831. case map[uint8]uint:
  9832. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, d)
  9833. case *map[uint8]uint:
  9834. v2, changed2 := fastpathTV.DecMapUint8UintV(*v, fastpathCheckNilFalse, true, d)
  9835. if changed2 {
  9836. *v = v2
  9837. }
  9838. case map[uint8]uint8:
  9839. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, d)
  9840. case *map[uint8]uint8:
  9841. v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, fastpathCheckNilFalse, true, d)
  9842. if changed2 {
  9843. *v = v2
  9844. }
  9845. case map[uint8]uint16:
  9846. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, d)
  9847. case *map[uint8]uint16:
  9848. v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, fastpathCheckNilFalse, true, d)
  9849. if changed2 {
  9850. *v = v2
  9851. }
  9852. case map[uint8]uint32:
  9853. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, d)
  9854. case *map[uint8]uint32:
  9855. v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, fastpathCheckNilFalse, true, d)
  9856. if changed2 {
  9857. *v = v2
  9858. }
  9859. case map[uint8]uint64:
  9860. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, d)
  9861. case *map[uint8]uint64:
  9862. v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, fastpathCheckNilFalse, true, d)
  9863. if changed2 {
  9864. *v = v2
  9865. }
  9866. case map[uint8]int:
  9867. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, d)
  9868. case *map[uint8]int:
  9869. v2, changed2 := fastpathTV.DecMapUint8IntV(*v, fastpathCheckNilFalse, true, d)
  9870. if changed2 {
  9871. *v = v2
  9872. }
  9873. case map[uint8]int8:
  9874. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, d)
  9875. case *map[uint8]int8:
  9876. v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, fastpathCheckNilFalse, true, d)
  9877. if changed2 {
  9878. *v = v2
  9879. }
  9880. case map[uint8]int16:
  9881. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, d)
  9882. case *map[uint8]int16:
  9883. v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, fastpathCheckNilFalse, true, d)
  9884. if changed2 {
  9885. *v = v2
  9886. }
  9887. case map[uint8]int32:
  9888. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, d)
  9889. case *map[uint8]int32:
  9890. v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, fastpathCheckNilFalse, true, d)
  9891. if changed2 {
  9892. *v = v2
  9893. }
  9894. case map[uint8]int64:
  9895. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, d)
  9896. case *map[uint8]int64:
  9897. v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, fastpathCheckNilFalse, true, d)
  9898. if changed2 {
  9899. *v = v2
  9900. }
  9901. case map[uint8]float32:
  9902. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, d)
  9903. case *map[uint8]float32:
  9904. v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, fastpathCheckNilFalse, true, d)
  9905. if changed2 {
  9906. *v = v2
  9907. }
  9908. case map[uint8]float64:
  9909. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, d)
  9910. case *map[uint8]float64:
  9911. v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, fastpathCheckNilFalse, true, d)
  9912. if changed2 {
  9913. *v = v2
  9914. }
  9915. case map[uint8]bool:
  9916. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, d)
  9917. case *map[uint8]bool:
  9918. v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, fastpathCheckNilFalse, true, d)
  9919. if changed2 {
  9920. *v = v2
  9921. }
  9922. case []uint16:
  9923. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, d)
  9924. case *[]uint16:
  9925. v2, changed2 := fastpathTV.DecSliceUint16V(*v, fastpathCheckNilFalse, true, d)
  9926. if changed2 {
  9927. *v = v2
  9928. }
  9929. case map[uint16]interface{}:
  9930. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, d)
  9931. case *map[uint16]interface{}:
  9932. v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, fastpathCheckNilFalse, true, d)
  9933. if changed2 {
  9934. *v = v2
  9935. }
  9936. case map[uint16]string:
  9937. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, d)
  9938. case *map[uint16]string:
  9939. v2, changed2 := fastpathTV.DecMapUint16StringV(*v, fastpathCheckNilFalse, true, d)
  9940. if changed2 {
  9941. *v = v2
  9942. }
  9943. case map[uint16]uint:
  9944. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, d)
  9945. case *map[uint16]uint:
  9946. v2, changed2 := fastpathTV.DecMapUint16UintV(*v, fastpathCheckNilFalse, true, d)
  9947. if changed2 {
  9948. *v = v2
  9949. }
  9950. case map[uint16]uint8:
  9951. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, d)
  9952. case *map[uint16]uint8:
  9953. v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, fastpathCheckNilFalse, true, d)
  9954. if changed2 {
  9955. *v = v2
  9956. }
  9957. case map[uint16]uint16:
  9958. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, d)
  9959. case *map[uint16]uint16:
  9960. v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, fastpathCheckNilFalse, true, d)
  9961. if changed2 {
  9962. *v = v2
  9963. }
  9964. case map[uint16]uint32:
  9965. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, d)
  9966. case *map[uint16]uint32:
  9967. v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, fastpathCheckNilFalse, true, d)
  9968. if changed2 {
  9969. *v = v2
  9970. }
  9971. case map[uint16]uint64:
  9972. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, d)
  9973. case *map[uint16]uint64:
  9974. v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, fastpathCheckNilFalse, true, d)
  9975. if changed2 {
  9976. *v = v2
  9977. }
  9978. case map[uint16]int:
  9979. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, d)
  9980. case *map[uint16]int:
  9981. v2, changed2 := fastpathTV.DecMapUint16IntV(*v, fastpathCheckNilFalse, true, d)
  9982. if changed2 {
  9983. *v = v2
  9984. }
  9985. case map[uint16]int8:
  9986. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, d)
  9987. case *map[uint16]int8:
  9988. v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, fastpathCheckNilFalse, true, d)
  9989. if changed2 {
  9990. *v = v2
  9991. }
  9992. case map[uint16]int16:
  9993. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, d)
  9994. case *map[uint16]int16:
  9995. v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, fastpathCheckNilFalse, true, d)
  9996. if changed2 {
  9997. *v = v2
  9998. }
  9999. case map[uint16]int32:
  10000. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, d)
  10001. case *map[uint16]int32:
  10002. v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, fastpathCheckNilFalse, true, d)
  10003. if changed2 {
  10004. *v = v2
  10005. }
  10006. case map[uint16]int64:
  10007. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, d)
  10008. case *map[uint16]int64:
  10009. v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, fastpathCheckNilFalse, true, d)
  10010. if changed2 {
  10011. *v = v2
  10012. }
  10013. case map[uint16]float32:
  10014. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, d)
  10015. case *map[uint16]float32:
  10016. v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, fastpathCheckNilFalse, true, d)
  10017. if changed2 {
  10018. *v = v2
  10019. }
  10020. case map[uint16]float64:
  10021. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, d)
  10022. case *map[uint16]float64:
  10023. v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, fastpathCheckNilFalse, true, d)
  10024. if changed2 {
  10025. *v = v2
  10026. }
  10027. case map[uint16]bool:
  10028. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, d)
  10029. case *map[uint16]bool:
  10030. v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, fastpathCheckNilFalse, true, d)
  10031. if changed2 {
  10032. *v = v2
  10033. }
  10034. case []uint32:
  10035. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, d)
  10036. case *[]uint32:
  10037. v2, changed2 := fastpathTV.DecSliceUint32V(*v, fastpathCheckNilFalse, true, d)
  10038. if changed2 {
  10039. *v = v2
  10040. }
  10041. case map[uint32]interface{}:
  10042. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, d)
  10043. case *map[uint32]interface{}:
  10044. v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, fastpathCheckNilFalse, true, d)
  10045. if changed2 {
  10046. *v = v2
  10047. }
  10048. case map[uint32]string:
  10049. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, d)
  10050. case *map[uint32]string:
  10051. v2, changed2 := fastpathTV.DecMapUint32StringV(*v, fastpathCheckNilFalse, true, d)
  10052. if changed2 {
  10053. *v = v2
  10054. }
  10055. case map[uint32]uint:
  10056. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, d)
  10057. case *map[uint32]uint:
  10058. v2, changed2 := fastpathTV.DecMapUint32UintV(*v, fastpathCheckNilFalse, true, d)
  10059. if changed2 {
  10060. *v = v2
  10061. }
  10062. case map[uint32]uint8:
  10063. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, d)
  10064. case *map[uint32]uint8:
  10065. v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, fastpathCheckNilFalse, true, d)
  10066. if changed2 {
  10067. *v = v2
  10068. }
  10069. case map[uint32]uint16:
  10070. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, d)
  10071. case *map[uint32]uint16:
  10072. v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, fastpathCheckNilFalse, true, d)
  10073. if changed2 {
  10074. *v = v2
  10075. }
  10076. case map[uint32]uint32:
  10077. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, d)
  10078. case *map[uint32]uint32:
  10079. v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, fastpathCheckNilFalse, true, d)
  10080. if changed2 {
  10081. *v = v2
  10082. }
  10083. case map[uint32]uint64:
  10084. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, d)
  10085. case *map[uint32]uint64:
  10086. v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, fastpathCheckNilFalse, true, d)
  10087. if changed2 {
  10088. *v = v2
  10089. }
  10090. case map[uint32]int:
  10091. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, d)
  10092. case *map[uint32]int:
  10093. v2, changed2 := fastpathTV.DecMapUint32IntV(*v, fastpathCheckNilFalse, true, d)
  10094. if changed2 {
  10095. *v = v2
  10096. }
  10097. case map[uint32]int8:
  10098. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, d)
  10099. case *map[uint32]int8:
  10100. v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, fastpathCheckNilFalse, true, d)
  10101. if changed2 {
  10102. *v = v2
  10103. }
  10104. case map[uint32]int16:
  10105. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, d)
  10106. case *map[uint32]int16:
  10107. v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, fastpathCheckNilFalse, true, d)
  10108. if changed2 {
  10109. *v = v2
  10110. }
  10111. case map[uint32]int32:
  10112. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, d)
  10113. case *map[uint32]int32:
  10114. v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, fastpathCheckNilFalse, true, d)
  10115. if changed2 {
  10116. *v = v2
  10117. }
  10118. case map[uint32]int64:
  10119. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, d)
  10120. case *map[uint32]int64:
  10121. v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, fastpathCheckNilFalse, true, d)
  10122. if changed2 {
  10123. *v = v2
  10124. }
  10125. case map[uint32]float32:
  10126. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, d)
  10127. case *map[uint32]float32:
  10128. v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, fastpathCheckNilFalse, true, d)
  10129. if changed2 {
  10130. *v = v2
  10131. }
  10132. case map[uint32]float64:
  10133. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, d)
  10134. case *map[uint32]float64:
  10135. v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, fastpathCheckNilFalse, true, d)
  10136. if changed2 {
  10137. *v = v2
  10138. }
  10139. case map[uint32]bool:
  10140. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, d)
  10141. case *map[uint32]bool:
  10142. v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, fastpathCheckNilFalse, true, d)
  10143. if changed2 {
  10144. *v = v2
  10145. }
  10146. case []uint64:
  10147. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, d)
  10148. case *[]uint64:
  10149. v2, changed2 := fastpathTV.DecSliceUint64V(*v, fastpathCheckNilFalse, true, d)
  10150. if changed2 {
  10151. *v = v2
  10152. }
  10153. case map[uint64]interface{}:
  10154. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, d)
  10155. case *map[uint64]interface{}:
  10156. v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, fastpathCheckNilFalse, true, d)
  10157. if changed2 {
  10158. *v = v2
  10159. }
  10160. case map[uint64]string:
  10161. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, d)
  10162. case *map[uint64]string:
  10163. v2, changed2 := fastpathTV.DecMapUint64StringV(*v, fastpathCheckNilFalse, true, d)
  10164. if changed2 {
  10165. *v = v2
  10166. }
  10167. case map[uint64]uint:
  10168. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, d)
  10169. case *map[uint64]uint:
  10170. v2, changed2 := fastpathTV.DecMapUint64UintV(*v, fastpathCheckNilFalse, true, d)
  10171. if changed2 {
  10172. *v = v2
  10173. }
  10174. case map[uint64]uint8:
  10175. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, d)
  10176. case *map[uint64]uint8:
  10177. v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, fastpathCheckNilFalse, true, d)
  10178. if changed2 {
  10179. *v = v2
  10180. }
  10181. case map[uint64]uint16:
  10182. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, d)
  10183. case *map[uint64]uint16:
  10184. v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, fastpathCheckNilFalse, true, d)
  10185. if changed2 {
  10186. *v = v2
  10187. }
  10188. case map[uint64]uint32:
  10189. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, d)
  10190. case *map[uint64]uint32:
  10191. v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, fastpathCheckNilFalse, true, d)
  10192. if changed2 {
  10193. *v = v2
  10194. }
  10195. case map[uint64]uint64:
  10196. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, d)
  10197. case *map[uint64]uint64:
  10198. v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, fastpathCheckNilFalse, true, d)
  10199. if changed2 {
  10200. *v = v2
  10201. }
  10202. case map[uint64]int:
  10203. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, d)
  10204. case *map[uint64]int:
  10205. v2, changed2 := fastpathTV.DecMapUint64IntV(*v, fastpathCheckNilFalse, true, d)
  10206. if changed2 {
  10207. *v = v2
  10208. }
  10209. case map[uint64]int8:
  10210. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, d)
  10211. case *map[uint64]int8:
  10212. v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, fastpathCheckNilFalse, true, d)
  10213. if changed2 {
  10214. *v = v2
  10215. }
  10216. case map[uint64]int16:
  10217. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, d)
  10218. case *map[uint64]int16:
  10219. v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, fastpathCheckNilFalse, true, d)
  10220. if changed2 {
  10221. *v = v2
  10222. }
  10223. case map[uint64]int32:
  10224. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, d)
  10225. case *map[uint64]int32:
  10226. v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, fastpathCheckNilFalse, true, d)
  10227. if changed2 {
  10228. *v = v2
  10229. }
  10230. case map[uint64]int64:
  10231. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, d)
  10232. case *map[uint64]int64:
  10233. v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, fastpathCheckNilFalse, true, d)
  10234. if changed2 {
  10235. *v = v2
  10236. }
  10237. case map[uint64]float32:
  10238. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, d)
  10239. case *map[uint64]float32:
  10240. v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, fastpathCheckNilFalse, true, d)
  10241. if changed2 {
  10242. *v = v2
  10243. }
  10244. case map[uint64]float64:
  10245. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, d)
  10246. case *map[uint64]float64:
  10247. v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, fastpathCheckNilFalse, true, d)
  10248. if changed2 {
  10249. *v = v2
  10250. }
  10251. case map[uint64]bool:
  10252. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, d)
  10253. case *map[uint64]bool:
  10254. v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, fastpathCheckNilFalse, true, d)
  10255. if changed2 {
  10256. *v = v2
  10257. }
  10258. case []int:
  10259. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, d)
  10260. case *[]int:
  10261. v2, changed2 := fastpathTV.DecSliceIntV(*v, fastpathCheckNilFalse, true, d)
  10262. if changed2 {
  10263. *v = v2
  10264. }
  10265. case map[int]interface{}:
  10266. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, d)
  10267. case *map[int]interface{}:
  10268. v2, changed2 := fastpathTV.DecMapIntIntfV(*v, fastpathCheckNilFalse, true, d)
  10269. if changed2 {
  10270. *v = v2
  10271. }
  10272. case map[int]string:
  10273. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, d)
  10274. case *map[int]string:
  10275. v2, changed2 := fastpathTV.DecMapIntStringV(*v, fastpathCheckNilFalse, true, d)
  10276. if changed2 {
  10277. *v = v2
  10278. }
  10279. case map[int]uint:
  10280. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, d)
  10281. case *map[int]uint:
  10282. v2, changed2 := fastpathTV.DecMapIntUintV(*v, fastpathCheckNilFalse, true, d)
  10283. if changed2 {
  10284. *v = v2
  10285. }
  10286. case map[int]uint8:
  10287. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, d)
  10288. case *map[int]uint8:
  10289. v2, changed2 := fastpathTV.DecMapIntUint8V(*v, fastpathCheckNilFalse, true, d)
  10290. if changed2 {
  10291. *v = v2
  10292. }
  10293. case map[int]uint16:
  10294. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, d)
  10295. case *map[int]uint16:
  10296. v2, changed2 := fastpathTV.DecMapIntUint16V(*v, fastpathCheckNilFalse, true, d)
  10297. if changed2 {
  10298. *v = v2
  10299. }
  10300. case map[int]uint32:
  10301. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, d)
  10302. case *map[int]uint32:
  10303. v2, changed2 := fastpathTV.DecMapIntUint32V(*v, fastpathCheckNilFalse, true, d)
  10304. if changed2 {
  10305. *v = v2
  10306. }
  10307. case map[int]uint64:
  10308. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, d)
  10309. case *map[int]uint64:
  10310. v2, changed2 := fastpathTV.DecMapIntUint64V(*v, fastpathCheckNilFalse, true, d)
  10311. if changed2 {
  10312. *v = v2
  10313. }
  10314. case map[int]int:
  10315. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, d)
  10316. case *map[int]int:
  10317. v2, changed2 := fastpathTV.DecMapIntIntV(*v, fastpathCheckNilFalse, true, d)
  10318. if changed2 {
  10319. *v = v2
  10320. }
  10321. case map[int]int8:
  10322. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, d)
  10323. case *map[int]int8:
  10324. v2, changed2 := fastpathTV.DecMapIntInt8V(*v, fastpathCheckNilFalse, true, d)
  10325. if changed2 {
  10326. *v = v2
  10327. }
  10328. case map[int]int16:
  10329. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, d)
  10330. case *map[int]int16:
  10331. v2, changed2 := fastpathTV.DecMapIntInt16V(*v, fastpathCheckNilFalse, true, d)
  10332. if changed2 {
  10333. *v = v2
  10334. }
  10335. case map[int]int32:
  10336. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, d)
  10337. case *map[int]int32:
  10338. v2, changed2 := fastpathTV.DecMapIntInt32V(*v, fastpathCheckNilFalse, true, d)
  10339. if changed2 {
  10340. *v = v2
  10341. }
  10342. case map[int]int64:
  10343. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, d)
  10344. case *map[int]int64:
  10345. v2, changed2 := fastpathTV.DecMapIntInt64V(*v, fastpathCheckNilFalse, true, d)
  10346. if changed2 {
  10347. *v = v2
  10348. }
  10349. case map[int]float32:
  10350. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, d)
  10351. case *map[int]float32:
  10352. v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, fastpathCheckNilFalse, true, d)
  10353. if changed2 {
  10354. *v = v2
  10355. }
  10356. case map[int]float64:
  10357. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, d)
  10358. case *map[int]float64:
  10359. v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, fastpathCheckNilFalse, true, d)
  10360. if changed2 {
  10361. *v = v2
  10362. }
  10363. case map[int]bool:
  10364. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, d)
  10365. case *map[int]bool:
  10366. v2, changed2 := fastpathTV.DecMapIntBoolV(*v, fastpathCheckNilFalse, true, d)
  10367. if changed2 {
  10368. *v = v2
  10369. }
  10370. case []int8:
  10371. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, d)
  10372. case *[]int8:
  10373. v2, changed2 := fastpathTV.DecSliceInt8V(*v, fastpathCheckNilFalse, true, d)
  10374. if changed2 {
  10375. *v = v2
  10376. }
  10377. case map[int8]interface{}:
  10378. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, d)
  10379. case *map[int8]interface{}:
  10380. v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, fastpathCheckNilFalse, true, d)
  10381. if changed2 {
  10382. *v = v2
  10383. }
  10384. case map[int8]string:
  10385. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, d)
  10386. case *map[int8]string:
  10387. v2, changed2 := fastpathTV.DecMapInt8StringV(*v, fastpathCheckNilFalse, true, d)
  10388. if changed2 {
  10389. *v = v2
  10390. }
  10391. case map[int8]uint:
  10392. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, d)
  10393. case *map[int8]uint:
  10394. v2, changed2 := fastpathTV.DecMapInt8UintV(*v, fastpathCheckNilFalse, true, d)
  10395. if changed2 {
  10396. *v = v2
  10397. }
  10398. case map[int8]uint8:
  10399. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, d)
  10400. case *map[int8]uint8:
  10401. v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, fastpathCheckNilFalse, true, d)
  10402. if changed2 {
  10403. *v = v2
  10404. }
  10405. case map[int8]uint16:
  10406. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, d)
  10407. case *map[int8]uint16:
  10408. v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, fastpathCheckNilFalse, true, d)
  10409. if changed2 {
  10410. *v = v2
  10411. }
  10412. case map[int8]uint32:
  10413. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, d)
  10414. case *map[int8]uint32:
  10415. v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, fastpathCheckNilFalse, true, d)
  10416. if changed2 {
  10417. *v = v2
  10418. }
  10419. case map[int8]uint64:
  10420. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, d)
  10421. case *map[int8]uint64:
  10422. v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, fastpathCheckNilFalse, true, d)
  10423. if changed2 {
  10424. *v = v2
  10425. }
  10426. case map[int8]int:
  10427. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, d)
  10428. case *map[int8]int:
  10429. v2, changed2 := fastpathTV.DecMapInt8IntV(*v, fastpathCheckNilFalse, true, d)
  10430. if changed2 {
  10431. *v = v2
  10432. }
  10433. case map[int8]int8:
  10434. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, d)
  10435. case *map[int8]int8:
  10436. v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, fastpathCheckNilFalse, true, d)
  10437. if changed2 {
  10438. *v = v2
  10439. }
  10440. case map[int8]int16:
  10441. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, d)
  10442. case *map[int8]int16:
  10443. v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, fastpathCheckNilFalse, true, d)
  10444. if changed2 {
  10445. *v = v2
  10446. }
  10447. case map[int8]int32:
  10448. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, d)
  10449. case *map[int8]int32:
  10450. v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, fastpathCheckNilFalse, true, d)
  10451. if changed2 {
  10452. *v = v2
  10453. }
  10454. case map[int8]int64:
  10455. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, d)
  10456. case *map[int8]int64:
  10457. v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, fastpathCheckNilFalse, true, d)
  10458. if changed2 {
  10459. *v = v2
  10460. }
  10461. case map[int8]float32:
  10462. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, d)
  10463. case *map[int8]float32:
  10464. v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, fastpathCheckNilFalse, true, d)
  10465. if changed2 {
  10466. *v = v2
  10467. }
  10468. case map[int8]float64:
  10469. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, d)
  10470. case *map[int8]float64:
  10471. v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, fastpathCheckNilFalse, true, d)
  10472. if changed2 {
  10473. *v = v2
  10474. }
  10475. case map[int8]bool:
  10476. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, d)
  10477. case *map[int8]bool:
  10478. v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, fastpathCheckNilFalse, true, d)
  10479. if changed2 {
  10480. *v = v2
  10481. }
  10482. case []int16:
  10483. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, d)
  10484. case *[]int16:
  10485. v2, changed2 := fastpathTV.DecSliceInt16V(*v, fastpathCheckNilFalse, true, d)
  10486. if changed2 {
  10487. *v = v2
  10488. }
  10489. case map[int16]interface{}:
  10490. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, d)
  10491. case *map[int16]interface{}:
  10492. v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, fastpathCheckNilFalse, true, d)
  10493. if changed2 {
  10494. *v = v2
  10495. }
  10496. case map[int16]string:
  10497. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, d)
  10498. case *map[int16]string:
  10499. v2, changed2 := fastpathTV.DecMapInt16StringV(*v, fastpathCheckNilFalse, true, d)
  10500. if changed2 {
  10501. *v = v2
  10502. }
  10503. case map[int16]uint:
  10504. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, d)
  10505. case *map[int16]uint:
  10506. v2, changed2 := fastpathTV.DecMapInt16UintV(*v, fastpathCheckNilFalse, true, d)
  10507. if changed2 {
  10508. *v = v2
  10509. }
  10510. case map[int16]uint8:
  10511. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, d)
  10512. case *map[int16]uint8:
  10513. v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, fastpathCheckNilFalse, true, d)
  10514. if changed2 {
  10515. *v = v2
  10516. }
  10517. case map[int16]uint16:
  10518. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, d)
  10519. case *map[int16]uint16:
  10520. v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, fastpathCheckNilFalse, true, d)
  10521. if changed2 {
  10522. *v = v2
  10523. }
  10524. case map[int16]uint32:
  10525. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, d)
  10526. case *map[int16]uint32:
  10527. v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, fastpathCheckNilFalse, true, d)
  10528. if changed2 {
  10529. *v = v2
  10530. }
  10531. case map[int16]uint64:
  10532. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, d)
  10533. case *map[int16]uint64:
  10534. v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, fastpathCheckNilFalse, true, d)
  10535. if changed2 {
  10536. *v = v2
  10537. }
  10538. case map[int16]int:
  10539. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, d)
  10540. case *map[int16]int:
  10541. v2, changed2 := fastpathTV.DecMapInt16IntV(*v, fastpathCheckNilFalse, true, d)
  10542. if changed2 {
  10543. *v = v2
  10544. }
  10545. case map[int16]int8:
  10546. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, d)
  10547. case *map[int16]int8:
  10548. v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, fastpathCheckNilFalse, true, d)
  10549. if changed2 {
  10550. *v = v2
  10551. }
  10552. case map[int16]int16:
  10553. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, d)
  10554. case *map[int16]int16:
  10555. v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, fastpathCheckNilFalse, true, d)
  10556. if changed2 {
  10557. *v = v2
  10558. }
  10559. case map[int16]int32:
  10560. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, d)
  10561. case *map[int16]int32:
  10562. v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, fastpathCheckNilFalse, true, d)
  10563. if changed2 {
  10564. *v = v2
  10565. }
  10566. case map[int16]int64:
  10567. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, d)
  10568. case *map[int16]int64:
  10569. v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, fastpathCheckNilFalse, true, d)
  10570. if changed2 {
  10571. *v = v2
  10572. }
  10573. case map[int16]float32:
  10574. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, d)
  10575. case *map[int16]float32:
  10576. v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, fastpathCheckNilFalse, true, d)
  10577. if changed2 {
  10578. *v = v2
  10579. }
  10580. case map[int16]float64:
  10581. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, d)
  10582. case *map[int16]float64:
  10583. v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, fastpathCheckNilFalse, true, d)
  10584. if changed2 {
  10585. *v = v2
  10586. }
  10587. case map[int16]bool:
  10588. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, d)
  10589. case *map[int16]bool:
  10590. v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, fastpathCheckNilFalse, true, d)
  10591. if changed2 {
  10592. *v = v2
  10593. }
  10594. case []int32:
  10595. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, d)
  10596. case *[]int32:
  10597. v2, changed2 := fastpathTV.DecSliceInt32V(*v, fastpathCheckNilFalse, true, d)
  10598. if changed2 {
  10599. *v = v2
  10600. }
  10601. case map[int32]interface{}:
  10602. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, d)
  10603. case *map[int32]interface{}:
  10604. v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, fastpathCheckNilFalse, true, d)
  10605. if changed2 {
  10606. *v = v2
  10607. }
  10608. case map[int32]string:
  10609. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, d)
  10610. case *map[int32]string:
  10611. v2, changed2 := fastpathTV.DecMapInt32StringV(*v, fastpathCheckNilFalse, true, d)
  10612. if changed2 {
  10613. *v = v2
  10614. }
  10615. case map[int32]uint:
  10616. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, d)
  10617. case *map[int32]uint:
  10618. v2, changed2 := fastpathTV.DecMapInt32UintV(*v, fastpathCheckNilFalse, true, d)
  10619. if changed2 {
  10620. *v = v2
  10621. }
  10622. case map[int32]uint8:
  10623. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, d)
  10624. case *map[int32]uint8:
  10625. v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, fastpathCheckNilFalse, true, d)
  10626. if changed2 {
  10627. *v = v2
  10628. }
  10629. case map[int32]uint16:
  10630. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, d)
  10631. case *map[int32]uint16:
  10632. v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, fastpathCheckNilFalse, true, d)
  10633. if changed2 {
  10634. *v = v2
  10635. }
  10636. case map[int32]uint32:
  10637. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, d)
  10638. case *map[int32]uint32:
  10639. v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, fastpathCheckNilFalse, true, d)
  10640. if changed2 {
  10641. *v = v2
  10642. }
  10643. case map[int32]uint64:
  10644. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, d)
  10645. case *map[int32]uint64:
  10646. v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, fastpathCheckNilFalse, true, d)
  10647. if changed2 {
  10648. *v = v2
  10649. }
  10650. case map[int32]int:
  10651. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, d)
  10652. case *map[int32]int:
  10653. v2, changed2 := fastpathTV.DecMapInt32IntV(*v, fastpathCheckNilFalse, true, d)
  10654. if changed2 {
  10655. *v = v2
  10656. }
  10657. case map[int32]int8:
  10658. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, d)
  10659. case *map[int32]int8:
  10660. v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, fastpathCheckNilFalse, true, d)
  10661. if changed2 {
  10662. *v = v2
  10663. }
  10664. case map[int32]int16:
  10665. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, d)
  10666. case *map[int32]int16:
  10667. v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, fastpathCheckNilFalse, true, d)
  10668. if changed2 {
  10669. *v = v2
  10670. }
  10671. case map[int32]int32:
  10672. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, d)
  10673. case *map[int32]int32:
  10674. v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, fastpathCheckNilFalse, true, d)
  10675. if changed2 {
  10676. *v = v2
  10677. }
  10678. case map[int32]int64:
  10679. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, d)
  10680. case *map[int32]int64:
  10681. v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, fastpathCheckNilFalse, true, d)
  10682. if changed2 {
  10683. *v = v2
  10684. }
  10685. case map[int32]float32:
  10686. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, d)
  10687. case *map[int32]float32:
  10688. v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, fastpathCheckNilFalse, true, d)
  10689. if changed2 {
  10690. *v = v2
  10691. }
  10692. case map[int32]float64:
  10693. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, d)
  10694. case *map[int32]float64:
  10695. v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, fastpathCheckNilFalse, true, d)
  10696. if changed2 {
  10697. *v = v2
  10698. }
  10699. case map[int32]bool:
  10700. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, d)
  10701. case *map[int32]bool:
  10702. v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, fastpathCheckNilFalse, true, d)
  10703. if changed2 {
  10704. *v = v2
  10705. }
  10706. case []int64:
  10707. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, d)
  10708. case *[]int64:
  10709. v2, changed2 := fastpathTV.DecSliceInt64V(*v, fastpathCheckNilFalse, true, d)
  10710. if changed2 {
  10711. *v = v2
  10712. }
  10713. case map[int64]interface{}:
  10714. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, d)
  10715. case *map[int64]interface{}:
  10716. v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, fastpathCheckNilFalse, true, d)
  10717. if changed2 {
  10718. *v = v2
  10719. }
  10720. case map[int64]string:
  10721. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, d)
  10722. case *map[int64]string:
  10723. v2, changed2 := fastpathTV.DecMapInt64StringV(*v, fastpathCheckNilFalse, true, d)
  10724. if changed2 {
  10725. *v = v2
  10726. }
  10727. case map[int64]uint:
  10728. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, d)
  10729. case *map[int64]uint:
  10730. v2, changed2 := fastpathTV.DecMapInt64UintV(*v, fastpathCheckNilFalse, true, d)
  10731. if changed2 {
  10732. *v = v2
  10733. }
  10734. case map[int64]uint8:
  10735. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, d)
  10736. case *map[int64]uint8:
  10737. v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, fastpathCheckNilFalse, true, d)
  10738. if changed2 {
  10739. *v = v2
  10740. }
  10741. case map[int64]uint16:
  10742. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, d)
  10743. case *map[int64]uint16:
  10744. v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, fastpathCheckNilFalse, true, d)
  10745. if changed2 {
  10746. *v = v2
  10747. }
  10748. case map[int64]uint32:
  10749. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, d)
  10750. case *map[int64]uint32:
  10751. v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, fastpathCheckNilFalse, true, d)
  10752. if changed2 {
  10753. *v = v2
  10754. }
  10755. case map[int64]uint64:
  10756. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, d)
  10757. case *map[int64]uint64:
  10758. v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, fastpathCheckNilFalse, true, d)
  10759. if changed2 {
  10760. *v = v2
  10761. }
  10762. case map[int64]int:
  10763. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, d)
  10764. case *map[int64]int:
  10765. v2, changed2 := fastpathTV.DecMapInt64IntV(*v, fastpathCheckNilFalse, true, d)
  10766. if changed2 {
  10767. *v = v2
  10768. }
  10769. case map[int64]int8:
  10770. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, d)
  10771. case *map[int64]int8:
  10772. v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, fastpathCheckNilFalse, true, d)
  10773. if changed2 {
  10774. *v = v2
  10775. }
  10776. case map[int64]int16:
  10777. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, d)
  10778. case *map[int64]int16:
  10779. v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, fastpathCheckNilFalse, true, d)
  10780. if changed2 {
  10781. *v = v2
  10782. }
  10783. case map[int64]int32:
  10784. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, d)
  10785. case *map[int64]int32:
  10786. v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, fastpathCheckNilFalse, true, d)
  10787. if changed2 {
  10788. *v = v2
  10789. }
  10790. case map[int64]int64:
  10791. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, d)
  10792. case *map[int64]int64:
  10793. v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, fastpathCheckNilFalse, true, d)
  10794. if changed2 {
  10795. *v = v2
  10796. }
  10797. case map[int64]float32:
  10798. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, d)
  10799. case *map[int64]float32:
  10800. v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, fastpathCheckNilFalse, true, d)
  10801. if changed2 {
  10802. *v = v2
  10803. }
  10804. case map[int64]float64:
  10805. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, d)
  10806. case *map[int64]float64:
  10807. v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, fastpathCheckNilFalse, true, d)
  10808. if changed2 {
  10809. *v = v2
  10810. }
  10811. case map[int64]bool:
  10812. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, d)
  10813. case *map[int64]bool:
  10814. v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, fastpathCheckNilFalse, true, d)
  10815. if changed2 {
  10816. *v = v2
  10817. }
  10818. case []bool:
  10819. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, d)
  10820. case *[]bool:
  10821. v2, changed2 := fastpathTV.DecSliceBoolV(*v, fastpathCheckNilFalse, true, d)
  10822. if changed2 {
  10823. *v = v2
  10824. }
  10825. case map[bool]interface{}:
  10826. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, d)
  10827. case *map[bool]interface{}:
  10828. v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, fastpathCheckNilFalse, true, d)
  10829. if changed2 {
  10830. *v = v2
  10831. }
  10832. case map[bool]string:
  10833. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, d)
  10834. case *map[bool]string:
  10835. v2, changed2 := fastpathTV.DecMapBoolStringV(*v, fastpathCheckNilFalse, true, d)
  10836. if changed2 {
  10837. *v = v2
  10838. }
  10839. case map[bool]uint:
  10840. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, d)
  10841. case *map[bool]uint:
  10842. v2, changed2 := fastpathTV.DecMapBoolUintV(*v, fastpathCheckNilFalse, true, d)
  10843. if changed2 {
  10844. *v = v2
  10845. }
  10846. case map[bool]uint8:
  10847. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, d)
  10848. case *map[bool]uint8:
  10849. v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, fastpathCheckNilFalse, true, d)
  10850. if changed2 {
  10851. *v = v2
  10852. }
  10853. case map[bool]uint16:
  10854. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, d)
  10855. case *map[bool]uint16:
  10856. v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, fastpathCheckNilFalse, true, d)
  10857. if changed2 {
  10858. *v = v2
  10859. }
  10860. case map[bool]uint32:
  10861. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, d)
  10862. case *map[bool]uint32:
  10863. v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, fastpathCheckNilFalse, true, d)
  10864. if changed2 {
  10865. *v = v2
  10866. }
  10867. case map[bool]uint64:
  10868. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, d)
  10869. case *map[bool]uint64:
  10870. v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, fastpathCheckNilFalse, true, d)
  10871. if changed2 {
  10872. *v = v2
  10873. }
  10874. case map[bool]int:
  10875. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, d)
  10876. case *map[bool]int:
  10877. v2, changed2 := fastpathTV.DecMapBoolIntV(*v, fastpathCheckNilFalse, true, d)
  10878. if changed2 {
  10879. *v = v2
  10880. }
  10881. case map[bool]int8:
  10882. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, d)
  10883. case *map[bool]int8:
  10884. v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, fastpathCheckNilFalse, true, d)
  10885. if changed2 {
  10886. *v = v2
  10887. }
  10888. case map[bool]int16:
  10889. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, d)
  10890. case *map[bool]int16:
  10891. v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, fastpathCheckNilFalse, true, d)
  10892. if changed2 {
  10893. *v = v2
  10894. }
  10895. case map[bool]int32:
  10896. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, d)
  10897. case *map[bool]int32:
  10898. v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, fastpathCheckNilFalse, true, d)
  10899. if changed2 {
  10900. *v = v2
  10901. }
  10902. case map[bool]int64:
  10903. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, d)
  10904. case *map[bool]int64:
  10905. v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, fastpathCheckNilFalse, true, d)
  10906. if changed2 {
  10907. *v = v2
  10908. }
  10909. case map[bool]float32:
  10910. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, d)
  10911. case *map[bool]float32:
  10912. v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, fastpathCheckNilFalse, true, d)
  10913. if changed2 {
  10914. *v = v2
  10915. }
  10916. case map[bool]float64:
  10917. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, d)
  10918. case *map[bool]float64:
  10919. v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, fastpathCheckNilFalse, true, d)
  10920. if changed2 {
  10921. *v = v2
  10922. }
  10923. case map[bool]bool:
  10924. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, d)
  10925. case *map[bool]bool:
  10926. v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, fastpathCheckNilFalse, true, d)
  10927. if changed2 {
  10928. *v = v2
  10929. }
  10930. default:
  10931. return false
  10932. }
  10933. return true
  10934. }
  10935. // -- -- fast path functions
  10936. func (f decFnInfo) fastpathDecSliceIntfR(rv reflect.Value) {
  10937. array := f.seq == seqTypeArray
  10938. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  10939. vp := rv.Addr().Interface().(*[]interface{})
  10940. v, changed := fastpathTV.DecSliceIntfV(*vp, fastpathCheckNilFalse, !array, f.d)
  10941. if changed {
  10942. *vp = v
  10943. }
  10944. } else {
  10945. v := rv.Interface().([]interface{})
  10946. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, f.d)
  10947. }
  10948. }
  10949. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, checkNil bool, d *Decoder) {
  10950. v, changed := f.DecSliceIntfV(*vp, checkNil, true, d)
  10951. if changed {
  10952. *vp = v
  10953. }
  10954. }
  10955. func (_ fastpathT) DecSliceIntfV(v []interface{}, checkNil bool, canChange bool,
  10956. d *Decoder) (_ []interface{}, changed bool) {
  10957. dd := d.d
  10958. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  10959. if checkNil && dd.TryDecodeAsNil() {
  10960. if v != nil {
  10961. changed = true
  10962. }
  10963. return nil, changed
  10964. }
  10965. slh, containerLenS := d.decSliceHelperStart()
  10966. if canChange && v == nil {
  10967. if containerLenS <= 0 {
  10968. v = []interface{}{}
  10969. } else {
  10970. v = make([]interface{}, containerLenS, containerLenS)
  10971. }
  10972. changed = true
  10973. }
  10974. if containerLenS == 0 {
  10975. if canChange && len(v) != 0 {
  10976. v = v[:0]
  10977. changed = true
  10978. }
  10979. return v, changed
  10980. }
  10981. // for j := 0; j < containerLenS; j++ {
  10982. if containerLenS > 0 {
  10983. decLen := containerLenS
  10984. if containerLenS > cap(v) {
  10985. if canChange {
  10986. s := make([]interface{}, containerLenS, containerLenS)
  10987. // copy(s, v[:cap(v)])
  10988. v = s
  10989. changed = true
  10990. } else {
  10991. d.arrayCannotExpand(len(v), containerLenS)
  10992. decLen = len(v)
  10993. }
  10994. } else if containerLenS != len(v) {
  10995. v = v[:containerLenS]
  10996. changed = true
  10997. }
  10998. // all checks done. cannot go past len.
  10999. j := 0
  11000. for ; j < decLen; j++ {
  11001. d.decode(&v[j])
  11002. }
  11003. if !canChange {
  11004. for ; j < containerLenS; j++ {
  11005. d.swallow()
  11006. }
  11007. }
  11008. } else {
  11009. j := 0
  11010. for ; !dd.CheckBreak(); j++ {
  11011. if j >= len(v) {
  11012. if canChange {
  11013. v = append(v, nil)
  11014. changed = true
  11015. } else {
  11016. d.arrayCannotExpand(len(v), j+1)
  11017. }
  11018. }
  11019. if j > 0 {
  11020. slh.Sep(j)
  11021. }
  11022. if j < len(v) { // all checks done. cannot go past len.
  11023. d.decode(&v[j])
  11024. } else {
  11025. d.swallow()
  11026. }
  11027. }
  11028. slh.End()
  11029. }
  11030. return v, changed
  11031. }
  11032. func (f decFnInfo) fastpathDecSliceStringR(rv reflect.Value) {
  11033. array := f.seq == seqTypeArray
  11034. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11035. vp := rv.Addr().Interface().(*[]string)
  11036. v, changed := fastpathTV.DecSliceStringV(*vp, fastpathCheckNilFalse, !array, f.d)
  11037. if changed {
  11038. *vp = v
  11039. }
  11040. } else {
  11041. v := rv.Interface().([]string)
  11042. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, f.d)
  11043. }
  11044. }
  11045. func (f fastpathT) DecSliceStringX(vp *[]string, checkNil bool, d *Decoder) {
  11046. v, changed := f.DecSliceStringV(*vp, checkNil, true, d)
  11047. if changed {
  11048. *vp = v
  11049. }
  11050. }
  11051. func (_ fastpathT) DecSliceStringV(v []string, checkNil bool, canChange bool,
  11052. d *Decoder) (_ []string, changed bool) {
  11053. dd := d.d
  11054. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11055. if checkNil && dd.TryDecodeAsNil() {
  11056. if v != nil {
  11057. changed = true
  11058. }
  11059. return nil, changed
  11060. }
  11061. slh, containerLenS := d.decSliceHelperStart()
  11062. if canChange && v == nil {
  11063. if containerLenS <= 0 {
  11064. v = []string{}
  11065. } else {
  11066. v = make([]string, containerLenS, containerLenS)
  11067. }
  11068. changed = true
  11069. }
  11070. if containerLenS == 0 {
  11071. if canChange && len(v) != 0 {
  11072. v = v[:0]
  11073. changed = true
  11074. }
  11075. return v, changed
  11076. }
  11077. // for j := 0; j < containerLenS; j++ {
  11078. if containerLenS > 0 {
  11079. decLen := containerLenS
  11080. if containerLenS > cap(v) {
  11081. if canChange {
  11082. s := make([]string, containerLenS, containerLenS)
  11083. // copy(s, v[:cap(v)])
  11084. v = s
  11085. changed = true
  11086. } else {
  11087. d.arrayCannotExpand(len(v), containerLenS)
  11088. decLen = len(v)
  11089. }
  11090. } else if containerLenS != len(v) {
  11091. v = v[:containerLenS]
  11092. changed = true
  11093. }
  11094. // all checks done. cannot go past len.
  11095. j := 0
  11096. for ; j < decLen; j++ {
  11097. v[j] = dd.DecodeString()
  11098. }
  11099. if !canChange {
  11100. for ; j < containerLenS; j++ {
  11101. d.swallow()
  11102. }
  11103. }
  11104. } else {
  11105. j := 0
  11106. for ; !dd.CheckBreak(); j++ {
  11107. if j >= len(v) {
  11108. if canChange {
  11109. v = append(v, "")
  11110. changed = true
  11111. } else {
  11112. d.arrayCannotExpand(len(v), j+1)
  11113. }
  11114. }
  11115. if j > 0 {
  11116. slh.Sep(j)
  11117. }
  11118. if j < len(v) { // all checks done. cannot go past len.
  11119. v[j] = dd.DecodeString()
  11120. } else {
  11121. d.swallow()
  11122. }
  11123. }
  11124. slh.End()
  11125. }
  11126. return v, changed
  11127. }
  11128. func (f decFnInfo) fastpathDecSliceFloat32R(rv reflect.Value) {
  11129. array := f.seq == seqTypeArray
  11130. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11131. vp := rv.Addr().Interface().(*[]float32)
  11132. v, changed := fastpathTV.DecSliceFloat32V(*vp, fastpathCheckNilFalse, !array, f.d)
  11133. if changed {
  11134. *vp = v
  11135. }
  11136. } else {
  11137. v := rv.Interface().([]float32)
  11138. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, f.d)
  11139. }
  11140. }
  11141. func (f fastpathT) DecSliceFloat32X(vp *[]float32, checkNil bool, d *Decoder) {
  11142. v, changed := f.DecSliceFloat32V(*vp, checkNil, true, d)
  11143. if changed {
  11144. *vp = v
  11145. }
  11146. }
  11147. func (_ fastpathT) DecSliceFloat32V(v []float32, checkNil bool, canChange bool,
  11148. d *Decoder) (_ []float32, changed bool) {
  11149. dd := d.d
  11150. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11151. if checkNil && dd.TryDecodeAsNil() {
  11152. if v != nil {
  11153. changed = true
  11154. }
  11155. return nil, changed
  11156. }
  11157. slh, containerLenS := d.decSliceHelperStart()
  11158. if canChange && v == nil {
  11159. if containerLenS <= 0 {
  11160. v = []float32{}
  11161. } else {
  11162. v = make([]float32, containerLenS, containerLenS)
  11163. }
  11164. changed = true
  11165. }
  11166. if containerLenS == 0 {
  11167. if canChange && len(v) != 0 {
  11168. v = v[:0]
  11169. changed = true
  11170. }
  11171. return v, changed
  11172. }
  11173. // for j := 0; j < containerLenS; j++ {
  11174. if containerLenS > 0 {
  11175. decLen := containerLenS
  11176. if containerLenS > cap(v) {
  11177. if canChange {
  11178. s := make([]float32, containerLenS, containerLenS)
  11179. // copy(s, v[:cap(v)])
  11180. v = s
  11181. changed = true
  11182. } else {
  11183. d.arrayCannotExpand(len(v), containerLenS)
  11184. decLen = len(v)
  11185. }
  11186. } else if containerLenS != len(v) {
  11187. v = v[:containerLenS]
  11188. changed = true
  11189. }
  11190. // all checks done. cannot go past len.
  11191. j := 0
  11192. for ; j < decLen; j++ {
  11193. v[j] = float32(dd.DecodeFloat(true))
  11194. }
  11195. if !canChange {
  11196. for ; j < containerLenS; j++ {
  11197. d.swallow()
  11198. }
  11199. }
  11200. } else {
  11201. j := 0
  11202. for ; !dd.CheckBreak(); j++ {
  11203. if j >= len(v) {
  11204. if canChange {
  11205. v = append(v, 0)
  11206. changed = true
  11207. } else {
  11208. d.arrayCannotExpand(len(v), j+1)
  11209. }
  11210. }
  11211. if j > 0 {
  11212. slh.Sep(j)
  11213. }
  11214. if j < len(v) { // all checks done. cannot go past len.
  11215. v[j] = float32(dd.DecodeFloat(true))
  11216. } else {
  11217. d.swallow()
  11218. }
  11219. }
  11220. slh.End()
  11221. }
  11222. return v, changed
  11223. }
  11224. func (f decFnInfo) fastpathDecSliceFloat64R(rv reflect.Value) {
  11225. array := f.seq == seqTypeArray
  11226. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11227. vp := rv.Addr().Interface().(*[]float64)
  11228. v, changed := fastpathTV.DecSliceFloat64V(*vp, fastpathCheckNilFalse, !array, f.d)
  11229. if changed {
  11230. *vp = v
  11231. }
  11232. } else {
  11233. v := rv.Interface().([]float64)
  11234. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, f.d)
  11235. }
  11236. }
  11237. func (f fastpathT) DecSliceFloat64X(vp *[]float64, checkNil bool, d *Decoder) {
  11238. v, changed := f.DecSliceFloat64V(*vp, checkNil, true, d)
  11239. if changed {
  11240. *vp = v
  11241. }
  11242. }
  11243. func (_ fastpathT) DecSliceFloat64V(v []float64, checkNil bool, canChange bool,
  11244. d *Decoder) (_ []float64, changed bool) {
  11245. dd := d.d
  11246. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11247. if checkNil && dd.TryDecodeAsNil() {
  11248. if v != nil {
  11249. changed = true
  11250. }
  11251. return nil, changed
  11252. }
  11253. slh, containerLenS := d.decSliceHelperStart()
  11254. if canChange && v == nil {
  11255. if containerLenS <= 0 {
  11256. v = []float64{}
  11257. } else {
  11258. v = make([]float64, containerLenS, containerLenS)
  11259. }
  11260. changed = true
  11261. }
  11262. if containerLenS == 0 {
  11263. if canChange && len(v) != 0 {
  11264. v = v[:0]
  11265. changed = true
  11266. }
  11267. return v, changed
  11268. }
  11269. // for j := 0; j < containerLenS; j++ {
  11270. if containerLenS > 0 {
  11271. decLen := containerLenS
  11272. if containerLenS > cap(v) {
  11273. if canChange {
  11274. s := make([]float64, containerLenS, containerLenS)
  11275. // copy(s, v[:cap(v)])
  11276. v = s
  11277. changed = true
  11278. } else {
  11279. d.arrayCannotExpand(len(v), containerLenS)
  11280. decLen = len(v)
  11281. }
  11282. } else if containerLenS != len(v) {
  11283. v = v[:containerLenS]
  11284. changed = true
  11285. }
  11286. // all checks done. cannot go past len.
  11287. j := 0
  11288. for ; j < decLen; j++ {
  11289. v[j] = dd.DecodeFloat(false)
  11290. }
  11291. if !canChange {
  11292. for ; j < containerLenS; j++ {
  11293. d.swallow()
  11294. }
  11295. }
  11296. } else {
  11297. j := 0
  11298. for ; !dd.CheckBreak(); j++ {
  11299. if j >= len(v) {
  11300. if canChange {
  11301. v = append(v, 0)
  11302. changed = true
  11303. } else {
  11304. d.arrayCannotExpand(len(v), j+1)
  11305. }
  11306. }
  11307. if j > 0 {
  11308. slh.Sep(j)
  11309. }
  11310. if j < len(v) { // all checks done. cannot go past len.
  11311. v[j] = dd.DecodeFloat(false)
  11312. } else {
  11313. d.swallow()
  11314. }
  11315. }
  11316. slh.End()
  11317. }
  11318. return v, changed
  11319. }
  11320. func (f decFnInfo) fastpathDecSliceUintR(rv reflect.Value) {
  11321. array := f.seq == seqTypeArray
  11322. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11323. vp := rv.Addr().Interface().(*[]uint)
  11324. v, changed := fastpathTV.DecSliceUintV(*vp, fastpathCheckNilFalse, !array, f.d)
  11325. if changed {
  11326. *vp = v
  11327. }
  11328. } else {
  11329. v := rv.Interface().([]uint)
  11330. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, f.d)
  11331. }
  11332. }
  11333. func (f fastpathT) DecSliceUintX(vp *[]uint, checkNil bool, d *Decoder) {
  11334. v, changed := f.DecSliceUintV(*vp, checkNil, true, d)
  11335. if changed {
  11336. *vp = v
  11337. }
  11338. }
  11339. func (_ fastpathT) DecSliceUintV(v []uint, checkNil bool, canChange bool,
  11340. d *Decoder) (_ []uint, changed bool) {
  11341. dd := d.d
  11342. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11343. if checkNil && dd.TryDecodeAsNil() {
  11344. if v != nil {
  11345. changed = true
  11346. }
  11347. return nil, changed
  11348. }
  11349. slh, containerLenS := d.decSliceHelperStart()
  11350. if canChange && v == nil {
  11351. if containerLenS <= 0 {
  11352. v = []uint{}
  11353. } else {
  11354. v = make([]uint, containerLenS, containerLenS)
  11355. }
  11356. changed = true
  11357. }
  11358. if containerLenS == 0 {
  11359. if canChange && len(v) != 0 {
  11360. v = v[:0]
  11361. changed = true
  11362. }
  11363. return v, changed
  11364. }
  11365. // for j := 0; j < containerLenS; j++ {
  11366. if containerLenS > 0 {
  11367. decLen := containerLenS
  11368. if containerLenS > cap(v) {
  11369. if canChange {
  11370. s := make([]uint, containerLenS, containerLenS)
  11371. // copy(s, v[:cap(v)])
  11372. v = s
  11373. changed = true
  11374. } else {
  11375. d.arrayCannotExpand(len(v), containerLenS)
  11376. decLen = len(v)
  11377. }
  11378. } else if containerLenS != len(v) {
  11379. v = v[:containerLenS]
  11380. changed = true
  11381. }
  11382. // all checks done. cannot go past len.
  11383. j := 0
  11384. for ; j < decLen; j++ {
  11385. v[j] = uint(dd.DecodeUint(uintBitsize))
  11386. }
  11387. if !canChange {
  11388. for ; j < containerLenS; j++ {
  11389. d.swallow()
  11390. }
  11391. }
  11392. } else {
  11393. j := 0
  11394. for ; !dd.CheckBreak(); j++ {
  11395. if j >= len(v) {
  11396. if canChange {
  11397. v = append(v, 0)
  11398. changed = true
  11399. } else {
  11400. d.arrayCannotExpand(len(v), j+1)
  11401. }
  11402. }
  11403. if j > 0 {
  11404. slh.Sep(j)
  11405. }
  11406. if j < len(v) { // all checks done. cannot go past len.
  11407. v[j] = uint(dd.DecodeUint(uintBitsize))
  11408. } else {
  11409. d.swallow()
  11410. }
  11411. }
  11412. slh.End()
  11413. }
  11414. return v, changed
  11415. }
  11416. func (f decFnInfo) fastpathDecSliceUint16R(rv reflect.Value) {
  11417. array := f.seq == seqTypeArray
  11418. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11419. vp := rv.Addr().Interface().(*[]uint16)
  11420. v, changed := fastpathTV.DecSliceUint16V(*vp, fastpathCheckNilFalse, !array, f.d)
  11421. if changed {
  11422. *vp = v
  11423. }
  11424. } else {
  11425. v := rv.Interface().([]uint16)
  11426. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, f.d)
  11427. }
  11428. }
  11429. func (f fastpathT) DecSliceUint16X(vp *[]uint16, checkNil bool, d *Decoder) {
  11430. v, changed := f.DecSliceUint16V(*vp, checkNil, true, d)
  11431. if changed {
  11432. *vp = v
  11433. }
  11434. }
  11435. func (_ fastpathT) DecSliceUint16V(v []uint16, checkNil bool, canChange bool,
  11436. d *Decoder) (_ []uint16, changed bool) {
  11437. dd := d.d
  11438. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11439. if checkNil && dd.TryDecodeAsNil() {
  11440. if v != nil {
  11441. changed = true
  11442. }
  11443. return nil, changed
  11444. }
  11445. slh, containerLenS := d.decSliceHelperStart()
  11446. if canChange && v == nil {
  11447. if containerLenS <= 0 {
  11448. v = []uint16{}
  11449. } else {
  11450. v = make([]uint16, containerLenS, containerLenS)
  11451. }
  11452. changed = true
  11453. }
  11454. if containerLenS == 0 {
  11455. if canChange && len(v) != 0 {
  11456. v = v[:0]
  11457. changed = true
  11458. }
  11459. return v, changed
  11460. }
  11461. // for j := 0; j < containerLenS; j++ {
  11462. if containerLenS > 0 {
  11463. decLen := containerLenS
  11464. if containerLenS > cap(v) {
  11465. if canChange {
  11466. s := make([]uint16, containerLenS, containerLenS)
  11467. // copy(s, v[:cap(v)])
  11468. v = s
  11469. changed = true
  11470. } else {
  11471. d.arrayCannotExpand(len(v), containerLenS)
  11472. decLen = len(v)
  11473. }
  11474. } else if containerLenS != len(v) {
  11475. v = v[:containerLenS]
  11476. changed = true
  11477. }
  11478. // all checks done. cannot go past len.
  11479. j := 0
  11480. for ; j < decLen; j++ {
  11481. v[j] = uint16(dd.DecodeUint(16))
  11482. }
  11483. if !canChange {
  11484. for ; j < containerLenS; j++ {
  11485. d.swallow()
  11486. }
  11487. }
  11488. } else {
  11489. j := 0
  11490. for ; !dd.CheckBreak(); j++ {
  11491. if j >= len(v) {
  11492. if canChange {
  11493. v = append(v, 0)
  11494. changed = true
  11495. } else {
  11496. d.arrayCannotExpand(len(v), j+1)
  11497. }
  11498. }
  11499. if j > 0 {
  11500. slh.Sep(j)
  11501. }
  11502. if j < len(v) { // all checks done. cannot go past len.
  11503. v[j] = uint16(dd.DecodeUint(16))
  11504. } else {
  11505. d.swallow()
  11506. }
  11507. }
  11508. slh.End()
  11509. }
  11510. return v, changed
  11511. }
  11512. func (f decFnInfo) fastpathDecSliceUint32R(rv reflect.Value) {
  11513. array := f.seq == seqTypeArray
  11514. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11515. vp := rv.Addr().Interface().(*[]uint32)
  11516. v, changed := fastpathTV.DecSliceUint32V(*vp, fastpathCheckNilFalse, !array, f.d)
  11517. if changed {
  11518. *vp = v
  11519. }
  11520. } else {
  11521. v := rv.Interface().([]uint32)
  11522. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, f.d)
  11523. }
  11524. }
  11525. func (f fastpathT) DecSliceUint32X(vp *[]uint32, checkNil bool, d *Decoder) {
  11526. v, changed := f.DecSliceUint32V(*vp, checkNil, true, d)
  11527. if changed {
  11528. *vp = v
  11529. }
  11530. }
  11531. func (_ fastpathT) DecSliceUint32V(v []uint32, checkNil bool, canChange bool,
  11532. d *Decoder) (_ []uint32, changed bool) {
  11533. dd := d.d
  11534. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11535. if checkNil && dd.TryDecodeAsNil() {
  11536. if v != nil {
  11537. changed = true
  11538. }
  11539. return nil, changed
  11540. }
  11541. slh, containerLenS := d.decSliceHelperStart()
  11542. if canChange && v == nil {
  11543. if containerLenS <= 0 {
  11544. v = []uint32{}
  11545. } else {
  11546. v = make([]uint32, containerLenS, containerLenS)
  11547. }
  11548. changed = true
  11549. }
  11550. if containerLenS == 0 {
  11551. if canChange && len(v) != 0 {
  11552. v = v[:0]
  11553. changed = true
  11554. }
  11555. return v, changed
  11556. }
  11557. // for j := 0; j < containerLenS; j++ {
  11558. if containerLenS > 0 {
  11559. decLen := containerLenS
  11560. if containerLenS > cap(v) {
  11561. if canChange {
  11562. s := make([]uint32, containerLenS, containerLenS)
  11563. // copy(s, v[:cap(v)])
  11564. v = s
  11565. changed = true
  11566. } else {
  11567. d.arrayCannotExpand(len(v), containerLenS)
  11568. decLen = len(v)
  11569. }
  11570. } else if containerLenS != len(v) {
  11571. v = v[:containerLenS]
  11572. changed = true
  11573. }
  11574. // all checks done. cannot go past len.
  11575. j := 0
  11576. for ; j < decLen; j++ {
  11577. v[j] = uint32(dd.DecodeUint(32))
  11578. }
  11579. if !canChange {
  11580. for ; j < containerLenS; j++ {
  11581. d.swallow()
  11582. }
  11583. }
  11584. } else {
  11585. j := 0
  11586. for ; !dd.CheckBreak(); j++ {
  11587. if j >= len(v) {
  11588. if canChange {
  11589. v = append(v, 0)
  11590. changed = true
  11591. } else {
  11592. d.arrayCannotExpand(len(v), j+1)
  11593. }
  11594. }
  11595. if j > 0 {
  11596. slh.Sep(j)
  11597. }
  11598. if j < len(v) { // all checks done. cannot go past len.
  11599. v[j] = uint32(dd.DecodeUint(32))
  11600. } else {
  11601. d.swallow()
  11602. }
  11603. }
  11604. slh.End()
  11605. }
  11606. return v, changed
  11607. }
  11608. func (f decFnInfo) fastpathDecSliceUint64R(rv reflect.Value) {
  11609. array := f.seq == seqTypeArray
  11610. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11611. vp := rv.Addr().Interface().(*[]uint64)
  11612. v, changed := fastpathTV.DecSliceUint64V(*vp, fastpathCheckNilFalse, !array, f.d)
  11613. if changed {
  11614. *vp = v
  11615. }
  11616. } else {
  11617. v := rv.Interface().([]uint64)
  11618. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, f.d)
  11619. }
  11620. }
  11621. func (f fastpathT) DecSliceUint64X(vp *[]uint64, checkNil bool, d *Decoder) {
  11622. v, changed := f.DecSliceUint64V(*vp, checkNil, true, d)
  11623. if changed {
  11624. *vp = v
  11625. }
  11626. }
  11627. func (_ fastpathT) DecSliceUint64V(v []uint64, checkNil bool, canChange bool,
  11628. d *Decoder) (_ []uint64, changed bool) {
  11629. dd := d.d
  11630. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11631. if checkNil && dd.TryDecodeAsNil() {
  11632. if v != nil {
  11633. changed = true
  11634. }
  11635. return nil, changed
  11636. }
  11637. slh, containerLenS := d.decSliceHelperStart()
  11638. if canChange && v == nil {
  11639. if containerLenS <= 0 {
  11640. v = []uint64{}
  11641. } else {
  11642. v = make([]uint64, containerLenS, containerLenS)
  11643. }
  11644. changed = true
  11645. }
  11646. if containerLenS == 0 {
  11647. if canChange && len(v) != 0 {
  11648. v = v[:0]
  11649. changed = true
  11650. }
  11651. return v, changed
  11652. }
  11653. // for j := 0; j < containerLenS; j++ {
  11654. if containerLenS > 0 {
  11655. decLen := containerLenS
  11656. if containerLenS > cap(v) {
  11657. if canChange {
  11658. s := make([]uint64, containerLenS, containerLenS)
  11659. // copy(s, v[:cap(v)])
  11660. v = s
  11661. changed = true
  11662. } else {
  11663. d.arrayCannotExpand(len(v), containerLenS)
  11664. decLen = len(v)
  11665. }
  11666. } else if containerLenS != len(v) {
  11667. v = v[:containerLenS]
  11668. changed = true
  11669. }
  11670. // all checks done. cannot go past len.
  11671. j := 0
  11672. for ; j < decLen; j++ {
  11673. v[j] = dd.DecodeUint(64)
  11674. }
  11675. if !canChange {
  11676. for ; j < containerLenS; j++ {
  11677. d.swallow()
  11678. }
  11679. }
  11680. } else {
  11681. j := 0
  11682. for ; !dd.CheckBreak(); j++ {
  11683. if j >= len(v) {
  11684. if canChange {
  11685. v = append(v, 0)
  11686. changed = true
  11687. } else {
  11688. d.arrayCannotExpand(len(v), j+1)
  11689. }
  11690. }
  11691. if j > 0 {
  11692. slh.Sep(j)
  11693. }
  11694. if j < len(v) { // all checks done. cannot go past len.
  11695. v[j] = dd.DecodeUint(64)
  11696. } else {
  11697. d.swallow()
  11698. }
  11699. }
  11700. slh.End()
  11701. }
  11702. return v, changed
  11703. }
  11704. func (f decFnInfo) fastpathDecSliceIntR(rv reflect.Value) {
  11705. array := f.seq == seqTypeArray
  11706. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11707. vp := rv.Addr().Interface().(*[]int)
  11708. v, changed := fastpathTV.DecSliceIntV(*vp, fastpathCheckNilFalse, !array, f.d)
  11709. if changed {
  11710. *vp = v
  11711. }
  11712. } else {
  11713. v := rv.Interface().([]int)
  11714. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, f.d)
  11715. }
  11716. }
  11717. func (f fastpathT) DecSliceIntX(vp *[]int, checkNil bool, d *Decoder) {
  11718. v, changed := f.DecSliceIntV(*vp, checkNil, true, d)
  11719. if changed {
  11720. *vp = v
  11721. }
  11722. }
  11723. func (_ fastpathT) DecSliceIntV(v []int, checkNil bool, canChange bool,
  11724. d *Decoder) (_ []int, changed bool) {
  11725. dd := d.d
  11726. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11727. if checkNil && dd.TryDecodeAsNil() {
  11728. if v != nil {
  11729. changed = true
  11730. }
  11731. return nil, changed
  11732. }
  11733. slh, containerLenS := d.decSliceHelperStart()
  11734. if canChange && v == nil {
  11735. if containerLenS <= 0 {
  11736. v = []int{}
  11737. } else {
  11738. v = make([]int, containerLenS, containerLenS)
  11739. }
  11740. changed = true
  11741. }
  11742. if containerLenS == 0 {
  11743. if canChange && len(v) != 0 {
  11744. v = v[:0]
  11745. changed = true
  11746. }
  11747. return v, changed
  11748. }
  11749. // for j := 0; j < containerLenS; j++ {
  11750. if containerLenS > 0 {
  11751. decLen := containerLenS
  11752. if containerLenS > cap(v) {
  11753. if canChange {
  11754. s := make([]int, containerLenS, containerLenS)
  11755. // copy(s, v[:cap(v)])
  11756. v = s
  11757. changed = true
  11758. } else {
  11759. d.arrayCannotExpand(len(v), containerLenS)
  11760. decLen = len(v)
  11761. }
  11762. } else if containerLenS != len(v) {
  11763. v = v[:containerLenS]
  11764. changed = true
  11765. }
  11766. // all checks done. cannot go past len.
  11767. j := 0
  11768. for ; j < decLen; j++ {
  11769. v[j] = int(dd.DecodeInt(intBitsize))
  11770. }
  11771. if !canChange {
  11772. for ; j < containerLenS; j++ {
  11773. d.swallow()
  11774. }
  11775. }
  11776. } else {
  11777. j := 0
  11778. for ; !dd.CheckBreak(); j++ {
  11779. if j >= len(v) {
  11780. if canChange {
  11781. v = append(v, 0)
  11782. changed = true
  11783. } else {
  11784. d.arrayCannotExpand(len(v), j+1)
  11785. }
  11786. }
  11787. if j > 0 {
  11788. slh.Sep(j)
  11789. }
  11790. if j < len(v) { // all checks done. cannot go past len.
  11791. v[j] = int(dd.DecodeInt(intBitsize))
  11792. } else {
  11793. d.swallow()
  11794. }
  11795. }
  11796. slh.End()
  11797. }
  11798. return v, changed
  11799. }
  11800. func (f decFnInfo) fastpathDecSliceInt8R(rv reflect.Value) {
  11801. array := f.seq == seqTypeArray
  11802. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11803. vp := rv.Addr().Interface().(*[]int8)
  11804. v, changed := fastpathTV.DecSliceInt8V(*vp, fastpathCheckNilFalse, !array, f.d)
  11805. if changed {
  11806. *vp = v
  11807. }
  11808. } else {
  11809. v := rv.Interface().([]int8)
  11810. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, f.d)
  11811. }
  11812. }
  11813. func (f fastpathT) DecSliceInt8X(vp *[]int8, checkNil bool, d *Decoder) {
  11814. v, changed := f.DecSliceInt8V(*vp, checkNil, true, d)
  11815. if changed {
  11816. *vp = v
  11817. }
  11818. }
  11819. func (_ fastpathT) DecSliceInt8V(v []int8, checkNil bool, canChange bool,
  11820. d *Decoder) (_ []int8, changed bool) {
  11821. dd := d.d
  11822. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11823. if checkNil && dd.TryDecodeAsNil() {
  11824. if v != nil {
  11825. changed = true
  11826. }
  11827. return nil, changed
  11828. }
  11829. slh, containerLenS := d.decSliceHelperStart()
  11830. if canChange && v == nil {
  11831. if containerLenS <= 0 {
  11832. v = []int8{}
  11833. } else {
  11834. v = make([]int8, containerLenS, containerLenS)
  11835. }
  11836. changed = true
  11837. }
  11838. if containerLenS == 0 {
  11839. if canChange && len(v) != 0 {
  11840. v = v[:0]
  11841. changed = true
  11842. }
  11843. return v, changed
  11844. }
  11845. // for j := 0; j < containerLenS; j++ {
  11846. if containerLenS > 0 {
  11847. decLen := containerLenS
  11848. if containerLenS > cap(v) {
  11849. if canChange {
  11850. s := make([]int8, containerLenS, containerLenS)
  11851. // copy(s, v[:cap(v)])
  11852. v = s
  11853. changed = true
  11854. } else {
  11855. d.arrayCannotExpand(len(v), containerLenS)
  11856. decLen = len(v)
  11857. }
  11858. } else if containerLenS != len(v) {
  11859. v = v[:containerLenS]
  11860. changed = true
  11861. }
  11862. // all checks done. cannot go past len.
  11863. j := 0
  11864. for ; j < decLen; j++ {
  11865. v[j] = int8(dd.DecodeInt(8))
  11866. }
  11867. if !canChange {
  11868. for ; j < containerLenS; j++ {
  11869. d.swallow()
  11870. }
  11871. }
  11872. } else {
  11873. j := 0
  11874. for ; !dd.CheckBreak(); j++ {
  11875. if j >= len(v) {
  11876. if canChange {
  11877. v = append(v, 0)
  11878. changed = true
  11879. } else {
  11880. d.arrayCannotExpand(len(v), j+1)
  11881. }
  11882. }
  11883. if j > 0 {
  11884. slh.Sep(j)
  11885. }
  11886. if j < len(v) { // all checks done. cannot go past len.
  11887. v[j] = int8(dd.DecodeInt(8))
  11888. } else {
  11889. d.swallow()
  11890. }
  11891. }
  11892. slh.End()
  11893. }
  11894. return v, changed
  11895. }
  11896. func (f decFnInfo) fastpathDecSliceInt16R(rv reflect.Value) {
  11897. array := f.seq == seqTypeArray
  11898. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11899. vp := rv.Addr().Interface().(*[]int16)
  11900. v, changed := fastpathTV.DecSliceInt16V(*vp, fastpathCheckNilFalse, !array, f.d)
  11901. if changed {
  11902. *vp = v
  11903. }
  11904. } else {
  11905. v := rv.Interface().([]int16)
  11906. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, f.d)
  11907. }
  11908. }
  11909. func (f fastpathT) DecSliceInt16X(vp *[]int16, checkNil bool, d *Decoder) {
  11910. v, changed := f.DecSliceInt16V(*vp, checkNil, true, d)
  11911. if changed {
  11912. *vp = v
  11913. }
  11914. }
  11915. func (_ fastpathT) DecSliceInt16V(v []int16, checkNil bool, canChange bool,
  11916. d *Decoder) (_ []int16, changed bool) {
  11917. dd := d.d
  11918. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  11919. if checkNil && dd.TryDecodeAsNil() {
  11920. if v != nil {
  11921. changed = true
  11922. }
  11923. return nil, changed
  11924. }
  11925. slh, containerLenS := d.decSliceHelperStart()
  11926. if canChange && v == nil {
  11927. if containerLenS <= 0 {
  11928. v = []int16{}
  11929. } else {
  11930. v = make([]int16, containerLenS, containerLenS)
  11931. }
  11932. changed = true
  11933. }
  11934. if containerLenS == 0 {
  11935. if canChange && len(v) != 0 {
  11936. v = v[:0]
  11937. changed = true
  11938. }
  11939. return v, changed
  11940. }
  11941. // for j := 0; j < containerLenS; j++ {
  11942. if containerLenS > 0 {
  11943. decLen := containerLenS
  11944. if containerLenS > cap(v) {
  11945. if canChange {
  11946. s := make([]int16, containerLenS, containerLenS)
  11947. // copy(s, v[:cap(v)])
  11948. v = s
  11949. changed = true
  11950. } else {
  11951. d.arrayCannotExpand(len(v), containerLenS)
  11952. decLen = len(v)
  11953. }
  11954. } else if containerLenS != len(v) {
  11955. v = v[:containerLenS]
  11956. changed = true
  11957. }
  11958. // all checks done. cannot go past len.
  11959. j := 0
  11960. for ; j < decLen; j++ {
  11961. v[j] = int16(dd.DecodeInt(16))
  11962. }
  11963. if !canChange {
  11964. for ; j < containerLenS; j++ {
  11965. d.swallow()
  11966. }
  11967. }
  11968. } else {
  11969. j := 0
  11970. for ; !dd.CheckBreak(); j++ {
  11971. if j >= len(v) {
  11972. if canChange {
  11973. v = append(v, 0)
  11974. changed = true
  11975. } else {
  11976. d.arrayCannotExpand(len(v), j+1)
  11977. }
  11978. }
  11979. if j > 0 {
  11980. slh.Sep(j)
  11981. }
  11982. if j < len(v) { // all checks done. cannot go past len.
  11983. v[j] = int16(dd.DecodeInt(16))
  11984. } else {
  11985. d.swallow()
  11986. }
  11987. }
  11988. slh.End()
  11989. }
  11990. return v, changed
  11991. }
  11992. func (f decFnInfo) fastpathDecSliceInt32R(rv reflect.Value) {
  11993. array := f.seq == seqTypeArray
  11994. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  11995. vp := rv.Addr().Interface().(*[]int32)
  11996. v, changed := fastpathTV.DecSliceInt32V(*vp, fastpathCheckNilFalse, !array, f.d)
  11997. if changed {
  11998. *vp = v
  11999. }
  12000. } else {
  12001. v := rv.Interface().([]int32)
  12002. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, f.d)
  12003. }
  12004. }
  12005. func (f fastpathT) DecSliceInt32X(vp *[]int32, checkNil bool, d *Decoder) {
  12006. v, changed := f.DecSliceInt32V(*vp, checkNil, true, d)
  12007. if changed {
  12008. *vp = v
  12009. }
  12010. }
  12011. func (_ fastpathT) DecSliceInt32V(v []int32, checkNil bool, canChange bool,
  12012. d *Decoder) (_ []int32, changed bool) {
  12013. dd := d.d
  12014. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  12015. if checkNil && dd.TryDecodeAsNil() {
  12016. if v != nil {
  12017. changed = true
  12018. }
  12019. return nil, changed
  12020. }
  12021. slh, containerLenS := d.decSliceHelperStart()
  12022. if canChange && v == nil {
  12023. if containerLenS <= 0 {
  12024. v = []int32{}
  12025. } else {
  12026. v = make([]int32, containerLenS, containerLenS)
  12027. }
  12028. changed = true
  12029. }
  12030. if containerLenS == 0 {
  12031. if canChange && len(v) != 0 {
  12032. v = v[:0]
  12033. changed = true
  12034. }
  12035. return v, changed
  12036. }
  12037. // for j := 0; j < containerLenS; j++ {
  12038. if containerLenS > 0 {
  12039. decLen := containerLenS
  12040. if containerLenS > cap(v) {
  12041. if canChange {
  12042. s := make([]int32, containerLenS, containerLenS)
  12043. // copy(s, v[:cap(v)])
  12044. v = s
  12045. changed = true
  12046. } else {
  12047. d.arrayCannotExpand(len(v), containerLenS)
  12048. decLen = len(v)
  12049. }
  12050. } else if containerLenS != len(v) {
  12051. v = v[:containerLenS]
  12052. changed = true
  12053. }
  12054. // all checks done. cannot go past len.
  12055. j := 0
  12056. for ; j < decLen; j++ {
  12057. v[j] = int32(dd.DecodeInt(32))
  12058. }
  12059. if !canChange {
  12060. for ; j < containerLenS; j++ {
  12061. d.swallow()
  12062. }
  12063. }
  12064. } else {
  12065. j := 0
  12066. for ; !dd.CheckBreak(); j++ {
  12067. if j >= len(v) {
  12068. if canChange {
  12069. v = append(v, 0)
  12070. changed = true
  12071. } else {
  12072. d.arrayCannotExpand(len(v), j+1)
  12073. }
  12074. }
  12075. if j > 0 {
  12076. slh.Sep(j)
  12077. }
  12078. if j < len(v) { // all checks done. cannot go past len.
  12079. v[j] = int32(dd.DecodeInt(32))
  12080. } else {
  12081. d.swallow()
  12082. }
  12083. }
  12084. slh.End()
  12085. }
  12086. return v, changed
  12087. }
  12088. func (f decFnInfo) fastpathDecSliceInt64R(rv reflect.Value) {
  12089. array := f.seq == seqTypeArray
  12090. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  12091. vp := rv.Addr().Interface().(*[]int64)
  12092. v, changed := fastpathTV.DecSliceInt64V(*vp, fastpathCheckNilFalse, !array, f.d)
  12093. if changed {
  12094. *vp = v
  12095. }
  12096. } else {
  12097. v := rv.Interface().([]int64)
  12098. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, f.d)
  12099. }
  12100. }
  12101. func (f fastpathT) DecSliceInt64X(vp *[]int64, checkNil bool, d *Decoder) {
  12102. v, changed := f.DecSliceInt64V(*vp, checkNil, true, d)
  12103. if changed {
  12104. *vp = v
  12105. }
  12106. }
  12107. func (_ fastpathT) DecSliceInt64V(v []int64, checkNil bool, canChange bool,
  12108. d *Decoder) (_ []int64, changed bool) {
  12109. dd := d.d
  12110. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  12111. if checkNil && dd.TryDecodeAsNil() {
  12112. if v != nil {
  12113. changed = true
  12114. }
  12115. return nil, changed
  12116. }
  12117. slh, containerLenS := d.decSliceHelperStart()
  12118. if canChange && v == nil {
  12119. if containerLenS <= 0 {
  12120. v = []int64{}
  12121. } else {
  12122. v = make([]int64, containerLenS, containerLenS)
  12123. }
  12124. changed = true
  12125. }
  12126. if containerLenS == 0 {
  12127. if canChange && len(v) != 0 {
  12128. v = v[:0]
  12129. changed = true
  12130. }
  12131. return v, changed
  12132. }
  12133. // for j := 0; j < containerLenS; j++ {
  12134. if containerLenS > 0 {
  12135. decLen := containerLenS
  12136. if containerLenS > cap(v) {
  12137. if canChange {
  12138. s := make([]int64, containerLenS, containerLenS)
  12139. // copy(s, v[:cap(v)])
  12140. v = s
  12141. changed = true
  12142. } else {
  12143. d.arrayCannotExpand(len(v), containerLenS)
  12144. decLen = len(v)
  12145. }
  12146. } else if containerLenS != len(v) {
  12147. v = v[:containerLenS]
  12148. changed = true
  12149. }
  12150. // all checks done. cannot go past len.
  12151. j := 0
  12152. for ; j < decLen; j++ {
  12153. v[j] = dd.DecodeInt(64)
  12154. }
  12155. if !canChange {
  12156. for ; j < containerLenS; j++ {
  12157. d.swallow()
  12158. }
  12159. }
  12160. } else {
  12161. j := 0
  12162. for ; !dd.CheckBreak(); j++ {
  12163. if j >= len(v) {
  12164. if canChange {
  12165. v = append(v, 0)
  12166. changed = true
  12167. } else {
  12168. d.arrayCannotExpand(len(v), j+1)
  12169. }
  12170. }
  12171. if j > 0 {
  12172. slh.Sep(j)
  12173. }
  12174. if j < len(v) { // all checks done. cannot go past len.
  12175. v[j] = dd.DecodeInt(64)
  12176. } else {
  12177. d.swallow()
  12178. }
  12179. }
  12180. slh.End()
  12181. }
  12182. return v, changed
  12183. }
  12184. func (f decFnInfo) fastpathDecSliceBoolR(rv reflect.Value) {
  12185. array := f.seq == seqTypeArray
  12186. if !array && rv.CanAddr() { // CanSet => CanAddr + Exported
  12187. vp := rv.Addr().Interface().(*[]bool)
  12188. v, changed := fastpathTV.DecSliceBoolV(*vp, fastpathCheckNilFalse, !array, f.d)
  12189. if changed {
  12190. *vp = v
  12191. }
  12192. } else {
  12193. v := rv.Interface().([]bool)
  12194. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, f.d)
  12195. }
  12196. }
  12197. func (f fastpathT) DecSliceBoolX(vp *[]bool, checkNil bool, d *Decoder) {
  12198. v, changed := f.DecSliceBoolV(*vp, checkNil, true, d)
  12199. if changed {
  12200. *vp = v
  12201. }
  12202. }
  12203. func (_ fastpathT) DecSliceBoolV(v []bool, checkNil bool, canChange bool,
  12204. d *Decoder) (_ []bool, changed bool) {
  12205. dd := d.d
  12206. // if dd.isContainerType(valueTypeNil) { dd.TryDecodeAsNil()
  12207. if checkNil && dd.TryDecodeAsNil() {
  12208. if v != nil {
  12209. changed = true
  12210. }
  12211. return nil, changed
  12212. }
  12213. slh, containerLenS := d.decSliceHelperStart()
  12214. if canChange && v == nil {
  12215. if containerLenS <= 0 {
  12216. v = []bool{}
  12217. } else {
  12218. v = make([]bool, containerLenS, containerLenS)
  12219. }
  12220. changed = true
  12221. }
  12222. if containerLenS == 0 {
  12223. if canChange && len(v) != 0 {
  12224. v = v[:0]
  12225. changed = true
  12226. }
  12227. return v, changed
  12228. }
  12229. // for j := 0; j < containerLenS; j++ {
  12230. if containerLenS > 0 {
  12231. decLen := containerLenS
  12232. if containerLenS > cap(v) {
  12233. if canChange {
  12234. s := make([]bool, containerLenS, containerLenS)
  12235. // copy(s, v[:cap(v)])
  12236. v = s
  12237. changed = true
  12238. } else {
  12239. d.arrayCannotExpand(len(v), containerLenS)
  12240. decLen = len(v)
  12241. }
  12242. } else if containerLenS != len(v) {
  12243. v = v[:containerLenS]
  12244. changed = true
  12245. }
  12246. // all checks done. cannot go past len.
  12247. j := 0
  12248. for ; j < decLen; j++ {
  12249. v[j] = dd.DecodeBool()
  12250. }
  12251. if !canChange {
  12252. for ; j < containerLenS; j++ {
  12253. d.swallow()
  12254. }
  12255. }
  12256. } else {
  12257. j := 0
  12258. for ; !dd.CheckBreak(); j++ {
  12259. if j >= len(v) {
  12260. if canChange {
  12261. v = append(v, false)
  12262. changed = true
  12263. } else {
  12264. d.arrayCannotExpand(len(v), j+1)
  12265. }
  12266. }
  12267. if j > 0 {
  12268. slh.Sep(j)
  12269. }
  12270. if j < len(v) { // all checks done. cannot go past len.
  12271. v[j] = dd.DecodeBool()
  12272. } else {
  12273. d.swallow()
  12274. }
  12275. }
  12276. slh.End()
  12277. }
  12278. return v, changed
  12279. }
  12280. func (f decFnInfo) fastpathDecMapIntfIntfR(rv reflect.Value) {
  12281. if rv.CanAddr() {
  12282. vp := rv.Addr().Interface().(*map[interface{}]interface{})
  12283. v, changed := fastpathTV.DecMapIntfIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  12284. if changed {
  12285. *vp = v
  12286. }
  12287. } else {
  12288. v := rv.Interface().(map[interface{}]interface{})
  12289. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, f.d)
  12290. }
  12291. }
  12292. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, checkNil bool, d *Decoder) {
  12293. v, changed := f.DecMapIntfIntfV(*vp, checkNil, true, d)
  12294. if changed {
  12295. *vp = v
  12296. }
  12297. }
  12298. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, canChange bool,
  12299. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  12300. dd := d.d
  12301. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12302. if checkNil && dd.TryDecodeAsNil() {
  12303. if v != nil {
  12304. changed = true
  12305. }
  12306. return nil, changed
  12307. }
  12308. containerLen := dd.ReadMapStart()
  12309. if canChange && v == nil {
  12310. if containerLen > 0 {
  12311. v = make(map[interface{}]interface{}, containerLen)
  12312. } else {
  12313. v = make(map[interface{}]interface{}) // supports indefinite-length, etc
  12314. }
  12315. changed = true
  12316. }
  12317. if containerLen > 0 {
  12318. for j := 0; j < containerLen; j++ {
  12319. var mk interface{}
  12320. d.decode(&mk)
  12321. if bv, bok := mk.([]byte); bok {
  12322. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12323. }
  12324. mv := v[mk]
  12325. d.decode(&mv)
  12326. if v != nil {
  12327. v[mk] = mv
  12328. }
  12329. }
  12330. } else if containerLen < 0 {
  12331. for j := 0; !dd.CheckBreak(); j++ {
  12332. if j > 0 {
  12333. dd.ReadMapEntrySeparator()
  12334. }
  12335. var mk interface{}
  12336. d.decode(&mk)
  12337. if bv, bok := mk.([]byte); bok {
  12338. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12339. }
  12340. dd.ReadMapKVSeparator()
  12341. mv := v[mk]
  12342. d.decode(&mv)
  12343. if v != nil {
  12344. v[mk] = mv
  12345. }
  12346. }
  12347. dd.ReadMapEnd()
  12348. }
  12349. return v, changed
  12350. }
  12351. func (f decFnInfo) fastpathDecMapIntfStringR(rv reflect.Value) {
  12352. if rv.CanAddr() {
  12353. vp := rv.Addr().Interface().(*map[interface{}]string)
  12354. v, changed := fastpathTV.DecMapIntfStringV(*vp, fastpathCheckNilFalse, true, f.d)
  12355. if changed {
  12356. *vp = v
  12357. }
  12358. } else {
  12359. v := rv.Interface().(map[interface{}]string)
  12360. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, f.d)
  12361. }
  12362. }
  12363. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, checkNil bool, d *Decoder) {
  12364. v, changed := f.DecMapIntfStringV(*vp, checkNil, true, d)
  12365. if changed {
  12366. *vp = v
  12367. }
  12368. }
  12369. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, checkNil bool, canChange bool,
  12370. d *Decoder) (_ map[interface{}]string, changed bool) {
  12371. dd := d.d
  12372. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12373. if checkNil && dd.TryDecodeAsNil() {
  12374. if v != nil {
  12375. changed = true
  12376. }
  12377. return nil, changed
  12378. }
  12379. containerLen := dd.ReadMapStart()
  12380. if canChange && v == nil {
  12381. if containerLen > 0 {
  12382. v = make(map[interface{}]string, containerLen)
  12383. } else {
  12384. v = make(map[interface{}]string) // supports indefinite-length, etc
  12385. }
  12386. changed = true
  12387. }
  12388. if containerLen > 0 {
  12389. for j := 0; j < containerLen; j++ {
  12390. var mk interface{}
  12391. d.decode(&mk)
  12392. if bv, bok := mk.([]byte); bok {
  12393. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12394. }
  12395. mv := v[mk]
  12396. mv = dd.DecodeString()
  12397. if v != nil {
  12398. v[mk] = mv
  12399. }
  12400. }
  12401. } else if containerLen < 0 {
  12402. for j := 0; !dd.CheckBreak(); j++ {
  12403. if j > 0 {
  12404. dd.ReadMapEntrySeparator()
  12405. }
  12406. var mk interface{}
  12407. d.decode(&mk)
  12408. if bv, bok := mk.([]byte); bok {
  12409. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12410. }
  12411. dd.ReadMapKVSeparator()
  12412. mv := v[mk]
  12413. mv = dd.DecodeString()
  12414. if v != nil {
  12415. v[mk] = mv
  12416. }
  12417. }
  12418. dd.ReadMapEnd()
  12419. }
  12420. return v, changed
  12421. }
  12422. func (f decFnInfo) fastpathDecMapIntfUintR(rv reflect.Value) {
  12423. if rv.CanAddr() {
  12424. vp := rv.Addr().Interface().(*map[interface{}]uint)
  12425. v, changed := fastpathTV.DecMapIntfUintV(*vp, fastpathCheckNilFalse, true, f.d)
  12426. if changed {
  12427. *vp = v
  12428. }
  12429. } else {
  12430. v := rv.Interface().(map[interface{}]uint)
  12431. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, f.d)
  12432. }
  12433. }
  12434. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, checkNil bool, d *Decoder) {
  12435. v, changed := f.DecMapIntfUintV(*vp, checkNil, true, d)
  12436. if changed {
  12437. *vp = v
  12438. }
  12439. }
  12440. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, checkNil bool, canChange bool,
  12441. d *Decoder) (_ map[interface{}]uint, changed bool) {
  12442. dd := d.d
  12443. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12444. if checkNil && dd.TryDecodeAsNil() {
  12445. if v != nil {
  12446. changed = true
  12447. }
  12448. return nil, changed
  12449. }
  12450. containerLen := dd.ReadMapStart()
  12451. if canChange && v == nil {
  12452. if containerLen > 0 {
  12453. v = make(map[interface{}]uint, containerLen)
  12454. } else {
  12455. v = make(map[interface{}]uint) // supports indefinite-length, etc
  12456. }
  12457. changed = true
  12458. }
  12459. if containerLen > 0 {
  12460. for j := 0; j < containerLen; j++ {
  12461. var mk interface{}
  12462. d.decode(&mk)
  12463. if bv, bok := mk.([]byte); bok {
  12464. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12465. }
  12466. mv := v[mk]
  12467. mv = uint(dd.DecodeUint(uintBitsize))
  12468. if v != nil {
  12469. v[mk] = mv
  12470. }
  12471. }
  12472. } else if containerLen < 0 {
  12473. for j := 0; !dd.CheckBreak(); j++ {
  12474. if j > 0 {
  12475. dd.ReadMapEntrySeparator()
  12476. }
  12477. var mk interface{}
  12478. d.decode(&mk)
  12479. if bv, bok := mk.([]byte); bok {
  12480. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12481. }
  12482. dd.ReadMapKVSeparator()
  12483. mv := v[mk]
  12484. mv = uint(dd.DecodeUint(uintBitsize))
  12485. if v != nil {
  12486. v[mk] = mv
  12487. }
  12488. }
  12489. dd.ReadMapEnd()
  12490. }
  12491. return v, changed
  12492. }
  12493. func (f decFnInfo) fastpathDecMapIntfUint8R(rv reflect.Value) {
  12494. if rv.CanAddr() {
  12495. vp := rv.Addr().Interface().(*map[interface{}]uint8)
  12496. v, changed := fastpathTV.DecMapIntfUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  12497. if changed {
  12498. *vp = v
  12499. }
  12500. } else {
  12501. v := rv.Interface().(map[interface{}]uint8)
  12502. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, f.d)
  12503. }
  12504. }
  12505. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, checkNil bool, d *Decoder) {
  12506. v, changed := f.DecMapIntfUint8V(*vp, checkNil, true, d)
  12507. if changed {
  12508. *vp = v
  12509. }
  12510. }
  12511. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, checkNil bool, canChange bool,
  12512. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  12513. dd := d.d
  12514. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12515. if checkNil && dd.TryDecodeAsNil() {
  12516. if v != nil {
  12517. changed = true
  12518. }
  12519. return nil, changed
  12520. }
  12521. containerLen := dd.ReadMapStart()
  12522. if canChange && v == nil {
  12523. if containerLen > 0 {
  12524. v = make(map[interface{}]uint8, containerLen)
  12525. } else {
  12526. v = make(map[interface{}]uint8) // supports indefinite-length, etc
  12527. }
  12528. changed = true
  12529. }
  12530. if containerLen > 0 {
  12531. for j := 0; j < containerLen; j++ {
  12532. var mk interface{}
  12533. d.decode(&mk)
  12534. if bv, bok := mk.([]byte); bok {
  12535. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12536. }
  12537. mv := v[mk]
  12538. mv = uint8(dd.DecodeUint(8))
  12539. if v != nil {
  12540. v[mk] = mv
  12541. }
  12542. }
  12543. } else if containerLen < 0 {
  12544. for j := 0; !dd.CheckBreak(); j++ {
  12545. if j > 0 {
  12546. dd.ReadMapEntrySeparator()
  12547. }
  12548. var mk interface{}
  12549. d.decode(&mk)
  12550. if bv, bok := mk.([]byte); bok {
  12551. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12552. }
  12553. dd.ReadMapKVSeparator()
  12554. mv := v[mk]
  12555. mv = uint8(dd.DecodeUint(8))
  12556. if v != nil {
  12557. v[mk] = mv
  12558. }
  12559. }
  12560. dd.ReadMapEnd()
  12561. }
  12562. return v, changed
  12563. }
  12564. func (f decFnInfo) fastpathDecMapIntfUint16R(rv reflect.Value) {
  12565. if rv.CanAddr() {
  12566. vp := rv.Addr().Interface().(*map[interface{}]uint16)
  12567. v, changed := fastpathTV.DecMapIntfUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  12568. if changed {
  12569. *vp = v
  12570. }
  12571. } else {
  12572. v := rv.Interface().(map[interface{}]uint16)
  12573. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, f.d)
  12574. }
  12575. }
  12576. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, checkNil bool, d *Decoder) {
  12577. v, changed := f.DecMapIntfUint16V(*vp, checkNil, true, d)
  12578. if changed {
  12579. *vp = v
  12580. }
  12581. }
  12582. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, checkNil bool, canChange bool,
  12583. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  12584. dd := d.d
  12585. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12586. if checkNil && dd.TryDecodeAsNil() {
  12587. if v != nil {
  12588. changed = true
  12589. }
  12590. return nil, changed
  12591. }
  12592. containerLen := dd.ReadMapStart()
  12593. if canChange && v == nil {
  12594. if containerLen > 0 {
  12595. v = make(map[interface{}]uint16, containerLen)
  12596. } else {
  12597. v = make(map[interface{}]uint16) // supports indefinite-length, etc
  12598. }
  12599. changed = true
  12600. }
  12601. if containerLen > 0 {
  12602. for j := 0; j < containerLen; j++ {
  12603. var mk interface{}
  12604. d.decode(&mk)
  12605. if bv, bok := mk.([]byte); bok {
  12606. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12607. }
  12608. mv := v[mk]
  12609. mv = uint16(dd.DecodeUint(16))
  12610. if v != nil {
  12611. v[mk] = mv
  12612. }
  12613. }
  12614. } else if containerLen < 0 {
  12615. for j := 0; !dd.CheckBreak(); j++ {
  12616. if j > 0 {
  12617. dd.ReadMapEntrySeparator()
  12618. }
  12619. var mk interface{}
  12620. d.decode(&mk)
  12621. if bv, bok := mk.([]byte); bok {
  12622. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12623. }
  12624. dd.ReadMapKVSeparator()
  12625. mv := v[mk]
  12626. mv = uint16(dd.DecodeUint(16))
  12627. if v != nil {
  12628. v[mk] = mv
  12629. }
  12630. }
  12631. dd.ReadMapEnd()
  12632. }
  12633. return v, changed
  12634. }
  12635. func (f decFnInfo) fastpathDecMapIntfUint32R(rv reflect.Value) {
  12636. if rv.CanAddr() {
  12637. vp := rv.Addr().Interface().(*map[interface{}]uint32)
  12638. v, changed := fastpathTV.DecMapIntfUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  12639. if changed {
  12640. *vp = v
  12641. }
  12642. } else {
  12643. v := rv.Interface().(map[interface{}]uint32)
  12644. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, f.d)
  12645. }
  12646. }
  12647. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, checkNil bool, d *Decoder) {
  12648. v, changed := f.DecMapIntfUint32V(*vp, checkNil, true, d)
  12649. if changed {
  12650. *vp = v
  12651. }
  12652. }
  12653. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, checkNil bool, canChange bool,
  12654. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  12655. dd := d.d
  12656. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12657. if checkNil && dd.TryDecodeAsNil() {
  12658. if v != nil {
  12659. changed = true
  12660. }
  12661. return nil, changed
  12662. }
  12663. containerLen := dd.ReadMapStart()
  12664. if canChange && v == nil {
  12665. if containerLen > 0 {
  12666. v = make(map[interface{}]uint32, containerLen)
  12667. } else {
  12668. v = make(map[interface{}]uint32) // supports indefinite-length, etc
  12669. }
  12670. changed = true
  12671. }
  12672. if containerLen > 0 {
  12673. for j := 0; j < containerLen; j++ {
  12674. var mk interface{}
  12675. d.decode(&mk)
  12676. if bv, bok := mk.([]byte); bok {
  12677. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12678. }
  12679. mv := v[mk]
  12680. mv = uint32(dd.DecodeUint(32))
  12681. if v != nil {
  12682. v[mk] = mv
  12683. }
  12684. }
  12685. } else if containerLen < 0 {
  12686. for j := 0; !dd.CheckBreak(); j++ {
  12687. if j > 0 {
  12688. dd.ReadMapEntrySeparator()
  12689. }
  12690. var mk interface{}
  12691. d.decode(&mk)
  12692. if bv, bok := mk.([]byte); bok {
  12693. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12694. }
  12695. dd.ReadMapKVSeparator()
  12696. mv := v[mk]
  12697. mv = uint32(dd.DecodeUint(32))
  12698. if v != nil {
  12699. v[mk] = mv
  12700. }
  12701. }
  12702. dd.ReadMapEnd()
  12703. }
  12704. return v, changed
  12705. }
  12706. func (f decFnInfo) fastpathDecMapIntfUint64R(rv reflect.Value) {
  12707. if rv.CanAddr() {
  12708. vp := rv.Addr().Interface().(*map[interface{}]uint64)
  12709. v, changed := fastpathTV.DecMapIntfUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  12710. if changed {
  12711. *vp = v
  12712. }
  12713. } else {
  12714. v := rv.Interface().(map[interface{}]uint64)
  12715. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, f.d)
  12716. }
  12717. }
  12718. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, checkNil bool, d *Decoder) {
  12719. v, changed := f.DecMapIntfUint64V(*vp, checkNil, true, d)
  12720. if changed {
  12721. *vp = v
  12722. }
  12723. }
  12724. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, checkNil bool, canChange bool,
  12725. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  12726. dd := d.d
  12727. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12728. if checkNil && dd.TryDecodeAsNil() {
  12729. if v != nil {
  12730. changed = true
  12731. }
  12732. return nil, changed
  12733. }
  12734. containerLen := dd.ReadMapStart()
  12735. if canChange && v == nil {
  12736. if containerLen > 0 {
  12737. v = make(map[interface{}]uint64, containerLen)
  12738. } else {
  12739. v = make(map[interface{}]uint64) // supports indefinite-length, etc
  12740. }
  12741. changed = true
  12742. }
  12743. if containerLen > 0 {
  12744. for j := 0; j < containerLen; j++ {
  12745. var mk interface{}
  12746. d.decode(&mk)
  12747. if bv, bok := mk.([]byte); bok {
  12748. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12749. }
  12750. mv := v[mk]
  12751. mv = dd.DecodeUint(64)
  12752. if v != nil {
  12753. v[mk] = mv
  12754. }
  12755. }
  12756. } else if containerLen < 0 {
  12757. for j := 0; !dd.CheckBreak(); j++ {
  12758. if j > 0 {
  12759. dd.ReadMapEntrySeparator()
  12760. }
  12761. var mk interface{}
  12762. d.decode(&mk)
  12763. if bv, bok := mk.([]byte); bok {
  12764. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12765. }
  12766. dd.ReadMapKVSeparator()
  12767. mv := v[mk]
  12768. mv = dd.DecodeUint(64)
  12769. if v != nil {
  12770. v[mk] = mv
  12771. }
  12772. }
  12773. dd.ReadMapEnd()
  12774. }
  12775. return v, changed
  12776. }
  12777. func (f decFnInfo) fastpathDecMapIntfIntR(rv reflect.Value) {
  12778. if rv.CanAddr() {
  12779. vp := rv.Addr().Interface().(*map[interface{}]int)
  12780. v, changed := fastpathTV.DecMapIntfIntV(*vp, fastpathCheckNilFalse, true, f.d)
  12781. if changed {
  12782. *vp = v
  12783. }
  12784. } else {
  12785. v := rv.Interface().(map[interface{}]int)
  12786. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, f.d)
  12787. }
  12788. }
  12789. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, checkNil bool, d *Decoder) {
  12790. v, changed := f.DecMapIntfIntV(*vp, checkNil, true, d)
  12791. if changed {
  12792. *vp = v
  12793. }
  12794. }
  12795. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, checkNil bool, canChange bool,
  12796. d *Decoder) (_ map[interface{}]int, changed bool) {
  12797. dd := d.d
  12798. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12799. if checkNil && dd.TryDecodeAsNil() {
  12800. if v != nil {
  12801. changed = true
  12802. }
  12803. return nil, changed
  12804. }
  12805. containerLen := dd.ReadMapStart()
  12806. if canChange && v == nil {
  12807. if containerLen > 0 {
  12808. v = make(map[interface{}]int, containerLen)
  12809. } else {
  12810. v = make(map[interface{}]int) // supports indefinite-length, etc
  12811. }
  12812. changed = true
  12813. }
  12814. if containerLen > 0 {
  12815. for j := 0; j < containerLen; j++ {
  12816. var mk interface{}
  12817. d.decode(&mk)
  12818. if bv, bok := mk.([]byte); bok {
  12819. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12820. }
  12821. mv := v[mk]
  12822. mv = int(dd.DecodeInt(intBitsize))
  12823. if v != nil {
  12824. v[mk] = mv
  12825. }
  12826. }
  12827. } else if containerLen < 0 {
  12828. for j := 0; !dd.CheckBreak(); j++ {
  12829. if j > 0 {
  12830. dd.ReadMapEntrySeparator()
  12831. }
  12832. var mk interface{}
  12833. d.decode(&mk)
  12834. if bv, bok := mk.([]byte); bok {
  12835. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12836. }
  12837. dd.ReadMapKVSeparator()
  12838. mv := v[mk]
  12839. mv = int(dd.DecodeInt(intBitsize))
  12840. if v != nil {
  12841. v[mk] = mv
  12842. }
  12843. }
  12844. dd.ReadMapEnd()
  12845. }
  12846. return v, changed
  12847. }
  12848. func (f decFnInfo) fastpathDecMapIntfInt8R(rv reflect.Value) {
  12849. if rv.CanAddr() {
  12850. vp := rv.Addr().Interface().(*map[interface{}]int8)
  12851. v, changed := fastpathTV.DecMapIntfInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  12852. if changed {
  12853. *vp = v
  12854. }
  12855. } else {
  12856. v := rv.Interface().(map[interface{}]int8)
  12857. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, f.d)
  12858. }
  12859. }
  12860. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, checkNil bool, d *Decoder) {
  12861. v, changed := f.DecMapIntfInt8V(*vp, checkNil, true, d)
  12862. if changed {
  12863. *vp = v
  12864. }
  12865. }
  12866. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, checkNil bool, canChange bool,
  12867. d *Decoder) (_ map[interface{}]int8, changed bool) {
  12868. dd := d.d
  12869. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12870. if checkNil && dd.TryDecodeAsNil() {
  12871. if v != nil {
  12872. changed = true
  12873. }
  12874. return nil, changed
  12875. }
  12876. containerLen := dd.ReadMapStart()
  12877. if canChange && v == nil {
  12878. if containerLen > 0 {
  12879. v = make(map[interface{}]int8, containerLen)
  12880. } else {
  12881. v = make(map[interface{}]int8) // supports indefinite-length, etc
  12882. }
  12883. changed = true
  12884. }
  12885. if containerLen > 0 {
  12886. for j := 0; j < containerLen; j++ {
  12887. var mk interface{}
  12888. d.decode(&mk)
  12889. if bv, bok := mk.([]byte); bok {
  12890. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12891. }
  12892. mv := v[mk]
  12893. mv = int8(dd.DecodeInt(8))
  12894. if v != nil {
  12895. v[mk] = mv
  12896. }
  12897. }
  12898. } else if containerLen < 0 {
  12899. for j := 0; !dd.CheckBreak(); j++ {
  12900. if j > 0 {
  12901. dd.ReadMapEntrySeparator()
  12902. }
  12903. var mk interface{}
  12904. d.decode(&mk)
  12905. if bv, bok := mk.([]byte); bok {
  12906. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12907. }
  12908. dd.ReadMapKVSeparator()
  12909. mv := v[mk]
  12910. mv = int8(dd.DecodeInt(8))
  12911. if v != nil {
  12912. v[mk] = mv
  12913. }
  12914. }
  12915. dd.ReadMapEnd()
  12916. }
  12917. return v, changed
  12918. }
  12919. func (f decFnInfo) fastpathDecMapIntfInt16R(rv reflect.Value) {
  12920. if rv.CanAddr() {
  12921. vp := rv.Addr().Interface().(*map[interface{}]int16)
  12922. v, changed := fastpathTV.DecMapIntfInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  12923. if changed {
  12924. *vp = v
  12925. }
  12926. } else {
  12927. v := rv.Interface().(map[interface{}]int16)
  12928. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, f.d)
  12929. }
  12930. }
  12931. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, checkNil bool, d *Decoder) {
  12932. v, changed := f.DecMapIntfInt16V(*vp, checkNil, true, d)
  12933. if changed {
  12934. *vp = v
  12935. }
  12936. }
  12937. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, checkNil bool, canChange bool,
  12938. d *Decoder) (_ map[interface{}]int16, changed bool) {
  12939. dd := d.d
  12940. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  12941. if checkNil && dd.TryDecodeAsNil() {
  12942. if v != nil {
  12943. changed = true
  12944. }
  12945. return nil, changed
  12946. }
  12947. containerLen := dd.ReadMapStart()
  12948. if canChange && v == nil {
  12949. if containerLen > 0 {
  12950. v = make(map[interface{}]int16, containerLen)
  12951. } else {
  12952. v = make(map[interface{}]int16) // supports indefinite-length, etc
  12953. }
  12954. changed = true
  12955. }
  12956. if containerLen > 0 {
  12957. for j := 0; j < containerLen; j++ {
  12958. var mk interface{}
  12959. d.decode(&mk)
  12960. if bv, bok := mk.([]byte); bok {
  12961. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12962. }
  12963. mv := v[mk]
  12964. mv = int16(dd.DecodeInt(16))
  12965. if v != nil {
  12966. v[mk] = mv
  12967. }
  12968. }
  12969. } else if containerLen < 0 {
  12970. for j := 0; !dd.CheckBreak(); j++ {
  12971. if j > 0 {
  12972. dd.ReadMapEntrySeparator()
  12973. }
  12974. var mk interface{}
  12975. d.decode(&mk)
  12976. if bv, bok := mk.([]byte); bok {
  12977. mk = string(bv) // maps cannot have []byte as key. switch to string.
  12978. }
  12979. dd.ReadMapKVSeparator()
  12980. mv := v[mk]
  12981. mv = int16(dd.DecodeInt(16))
  12982. if v != nil {
  12983. v[mk] = mv
  12984. }
  12985. }
  12986. dd.ReadMapEnd()
  12987. }
  12988. return v, changed
  12989. }
  12990. func (f decFnInfo) fastpathDecMapIntfInt32R(rv reflect.Value) {
  12991. if rv.CanAddr() {
  12992. vp := rv.Addr().Interface().(*map[interface{}]int32)
  12993. v, changed := fastpathTV.DecMapIntfInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  12994. if changed {
  12995. *vp = v
  12996. }
  12997. } else {
  12998. v := rv.Interface().(map[interface{}]int32)
  12999. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, f.d)
  13000. }
  13001. }
  13002. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, checkNil bool, d *Decoder) {
  13003. v, changed := f.DecMapIntfInt32V(*vp, checkNil, true, d)
  13004. if changed {
  13005. *vp = v
  13006. }
  13007. }
  13008. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, checkNil bool, canChange bool,
  13009. d *Decoder) (_ map[interface{}]int32, changed bool) {
  13010. dd := d.d
  13011. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13012. if checkNil && dd.TryDecodeAsNil() {
  13013. if v != nil {
  13014. changed = true
  13015. }
  13016. return nil, changed
  13017. }
  13018. containerLen := dd.ReadMapStart()
  13019. if canChange && v == nil {
  13020. if containerLen > 0 {
  13021. v = make(map[interface{}]int32, containerLen)
  13022. } else {
  13023. v = make(map[interface{}]int32) // supports indefinite-length, etc
  13024. }
  13025. changed = true
  13026. }
  13027. if containerLen > 0 {
  13028. for j := 0; j < containerLen; j++ {
  13029. var mk interface{}
  13030. d.decode(&mk)
  13031. if bv, bok := mk.([]byte); bok {
  13032. mk = string(bv) // maps cannot have []byte as key. switch to string.
  13033. }
  13034. mv := v[mk]
  13035. mv = int32(dd.DecodeInt(32))
  13036. if v != nil {
  13037. v[mk] = mv
  13038. }
  13039. }
  13040. } else if containerLen < 0 {
  13041. for j := 0; !dd.CheckBreak(); j++ {
  13042. if j > 0 {
  13043. dd.ReadMapEntrySeparator()
  13044. }
  13045. var mk interface{}
  13046. d.decode(&mk)
  13047. if bv, bok := mk.([]byte); bok {
  13048. mk = string(bv) // maps cannot have []byte as key. switch to string.
  13049. }
  13050. dd.ReadMapKVSeparator()
  13051. mv := v[mk]
  13052. mv = int32(dd.DecodeInt(32))
  13053. if v != nil {
  13054. v[mk] = mv
  13055. }
  13056. }
  13057. dd.ReadMapEnd()
  13058. }
  13059. return v, changed
  13060. }
  13061. func (f decFnInfo) fastpathDecMapIntfInt64R(rv reflect.Value) {
  13062. if rv.CanAddr() {
  13063. vp := rv.Addr().Interface().(*map[interface{}]int64)
  13064. v, changed := fastpathTV.DecMapIntfInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  13065. if changed {
  13066. *vp = v
  13067. }
  13068. } else {
  13069. v := rv.Interface().(map[interface{}]int64)
  13070. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, f.d)
  13071. }
  13072. }
  13073. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, checkNil bool, d *Decoder) {
  13074. v, changed := f.DecMapIntfInt64V(*vp, checkNil, true, d)
  13075. if changed {
  13076. *vp = v
  13077. }
  13078. }
  13079. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, checkNil bool, canChange bool,
  13080. d *Decoder) (_ map[interface{}]int64, changed bool) {
  13081. dd := d.d
  13082. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13083. if checkNil && dd.TryDecodeAsNil() {
  13084. if v != nil {
  13085. changed = true
  13086. }
  13087. return nil, changed
  13088. }
  13089. containerLen := dd.ReadMapStart()
  13090. if canChange && v == nil {
  13091. if containerLen > 0 {
  13092. v = make(map[interface{}]int64, containerLen)
  13093. } else {
  13094. v = make(map[interface{}]int64) // supports indefinite-length, etc
  13095. }
  13096. changed = true
  13097. }
  13098. if containerLen > 0 {
  13099. for j := 0; j < containerLen; j++ {
  13100. var mk interface{}
  13101. d.decode(&mk)
  13102. if bv, bok := mk.([]byte); bok {
  13103. mk = string(bv) // maps cannot have []byte as key. switch to string.
  13104. }
  13105. mv := v[mk]
  13106. mv = dd.DecodeInt(64)
  13107. if v != nil {
  13108. v[mk] = mv
  13109. }
  13110. }
  13111. } else if containerLen < 0 {
  13112. for j := 0; !dd.CheckBreak(); j++ {
  13113. if j > 0 {
  13114. dd.ReadMapEntrySeparator()
  13115. }
  13116. var mk interface{}
  13117. d.decode(&mk)
  13118. if bv, bok := mk.([]byte); bok {
  13119. mk = string(bv) // maps cannot have []byte as key. switch to string.
  13120. }
  13121. dd.ReadMapKVSeparator()
  13122. mv := v[mk]
  13123. mv = dd.DecodeInt(64)
  13124. if v != nil {
  13125. v[mk] = mv
  13126. }
  13127. }
  13128. dd.ReadMapEnd()
  13129. }
  13130. return v, changed
  13131. }
  13132. func (f decFnInfo) fastpathDecMapIntfFloat32R(rv reflect.Value) {
  13133. if rv.CanAddr() {
  13134. vp := rv.Addr().Interface().(*map[interface{}]float32)
  13135. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  13136. if changed {
  13137. *vp = v
  13138. }
  13139. } else {
  13140. v := rv.Interface().(map[interface{}]float32)
  13141. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, f.d)
  13142. }
  13143. }
  13144. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, checkNil bool, d *Decoder) {
  13145. v, changed := f.DecMapIntfFloat32V(*vp, checkNil, true, d)
  13146. if changed {
  13147. *vp = v
  13148. }
  13149. }
  13150. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, checkNil bool, canChange bool,
  13151. d *Decoder) (_ map[interface{}]float32, changed bool) {
  13152. dd := d.d
  13153. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13154. if checkNil && dd.TryDecodeAsNil() {
  13155. if v != nil {
  13156. changed = true
  13157. }
  13158. return nil, changed
  13159. }
  13160. containerLen := dd.ReadMapStart()
  13161. if canChange && v == nil {
  13162. if containerLen > 0 {
  13163. v = make(map[interface{}]float32, containerLen)
  13164. } else {
  13165. v = make(map[interface{}]float32) // supports indefinite-length, etc
  13166. }
  13167. changed = true
  13168. }
  13169. if containerLen > 0 {
  13170. for j := 0; j < containerLen; j++ {
  13171. var mk interface{}
  13172. d.decode(&mk)
  13173. if bv, bok := mk.([]byte); bok {
  13174. mk = string(bv) // maps cannot have []byte as key. switch to string.
  13175. }
  13176. mv := v[mk]
  13177. mv = float32(dd.DecodeFloat(true))
  13178. if v != nil {
  13179. v[mk] = mv
  13180. }
  13181. }
  13182. } else if containerLen < 0 {
  13183. for j := 0; !dd.CheckBreak(); j++ {
  13184. if j > 0 {
  13185. dd.ReadMapEntrySeparator()
  13186. }
  13187. var mk interface{}
  13188. d.decode(&mk)
  13189. if bv, bok := mk.([]byte); bok {
  13190. mk = string(bv) // maps cannot have []byte as key. switch to string.
  13191. }
  13192. dd.ReadMapKVSeparator()
  13193. mv := v[mk]
  13194. mv = float32(dd.DecodeFloat(true))
  13195. if v != nil {
  13196. v[mk] = mv
  13197. }
  13198. }
  13199. dd.ReadMapEnd()
  13200. }
  13201. return v, changed
  13202. }
  13203. func (f decFnInfo) fastpathDecMapIntfFloat64R(rv reflect.Value) {
  13204. if rv.CanAddr() {
  13205. vp := rv.Addr().Interface().(*map[interface{}]float64)
  13206. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  13207. if changed {
  13208. *vp = v
  13209. }
  13210. } else {
  13211. v := rv.Interface().(map[interface{}]float64)
  13212. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, f.d)
  13213. }
  13214. }
  13215. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, checkNil bool, d *Decoder) {
  13216. v, changed := f.DecMapIntfFloat64V(*vp, checkNil, true, d)
  13217. if changed {
  13218. *vp = v
  13219. }
  13220. }
  13221. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, checkNil bool, canChange bool,
  13222. d *Decoder) (_ map[interface{}]float64, changed bool) {
  13223. dd := d.d
  13224. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13225. if checkNil && dd.TryDecodeAsNil() {
  13226. if v != nil {
  13227. changed = true
  13228. }
  13229. return nil, changed
  13230. }
  13231. containerLen := dd.ReadMapStart()
  13232. if canChange && v == nil {
  13233. if containerLen > 0 {
  13234. v = make(map[interface{}]float64, containerLen)
  13235. } else {
  13236. v = make(map[interface{}]float64) // supports indefinite-length, etc
  13237. }
  13238. changed = true
  13239. }
  13240. if containerLen > 0 {
  13241. for j := 0; j < containerLen; j++ {
  13242. var mk interface{}
  13243. d.decode(&mk)
  13244. if bv, bok := mk.([]byte); bok {
  13245. mk = string(bv) // maps cannot have []byte as key. switch to string.
  13246. }
  13247. mv := v[mk]
  13248. mv = dd.DecodeFloat(false)
  13249. if v != nil {
  13250. v[mk] = mv
  13251. }
  13252. }
  13253. } else if containerLen < 0 {
  13254. for j := 0; !dd.CheckBreak(); j++ {
  13255. if j > 0 {
  13256. dd.ReadMapEntrySeparator()
  13257. }
  13258. var mk interface{}
  13259. d.decode(&mk)
  13260. if bv, bok := mk.([]byte); bok {
  13261. mk = string(bv) // maps cannot have []byte as key. switch to string.
  13262. }
  13263. dd.ReadMapKVSeparator()
  13264. mv := v[mk]
  13265. mv = dd.DecodeFloat(false)
  13266. if v != nil {
  13267. v[mk] = mv
  13268. }
  13269. }
  13270. dd.ReadMapEnd()
  13271. }
  13272. return v, changed
  13273. }
  13274. func (f decFnInfo) fastpathDecMapIntfBoolR(rv reflect.Value) {
  13275. if rv.CanAddr() {
  13276. vp := rv.Addr().Interface().(*map[interface{}]bool)
  13277. v, changed := fastpathTV.DecMapIntfBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  13278. if changed {
  13279. *vp = v
  13280. }
  13281. } else {
  13282. v := rv.Interface().(map[interface{}]bool)
  13283. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, f.d)
  13284. }
  13285. }
  13286. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, checkNil bool, d *Decoder) {
  13287. v, changed := f.DecMapIntfBoolV(*vp, checkNil, true, d)
  13288. if changed {
  13289. *vp = v
  13290. }
  13291. }
  13292. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, checkNil bool, canChange bool,
  13293. d *Decoder) (_ map[interface{}]bool, changed bool) {
  13294. dd := d.d
  13295. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13296. if checkNil && dd.TryDecodeAsNil() {
  13297. if v != nil {
  13298. changed = true
  13299. }
  13300. return nil, changed
  13301. }
  13302. containerLen := dd.ReadMapStart()
  13303. if canChange && v == nil {
  13304. if containerLen > 0 {
  13305. v = make(map[interface{}]bool, containerLen)
  13306. } else {
  13307. v = make(map[interface{}]bool) // supports indefinite-length, etc
  13308. }
  13309. changed = true
  13310. }
  13311. if containerLen > 0 {
  13312. for j := 0; j < containerLen; j++ {
  13313. var mk interface{}
  13314. d.decode(&mk)
  13315. if bv, bok := mk.([]byte); bok {
  13316. mk = string(bv) // maps cannot have []byte as key. switch to string.
  13317. }
  13318. mv := v[mk]
  13319. mv = dd.DecodeBool()
  13320. if v != nil {
  13321. v[mk] = mv
  13322. }
  13323. }
  13324. } else if containerLen < 0 {
  13325. for j := 0; !dd.CheckBreak(); j++ {
  13326. if j > 0 {
  13327. dd.ReadMapEntrySeparator()
  13328. }
  13329. var mk interface{}
  13330. d.decode(&mk)
  13331. if bv, bok := mk.([]byte); bok {
  13332. mk = string(bv) // maps cannot have []byte as key. switch to string.
  13333. }
  13334. dd.ReadMapKVSeparator()
  13335. mv := v[mk]
  13336. mv = dd.DecodeBool()
  13337. if v != nil {
  13338. v[mk] = mv
  13339. }
  13340. }
  13341. dd.ReadMapEnd()
  13342. }
  13343. return v, changed
  13344. }
  13345. func (f decFnInfo) fastpathDecMapStringIntfR(rv reflect.Value) {
  13346. if rv.CanAddr() {
  13347. vp := rv.Addr().Interface().(*map[string]interface{})
  13348. v, changed := fastpathTV.DecMapStringIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  13349. if changed {
  13350. *vp = v
  13351. }
  13352. } else {
  13353. v := rv.Interface().(map[string]interface{})
  13354. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, f.d)
  13355. }
  13356. }
  13357. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, checkNil bool, d *Decoder) {
  13358. v, changed := f.DecMapStringIntfV(*vp, checkNil, true, d)
  13359. if changed {
  13360. *vp = v
  13361. }
  13362. }
  13363. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, checkNil bool, canChange bool,
  13364. d *Decoder) (_ map[string]interface{}, changed bool) {
  13365. dd := d.d
  13366. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13367. if checkNil && dd.TryDecodeAsNil() {
  13368. if v != nil {
  13369. changed = true
  13370. }
  13371. return nil, changed
  13372. }
  13373. containerLen := dd.ReadMapStart()
  13374. if canChange && v == nil {
  13375. if containerLen > 0 {
  13376. v = make(map[string]interface{}, containerLen)
  13377. } else {
  13378. v = make(map[string]interface{}) // supports indefinite-length, etc
  13379. }
  13380. changed = true
  13381. }
  13382. if containerLen > 0 {
  13383. for j := 0; j < containerLen; j++ {
  13384. mk := dd.DecodeString()
  13385. mv := v[mk]
  13386. d.decode(&mv)
  13387. if v != nil {
  13388. v[mk] = mv
  13389. }
  13390. }
  13391. } else if containerLen < 0 {
  13392. for j := 0; !dd.CheckBreak(); j++ {
  13393. if j > 0 {
  13394. dd.ReadMapEntrySeparator()
  13395. }
  13396. mk := dd.DecodeString()
  13397. dd.ReadMapKVSeparator()
  13398. mv := v[mk]
  13399. d.decode(&mv)
  13400. if v != nil {
  13401. v[mk] = mv
  13402. }
  13403. }
  13404. dd.ReadMapEnd()
  13405. }
  13406. return v, changed
  13407. }
  13408. func (f decFnInfo) fastpathDecMapStringStringR(rv reflect.Value) {
  13409. if rv.CanAddr() {
  13410. vp := rv.Addr().Interface().(*map[string]string)
  13411. v, changed := fastpathTV.DecMapStringStringV(*vp, fastpathCheckNilFalse, true, f.d)
  13412. if changed {
  13413. *vp = v
  13414. }
  13415. } else {
  13416. v := rv.Interface().(map[string]string)
  13417. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, f.d)
  13418. }
  13419. }
  13420. func (f fastpathT) DecMapStringStringX(vp *map[string]string, checkNil bool, d *Decoder) {
  13421. v, changed := f.DecMapStringStringV(*vp, checkNil, true, d)
  13422. if changed {
  13423. *vp = v
  13424. }
  13425. }
  13426. func (_ fastpathT) DecMapStringStringV(v map[string]string, checkNil bool, canChange bool,
  13427. d *Decoder) (_ map[string]string, changed bool) {
  13428. dd := d.d
  13429. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13430. if checkNil && dd.TryDecodeAsNil() {
  13431. if v != nil {
  13432. changed = true
  13433. }
  13434. return nil, changed
  13435. }
  13436. containerLen := dd.ReadMapStart()
  13437. if canChange && v == nil {
  13438. if containerLen > 0 {
  13439. v = make(map[string]string, containerLen)
  13440. } else {
  13441. v = make(map[string]string) // supports indefinite-length, etc
  13442. }
  13443. changed = true
  13444. }
  13445. if containerLen > 0 {
  13446. for j := 0; j < containerLen; j++ {
  13447. mk := dd.DecodeString()
  13448. mv := v[mk]
  13449. mv = dd.DecodeString()
  13450. if v != nil {
  13451. v[mk] = mv
  13452. }
  13453. }
  13454. } else if containerLen < 0 {
  13455. for j := 0; !dd.CheckBreak(); j++ {
  13456. if j > 0 {
  13457. dd.ReadMapEntrySeparator()
  13458. }
  13459. mk := dd.DecodeString()
  13460. dd.ReadMapKVSeparator()
  13461. mv := v[mk]
  13462. mv = dd.DecodeString()
  13463. if v != nil {
  13464. v[mk] = mv
  13465. }
  13466. }
  13467. dd.ReadMapEnd()
  13468. }
  13469. return v, changed
  13470. }
  13471. func (f decFnInfo) fastpathDecMapStringUintR(rv reflect.Value) {
  13472. if rv.CanAddr() {
  13473. vp := rv.Addr().Interface().(*map[string]uint)
  13474. v, changed := fastpathTV.DecMapStringUintV(*vp, fastpathCheckNilFalse, true, f.d)
  13475. if changed {
  13476. *vp = v
  13477. }
  13478. } else {
  13479. v := rv.Interface().(map[string]uint)
  13480. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, f.d)
  13481. }
  13482. }
  13483. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, checkNil bool, d *Decoder) {
  13484. v, changed := f.DecMapStringUintV(*vp, checkNil, true, d)
  13485. if changed {
  13486. *vp = v
  13487. }
  13488. }
  13489. func (_ fastpathT) DecMapStringUintV(v map[string]uint, checkNil bool, canChange bool,
  13490. d *Decoder) (_ map[string]uint, changed bool) {
  13491. dd := d.d
  13492. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13493. if checkNil && dd.TryDecodeAsNil() {
  13494. if v != nil {
  13495. changed = true
  13496. }
  13497. return nil, changed
  13498. }
  13499. containerLen := dd.ReadMapStart()
  13500. if canChange && v == nil {
  13501. if containerLen > 0 {
  13502. v = make(map[string]uint, containerLen)
  13503. } else {
  13504. v = make(map[string]uint) // supports indefinite-length, etc
  13505. }
  13506. changed = true
  13507. }
  13508. if containerLen > 0 {
  13509. for j := 0; j < containerLen; j++ {
  13510. mk := dd.DecodeString()
  13511. mv := v[mk]
  13512. mv = uint(dd.DecodeUint(uintBitsize))
  13513. if v != nil {
  13514. v[mk] = mv
  13515. }
  13516. }
  13517. } else if containerLen < 0 {
  13518. for j := 0; !dd.CheckBreak(); j++ {
  13519. if j > 0 {
  13520. dd.ReadMapEntrySeparator()
  13521. }
  13522. mk := dd.DecodeString()
  13523. dd.ReadMapKVSeparator()
  13524. mv := v[mk]
  13525. mv = uint(dd.DecodeUint(uintBitsize))
  13526. if v != nil {
  13527. v[mk] = mv
  13528. }
  13529. }
  13530. dd.ReadMapEnd()
  13531. }
  13532. return v, changed
  13533. }
  13534. func (f decFnInfo) fastpathDecMapStringUint8R(rv reflect.Value) {
  13535. if rv.CanAddr() {
  13536. vp := rv.Addr().Interface().(*map[string]uint8)
  13537. v, changed := fastpathTV.DecMapStringUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  13538. if changed {
  13539. *vp = v
  13540. }
  13541. } else {
  13542. v := rv.Interface().(map[string]uint8)
  13543. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, f.d)
  13544. }
  13545. }
  13546. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, checkNil bool, d *Decoder) {
  13547. v, changed := f.DecMapStringUint8V(*vp, checkNil, true, d)
  13548. if changed {
  13549. *vp = v
  13550. }
  13551. }
  13552. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, checkNil bool, canChange bool,
  13553. d *Decoder) (_ map[string]uint8, changed bool) {
  13554. dd := d.d
  13555. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13556. if checkNil && dd.TryDecodeAsNil() {
  13557. if v != nil {
  13558. changed = true
  13559. }
  13560. return nil, changed
  13561. }
  13562. containerLen := dd.ReadMapStart()
  13563. if canChange && v == nil {
  13564. if containerLen > 0 {
  13565. v = make(map[string]uint8, containerLen)
  13566. } else {
  13567. v = make(map[string]uint8) // supports indefinite-length, etc
  13568. }
  13569. changed = true
  13570. }
  13571. if containerLen > 0 {
  13572. for j := 0; j < containerLen; j++ {
  13573. mk := dd.DecodeString()
  13574. mv := v[mk]
  13575. mv = uint8(dd.DecodeUint(8))
  13576. if v != nil {
  13577. v[mk] = mv
  13578. }
  13579. }
  13580. } else if containerLen < 0 {
  13581. for j := 0; !dd.CheckBreak(); j++ {
  13582. if j > 0 {
  13583. dd.ReadMapEntrySeparator()
  13584. }
  13585. mk := dd.DecodeString()
  13586. dd.ReadMapKVSeparator()
  13587. mv := v[mk]
  13588. mv = uint8(dd.DecodeUint(8))
  13589. if v != nil {
  13590. v[mk] = mv
  13591. }
  13592. }
  13593. dd.ReadMapEnd()
  13594. }
  13595. return v, changed
  13596. }
  13597. func (f decFnInfo) fastpathDecMapStringUint16R(rv reflect.Value) {
  13598. if rv.CanAddr() {
  13599. vp := rv.Addr().Interface().(*map[string]uint16)
  13600. v, changed := fastpathTV.DecMapStringUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  13601. if changed {
  13602. *vp = v
  13603. }
  13604. } else {
  13605. v := rv.Interface().(map[string]uint16)
  13606. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, f.d)
  13607. }
  13608. }
  13609. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, checkNil bool, d *Decoder) {
  13610. v, changed := f.DecMapStringUint16V(*vp, checkNil, true, d)
  13611. if changed {
  13612. *vp = v
  13613. }
  13614. }
  13615. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, checkNil bool, canChange bool,
  13616. d *Decoder) (_ map[string]uint16, changed bool) {
  13617. dd := d.d
  13618. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13619. if checkNil && dd.TryDecodeAsNil() {
  13620. if v != nil {
  13621. changed = true
  13622. }
  13623. return nil, changed
  13624. }
  13625. containerLen := dd.ReadMapStart()
  13626. if canChange && v == nil {
  13627. if containerLen > 0 {
  13628. v = make(map[string]uint16, containerLen)
  13629. } else {
  13630. v = make(map[string]uint16) // supports indefinite-length, etc
  13631. }
  13632. changed = true
  13633. }
  13634. if containerLen > 0 {
  13635. for j := 0; j < containerLen; j++ {
  13636. mk := dd.DecodeString()
  13637. mv := v[mk]
  13638. mv = uint16(dd.DecodeUint(16))
  13639. if v != nil {
  13640. v[mk] = mv
  13641. }
  13642. }
  13643. } else if containerLen < 0 {
  13644. for j := 0; !dd.CheckBreak(); j++ {
  13645. if j > 0 {
  13646. dd.ReadMapEntrySeparator()
  13647. }
  13648. mk := dd.DecodeString()
  13649. dd.ReadMapKVSeparator()
  13650. mv := v[mk]
  13651. mv = uint16(dd.DecodeUint(16))
  13652. if v != nil {
  13653. v[mk] = mv
  13654. }
  13655. }
  13656. dd.ReadMapEnd()
  13657. }
  13658. return v, changed
  13659. }
  13660. func (f decFnInfo) fastpathDecMapStringUint32R(rv reflect.Value) {
  13661. if rv.CanAddr() {
  13662. vp := rv.Addr().Interface().(*map[string]uint32)
  13663. v, changed := fastpathTV.DecMapStringUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  13664. if changed {
  13665. *vp = v
  13666. }
  13667. } else {
  13668. v := rv.Interface().(map[string]uint32)
  13669. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, f.d)
  13670. }
  13671. }
  13672. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, checkNil bool, d *Decoder) {
  13673. v, changed := f.DecMapStringUint32V(*vp, checkNil, true, d)
  13674. if changed {
  13675. *vp = v
  13676. }
  13677. }
  13678. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, checkNil bool, canChange bool,
  13679. d *Decoder) (_ map[string]uint32, changed bool) {
  13680. dd := d.d
  13681. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13682. if checkNil && dd.TryDecodeAsNil() {
  13683. if v != nil {
  13684. changed = true
  13685. }
  13686. return nil, changed
  13687. }
  13688. containerLen := dd.ReadMapStart()
  13689. if canChange && v == nil {
  13690. if containerLen > 0 {
  13691. v = make(map[string]uint32, containerLen)
  13692. } else {
  13693. v = make(map[string]uint32) // supports indefinite-length, etc
  13694. }
  13695. changed = true
  13696. }
  13697. if containerLen > 0 {
  13698. for j := 0; j < containerLen; j++ {
  13699. mk := dd.DecodeString()
  13700. mv := v[mk]
  13701. mv = uint32(dd.DecodeUint(32))
  13702. if v != nil {
  13703. v[mk] = mv
  13704. }
  13705. }
  13706. } else if containerLen < 0 {
  13707. for j := 0; !dd.CheckBreak(); j++ {
  13708. if j > 0 {
  13709. dd.ReadMapEntrySeparator()
  13710. }
  13711. mk := dd.DecodeString()
  13712. dd.ReadMapKVSeparator()
  13713. mv := v[mk]
  13714. mv = uint32(dd.DecodeUint(32))
  13715. if v != nil {
  13716. v[mk] = mv
  13717. }
  13718. }
  13719. dd.ReadMapEnd()
  13720. }
  13721. return v, changed
  13722. }
  13723. func (f decFnInfo) fastpathDecMapStringUint64R(rv reflect.Value) {
  13724. if rv.CanAddr() {
  13725. vp := rv.Addr().Interface().(*map[string]uint64)
  13726. v, changed := fastpathTV.DecMapStringUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  13727. if changed {
  13728. *vp = v
  13729. }
  13730. } else {
  13731. v := rv.Interface().(map[string]uint64)
  13732. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, f.d)
  13733. }
  13734. }
  13735. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, checkNil bool, d *Decoder) {
  13736. v, changed := f.DecMapStringUint64V(*vp, checkNil, true, d)
  13737. if changed {
  13738. *vp = v
  13739. }
  13740. }
  13741. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, checkNil bool, canChange bool,
  13742. d *Decoder) (_ map[string]uint64, changed bool) {
  13743. dd := d.d
  13744. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13745. if checkNil && dd.TryDecodeAsNil() {
  13746. if v != nil {
  13747. changed = true
  13748. }
  13749. return nil, changed
  13750. }
  13751. containerLen := dd.ReadMapStart()
  13752. if canChange && v == nil {
  13753. if containerLen > 0 {
  13754. v = make(map[string]uint64, containerLen)
  13755. } else {
  13756. v = make(map[string]uint64) // supports indefinite-length, etc
  13757. }
  13758. changed = true
  13759. }
  13760. if containerLen > 0 {
  13761. for j := 0; j < containerLen; j++ {
  13762. mk := dd.DecodeString()
  13763. mv := v[mk]
  13764. mv = dd.DecodeUint(64)
  13765. if v != nil {
  13766. v[mk] = mv
  13767. }
  13768. }
  13769. } else if containerLen < 0 {
  13770. for j := 0; !dd.CheckBreak(); j++ {
  13771. if j > 0 {
  13772. dd.ReadMapEntrySeparator()
  13773. }
  13774. mk := dd.DecodeString()
  13775. dd.ReadMapKVSeparator()
  13776. mv := v[mk]
  13777. mv = dd.DecodeUint(64)
  13778. if v != nil {
  13779. v[mk] = mv
  13780. }
  13781. }
  13782. dd.ReadMapEnd()
  13783. }
  13784. return v, changed
  13785. }
  13786. func (f decFnInfo) fastpathDecMapStringIntR(rv reflect.Value) {
  13787. if rv.CanAddr() {
  13788. vp := rv.Addr().Interface().(*map[string]int)
  13789. v, changed := fastpathTV.DecMapStringIntV(*vp, fastpathCheckNilFalse, true, f.d)
  13790. if changed {
  13791. *vp = v
  13792. }
  13793. } else {
  13794. v := rv.Interface().(map[string]int)
  13795. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, f.d)
  13796. }
  13797. }
  13798. func (f fastpathT) DecMapStringIntX(vp *map[string]int, checkNil bool, d *Decoder) {
  13799. v, changed := f.DecMapStringIntV(*vp, checkNil, true, d)
  13800. if changed {
  13801. *vp = v
  13802. }
  13803. }
  13804. func (_ fastpathT) DecMapStringIntV(v map[string]int, checkNil bool, canChange bool,
  13805. d *Decoder) (_ map[string]int, changed bool) {
  13806. dd := d.d
  13807. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13808. if checkNil && dd.TryDecodeAsNil() {
  13809. if v != nil {
  13810. changed = true
  13811. }
  13812. return nil, changed
  13813. }
  13814. containerLen := dd.ReadMapStart()
  13815. if canChange && v == nil {
  13816. if containerLen > 0 {
  13817. v = make(map[string]int, containerLen)
  13818. } else {
  13819. v = make(map[string]int) // supports indefinite-length, etc
  13820. }
  13821. changed = true
  13822. }
  13823. if containerLen > 0 {
  13824. for j := 0; j < containerLen; j++ {
  13825. mk := dd.DecodeString()
  13826. mv := v[mk]
  13827. mv = int(dd.DecodeInt(intBitsize))
  13828. if v != nil {
  13829. v[mk] = mv
  13830. }
  13831. }
  13832. } else if containerLen < 0 {
  13833. for j := 0; !dd.CheckBreak(); j++ {
  13834. if j > 0 {
  13835. dd.ReadMapEntrySeparator()
  13836. }
  13837. mk := dd.DecodeString()
  13838. dd.ReadMapKVSeparator()
  13839. mv := v[mk]
  13840. mv = int(dd.DecodeInt(intBitsize))
  13841. if v != nil {
  13842. v[mk] = mv
  13843. }
  13844. }
  13845. dd.ReadMapEnd()
  13846. }
  13847. return v, changed
  13848. }
  13849. func (f decFnInfo) fastpathDecMapStringInt8R(rv reflect.Value) {
  13850. if rv.CanAddr() {
  13851. vp := rv.Addr().Interface().(*map[string]int8)
  13852. v, changed := fastpathTV.DecMapStringInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  13853. if changed {
  13854. *vp = v
  13855. }
  13856. } else {
  13857. v := rv.Interface().(map[string]int8)
  13858. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, f.d)
  13859. }
  13860. }
  13861. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, checkNil bool, d *Decoder) {
  13862. v, changed := f.DecMapStringInt8V(*vp, checkNil, true, d)
  13863. if changed {
  13864. *vp = v
  13865. }
  13866. }
  13867. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, checkNil bool, canChange bool,
  13868. d *Decoder) (_ map[string]int8, changed bool) {
  13869. dd := d.d
  13870. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13871. if checkNil && dd.TryDecodeAsNil() {
  13872. if v != nil {
  13873. changed = true
  13874. }
  13875. return nil, changed
  13876. }
  13877. containerLen := dd.ReadMapStart()
  13878. if canChange && v == nil {
  13879. if containerLen > 0 {
  13880. v = make(map[string]int8, containerLen)
  13881. } else {
  13882. v = make(map[string]int8) // supports indefinite-length, etc
  13883. }
  13884. changed = true
  13885. }
  13886. if containerLen > 0 {
  13887. for j := 0; j < containerLen; j++ {
  13888. mk := dd.DecodeString()
  13889. mv := v[mk]
  13890. mv = int8(dd.DecodeInt(8))
  13891. if v != nil {
  13892. v[mk] = mv
  13893. }
  13894. }
  13895. } else if containerLen < 0 {
  13896. for j := 0; !dd.CheckBreak(); j++ {
  13897. if j > 0 {
  13898. dd.ReadMapEntrySeparator()
  13899. }
  13900. mk := dd.DecodeString()
  13901. dd.ReadMapKVSeparator()
  13902. mv := v[mk]
  13903. mv = int8(dd.DecodeInt(8))
  13904. if v != nil {
  13905. v[mk] = mv
  13906. }
  13907. }
  13908. dd.ReadMapEnd()
  13909. }
  13910. return v, changed
  13911. }
  13912. func (f decFnInfo) fastpathDecMapStringInt16R(rv reflect.Value) {
  13913. if rv.CanAddr() {
  13914. vp := rv.Addr().Interface().(*map[string]int16)
  13915. v, changed := fastpathTV.DecMapStringInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  13916. if changed {
  13917. *vp = v
  13918. }
  13919. } else {
  13920. v := rv.Interface().(map[string]int16)
  13921. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, f.d)
  13922. }
  13923. }
  13924. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, checkNil bool, d *Decoder) {
  13925. v, changed := f.DecMapStringInt16V(*vp, checkNil, true, d)
  13926. if changed {
  13927. *vp = v
  13928. }
  13929. }
  13930. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, checkNil bool, canChange bool,
  13931. d *Decoder) (_ map[string]int16, changed bool) {
  13932. dd := d.d
  13933. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13934. if checkNil && dd.TryDecodeAsNil() {
  13935. if v != nil {
  13936. changed = true
  13937. }
  13938. return nil, changed
  13939. }
  13940. containerLen := dd.ReadMapStart()
  13941. if canChange && v == nil {
  13942. if containerLen > 0 {
  13943. v = make(map[string]int16, containerLen)
  13944. } else {
  13945. v = make(map[string]int16) // supports indefinite-length, etc
  13946. }
  13947. changed = true
  13948. }
  13949. if containerLen > 0 {
  13950. for j := 0; j < containerLen; j++ {
  13951. mk := dd.DecodeString()
  13952. mv := v[mk]
  13953. mv = int16(dd.DecodeInt(16))
  13954. if v != nil {
  13955. v[mk] = mv
  13956. }
  13957. }
  13958. } else if containerLen < 0 {
  13959. for j := 0; !dd.CheckBreak(); j++ {
  13960. if j > 0 {
  13961. dd.ReadMapEntrySeparator()
  13962. }
  13963. mk := dd.DecodeString()
  13964. dd.ReadMapKVSeparator()
  13965. mv := v[mk]
  13966. mv = int16(dd.DecodeInt(16))
  13967. if v != nil {
  13968. v[mk] = mv
  13969. }
  13970. }
  13971. dd.ReadMapEnd()
  13972. }
  13973. return v, changed
  13974. }
  13975. func (f decFnInfo) fastpathDecMapStringInt32R(rv reflect.Value) {
  13976. if rv.CanAddr() {
  13977. vp := rv.Addr().Interface().(*map[string]int32)
  13978. v, changed := fastpathTV.DecMapStringInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  13979. if changed {
  13980. *vp = v
  13981. }
  13982. } else {
  13983. v := rv.Interface().(map[string]int32)
  13984. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, f.d)
  13985. }
  13986. }
  13987. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, checkNil bool, d *Decoder) {
  13988. v, changed := f.DecMapStringInt32V(*vp, checkNil, true, d)
  13989. if changed {
  13990. *vp = v
  13991. }
  13992. }
  13993. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, checkNil bool, canChange bool,
  13994. d *Decoder) (_ map[string]int32, changed bool) {
  13995. dd := d.d
  13996. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  13997. if checkNil && dd.TryDecodeAsNil() {
  13998. if v != nil {
  13999. changed = true
  14000. }
  14001. return nil, changed
  14002. }
  14003. containerLen := dd.ReadMapStart()
  14004. if canChange && v == nil {
  14005. if containerLen > 0 {
  14006. v = make(map[string]int32, containerLen)
  14007. } else {
  14008. v = make(map[string]int32) // supports indefinite-length, etc
  14009. }
  14010. changed = true
  14011. }
  14012. if containerLen > 0 {
  14013. for j := 0; j < containerLen; j++ {
  14014. mk := dd.DecodeString()
  14015. mv := v[mk]
  14016. mv = int32(dd.DecodeInt(32))
  14017. if v != nil {
  14018. v[mk] = mv
  14019. }
  14020. }
  14021. } else if containerLen < 0 {
  14022. for j := 0; !dd.CheckBreak(); j++ {
  14023. if j > 0 {
  14024. dd.ReadMapEntrySeparator()
  14025. }
  14026. mk := dd.DecodeString()
  14027. dd.ReadMapKVSeparator()
  14028. mv := v[mk]
  14029. mv = int32(dd.DecodeInt(32))
  14030. if v != nil {
  14031. v[mk] = mv
  14032. }
  14033. }
  14034. dd.ReadMapEnd()
  14035. }
  14036. return v, changed
  14037. }
  14038. func (f decFnInfo) fastpathDecMapStringInt64R(rv reflect.Value) {
  14039. if rv.CanAddr() {
  14040. vp := rv.Addr().Interface().(*map[string]int64)
  14041. v, changed := fastpathTV.DecMapStringInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  14042. if changed {
  14043. *vp = v
  14044. }
  14045. } else {
  14046. v := rv.Interface().(map[string]int64)
  14047. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, f.d)
  14048. }
  14049. }
  14050. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, checkNil bool, d *Decoder) {
  14051. v, changed := f.DecMapStringInt64V(*vp, checkNil, true, d)
  14052. if changed {
  14053. *vp = v
  14054. }
  14055. }
  14056. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, checkNil bool, canChange bool,
  14057. d *Decoder) (_ map[string]int64, changed bool) {
  14058. dd := d.d
  14059. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14060. if checkNil && dd.TryDecodeAsNil() {
  14061. if v != nil {
  14062. changed = true
  14063. }
  14064. return nil, changed
  14065. }
  14066. containerLen := dd.ReadMapStart()
  14067. if canChange && v == nil {
  14068. if containerLen > 0 {
  14069. v = make(map[string]int64, containerLen)
  14070. } else {
  14071. v = make(map[string]int64) // supports indefinite-length, etc
  14072. }
  14073. changed = true
  14074. }
  14075. if containerLen > 0 {
  14076. for j := 0; j < containerLen; j++ {
  14077. mk := dd.DecodeString()
  14078. mv := v[mk]
  14079. mv = dd.DecodeInt(64)
  14080. if v != nil {
  14081. v[mk] = mv
  14082. }
  14083. }
  14084. } else if containerLen < 0 {
  14085. for j := 0; !dd.CheckBreak(); j++ {
  14086. if j > 0 {
  14087. dd.ReadMapEntrySeparator()
  14088. }
  14089. mk := dd.DecodeString()
  14090. dd.ReadMapKVSeparator()
  14091. mv := v[mk]
  14092. mv = dd.DecodeInt(64)
  14093. if v != nil {
  14094. v[mk] = mv
  14095. }
  14096. }
  14097. dd.ReadMapEnd()
  14098. }
  14099. return v, changed
  14100. }
  14101. func (f decFnInfo) fastpathDecMapStringFloat32R(rv reflect.Value) {
  14102. if rv.CanAddr() {
  14103. vp := rv.Addr().Interface().(*map[string]float32)
  14104. v, changed := fastpathTV.DecMapStringFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  14105. if changed {
  14106. *vp = v
  14107. }
  14108. } else {
  14109. v := rv.Interface().(map[string]float32)
  14110. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, f.d)
  14111. }
  14112. }
  14113. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, checkNil bool, d *Decoder) {
  14114. v, changed := f.DecMapStringFloat32V(*vp, checkNil, true, d)
  14115. if changed {
  14116. *vp = v
  14117. }
  14118. }
  14119. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, checkNil bool, canChange bool,
  14120. d *Decoder) (_ map[string]float32, changed bool) {
  14121. dd := d.d
  14122. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14123. if checkNil && dd.TryDecodeAsNil() {
  14124. if v != nil {
  14125. changed = true
  14126. }
  14127. return nil, changed
  14128. }
  14129. containerLen := dd.ReadMapStart()
  14130. if canChange && v == nil {
  14131. if containerLen > 0 {
  14132. v = make(map[string]float32, containerLen)
  14133. } else {
  14134. v = make(map[string]float32) // supports indefinite-length, etc
  14135. }
  14136. changed = true
  14137. }
  14138. if containerLen > 0 {
  14139. for j := 0; j < containerLen; j++ {
  14140. mk := dd.DecodeString()
  14141. mv := v[mk]
  14142. mv = float32(dd.DecodeFloat(true))
  14143. if v != nil {
  14144. v[mk] = mv
  14145. }
  14146. }
  14147. } else if containerLen < 0 {
  14148. for j := 0; !dd.CheckBreak(); j++ {
  14149. if j > 0 {
  14150. dd.ReadMapEntrySeparator()
  14151. }
  14152. mk := dd.DecodeString()
  14153. dd.ReadMapKVSeparator()
  14154. mv := v[mk]
  14155. mv = float32(dd.DecodeFloat(true))
  14156. if v != nil {
  14157. v[mk] = mv
  14158. }
  14159. }
  14160. dd.ReadMapEnd()
  14161. }
  14162. return v, changed
  14163. }
  14164. func (f decFnInfo) fastpathDecMapStringFloat64R(rv reflect.Value) {
  14165. if rv.CanAddr() {
  14166. vp := rv.Addr().Interface().(*map[string]float64)
  14167. v, changed := fastpathTV.DecMapStringFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  14168. if changed {
  14169. *vp = v
  14170. }
  14171. } else {
  14172. v := rv.Interface().(map[string]float64)
  14173. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, f.d)
  14174. }
  14175. }
  14176. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, checkNil bool, d *Decoder) {
  14177. v, changed := f.DecMapStringFloat64V(*vp, checkNil, true, d)
  14178. if changed {
  14179. *vp = v
  14180. }
  14181. }
  14182. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, checkNil bool, canChange bool,
  14183. d *Decoder) (_ map[string]float64, changed bool) {
  14184. dd := d.d
  14185. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14186. if checkNil && dd.TryDecodeAsNil() {
  14187. if v != nil {
  14188. changed = true
  14189. }
  14190. return nil, changed
  14191. }
  14192. containerLen := dd.ReadMapStart()
  14193. if canChange && v == nil {
  14194. if containerLen > 0 {
  14195. v = make(map[string]float64, containerLen)
  14196. } else {
  14197. v = make(map[string]float64) // supports indefinite-length, etc
  14198. }
  14199. changed = true
  14200. }
  14201. if containerLen > 0 {
  14202. for j := 0; j < containerLen; j++ {
  14203. mk := dd.DecodeString()
  14204. mv := v[mk]
  14205. mv = dd.DecodeFloat(false)
  14206. if v != nil {
  14207. v[mk] = mv
  14208. }
  14209. }
  14210. } else if containerLen < 0 {
  14211. for j := 0; !dd.CheckBreak(); j++ {
  14212. if j > 0 {
  14213. dd.ReadMapEntrySeparator()
  14214. }
  14215. mk := dd.DecodeString()
  14216. dd.ReadMapKVSeparator()
  14217. mv := v[mk]
  14218. mv = dd.DecodeFloat(false)
  14219. if v != nil {
  14220. v[mk] = mv
  14221. }
  14222. }
  14223. dd.ReadMapEnd()
  14224. }
  14225. return v, changed
  14226. }
  14227. func (f decFnInfo) fastpathDecMapStringBoolR(rv reflect.Value) {
  14228. if rv.CanAddr() {
  14229. vp := rv.Addr().Interface().(*map[string]bool)
  14230. v, changed := fastpathTV.DecMapStringBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  14231. if changed {
  14232. *vp = v
  14233. }
  14234. } else {
  14235. v := rv.Interface().(map[string]bool)
  14236. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, f.d)
  14237. }
  14238. }
  14239. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, checkNil bool, d *Decoder) {
  14240. v, changed := f.DecMapStringBoolV(*vp, checkNil, true, d)
  14241. if changed {
  14242. *vp = v
  14243. }
  14244. }
  14245. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, checkNil bool, canChange bool,
  14246. d *Decoder) (_ map[string]bool, changed bool) {
  14247. dd := d.d
  14248. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14249. if checkNil && dd.TryDecodeAsNil() {
  14250. if v != nil {
  14251. changed = true
  14252. }
  14253. return nil, changed
  14254. }
  14255. containerLen := dd.ReadMapStart()
  14256. if canChange && v == nil {
  14257. if containerLen > 0 {
  14258. v = make(map[string]bool, containerLen)
  14259. } else {
  14260. v = make(map[string]bool) // supports indefinite-length, etc
  14261. }
  14262. changed = true
  14263. }
  14264. if containerLen > 0 {
  14265. for j := 0; j < containerLen; j++ {
  14266. mk := dd.DecodeString()
  14267. mv := v[mk]
  14268. mv = dd.DecodeBool()
  14269. if v != nil {
  14270. v[mk] = mv
  14271. }
  14272. }
  14273. } else if containerLen < 0 {
  14274. for j := 0; !dd.CheckBreak(); j++ {
  14275. if j > 0 {
  14276. dd.ReadMapEntrySeparator()
  14277. }
  14278. mk := dd.DecodeString()
  14279. dd.ReadMapKVSeparator()
  14280. mv := v[mk]
  14281. mv = dd.DecodeBool()
  14282. if v != nil {
  14283. v[mk] = mv
  14284. }
  14285. }
  14286. dd.ReadMapEnd()
  14287. }
  14288. return v, changed
  14289. }
  14290. func (f decFnInfo) fastpathDecMapFloat32IntfR(rv reflect.Value) {
  14291. if rv.CanAddr() {
  14292. vp := rv.Addr().Interface().(*map[float32]interface{})
  14293. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  14294. if changed {
  14295. *vp = v
  14296. }
  14297. } else {
  14298. v := rv.Interface().(map[float32]interface{})
  14299. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, f.d)
  14300. }
  14301. }
  14302. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, checkNil bool, d *Decoder) {
  14303. v, changed := f.DecMapFloat32IntfV(*vp, checkNil, true, d)
  14304. if changed {
  14305. *vp = v
  14306. }
  14307. }
  14308. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, checkNil bool, canChange bool,
  14309. d *Decoder) (_ map[float32]interface{}, changed bool) {
  14310. dd := d.d
  14311. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14312. if checkNil && dd.TryDecodeAsNil() {
  14313. if v != nil {
  14314. changed = true
  14315. }
  14316. return nil, changed
  14317. }
  14318. containerLen := dd.ReadMapStart()
  14319. if canChange && v == nil {
  14320. if containerLen > 0 {
  14321. v = make(map[float32]interface{}, containerLen)
  14322. } else {
  14323. v = make(map[float32]interface{}) // supports indefinite-length, etc
  14324. }
  14325. changed = true
  14326. }
  14327. if containerLen > 0 {
  14328. for j := 0; j < containerLen; j++ {
  14329. mk := float32(dd.DecodeFloat(true))
  14330. mv := v[mk]
  14331. d.decode(&mv)
  14332. if v != nil {
  14333. v[mk] = mv
  14334. }
  14335. }
  14336. } else if containerLen < 0 {
  14337. for j := 0; !dd.CheckBreak(); j++ {
  14338. if j > 0 {
  14339. dd.ReadMapEntrySeparator()
  14340. }
  14341. mk := float32(dd.DecodeFloat(true))
  14342. dd.ReadMapKVSeparator()
  14343. mv := v[mk]
  14344. d.decode(&mv)
  14345. if v != nil {
  14346. v[mk] = mv
  14347. }
  14348. }
  14349. dd.ReadMapEnd()
  14350. }
  14351. return v, changed
  14352. }
  14353. func (f decFnInfo) fastpathDecMapFloat32StringR(rv reflect.Value) {
  14354. if rv.CanAddr() {
  14355. vp := rv.Addr().Interface().(*map[float32]string)
  14356. v, changed := fastpathTV.DecMapFloat32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  14357. if changed {
  14358. *vp = v
  14359. }
  14360. } else {
  14361. v := rv.Interface().(map[float32]string)
  14362. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, f.d)
  14363. }
  14364. }
  14365. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, checkNil bool, d *Decoder) {
  14366. v, changed := f.DecMapFloat32StringV(*vp, checkNil, true, d)
  14367. if changed {
  14368. *vp = v
  14369. }
  14370. }
  14371. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, checkNil bool, canChange bool,
  14372. d *Decoder) (_ map[float32]string, changed bool) {
  14373. dd := d.d
  14374. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14375. if checkNil && dd.TryDecodeAsNil() {
  14376. if v != nil {
  14377. changed = true
  14378. }
  14379. return nil, changed
  14380. }
  14381. containerLen := dd.ReadMapStart()
  14382. if canChange && v == nil {
  14383. if containerLen > 0 {
  14384. v = make(map[float32]string, containerLen)
  14385. } else {
  14386. v = make(map[float32]string) // supports indefinite-length, etc
  14387. }
  14388. changed = true
  14389. }
  14390. if containerLen > 0 {
  14391. for j := 0; j < containerLen; j++ {
  14392. mk := float32(dd.DecodeFloat(true))
  14393. mv := v[mk]
  14394. mv = dd.DecodeString()
  14395. if v != nil {
  14396. v[mk] = mv
  14397. }
  14398. }
  14399. } else if containerLen < 0 {
  14400. for j := 0; !dd.CheckBreak(); j++ {
  14401. if j > 0 {
  14402. dd.ReadMapEntrySeparator()
  14403. }
  14404. mk := float32(dd.DecodeFloat(true))
  14405. dd.ReadMapKVSeparator()
  14406. mv := v[mk]
  14407. mv = dd.DecodeString()
  14408. if v != nil {
  14409. v[mk] = mv
  14410. }
  14411. }
  14412. dd.ReadMapEnd()
  14413. }
  14414. return v, changed
  14415. }
  14416. func (f decFnInfo) fastpathDecMapFloat32UintR(rv reflect.Value) {
  14417. if rv.CanAddr() {
  14418. vp := rv.Addr().Interface().(*map[float32]uint)
  14419. v, changed := fastpathTV.DecMapFloat32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  14420. if changed {
  14421. *vp = v
  14422. }
  14423. } else {
  14424. v := rv.Interface().(map[float32]uint)
  14425. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, f.d)
  14426. }
  14427. }
  14428. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, checkNil bool, d *Decoder) {
  14429. v, changed := f.DecMapFloat32UintV(*vp, checkNil, true, d)
  14430. if changed {
  14431. *vp = v
  14432. }
  14433. }
  14434. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, checkNil bool, canChange bool,
  14435. d *Decoder) (_ map[float32]uint, changed bool) {
  14436. dd := d.d
  14437. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14438. if checkNil && dd.TryDecodeAsNil() {
  14439. if v != nil {
  14440. changed = true
  14441. }
  14442. return nil, changed
  14443. }
  14444. containerLen := dd.ReadMapStart()
  14445. if canChange && v == nil {
  14446. if containerLen > 0 {
  14447. v = make(map[float32]uint, containerLen)
  14448. } else {
  14449. v = make(map[float32]uint) // supports indefinite-length, etc
  14450. }
  14451. changed = true
  14452. }
  14453. if containerLen > 0 {
  14454. for j := 0; j < containerLen; j++ {
  14455. mk := float32(dd.DecodeFloat(true))
  14456. mv := v[mk]
  14457. mv = uint(dd.DecodeUint(uintBitsize))
  14458. if v != nil {
  14459. v[mk] = mv
  14460. }
  14461. }
  14462. } else if containerLen < 0 {
  14463. for j := 0; !dd.CheckBreak(); j++ {
  14464. if j > 0 {
  14465. dd.ReadMapEntrySeparator()
  14466. }
  14467. mk := float32(dd.DecodeFloat(true))
  14468. dd.ReadMapKVSeparator()
  14469. mv := v[mk]
  14470. mv = uint(dd.DecodeUint(uintBitsize))
  14471. if v != nil {
  14472. v[mk] = mv
  14473. }
  14474. }
  14475. dd.ReadMapEnd()
  14476. }
  14477. return v, changed
  14478. }
  14479. func (f decFnInfo) fastpathDecMapFloat32Uint8R(rv reflect.Value) {
  14480. if rv.CanAddr() {
  14481. vp := rv.Addr().Interface().(*map[float32]uint8)
  14482. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  14483. if changed {
  14484. *vp = v
  14485. }
  14486. } else {
  14487. v := rv.Interface().(map[float32]uint8)
  14488. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  14489. }
  14490. }
  14491. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, checkNil bool, d *Decoder) {
  14492. v, changed := f.DecMapFloat32Uint8V(*vp, checkNil, true, d)
  14493. if changed {
  14494. *vp = v
  14495. }
  14496. }
  14497. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, checkNil bool, canChange bool,
  14498. d *Decoder) (_ map[float32]uint8, changed bool) {
  14499. dd := d.d
  14500. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14501. if checkNil && dd.TryDecodeAsNil() {
  14502. if v != nil {
  14503. changed = true
  14504. }
  14505. return nil, changed
  14506. }
  14507. containerLen := dd.ReadMapStart()
  14508. if canChange && v == nil {
  14509. if containerLen > 0 {
  14510. v = make(map[float32]uint8, containerLen)
  14511. } else {
  14512. v = make(map[float32]uint8) // supports indefinite-length, etc
  14513. }
  14514. changed = true
  14515. }
  14516. if containerLen > 0 {
  14517. for j := 0; j < containerLen; j++ {
  14518. mk := float32(dd.DecodeFloat(true))
  14519. mv := v[mk]
  14520. mv = uint8(dd.DecodeUint(8))
  14521. if v != nil {
  14522. v[mk] = mv
  14523. }
  14524. }
  14525. } else if containerLen < 0 {
  14526. for j := 0; !dd.CheckBreak(); j++ {
  14527. if j > 0 {
  14528. dd.ReadMapEntrySeparator()
  14529. }
  14530. mk := float32(dd.DecodeFloat(true))
  14531. dd.ReadMapKVSeparator()
  14532. mv := v[mk]
  14533. mv = uint8(dd.DecodeUint(8))
  14534. if v != nil {
  14535. v[mk] = mv
  14536. }
  14537. }
  14538. dd.ReadMapEnd()
  14539. }
  14540. return v, changed
  14541. }
  14542. func (f decFnInfo) fastpathDecMapFloat32Uint16R(rv reflect.Value) {
  14543. if rv.CanAddr() {
  14544. vp := rv.Addr().Interface().(*map[float32]uint16)
  14545. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  14546. if changed {
  14547. *vp = v
  14548. }
  14549. } else {
  14550. v := rv.Interface().(map[float32]uint16)
  14551. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  14552. }
  14553. }
  14554. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, checkNil bool, d *Decoder) {
  14555. v, changed := f.DecMapFloat32Uint16V(*vp, checkNil, true, d)
  14556. if changed {
  14557. *vp = v
  14558. }
  14559. }
  14560. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, checkNil bool, canChange bool,
  14561. d *Decoder) (_ map[float32]uint16, changed bool) {
  14562. dd := d.d
  14563. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14564. if checkNil && dd.TryDecodeAsNil() {
  14565. if v != nil {
  14566. changed = true
  14567. }
  14568. return nil, changed
  14569. }
  14570. containerLen := dd.ReadMapStart()
  14571. if canChange && v == nil {
  14572. if containerLen > 0 {
  14573. v = make(map[float32]uint16, containerLen)
  14574. } else {
  14575. v = make(map[float32]uint16) // supports indefinite-length, etc
  14576. }
  14577. changed = true
  14578. }
  14579. if containerLen > 0 {
  14580. for j := 0; j < containerLen; j++ {
  14581. mk := float32(dd.DecodeFloat(true))
  14582. mv := v[mk]
  14583. mv = uint16(dd.DecodeUint(16))
  14584. if v != nil {
  14585. v[mk] = mv
  14586. }
  14587. }
  14588. } else if containerLen < 0 {
  14589. for j := 0; !dd.CheckBreak(); j++ {
  14590. if j > 0 {
  14591. dd.ReadMapEntrySeparator()
  14592. }
  14593. mk := float32(dd.DecodeFloat(true))
  14594. dd.ReadMapKVSeparator()
  14595. mv := v[mk]
  14596. mv = uint16(dd.DecodeUint(16))
  14597. if v != nil {
  14598. v[mk] = mv
  14599. }
  14600. }
  14601. dd.ReadMapEnd()
  14602. }
  14603. return v, changed
  14604. }
  14605. func (f decFnInfo) fastpathDecMapFloat32Uint32R(rv reflect.Value) {
  14606. if rv.CanAddr() {
  14607. vp := rv.Addr().Interface().(*map[float32]uint32)
  14608. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  14609. if changed {
  14610. *vp = v
  14611. }
  14612. } else {
  14613. v := rv.Interface().(map[float32]uint32)
  14614. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  14615. }
  14616. }
  14617. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, checkNil bool, d *Decoder) {
  14618. v, changed := f.DecMapFloat32Uint32V(*vp, checkNil, true, d)
  14619. if changed {
  14620. *vp = v
  14621. }
  14622. }
  14623. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, checkNil bool, canChange bool,
  14624. d *Decoder) (_ map[float32]uint32, changed bool) {
  14625. dd := d.d
  14626. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14627. if checkNil && dd.TryDecodeAsNil() {
  14628. if v != nil {
  14629. changed = true
  14630. }
  14631. return nil, changed
  14632. }
  14633. containerLen := dd.ReadMapStart()
  14634. if canChange && v == nil {
  14635. if containerLen > 0 {
  14636. v = make(map[float32]uint32, containerLen)
  14637. } else {
  14638. v = make(map[float32]uint32) // supports indefinite-length, etc
  14639. }
  14640. changed = true
  14641. }
  14642. if containerLen > 0 {
  14643. for j := 0; j < containerLen; j++ {
  14644. mk := float32(dd.DecodeFloat(true))
  14645. mv := v[mk]
  14646. mv = uint32(dd.DecodeUint(32))
  14647. if v != nil {
  14648. v[mk] = mv
  14649. }
  14650. }
  14651. } else if containerLen < 0 {
  14652. for j := 0; !dd.CheckBreak(); j++ {
  14653. if j > 0 {
  14654. dd.ReadMapEntrySeparator()
  14655. }
  14656. mk := float32(dd.DecodeFloat(true))
  14657. dd.ReadMapKVSeparator()
  14658. mv := v[mk]
  14659. mv = uint32(dd.DecodeUint(32))
  14660. if v != nil {
  14661. v[mk] = mv
  14662. }
  14663. }
  14664. dd.ReadMapEnd()
  14665. }
  14666. return v, changed
  14667. }
  14668. func (f decFnInfo) fastpathDecMapFloat32Uint64R(rv reflect.Value) {
  14669. if rv.CanAddr() {
  14670. vp := rv.Addr().Interface().(*map[float32]uint64)
  14671. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  14672. if changed {
  14673. *vp = v
  14674. }
  14675. } else {
  14676. v := rv.Interface().(map[float32]uint64)
  14677. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  14678. }
  14679. }
  14680. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, checkNil bool, d *Decoder) {
  14681. v, changed := f.DecMapFloat32Uint64V(*vp, checkNil, true, d)
  14682. if changed {
  14683. *vp = v
  14684. }
  14685. }
  14686. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, checkNil bool, canChange bool,
  14687. d *Decoder) (_ map[float32]uint64, changed bool) {
  14688. dd := d.d
  14689. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14690. if checkNil && dd.TryDecodeAsNil() {
  14691. if v != nil {
  14692. changed = true
  14693. }
  14694. return nil, changed
  14695. }
  14696. containerLen := dd.ReadMapStart()
  14697. if canChange && v == nil {
  14698. if containerLen > 0 {
  14699. v = make(map[float32]uint64, containerLen)
  14700. } else {
  14701. v = make(map[float32]uint64) // supports indefinite-length, etc
  14702. }
  14703. changed = true
  14704. }
  14705. if containerLen > 0 {
  14706. for j := 0; j < containerLen; j++ {
  14707. mk := float32(dd.DecodeFloat(true))
  14708. mv := v[mk]
  14709. mv = dd.DecodeUint(64)
  14710. if v != nil {
  14711. v[mk] = mv
  14712. }
  14713. }
  14714. } else if containerLen < 0 {
  14715. for j := 0; !dd.CheckBreak(); j++ {
  14716. if j > 0 {
  14717. dd.ReadMapEntrySeparator()
  14718. }
  14719. mk := float32(dd.DecodeFloat(true))
  14720. dd.ReadMapKVSeparator()
  14721. mv := v[mk]
  14722. mv = dd.DecodeUint(64)
  14723. if v != nil {
  14724. v[mk] = mv
  14725. }
  14726. }
  14727. dd.ReadMapEnd()
  14728. }
  14729. return v, changed
  14730. }
  14731. func (f decFnInfo) fastpathDecMapFloat32IntR(rv reflect.Value) {
  14732. if rv.CanAddr() {
  14733. vp := rv.Addr().Interface().(*map[float32]int)
  14734. v, changed := fastpathTV.DecMapFloat32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  14735. if changed {
  14736. *vp = v
  14737. }
  14738. } else {
  14739. v := rv.Interface().(map[float32]int)
  14740. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, f.d)
  14741. }
  14742. }
  14743. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, checkNil bool, d *Decoder) {
  14744. v, changed := f.DecMapFloat32IntV(*vp, checkNil, true, d)
  14745. if changed {
  14746. *vp = v
  14747. }
  14748. }
  14749. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, checkNil bool, canChange bool,
  14750. d *Decoder) (_ map[float32]int, changed bool) {
  14751. dd := d.d
  14752. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14753. if checkNil && dd.TryDecodeAsNil() {
  14754. if v != nil {
  14755. changed = true
  14756. }
  14757. return nil, changed
  14758. }
  14759. containerLen := dd.ReadMapStart()
  14760. if canChange && v == nil {
  14761. if containerLen > 0 {
  14762. v = make(map[float32]int, containerLen)
  14763. } else {
  14764. v = make(map[float32]int) // supports indefinite-length, etc
  14765. }
  14766. changed = true
  14767. }
  14768. if containerLen > 0 {
  14769. for j := 0; j < containerLen; j++ {
  14770. mk := float32(dd.DecodeFloat(true))
  14771. mv := v[mk]
  14772. mv = int(dd.DecodeInt(intBitsize))
  14773. if v != nil {
  14774. v[mk] = mv
  14775. }
  14776. }
  14777. } else if containerLen < 0 {
  14778. for j := 0; !dd.CheckBreak(); j++ {
  14779. if j > 0 {
  14780. dd.ReadMapEntrySeparator()
  14781. }
  14782. mk := float32(dd.DecodeFloat(true))
  14783. dd.ReadMapKVSeparator()
  14784. mv := v[mk]
  14785. mv = int(dd.DecodeInt(intBitsize))
  14786. if v != nil {
  14787. v[mk] = mv
  14788. }
  14789. }
  14790. dd.ReadMapEnd()
  14791. }
  14792. return v, changed
  14793. }
  14794. func (f decFnInfo) fastpathDecMapFloat32Int8R(rv reflect.Value) {
  14795. if rv.CanAddr() {
  14796. vp := rv.Addr().Interface().(*map[float32]int8)
  14797. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  14798. if changed {
  14799. *vp = v
  14800. }
  14801. } else {
  14802. v := rv.Interface().(map[float32]int8)
  14803. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, f.d)
  14804. }
  14805. }
  14806. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, checkNil bool, d *Decoder) {
  14807. v, changed := f.DecMapFloat32Int8V(*vp, checkNil, true, d)
  14808. if changed {
  14809. *vp = v
  14810. }
  14811. }
  14812. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, checkNil bool, canChange bool,
  14813. d *Decoder) (_ map[float32]int8, changed bool) {
  14814. dd := d.d
  14815. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14816. if checkNil && dd.TryDecodeAsNil() {
  14817. if v != nil {
  14818. changed = true
  14819. }
  14820. return nil, changed
  14821. }
  14822. containerLen := dd.ReadMapStart()
  14823. if canChange && v == nil {
  14824. if containerLen > 0 {
  14825. v = make(map[float32]int8, containerLen)
  14826. } else {
  14827. v = make(map[float32]int8) // supports indefinite-length, etc
  14828. }
  14829. changed = true
  14830. }
  14831. if containerLen > 0 {
  14832. for j := 0; j < containerLen; j++ {
  14833. mk := float32(dd.DecodeFloat(true))
  14834. mv := v[mk]
  14835. mv = int8(dd.DecodeInt(8))
  14836. if v != nil {
  14837. v[mk] = mv
  14838. }
  14839. }
  14840. } else if containerLen < 0 {
  14841. for j := 0; !dd.CheckBreak(); j++ {
  14842. if j > 0 {
  14843. dd.ReadMapEntrySeparator()
  14844. }
  14845. mk := float32(dd.DecodeFloat(true))
  14846. dd.ReadMapKVSeparator()
  14847. mv := v[mk]
  14848. mv = int8(dd.DecodeInt(8))
  14849. if v != nil {
  14850. v[mk] = mv
  14851. }
  14852. }
  14853. dd.ReadMapEnd()
  14854. }
  14855. return v, changed
  14856. }
  14857. func (f decFnInfo) fastpathDecMapFloat32Int16R(rv reflect.Value) {
  14858. if rv.CanAddr() {
  14859. vp := rv.Addr().Interface().(*map[float32]int16)
  14860. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  14861. if changed {
  14862. *vp = v
  14863. }
  14864. } else {
  14865. v := rv.Interface().(map[float32]int16)
  14866. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, f.d)
  14867. }
  14868. }
  14869. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, checkNil bool, d *Decoder) {
  14870. v, changed := f.DecMapFloat32Int16V(*vp, checkNil, true, d)
  14871. if changed {
  14872. *vp = v
  14873. }
  14874. }
  14875. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, checkNil bool, canChange bool,
  14876. d *Decoder) (_ map[float32]int16, changed bool) {
  14877. dd := d.d
  14878. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14879. if checkNil && dd.TryDecodeAsNil() {
  14880. if v != nil {
  14881. changed = true
  14882. }
  14883. return nil, changed
  14884. }
  14885. containerLen := dd.ReadMapStart()
  14886. if canChange && v == nil {
  14887. if containerLen > 0 {
  14888. v = make(map[float32]int16, containerLen)
  14889. } else {
  14890. v = make(map[float32]int16) // supports indefinite-length, etc
  14891. }
  14892. changed = true
  14893. }
  14894. if containerLen > 0 {
  14895. for j := 0; j < containerLen; j++ {
  14896. mk := float32(dd.DecodeFloat(true))
  14897. mv := v[mk]
  14898. mv = int16(dd.DecodeInt(16))
  14899. if v != nil {
  14900. v[mk] = mv
  14901. }
  14902. }
  14903. } else if containerLen < 0 {
  14904. for j := 0; !dd.CheckBreak(); j++ {
  14905. if j > 0 {
  14906. dd.ReadMapEntrySeparator()
  14907. }
  14908. mk := float32(dd.DecodeFloat(true))
  14909. dd.ReadMapKVSeparator()
  14910. mv := v[mk]
  14911. mv = int16(dd.DecodeInt(16))
  14912. if v != nil {
  14913. v[mk] = mv
  14914. }
  14915. }
  14916. dd.ReadMapEnd()
  14917. }
  14918. return v, changed
  14919. }
  14920. func (f decFnInfo) fastpathDecMapFloat32Int32R(rv reflect.Value) {
  14921. if rv.CanAddr() {
  14922. vp := rv.Addr().Interface().(*map[float32]int32)
  14923. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  14924. if changed {
  14925. *vp = v
  14926. }
  14927. } else {
  14928. v := rv.Interface().(map[float32]int32)
  14929. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, f.d)
  14930. }
  14931. }
  14932. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, checkNil bool, d *Decoder) {
  14933. v, changed := f.DecMapFloat32Int32V(*vp, checkNil, true, d)
  14934. if changed {
  14935. *vp = v
  14936. }
  14937. }
  14938. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, checkNil bool, canChange bool,
  14939. d *Decoder) (_ map[float32]int32, changed bool) {
  14940. dd := d.d
  14941. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  14942. if checkNil && dd.TryDecodeAsNil() {
  14943. if v != nil {
  14944. changed = true
  14945. }
  14946. return nil, changed
  14947. }
  14948. containerLen := dd.ReadMapStart()
  14949. if canChange && v == nil {
  14950. if containerLen > 0 {
  14951. v = make(map[float32]int32, containerLen)
  14952. } else {
  14953. v = make(map[float32]int32) // supports indefinite-length, etc
  14954. }
  14955. changed = true
  14956. }
  14957. if containerLen > 0 {
  14958. for j := 0; j < containerLen; j++ {
  14959. mk := float32(dd.DecodeFloat(true))
  14960. mv := v[mk]
  14961. mv = int32(dd.DecodeInt(32))
  14962. if v != nil {
  14963. v[mk] = mv
  14964. }
  14965. }
  14966. } else if containerLen < 0 {
  14967. for j := 0; !dd.CheckBreak(); j++ {
  14968. if j > 0 {
  14969. dd.ReadMapEntrySeparator()
  14970. }
  14971. mk := float32(dd.DecodeFloat(true))
  14972. dd.ReadMapKVSeparator()
  14973. mv := v[mk]
  14974. mv = int32(dd.DecodeInt(32))
  14975. if v != nil {
  14976. v[mk] = mv
  14977. }
  14978. }
  14979. dd.ReadMapEnd()
  14980. }
  14981. return v, changed
  14982. }
  14983. func (f decFnInfo) fastpathDecMapFloat32Int64R(rv reflect.Value) {
  14984. if rv.CanAddr() {
  14985. vp := rv.Addr().Interface().(*map[float32]int64)
  14986. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  14987. if changed {
  14988. *vp = v
  14989. }
  14990. } else {
  14991. v := rv.Interface().(map[float32]int64)
  14992. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, f.d)
  14993. }
  14994. }
  14995. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, checkNil bool, d *Decoder) {
  14996. v, changed := f.DecMapFloat32Int64V(*vp, checkNil, true, d)
  14997. if changed {
  14998. *vp = v
  14999. }
  15000. }
  15001. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, checkNil bool, canChange bool,
  15002. d *Decoder) (_ map[float32]int64, changed bool) {
  15003. dd := d.d
  15004. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15005. if checkNil && dd.TryDecodeAsNil() {
  15006. if v != nil {
  15007. changed = true
  15008. }
  15009. return nil, changed
  15010. }
  15011. containerLen := dd.ReadMapStart()
  15012. if canChange && v == nil {
  15013. if containerLen > 0 {
  15014. v = make(map[float32]int64, containerLen)
  15015. } else {
  15016. v = make(map[float32]int64) // supports indefinite-length, etc
  15017. }
  15018. changed = true
  15019. }
  15020. if containerLen > 0 {
  15021. for j := 0; j < containerLen; j++ {
  15022. mk := float32(dd.DecodeFloat(true))
  15023. mv := v[mk]
  15024. mv = dd.DecodeInt(64)
  15025. if v != nil {
  15026. v[mk] = mv
  15027. }
  15028. }
  15029. } else if containerLen < 0 {
  15030. for j := 0; !dd.CheckBreak(); j++ {
  15031. if j > 0 {
  15032. dd.ReadMapEntrySeparator()
  15033. }
  15034. mk := float32(dd.DecodeFloat(true))
  15035. dd.ReadMapKVSeparator()
  15036. mv := v[mk]
  15037. mv = dd.DecodeInt(64)
  15038. if v != nil {
  15039. v[mk] = mv
  15040. }
  15041. }
  15042. dd.ReadMapEnd()
  15043. }
  15044. return v, changed
  15045. }
  15046. func (f decFnInfo) fastpathDecMapFloat32Float32R(rv reflect.Value) {
  15047. if rv.CanAddr() {
  15048. vp := rv.Addr().Interface().(*map[float32]float32)
  15049. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  15050. if changed {
  15051. *vp = v
  15052. }
  15053. } else {
  15054. v := rv.Interface().(map[float32]float32)
  15055. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, f.d)
  15056. }
  15057. }
  15058. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, checkNil bool, d *Decoder) {
  15059. v, changed := f.DecMapFloat32Float32V(*vp, checkNil, true, d)
  15060. if changed {
  15061. *vp = v
  15062. }
  15063. }
  15064. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, checkNil bool, canChange bool,
  15065. d *Decoder) (_ map[float32]float32, changed bool) {
  15066. dd := d.d
  15067. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15068. if checkNil && dd.TryDecodeAsNil() {
  15069. if v != nil {
  15070. changed = true
  15071. }
  15072. return nil, changed
  15073. }
  15074. containerLen := dd.ReadMapStart()
  15075. if canChange && v == nil {
  15076. if containerLen > 0 {
  15077. v = make(map[float32]float32, containerLen)
  15078. } else {
  15079. v = make(map[float32]float32) // supports indefinite-length, etc
  15080. }
  15081. changed = true
  15082. }
  15083. if containerLen > 0 {
  15084. for j := 0; j < containerLen; j++ {
  15085. mk := float32(dd.DecodeFloat(true))
  15086. mv := v[mk]
  15087. mv = float32(dd.DecodeFloat(true))
  15088. if v != nil {
  15089. v[mk] = mv
  15090. }
  15091. }
  15092. } else if containerLen < 0 {
  15093. for j := 0; !dd.CheckBreak(); j++ {
  15094. if j > 0 {
  15095. dd.ReadMapEntrySeparator()
  15096. }
  15097. mk := float32(dd.DecodeFloat(true))
  15098. dd.ReadMapKVSeparator()
  15099. mv := v[mk]
  15100. mv = float32(dd.DecodeFloat(true))
  15101. if v != nil {
  15102. v[mk] = mv
  15103. }
  15104. }
  15105. dd.ReadMapEnd()
  15106. }
  15107. return v, changed
  15108. }
  15109. func (f decFnInfo) fastpathDecMapFloat32Float64R(rv reflect.Value) {
  15110. if rv.CanAddr() {
  15111. vp := rv.Addr().Interface().(*map[float32]float64)
  15112. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  15113. if changed {
  15114. *vp = v
  15115. }
  15116. } else {
  15117. v := rv.Interface().(map[float32]float64)
  15118. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, f.d)
  15119. }
  15120. }
  15121. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, checkNil bool, d *Decoder) {
  15122. v, changed := f.DecMapFloat32Float64V(*vp, checkNil, true, d)
  15123. if changed {
  15124. *vp = v
  15125. }
  15126. }
  15127. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, checkNil bool, canChange bool,
  15128. d *Decoder) (_ map[float32]float64, changed bool) {
  15129. dd := d.d
  15130. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15131. if checkNil && dd.TryDecodeAsNil() {
  15132. if v != nil {
  15133. changed = true
  15134. }
  15135. return nil, changed
  15136. }
  15137. containerLen := dd.ReadMapStart()
  15138. if canChange && v == nil {
  15139. if containerLen > 0 {
  15140. v = make(map[float32]float64, containerLen)
  15141. } else {
  15142. v = make(map[float32]float64) // supports indefinite-length, etc
  15143. }
  15144. changed = true
  15145. }
  15146. if containerLen > 0 {
  15147. for j := 0; j < containerLen; j++ {
  15148. mk := float32(dd.DecodeFloat(true))
  15149. mv := v[mk]
  15150. mv = dd.DecodeFloat(false)
  15151. if v != nil {
  15152. v[mk] = mv
  15153. }
  15154. }
  15155. } else if containerLen < 0 {
  15156. for j := 0; !dd.CheckBreak(); j++ {
  15157. if j > 0 {
  15158. dd.ReadMapEntrySeparator()
  15159. }
  15160. mk := float32(dd.DecodeFloat(true))
  15161. dd.ReadMapKVSeparator()
  15162. mv := v[mk]
  15163. mv = dd.DecodeFloat(false)
  15164. if v != nil {
  15165. v[mk] = mv
  15166. }
  15167. }
  15168. dd.ReadMapEnd()
  15169. }
  15170. return v, changed
  15171. }
  15172. func (f decFnInfo) fastpathDecMapFloat32BoolR(rv reflect.Value) {
  15173. if rv.CanAddr() {
  15174. vp := rv.Addr().Interface().(*map[float32]bool)
  15175. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  15176. if changed {
  15177. *vp = v
  15178. }
  15179. } else {
  15180. v := rv.Interface().(map[float32]bool)
  15181. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, f.d)
  15182. }
  15183. }
  15184. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, checkNil bool, d *Decoder) {
  15185. v, changed := f.DecMapFloat32BoolV(*vp, checkNil, true, d)
  15186. if changed {
  15187. *vp = v
  15188. }
  15189. }
  15190. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, checkNil bool, canChange bool,
  15191. d *Decoder) (_ map[float32]bool, changed bool) {
  15192. dd := d.d
  15193. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15194. if checkNil && dd.TryDecodeAsNil() {
  15195. if v != nil {
  15196. changed = true
  15197. }
  15198. return nil, changed
  15199. }
  15200. containerLen := dd.ReadMapStart()
  15201. if canChange && v == nil {
  15202. if containerLen > 0 {
  15203. v = make(map[float32]bool, containerLen)
  15204. } else {
  15205. v = make(map[float32]bool) // supports indefinite-length, etc
  15206. }
  15207. changed = true
  15208. }
  15209. if containerLen > 0 {
  15210. for j := 0; j < containerLen; j++ {
  15211. mk := float32(dd.DecodeFloat(true))
  15212. mv := v[mk]
  15213. mv = dd.DecodeBool()
  15214. if v != nil {
  15215. v[mk] = mv
  15216. }
  15217. }
  15218. } else if containerLen < 0 {
  15219. for j := 0; !dd.CheckBreak(); j++ {
  15220. if j > 0 {
  15221. dd.ReadMapEntrySeparator()
  15222. }
  15223. mk := float32(dd.DecodeFloat(true))
  15224. dd.ReadMapKVSeparator()
  15225. mv := v[mk]
  15226. mv = dd.DecodeBool()
  15227. if v != nil {
  15228. v[mk] = mv
  15229. }
  15230. }
  15231. dd.ReadMapEnd()
  15232. }
  15233. return v, changed
  15234. }
  15235. func (f decFnInfo) fastpathDecMapFloat64IntfR(rv reflect.Value) {
  15236. if rv.CanAddr() {
  15237. vp := rv.Addr().Interface().(*map[float64]interface{})
  15238. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  15239. if changed {
  15240. *vp = v
  15241. }
  15242. } else {
  15243. v := rv.Interface().(map[float64]interface{})
  15244. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, f.d)
  15245. }
  15246. }
  15247. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, checkNil bool, d *Decoder) {
  15248. v, changed := f.DecMapFloat64IntfV(*vp, checkNil, true, d)
  15249. if changed {
  15250. *vp = v
  15251. }
  15252. }
  15253. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, checkNil bool, canChange bool,
  15254. d *Decoder) (_ map[float64]interface{}, changed bool) {
  15255. dd := d.d
  15256. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15257. if checkNil && dd.TryDecodeAsNil() {
  15258. if v != nil {
  15259. changed = true
  15260. }
  15261. return nil, changed
  15262. }
  15263. containerLen := dd.ReadMapStart()
  15264. if canChange && v == nil {
  15265. if containerLen > 0 {
  15266. v = make(map[float64]interface{}, containerLen)
  15267. } else {
  15268. v = make(map[float64]interface{}) // supports indefinite-length, etc
  15269. }
  15270. changed = true
  15271. }
  15272. if containerLen > 0 {
  15273. for j := 0; j < containerLen; j++ {
  15274. mk := dd.DecodeFloat(false)
  15275. mv := v[mk]
  15276. d.decode(&mv)
  15277. if v != nil {
  15278. v[mk] = mv
  15279. }
  15280. }
  15281. } else if containerLen < 0 {
  15282. for j := 0; !dd.CheckBreak(); j++ {
  15283. if j > 0 {
  15284. dd.ReadMapEntrySeparator()
  15285. }
  15286. mk := dd.DecodeFloat(false)
  15287. dd.ReadMapKVSeparator()
  15288. mv := v[mk]
  15289. d.decode(&mv)
  15290. if v != nil {
  15291. v[mk] = mv
  15292. }
  15293. }
  15294. dd.ReadMapEnd()
  15295. }
  15296. return v, changed
  15297. }
  15298. func (f decFnInfo) fastpathDecMapFloat64StringR(rv reflect.Value) {
  15299. if rv.CanAddr() {
  15300. vp := rv.Addr().Interface().(*map[float64]string)
  15301. v, changed := fastpathTV.DecMapFloat64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  15302. if changed {
  15303. *vp = v
  15304. }
  15305. } else {
  15306. v := rv.Interface().(map[float64]string)
  15307. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, f.d)
  15308. }
  15309. }
  15310. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, checkNil bool, d *Decoder) {
  15311. v, changed := f.DecMapFloat64StringV(*vp, checkNil, true, d)
  15312. if changed {
  15313. *vp = v
  15314. }
  15315. }
  15316. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, checkNil bool, canChange bool,
  15317. d *Decoder) (_ map[float64]string, changed bool) {
  15318. dd := d.d
  15319. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15320. if checkNil && dd.TryDecodeAsNil() {
  15321. if v != nil {
  15322. changed = true
  15323. }
  15324. return nil, changed
  15325. }
  15326. containerLen := dd.ReadMapStart()
  15327. if canChange && v == nil {
  15328. if containerLen > 0 {
  15329. v = make(map[float64]string, containerLen)
  15330. } else {
  15331. v = make(map[float64]string) // supports indefinite-length, etc
  15332. }
  15333. changed = true
  15334. }
  15335. if containerLen > 0 {
  15336. for j := 0; j < containerLen; j++ {
  15337. mk := dd.DecodeFloat(false)
  15338. mv := v[mk]
  15339. mv = dd.DecodeString()
  15340. if v != nil {
  15341. v[mk] = mv
  15342. }
  15343. }
  15344. } else if containerLen < 0 {
  15345. for j := 0; !dd.CheckBreak(); j++ {
  15346. if j > 0 {
  15347. dd.ReadMapEntrySeparator()
  15348. }
  15349. mk := dd.DecodeFloat(false)
  15350. dd.ReadMapKVSeparator()
  15351. mv := v[mk]
  15352. mv = dd.DecodeString()
  15353. if v != nil {
  15354. v[mk] = mv
  15355. }
  15356. }
  15357. dd.ReadMapEnd()
  15358. }
  15359. return v, changed
  15360. }
  15361. func (f decFnInfo) fastpathDecMapFloat64UintR(rv reflect.Value) {
  15362. if rv.CanAddr() {
  15363. vp := rv.Addr().Interface().(*map[float64]uint)
  15364. v, changed := fastpathTV.DecMapFloat64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  15365. if changed {
  15366. *vp = v
  15367. }
  15368. } else {
  15369. v := rv.Interface().(map[float64]uint)
  15370. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, f.d)
  15371. }
  15372. }
  15373. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, checkNil bool, d *Decoder) {
  15374. v, changed := f.DecMapFloat64UintV(*vp, checkNil, true, d)
  15375. if changed {
  15376. *vp = v
  15377. }
  15378. }
  15379. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, checkNil bool, canChange bool,
  15380. d *Decoder) (_ map[float64]uint, changed bool) {
  15381. dd := d.d
  15382. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15383. if checkNil && dd.TryDecodeAsNil() {
  15384. if v != nil {
  15385. changed = true
  15386. }
  15387. return nil, changed
  15388. }
  15389. containerLen := dd.ReadMapStart()
  15390. if canChange && v == nil {
  15391. if containerLen > 0 {
  15392. v = make(map[float64]uint, containerLen)
  15393. } else {
  15394. v = make(map[float64]uint) // supports indefinite-length, etc
  15395. }
  15396. changed = true
  15397. }
  15398. if containerLen > 0 {
  15399. for j := 0; j < containerLen; j++ {
  15400. mk := dd.DecodeFloat(false)
  15401. mv := v[mk]
  15402. mv = uint(dd.DecodeUint(uintBitsize))
  15403. if v != nil {
  15404. v[mk] = mv
  15405. }
  15406. }
  15407. } else if containerLen < 0 {
  15408. for j := 0; !dd.CheckBreak(); j++ {
  15409. if j > 0 {
  15410. dd.ReadMapEntrySeparator()
  15411. }
  15412. mk := dd.DecodeFloat(false)
  15413. dd.ReadMapKVSeparator()
  15414. mv := v[mk]
  15415. mv = uint(dd.DecodeUint(uintBitsize))
  15416. if v != nil {
  15417. v[mk] = mv
  15418. }
  15419. }
  15420. dd.ReadMapEnd()
  15421. }
  15422. return v, changed
  15423. }
  15424. func (f decFnInfo) fastpathDecMapFloat64Uint8R(rv reflect.Value) {
  15425. if rv.CanAddr() {
  15426. vp := rv.Addr().Interface().(*map[float64]uint8)
  15427. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  15428. if changed {
  15429. *vp = v
  15430. }
  15431. } else {
  15432. v := rv.Interface().(map[float64]uint8)
  15433. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  15434. }
  15435. }
  15436. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, checkNil bool, d *Decoder) {
  15437. v, changed := f.DecMapFloat64Uint8V(*vp, checkNil, true, d)
  15438. if changed {
  15439. *vp = v
  15440. }
  15441. }
  15442. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, checkNil bool, canChange bool,
  15443. d *Decoder) (_ map[float64]uint8, changed bool) {
  15444. dd := d.d
  15445. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15446. if checkNil && dd.TryDecodeAsNil() {
  15447. if v != nil {
  15448. changed = true
  15449. }
  15450. return nil, changed
  15451. }
  15452. containerLen := dd.ReadMapStart()
  15453. if canChange && v == nil {
  15454. if containerLen > 0 {
  15455. v = make(map[float64]uint8, containerLen)
  15456. } else {
  15457. v = make(map[float64]uint8) // supports indefinite-length, etc
  15458. }
  15459. changed = true
  15460. }
  15461. if containerLen > 0 {
  15462. for j := 0; j < containerLen; j++ {
  15463. mk := dd.DecodeFloat(false)
  15464. mv := v[mk]
  15465. mv = uint8(dd.DecodeUint(8))
  15466. if v != nil {
  15467. v[mk] = mv
  15468. }
  15469. }
  15470. } else if containerLen < 0 {
  15471. for j := 0; !dd.CheckBreak(); j++ {
  15472. if j > 0 {
  15473. dd.ReadMapEntrySeparator()
  15474. }
  15475. mk := dd.DecodeFloat(false)
  15476. dd.ReadMapKVSeparator()
  15477. mv := v[mk]
  15478. mv = uint8(dd.DecodeUint(8))
  15479. if v != nil {
  15480. v[mk] = mv
  15481. }
  15482. }
  15483. dd.ReadMapEnd()
  15484. }
  15485. return v, changed
  15486. }
  15487. func (f decFnInfo) fastpathDecMapFloat64Uint16R(rv reflect.Value) {
  15488. if rv.CanAddr() {
  15489. vp := rv.Addr().Interface().(*map[float64]uint16)
  15490. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  15491. if changed {
  15492. *vp = v
  15493. }
  15494. } else {
  15495. v := rv.Interface().(map[float64]uint16)
  15496. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  15497. }
  15498. }
  15499. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, checkNil bool, d *Decoder) {
  15500. v, changed := f.DecMapFloat64Uint16V(*vp, checkNil, true, d)
  15501. if changed {
  15502. *vp = v
  15503. }
  15504. }
  15505. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, checkNil bool, canChange bool,
  15506. d *Decoder) (_ map[float64]uint16, changed bool) {
  15507. dd := d.d
  15508. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15509. if checkNil && dd.TryDecodeAsNil() {
  15510. if v != nil {
  15511. changed = true
  15512. }
  15513. return nil, changed
  15514. }
  15515. containerLen := dd.ReadMapStart()
  15516. if canChange && v == nil {
  15517. if containerLen > 0 {
  15518. v = make(map[float64]uint16, containerLen)
  15519. } else {
  15520. v = make(map[float64]uint16) // supports indefinite-length, etc
  15521. }
  15522. changed = true
  15523. }
  15524. if containerLen > 0 {
  15525. for j := 0; j < containerLen; j++ {
  15526. mk := dd.DecodeFloat(false)
  15527. mv := v[mk]
  15528. mv = uint16(dd.DecodeUint(16))
  15529. if v != nil {
  15530. v[mk] = mv
  15531. }
  15532. }
  15533. } else if containerLen < 0 {
  15534. for j := 0; !dd.CheckBreak(); j++ {
  15535. if j > 0 {
  15536. dd.ReadMapEntrySeparator()
  15537. }
  15538. mk := dd.DecodeFloat(false)
  15539. dd.ReadMapKVSeparator()
  15540. mv := v[mk]
  15541. mv = uint16(dd.DecodeUint(16))
  15542. if v != nil {
  15543. v[mk] = mv
  15544. }
  15545. }
  15546. dd.ReadMapEnd()
  15547. }
  15548. return v, changed
  15549. }
  15550. func (f decFnInfo) fastpathDecMapFloat64Uint32R(rv reflect.Value) {
  15551. if rv.CanAddr() {
  15552. vp := rv.Addr().Interface().(*map[float64]uint32)
  15553. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  15554. if changed {
  15555. *vp = v
  15556. }
  15557. } else {
  15558. v := rv.Interface().(map[float64]uint32)
  15559. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  15560. }
  15561. }
  15562. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, checkNil bool, d *Decoder) {
  15563. v, changed := f.DecMapFloat64Uint32V(*vp, checkNil, true, d)
  15564. if changed {
  15565. *vp = v
  15566. }
  15567. }
  15568. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, checkNil bool, canChange bool,
  15569. d *Decoder) (_ map[float64]uint32, changed bool) {
  15570. dd := d.d
  15571. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15572. if checkNil && dd.TryDecodeAsNil() {
  15573. if v != nil {
  15574. changed = true
  15575. }
  15576. return nil, changed
  15577. }
  15578. containerLen := dd.ReadMapStart()
  15579. if canChange && v == nil {
  15580. if containerLen > 0 {
  15581. v = make(map[float64]uint32, containerLen)
  15582. } else {
  15583. v = make(map[float64]uint32) // supports indefinite-length, etc
  15584. }
  15585. changed = true
  15586. }
  15587. if containerLen > 0 {
  15588. for j := 0; j < containerLen; j++ {
  15589. mk := dd.DecodeFloat(false)
  15590. mv := v[mk]
  15591. mv = uint32(dd.DecodeUint(32))
  15592. if v != nil {
  15593. v[mk] = mv
  15594. }
  15595. }
  15596. } else if containerLen < 0 {
  15597. for j := 0; !dd.CheckBreak(); j++ {
  15598. if j > 0 {
  15599. dd.ReadMapEntrySeparator()
  15600. }
  15601. mk := dd.DecodeFloat(false)
  15602. dd.ReadMapKVSeparator()
  15603. mv := v[mk]
  15604. mv = uint32(dd.DecodeUint(32))
  15605. if v != nil {
  15606. v[mk] = mv
  15607. }
  15608. }
  15609. dd.ReadMapEnd()
  15610. }
  15611. return v, changed
  15612. }
  15613. func (f decFnInfo) fastpathDecMapFloat64Uint64R(rv reflect.Value) {
  15614. if rv.CanAddr() {
  15615. vp := rv.Addr().Interface().(*map[float64]uint64)
  15616. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  15617. if changed {
  15618. *vp = v
  15619. }
  15620. } else {
  15621. v := rv.Interface().(map[float64]uint64)
  15622. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  15623. }
  15624. }
  15625. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, checkNil bool, d *Decoder) {
  15626. v, changed := f.DecMapFloat64Uint64V(*vp, checkNil, true, d)
  15627. if changed {
  15628. *vp = v
  15629. }
  15630. }
  15631. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, checkNil bool, canChange bool,
  15632. d *Decoder) (_ map[float64]uint64, changed bool) {
  15633. dd := d.d
  15634. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15635. if checkNil && dd.TryDecodeAsNil() {
  15636. if v != nil {
  15637. changed = true
  15638. }
  15639. return nil, changed
  15640. }
  15641. containerLen := dd.ReadMapStart()
  15642. if canChange && v == nil {
  15643. if containerLen > 0 {
  15644. v = make(map[float64]uint64, containerLen)
  15645. } else {
  15646. v = make(map[float64]uint64) // supports indefinite-length, etc
  15647. }
  15648. changed = true
  15649. }
  15650. if containerLen > 0 {
  15651. for j := 0; j < containerLen; j++ {
  15652. mk := dd.DecodeFloat(false)
  15653. mv := v[mk]
  15654. mv = dd.DecodeUint(64)
  15655. if v != nil {
  15656. v[mk] = mv
  15657. }
  15658. }
  15659. } else if containerLen < 0 {
  15660. for j := 0; !dd.CheckBreak(); j++ {
  15661. if j > 0 {
  15662. dd.ReadMapEntrySeparator()
  15663. }
  15664. mk := dd.DecodeFloat(false)
  15665. dd.ReadMapKVSeparator()
  15666. mv := v[mk]
  15667. mv = dd.DecodeUint(64)
  15668. if v != nil {
  15669. v[mk] = mv
  15670. }
  15671. }
  15672. dd.ReadMapEnd()
  15673. }
  15674. return v, changed
  15675. }
  15676. func (f decFnInfo) fastpathDecMapFloat64IntR(rv reflect.Value) {
  15677. if rv.CanAddr() {
  15678. vp := rv.Addr().Interface().(*map[float64]int)
  15679. v, changed := fastpathTV.DecMapFloat64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  15680. if changed {
  15681. *vp = v
  15682. }
  15683. } else {
  15684. v := rv.Interface().(map[float64]int)
  15685. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, f.d)
  15686. }
  15687. }
  15688. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, checkNil bool, d *Decoder) {
  15689. v, changed := f.DecMapFloat64IntV(*vp, checkNil, true, d)
  15690. if changed {
  15691. *vp = v
  15692. }
  15693. }
  15694. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, checkNil bool, canChange bool,
  15695. d *Decoder) (_ map[float64]int, changed bool) {
  15696. dd := d.d
  15697. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15698. if checkNil && dd.TryDecodeAsNil() {
  15699. if v != nil {
  15700. changed = true
  15701. }
  15702. return nil, changed
  15703. }
  15704. containerLen := dd.ReadMapStart()
  15705. if canChange && v == nil {
  15706. if containerLen > 0 {
  15707. v = make(map[float64]int, containerLen)
  15708. } else {
  15709. v = make(map[float64]int) // supports indefinite-length, etc
  15710. }
  15711. changed = true
  15712. }
  15713. if containerLen > 0 {
  15714. for j := 0; j < containerLen; j++ {
  15715. mk := dd.DecodeFloat(false)
  15716. mv := v[mk]
  15717. mv = int(dd.DecodeInt(intBitsize))
  15718. if v != nil {
  15719. v[mk] = mv
  15720. }
  15721. }
  15722. } else if containerLen < 0 {
  15723. for j := 0; !dd.CheckBreak(); j++ {
  15724. if j > 0 {
  15725. dd.ReadMapEntrySeparator()
  15726. }
  15727. mk := dd.DecodeFloat(false)
  15728. dd.ReadMapKVSeparator()
  15729. mv := v[mk]
  15730. mv = int(dd.DecodeInt(intBitsize))
  15731. if v != nil {
  15732. v[mk] = mv
  15733. }
  15734. }
  15735. dd.ReadMapEnd()
  15736. }
  15737. return v, changed
  15738. }
  15739. func (f decFnInfo) fastpathDecMapFloat64Int8R(rv reflect.Value) {
  15740. if rv.CanAddr() {
  15741. vp := rv.Addr().Interface().(*map[float64]int8)
  15742. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  15743. if changed {
  15744. *vp = v
  15745. }
  15746. } else {
  15747. v := rv.Interface().(map[float64]int8)
  15748. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, f.d)
  15749. }
  15750. }
  15751. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, checkNil bool, d *Decoder) {
  15752. v, changed := f.DecMapFloat64Int8V(*vp, checkNil, true, d)
  15753. if changed {
  15754. *vp = v
  15755. }
  15756. }
  15757. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, checkNil bool, canChange bool,
  15758. d *Decoder) (_ map[float64]int8, changed bool) {
  15759. dd := d.d
  15760. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15761. if checkNil && dd.TryDecodeAsNil() {
  15762. if v != nil {
  15763. changed = true
  15764. }
  15765. return nil, changed
  15766. }
  15767. containerLen := dd.ReadMapStart()
  15768. if canChange && v == nil {
  15769. if containerLen > 0 {
  15770. v = make(map[float64]int8, containerLen)
  15771. } else {
  15772. v = make(map[float64]int8) // supports indefinite-length, etc
  15773. }
  15774. changed = true
  15775. }
  15776. if containerLen > 0 {
  15777. for j := 0; j < containerLen; j++ {
  15778. mk := dd.DecodeFloat(false)
  15779. mv := v[mk]
  15780. mv = int8(dd.DecodeInt(8))
  15781. if v != nil {
  15782. v[mk] = mv
  15783. }
  15784. }
  15785. } else if containerLen < 0 {
  15786. for j := 0; !dd.CheckBreak(); j++ {
  15787. if j > 0 {
  15788. dd.ReadMapEntrySeparator()
  15789. }
  15790. mk := dd.DecodeFloat(false)
  15791. dd.ReadMapKVSeparator()
  15792. mv := v[mk]
  15793. mv = int8(dd.DecodeInt(8))
  15794. if v != nil {
  15795. v[mk] = mv
  15796. }
  15797. }
  15798. dd.ReadMapEnd()
  15799. }
  15800. return v, changed
  15801. }
  15802. func (f decFnInfo) fastpathDecMapFloat64Int16R(rv reflect.Value) {
  15803. if rv.CanAddr() {
  15804. vp := rv.Addr().Interface().(*map[float64]int16)
  15805. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  15806. if changed {
  15807. *vp = v
  15808. }
  15809. } else {
  15810. v := rv.Interface().(map[float64]int16)
  15811. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, f.d)
  15812. }
  15813. }
  15814. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, checkNil bool, d *Decoder) {
  15815. v, changed := f.DecMapFloat64Int16V(*vp, checkNil, true, d)
  15816. if changed {
  15817. *vp = v
  15818. }
  15819. }
  15820. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, checkNil bool, canChange bool,
  15821. d *Decoder) (_ map[float64]int16, changed bool) {
  15822. dd := d.d
  15823. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15824. if checkNil && dd.TryDecodeAsNil() {
  15825. if v != nil {
  15826. changed = true
  15827. }
  15828. return nil, changed
  15829. }
  15830. containerLen := dd.ReadMapStart()
  15831. if canChange && v == nil {
  15832. if containerLen > 0 {
  15833. v = make(map[float64]int16, containerLen)
  15834. } else {
  15835. v = make(map[float64]int16) // supports indefinite-length, etc
  15836. }
  15837. changed = true
  15838. }
  15839. if containerLen > 0 {
  15840. for j := 0; j < containerLen; j++ {
  15841. mk := dd.DecodeFloat(false)
  15842. mv := v[mk]
  15843. mv = int16(dd.DecodeInt(16))
  15844. if v != nil {
  15845. v[mk] = mv
  15846. }
  15847. }
  15848. } else if containerLen < 0 {
  15849. for j := 0; !dd.CheckBreak(); j++ {
  15850. if j > 0 {
  15851. dd.ReadMapEntrySeparator()
  15852. }
  15853. mk := dd.DecodeFloat(false)
  15854. dd.ReadMapKVSeparator()
  15855. mv := v[mk]
  15856. mv = int16(dd.DecodeInt(16))
  15857. if v != nil {
  15858. v[mk] = mv
  15859. }
  15860. }
  15861. dd.ReadMapEnd()
  15862. }
  15863. return v, changed
  15864. }
  15865. func (f decFnInfo) fastpathDecMapFloat64Int32R(rv reflect.Value) {
  15866. if rv.CanAddr() {
  15867. vp := rv.Addr().Interface().(*map[float64]int32)
  15868. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  15869. if changed {
  15870. *vp = v
  15871. }
  15872. } else {
  15873. v := rv.Interface().(map[float64]int32)
  15874. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, f.d)
  15875. }
  15876. }
  15877. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, checkNil bool, d *Decoder) {
  15878. v, changed := f.DecMapFloat64Int32V(*vp, checkNil, true, d)
  15879. if changed {
  15880. *vp = v
  15881. }
  15882. }
  15883. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, checkNil bool, canChange bool,
  15884. d *Decoder) (_ map[float64]int32, changed bool) {
  15885. dd := d.d
  15886. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15887. if checkNil && dd.TryDecodeAsNil() {
  15888. if v != nil {
  15889. changed = true
  15890. }
  15891. return nil, changed
  15892. }
  15893. containerLen := dd.ReadMapStart()
  15894. if canChange && v == nil {
  15895. if containerLen > 0 {
  15896. v = make(map[float64]int32, containerLen)
  15897. } else {
  15898. v = make(map[float64]int32) // supports indefinite-length, etc
  15899. }
  15900. changed = true
  15901. }
  15902. if containerLen > 0 {
  15903. for j := 0; j < containerLen; j++ {
  15904. mk := dd.DecodeFloat(false)
  15905. mv := v[mk]
  15906. mv = int32(dd.DecodeInt(32))
  15907. if v != nil {
  15908. v[mk] = mv
  15909. }
  15910. }
  15911. } else if containerLen < 0 {
  15912. for j := 0; !dd.CheckBreak(); j++ {
  15913. if j > 0 {
  15914. dd.ReadMapEntrySeparator()
  15915. }
  15916. mk := dd.DecodeFloat(false)
  15917. dd.ReadMapKVSeparator()
  15918. mv := v[mk]
  15919. mv = int32(dd.DecodeInt(32))
  15920. if v != nil {
  15921. v[mk] = mv
  15922. }
  15923. }
  15924. dd.ReadMapEnd()
  15925. }
  15926. return v, changed
  15927. }
  15928. func (f decFnInfo) fastpathDecMapFloat64Int64R(rv reflect.Value) {
  15929. if rv.CanAddr() {
  15930. vp := rv.Addr().Interface().(*map[float64]int64)
  15931. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  15932. if changed {
  15933. *vp = v
  15934. }
  15935. } else {
  15936. v := rv.Interface().(map[float64]int64)
  15937. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, f.d)
  15938. }
  15939. }
  15940. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, checkNil bool, d *Decoder) {
  15941. v, changed := f.DecMapFloat64Int64V(*vp, checkNil, true, d)
  15942. if changed {
  15943. *vp = v
  15944. }
  15945. }
  15946. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, checkNil bool, canChange bool,
  15947. d *Decoder) (_ map[float64]int64, changed bool) {
  15948. dd := d.d
  15949. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  15950. if checkNil && dd.TryDecodeAsNil() {
  15951. if v != nil {
  15952. changed = true
  15953. }
  15954. return nil, changed
  15955. }
  15956. containerLen := dd.ReadMapStart()
  15957. if canChange && v == nil {
  15958. if containerLen > 0 {
  15959. v = make(map[float64]int64, containerLen)
  15960. } else {
  15961. v = make(map[float64]int64) // supports indefinite-length, etc
  15962. }
  15963. changed = true
  15964. }
  15965. if containerLen > 0 {
  15966. for j := 0; j < containerLen; j++ {
  15967. mk := dd.DecodeFloat(false)
  15968. mv := v[mk]
  15969. mv = dd.DecodeInt(64)
  15970. if v != nil {
  15971. v[mk] = mv
  15972. }
  15973. }
  15974. } else if containerLen < 0 {
  15975. for j := 0; !dd.CheckBreak(); j++ {
  15976. if j > 0 {
  15977. dd.ReadMapEntrySeparator()
  15978. }
  15979. mk := dd.DecodeFloat(false)
  15980. dd.ReadMapKVSeparator()
  15981. mv := v[mk]
  15982. mv = dd.DecodeInt(64)
  15983. if v != nil {
  15984. v[mk] = mv
  15985. }
  15986. }
  15987. dd.ReadMapEnd()
  15988. }
  15989. return v, changed
  15990. }
  15991. func (f decFnInfo) fastpathDecMapFloat64Float32R(rv reflect.Value) {
  15992. if rv.CanAddr() {
  15993. vp := rv.Addr().Interface().(*map[float64]float32)
  15994. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  15995. if changed {
  15996. *vp = v
  15997. }
  15998. } else {
  15999. v := rv.Interface().(map[float64]float32)
  16000. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, f.d)
  16001. }
  16002. }
  16003. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, checkNil bool, d *Decoder) {
  16004. v, changed := f.DecMapFloat64Float32V(*vp, checkNil, true, d)
  16005. if changed {
  16006. *vp = v
  16007. }
  16008. }
  16009. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, checkNil bool, canChange bool,
  16010. d *Decoder) (_ map[float64]float32, changed bool) {
  16011. dd := d.d
  16012. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16013. if checkNil && dd.TryDecodeAsNil() {
  16014. if v != nil {
  16015. changed = true
  16016. }
  16017. return nil, changed
  16018. }
  16019. containerLen := dd.ReadMapStart()
  16020. if canChange && v == nil {
  16021. if containerLen > 0 {
  16022. v = make(map[float64]float32, containerLen)
  16023. } else {
  16024. v = make(map[float64]float32) // supports indefinite-length, etc
  16025. }
  16026. changed = true
  16027. }
  16028. if containerLen > 0 {
  16029. for j := 0; j < containerLen; j++ {
  16030. mk := dd.DecodeFloat(false)
  16031. mv := v[mk]
  16032. mv = float32(dd.DecodeFloat(true))
  16033. if v != nil {
  16034. v[mk] = mv
  16035. }
  16036. }
  16037. } else if containerLen < 0 {
  16038. for j := 0; !dd.CheckBreak(); j++ {
  16039. if j > 0 {
  16040. dd.ReadMapEntrySeparator()
  16041. }
  16042. mk := dd.DecodeFloat(false)
  16043. dd.ReadMapKVSeparator()
  16044. mv := v[mk]
  16045. mv = float32(dd.DecodeFloat(true))
  16046. if v != nil {
  16047. v[mk] = mv
  16048. }
  16049. }
  16050. dd.ReadMapEnd()
  16051. }
  16052. return v, changed
  16053. }
  16054. func (f decFnInfo) fastpathDecMapFloat64Float64R(rv reflect.Value) {
  16055. if rv.CanAddr() {
  16056. vp := rv.Addr().Interface().(*map[float64]float64)
  16057. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  16058. if changed {
  16059. *vp = v
  16060. }
  16061. } else {
  16062. v := rv.Interface().(map[float64]float64)
  16063. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, f.d)
  16064. }
  16065. }
  16066. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, checkNil bool, d *Decoder) {
  16067. v, changed := f.DecMapFloat64Float64V(*vp, checkNil, true, d)
  16068. if changed {
  16069. *vp = v
  16070. }
  16071. }
  16072. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, checkNil bool, canChange bool,
  16073. d *Decoder) (_ map[float64]float64, changed bool) {
  16074. dd := d.d
  16075. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16076. if checkNil && dd.TryDecodeAsNil() {
  16077. if v != nil {
  16078. changed = true
  16079. }
  16080. return nil, changed
  16081. }
  16082. containerLen := dd.ReadMapStart()
  16083. if canChange && v == nil {
  16084. if containerLen > 0 {
  16085. v = make(map[float64]float64, containerLen)
  16086. } else {
  16087. v = make(map[float64]float64) // supports indefinite-length, etc
  16088. }
  16089. changed = true
  16090. }
  16091. if containerLen > 0 {
  16092. for j := 0; j < containerLen; j++ {
  16093. mk := dd.DecodeFloat(false)
  16094. mv := v[mk]
  16095. mv = dd.DecodeFloat(false)
  16096. if v != nil {
  16097. v[mk] = mv
  16098. }
  16099. }
  16100. } else if containerLen < 0 {
  16101. for j := 0; !dd.CheckBreak(); j++ {
  16102. if j > 0 {
  16103. dd.ReadMapEntrySeparator()
  16104. }
  16105. mk := dd.DecodeFloat(false)
  16106. dd.ReadMapKVSeparator()
  16107. mv := v[mk]
  16108. mv = dd.DecodeFloat(false)
  16109. if v != nil {
  16110. v[mk] = mv
  16111. }
  16112. }
  16113. dd.ReadMapEnd()
  16114. }
  16115. return v, changed
  16116. }
  16117. func (f decFnInfo) fastpathDecMapFloat64BoolR(rv reflect.Value) {
  16118. if rv.CanAddr() {
  16119. vp := rv.Addr().Interface().(*map[float64]bool)
  16120. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  16121. if changed {
  16122. *vp = v
  16123. }
  16124. } else {
  16125. v := rv.Interface().(map[float64]bool)
  16126. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, f.d)
  16127. }
  16128. }
  16129. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, checkNil bool, d *Decoder) {
  16130. v, changed := f.DecMapFloat64BoolV(*vp, checkNil, true, d)
  16131. if changed {
  16132. *vp = v
  16133. }
  16134. }
  16135. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, checkNil bool, canChange bool,
  16136. d *Decoder) (_ map[float64]bool, changed bool) {
  16137. dd := d.d
  16138. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16139. if checkNil && dd.TryDecodeAsNil() {
  16140. if v != nil {
  16141. changed = true
  16142. }
  16143. return nil, changed
  16144. }
  16145. containerLen := dd.ReadMapStart()
  16146. if canChange && v == nil {
  16147. if containerLen > 0 {
  16148. v = make(map[float64]bool, containerLen)
  16149. } else {
  16150. v = make(map[float64]bool) // supports indefinite-length, etc
  16151. }
  16152. changed = true
  16153. }
  16154. if containerLen > 0 {
  16155. for j := 0; j < containerLen; j++ {
  16156. mk := dd.DecodeFloat(false)
  16157. mv := v[mk]
  16158. mv = dd.DecodeBool()
  16159. if v != nil {
  16160. v[mk] = mv
  16161. }
  16162. }
  16163. } else if containerLen < 0 {
  16164. for j := 0; !dd.CheckBreak(); j++ {
  16165. if j > 0 {
  16166. dd.ReadMapEntrySeparator()
  16167. }
  16168. mk := dd.DecodeFloat(false)
  16169. dd.ReadMapKVSeparator()
  16170. mv := v[mk]
  16171. mv = dd.DecodeBool()
  16172. if v != nil {
  16173. v[mk] = mv
  16174. }
  16175. }
  16176. dd.ReadMapEnd()
  16177. }
  16178. return v, changed
  16179. }
  16180. func (f decFnInfo) fastpathDecMapUintIntfR(rv reflect.Value) {
  16181. if rv.CanAddr() {
  16182. vp := rv.Addr().Interface().(*map[uint]interface{})
  16183. v, changed := fastpathTV.DecMapUintIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  16184. if changed {
  16185. *vp = v
  16186. }
  16187. } else {
  16188. v := rv.Interface().(map[uint]interface{})
  16189. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, f.d)
  16190. }
  16191. }
  16192. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, checkNil bool, d *Decoder) {
  16193. v, changed := f.DecMapUintIntfV(*vp, checkNil, true, d)
  16194. if changed {
  16195. *vp = v
  16196. }
  16197. }
  16198. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, checkNil bool, canChange bool,
  16199. d *Decoder) (_ map[uint]interface{}, changed bool) {
  16200. dd := d.d
  16201. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16202. if checkNil && dd.TryDecodeAsNil() {
  16203. if v != nil {
  16204. changed = true
  16205. }
  16206. return nil, changed
  16207. }
  16208. containerLen := dd.ReadMapStart()
  16209. if canChange && v == nil {
  16210. if containerLen > 0 {
  16211. v = make(map[uint]interface{}, containerLen)
  16212. } else {
  16213. v = make(map[uint]interface{}) // supports indefinite-length, etc
  16214. }
  16215. changed = true
  16216. }
  16217. if containerLen > 0 {
  16218. for j := 0; j < containerLen; j++ {
  16219. mk := uint(dd.DecodeUint(uintBitsize))
  16220. mv := v[mk]
  16221. d.decode(&mv)
  16222. if v != nil {
  16223. v[mk] = mv
  16224. }
  16225. }
  16226. } else if containerLen < 0 {
  16227. for j := 0; !dd.CheckBreak(); j++ {
  16228. if j > 0 {
  16229. dd.ReadMapEntrySeparator()
  16230. }
  16231. mk := uint(dd.DecodeUint(uintBitsize))
  16232. dd.ReadMapKVSeparator()
  16233. mv := v[mk]
  16234. d.decode(&mv)
  16235. if v != nil {
  16236. v[mk] = mv
  16237. }
  16238. }
  16239. dd.ReadMapEnd()
  16240. }
  16241. return v, changed
  16242. }
  16243. func (f decFnInfo) fastpathDecMapUintStringR(rv reflect.Value) {
  16244. if rv.CanAddr() {
  16245. vp := rv.Addr().Interface().(*map[uint]string)
  16246. v, changed := fastpathTV.DecMapUintStringV(*vp, fastpathCheckNilFalse, true, f.d)
  16247. if changed {
  16248. *vp = v
  16249. }
  16250. } else {
  16251. v := rv.Interface().(map[uint]string)
  16252. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, f.d)
  16253. }
  16254. }
  16255. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, checkNil bool, d *Decoder) {
  16256. v, changed := f.DecMapUintStringV(*vp, checkNil, true, d)
  16257. if changed {
  16258. *vp = v
  16259. }
  16260. }
  16261. func (_ fastpathT) DecMapUintStringV(v map[uint]string, checkNil bool, canChange bool,
  16262. d *Decoder) (_ map[uint]string, changed bool) {
  16263. dd := d.d
  16264. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16265. if checkNil && dd.TryDecodeAsNil() {
  16266. if v != nil {
  16267. changed = true
  16268. }
  16269. return nil, changed
  16270. }
  16271. containerLen := dd.ReadMapStart()
  16272. if canChange && v == nil {
  16273. if containerLen > 0 {
  16274. v = make(map[uint]string, containerLen)
  16275. } else {
  16276. v = make(map[uint]string) // supports indefinite-length, etc
  16277. }
  16278. changed = true
  16279. }
  16280. if containerLen > 0 {
  16281. for j := 0; j < containerLen; j++ {
  16282. mk := uint(dd.DecodeUint(uintBitsize))
  16283. mv := v[mk]
  16284. mv = dd.DecodeString()
  16285. if v != nil {
  16286. v[mk] = mv
  16287. }
  16288. }
  16289. } else if containerLen < 0 {
  16290. for j := 0; !dd.CheckBreak(); j++ {
  16291. if j > 0 {
  16292. dd.ReadMapEntrySeparator()
  16293. }
  16294. mk := uint(dd.DecodeUint(uintBitsize))
  16295. dd.ReadMapKVSeparator()
  16296. mv := v[mk]
  16297. mv = dd.DecodeString()
  16298. if v != nil {
  16299. v[mk] = mv
  16300. }
  16301. }
  16302. dd.ReadMapEnd()
  16303. }
  16304. return v, changed
  16305. }
  16306. func (f decFnInfo) fastpathDecMapUintUintR(rv reflect.Value) {
  16307. if rv.CanAddr() {
  16308. vp := rv.Addr().Interface().(*map[uint]uint)
  16309. v, changed := fastpathTV.DecMapUintUintV(*vp, fastpathCheckNilFalse, true, f.d)
  16310. if changed {
  16311. *vp = v
  16312. }
  16313. } else {
  16314. v := rv.Interface().(map[uint]uint)
  16315. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, f.d)
  16316. }
  16317. }
  16318. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, checkNil bool, d *Decoder) {
  16319. v, changed := f.DecMapUintUintV(*vp, checkNil, true, d)
  16320. if changed {
  16321. *vp = v
  16322. }
  16323. }
  16324. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, checkNil bool, canChange bool,
  16325. d *Decoder) (_ map[uint]uint, changed bool) {
  16326. dd := d.d
  16327. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16328. if checkNil && dd.TryDecodeAsNil() {
  16329. if v != nil {
  16330. changed = true
  16331. }
  16332. return nil, changed
  16333. }
  16334. containerLen := dd.ReadMapStart()
  16335. if canChange && v == nil {
  16336. if containerLen > 0 {
  16337. v = make(map[uint]uint, containerLen)
  16338. } else {
  16339. v = make(map[uint]uint) // supports indefinite-length, etc
  16340. }
  16341. changed = true
  16342. }
  16343. if containerLen > 0 {
  16344. for j := 0; j < containerLen; j++ {
  16345. mk := uint(dd.DecodeUint(uintBitsize))
  16346. mv := v[mk]
  16347. mv = uint(dd.DecodeUint(uintBitsize))
  16348. if v != nil {
  16349. v[mk] = mv
  16350. }
  16351. }
  16352. } else if containerLen < 0 {
  16353. for j := 0; !dd.CheckBreak(); j++ {
  16354. if j > 0 {
  16355. dd.ReadMapEntrySeparator()
  16356. }
  16357. mk := uint(dd.DecodeUint(uintBitsize))
  16358. dd.ReadMapKVSeparator()
  16359. mv := v[mk]
  16360. mv = uint(dd.DecodeUint(uintBitsize))
  16361. if v != nil {
  16362. v[mk] = mv
  16363. }
  16364. }
  16365. dd.ReadMapEnd()
  16366. }
  16367. return v, changed
  16368. }
  16369. func (f decFnInfo) fastpathDecMapUintUint8R(rv reflect.Value) {
  16370. if rv.CanAddr() {
  16371. vp := rv.Addr().Interface().(*map[uint]uint8)
  16372. v, changed := fastpathTV.DecMapUintUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  16373. if changed {
  16374. *vp = v
  16375. }
  16376. } else {
  16377. v := rv.Interface().(map[uint]uint8)
  16378. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, f.d)
  16379. }
  16380. }
  16381. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, checkNil bool, d *Decoder) {
  16382. v, changed := f.DecMapUintUint8V(*vp, checkNil, true, d)
  16383. if changed {
  16384. *vp = v
  16385. }
  16386. }
  16387. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, checkNil bool, canChange bool,
  16388. d *Decoder) (_ map[uint]uint8, changed bool) {
  16389. dd := d.d
  16390. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16391. if checkNil && dd.TryDecodeAsNil() {
  16392. if v != nil {
  16393. changed = true
  16394. }
  16395. return nil, changed
  16396. }
  16397. containerLen := dd.ReadMapStart()
  16398. if canChange && v == nil {
  16399. if containerLen > 0 {
  16400. v = make(map[uint]uint8, containerLen)
  16401. } else {
  16402. v = make(map[uint]uint8) // supports indefinite-length, etc
  16403. }
  16404. changed = true
  16405. }
  16406. if containerLen > 0 {
  16407. for j := 0; j < containerLen; j++ {
  16408. mk := uint(dd.DecodeUint(uintBitsize))
  16409. mv := v[mk]
  16410. mv = uint8(dd.DecodeUint(8))
  16411. if v != nil {
  16412. v[mk] = mv
  16413. }
  16414. }
  16415. } else if containerLen < 0 {
  16416. for j := 0; !dd.CheckBreak(); j++ {
  16417. if j > 0 {
  16418. dd.ReadMapEntrySeparator()
  16419. }
  16420. mk := uint(dd.DecodeUint(uintBitsize))
  16421. dd.ReadMapKVSeparator()
  16422. mv := v[mk]
  16423. mv = uint8(dd.DecodeUint(8))
  16424. if v != nil {
  16425. v[mk] = mv
  16426. }
  16427. }
  16428. dd.ReadMapEnd()
  16429. }
  16430. return v, changed
  16431. }
  16432. func (f decFnInfo) fastpathDecMapUintUint16R(rv reflect.Value) {
  16433. if rv.CanAddr() {
  16434. vp := rv.Addr().Interface().(*map[uint]uint16)
  16435. v, changed := fastpathTV.DecMapUintUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  16436. if changed {
  16437. *vp = v
  16438. }
  16439. } else {
  16440. v := rv.Interface().(map[uint]uint16)
  16441. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, f.d)
  16442. }
  16443. }
  16444. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, checkNil bool, d *Decoder) {
  16445. v, changed := f.DecMapUintUint16V(*vp, checkNil, true, d)
  16446. if changed {
  16447. *vp = v
  16448. }
  16449. }
  16450. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, checkNil bool, canChange bool,
  16451. d *Decoder) (_ map[uint]uint16, changed bool) {
  16452. dd := d.d
  16453. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16454. if checkNil && dd.TryDecodeAsNil() {
  16455. if v != nil {
  16456. changed = true
  16457. }
  16458. return nil, changed
  16459. }
  16460. containerLen := dd.ReadMapStart()
  16461. if canChange && v == nil {
  16462. if containerLen > 0 {
  16463. v = make(map[uint]uint16, containerLen)
  16464. } else {
  16465. v = make(map[uint]uint16) // supports indefinite-length, etc
  16466. }
  16467. changed = true
  16468. }
  16469. if containerLen > 0 {
  16470. for j := 0; j < containerLen; j++ {
  16471. mk := uint(dd.DecodeUint(uintBitsize))
  16472. mv := v[mk]
  16473. mv = uint16(dd.DecodeUint(16))
  16474. if v != nil {
  16475. v[mk] = mv
  16476. }
  16477. }
  16478. } else if containerLen < 0 {
  16479. for j := 0; !dd.CheckBreak(); j++ {
  16480. if j > 0 {
  16481. dd.ReadMapEntrySeparator()
  16482. }
  16483. mk := uint(dd.DecodeUint(uintBitsize))
  16484. dd.ReadMapKVSeparator()
  16485. mv := v[mk]
  16486. mv = uint16(dd.DecodeUint(16))
  16487. if v != nil {
  16488. v[mk] = mv
  16489. }
  16490. }
  16491. dd.ReadMapEnd()
  16492. }
  16493. return v, changed
  16494. }
  16495. func (f decFnInfo) fastpathDecMapUintUint32R(rv reflect.Value) {
  16496. if rv.CanAddr() {
  16497. vp := rv.Addr().Interface().(*map[uint]uint32)
  16498. v, changed := fastpathTV.DecMapUintUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  16499. if changed {
  16500. *vp = v
  16501. }
  16502. } else {
  16503. v := rv.Interface().(map[uint]uint32)
  16504. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, f.d)
  16505. }
  16506. }
  16507. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, checkNil bool, d *Decoder) {
  16508. v, changed := f.DecMapUintUint32V(*vp, checkNil, true, d)
  16509. if changed {
  16510. *vp = v
  16511. }
  16512. }
  16513. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, checkNil bool, canChange bool,
  16514. d *Decoder) (_ map[uint]uint32, changed bool) {
  16515. dd := d.d
  16516. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16517. if checkNil && dd.TryDecodeAsNil() {
  16518. if v != nil {
  16519. changed = true
  16520. }
  16521. return nil, changed
  16522. }
  16523. containerLen := dd.ReadMapStart()
  16524. if canChange && v == nil {
  16525. if containerLen > 0 {
  16526. v = make(map[uint]uint32, containerLen)
  16527. } else {
  16528. v = make(map[uint]uint32) // supports indefinite-length, etc
  16529. }
  16530. changed = true
  16531. }
  16532. if containerLen > 0 {
  16533. for j := 0; j < containerLen; j++ {
  16534. mk := uint(dd.DecodeUint(uintBitsize))
  16535. mv := v[mk]
  16536. mv = uint32(dd.DecodeUint(32))
  16537. if v != nil {
  16538. v[mk] = mv
  16539. }
  16540. }
  16541. } else if containerLen < 0 {
  16542. for j := 0; !dd.CheckBreak(); j++ {
  16543. if j > 0 {
  16544. dd.ReadMapEntrySeparator()
  16545. }
  16546. mk := uint(dd.DecodeUint(uintBitsize))
  16547. dd.ReadMapKVSeparator()
  16548. mv := v[mk]
  16549. mv = uint32(dd.DecodeUint(32))
  16550. if v != nil {
  16551. v[mk] = mv
  16552. }
  16553. }
  16554. dd.ReadMapEnd()
  16555. }
  16556. return v, changed
  16557. }
  16558. func (f decFnInfo) fastpathDecMapUintUint64R(rv reflect.Value) {
  16559. if rv.CanAddr() {
  16560. vp := rv.Addr().Interface().(*map[uint]uint64)
  16561. v, changed := fastpathTV.DecMapUintUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  16562. if changed {
  16563. *vp = v
  16564. }
  16565. } else {
  16566. v := rv.Interface().(map[uint]uint64)
  16567. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, f.d)
  16568. }
  16569. }
  16570. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, checkNil bool, d *Decoder) {
  16571. v, changed := f.DecMapUintUint64V(*vp, checkNil, true, d)
  16572. if changed {
  16573. *vp = v
  16574. }
  16575. }
  16576. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, checkNil bool, canChange bool,
  16577. d *Decoder) (_ map[uint]uint64, changed bool) {
  16578. dd := d.d
  16579. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16580. if checkNil && dd.TryDecodeAsNil() {
  16581. if v != nil {
  16582. changed = true
  16583. }
  16584. return nil, changed
  16585. }
  16586. containerLen := dd.ReadMapStart()
  16587. if canChange && v == nil {
  16588. if containerLen > 0 {
  16589. v = make(map[uint]uint64, containerLen)
  16590. } else {
  16591. v = make(map[uint]uint64) // supports indefinite-length, etc
  16592. }
  16593. changed = true
  16594. }
  16595. if containerLen > 0 {
  16596. for j := 0; j < containerLen; j++ {
  16597. mk := uint(dd.DecodeUint(uintBitsize))
  16598. mv := v[mk]
  16599. mv = dd.DecodeUint(64)
  16600. if v != nil {
  16601. v[mk] = mv
  16602. }
  16603. }
  16604. } else if containerLen < 0 {
  16605. for j := 0; !dd.CheckBreak(); j++ {
  16606. if j > 0 {
  16607. dd.ReadMapEntrySeparator()
  16608. }
  16609. mk := uint(dd.DecodeUint(uintBitsize))
  16610. dd.ReadMapKVSeparator()
  16611. mv := v[mk]
  16612. mv = dd.DecodeUint(64)
  16613. if v != nil {
  16614. v[mk] = mv
  16615. }
  16616. }
  16617. dd.ReadMapEnd()
  16618. }
  16619. return v, changed
  16620. }
  16621. func (f decFnInfo) fastpathDecMapUintIntR(rv reflect.Value) {
  16622. if rv.CanAddr() {
  16623. vp := rv.Addr().Interface().(*map[uint]int)
  16624. v, changed := fastpathTV.DecMapUintIntV(*vp, fastpathCheckNilFalse, true, f.d)
  16625. if changed {
  16626. *vp = v
  16627. }
  16628. } else {
  16629. v := rv.Interface().(map[uint]int)
  16630. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, f.d)
  16631. }
  16632. }
  16633. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, checkNil bool, d *Decoder) {
  16634. v, changed := f.DecMapUintIntV(*vp, checkNil, true, d)
  16635. if changed {
  16636. *vp = v
  16637. }
  16638. }
  16639. func (_ fastpathT) DecMapUintIntV(v map[uint]int, checkNil bool, canChange bool,
  16640. d *Decoder) (_ map[uint]int, changed bool) {
  16641. dd := d.d
  16642. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16643. if checkNil && dd.TryDecodeAsNil() {
  16644. if v != nil {
  16645. changed = true
  16646. }
  16647. return nil, changed
  16648. }
  16649. containerLen := dd.ReadMapStart()
  16650. if canChange && v == nil {
  16651. if containerLen > 0 {
  16652. v = make(map[uint]int, containerLen)
  16653. } else {
  16654. v = make(map[uint]int) // supports indefinite-length, etc
  16655. }
  16656. changed = true
  16657. }
  16658. if containerLen > 0 {
  16659. for j := 0; j < containerLen; j++ {
  16660. mk := uint(dd.DecodeUint(uintBitsize))
  16661. mv := v[mk]
  16662. mv = int(dd.DecodeInt(intBitsize))
  16663. if v != nil {
  16664. v[mk] = mv
  16665. }
  16666. }
  16667. } else if containerLen < 0 {
  16668. for j := 0; !dd.CheckBreak(); j++ {
  16669. if j > 0 {
  16670. dd.ReadMapEntrySeparator()
  16671. }
  16672. mk := uint(dd.DecodeUint(uintBitsize))
  16673. dd.ReadMapKVSeparator()
  16674. mv := v[mk]
  16675. mv = int(dd.DecodeInt(intBitsize))
  16676. if v != nil {
  16677. v[mk] = mv
  16678. }
  16679. }
  16680. dd.ReadMapEnd()
  16681. }
  16682. return v, changed
  16683. }
  16684. func (f decFnInfo) fastpathDecMapUintInt8R(rv reflect.Value) {
  16685. if rv.CanAddr() {
  16686. vp := rv.Addr().Interface().(*map[uint]int8)
  16687. v, changed := fastpathTV.DecMapUintInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  16688. if changed {
  16689. *vp = v
  16690. }
  16691. } else {
  16692. v := rv.Interface().(map[uint]int8)
  16693. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, f.d)
  16694. }
  16695. }
  16696. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, checkNil bool, d *Decoder) {
  16697. v, changed := f.DecMapUintInt8V(*vp, checkNil, true, d)
  16698. if changed {
  16699. *vp = v
  16700. }
  16701. }
  16702. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, checkNil bool, canChange bool,
  16703. d *Decoder) (_ map[uint]int8, changed bool) {
  16704. dd := d.d
  16705. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16706. if checkNil && dd.TryDecodeAsNil() {
  16707. if v != nil {
  16708. changed = true
  16709. }
  16710. return nil, changed
  16711. }
  16712. containerLen := dd.ReadMapStart()
  16713. if canChange && v == nil {
  16714. if containerLen > 0 {
  16715. v = make(map[uint]int8, containerLen)
  16716. } else {
  16717. v = make(map[uint]int8) // supports indefinite-length, etc
  16718. }
  16719. changed = true
  16720. }
  16721. if containerLen > 0 {
  16722. for j := 0; j < containerLen; j++ {
  16723. mk := uint(dd.DecodeUint(uintBitsize))
  16724. mv := v[mk]
  16725. mv = int8(dd.DecodeInt(8))
  16726. if v != nil {
  16727. v[mk] = mv
  16728. }
  16729. }
  16730. } else if containerLen < 0 {
  16731. for j := 0; !dd.CheckBreak(); j++ {
  16732. if j > 0 {
  16733. dd.ReadMapEntrySeparator()
  16734. }
  16735. mk := uint(dd.DecodeUint(uintBitsize))
  16736. dd.ReadMapKVSeparator()
  16737. mv := v[mk]
  16738. mv = int8(dd.DecodeInt(8))
  16739. if v != nil {
  16740. v[mk] = mv
  16741. }
  16742. }
  16743. dd.ReadMapEnd()
  16744. }
  16745. return v, changed
  16746. }
  16747. func (f decFnInfo) fastpathDecMapUintInt16R(rv reflect.Value) {
  16748. if rv.CanAddr() {
  16749. vp := rv.Addr().Interface().(*map[uint]int16)
  16750. v, changed := fastpathTV.DecMapUintInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  16751. if changed {
  16752. *vp = v
  16753. }
  16754. } else {
  16755. v := rv.Interface().(map[uint]int16)
  16756. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, f.d)
  16757. }
  16758. }
  16759. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, checkNil bool, d *Decoder) {
  16760. v, changed := f.DecMapUintInt16V(*vp, checkNil, true, d)
  16761. if changed {
  16762. *vp = v
  16763. }
  16764. }
  16765. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, checkNil bool, canChange bool,
  16766. d *Decoder) (_ map[uint]int16, changed bool) {
  16767. dd := d.d
  16768. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16769. if checkNil && dd.TryDecodeAsNil() {
  16770. if v != nil {
  16771. changed = true
  16772. }
  16773. return nil, changed
  16774. }
  16775. containerLen := dd.ReadMapStart()
  16776. if canChange && v == nil {
  16777. if containerLen > 0 {
  16778. v = make(map[uint]int16, containerLen)
  16779. } else {
  16780. v = make(map[uint]int16) // supports indefinite-length, etc
  16781. }
  16782. changed = true
  16783. }
  16784. if containerLen > 0 {
  16785. for j := 0; j < containerLen; j++ {
  16786. mk := uint(dd.DecodeUint(uintBitsize))
  16787. mv := v[mk]
  16788. mv = int16(dd.DecodeInt(16))
  16789. if v != nil {
  16790. v[mk] = mv
  16791. }
  16792. }
  16793. } else if containerLen < 0 {
  16794. for j := 0; !dd.CheckBreak(); j++ {
  16795. if j > 0 {
  16796. dd.ReadMapEntrySeparator()
  16797. }
  16798. mk := uint(dd.DecodeUint(uintBitsize))
  16799. dd.ReadMapKVSeparator()
  16800. mv := v[mk]
  16801. mv = int16(dd.DecodeInt(16))
  16802. if v != nil {
  16803. v[mk] = mv
  16804. }
  16805. }
  16806. dd.ReadMapEnd()
  16807. }
  16808. return v, changed
  16809. }
  16810. func (f decFnInfo) fastpathDecMapUintInt32R(rv reflect.Value) {
  16811. if rv.CanAddr() {
  16812. vp := rv.Addr().Interface().(*map[uint]int32)
  16813. v, changed := fastpathTV.DecMapUintInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  16814. if changed {
  16815. *vp = v
  16816. }
  16817. } else {
  16818. v := rv.Interface().(map[uint]int32)
  16819. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, f.d)
  16820. }
  16821. }
  16822. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, checkNil bool, d *Decoder) {
  16823. v, changed := f.DecMapUintInt32V(*vp, checkNil, true, d)
  16824. if changed {
  16825. *vp = v
  16826. }
  16827. }
  16828. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, checkNil bool, canChange bool,
  16829. d *Decoder) (_ map[uint]int32, changed bool) {
  16830. dd := d.d
  16831. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16832. if checkNil && dd.TryDecodeAsNil() {
  16833. if v != nil {
  16834. changed = true
  16835. }
  16836. return nil, changed
  16837. }
  16838. containerLen := dd.ReadMapStart()
  16839. if canChange && v == nil {
  16840. if containerLen > 0 {
  16841. v = make(map[uint]int32, containerLen)
  16842. } else {
  16843. v = make(map[uint]int32) // supports indefinite-length, etc
  16844. }
  16845. changed = true
  16846. }
  16847. if containerLen > 0 {
  16848. for j := 0; j < containerLen; j++ {
  16849. mk := uint(dd.DecodeUint(uintBitsize))
  16850. mv := v[mk]
  16851. mv = int32(dd.DecodeInt(32))
  16852. if v != nil {
  16853. v[mk] = mv
  16854. }
  16855. }
  16856. } else if containerLen < 0 {
  16857. for j := 0; !dd.CheckBreak(); j++ {
  16858. if j > 0 {
  16859. dd.ReadMapEntrySeparator()
  16860. }
  16861. mk := uint(dd.DecodeUint(uintBitsize))
  16862. dd.ReadMapKVSeparator()
  16863. mv := v[mk]
  16864. mv = int32(dd.DecodeInt(32))
  16865. if v != nil {
  16866. v[mk] = mv
  16867. }
  16868. }
  16869. dd.ReadMapEnd()
  16870. }
  16871. return v, changed
  16872. }
  16873. func (f decFnInfo) fastpathDecMapUintInt64R(rv reflect.Value) {
  16874. if rv.CanAddr() {
  16875. vp := rv.Addr().Interface().(*map[uint]int64)
  16876. v, changed := fastpathTV.DecMapUintInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  16877. if changed {
  16878. *vp = v
  16879. }
  16880. } else {
  16881. v := rv.Interface().(map[uint]int64)
  16882. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, f.d)
  16883. }
  16884. }
  16885. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, checkNil bool, d *Decoder) {
  16886. v, changed := f.DecMapUintInt64V(*vp, checkNil, true, d)
  16887. if changed {
  16888. *vp = v
  16889. }
  16890. }
  16891. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, checkNil bool, canChange bool,
  16892. d *Decoder) (_ map[uint]int64, changed bool) {
  16893. dd := d.d
  16894. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16895. if checkNil && dd.TryDecodeAsNil() {
  16896. if v != nil {
  16897. changed = true
  16898. }
  16899. return nil, changed
  16900. }
  16901. containerLen := dd.ReadMapStart()
  16902. if canChange && v == nil {
  16903. if containerLen > 0 {
  16904. v = make(map[uint]int64, containerLen)
  16905. } else {
  16906. v = make(map[uint]int64) // supports indefinite-length, etc
  16907. }
  16908. changed = true
  16909. }
  16910. if containerLen > 0 {
  16911. for j := 0; j < containerLen; j++ {
  16912. mk := uint(dd.DecodeUint(uintBitsize))
  16913. mv := v[mk]
  16914. mv = dd.DecodeInt(64)
  16915. if v != nil {
  16916. v[mk] = mv
  16917. }
  16918. }
  16919. } else if containerLen < 0 {
  16920. for j := 0; !dd.CheckBreak(); j++ {
  16921. if j > 0 {
  16922. dd.ReadMapEntrySeparator()
  16923. }
  16924. mk := uint(dd.DecodeUint(uintBitsize))
  16925. dd.ReadMapKVSeparator()
  16926. mv := v[mk]
  16927. mv = dd.DecodeInt(64)
  16928. if v != nil {
  16929. v[mk] = mv
  16930. }
  16931. }
  16932. dd.ReadMapEnd()
  16933. }
  16934. return v, changed
  16935. }
  16936. func (f decFnInfo) fastpathDecMapUintFloat32R(rv reflect.Value) {
  16937. if rv.CanAddr() {
  16938. vp := rv.Addr().Interface().(*map[uint]float32)
  16939. v, changed := fastpathTV.DecMapUintFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  16940. if changed {
  16941. *vp = v
  16942. }
  16943. } else {
  16944. v := rv.Interface().(map[uint]float32)
  16945. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, f.d)
  16946. }
  16947. }
  16948. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, checkNil bool, d *Decoder) {
  16949. v, changed := f.DecMapUintFloat32V(*vp, checkNil, true, d)
  16950. if changed {
  16951. *vp = v
  16952. }
  16953. }
  16954. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, checkNil bool, canChange bool,
  16955. d *Decoder) (_ map[uint]float32, changed bool) {
  16956. dd := d.d
  16957. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  16958. if checkNil && dd.TryDecodeAsNil() {
  16959. if v != nil {
  16960. changed = true
  16961. }
  16962. return nil, changed
  16963. }
  16964. containerLen := dd.ReadMapStart()
  16965. if canChange && v == nil {
  16966. if containerLen > 0 {
  16967. v = make(map[uint]float32, containerLen)
  16968. } else {
  16969. v = make(map[uint]float32) // supports indefinite-length, etc
  16970. }
  16971. changed = true
  16972. }
  16973. if containerLen > 0 {
  16974. for j := 0; j < containerLen; j++ {
  16975. mk := uint(dd.DecodeUint(uintBitsize))
  16976. mv := v[mk]
  16977. mv = float32(dd.DecodeFloat(true))
  16978. if v != nil {
  16979. v[mk] = mv
  16980. }
  16981. }
  16982. } else if containerLen < 0 {
  16983. for j := 0; !dd.CheckBreak(); j++ {
  16984. if j > 0 {
  16985. dd.ReadMapEntrySeparator()
  16986. }
  16987. mk := uint(dd.DecodeUint(uintBitsize))
  16988. dd.ReadMapKVSeparator()
  16989. mv := v[mk]
  16990. mv = float32(dd.DecodeFloat(true))
  16991. if v != nil {
  16992. v[mk] = mv
  16993. }
  16994. }
  16995. dd.ReadMapEnd()
  16996. }
  16997. return v, changed
  16998. }
  16999. func (f decFnInfo) fastpathDecMapUintFloat64R(rv reflect.Value) {
  17000. if rv.CanAddr() {
  17001. vp := rv.Addr().Interface().(*map[uint]float64)
  17002. v, changed := fastpathTV.DecMapUintFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  17003. if changed {
  17004. *vp = v
  17005. }
  17006. } else {
  17007. v := rv.Interface().(map[uint]float64)
  17008. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, f.d)
  17009. }
  17010. }
  17011. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, checkNil bool, d *Decoder) {
  17012. v, changed := f.DecMapUintFloat64V(*vp, checkNil, true, d)
  17013. if changed {
  17014. *vp = v
  17015. }
  17016. }
  17017. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, checkNil bool, canChange bool,
  17018. d *Decoder) (_ map[uint]float64, changed bool) {
  17019. dd := d.d
  17020. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17021. if checkNil && dd.TryDecodeAsNil() {
  17022. if v != nil {
  17023. changed = true
  17024. }
  17025. return nil, changed
  17026. }
  17027. containerLen := dd.ReadMapStart()
  17028. if canChange && v == nil {
  17029. if containerLen > 0 {
  17030. v = make(map[uint]float64, containerLen)
  17031. } else {
  17032. v = make(map[uint]float64) // supports indefinite-length, etc
  17033. }
  17034. changed = true
  17035. }
  17036. if containerLen > 0 {
  17037. for j := 0; j < containerLen; j++ {
  17038. mk := uint(dd.DecodeUint(uintBitsize))
  17039. mv := v[mk]
  17040. mv = dd.DecodeFloat(false)
  17041. if v != nil {
  17042. v[mk] = mv
  17043. }
  17044. }
  17045. } else if containerLen < 0 {
  17046. for j := 0; !dd.CheckBreak(); j++ {
  17047. if j > 0 {
  17048. dd.ReadMapEntrySeparator()
  17049. }
  17050. mk := uint(dd.DecodeUint(uintBitsize))
  17051. dd.ReadMapKVSeparator()
  17052. mv := v[mk]
  17053. mv = dd.DecodeFloat(false)
  17054. if v != nil {
  17055. v[mk] = mv
  17056. }
  17057. }
  17058. dd.ReadMapEnd()
  17059. }
  17060. return v, changed
  17061. }
  17062. func (f decFnInfo) fastpathDecMapUintBoolR(rv reflect.Value) {
  17063. if rv.CanAddr() {
  17064. vp := rv.Addr().Interface().(*map[uint]bool)
  17065. v, changed := fastpathTV.DecMapUintBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  17066. if changed {
  17067. *vp = v
  17068. }
  17069. } else {
  17070. v := rv.Interface().(map[uint]bool)
  17071. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, f.d)
  17072. }
  17073. }
  17074. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, checkNil bool, d *Decoder) {
  17075. v, changed := f.DecMapUintBoolV(*vp, checkNil, true, d)
  17076. if changed {
  17077. *vp = v
  17078. }
  17079. }
  17080. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, checkNil bool, canChange bool,
  17081. d *Decoder) (_ map[uint]bool, changed bool) {
  17082. dd := d.d
  17083. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17084. if checkNil && dd.TryDecodeAsNil() {
  17085. if v != nil {
  17086. changed = true
  17087. }
  17088. return nil, changed
  17089. }
  17090. containerLen := dd.ReadMapStart()
  17091. if canChange && v == nil {
  17092. if containerLen > 0 {
  17093. v = make(map[uint]bool, containerLen)
  17094. } else {
  17095. v = make(map[uint]bool) // supports indefinite-length, etc
  17096. }
  17097. changed = true
  17098. }
  17099. if containerLen > 0 {
  17100. for j := 0; j < containerLen; j++ {
  17101. mk := uint(dd.DecodeUint(uintBitsize))
  17102. mv := v[mk]
  17103. mv = dd.DecodeBool()
  17104. if v != nil {
  17105. v[mk] = mv
  17106. }
  17107. }
  17108. } else if containerLen < 0 {
  17109. for j := 0; !dd.CheckBreak(); j++ {
  17110. if j > 0 {
  17111. dd.ReadMapEntrySeparator()
  17112. }
  17113. mk := uint(dd.DecodeUint(uintBitsize))
  17114. dd.ReadMapKVSeparator()
  17115. mv := v[mk]
  17116. mv = dd.DecodeBool()
  17117. if v != nil {
  17118. v[mk] = mv
  17119. }
  17120. }
  17121. dd.ReadMapEnd()
  17122. }
  17123. return v, changed
  17124. }
  17125. func (f decFnInfo) fastpathDecMapUint8IntfR(rv reflect.Value) {
  17126. if rv.CanAddr() {
  17127. vp := rv.Addr().Interface().(*map[uint8]interface{})
  17128. v, changed := fastpathTV.DecMapUint8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  17129. if changed {
  17130. *vp = v
  17131. }
  17132. } else {
  17133. v := rv.Interface().(map[uint8]interface{})
  17134. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, f.d)
  17135. }
  17136. }
  17137. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, checkNil bool, d *Decoder) {
  17138. v, changed := f.DecMapUint8IntfV(*vp, checkNil, true, d)
  17139. if changed {
  17140. *vp = v
  17141. }
  17142. }
  17143. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, checkNil bool, canChange bool,
  17144. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  17145. dd := d.d
  17146. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17147. if checkNil && dd.TryDecodeAsNil() {
  17148. if v != nil {
  17149. changed = true
  17150. }
  17151. return nil, changed
  17152. }
  17153. containerLen := dd.ReadMapStart()
  17154. if canChange && v == nil {
  17155. if containerLen > 0 {
  17156. v = make(map[uint8]interface{}, containerLen)
  17157. } else {
  17158. v = make(map[uint8]interface{}) // supports indefinite-length, etc
  17159. }
  17160. changed = true
  17161. }
  17162. if containerLen > 0 {
  17163. for j := 0; j < containerLen; j++ {
  17164. mk := uint8(dd.DecodeUint(8))
  17165. mv := v[mk]
  17166. d.decode(&mv)
  17167. if v != nil {
  17168. v[mk] = mv
  17169. }
  17170. }
  17171. } else if containerLen < 0 {
  17172. for j := 0; !dd.CheckBreak(); j++ {
  17173. if j > 0 {
  17174. dd.ReadMapEntrySeparator()
  17175. }
  17176. mk := uint8(dd.DecodeUint(8))
  17177. dd.ReadMapKVSeparator()
  17178. mv := v[mk]
  17179. d.decode(&mv)
  17180. if v != nil {
  17181. v[mk] = mv
  17182. }
  17183. }
  17184. dd.ReadMapEnd()
  17185. }
  17186. return v, changed
  17187. }
  17188. func (f decFnInfo) fastpathDecMapUint8StringR(rv reflect.Value) {
  17189. if rv.CanAddr() {
  17190. vp := rv.Addr().Interface().(*map[uint8]string)
  17191. v, changed := fastpathTV.DecMapUint8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  17192. if changed {
  17193. *vp = v
  17194. }
  17195. } else {
  17196. v := rv.Interface().(map[uint8]string)
  17197. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, f.d)
  17198. }
  17199. }
  17200. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, checkNil bool, d *Decoder) {
  17201. v, changed := f.DecMapUint8StringV(*vp, checkNil, true, d)
  17202. if changed {
  17203. *vp = v
  17204. }
  17205. }
  17206. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, checkNil bool, canChange bool,
  17207. d *Decoder) (_ map[uint8]string, changed bool) {
  17208. dd := d.d
  17209. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17210. if checkNil && dd.TryDecodeAsNil() {
  17211. if v != nil {
  17212. changed = true
  17213. }
  17214. return nil, changed
  17215. }
  17216. containerLen := dd.ReadMapStart()
  17217. if canChange && v == nil {
  17218. if containerLen > 0 {
  17219. v = make(map[uint8]string, containerLen)
  17220. } else {
  17221. v = make(map[uint8]string) // supports indefinite-length, etc
  17222. }
  17223. changed = true
  17224. }
  17225. if containerLen > 0 {
  17226. for j := 0; j < containerLen; j++ {
  17227. mk := uint8(dd.DecodeUint(8))
  17228. mv := v[mk]
  17229. mv = dd.DecodeString()
  17230. if v != nil {
  17231. v[mk] = mv
  17232. }
  17233. }
  17234. } else if containerLen < 0 {
  17235. for j := 0; !dd.CheckBreak(); j++ {
  17236. if j > 0 {
  17237. dd.ReadMapEntrySeparator()
  17238. }
  17239. mk := uint8(dd.DecodeUint(8))
  17240. dd.ReadMapKVSeparator()
  17241. mv := v[mk]
  17242. mv = dd.DecodeString()
  17243. if v != nil {
  17244. v[mk] = mv
  17245. }
  17246. }
  17247. dd.ReadMapEnd()
  17248. }
  17249. return v, changed
  17250. }
  17251. func (f decFnInfo) fastpathDecMapUint8UintR(rv reflect.Value) {
  17252. if rv.CanAddr() {
  17253. vp := rv.Addr().Interface().(*map[uint8]uint)
  17254. v, changed := fastpathTV.DecMapUint8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  17255. if changed {
  17256. *vp = v
  17257. }
  17258. } else {
  17259. v := rv.Interface().(map[uint8]uint)
  17260. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, f.d)
  17261. }
  17262. }
  17263. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, checkNil bool, d *Decoder) {
  17264. v, changed := f.DecMapUint8UintV(*vp, checkNil, true, d)
  17265. if changed {
  17266. *vp = v
  17267. }
  17268. }
  17269. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, checkNil bool, canChange bool,
  17270. d *Decoder) (_ map[uint8]uint, changed bool) {
  17271. dd := d.d
  17272. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17273. if checkNil && dd.TryDecodeAsNil() {
  17274. if v != nil {
  17275. changed = true
  17276. }
  17277. return nil, changed
  17278. }
  17279. containerLen := dd.ReadMapStart()
  17280. if canChange && v == nil {
  17281. if containerLen > 0 {
  17282. v = make(map[uint8]uint, containerLen)
  17283. } else {
  17284. v = make(map[uint8]uint) // supports indefinite-length, etc
  17285. }
  17286. changed = true
  17287. }
  17288. if containerLen > 0 {
  17289. for j := 0; j < containerLen; j++ {
  17290. mk := uint8(dd.DecodeUint(8))
  17291. mv := v[mk]
  17292. mv = uint(dd.DecodeUint(uintBitsize))
  17293. if v != nil {
  17294. v[mk] = mv
  17295. }
  17296. }
  17297. } else if containerLen < 0 {
  17298. for j := 0; !dd.CheckBreak(); j++ {
  17299. if j > 0 {
  17300. dd.ReadMapEntrySeparator()
  17301. }
  17302. mk := uint8(dd.DecodeUint(8))
  17303. dd.ReadMapKVSeparator()
  17304. mv := v[mk]
  17305. mv = uint(dd.DecodeUint(uintBitsize))
  17306. if v != nil {
  17307. v[mk] = mv
  17308. }
  17309. }
  17310. dd.ReadMapEnd()
  17311. }
  17312. return v, changed
  17313. }
  17314. func (f decFnInfo) fastpathDecMapUint8Uint8R(rv reflect.Value) {
  17315. if rv.CanAddr() {
  17316. vp := rv.Addr().Interface().(*map[uint8]uint8)
  17317. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  17318. if changed {
  17319. *vp = v
  17320. }
  17321. } else {
  17322. v := rv.Interface().(map[uint8]uint8)
  17323. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  17324. }
  17325. }
  17326. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, checkNil bool, d *Decoder) {
  17327. v, changed := f.DecMapUint8Uint8V(*vp, checkNil, true, d)
  17328. if changed {
  17329. *vp = v
  17330. }
  17331. }
  17332. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, checkNil bool, canChange bool,
  17333. d *Decoder) (_ map[uint8]uint8, changed bool) {
  17334. dd := d.d
  17335. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17336. if checkNil && dd.TryDecodeAsNil() {
  17337. if v != nil {
  17338. changed = true
  17339. }
  17340. return nil, changed
  17341. }
  17342. containerLen := dd.ReadMapStart()
  17343. if canChange && v == nil {
  17344. if containerLen > 0 {
  17345. v = make(map[uint8]uint8, containerLen)
  17346. } else {
  17347. v = make(map[uint8]uint8) // supports indefinite-length, etc
  17348. }
  17349. changed = true
  17350. }
  17351. if containerLen > 0 {
  17352. for j := 0; j < containerLen; j++ {
  17353. mk := uint8(dd.DecodeUint(8))
  17354. mv := v[mk]
  17355. mv = uint8(dd.DecodeUint(8))
  17356. if v != nil {
  17357. v[mk] = mv
  17358. }
  17359. }
  17360. } else if containerLen < 0 {
  17361. for j := 0; !dd.CheckBreak(); j++ {
  17362. if j > 0 {
  17363. dd.ReadMapEntrySeparator()
  17364. }
  17365. mk := uint8(dd.DecodeUint(8))
  17366. dd.ReadMapKVSeparator()
  17367. mv := v[mk]
  17368. mv = uint8(dd.DecodeUint(8))
  17369. if v != nil {
  17370. v[mk] = mv
  17371. }
  17372. }
  17373. dd.ReadMapEnd()
  17374. }
  17375. return v, changed
  17376. }
  17377. func (f decFnInfo) fastpathDecMapUint8Uint16R(rv reflect.Value) {
  17378. if rv.CanAddr() {
  17379. vp := rv.Addr().Interface().(*map[uint8]uint16)
  17380. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  17381. if changed {
  17382. *vp = v
  17383. }
  17384. } else {
  17385. v := rv.Interface().(map[uint8]uint16)
  17386. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  17387. }
  17388. }
  17389. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, checkNil bool, d *Decoder) {
  17390. v, changed := f.DecMapUint8Uint16V(*vp, checkNil, true, d)
  17391. if changed {
  17392. *vp = v
  17393. }
  17394. }
  17395. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, checkNil bool, canChange bool,
  17396. d *Decoder) (_ map[uint8]uint16, changed bool) {
  17397. dd := d.d
  17398. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17399. if checkNil && dd.TryDecodeAsNil() {
  17400. if v != nil {
  17401. changed = true
  17402. }
  17403. return nil, changed
  17404. }
  17405. containerLen := dd.ReadMapStart()
  17406. if canChange && v == nil {
  17407. if containerLen > 0 {
  17408. v = make(map[uint8]uint16, containerLen)
  17409. } else {
  17410. v = make(map[uint8]uint16) // supports indefinite-length, etc
  17411. }
  17412. changed = true
  17413. }
  17414. if containerLen > 0 {
  17415. for j := 0; j < containerLen; j++ {
  17416. mk := uint8(dd.DecodeUint(8))
  17417. mv := v[mk]
  17418. mv = uint16(dd.DecodeUint(16))
  17419. if v != nil {
  17420. v[mk] = mv
  17421. }
  17422. }
  17423. } else if containerLen < 0 {
  17424. for j := 0; !dd.CheckBreak(); j++ {
  17425. if j > 0 {
  17426. dd.ReadMapEntrySeparator()
  17427. }
  17428. mk := uint8(dd.DecodeUint(8))
  17429. dd.ReadMapKVSeparator()
  17430. mv := v[mk]
  17431. mv = uint16(dd.DecodeUint(16))
  17432. if v != nil {
  17433. v[mk] = mv
  17434. }
  17435. }
  17436. dd.ReadMapEnd()
  17437. }
  17438. return v, changed
  17439. }
  17440. func (f decFnInfo) fastpathDecMapUint8Uint32R(rv reflect.Value) {
  17441. if rv.CanAddr() {
  17442. vp := rv.Addr().Interface().(*map[uint8]uint32)
  17443. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  17444. if changed {
  17445. *vp = v
  17446. }
  17447. } else {
  17448. v := rv.Interface().(map[uint8]uint32)
  17449. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  17450. }
  17451. }
  17452. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, checkNil bool, d *Decoder) {
  17453. v, changed := f.DecMapUint8Uint32V(*vp, checkNil, true, d)
  17454. if changed {
  17455. *vp = v
  17456. }
  17457. }
  17458. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, checkNil bool, canChange bool,
  17459. d *Decoder) (_ map[uint8]uint32, changed bool) {
  17460. dd := d.d
  17461. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17462. if checkNil && dd.TryDecodeAsNil() {
  17463. if v != nil {
  17464. changed = true
  17465. }
  17466. return nil, changed
  17467. }
  17468. containerLen := dd.ReadMapStart()
  17469. if canChange && v == nil {
  17470. if containerLen > 0 {
  17471. v = make(map[uint8]uint32, containerLen)
  17472. } else {
  17473. v = make(map[uint8]uint32) // supports indefinite-length, etc
  17474. }
  17475. changed = true
  17476. }
  17477. if containerLen > 0 {
  17478. for j := 0; j < containerLen; j++ {
  17479. mk := uint8(dd.DecodeUint(8))
  17480. mv := v[mk]
  17481. mv = uint32(dd.DecodeUint(32))
  17482. if v != nil {
  17483. v[mk] = mv
  17484. }
  17485. }
  17486. } else if containerLen < 0 {
  17487. for j := 0; !dd.CheckBreak(); j++ {
  17488. if j > 0 {
  17489. dd.ReadMapEntrySeparator()
  17490. }
  17491. mk := uint8(dd.DecodeUint(8))
  17492. dd.ReadMapKVSeparator()
  17493. mv := v[mk]
  17494. mv = uint32(dd.DecodeUint(32))
  17495. if v != nil {
  17496. v[mk] = mv
  17497. }
  17498. }
  17499. dd.ReadMapEnd()
  17500. }
  17501. return v, changed
  17502. }
  17503. func (f decFnInfo) fastpathDecMapUint8Uint64R(rv reflect.Value) {
  17504. if rv.CanAddr() {
  17505. vp := rv.Addr().Interface().(*map[uint8]uint64)
  17506. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  17507. if changed {
  17508. *vp = v
  17509. }
  17510. } else {
  17511. v := rv.Interface().(map[uint8]uint64)
  17512. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  17513. }
  17514. }
  17515. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, checkNil bool, d *Decoder) {
  17516. v, changed := f.DecMapUint8Uint64V(*vp, checkNil, true, d)
  17517. if changed {
  17518. *vp = v
  17519. }
  17520. }
  17521. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, checkNil bool, canChange bool,
  17522. d *Decoder) (_ map[uint8]uint64, changed bool) {
  17523. dd := d.d
  17524. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17525. if checkNil && dd.TryDecodeAsNil() {
  17526. if v != nil {
  17527. changed = true
  17528. }
  17529. return nil, changed
  17530. }
  17531. containerLen := dd.ReadMapStart()
  17532. if canChange && v == nil {
  17533. if containerLen > 0 {
  17534. v = make(map[uint8]uint64, containerLen)
  17535. } else {
  17536. v = make(map[uint8]uint64) // supports indefinite-length, etc
  17537. }
  17538. changed = true
  17539. }
  17540. if containerLen > 0 {
  17541. for j := 0; j < containerLen; j++ {
  17542. mk := uint8(dd.DecodeUint(8))
  17543. mv := v[mk]
  17544. mv = dd.DecodeUint(64)
  17545. if v != nil {
  17546. v[mk] = mv
  17547. }
  17548. }
  17549. } else if containerLen < 0 {
  17550. for j := 0; !dd.CheckBreak(); j++ {
  17551. if j > 0 {
  17552. dd.ReadMapEntrySeparator()
  17553. }
  17554. mk := uint8(dd.DecodeUint(8))
  17555. dd.ReadMapKVSeparator()
  17556. mv := v[mk]
  17557. mv = dd.DecodeUint(64)
  17558. if v != nil {
  17559. v[mk] = mv
  17560. }
  17561. }
  17562. dd.ReadMapEnd()
  17563. }
  17564. return v, changed
  17565. }
  17566. func (f decFnInfo) fastpathDecMapUint8IntR(rv reflect.Value) {
  17567. if rv.CanAddr() {
  17568. vp := rv.Addr().Interface().(*map[uint8]int)
  17569. v, changed := fastpathTV.DecMapUint8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  17570. if changed {
  17571. *vp = v
  17572. }
  17573. } else {
  17574. v := rv.Interface().(map[uint8]int)
  17575. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, f.d)
  17576. }
  17577. }
  17578. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, checkNil bool, d *Decoder) {
  17579. v, changed := f.DecMapUint8IntV(*vp, checkNil, true, d)
  17580. if changed {
  17581. *vp = v
  17582. }
  17583. }
  17584. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, checkNil bool, canChange bool,
  17585. d *Decoder) (_ map[uint8]int, changed bool) {
  17586. dd := d.d
  17587. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17588. if checkNil && dd.TryDecodeAsNil() {
  17589. if v != nil {
  17590. changed = true
  17591. }
  17592. return nil, changed
  17593. }
  17594. containerLen := dd.ReadMapStart()
  17595. if canChange && v == nil {
  17596. if containerLen > 0 {
  17597. v = make(map[uint8]int, containerLen)
  17598. } else {
  17599. v = make(map[uint8]int) // supports indefinite-length, etc
  17600. }
  17601. changed = true
  17602. }
  17603. if containerLen > 0 {
  17604. for j := 0; j < containerLen; j++ {
  17605. mk := uint8(dd.DecodeUint(8))
  17606. mv := v[mk]
  17607. mv = int(dd.DecodeInt(intBitsize))
  17608. if v != nil {
  17609. v[mk] = mv
  17610. }
  17611. }
  17612. } else if containerLen < 0 {
  17613. for j := 0; !dd.CheckBreak(); j++ {
  17614. if j > 0 {
  17615. dd.ReadMapEntrySeparator()
  17616. }
  17617. mk := uint8(dd.DecodeUint(8))
  17618. dd.ReadMapKVSeparator()
  17619. mv := v[mk]
  17620. mv = int(dd.DecodeInt(intBitsize))
  17621. if v != nil {
  17622. v[mk] = mv
  17623. }
  17624. }
  17625. dd.ReadMapEnd()
  17626. }
  17627. return v, changed
  17628. }
  17629. func (f decFnInfo) fastpathDecMapUint8Int8R(rv reflect.Value) {
  17630. if rv.CanAddr() {
  17631. vp := rv.Addr().Interface().(*map[uint8]int8)
  17632. v, changed := fastpathTV.DecMapUint8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  17633. if changed {
  17634. *vp = v
  17635. }
  17636. } else {
  17637. v := rv.Interface().(map[uint8]int8)
  17638. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, f.d)
  17639. }
  17640. }
  17641. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, checkNil bool, d *Decoder) {
  17642. v, changed := f.DecMapUint8Int8V(*vp, checkNil, true, d)
  17643. if changed {
  17644. *vp = v
  17645. }
  17646. }
  17647. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, checkNil bool, canChange bool,
  17648. d *Decoder) (_ map[uint8]int8, changed bool) {
  17649. dd := d.d
  17650. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17651. if checkNil && dd.TryDecodeAsNil() {
  17652. if v != nil {
  17653. changed = true
  17654. }
  17655. return nil, changed
  17656. }
  17657. containerLen := dd.ReadMapStart()
  17658. if canChange && v == nil {
  17659. if containerLen > 0 {
  17660. v = make(map[uint8]int8, containerLen)
  17661. } else {
  17662. v = make(map[uint8]int8) // supports indefinite-length, etc
  17663. }
  17664. changed = true
  17665. }
  17666. if containerLen > 0 {
  17667. for j := 0; j < containerLen; j++ {
  17668. mk := uint8(dd.DecodeUint(8))
  17669. mv := v[mk]
  17670. mv = int8(dd.DecodeInt(8))
  17671. if v != nil {
  17672. v[mk] = mv
  17673. }
  17674. }
  17675. } else if containerLen < 0 {
  17676. for j := 0; !dd.CheckBreak(); j++ {
  17677. if j > 0 {
  17678. dd.ReadMapEntrySeparator()
  17679. }
  17680. mk := uint8(dd.DecodeUint(8))
  17681. dd.ReadMapKVSeparator()
  17682. mv := v[mk]
  17683. mv = int8(dd.DecodeInt(8))
  17684. if v != nil {
  17685. v[mk] = mv
  17686. }
  17687. }
  17688. dd.ReadMapEnd()
  17689. }
  17690. return v, changed
  17691. }
  17692. func (f decFnInfo) fastpathDecMapUint8Int16R(rv reflect.Value) {
  17693. if rv.CanAddr() {
  17694. vp := rv.Addr().Interface().(*map[uint8]int16)
  17695. v, changed := fastpathTV.DecMapUint8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  17696. if changed {
  17697. *vp = v
  17698. }
  17699. } else {
  17700. v := rv.Interface().(map[uint8]int16)
  17701. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, f.d)
  17702. }
  17703. }
  17704. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, checkNil bool, d *Decoder) {
  17705. v, changed := f.DecMapUint8Int16V(*vp, checkNil, true, d)
  17706. if changed {
  17707. *vp = v
  17708. }
  17709. }
  17710. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, checkNil bool, canChange bool,
  17711. d *Decoder) (_ map[uint8]int16, changed bool) {
  17712. dd := d.d
  17713. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17714. if checkNil && dd.TryDecodeAsNil() {
  17715. if v != nil {
  17716. changed = true
  17717. }
  17718. return nil, changed
  17719. }
  17720. containerLen := dd.ReadMapStart()
  17721. if canChange && v == nil {
  17722. if containerLen > 0 {
  17723. v = make(map[uint8]int16, containerLen)
  17724. } else {
  17725. v = make(map[uint8]int16) // supports indefinite-length, etc
  17726. }
  17727. changed = true
  17728. }
  17729. if containerLen > 0 {
  17730. for j := 0; j < containerLen; j++ {
  17731. mk := uint8(dd.DecodeUint(8))
  17732. mv := v[mk]
  17733. mv = int16(dd.DecodeInt(16))
  17734. if v != nil {
  17735. v[mk] = mv
  17736. }
  17737. }
  17738. } else if containerLen < 0 {
  17739. for j := 0; !dd.CheckBreak(); j++ {
  17740. if j > 0 {
  17741. dd.ReadMapEntrySeparator()
  17742. }
  17743. mk := uint8(dd.DecodeUint(8))
  17744. dd.ReadMapKVSeparator()
  17745. mv := v[mk]
  17746. mv = int16(dd.DecodeInt(16))
  17747. if v != nil {
  17748. v[mk] = mv
  17749. }
  17750. }
  17751. dd.ReadMapEnd()
  17752. }
  17753. return v, changed
  17754. }
  17755. func (f decFnInfo) fastpathDecMapUint8Int32R(rv reflect.Value) {
  17756. if rv.CanAddr() {
  17757. vp := rv.Addr().Interface().(*map[uint8]int32)
  17758. v, changed := fastpathTV.DecMapUint8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  17759. if changed {
  17760. *vp = v
  17761. }
  17762. } else {
  17763. v := rv.Interface().(map[uint8]int32)
  17764. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, f.d)
  17765. }
  17766. }
  17767. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, checkNil bool, d *Decoder) {
  17768. v, changed := f.DecMapUint8Int32V(*vp, checkNil, true, d)
  17769. if changed {
  17770. *vp = v
  17771. }
  17772. }
  17773. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, checkNil bool, canChange bool,
  17774. d *Decoder) (_ map[uint8]int32, changed bool) {
  17775. dd := d.d
  17776. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17777. if checkNil && dd.TryDecodeAsNil() {
  17778. if v != nil {
  17779. changed = true
  17780. }
  17781. return nil, changed
  17782. }
  17783. containerLen := dd.ReadMapStart()
  17784. if canChange && v == nil {
  17785. if containerLen > 0 {
  17786. v = make(map[uint8]int32, containerLen)
  17787. } else {
  17788. v = make(map[uint8]int32) // supports indefinite-length, etc
  17789. }
  17790. changed = true
  17791. }
  17792. if containerLen > 0 {
  17793. for j := 0; j < containerLen; j++ {
  17794. mk := uint8(dd.DecodeUint(8))
  17795. mv := v[mk]
  17796. mv = int32(dd.DecodeInt(32))
  17797. if v != nil {
  17798. v[mk] = mv
  17799. }
  17800. }
  17801. } else if containerLen < 0 {
  17802. for j := 0; !dd.CheckBreak(); j++ {
  17803. if j > 0 {
  17804. dd.ReadMapEntrySeparator()
  17805. }
  17806. mk := uint8(dd.DecodeUint(8))
  17807. dd.ReadMapKVSeparator()
  17808. mv := v[mk]
  17809. mv = int32(dd.DecodeInt(32))
  17810. if v != nil {
  17811. v[mk] = mv
  17812. }
  17813. }
  17814. dd.ReadMapEnd()
  17815. }
  17816. return v, changed
  17817. }
  17818. func (f decFnInfo) fastpathDecMapUint8Int64R(rv reflect.Value) {
  17819. if rv.CanAddr() {
  17820. vp := rv.Addr().Interface().(*map[uint8]int64)
  17821. v, changed := fastpathTV.DecMapUint8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  17822. if changed {
  17823. *vp = v
  17824. }
  17825. } else {
  17826. v := rv.Interface().(map[uint8]int64)
  17827. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, f.d)
  17828. }
  17829. }
  17830. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, checkNil bool, d *Decoder) {
  17831. v, changed := f.DecMapUint8Int64V(*vp, checkNil, true, d)
  17832. if changed {
  17833. *vp = v
  17834. }
  17835. }
  17836. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, checkNil bool, canChange bool,
  17837. d *Decoder) (_ map[uint8]int64, changed bool) {
  17838. dd := d.d
  17839. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17840. if checkNil && dd.TryDecodeAsNil() {
  17841. if v != nil {
  17842. changed = true
  17843. }
  17844. return nil, changed
  17845. }
  17846. containerLen := dd.ReadMapStart()
  17847. if canChange && v == nil {
  17848. if containerLen > 0 {
  17849. v = make(map[uint8]int64, containerLen)
  17850. } else {
  17851. v = make(map[uint8]int64) // supports indefinite-length, etc
  17852. }
  17853. changed = true
  17854. }
  17855. if containerLen > 0 {
  17856. for j := 0; j < containerLen; j++ {
  17857. mk := uint8(dd.DecodeUint(8))
  17858. mv := v[mk]
  17859. mv = dd.DecodeInt(64)
  17860. if v != nil {
  17861. v[mk] = mv
  17862. }
  17863. }
  17864. } else if containerLen < 0 {
  17865. for j := 0; !dd.CheckBreak(); j++ {
  17866. if j > 0 {
  17867. dd.ReadMapEntrySeparator()
  17868. }
  17869. mk := uint8(dd.DecodeUint(8))
  17870. dd.ReadMapKVSeparator()
  17871. mv := v[mk]
  17872. mv = dd.DecodeInt(64)
  17873. if v != nil {
  17874. v[mk] = mv
  17875. }
  17876. }
  17877. dd.ReadMapEnd()
  17878. }
  17879. return v, changed
  17880. }
  17881. func (f decFnInfo) fastpathDecMapUint8Float32R(rv reflect.Value) {
  17882. if rv.CanAddr() {
  17883. vp := rv.Addr().Interface().(*map[uint8]float32)
  17884. v, changed := fastpathTV.DecMapUint8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  17885. if changed {
  17886. *vp = v
  17887. }
  17888. } else {
  17889. v := rv.Interface().(map[uint8]float32)
  17890. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, f.d)
  17891. }
  17892. }
  17893. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, checkNil bool, d *Decoder) {
  17894. v, changed := f.DecMapUint8Float32V(*vp, checkNil, true, d)
  17895. if changed {
  17896. *vp = v
  17897. }
  17898. }
  17899. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, checkNil bool, canChange bool,
  17900. d *Decoder) (_ map[uint8]float32, changed bool) {
  17901. dd := d.d
  17902. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17903. if checkNil && dd.TryDecodeAsNil() {
  17904. if v != nil {
  17905. changed = true
  17906. }
  17907. return nil, changed
  17908. }
  17909. containerLen := dd.ReadMapStart()
  17910. if canChange && v == nil {
  17911. if containerLen > 0 {
  17912. v = make(map[uint8]float32, containerLen)
  17913. } else {
  17914. v = make(map[uint8]float32) // supports indefinite-length, etc
  17915. }
  17916. changed = true
  17917. }
  17918. if containerLen > 0 {
  17919. for j := 0; j < containerLen; j++ {
  17920. mk := uint8(dd.DecodeUint(8))
  17921. mv := v[mk]
  17922. mv = float32(dd.DecodeFloat(true))
  17923. if v != nil {
  17924. v[mk] = mv
  17925. }
  17926. }
  17927. } else if containerLen < 0 {
  17928. for j := 0; !dd.CheckBreak(); j++ {
  17929. if j > 0 {
  17930. dd.ReadMapEntrySeparator()
  17931. }
  17932. mk := uint8(dd.DecodeUint(8))
  17933. dd.ReadMapKVSeparator()
  17934. mv := v[mk]
  17935. mv = float32(dd.DecodeFloat(true))
  17936. if v != nil {
  17937. v[mk] = mv
  17938. }
  17939. }
  17940. dd.ReadMapEnd()
  17941. }
  17942. return v, changed
  17943. }
  17944. func (f decFnInfo) fastpathDecMapUint8Float64R(rv reflect.Value) {
  17945. if rv.CanAddr() {
  17946. vp := rv.Addr().Interface().(*map[uint8]float64)
  17947. v, changed := fastpathTV.DecMapUint8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  17948. if changed {
  17949. *vp = v
  17950. }
  17951. } else {
  17952. v := rv.Interface().(map[uint8]float64)
  17953. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, f.d)
  17954. }
  17955. }
  17956. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, checkNil bool, d *Decoder) {
  17957. v, changed := f.DecMapUint8Float64V(*vp, checkNil, true, d)
  17958. if changed {
  17959. *vp = v
  17960. }
  17961. }
  17962. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, checkNil bool, canChange bool,
  17963. d *Decoder) (_ map[uint8]float64, changed bool) {
  17964. dd := d.d
  17965. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  17966. if checkNil && dd.TryDecodeAsNil() {
  17967. if v != nil {
  17968. changed = true
  17969. }
  17970. return nil, changed
  17971. }
  17972. containerLen := dd.ReadMapStart()
  17973. if canChange && v == nil {
  17974. if containerLen > 0 {
  17975. v = make(map[uint8]float64, containerLen)
  17976. } else {
  17977. v = make(map[uint8]float64) // supports indefinite-length, etc
  17978. }
  17979. changed = true
  17980. }
  17981. if containerLen > 0 {
  17982. for j := 0; j < containerLen; j++ {
  17983. mk := uint8(dd.DecodeUint(8))
  17984. mv := v[mk]
  17985. mv = dd.DecodeFloat(false)
  17986. if v != nil {
  17987. v[mk] = mv
  17988. }
  17989. }
  17990. } else if containerLen < 0 {
  17991. for j := 0; !dd.CheckBreak(); j++ {
  17992. if j > 0 {
  17993. dd.ReadMapEntrySeparator()
  17994. }
  17995. mk := uint8(dd.DecodeUint(8))
  17996. dd.ReadMapKVSeparator()
  17997. mv := v[mk]
  17998. mv = dd.DecodeFloat(false)
  17999. if v != nil {
  18000. v[mk] = mv
  18001. }
  18002. }
  18003. dd.ReadMapEnd()
  18004. }
  18005. return v, changed
  18006. }
  18007. func (f decFnInfo) fastpathDecMapUint8BoolR(rv reflect.Value) {
  18008. if rv.CanAddr() {
  18009. vp := rv.Addr().Interface().(*map[uint8]bool)
  18010. v, changed := fastpathTV.DecMapUint8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  18011. if changed {
  18012. *vp = v
  18013. }
  18014. } else {
  18015. v := rv.Interface().(map[uint8]bool)
  18016. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, f.d)
  18017. }
  18018. }
  18019. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, checkNil bool, d *Decoder) {
  18020. v, changed := f.DecMapUint8BoolV(*vp, checkNil, true, d)
  18021. if changed {
  18022. *vp = v
  18023. }
  18024. }
  18025. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, checkNil bool, canChange bool,
  18026. d *Decoder) (_ map[uint8]bool, changed bool) {
  18027. dd := d.d
  18028. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18029. if checkNil && dd.TryDecodeAsNil() {
  18030. if v != nil {
  18031. changed = true
  18032. }
  18033. return nil, changed
  18034. }
  18035. containerLen := dd.ReadMapStart()
  18036. if canChange && v == nil {
  18037. if containerLen > 0 {
  18038. v = make(map[uint8]bool, containerLen)
  18039. } else {
  18040. v = make(map[uint8]bool) // supports indefinite-length, etc
  18041. }
  18042. changed = true
  18043. }
  18044. if containerLen > 0 {
  18045. for j := 0; j < containerLen; j++ {
  18046. mk := uint8(dd.DecodeUint(8))
  18047. mv := v[mk]
  18048. mv = dd.DecodeBool()
  18049. if v != nil {
  18050. v[mk] = mv
  18051. }
  18052. }
  18053. } else if containerLen < 0 {
  18054. for j := 0; !dd.CheckBreak(); j++ {
  18055. if j > 0 {
  18056. dd.ReadMapEntrySeparator()
  18057. }
  18058. mk := uint8(dd.DecodeUint(8))
  18059. dd.ReadMapKVSeparator()
  18060. mv := v[mk]
  18061. mv = dd.DecodeBool()
  18062. if v != nil {
  18063. v[mk] = mv
  18064. }
  18065. }
  18066. dd.ReadMapEnd()
  18067. }
  18068. return v, changed
  18069. }
  18070. func (f decFnInfo) fastpathDecMapUint16IntfR(rv reflect.Value) {
  18071. if rv.CanAddr() {
  18072. vp := rv.Addr().Interface().(*map[uint16]interface{})
  18073. v, changed := fastpathTV.DecMapUint16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  18074. if changed {
  18075. *vp = v
  18076. }
  18077. } else {
  18078. v := rv.Interface().(map[uint16]interface{})
  18079. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, f.d)
  18080. }
  18081. }
  18082. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, checkNil bool, d *Decoder) {
  18083. v, changed := f.DecMapUint16IntfV(*vp, checkNil, true, d)
  18084. if changed {
  18085. *vp = v
  18086. }
  18087. }
  18088. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, checkNil bool, canChange bool,
  18089. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  18090. dd := d.d
  18091. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18092. if checkNil && dd.TryDecodeAsNil() {
  18093. if v != nil {
  18094. changed = true
  18095. }
  18096. return nil, changed
  18097. }
  18098. containerLen := dd.ReadMapStart()
  18099. if canChange && v == nil {
  18100. if containerLen > 0 {
  18101. v = make(map[uint16]interface{}, containerLen)
  18102. } else {
  18103. v = make(map[uint16]interface{}) // supports indefinite-length, etc
  18104. }
  18105. changed = true
  18106. }
  18107. if containerLen > 0 {
  18108. for j := 0; j < containerLen; j++ {
  18109. mk := uint16(dd.DecodeUint(16))
  18110. mv := v[mk]
  18111. d.decode(&mv)
  18112. if v != nil {
  18113. v[mk] = mv
  18114. }
  18115. }
  18116. } else if containerLen < 0 {
  18117. for j := 0; !dd.CheckBreak(); j++ {
  18118. if j > 0 {
  18119. dd.ReadMapEntrySeparator()
  18120. }
  18121. mk := uint16(dd.DecodeUint(16))
  18122. dd.ReadMapKVSeparator()
  18123. mv := v[mk]
  18124. d.decode(&mv)
  18125. if v != nil {
  18126. v[mk] = mv
  18127. }
  18128. }
  18129. dd.ReadMapEnd()
  18130. }
  18131. return v, changed
  18132. }
  18133. func (f decFnInfo) fastpathDecMapUint16StringR(rv reflect.Value) {
  18134. if rv.CanAddr() {
  18135. vp := rv.Addr().Interface().(*map[uint16]string)
  18136. v, changed := fastpathTV.DecMapUint16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  18137. if changed {
  18138. *vp = v
  18139. }
  18140. } else {
  18141. v := rv.Interface().(map[uint16]string)
  18142. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, f.d)
  18143. }
  18144. }
  18145. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, checkNil bool, d *Decoder) {
  18146. v, changed := f.DecMapUint16StringV(*vp, checkNil, true, d)
  18147. if changed {
  18148. *vp = v
  18149. }
  18150. }
  18151. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, checkNil bool, canChange bool,
  18152. d *Decoder) (_ map[uint16]string, changed bool) {
  18153. dd := d.d
  18154. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18155. if checkNil && dd.TryDecodeAsNil() {
  18156. if v != nil {
  18157. changed = true
  18158. }
  18159. return nil, changed
  18160. }
  18161. containerLen := dd.ReadMapStart()
  18162. if canChange && v == nil {
  18163. if containerLen > 0 {
  18164. v = make(map[uint16]string, containerLen)
  18165. } else {
  18166. v = make(map[uint16]string) // supports indefinite-length, etc
  18167. }
  18168. changed = true
  18169. }
  18170. if containerLen > 0 {
  18171. for j := 0; j < containerLen; j++ {
  18172. mk := uint16(dd.DecodeUint(16))
  18173. mv := v[mk]
  18174. mv = dd.DecodeString()
  18175. if v != nil {
  18176. v[mk] = mv
  18177. }
  18178. }
  18179. } else if containerLen < 0 {
  18180. for j := 0; !dd.CheckBreak(); j++ {
  18181. if j > 0 {
  18182. dd.ReadMapEntrySeparator()
  18183. }
  18184. mk := uint16(dd.DecodeUint(16))
  18185. dd.ReadMapKVSeparator()
  18186. mv := v[mk]
  18187. mv = dd.DecodeString()
  18188. if v != nil {
  18189. v[mk] = mv
  18190. }
  18191. }
  18192. dd.ReadMapEnd()
  18193. }
  18194. return v, changed
  18195. }
  18196. func (f decFnInfo) fastpathDecMapUint16UintR(rv reflect.Value) {
  18197. if rv.CanAddr() {
  18198. vp := rv.Addr().Interface().(*map[uint16]uint)
  18199. v, changed := fastpathTV.DecMapUint16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  18200. if changed {
  18201. *vp = v
  18202. }
  18203. } else {
  18204. v := rv.Interface().(map[uint16]uint)
  18205. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, f.d)
  18206. }
  18207. }
  18208. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, checkNil bool, d *Decoder) {
  18209. v, changed := f.DecMapUint16UintV(*vp, checkNil, true, d)
  18210. if changed {
  18211. *vp = v
  18212. }
  18213. }
  18214. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, checkNil bool, canChange bool,
  18215. d *Decoder) (_ map[uint16]uint, changed bool) {
  18216. dd := d.d
  18217. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18218. if checkNil && dd.TryDecodeAsNil() {
  18219. if v != nil {
  18220. changed = true
  18221. }
  18222. return nil, changed
  18223. }
  18224. containerLen := dd.ReadMapStart()
  18225. if canChange && v == nil {
  18226. if containerLen > 0 {
  18227. v = make(map[uint16]uint, containerLen)
  18228. } else {
  18229. v = make(map[uint16]uint) // supports indefinite-length, etc
  18230. }
  18231. changed = true
  18232. }
  18233. if containerLen > 0 {
  18234. for j := 0; j < containerLen; j++ {
  18235. mk := uint16(dd.DecodeUint(16))
  18236. mv := v[mk]
  18237. mv = uint(dd.DecodeUint(uintBitsize))
  18238. if v != nil {
  18239. v[mk] = mv
  18240. }
  18241. }
  18242. } else if containerLen < 0 {
  18243. for j := 0; !dd.CheckBreak(); j++ {
  18244. if j > 0 {
  18245. dd.ReadMapEntrySeparator()
  18246. }
  18247. mk := uint16(dd.DecodeUint(16))
  18248. dd.ReadMapKVSeparator()
  18249. mv := v[mk]
  18250. mv = uint(dd.DecodeUint(uintBitsize))
  18251. if v != nil {
  18252. v[mk] = mv
  18253. }
  18254. }
  18255. dd.ReadMapEnd()
  18256. }
  18257. return v, changed
  18258. }
  18259. func (f decFnInfo) fastpathDecMapUint16Uint8R(rv reflect.Value) {
  18260. if rv.CanAddr() {
  18261. vp := rv.Addr().Interface().(*map[uint16]uint8)
  18262. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  18263. if changed {
  18264. *vp = v
  18265. }
  18266. } else {
  18267. v := rv.Interface().(map[uint16]uint8)
  18268. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  18269. }
  18270. }
  18271. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, checkNil bool, d *Decoder) {
  18272. v, changed := f.DecMapUint16Uint8V(*vp, checkNil, true, d)
  18273. if changed {
  18274. *vp = v
  18275. }
  18276. }
  18277. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, checkNil bool, canChange bool,
  18278. d *Decoder) (_ map[uint16]uint8, changed bool) {
  18279. dd := d.d
  18280. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18281. if checkNil && dd.TryDecodeAsNil() {
  18282. if v != nil {
  18283. changed = true
  18284. }
  18285. return nil, changed
  18286. }
  18287. containerLen := dd.ReadMapStart()
  18288. if canChange && v == nil {
  18289. if containerLen > 0 {
  18290. v = make(map[uint16]uint8, containerLen)
  18291. } else {
  18292. v = make(map[uint16]uint8) // supports indefinite-length, etc
  18293. }
  18294. changed = true
  18295. }
  18296. if containerLen > 0 {
  18297. for j := 0; j < containerLen; j++ {
  18298. mk := uint16(dd.DecodeUint(16))
  18299. mv := v[mk]
  18300. mv = uint8(dd.DecodeUint(8))
  18301. if v != nil {
  18302. v[mk] = mv
  18303. }
  18304. }
  18305. } else if containerLen < 0 {
  18306. for j := 0; !dd.CheckBreak(); j++ {
  18307. if j > 0 {
  18308. dd.ReadMapEntrySeparator()
  18309. }
  18310. mk := uint16(dd.DecodeUint(16))
  18311. dd.ReadMapKVSeparator()
  18312. mv := v[mk]
  18313. mv = uint8(dd.DecodeUint(8))
  18314. if v != nil {
  18315. v[mk] = mv
  18316. }
  18317. }
  18318. dd.ReadMapEnd()
  18319. }
  18320. return v, changed
  18321. }
  18322. func (f decFnInfo) fastpathDecMapUint16Uint16R(rv reflect.Value) {
  18323. if rv.CanAddr() {
  18324. vp := rv.Addr().Interface().(*map[uint16]uint16)
  18325. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  18326. if changed {
  18327. *vp = v
  18328. }
  18329. } else {
  18330. v := rv.Interface().(map[uint16]uint16)
  18331. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  18332. }
  18333. }
  18334. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, checkNil bool, d *Decoder) {
  18335. v, changed := f.DecMapUint16Uint16V(*vp, checkNil, true, d)
  18336. if changed {
  18337. *vp = v
  18338. }
  18339. }
  18340. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, checkNil bool, canChange bool,
  18341. d *Decoder) (_ map[uint16]uint16, changed bool) {
  18342. dd := d.d
  18343. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18344. if checkNil && dd.TryDecodeAsNil() {
  18345. if v != nil {
  18346. changed = true
  18347. }
  18348. return nil, changed
  18349. }
  18350. containerLen := dd.ReadMapStart()
  18351. if canChange && v == nil {
  18352. if containerLen > 0 {
  18353. v = make(map[uint16]uint16, containerLen)
  18354. } else {
  18355. v = make(map[uint16]uint16) // supports indefinite-length, etc
  18356. }
  18357. changed = true
  18358. }
  18359. if containerLen > 0 {
  18360. for j := 0; j < containerLen; j++ {
  18361. mk := uint16(dd.DecodeUint(16))
  18362. mv := v[mk]
  18363. mv = uint16(dd.DecodeUint(16))
  18364. if v != nil {
  18365. v[mk] = mv
  18366. }
  18367. }
  18368. } else if containerLen < 0 {
  18369. for j := 0; !dd.CheckBreak(); j++ {
  18370. if j > 0 {
  18371. dd.ReadMapEntrySeparator()
  18372. }
  18373. mk := uint16(dd.DecodeUint(16))
  18374. dd.ReadMapKVSeparator()
  18375. mv := v[mk]
  18376. mv = uint16(dd.DecodeUint(16))
  18377. if v != nil {
  18378. v[mk] = mv
  18379. }
  18380. }
  18381. dd.ReadMapEnd()
  18382. }
  18383. return v, changed
  18384. }
  18385. func (f decFnInfo) fastpathDecMapUint16Uint32R(rv reflect.Value) {
  18386. if rv.CanAddr() {
  18387. vp := rv.Addr().Interface().(*map[uint16]uint32)
  18388. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  18389. if changed {
  18390. *vp = v
  18391. }
  18392. } else {
  18393. v := rv.Interface().(map[uint16]uint32)
  18394. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  18395. }
  18396. }
  18397. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, checkNil bool, d *Decoder) {
  18398. v, changed := f.DecMapUint16Uint32V(*vp, checkNil, true, d)
  18399. if changed {
  18400. *vp = v
  18401. }
  18402. }
  18403. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, checkNil bool, canChange bool,
  18404. d *Decoder) (_ map[uint16]uint32, changed bool) {
  18405. dd := d.d
  18406. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18407. if checkNil && dd.TryDecodeAsNil() {
  18408. if v != nil {
  18409. changed = true
  18410. }
  18411. return nil, changed
  18412. }
  18413. containerLen := dd.ReadMapStart()
  18414. if canChange && v == nil {
  18415. if containerLen > 0 {
  18416. v = make(map[uint16]uint32, containerLen)
  18417. } else {
  18418. v = make(map[uint16]uint32) // supports indefinite-length, etc
  18419. }
  18420. changed = true
  18421. }
  18422. if containerLen > 0 {
  18423. for j := 0; j < containerLen; j++ {
  18424. mk := uint16(dd.DecodeUint(16))
  18425. mv := v[mk]
  18426. mv = uint32(dd.DecodeUint(32))
  18427. if v != nil {
  18428. v[mk] = mv
  18429. }
  18430. }
  18431. } else if containerLen < 0 {
  18432. for j := 0; !dd.CheckBreak(); j++ {
  18433. if j > 0 {
  18434. dd.ReadMapEntrySeparator()
  18435. }
  18436. mk := uint16(dd.DecodeUint(16))
  18437. dd.ReadMapKVSeparator()
  18438. mv := v[mk]
  18439. mv = uint32(dd.DecodeUint(32))
  18440. if v != nil {
  18441. v[mk] = mv
  18442. }
  18443. }
  18444. dd.ReadMapEnd()
  18445. }
  18446. return v, changed
  18447. }
  18448. func (f decFnInfo) fastpathDecMapUint16Uint64R(rv reflect.Value) {
  18449. if rv.CanAddr() {
  18450. vp := rv.Addr().Interface().(*map[uint16]uint64)
  18451. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  18452. if changed {
  18453. *vp = v
  18454. }
  18455. } else {
  18456. v := rv.Interface().(map[uint16]uint64)
  18457. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  18458. }
  18459. }
  18460. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, checkNil bool, d *Decoder) {
  18461. v, changed := f.DecMapUint16Uint64V(*vp, checkNil, true, d)
  18462. if changed {
  18463. *vp = v
  18464. }
  18465. }
  18466. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, checkNil bool, canChange bool,
  18467. d *Decoder) (_ map[uint16]uint64, changed bool) {
  18468. dd := d.d
  18469. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18470. if checkNil && dd.TryDecodeAsNil() {
  18471. if v != nil {
  18472. changed = true
  18473. }
  18474. return nil, changed
  18475. }
  18476. containerLen := dd.ReadMapStart()
  18477. if canChange && v == nil {
  18478. if containerLen > 0 {
  18479. v = make(map[uint16]uint64, containerLen)
  18480. } else {
  18481. v = make(map[uint16]uint64) // supports indefinite-length, etc
  18482. }
  18483. changed = true
  18484. }
  18485. if containerLen > 0 {
  18486. for j := 0; j < containerLen; j++ {
  18487. mk := uint16(dd.DecodeUint(16))
  18488. mv := v[mk]
  18489. mv = dd.DecodeUint(64)
  18490. if v != nil {
  18491. v[mk] = mv
  18492. }
  18493. }
  18494. } else if containerLen < 0 {
  18495. for j := 0; !dd.CheckBreak(); j++ {
  18496. if j > 0 {
  18497. dd.ReadMapEntrySeparator()
  18498. }
  18499. mk := uint16(dd.DecodeUint(16))
  18500. dd.ReadMapKVSeparator()
  18501. mv := v[mk]
  18502. mv = dd.DecodeUint(64)
  18503. if v != nil {
  18504. v[mk] = mv
  18505. }
  18506. }
  18507. dd.ReadMapEnd()
  18508. }
  18509. return v, changed
  18510. }
  18511. func (f decFnInfo) fastpathDecMapUint16IntR(rv reflect.Value) {
  18512. if rv.CanAddr() {
  18513. vp := rv.Addr().Interface().(*map[uint16]int)
  18514. v, changed := fastpathTV.DecMapUint16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  18515. if changed {
  18516. *vp = v
  18517. }
  18518. } else {
  18519. v := rv.Interface().(map[uint16]int)
  18520. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, f.d)
  18521. }
  18522. }
  18523. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, checkNil bool, d *Decoder) {
  18524. v, changed := f.DecMapUint16IntV(*vp, checkNil, true, d)
  18525. if changed {
  18526. *vp = v
  18527. }
  18528. }
  18529. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, checkNil bool, canChange bool,
  18530. d *Decoder) (_ map[uint16]int, changed bool) {
  18531. dd := d.d
  18532. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18533. if checkNil && dd.TryDecodeAsNil() {
  18534. if v != nil {
  18535. changed = true
  18536. }
  18537. return nil, changed
  18538. }
  18539. containerLen := dd.ReadMapStart()
  18540. if canChange && v == nil {
  18541. if containerLen > 0 {
  18542. v = make(map[uint16]int, containerLen)
  18543. } else {
  18544. v = make(map[uint16]int) // supports indefinite-length, etc
  18545. }
  18546. changed = true
  18547. }
  18548. if containerLen > 0 {
  18549. for j := 0; j < containerLen; j++ {
  18550. mk := uint16(dd.DecodeUint(16))
  18551. mv := v[mk]
  18552. mv = int(dd.DecodeInt(intBitsize))
  18553. if v != nil {
  18554. v[mk] = mv
  18555. }
  18556. }
  18557. } else if containerLen < 0 {
  18558. for j := 0; !dd.CheckBreak(); j++ {
  18559. if j > 0 {
  18560. dd.ReadMapEntrySeparator()
  18561. }
  18562. mk := uint16(dd.DecodeUint(16))
  18563. dd.ReadMapKVSeparator()
  18564. mv := v[mk]
  18565. mv = int(dd.DecodeInt(intBitsize))
  18566. if v != nil {
  18567. v[mk] = mv
  18568. }
  18569. }
  18570. dd.ReadMapEnd()
  18571. }
  18572. return v, changed
  18573. }
  18574. func (f decFnInfo) fastpathDecMapUint16Int8R(rv reflect.Value) {
  18575. if rv.CanAddr() {
  18576. vp := rv.Addr().Interface().(*map[uint16]int8)
  18577. v, changed := fastpathTV.DecMapUint16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  18578. if changed {
  18579. *vp = v
  18580. }
  18581. } else {
  18582. v := rv.Interface().(map[uint16]int8)
  18583. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, f.d)
  18584. }
  18585. }
  18586. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, checkNil bool, d *Decoder) {
  18587. v, changed := f.DecMapUint16Int8V(*vp, checkNil, true, d)
  18588. if changed {
  18589. *vp = v
  18590. }
  18591. }
  18592. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, checkNil bool, canChange bool,
  18593. d *Decoder) (_ map[uint16]int8, changed bool) {
  18594. dd := d.d
  18595. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18596. if checkNil && dd.TryDecodeAsNil() {
  18597. if v != nil {
  18598. changed = true
  18599. }
  18600. return nil, changed
  18601. }
  18602. containerLen := dd.ReadMapStart()
  18603. if canChange && v == nil {
  18604. if containerLen > 0 {
  18605. v = make(map[uint16]int8, containerLen)
  18606. } else {
  18607. v = make(map[uint16]int8) // supports indefinite-length, etc
  18608. }
  18609. changed = true
  18610. }
  18611. if containerLen > 0 {
  18612. for j := 0; j < containerLen; j++ {
  18613. mk := uint16(dd.DecodeUint(16))
  18614. mv := v[mk]
  18615. mv = int8(dd.DecodeInt(8))
  18616. if v != nil {
  18617. v[mk] = mv
  18618. }
  18619. }
  18620. } else if containerLen < 0 {
  18621. for j := 0; !dd.CheckBreak(); j++ {
  18622. if j > 0 {
  18623. dd.ReadMapEntrySeparator()
  18624. }
  18625. mk := uint16(dd.DecodeUint(16))
  18626. dd.ReadMapKVSeparator()
  18627. mv := v[mk]
  18628. mv = int8(dd.DecodeInt(8))
  18629. if v != nil {
  18630. v[mk] = mv
  18631. }
  18632. }
  18633. dd.ReadMapEnd()
  18634. }
  18635. return v, changed
  18636. }
  18637. func (f decFnInfo) fastpathDecMapUint16Int16R(rv reflect.Value) {
  18638. if rv.CanAddr() {
  18639. vp := rv.Addr().Interface().(*map[uint16]int16)
  18640. v, changed := fastpathTV.DecMapUint16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  18641. if changed {
  18642. *vp = v
  18643. }
  18644. } else {
  18645. v := rv.Interface().(map[uint16]int16)
  18646. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, f.d)
  18647. }
  18648. }
  18649. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, checkNil bool, d *Decoder) {
  18650. v, changed := f.DecMapUint16Int16V(*vp, checkNil, true, d)
  18651. if changed {
  18652. *vp = v
  18653. }
  18654. }
  18655. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, checkNil bool, canChange bool,
  18656. d *Decoder) (_ map[uint16]int16, changed bool) {
  18657. dd := d.d
  18658. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18659. if checkNil && dd.TryDecodeAsNil() {
  18660. if v != nil {
  18661. changed = true
  18662. }
  18663. return nil, changed
  18664. }
  18665. containerLen := dd.ReadMapStart()
  18666. if canChange && v == nil {
  18667. if containerLen > 0 {
  18668. v = make(map[uint16]int16, containerLen)
  18669. } else {
  18670. v = make(map[uint16]int16) // supports indefinite-length, etc
  18671. }
  18672. changed = true
  18673. }
  18674. if containerLen > 0 {
  18675. for j := 0; j < containerLen; j++ {
  18676. mk := uint16(dd.DecodeUint(16))
  18677. mv := v[mk]
  18678. mv = int16(dd.DecodeInt(16))
  18679. if v != nil {
  18680. v[mk] = mv
  18681. }
  18682. }
  18683. } else if containerLen < 0 {
  18684. for j := 0; !dd.CheckBreak(); j++ {
  18685. if j > 0 {
  18686. dd.ReadMapEntrySeparator()
  18687. }
  18688. mk := uint16(dd.DecodeUint(16))
  18689. dd.ReadMapKVSeparator()
  18690. mv := v[mk]
  18691. mv = int16(dd.DecodeInt(16))
  18692. if v != nil {
  18693. v[mk] = mv
  18694. }
  18695. }
  18696. dd.ReadMapEnd()
  18697. }
  18698. return v, changed
  18699. }
  18700. func (f decFnInfo) fastpathDecMapUint16Int32R(rv reflect.Value) {
  18701. if rv.CanAddr() {
  18702. vp := rv.Addr().Interface().(*map[uint16]int32)
  18703. v, changed := fastpathTV.DecMapUint16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  18704. if changed {
  18705. *vp = v
  18706. }
  18707. } else {
  18708. v := rv.Interface().(map[uint16]int32)
  18709. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, f.d)
  18710. }
  18711. }
  18712. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, checkNil bool, d *Decoder) {
  18713. v, changed := f.DecMapUint16Int32V(*vp, checkNil, true, d)
  18714. if changed {
  18715. *vp = v
  18716. }
  18717. }
  18718. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, checkNil bool, canChange bool,
  18719. d *Decoder) (_ map[uint16]int32, changed bool) {
  18720. dd := d.d
  18721. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18722. if checkNil && dd.TryDecodeAsNil() {
  18723. if v != nil {
  18724. changed = true
  18725. }
  18726. return nil, changed
  18727. }
  18728. containerLen := dd.ReadMapStart()
  18729. if canChange && v == nil {
  18730. if containerLen > 0 {
  18731. v = make(map[uint16]int32, containerLen)
  18732. } else {
  18733. v = make(map[uint16]int32) // supports indefinite-length, etc
  18734. }
  18735. changed = true
  18736. }
  18737. if containerLen > 0 {
  18738. for j := 0; j < containerLen; j++ {
  18739. mk := uint16(dd.DecodeUint(16))
  18740. mv := v[mk]
  18741. mv = int32(dd.DecodeInt(32))
  18742. if v != nil {
  18743. v[mk] = mv
  18744. }
  18745. }
  18746. } else if containerLen < 0 {
  18747. for j := 0; !dd.CheckBreak(); j++ {
  18748. if j > 0 {
  18749. dd.ReadMapEntrySeparator()
  18750. }
  18751. mk := uint16(dd.DecodeUint(16))
  18752. dd.ReadMapKVSeparator()
  18753. mv := v[mk]
  18754. mv = int32(dd.DecodeInt(32))
  18755. if v != nil {
  18756. v[mk] = mv
  18757. }
  18758. }
  18759. dd.ReadMapEnd()
  18760. }
  18761. return v, changed
  18762. }
  18763. func (f decFnInfo) fastpathDecMapUint16Int64R(rv reflect.Value) {
  18764. if rv.CanAddr() {
  18765. vp := rv.Addr().Interface().(*map[uint16]int64)
  18766. v, changed := fastpathTV.DecMapUint16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  18767. if changed {
  18768. *vp = v
  18769. }
  18770. } else {
  18771. v := rv.Interface().(map[uint16]int64)
  18772. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, f.d)
  18773. }
  18774. }
  18775. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, checkNil bool, d *Decoder) {
  18776. v, changed := f.DecMapUint16Int64V(*vp, checkNil, true, d)
  18777. if changed {
  18778. *vp = v
  18779. }
  18780. }
  18781. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, checkNil bool, canChange bool,
  18782. d *Decoder) (_ map[uint16]int64, changed bool) {
  18783. dd := d.d
  18784. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18785. if checkNil && dd.TryDecodeAsNil() {
  18786. if v != nil {
  18787. changed = true
  18788. }
  18789. return nil, changed
  18790. }
  18791. containerLen := dd.ReadMapStart()
  18792. if canChange && v == nil {
  18793. if containerLen > 0 {
  18794. v = make(map[uint16]int64, containerLen)
  18795. } else {
  18796. v = make(map[uint16]int64) // supports indefinite-length, etc
  18797. }
  18798. changed = true
  18799. }
  18800. if containerLen > 0 {
  18801. for j := 0; j < containerLen; j++ {
  18802. mk := uint16(dd.DecodeUint(16))
  18803. mv := v[mk]
  18804. mv = dd.DecodeInt(64)
  18805. if v != nil {
  18806. v[mk] = mv
  18807. }
  18808. }
  18809. } else if containerLen < 0 {
  18810. for j := 0; !dd.CheckBreak(); j++ {
  18811. if j > 0 {
  18812. dd.ReadMapEntrySeparator()
  18813. }
  18814. mk := uint16(dd.DecodeUint(16))
  18815. dd.ReadMapKVSeparator()
  18816. mv := v[mk]
  18817. mv = dd.DecodeInt(64)
  18818. if v != nil {
  18819. v[mk] = mv
  18820. }
  18821. }
  18822. dd.ReadMapEnd()
  18823. }
  18824. return v, changed
  18825. }
  18826. func (f decFnInfo) fastpathDecMapUint16Float32R(rv reflect.Value) {
  18827. if rv.CanAddr() {
  18828. vp := rv.Addr().Interface().(*map[uint16]float32)
  18829. v, changed := fastpathTV.DecMapUint16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  18830. if changed {
  18831. *vp = v
  18832. }
  18833. } else {
  18834. v := rv.Interface().(map[uint16]float32)
  18835. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, f.d)
  18836. }
  18837. }
  18838. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, checkNil bool, d *Decoder) {
  18839. v, changed := f.DecMapUint16Float32V(*vp, checkNil, true, d)
  18840. if changed {
  18841. *vp = v
  18842. }
  18843. }
  18844. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, checkNil bool, canChange bool,
  18845. d *Decoder) (_ map[uint16]float32, changed bool) {
  18846. dd := d.d
  18847. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18848. if checkNil && dd.TryDecodeAsNil() {
  18849. if v != nil {
  18850. changed = true
  18851. }
  18852. return nil, changed
  18853. }
  18854. containerLen := dd.ReadMapStart()
  18855. if canChange && v == nil {
  18856. if containerLen > 0 {
  18857. v = make(map[uint16]float32, containerLen)
  18858. } else {
  18859. v = make(map[uint16]float32) // supports indefinite-length, etc
  18860. }
  18861. changed = true
  18862. }
  18863. if containerLen > 0 {
  18864. for j := 0; j < containerLen; j++ {
  18865. mk := uint16(dd.DecodeUint(16))
  18866. mv := v[mk]
  18867. mv = float32(dd.DecodeFloat(true))
  18868. if v != nil {
  18869. v[mk] = mv
  18870. }
  18871. }
  18872. } else if containerLen < 0 {
  18873. for j := 0; !dd.CheckBreak(); j++ {
  18874. if j > 0 {
  18875. dd.ReadMapEntrySeparator()
  18876. }
  18877. mk := uint16(dd.DecodeUint(16))
  18878. dd.ReadMapKVSeparator()
  18879. mv := v[mk]
  18880. mv = float32(dd.DecodeFloat(true))
  18881. if v != nil {
  18882. v[mk] = mv
  18883. }
  18884. }
  18885. dd.ReadMapEnd()
  18886. }
  18887. return v, changed
  18888. }
  18889. func (f decFnInfo) fastpathDecMapUint16Float64R(rv reflect.Value) {
  18890. if rv.CanAddr() {
  18891. vp := rv.Addr().Interface().(*map[uint16]float64)
  18892. v, changed := fastpathTV.DecMapUint16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  18893. if changed {
  18894. *vp = v
  18895. }
  18896. } else {
  18897. v := rv.Interface().(map[uint16]float64)
  18898. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, f.d)
  18899. }
  18900. }
  18901. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, checkNil bool, d *Decoder) {
  18902. v, changed := f.DecMapUint16Float64V(*vp, checkNil, true, d)
  18903. if changed {
  18904. *vp = v
  18905. }
  18906. }
  18907. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, checkNil bool, canChange bool,
  18908. d *Decoder) (_ map[uint16]float64, changed bool) {
  18909. dd := d.d
  18910. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18911. if checkNil && dd.TryDecodeAsNil() {
  18912. if v != nil {
  18913. changed = true
  18914. }
  18915. return nil, changed
  18916. }
  18917. containerLen := dd.ReadMapStart()
  18918. if canChange && v == nil {
  18919. if containerLen > 0 {
  18920. v = make(map[uint16]float64, containerLen)
  18921. } else {
  18922. v = make(map[uint16]float64) // supports indefinite-length, etc
  18923. }
  18924. changed = true
  18925. }
  18926. if containerLen > 0 {
  18927. for j := 0; j < containerLen; j++ {
  18928. mk := uint16(dd.DecodeUint(16))
  18929. mv := v[mk]
  18930. mv = dd.DecodeFloat(false)
  18931. if v != nil {
  18932. v[mk] = mv
  18933. }
  18934. }
  18935. } else if containerLen < 0 {
  18936. for j := 0; !dd.CheckBreak(); j++ {
  18937. if j > 0 {
  18938. dd.ReadMapEntrySeparator()
  18939. }
  18940. mk := uint16(dd.DecodeUint(16))
  18941. dd.ReadMapKVSeparator()
  18942. mv := v[mk]
  18943. mv = dd.DecodeFloat(false)
  18944. if v != nil {
  18945. v[mk] = mv
  18946. }
  18947. }
  18948. dd.ReadMapEnd()
  18949. }
  18950. return v, changed
  18951. }
  18952. func (f decFnInfo) fastpathDecMapUint16BoolR(rv reflect.Value) {
  18953. if rv.CanAddr() {
  18954. vp := rv.Addr().Interface().(*map[uint16]bool)
  18955. v, changed := fastpathTV.DecMapUint16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  18956. if changed {
  18957. *vp = v
  18958. }
  18959. } else {
  18960. v := rv.Interface().(map[uint16]bool)
  18961. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, f.d)
  18962. }
  18963. }
  18964. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, checkNil bool, d *Decoder) {
  18965. v, changed := f.DecMapUint16BoolV(*vp, checkNil, true, d)
  18966. if changed {
  18967. *vp = v
  18968. }
  18969. }
  18970. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, checkNil bool, canChange bool,
  18971. d *Decoder) (_ map[uint16]bool, changed bool) {
  18972. dd := d.d
  18973. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  18974. if checkNil && dd.TryDecodeAsNil() {
  18975. if v != nil {
  18976. changed = true
  18977. }
  18978. return nil, changed
  18979. }
  18980. containerLen := dd.ReadMapStart()
  18981. if canChange && v == nil {
  18982. if containerLen > 0 {
  18983. v = make(map[uint16]bool, containerLen)
  18984. } else {
  18985. v = make(map[uint16]bool) // supports indefinite-length, etc
  18986. }
  18987. changed = true
  18988. }
  18989. if containerLen > 0 {
  18990. for j := 0; j < containerLen; j++ {
  18991. mk := uint16(dd.DecodeUint(16))
  18992. mv := v[mk]
  18993. mv = dd.DecodeBool()
  18994. if v != nil {
  18995. v[mk] = mv
  18996. }
  18997. }
  18998. } else if containerLen < 0 {
  18999. for j := 0; !dd.CheckBreak(); j++ {
  19000. if j > 0 {
  19001. dd.ReadMapEntrySeparator()
  19002. }
  19003. mk := uint16(dd.DecodeUint(16))
  19004. dd.ReadMapKVSeparator()
  19005. mv := v[mk]
  19006. mv = dd.DecodeBool()
  19007. if v != nil {
  19008. v[mk] = mv
  19009. }
  19010. }
  19011. dd.ReadMapEnd()
  19012. }
  19013. return v, changed
  19014. }
  19015. func (f decFnInfo) fastpathDecMapUint32IntfR(rv reflect.Value) {
  19016. if rv.CanAddr() {
  19017. vp := rv.Addr().Interface().(*map[uint32]interface{})
  19018. v, changed := fastpathTV.DecMapUint32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  19019. if changed {
  19020. *vp = v
  19021. }
  19022. } else {
  19023. v := rv.Interface().(map[uint32]interface{})
  19024. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, f.d)
  19025. }
  19026. }
  19027. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, checkNil bool, d *Decoder) {
  19028. v, changed := f.DecMapUint32IntfV(*vp, checkNil, true, d)
  19029. if changed {
  19030. *vp = v
  19031. }
  19032. }
  19033. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, checkNil bool, canChange bool,
  19034. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  19035. dd := d.d
  19036. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19037. if checkNil && dd.TryDecodeAsNil() {
  19038. if v != nil {
  19039. changed = true
  19040. }
  19041. return nil, changed
  19042. }
  19043. containerLen := dd.ReadMapStart()
  19044. if canChange && v == nil {
  19045. if containerLen > 0 {
  19046. v = make(map[uint32]interface{}, containerLen)
  19047. } else {
  19048. v = make(map[uint32]interface{}) // supports indefinite-length, etc
  19049. }
  19050. changed = true
  19051. }
  19052. if containerLen > 0 {
  19053. for j := 0; j < containerLen; j++ {
  19054. mk := uint32(dd.DecodeUint(32))
  19055. mv := v[mk]
  19056. d.decode(&mv)
  19057. if v != nil {
  19058. v[mk] = mv
  19059. }
  19060. }
  19061. } else if containerLen < 0 {
  19062. for j := 0; !dd.CheckBreak(); j++ {
  19063. if j > 0 {
  19064. dd.ReadMapEntrySeparator()
  19065. }
  19066. mk := uint32(dd.DecodeUint(32))
  19067. dd.ReadMapKVSeparator()
  19068. mv := v[mk]
  19069. d.decode(&mv)
  19070. if v != nil {
  19071. v[mk] = mv
  19072. }
  19073. }
  19074. dd.ReadMapEnd()
  19075. }
  19076. return v, changed
  19077. }
  19078. func (f decFnInfo) fastpathDecMapUint32StringR(rv reflect.Value) {
  19079. if rv.CanAddr() {
  19080. vp := rv.Addr().Interface().(*map[uint32]string)
  19081. v, changed := fastpathTV.DecMapUint32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  19082. if changed {
  19083. *vp = v
  19084. }
  19085. } else {
  19086. v := rv.Interface().(map[uint32]string)
  19087. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, f.d)
  19088. }
  19089. }
  19090. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, checkNil bool, d *Decoder) {
  19091. v, changed := f.DecMapUint32StringV(*vp, checkNil, true, d)
  19092. if changed {
  19093. *vp = v
  19094. }
  19095. }
  19096. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, checkNil bool, canChange bool,
  19097. d *Decoder) (_ map[uint32]string, changed bool) {
  19098. dd := d.d
  19099. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19100. if checkNil && dd.TryDecodeAsNil() {
  19101. if v != nil {
  19102. changed = true
  19103. }
  19104. return nil, changed
  19105. }
  19106. containerLen := dd.ReadMapStart()
  19107. if canChange && v == nil {
  19108. if containerLen > 0 {
  19109. v = make(map[uint32]string, containerLen)
  19110. } else {
  19111. v = make(map[uint32]string) // supports indefinite-length, etc
  19112. }
  19113. changed = true
  19114. }
  19115. if containerLen > 0 {
  19116. for j := 0; j < containerLen; j++ {
  19117. mk := uint32(dd.DecodeUint(32))
  19118. mv := v[mk]
  19119. mv = dd.DecodeString()
  19120. if v != nil {
  19121. v[mk] = mv
  19122. }
  19123. }
  19124. } else if containerLen < 0 {
  19125. for j := 0; !dd.CheckBreak(); j++ {
  19126. if j > 0 {
  19127. dd.ReadMapEntrySeparator()
  19128. }
  19129. mk := uint32(dd.DecodeUint(32))
  19130. dd.ReadMapKVSeparator()
  19131. mv := v[mk]
  19132. mv = dd.DecodeString()
  19133. if v != nil {
  19134. v[mk] = mv
  19135. }
  19136. }
  19137. dd.ReadMapEnd()
  19138. }
  19139. return v, changed
  19140. }
  19141. func (f decFnInfo) fastpathDecMapUint32UintR(rv reflect.Value) {
  19142. if rv.CanAddr() {
  19143. vp := rv.Addr().Interface().(*map[uint32]uint)
  19144. v, changed := fastpathTV.DecMapUint32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  19145. if changed {
  19146. *vp = v
  19147. }
  19148. } else {
  19149. v := rv.Interface().(map[uint32]uint)
  19150. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, f.d)
  19151. }
  19152. }
  19153. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, checkNil bool, d *Decoder) {
  19154. v, changed := f.DecMapUint32UintV(*vp, checkNil, true, d)
  19155. if changed {
  19156. *vp = v
  19157. }
  19158. }
  19159. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, checkNil bool, canChange bool,
  19160. d *Decoder) (_ map[uint32]uint, changed bool) {
  19161. dd := d.d
  19162. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19163. if checkNil && dd.TryDecodeAsNil() {
  19164. if v != nil {
  19165. changed = true
  19166. }
  19167. return nil, changed
  19168. }
  19169. containerLen := dd.ReadMapStart()
  19170. if canChange && v == nil {
  19171. if containerLen > 0 {
  19172. v = make(map[uint32]uint, containerLen)
  19173. } else {
  19174. v = make(map[uint32]uint) // supports indefinite-length, etc
  19175. }
  19176. changed = true
  19177. }
  19178. if containerLen > 0 {
  19179. for j := 0; j < containerLen; j++ {
  19180. mk := uint32(dd.DecodeUint(32))
  19181. mv := v[mk]
  19182. mv = uint(dd.DecodeUint(uintBitsize))
  19183. if v != nil {
  19184. v[mk] = mv
  19185. }
  19186. }
  19187. } else if containerLen < 0 {
  19188. for j := 0; !dd.CheckBreak(); j++ {
  19189. if j > 0 {
  19190. dd.ReadMapEntrySeparator()
  19191. }
  19192. mk := uint32(dd.DecodeUint(32))
  19193. dd.ReadMapKVSeparator()
  19194. mv := v[mk]
  19195. mv = uint(dd.DecodeUint(uintBitsize))
  19196. if v != nil {
  19197. v[mk] = mv
  19198. }
  19199. }
  19200. dd.ReadMapEnd()
  19201. }
  19202. return v, changed
  19203. }
  19204. func (f decFnInfo) fastpathDecMapUint32Uint8R(rv reflect.Value) {
  19205. if rv.CanAddr() {
  19206. vp := rv.Addr().Interface().(*map[uint32]uint8)
  19207. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  19208. if changed {
  19209. *vp = v
  19210. }
  19211. } else {
  19212. v := rv.Interface().(map[uint32]uint8)
  19213. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  19214. }
  19215. }
  19216. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, checkNil bool, d *Decoder) {
  19217. v, changed := f.DecMapUint32Uint8V(*vp, checkNil, true, d)
  19218. if changed {
  19219. *vp = v
  19220. }
  19221. }
  19222. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, checkNil bool, canChange bool,
  19223. d *Decoder) (_ map[uint32]uint8, changed bool) {
  19224. dd := d.d
  19225. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19226. if checkNil && dd.TryDecodeAsNil() {
  19227. if v != nil {
  19228. changed = true
  19229. }
  19230. return nil, changed
  19231. }
  19232. containerLen := dd.ReadMapStart()
  19233. if canChange && v == nil {
  19234. if containerLen > 0 {
  19235. v = make(map[uint32]uint8, containerLen)
  19236. } else {
  19237. v = make(map[uint32]uint8) // supports indefinite-length, etc
  19238. }
  19239. changed = true
  19240. }
  19241. if containerLen > 0 {
  19242. for j := 0; j < containerLen; j++ {
  19243. mk := uint32(dd.DecodeUint(32))
  19244. mv := v[mk]
  19245. mv = uint8(dd.DecodeUint(8))
  19246. if v != nil {
  19247. v[mk] = mv
  19248. }
  19249. }
  19250. } else if containerLen < 0 {
  19251. for j := 0; !dd.CheckBreak(); j++ {
  19252. if j > 0 {
  19253. dd.ReadMapEntrySeparator()
  19254. }
  19255. mk := uint32(dd.DecodeUint(32))
  19256. dd.ReadMapKVSeparator()
  19257. mv := v[mk]
  19258. mv = uint8(dd.DecodeUint(8))
  19259. if v != nil {
  19260. v[mk] = mv
  19261. }
  19262. }
  19263. dd.ReadMapEnd()
  19264. }
  19265. return v, changed
  19266. }
  19267. func (f decFnInfo) fastpathDecMapUint32Uint16R(rv reflect.Value) {
  19268. if rv.CanAddr() {
  19269. vp := rv.Addr().Interface().(*map[uint32]uint16)
  19270. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  19271. if changed {
  19272. *vp = v
  19273. }
  19274. } else {
  19275. v := rv.Interface().(map[uint32]uint16)
  19276. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  19277. }
  19278. }
  19279. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, checkNil bool, d *Decoder) {
  19280. v, changed := f.DecMapUint32Uint16V(*vp, checkNil, true, d)
  19281. if changed {
  19282. *vp = v
  19283. }
  19284. }
  19285. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, checkNil bool, canChange bool,
  19286. d *Decoder) (_ map[uint32]uint16, changed bool) {
  19287. dd := d.d
  19288. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19289. if checkNil && dd.TryDecodeAsNil() {
  19290. if v != nil {
  19291. changed = true
  19292. }
  19293. return nil, changed
  19294. }
  19295. containerLen := dd.ReadMapStart()
  19296. if canChange && v == nil {
  19297. if containerLen > 0 {
  19298. v = make(map[uint32]uint16, containerLen)
  19299. } else {
  19300. v = make(map[uint32]uint16) // supports indefinite-length, etc
  19301. }
  19302. changed = true
  19303. }
  19304. if containerLen > 0 {
  19305. for j := 0; j < containerLen; j++ {
  19306. mk := uint32(dd.DecodeUint(32))
  19307. mv := v[mk]
  19308. mv = uint16(dd.DecodeUint(16))
  19309. if v != nil {
  19310. v[mk] = mv
  19311. }
  19312. }
  19313. } else if containerLen < 0 {
  19314. for j := 0; !dd.CheckBreak(); j++ {
  19315. if j > 0 {
  19316. dd.ReadMapEntrySeparator()
  19317. }
  19318. mk := uint32(dd.DecodeUint(32))
  19319. dd.ReadMapKVSeparator()
  19320. mv := v[mk]
  19321. mv = uint16(dd.DecodeUint(16))
  19322. if v != nil {
  19323. v[mk] = mv
  19324. }
  19325. }
  19326. dd.ReadMapEnd()
  19327. }
  19328. return v, changed
  19329. }
  19330. func (f decFnInfo) fastpathDecMapUint32Uint32R(rv reflect.Value) {
  19331. if rv.CanAddr() {
  19332. vp := rv.Addr().Interface().(*map[uint32]uint32)
  19333. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  19334. if changed {
  19335. *vp = v
  19336. }
  19337. } else {
  19338. v := rv.Interface().(map[uint32]uint32)
  19339. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  19340. }
  19341. }
  19342. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, checkNil bool, d *Decoder) {
  19343. v, changed := f.DecMapUint32Uint32V(*vp, checkNil, true, d)
  19344. if changed {
  19345. *vp = v
  19346. }
  19347. }
  19348. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, checkNil bool, canChange bool,
  19349. d *Decoder) (_ map[uint32]uint32, changed bool) {
  19350. dd := d.d
  19351. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19352. if checkNil && dd.TryDecodeAsNil() {
  19353. if v != nil {
  19354. changed = true
  19355. }
  19356. return nil, changed
  19357. }
  19358. containerLen := dd.ReadMapStart()
  19359. if canChange && v == nil {
  19360. if containerLen > 0 {
  19361. v = make(map[uint32]uint32, containerLen)
  19362. } else {
  19363. v = make(map[uint32]uint32) // supports indefinite-length, etc
  19364. }
  19365. changed = true
  19366. }
  19367. if containerLen > 0 {
  19368. for j := 0; j < containerLen; j++ {
  19369. mk := uint32(dd.DecodeUint(32))
  19370. mv := v[mk]
  19371. mv = uint32(dd.DecodeUint(32))
  19372. if v != nil {
  19373. v[mk] = mv
  19374. }
  19375. }
  19376. } else if containerLen < 0 {
  19377. for j := 0; !dd.CheckBreak(); j++ {
  19378. if j > 0 {
  19379. dd.ReadMapEntrySeparator()
  19380. }
  19381. mk := uint32(dd.DecodeUint(32))
  19382. dd.ReadMapKVSeparator()
  19383. mv := v[mk]
  19384. mv = uint32(dd.DecodeUint(32))
  19385. if v != nil {
  19386. v[mk] = mv
  19387. }
  19388. }
  19389. dd.ReadMapEnd()
  19390. }
  19391. return v, changed
  19392. }
  19393. func (f decFnInfo) fastpathDecMapUint32Uint64R(rv reflect.Value) {
  19394. if rv.CanAddr() {
  19395. vp := rv.Addr().Interface().(*map[uint32]uint64)
  19396. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  19397. if changed {
  19398. *vp = v
  19399. }
  19400. } else {
  19401. v := rv.Interface().(map[uint32]uint64)
  19402. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  19403. }
  19404. }
  19405. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, checkNil bool, d *Decoder) {
  19406. v, changed := f.DecMapUint32Uint64V(*vp, checkNil, true, d)
  19407. if changed {
  19408. *vp = v
  19409. }
  19410. }
  19411. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, checkNil bool, canChange bool,
  19412. d *Decoder) (_ map[uint32]uint64, changed bool) {
  19413. dd := d.d
  19414. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19415. if checkNil && dd.TryDecodeAsNil() {
  19416. if v != nil {
  19417. changed = true
  19418. }
  19419. return nil, changed
  19420. }
  19421. containerLen := dd.ReadMapStart()
  19422. if canChange && v == nil {
  19423. if containerLen > 0 {
  19424. v = make(map[uint32]uint64, containerLen)
  19425. } else {
  19426. v = make(map[uint32]uint64) // supports indefinite-length, etc
  19427. }
  19428. changed = true
  19429. }
  19430. if containerLen > 0 {
  19431. for j := 0; j < containerLen; j++ {
  19432. mk := uint32(dd.DecodeUint(32))
  19433. mv := v[mk]
  19434. mv = dd.DecodeUint(64)
  19435. if v != nil {
  19436. v[mk] = mv
  19437. }
  19438. }
  19439. } else if containerLen < 0 {
  19440. for j := 0; !dd.CheckBreak(); j++ {
  19441. if j > 0 {
  19442. dd.ReadMapEntrySeparator()
  19443. }
  19444. mk := uint32(dd.DecodeUint(32))
  19445. dd.ReadMapKVSeparator()
  19446. mv := v[mk]
  19447. mv = dd.DecodeUint(64)
  19448. if v != nil {
  19449. v[mk] = mv
  19450. }
  19451. }
  19452. dd.ReadMapEnd()
  19453. }
  19454. return v, changed
  19455. }
  19456. func (f decFnInfo) fastpathDecMapUint32IntR(rv reflect.Value) {
  19457. if rv.CanAddr() {
  19458. vp := rv.Addr().Interface().(*map[uint32]int)
  19459. v, changed := fastpathTV.DecMapUint32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  19460. if changed {
  19461. *vp = v
  19462. }
  19463. } else {
  19464. v := rv.Interface().(map[uint32]int)
  19465. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, f.d)
  19466. }
  19467. }
  19468. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, checkNil bool, d *Decoder) {
  19469. v, changed := f.DecMapUint32IntV(*vp, checkNil, true, d)
  19470. if changed {
  19471. *vp = v
  19472. }
  19473. }
  19474. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, checkNil bool, canChange bool,
  19475. d *Decoder) (_ map[uint32]int, changed bool) {
  19476. dd := d.d
  19477. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19478. if checkNil && dd.TryDecodeAsNil() {
  19479. if v != nil {
  19480. changed = true
  19481. }
  19482. return nil, changed
  19483. }
  19484. containerLen := dd.ReadMapStart()
  19485. if canChange && v == nil {
  19486. if containerLen > 0 {
  19487. v = make(map[uint32]int, containerLen)
  19488. } else {
  19489. v = make(map[uint32]int) // supports indefinite-length, etc
  19490. }
  19491. changed = true
  19492. }
  19493. if containerLen > 0 {
  19494. for j := 0; j < containerLen; j++ {
  19495. mk := uint32(dd.DecodeUint(32))
  19496. mv := v[mk]
  19497. mv = int(dd.DecodeInt(intBitsize))
  19498. if v != nil {
  19499. v[mk] = mv
  19500. }
  19501. }
  19502. } else if containerLen < 0 {
  19503. for j := 0; !dd.CheckBreak(); j++ {
  19504. if j > 0 {
  19505. dd.ReadMapEntrySeparator()
  19506. }
  19507. mk := uint32(dd.DecodeUint(32))
  19508. dd.ReadMapKVSeparator()
  19509. mv := v[mk]
  19510. mv = int(dd.DecodeInt(intBitsize))
  19511. if v != nil {
  19512. v[mk] = mv
  19513. }
  19514. }
  19515. dd.ReadMapEnd()
  19516. }
  19517. return v, changed
  19518. }
  19519. func (f decFnInfo) fastpathDecMapUint32Int8R(rv reflect.Value) {
  19520. if rv.CanAddr() {
  19521. vp := rv.Addr().Interface().(*map[uint32]int8)
  19522. v, changed := fastpathTV.DecMapUint32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  19523. if changed {
  19524. *vp = v
  19525. }
  19526. } else {
  19527. v := rv.Interface().(map[uint32]int8)
  19528. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, f.d)
  19529. }
  19530. }
  19531. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, checkNil bool, d *Decoder) {
  19532. v, changed := f.DecMapUint32Int8V(*vp, checkNil, true, d)
  19533. if changed {
  19534. *vp = v
  19535. }
  19536. }
  19537. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, checkNil bool, canChange bool,
  19538. d *Decoder) (_ map[uint32]int8, changed bool) {
  19539. dd := d.d
  19540. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19541. if checkNil && dd.TryDecodeAsNil() {
  19542. if v != nil {
  19543. changed = true
  19544. }
  19545. return nil, changed
  19546. }
  19547. containerLen := dd.ReadMapStart()
  19548. if canChange && v == nil {
  19549. if containerLen > 0 {
  19550. v = make(map[uint32]int8, containerLen)
  19551. } else {
  19552. v = make(map[uint32]int8) // supports indefinite-length, etc
  19553. }
  19554. changed = true
  19555. }
  19556. if containerLen > 0 {
  19557. for j := 0; j < containerLen; j++ {
  19558. mk := uint32(dd.DecodeUint(32))
  19559. mv := v[mk]
  19560. mv = int8(dd.DecodeInt(8))
  19561. if v != nil {
  19562. v[mk] = mv
  19563. }
  19564. }
  19565. } else if containerLen < 0 {
  19566. for j := 0; !dd.CheckBreak(); j++ {
  19567. if j > 0 {
  19568. dd.ReadMapEntrySeparator()
  19569. }
  19570. mk := uint32(dd.DecodeUint(32))
  19571. dd.ReadMapKVSeparator()
  19572. mv := v[mk]
  19573. mv = int8(dd.DecodeInt(8))
  19574. if v != nil {
  19575. v[mk] = mv
  19576. }
  19577. }
  19578. dd.ReadMapEnd()
  19579. }
  19580. return v, changed
  19581. }
  19582. func (f decFnInfo) fastpathDecMapUint32Int16R(rv reflect.Value) {
  19583. if rv.CanAddr() {
  19584. vp := rv.Addr().Interface().(*map[uint32]int16)
  19585. v, changed := fastpathTV.DecMapUint32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  19586. if changed {
  19587. *vp = v
  19588. }
  19589. } else {
  19590. v := rv.Interface().(map[uint32]int16)
  19591. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, f.d)
  19592. }
  19593. }
  19594. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, checkNil bool, d *Decoder) {
  19595. v, changed := f.DecMapUint32Int16V(*vp, checkNil, true, d)
  19596. if changed {
  19597. *vp = v
  19598. }
  19599. }
  19600. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, checkNil bool, canChange bool,
  19601. d *Decoder) (_ map[uint32]int16, changed bool) {
  19602. dd := d.d
  19603. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19604. if checkNil && dd.TryDecodeAsNil() {
  19605. if v != nil {
  19606. changed = true
  19607. }
  19608. return nil, changed
  19609. }
  19610. containerLen := dd.ReadMapStart()
  19611. if canChange && v == nil {
  19612. if containerLen > 0 {
  19613. v = make(map[uint32]int16, containerLen)
  19614. } else {
  19615. v = make(map[uint32]int16) // supports indefinite-length, etc
  19616. }
  19617. changed = true
  19618. }
  19619. if containerLen > 0 {
  19620. for j := 0; j < containerLen; j++ {
  19621. mk := uint32(dd.DecodeUint(32))
  19622. mv := v[mk]
  19623. mv = int16(dd.DecodeInt(16))
  19624. if v != nil {
  19625. v[mk] = mv
  19626. }
  19627. }
  19628. } else if containerLen < 0 {
  19629. for j := 0; !dd.CheckBreak(); j++ {
  19630. if j > 0 {
  19631. dd.ReadMapEntrySeparator()
  19632. }
  19633. mk := uint32(dd.DecodeUint(32))
  19634. dd.ReadMapKVSeparator()
  19635. mv := v[mk]
  19636. mv = int16(dd.DecodeInt(16))
  19637. if v != nil {
  19638. v[mk] = mv
  19639. }
  19640. }
  19641. dd.ReadMapEnd()
  19642. }
  19643. return v, changed
  19644. }
  19645. func (f decFnInfo) fastpathDecMapUint32Int32R(rv reflect.Value) {
  19646. if rv.CanAddr() {
  19647. vp := rv.Addr().Interface().(*map[uint32]int32)
  19648. v, changed := fastpathTV.DecMapUint32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  19649. if changed {
  19650. *vp = v
  19651. }
  19652. } else {
  19653. v := rv.Interface().(map[uint32]int32)
  19654. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, f.d)
  19655. }
  19656. }
  19657. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, checkNil bool, d *Decoder) {
  19658. v, changed := f.DecMapUint32Int32V(*vp, checkNil, true, d)
  19659. if changed {
  19660. *vp = v
  19661. }
  19662. }
  19663. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, checkNil bool, canChange bool,
  19664. d *Decoder) (_ map[uint32]int32, changed bool) {
  19665. dd := d.d
  19666. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19667. if checkNil && dd.TryDecodeAsNil() {
  19668. if v != nil {
  19669. changed = true
  19670. }
  19671. return nil, changed
  19672. }
  19673. containerLen := dd.ReadMapStart()
  19674. if canChange && v == nil {
  19675. if containerLen > 0 {
  19676. v = make(map[uint32]int32, containerLen)
  19677. } else {
  19678. v = make(map[uint32]int32) // supports indefinite-length, etc
  19679. }
  19680. changed = true
  19681. }
  19682. if containerLen > 0 {
  19683. for j := 0; j < containerLen; j++ {
  19684. mk := uint32(dd.DecodeUint(32))
  19685. mv := v[mk]
  19686. mv = int32(dd.DecodeInt(32))
  19687. if v != nil {
  19688. v[mk] = mv
  19689. }
  19690. }
  19691. } else if containerLen < 0 {
  19692. for j := 0; !dd.CheckBreak(); j++ {
  19693. if j > 0 {
  19694. dd.ReadMapEntrySeparator()
  19695. }
  19696. mk := uint32(dd.DecodeUint(32))
  19697. dd.ReadMapKVSeparator()
  19698. mv := v[mk]
  19699. mv = int32(dd.DecodeInt(32))
  19700. if v != nil {
  19701. v[mk] = mv
  19702. }
  19703. }
  19704. dd.ReadMapEnd()
  19705. }
  19706. return v, changed
  19707. }
  19708. func (f decFnInfo) fastpathDecMapUint32Int64R(rv reflect.Value) {
  19709. if rv.CanAddr() {
  19710. vp := rv.Addr().Interface().(*map[uint32]int64)
  19711. v, changed := fastpathTV.DecMapUint32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  19712. if changed {
  19713. *vp = v
  19714. }
  19715. } else {
  19716. v := rv.Interface().(map[uint32]int64)
  19717. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, f.d)
  19718. }
  19719. }
  19720. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, checkNil bool, d *Decoder) {
  19721. v, changed := f.DecMapUint32Int64V(*vp, checkNil, true, d)
  19722. if changed {
  19723. *vp = v
  19724. }
  19725. }
  19726. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, checkNil bool, canChange bool,
  19727. d *Decoder) (_ map[uint32]int64, changed bool) {
  19728. dd := d.d
  19729. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19730. if checkNil && dd.TryDecodeAsNil() {
  19731. if v != nil {
  19732. changed = true
  19733. }
  19734. return nil, changed
  19735. }
  19736. containerLen := dd.ReadMapStart()
  19737. if canChange && v == nil {
  19738. if containerLen > 0 {
  19739. v = make(map[uint32]int64, containerLen)
  19740. } else {
  19741. v = make(map[uint32]int64) // supports indefinite-length, etc
  19742. }
  19743. changed = true
  19744. }
  19745. if containerLen > 0 {
  19746. for j := 0; j < containerLen; j++ {
  19747. mk := uint32(dd.DecodeUint(32))
  19748. mv := v[mk]
  19749. mv = dd.DecodeInt(64)
  19750. if v != nil {
  19751. v[mk] = mv
  19752. }
  19753. }
  19754. } else if containerLen < 0 {
  19755. for j := 0; !dd.CheckBreak(); j++ {
  19756. if j > 0 {
  19757. dd.ReadMapEntrySeparator()
  19758. }
  19759. mk := uint32(dd.DecodeUint(32))
  19760. dd.ReadMapKVSeparator()
  19761. mv := v[mk]
  19762. mv = dd.DecodeInt(64)
  19763. if v != nil {
  19764. v[mk] = mv
  19765. }
  19766. }
  19767. dd.ReadMapEnd()
  19768. }
  19769. return v, changed
  19770. }
  19771. func (f decFnInfo) fastpathDecMapUint32Float32R(rv reflect.Value) {
  19772. if rv.CanAddr() {
  19773. vp := rv.Addr().Interface().(*map[uint32]float32)
  19774. v, changed := fastpathTV.DecMapUint32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  19775. if changed {
  19776. *vp = v
  19777. }
  19778. } else {
  19779. v := rv.Interface().(map[uint32]float32)
  19780. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, f.d)
  19781. }
  19782. }
  19783. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, checkNil bool, d *Decoder) {
  19784. v, changed := f.DecMapUint32Float32V(*vp, checkNil, true, d)
  19785. if changed {
  19786. *vp = v
  19787. }
  19788. }
  19789. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, checkNil bool, canChange bool,
  19790. d *Decoder) (_ map[uint32]float32, changed bool) {
  19791. dd := d.d
  19792. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19793. if checkNil && dd.TryDecodeAsNil() {
  19794. if v != nil {
  19795. changed = true
  19796. }
  19797. return nil, changed
  19798. }
  19799. containerLen := dd.ReadMapStart()
  19800. if canChange && v == nil {
  19801. if containerLen > 0 {
  19802. v = make(map[uint32]float32, containerLen)
  19803. } else {
  19804. v = make(map[uint32]float32) // supports indefinite-length, etc
  19805. }
  19806. changed = true
  19807. }
  19808. if containerLen > 0 {
  19809. for j := 0; j < containerLen; j++ {
  19810. mk := uint32(dd.DecodeUint(32))
  19811. mv := v[mk]
  19812. mv = float32(dd.DecodeFloat(true))
  19813. if v != nil {
  19814. v[mk] = mv
  19815. }
  19816. }
  19817. } else if containerLen < 0 {
  19818. for j := 0; !dd.CheckBreak(); j++ {
  19819. if j > 0 {
  19820. dd.ReadMapEntrySeparator()
  19821. }
  19822. mk := uint32(dd.DecodeUint(32))
  19823. dd.ReadMapKVSeparator()
  19824. mv := v[mk]
  19825. mv = float32(dd.DecodeFloat(true))
  19826. if v != nil {
  19827. v[mk] = mv
  19828. }
  19829. }
  19830. dd.ReadMapEnd()
  19831. }
  19832. return v, changed
  19833. }
  19834. func (f decFnInfo) fastpathDecMapUint32Float64R(rv reflect.Value) {
  19835. if rv.CanAddr() {
  19836. vp := rv.Addr().Interface().(*map[uint32]float64)
  19837. v, changed := fastpathTV.DecMapUint32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  19838. if changed {
  19839. *vp = v
  19840. }
  19841. } else {
  19842. v := rv.Interface().(map[uint32]float64)
  19843. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, f.d)
  19844. }
  19845. }
  19846. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, checkNil bool, d *Decoder) {
  19847. v, changed := f.DecMapUint32Float64V(*vp, checkNil, true, d)
  19848. if changed {
  19849. *vp = v
  19850. }
  19851. }
  19852. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, checkNil bool, canChange bool,
  19853. d *Decoder) (_ map[uint32]float64, changed bool) {
  19854. dd := d.d
  19855. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19856. if checkNil && dd.TryDecodeAsNil() {
  19857. if v != nil {
  19858. changed = true
  19859. }
  19860. return nil, changed
  19861. }
  19862. containerLen := dd.ReadMapStart()
  19863. if canChange && v == nil {
  19864. if containerLen > 0 {
  19865. v = make(map[uint32]float64, containerLen)
  19866. } else {
  19867. v = make(map[uint32]float64) // supports indefinite-length, etc
  19868. }
  19869. changed = true
  19870. }
  19871. if containerLen > 0 {
  19872. for j := 0; j < containerLen; j++ {
  19873. mk := uint32(dd.DecodeUint(32))
  19874. mv := v[mk]
  19875. mv = dd.DecodeFloat(false)
  19876. if v != nil {
  19877. v[mk] = mv
  19878. }
  19879. }
  19880. } else if containerLen < 0 {
  19881. for j := 0; !dd.CheckBreak(); j++ {
  19882. if j > 0 {
  19883. dd.ReadMapEntrySeparator()
  19884. }
  19885. mk := uint32(dd.DecodeUint(32))
  19886. dd.ReadMapKVSeparator()
  19887. mv := v[mk]
  19888. mv = dd.DecodeFloat(false)
  19889. if v != nil {
  19890. v[mk] = mv
  19891. }
  19892. }
  19893. dd.ReadMapEnd()
  19894. }
  19895. return v, changed
  19896. }
  19897. func (f decFnInfo) fastpathDecMapUint32BoolR(rv reflect.Value) {
  19898. if rv.CanAddr() {
  19899. vp := rv.Addr().Interface().(*map[uint32]bool)
  19900. v, changed := fastpathTV.DecMapUint32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  19901. if changed {
  19902. *vp = v
  19903. }
  19904. } else {
  19905. v := rv.Interface().(map[uint32]bool)
  19906. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, f.d)
  19907. }
  19908. }
  19909. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, checkNil bool, d *Decoder) {
  19910. v, changed := f.DecMapUint32BoolV(*vp, checkNil, true, d)
  19911. if changed {
  19912. *vp = v
  19913. }
  19914. }
  19915. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, checkNil bool, canChange bool,
  19916. d *Decoder) (_ map[uint32]bool, changed bool) {
  19917. dd := d.d
  19918. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19919. if checkNil && dd.TryDecodeAsNil() {
  19920. if v != nil {
  19921. changed = true
  19922. }
  19923. return nil, changed
  19924. }
  19925. containerLen := dd.ReadMapStart()
  19926. if canChange && v == nil {
  19927. if containerLen > 0 {
  19928. v = make(map[uint32]bool, containerLen)
  19929. } else {
  19930. v = make(map[uint32]bool) // supports indefinite-length, etc
  19931. }
  19932. changed = true
  19933. }
  19934. if containerLen > 0 {
  19935. for j := 0; j < containerLen; j++ {
  19936. mk := uint32(dd.DecodeUint(32))
  19937. mv := v[mk]
  19938. mv = dd.DecodeBool()
  19939. if v != nil {
  19940. v[mk] = mv
  19941. }
  19942. }
  19943. } else if containerLen < 0 {
  19944. for j := 0; !dd.CheckBreak(); j++ {
  19945. if j > 0 {
  19946. dd.ReadMapEntrySeparator()
  19947. }
  19948. mk := uint32(dd.DecodeUint(32))
  19949. dd.ReadMapKVSeparator()
  19950. mv := v[mk]
  19951. mv = dd.DecodeBool()
  19952. if v != nil {
  19953. v[mk] = mv
  19954. }
  19955. }
  19956. dd.ReadMapEnd()
  19957. }
  19958. return v, changed
  19959. }
  19960. func (f decFnInfo) fastpathDecMapUint64IntfR(rv reflect.Value) {
  19961. if rv.CanAddr() {
  19962. vp := rv.Addr().Interface().(*map[uint64]interface{})
  19963. v, changed := fastpathTV.DecMapUint64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  19964. if changed {
  19965. *vp = v
  19966. }
  19967. } else {
  19968. v := rv.Interface().(map[uint64]interface{})
  19969. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, f.d)
  19970. }
  19971. }
  19972. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, checkNil bool, d *Decoder) {
  19973. v, changed := f.DecMapUint64IntfV(*vp, checkNil, true, d)
  19974. if changed {
  19975. *vp = v
  19976. }
  19977. }
  19978. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, checkNil bool, canChange bool,
  19979. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  19980. dd := d.d
  19981. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  19982. if checkNil && dd.TryDecodeAsNil() {
  19983. if v != nil {
  19984. changed = true
  19985. }
  19986. return nil, changed
  19987. }
  19988. containerLen := dd.ReadMapStart()
  19989. if canChange && v == nil {
  19990. if containerLen > 0 {
  19991. v = make(map[uint64]interface{}, containerLen)
  19992. } else {
  19993. v = make(map[uint64]interface{}) // supports indefinite-length, etc
  19994. }
  19995. changed = true
  19996. }
  19997. if containerLen > 0 {
  19998. for j := 0; j < containerLen; j++ {
  19999. mk := dd.DecodeUint(64)
  20000. mv := v[mk]
  20001. d.decode(&mv)
  20002. if v != nil {
  20003. v[mk] = mv
  20004. }
  20005. }
  20006. } else if containerLen < 0 {
  20007. for j := 0; !dd.CheckBreak(); j++ {
  20008. if j > 0 {
  20009. dd.ReadMapEntrySeparator()
  20010. }
  20011. mk := dd.DecodeUint(64)
  20012. dd.ReadMapKVSeparator()
  20013. mv := v[mk]
  20014. d.decode(&mv)
  20015. if v != nil {
  20016. v[mk] = mv
  20017. }
  20018. }
  20019. dd.ReadMapEnd()
  20020. }
  20021. return v, changed
  20022. }
  20023. func (f decFnInfo) fastpathDecMapUint64StringR(rv reflect.Value) {
  20024. if rv.CanAddr() {
  20025. vp := rv.Addr().Interface().(*map[uint64]string)
  20026. v, changed := fastpathTV.DecMapUint64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  20027. if changed {
  20028. *vp = v
  20029. }
  20030. } else {
  20031. v := rv.Interface().(map[uint64]string)
  20032. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, f.d)
  20033. }
  20034. }
  20035. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, checkNil bool, d *Decoder) {
  20036. v, changed := f.DecMapUint64StringV(*vp, checkNil, true, d)
  20037. if changed {
  20038. *vp = v
  20039. }
  20040. }
  20041. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, checkNil bool, canChange bool,
  20042. d *Decoder) (_ map[uint64]string, changed bool) {
  20043. dd := d.d
  20044. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20045. if checkNil && dd.TryDecodeAsNil() {
  20046. if v != nil {
  20047. changed = true
  20048. }
  20049. return nil, changed
  20050. }
  20051. containerLen := dd.ReadMapStart()
  20052. if canChange && v == nil {
  20053. if containerLen > 0 {
  20054. v = make(map[uint64]string, containerLen)
  20055. } else {
  20056. v = make(map[uint64]string) // supports indefinite-length, etc
  20057. }
  20058. changed = true
  20059. }
  20060. if containerLen > 0 {
  20061. for j := 0; j < containerLen; j++ {
  20062. mk := dd.DecodeUint(64)
  20063. mv := v[mk]
  20064. mv = dd.DecodeString()
  20065. if v != nil {
  20066. v[mk] = mv
  20067. }
  20068. }
  20069. } else if containerLen < 0 {
  20070. for j := 0; !dd.CheckBreak(); j++ {
  20071. if j > 0 {
  20072. dd.ReadMapEntrySeparator()
  20073. }
  20074. mk := dd.DecodeUint(64)
  20075. dd.ReadMapKVSeparator()
  20076. mv := v[mk]
  20077. mv = dd.DecodeString()
  20078. if v != nil {
  20079. v[mk] = mv
  20080. }
  20081. }
  20082. dd.ReadMapEnd()
  20083. }
  20084. return v, changed
  20085. }
  20086. func (f decFnInfo) fastpathDecMapUint64UintR(rv reflect.Value) {
  20087. if rv.CanAddr() {
  20088. vp := rv.Addr().Interface().(*map[uint64]uint)
  20089. v, changed := fastpathTV.DecMapUint64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  20090. if changed {
  20091. *vp = v
  20092. }
  20093. } else {
  20094. v := rv.Interface().(map[uint64]uint)
  20095. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, f.d)
  20096. }
  20097. }
  20098. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, checkNil bool, d *Decoder) {
  20099. v, changed := f.DecMapUint64UintV(*vp, checkNil, true, d)
  20100. if changed {
  20101. *vp = v
  20102. }
  20103. }
  20104. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, checkNil bool, canChange bool,
  20105. d *Decoder) (_ map[uint64]uint, changed bool) {
  20106. dd := d.d
  20107. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20108. if checkNil && dd.TryDecodeAsNil() {
  20109. if v != nil {
  20110. changed = true
  20111. }
  20112. return nil, changed
  20113. }
  20114. containerLen := dd.ReadMapStart()
  20115. if canChange && v == nil {
  20116. if containerLen > 0 {
  20117. v = make(map[uint64]uint, containerLen)
  20118. } else {
  20119. v = make(map[uint64]uint) // supports indefinite-length, etc
  20120. }
  20121. changed = true
  20122. }
  20123. if containerLen > 0 {
  20124. for j := 0; j < containerLen; j++ {
  20125. mk := dd.DecodeUint(64)
  20126. mv := v[mk]
  20127. mv = uint(dd.DecodeUint(uintBitsize))
  20128. if v != nil {
  20129. v[mk] = mv
  20130. }
  20131. }
  20132. } else if containerLen < 0 {
  20133. for j := 0; !dd.CheckBreak(); j++ {
  20134. if j > 0 {
  20135. dd.ReadMapEntrySeparator()
  20136. }
  20137. mk := dd.DecodeUint(64)
  20138. dd.ReadMapKVSeparator()
  20139. mv := v[mk]
  20140. mv = uint(dd.DecodeUint(uintBitsize))
  20141. if v != nil {
  20142. v[mk] = mv
  20143. }
  20144. }
  20145. dd.ReadMapEnd()
  20146. }
  20147. return v, changed
  20148. }
  20149. func (f decFnInfo) fastpathDecMapUint64Uint8R(rv reflect.Value) {
  20150. if rv.CanAddr() {
  20151. vp := rv.Addr().Interface().(*map[uint64]uint8)
  20152. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  20153. if changed {
  20154. *vp = v
  20155. }
  20156. } else {
  20157. v := rv.Interface().(map[uint64]uint8)
  20158. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  20159. }
  20160. }
  20161. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, checkNil bool, d *Decoder) {
  20162. v, changed := f.DecMapUint64Uint8V(*vp, checkNil, true, d)
  20163. if changed {
  20164. *vp = v
  20165. }
  20166. }
  20167. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, checkNil bool, canChange bool,
  20168. d *Decoder) (_ map[uint64]uint8, changed bool) {
  20169. dd := d.d
  20170. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20171. if checkNil && dd.TryDecodeAsNil() {
  20172. if v != nil {
  20173. changed = true
  20174. }
  20175. return nil, changed
  20176. }
  20177. containerLen := dd.ReadMapStart()
  20178. if canChange && v == nil {
  20179. if containerLen > 0 {
  20180. v = make(map[uint64]uint8, containerLen)
  20181. } else {
  20182. v = make(map[uint64]uint8) // supports indefinite-length, etc
  20183. }
  20184. changed = true
  20185. }
  20186. if containerLen > 0 {
  20187. for j := 0; j < containerLen; j++ {
  20188. mk := dd.DecodeUint(64)
  20189. mv := v[mk]
  20190. mv = uint8(dd.DecodeUint(8))
  20191. if v != nil {
  20192. v[mk] = mv
  20193. }
  20194. }
  20195. } else if containerLen < 0 {
  20196. for j := 0; !dd.CheckBreak(); j++ {
  20197. if j > 0 {
  20198. dd.ReadMapEntrySeparator()
  20199. }
  20200. mk := dd.DecodeUint(64)
  20201. dd.ReadMapKVSeparator()
  20202. mv := v[mk]
  20203. mv = uint8(dd.DecodeUint(8))
  20204. if v != nil {
  20205. v[mk] = mv
  20206. }
  20207. }
  20208. dd.ReadMapEnd()
  20209. }
  20210. return v, changed
  20211. }
  20212. func (f decFnInfo) fastpathDecMapUint64Uint16R(rv reflect.Value) {
  20213. if rv.CanAddr() {
  20214. vp := rv.Addr().Interface().(*map[uint64]uint16)
  20215. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  20216. if changed {
  20217. *vp = v
  20218. }
  20219. } else {
  20220. v := rv.Interface().(map[uint64]uint16)
  20221. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  20222. }
  20223. }
  20224. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, checkNil bool, d *Decoder) {
  20225. v, changed := f.DecMapUint64Uint16V(*vp, checkNil, true, d)
  20226. if changed {
  20227. *vp = v
  20228. }
  20229. }
  20230. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, checkNil bool, canChange bool,
  20231. d *Decoder) (_ map[uint64]uint16, changed bool) {
  20232. dd := d.d
  20233. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20234. if checkNil && dd.TryDecodeAsNil() {
  20235. if v != nil {
  20236. changed = true
  20237. }
  20238. return nil, changed
  20239. }
  20240. containerLen := dd.ReadMapStart()
  20241. if canChange && v == nil {
  20242. if containerLen > 0 {
  20243. v = make(map[uint64]uint16, containerLen)
  20244. } else {
  20245. v = make(map[uint64]uint16) // supports indefinite-length, etc
  20246. }
  20247. changed = true
  20248. }
  20249. if containerLen > 0 {
  20250. for j := 0; j < containerLen; j++ {
  20251. mk := dd.DecodeUint(64)
  20252. mv := v[mk]
  20253. mv = uint16(dd.DecodeUint(16))
  20254. if v != nil {
  20255. v[mk] = mv
  20256. }
  20257. }
  20258. } else if containerLen < 0 {
  20259. for j := 0; !dd.CheckBreak(); j++ {
  20260. if j > 0 {
  20261. dd.ReadMapEntrySeparator()
  20262. }
  20263. mk := dd.DecodeUint(64)
  20264. dd.ReadMapKVSeparator()
  20265. mv := v[mk]
  20266. mv = uint16(dd.DecodeUint(16))
  20267. if v != nil {
  20268. v[mk] = mv
  20269. }
  20270. }
  20271. dd.ReadMapEnd()
  20272. }
  20273. return v, changed
  20274. }
  20275. func (f decFnInfo) fastpathDecMapUint64Uint32R(rv reflect.Value) {
  20276. if rv.CanAddr() {
  20277. vp := rv.Addr().Interface().(*map[uint64]uint32)
  20278. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  20279. if changed {
  20280. *vp = v
  20281. }
  20282. } else {
  20283. v := rv.Interface().(map[uint64]uint32)
  20284. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  20285. }
  20286. }
  20287. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, checkNil bool, d *Decoder) {
  20288. v, changed := f.DecMapUint64Uint32V(*vp, checkNil, true, d)
  20289. if changed {
  20290. *vp = v
  20291. }
  20292. }
  20293. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, checkNil bool, canChange bool,
  20294. d *Decoder) (_ map[uint64]uint32, changed bool) {
  20295. dd := d.d
  20296. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20297. if checkNil && dd.TryDecodeAsNil() {
  20298. if v != nil {
  20299. changed = true
  20300. }
  20301. return nil, changed
  20302. }
  20303. containerLen := dd.ReadMapStart()
  20304. if canChange && v == nil {
  20305. if containerLen > 0 {
  20306. v = make(map[uint64]uint32, containerLen)
  20307. } else {
  20308. v = make(map[uint64]uint32) // supports indefinite-length, etc
  20309. }
  20310. changed = true
  20311. }
  20312. if containerLen > 0 {
  20313. for j := 0; j < containerLen; j++ {
  20314. mk := dd.DecodeUint(64)
  20315. mv := v[mk]
  20316. mv = uint32(dd.DecodeUint(32))
  20317. if v != nil {
  20318. v[mk] = mv
  20319. }
  20320. }
  20321. } else if containerLen < 0 {
  20322. for j := 0; !dd.CheckBreak(); j++ {
  20323. if j > 0 {
  20324. dd.ReadMapEntrySeparator()
  20325. }
  20326. mk := dd.DecodeUint(64)
  20327. dd.ReadMapKVSeparator()
  20328. mv := v[mk]
  20329. mv = uint32(dd.DecodeUint(32))
  20330. if v != nil {
  20331. v[mk] = mv
  20332. }
  20333. }
  20334. dd.ReadMapEnd()
  20335. }
  20336. return v, changed
  20337. }
  20338. func (f decFnInfo) fastpathDecMapUint64Uint64R(rv reflect.Value) {
  20339. if rv.CanAddr() {
  20340. vp := rv.Addr().Interface().(*map[uint64]uint64)
  20341. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  20342. if changed {
  20343. *vp = v
  20344. }
  20345. } else {
  20346. v := rv.Interface().(map[uint64]uint64)
  20347. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  20348. }
  20349. }
  20350. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, checkNil bool, d *Decoder) {
  20351. v, changed := f.DecMapUint64Uint64V(*vp, checkNil, true, d)
  20352. if changed {
  20353. *vp = v
  20354. }
  20355. }
  20356. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, checkNil bool, canChange bool,
  20357. d *Decoder) (_ map[uint64]uint64, changed bool) {
  20358. dd := d.d
  20359. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20360. if checkNil && dd.TryDecodeAsNil() {
  20361. if v != nil {
  20362. changed = true
  20363. }
  20364. return nil, changed
  20365. }
  20366. containerLen := dd.ReadMapStart()
  20367. if canChange && v == nil {
  20368. if containerLen > 0 {
  20369. v = make(map[uint64]uint64, containerLen)
  20370. } else {
  20371. v = make(map[uint64]uint64) // supports indefinite-length, etc
  20372. }
  20373. changed = true
  20374. }
  20375. if containerLen > 0 {
  20376. for j := 0; j < containerLen; j++ {
  20377. mk := dd.DecodeUint(64)
  20378. mv := v[mk]
  20379. mv = dd.DecodeUint(64)
  20380. if v != nil {
  20381. v[mk] = mv
  20382. }
  20383. }
  20384. } else if containerLen < 0 {
  20385. for j := 0; !dd.CheckBreak(); j++ {
  20386. if j > 0 {
  20387. dd.ReadMapEntrySeparator()
  20388. }
  20389. mk := dd.DecodeUint(64)
  20390. dd.ReadMapKVSeparator()
  20391. mv := v[mk]
  20392. mv = dd.DecodeUint(64)
  20393. if v != nil {
  20394. v[mk] = mv
  20395. }
  20396. }
  20397. dd.ReadMapEnd()
  20398. }
  20399. return v, changed
  20400. }
  20401. func (f decFnInfo) fastpathDecMapUint64IntR(rv reflect.Value) {
  20402. if rv.CanAddr() {
  20403. vp := rv.Addr().Interface().(*map[uint64]int)
  20404. v, changed := fastpathTV.DecMapUint64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  20405. if changed {
  20406. *vp = v
  20407. }
  20408. } else {
  20409. v := rv.Interface().(map[uint64]int)
  20410. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, f.d)
  20411. }
  20412. }
  20413. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, checkNil bool, d *Decoder) {
  20414. v, changed := f.DecMapUint64IntV(*vp, checkNil, true, d)
  20415. if changed {
  20416. *vp = v
  20417. }
  20418. }
  20419. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, checkNil bool, canChange bool,
  20420. d *Decoder) (_ map[uint64]int, changed bool) {
  20421. dd := d.d
  20422. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20423. if checkNil && dd.TryDecodeAsNil() {
  20424. if v != nil {
  20425. changed = true
  20426. }
  20427. return nil, changed
  20428. }
  20429. containerLen := dd.ReadMapStart()
  20430. if canChange && v == nil {
  20431. if containerLen > 0 {
  20432. v = make(map[uint64]int, containerLen)
  20433. } else {
  20434. v = make(map[uint64]int) // supports indefinite-length, etc
  20435. }
  20436. changed = true
  20437. }
  20438. if containerLen > 0 {
  20439. for j := 0; j < containerLen; j++ {
  20440. mk := dd.DecodeUint(64)
  20441. mv := v[mk]
  20442. mv = int(dd.DecodeInt(intBitsize))
  20443. if v != nil {
  20444. v[mk] = mv
  20445. }
  20446. }
  20447. } else if containerLen < 0 {
  20448. for j := 0; !dd.CheckBreak(); j++ {
  20449. if j > 0 {
  20450. dd.ReadMapEntrySeparator()
  20451. }
  20452. mk := dd.DecodeUint(64)
  20453. dd.ReadMapKVSeparator()
  20454. mv := v[mk]
  20455. mv = int(dd.DecodeInt(intBitsize))
  20456. if v != nil {
  20457. v[mk] = mv
  20458. }
  20459. }
  20460. dd.ReadMapEnd()
  20461. }
  20462. return v, changed
  20463. }
  20464. func (f decFnInfo) fastpathDecMapUint64Int8R(rv reflect.Value) {
  20465. if rv.CanAddr() {
  20466. vp := rv.Addr().Interface().(*map[uint64]int8)
  20467. v, changed := fastpathTV.DecMapUint64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  20468. if changed {
  20469. *vp = v
  20470. }
  20471. } else {
  20472. v := rv.Interface().(map[uint64]int8)
  20473. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, f.d)
  20474. }
  20475. }
  20476. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, checkNil bool, d *Decoder) {
  20477. v, changed := f.DecMapUint64Int8V(*vp, checkNil, true, d)
  20478. if changed {
  20479. *vp = v
  20480. }
  20481. }
  20482. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, checkNil bool, canChange bool,
  20483. d *Decoder) (_ map[uint64]int8, changed bool) {
  20484. dd := d.d
  20485. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20486. if checkNil && dd.TryDecodeAsNil() {
  20487. if v != nil {
  20488. changed = true
  20489. }
  20490. return nil, changed
  20491. }
  20492. containerLen := dd.ReadMapStart()
  20493. if canChange && v == nil {
  20494. if containerLen > 0 {
  20495. v = make(map[uint64]int8, containerLen)
  20496. } else {
  20497. v = make(map[uint64]int8) // supports indefinite-length, etc
  20498. }
  20499. changed = true
  20500. }
  20501. if containerLen > 0 {
  20502. for j := 0; j < containerLen; j++ {
  20503. mk := dd.DecodeUint(64)
  20504. mv := v[mk]
  20505. mv = int8(dd.DecodeInt(8))
  20506. if v != nil {
  20507. v[mk] = mv
  20508. }
  20509. }
  20510. } else if containerLen < 0 {
  20511. for j := 0; !dd.CheckBreak(); j++ {
  20512. if j > 0 {
  20513. dd.ReadMapEntrySeparator()
  20514. }
  20515. mk := dd.DecodeUint(64)
  20516. dd.ReadMapKVSeparator()
  20517. mv := v[mk]
  20518. mv = int8(dd.DecodeInt(8))
  20519. if v != nil {
  20520. v[mk] = mv
  20521. }
  20522. }
  20523. dd.ReadMapEnd()
  20524. }
  20525. return v, changed
  20526. }
  20527. func (f decFnInfo) fastpathDecMapUint64Int16R(rv reflect.Value) {
  20528. if rv.CanAddr() {
  20529. vp := rv.Addr().Interface().(*map[uint64]int16)
  20530. v, changed := fastpathTV.DecMapUint64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  20531. if changed {
  20532. *vp = v
  20533. }
  20534. } else {
  20535. v := rv.Interface().(map[uint64]int16)
  20536. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, f.d)
  20537. }
  20538. }
  20539. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, checkNil bool, d *Decoder) {
  20540. v, changed := f.DecMapUint64Int16V(*vp, checkNil, true, d)
  20541. if changed {
  20542. *vp = v
  20543. }
  20544. }
  20545. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, checkNil bool, canChange bool,
  20546. d *Decoder) (_ map[uint64]int16, changed bool) {
  20547. dd := d.d
  20548. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20549. if checkNil && dd.TryDecodeAsNil() {
  20550. if v != nil {
  20551. changed = true
  20552. }
  20553. return nil, changed
  20554. }
  20555. containerLen := dd.ReadMapStart()
  20556. if canChange && v == nil {
  20557. if containerLen > 0 {
  20558. v = make(map[uint64]int16, containerLen)
  20559. } else {
  20560. v = make(map[uint64]int16) // supports indefinite-length, etc
  20561. }
  20562. changed = true
  20563. }
  20564. if containerLen > 0 {
  20565. for j := 0; j < containerLen; j++ {
  20566. mk := dd.DecodeUint(64)
  20567. mv := v[mk]
  20568. mv = int16(dd.DecodeInt(16))
  20569. if v != nil {
  20570. v[mk] = mv
  20571. }
  20572. }
  20573. } else if containerLen < 0 {
  20574. for j := 0; !dd.CheckBreak(); j++ {
  20575. if j > 0 {
  20576. dd.ReadMapEntrySeparator()
  20577. }
  20578. mk := dd.DecodeUint(64)
  20579. dd.ReadMapKVSeparator()
  20580. mv := v[mk]
  20581. mv = int16(dd.DecodeInt(16))
  20582. if v != nil {
  20583. v[mk] = mv
  20584. }
  20585. }
  20586. dd.ReadMapEnd()
  20587. }
  20588. return v, changed
  20589. }
  20590. func (f decFnInfo) fastpathDecMapUint64Int32R(rv reflect.Value) {
  20591. if rv.CanAddr() {
  20592. vp := rv.Addr().Interface().(*map[uint64]int32)
  20593. v, changed := fastpathTV.DecMapUint64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  20594. if changed {
  20595. *vp = v
  20596. }
  20597. } else {
  20598. v := rv.Interface().(map[uint64]int32)
  20599. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, f.d)
  20600. }
  20601. }
  20602. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, checkNil bool, d *Decoder) {
  20603. v, changed := f.DecMapUint64Int32V(*vp, checkNil, true, d)
  20604. if changed {
  20605. *vp = v
  20606. }
  20607. }
  20608. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, checkNil bool, canChange bool,
  20609. d *Decoder) (_ map[uint64]int32, changed bool) {
  20610. dd := d.d
  20611. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20612. if checkNil && dd.TryDecodeAsNil() {
  20613. if v != nil {
  20614. changed = true
  20615. }
  20616. return nil, changed
  20617. }
  20618. containerLen := dd.ReadMapStart()
  20619. if canChange && v == nil {
  20620. if containerLen > 0 {
  20621. v = make(map[uint64]int32, containerLen)
  20622. } else {
  20623. v = make(map[uint64]int32) // supports indefinite-length, etc
  20624. }
  20625. changed = true
  20626. }
  20627. if containerLen > 0 {
  20628. for j := 0; j < containerLen; j++ {
  20629. mk := dd.DecodeUint(64)
  20630. mv := v[mk]
  20631. mv = int32(dd.DecodeInt(32))
  20632. if v != nil {
  20633. v[mk] = mv
  20634. }
  20635. }
  20636. } else if containerLen < 0 {
  20637. for j := 0; !dd.CheckBreak(); j++ {
  20638. if j > 0 {
  20639. dd.ReadMapEntrySeparator()
  20640. }
  20641. mk := dd.DecodeUint(64)
  20642. dd.ReadMapKVSeparator()
  20643. mv := v[mk]
  20644. mv = int32(dd.DecodeInt(32))
  20645. if v != nil {
  20646. v[mk] = mv
  20647. }
  20648. }
  20649. dd.ReadMapEnd()
  20650. }
  20651. return v, changed
  20652. }
  20653. func (f decFnInfo) fastpathDecMapUint64Int64R(rv reflect.Value) {
  20654. if rv.CanAddr() {
  20655. vp := rv.Addr().Interface().(*map[uint64]int64)
  20656. v, changed := fastpathTV.DecMapUint64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  20657. if changed {
  20658. *vp = v
  20659. }
  20660. } else {
  20661. v := rv.Interface().(map[uint64]int64)
  20662. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, f.d)
  20663. }
  20664. }
  20665. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, checkNil bool, d *Decoder) {
  20666. v, changed := f.DecMapUint64Int64V(*vp, checkNil, true, d)
  20667. if changed {
  20668. *vp = v
  20669. }
  20670. }
  20671. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, checkNil bool, canChange bool,
  20672. d *Decoder) (_ map[uint64]int64, changed bool) {
  20673. dd := d.d
  20674. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20675. if checkNil && dd.TryDecodeAsNil() {
  20676. if v != nil {
  20677. changed = true
  20678. }
  20679. return nil, changed
  20680. }
  20681. containerLen := dd.ReadMapStart()
  20682. if canChange && v == nil {
  20683. if containerLen > 0 {
  20684. v = make(map[uint64]int64, containerLen)
  20685. } else {
  20686. v = make(map[uint64]int64) // supports indefinite-length, etc
  20687. }
  20688. changed = true
  20689. }
  20690. if containerLen > 0 {
  20691. for j := 0; j < containerLen; j++ {
  20692. mk := dd.DecodeUint(64)
  20693. mv := v[mk]
  20694. mv = dd.DecodeInt(64)
  20695. if v != nil {
  20696. v[mk] = mv
  20697. }
  20698. }
  20699. } else if containerLen < 0 {
  20700. for j := 0; !dd.CheckBreak(); j++ {
  20701. if j > 0 {
  20702. dd.ReadMapEntrySeparator()
  20703. }
  20704. mk := dd.DecodeUint(64)
  20705. dd.ReadMapKVSeparator()
  20706. mv := v[mk]
  20707. mv = dd.DecodeInt(64)
  20708. if v != nil {
  20709. v[mk] = mv
  20710. }
  20711. }
  20712. dd.ReadMapEnd()
  20713. }
  20714. return v, changed
  20715. }
  20716. func (f decFnInfo) fastpathDecMapUint64Float32R(rv reflect.Value) {
  20717. if rv.CanAddr() {
  20718. vp := rv.Addr().Interface().(*map[uint64]float32)
  20719. v, changed := fastpathTV.DecMapUint64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  20720. if changed {
  20721. *vp = v
  20722. }
  20723. } else {
  20724. v := rv.Interface().(map[uint64]float32)
  20725. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, f.d)
  20726. }
  20727. }
  20728. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, checkNil bool, d *Decoder) {
  20729. v, changed := f.DecMapUint64Float32V(*vp, checkNil, true, d)
  20730. if changed {
  20731. *vp = v
  20732. }
  20733. }
  20734. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, checkNil bool, canChange bool,
  20735. d *Decoder) (_ map[uint64]float32, changed bool) {
  20736. dd := d.d
  20737. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20738. if checkNil && dd.TryDecodeAsNil() {
  20739. if v != nil {
  20740. changed = true
  20741. }
  20742. return nil, changed
  20743. }
  20744. containerLen := dd.ReadMapStart()
  20745. if canChange && v == nil {
  20746. if containerLen > 0 {
  20747. v = make(map[uint64]float32, containerLen)
  20748. } else {
  20749. v = make(map[uint64]float32) // supports indefinite-length, etc
  20750. }
  20751. changed = true
  20752. }
  20753. if containerLen > 0 {
  20754. for j := 0; j < containerLen; j++ {
  20755. mk := dd.DecodeUint(64)
  20756. mv := v[mk]
  20757. mv = float32(dd.DecodeFloat(true))
  20758. if v != nil {
  20759. v[mk] = mv
  20760. }
  20761. }
  20762. } else if containerLen < 0 {
  20763. for j := 0; !dd.CheckBreak(); j++ {
  20764. if j > 0 {
  20765. dd.ReadMapEntrySeparator()
  20766. }
  20767. mk := dd.DecodeUint(64)
  20768. dd.ReadMapKVSeparator()
  20769. mv := v[mk]
  20770. mv = float32(dd.DecodeFloat(true))
  20771. if v != nil {
  20772. v[mk] = mv
  20773. }
  20774. }
  20775. dd.ReadMapEnd()
  20776. }
  20777. return v, changed
  20778. }
  20779. func (f decFnInfo) fastpathDecMapUint64Float64R(rv reflect.Value) {
  20780. if rv.CanAddr() {
  20781. vp := rv.Addr().Interface().(*map[uint64]float64)
  20782. v, changed := fastpathTV.DecMapUint64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  20783. if changed {
  20784. *vp = v
  20785. }
  20786. } else {
  20787. v := rv.Interface().(map[uint64]float64)
  20788. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, f.d)
  20789. }
  20790. }
  20791. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, checkNil bool, d *Decoder) {
  20792. v, changed := f.DecMapUint64Float64V(*vp, checkNil, true, d)
  20793. if changed {
  20794. *vp = v
  20795. }
  20796. }
  20797. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, checkNil bool, canChange bool,
  20798. d *Decoder) (_ map[uint64]float64, changed bool) {
  20799. dd := d.d
  20800. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20801. if checkNil && dd.TryDecodeAsNil() {
  20802. if v != nil {
  20803. changed = true
  20804. }
  20805. return nil, changed
  20806. }
  20807. containerLen := dd.ReadMapStart()
  20808. if canChange && v == nil {
  20809. if containerLen > 0 {
  20810. v = make(map[uint64]float64, containerLen)
  20811. } else {
  20812. v = make(map[uint64]float64) // supports indefinite-length, etc
  20813. }
  20814. changed = true
  20815. }
  20816. if containerLen > 0 {
  20817. for j := 0; j < containerLen; j++ {
  20818. mk := dd.DecodeUint(64)
  20819. mv := v[mk]
  20820. mv = dd.DecodeFloat(false)
  20821. if v != nil {
  20822. v[mk] = mv
  20823. }
  20824. }
  20825. } else if containerLen < 0 {
  20826. for j := 0; !dd.CheckBreak(); j++ {
  20827. if j > 0 {
  20828. dd.ReadMapEntrySeparator()
  20829. }
  20830. mk := dd.DecodeUint(64)
  20831. dd.ReadMapKVSeparator()
  20832. mv := v[mk]
  20833. mv = dd.DecodeFloat(false)
  20834. if v != nil {
  20835. v[mk] = mv
  20836. }
  20837. }
  20838. dd.ReadMapEnd()
  20839. }
  20840. return v, changed
  20841. }
  20842. func (f decFnInfo) fastpathDecMapUint64BoolR(rv reflect.Value) {
  20843. if rv.CanAddr() {
  20844. vp := rv.Addr().Interface().(*map[uint64]bool)
  20845. v, changed := fastpathTV.DecMapUint64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  20846. if changed {
  20847. *vp = v
  20848. }
  20849. } else {
  20850. v := rv.Interface().(map[uint64]bool)
  20851. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, f.d)
  20852. }
  20853. }
  20854. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, checkNil bool, d *Decoder) {
  20855. v, changed := f.DecMapUint64BoolV(*vp, checkNil, true, d)
  20856. if changed {
  20857. *vp = v
  20858. }
  20859. }
  20860. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, checkNil bool, canChange bool,
  20861. d *Decoder) (_ map[uint64]bool, changed bool) {
  20862. dd := d.d
  20863. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20864. if checkNil && dd.TryDecodeAsNil() {
  20865. if v != nil {
  20866. changed = true
  20867. }
  20868. return nil, changed
  20869. }
  20870. containerLen := dd.ReadMapStart()
  20871. if canChange && v == nil {
  20872. if containerLen > 0 {
  20873. v = make(map[uint64]bool, containerLen)
  20874. } else {
  20875. v = make(map[uint64]bool) // supports indefinite-length, etc
  20876. }
  20877. changed = true
  20878. }
  20879. if containerLen > 0 {
  20880. for j := 0; j < containerLen; j++ {
  20881. mk := dd.DecodeUint(64)
  20882. mv := v[mk]
  20883. mv = dd.DecodeBool()
  20884. if v != nil {
  20885. v[mk] = mv
  20886. }
  20887. }
  20888. } else if containerLen < 0 {
  20889. for j := 0; !dd.CheckBreak(); j++ {
  20890. if j > 0 {
  20891. dd.ReadMapEntrySeparator()
  20892. }
  20893. mk := dd.DecodeUint(64)
  20894. dd.ReadMapKVSeparator()
  20895. mv := v[mk]
  20896. mv = dd.DecodeBool()
  20897. if v != nil {
  20898. v[mk] = mv
  20899. }
  20900. }
  20901. dd.ReadMapEnd()
  20902. }
  20903. return v, changed
  20904. }
  20905. func (f decFnInfo) fastpathDecMapIntIntfR(rv reflect.Value) {
  20906. if rv.CanAddr() {
  20907. vp := rv.Addr().Interface().(*map[int]interface{})
  20908. v, changed := fastpathTV.DecMapIntIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  20909. if changed {
  20910. *vp = v
  20911. }
  20912. } else {
  20913. v := rv.Interface().(map[int]interface{})
  20914. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, f.d)
  20915. }
  20916. }
  20917. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, checkNil bool, d *Decoder) {
  20918. v, changed := f.DecMapIntIntfV(*vp, checkNil, true, d)
  20919. if changed {
  20920. *vp = v
  20921. }
  20922. }
  20923. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, checkNil bool, canChange bool,
  20924. d *Decoder) (_ map[int]interface{}, changed bool) {
  20925. dd := d.d
  20926. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20927. if checkNil && dd.TryDecodeAsNil() {
  20928. if v != nil {
  20929. changed = true
  20930. }
  20931. return nil, changed
  20932. }
  20933. containerLen := dd.ReadMapStart()
  20934. if canChange && v == nil {
  20935. if containerLen > 0 {
  20936. v = make(map[int]interface{}, containerLen)
  20937. } else {
  20938. v = make(map[int]interface{}) // supports indefinite-length, etc
  20939. }
  20940. changed = true
  20941. }
  20942. if containerLen > 0 {
  20943. for j := 0; j < containerLen; j++ {
  20944. mk := int(dd.DecodeInt(intBitsize))
  20945. mv := v[mk]
  20946. d.decode(&mv)
  20947. if v != nil {
  20948. v[mk] = mv
  20949. }
  20950. }
  20951. } else if containerLen < 0 {
  20952. for j := 0; !dd.CheckBreak(); j++ {
  20953. if j > 0 {
  20954. dd.ReadMapEntrySeparator()
  20955. }
  20956. mk := int(dd.DecodeInt(intBitsize))
  20957. dd.ReadMapKVSeparator()
  20958. mv := v[mk]
  20959. d.decode(&mv)
  20960. if v != nil {
  20961. v[mk] = mv
  20962. }
  20963. }
  20964. dd.ReadMapEnd()
  20965. }
  20966. return v, changed
  20967. }
  20968. func (f decFnInfo) fastpathDecMapIntStringR(rv reflect.Value) {
  20969. if rv.CanAddr() {
  20970. vp := rv.Addr().Interface().(*map[int]string)
  20971. v, changed := fastpathTV.DecMapIntStringV(*vp, fastpathCheckNilFalse, true, f.d)
  20972. if changed {
  20973. *vp = v
  20974. }
  20975. } else {
  20976. v := rv.Interface().(map[int]string)
  20977. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, f.d)
  20978. }
  20979. }
  20980. func (f fastpathT) DecMapIntStringX(vp *map[int]string, checkNil bool, d *Decoder) {
  20981. v, changed := f.DecMapIntStringV(*vp, checkNil, true, d)
  20982. if changed {
  20983. *vp = v
  20984. }
  20985. }
  20986. func (_ fastpathT) DecMapIntStringV(v map[int]string, checkNil bool, canChange bool,
  20987. d *Decoder) (_ map[int]string, changed bool) {
  20988. dd := d.d
  20989. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  20990. if checkNil && dd.TryDecodeAsNil() {
  20991. if v != nil {
  20992. changed = true
  20993. }
  20994. return nil, changed
  20995. }
  20996. containerLen := dd.ReadMapStart()
  20997. if canChange && v == nil {
  20998. if containerLen > 0 {
  20999. v = make(map[int]string, containerLen)
  21000. } else {
  21001. v = make(map[int]string) // supports indefinite-length, etc
  21002. }
  21003. changed = true
  21004. }
  21005. if containerLen > 0 {
  21006. for j := 0; j < containerLen; j++ {
  21007. mk := int(dd.DecodeInt(intBitsize))
  21008. mv := v[mk]
  21009. mv = dd.DecodeString()
  21010. if v != nil {
  21011. v[mk] = mv
  21012. }
  21013. }
  21014. } else if containerLen < 0 {
  21015. for j := 0; !dd.CheckBreak(); j++ {
  21016. if j > 0 {
  21017. dd.ReadMapEntrySeparator()
  21018. }
  21019. mk := int(dd.DecodeInt(intBitsize))
  21020. dd.ReadMapKVSeparator()
  21021. mv := v[mk]
  21022. mv = dd.DecodeString()
  21023. if v != nil {
  21024. v[mk] = mv
  21025. }
  21026. }
  21027. dd.ReadMapEnd()
  21028. }
  21029. return v, changed
  21030. }
  21031. func (f decFnInfo) fastpathDecMapIntUintR(rv reflect.Value) {
  21032. if rv.CanAddr() {
  21033. vp := rv.Addr().Interface().(*map[int]uint)
  21034. v, changed := fastpathTV.DecMapIntUintV(*vp, fastpathCheckNilFalse, true, f.d)
  21035. if changed {
  21036. *vp = v
  21037. }
  21038. } else {
  21039. v := rv.Interface().(map[int]uint)
  21040. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, f.d)
  21041. }
  21042. }
  21043. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, checkNil bool, d *Decoder) {
  21044. v, changed := f.DecMapIntUintV(*vp, checkNil, true, d)
  21045. if changed {
  21046. *vp = v
  21047. }
  21048. }
  21049. func (_ fastpathT) DecMapIntUintV(v map[int]uint, checkNil bool, canChange bool,
  21050. d *Decoder) (_ map[int]uint, changed bool) {
  21051. dd := d.d
  21052. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21053. if checkNil && dd.TryDecodeAsNil() {
  21054. if v != nil {
  21055. changed = true
  21056. }
  21057. return nil, changed
  21058. }
  21059. containerLen := dd.ReadMapStart()
  21060. if canChange && v == nil {
  21061. if containerLen > 0 {
  21062. v = make(map[int]uint, containerLen)
  21063. } else {
  21064. v = make(map[int]uint) // supports indefinite-length, etc
  21065. }
  21066. changed = true
  21067. }
  21068. if containerLen > 0 {
  21069. for j := 0; j < containerLen; j++ {
  21070. mk := int(dd.DecodeInt(intBitsize))
  21071. mv := v[mk]
  21072. mv = uint(dd.DecodeUint(uintBitsize))
  21073. if v != nil {
  21074. v[mk] = mv
  21075. }
  21076. }
  21077. } else if containerLen < 0 {
  21078. for j := 0; !dd.CheckBreak(); j++ {
  21079. if j > 0 {
  21080. dd.ReadMapEntrySeparator()
  21081. }
  21082. mk := int(dd.DecodeInt(intBitsize))
  21083. dd.ReadMapKVSeparator()
  21084. mv := v[mk]
  21085. mv = uint(dd.DecodeUint(uintBitsize))
  21086. if v != nil {
  21087. v[mk] = mv
  21088. }
  21089. }
  21090. dd.ReadMapEnd()
  21091. }
  21092. return v, changed
  21093. }
  21094. func (f decFnInfo) fastpathDecMapIntUint8R(rv reflect.Value) {
  21095. if rv.CanAddr() {
  21096. vp := rv.Addr().Interface().(*map[int]uint8)
  21097. v, changed := fastpathTV.DecMapIntUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  21098. if changed {
  21099. *vp = v
  21100. }
  21101. } else {
  21102. v := rv.Interface().(map[int]uint8)
  21103. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, f.d)
  21104. }
  21105. }
  21106. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, checkNil bool, d *Decoder) {
  21107. v, changed := f.DecMapIntUint8V(*vp, checkNil, true, d)
  21108. if changed {
  21109. *vp = v
  21110. }
  21111. }
  21112. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, checkNil bool, canChange bool,
  21113. d *Decoder) (_ map[int]uint8, changed bool) {
  21114. dd := d.d
  21115. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21116. if checkNil && dd.TryDecodeAsNil() {
  21117. if v != nil {
  21118. changed = true
  21119. }
  21120. return nil, changed
  21121. }
  21122. containerLen := dd.ReadMapStart()
  21123. if canChange && v == nil {
  21124. if containerLen > 0 {
  21125. v = make(map[int]uint8, containerLen)
  21126. } else {
  21127. v = make(map[int]uint8) // supports indefinite-length, etc
  21128. }
  21129. changed = true
  21130. }
  21131. if containerLen > 0 {
  21132. for j := 0; j < containerLen; j++ {
  21133. mk := int(dd.DecodeInt(intBitsize))
  21134. mv := v[mk]
  21135. mv = uint8(dd.DecodeUint(8))
  21136. if v != nil {
  21137. v[mk] = mv
  21138. }
  21139. }
  21140. } else if containerLen < 0 {
  21141. for j := 0; !dd.CheckBreak(); j++ {
  21142. if j > 0 {
  21143. dd.ReadMapEntrySeparator()
  21144. }
  21145. mk := int(dd.DecodeInt(intBitsize))
  21146. dd.ReadMapKVSeparator()
  21147. mv := v[mk]
  21148. mv = uint8(dd.DecodeUint(8))
  21149. if v != nil {
  21150. v[mk] = mv
  21151. }
  21152. }
  21153. dd.ReadMapEnd()
  21154. }
  21155. return v, changed
  21156. }
  21157. func (f decFnInfo) fastpathDecMapIntUint16R(rv reflect.Value) {
  21158. if rv.CanAddr() {
  21159. vp := rv.Addr().Interface().(*map[int]uint16)
  21160. v, changed := fastpathTV.DecMapIntUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  21161. if changed {
  21162. *vp = v
  21163. }
  21164. } else {
  21165. v := rv.Interface().(map[int]uint16)
  21166. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, f.d)
  21167. }
  21168. }
  21169. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, checkNil bool, d *Decoder) {
  21170. v, changed := f.DecMapIntUint16V(*vp, checkNil, true, d)
  21171. if changed {
  21172. *vp = v
  21173. }
  21174. }
  21175. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, checkNil bool, canChange bool,
  21176. d *Decoder) (_ map[int]uint16, changed bool) {
  21177. dd := d.d
  21178. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21179. if checkNil && dd.TryDecodeAsNil() {
  21180. if v != nil {
  21181. changed = true
  21182. }
  21183. return nil, changed
  21184. }
  21185. containerLen := dd.ReadMapStart()
  21186. if canChange && v == nil {
  21187. if containerLen > 0 {
  21188. v = make(map[int]uint16, containerLen)
  21189. } else {
  21190. v = make(map[int]uint16) // supports indefinite-length, etc
  21191. }
  21192. changed = true
  21193. }
  21194. if containerLen > 0 {
  21195. for j := 0; j < containerLen; j++ {
  21196. mk := int(dd.DecodeInt(intBitsize))
  21197. mv := v[mk]
  21198. mv = uint16(dd.DecodeUint(16))
  21199. if v != nil {
  21200. v[mk] = mv
  21201. }
  21202. }
  21203. } else if containerLen < 0 {
  21204. for j := 0; !dd.CheckBreak(); j++ {
  21205. if j > 0 {
  21206. dd.ReadMapEntrySeparator()
  21207. }
  21208. mk := int(dd.DecodeInt(intBitsize))
  21209. dd.ReadMapKVSeparator()
  21210. mv := v[mk]
  21211. mv = uint16(dd.DecodeUint(16))
  21212. if v != nil {
  21213. v[mk] = mv
  21214. }
  21215. }
  21216. dd.ReadMapEnd()
  21217. }
  21218. return v, changed
  21219. }
  21220. func (f decFnInfo) fastpathDecMapIntUint32R(rv reflect.Value) {
  21221. if rv.CanAddr() {
  21222. vp := rv.Addr().Interface().(*map[int]uint32)
  21223. v, changed := fastpathTV.DecMapIntUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  21224. if changed {
  21225. *vp = v
  21226. }
  21227. } else {
  21228. v := rv.Interface().(map[int]uint32)
  21229. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, f.d)
  21230. }
  21231. }
  21232. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, checkNil bool, d *Decoder) {
  21233. v, changed := f.DecMapIntUint32V(*vp, checkNil, true, d)
  21234. if changed {
  21235. *vp = v
  21236. }
  21237. }
  21238. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, checkNil bool, canChange bool,
  21239. d *Decoder) (_ map[int]uint32, changed bool) {
  21240. dd := d.d
  21241. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21242. if checkNil && dd.TryDecodeAsNil() {
  21243. if v != nil {
  21244. changed = true
  21245. }
  21246. return nil, changed
  21247. }
  21248. containerLen := dd.ReadMapStart()
  21249. if canChange && v == nil {
  21250. if containerLen > 0 {
  21251. v = make(map[int]uint32, containerLen)
  21252. } else {
  21253. v = make(map[int]uint32) // supports indefinite-length, etc
  21254. }
  21255. changed = true
  21256. }
  21257. if containerLen > 0 {
  21258. for j := 0; j < containerLen; j++ {
  21259. mk := int(dd.DecodeInt(intBitsize))
  21260. mv := v[mk]
  21261. mv = uint32(dd.DecodeUint(32))
  21262. if v != nil {
  21263. v[mk] = mv
  21264. }
  21265. }
  21266. } else if containerLen < 0 {
  21267. for j := 0; !dd.CheckBreak(); j++ {
  21268. if j > 0 {
  21269. dd.ReadMapEntrySeparator()
  21270. }
  21271. mk := int(dd.DecodeInt(intBitsize))
  21272. dd.ReadMapKVSeparator()
  21273. mv := v[mk]
  21274. mv = uint32(dd.DecodeUint(32))
  21275. if v != nil {
  21276. v[mk] = mv
  21277. }
  21278. }
  21279. dd.ReadMapEnd()
  21280. }
  21281. return v, changed
  21282. }
  21283. func (f decFnInfo) fastpathDecMapIntUint64R(rv reflect.Value) {
  21284. if rv.CanAddr() {
  21285. vp := rv.Addr().Interface().(*map[int]uint64)
  21286. v, changed := fastpathTV.DecMapIntUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  21287. if changed {
  21288. *vp = v
  21289. }
  21290. } else {
  21291. v := rv.Interface().(map[int]uint64)
  21292. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, f.d)
  21293. }
  21294. }
  21295. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, checkNil bool, d *Decoder) {
  21296. v, changed := f.DecMapIntUint64V(*vp, checkNil, true, d)
  21297. if changed {
  21298. *vp = v
  21299. }
  21300. }
  21301. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, checkNil bool, canChange bool,
  21302. d *Decoder) (_ map[int]uint64, changed bool) {
  21303. dd := d.d
  21304. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21305. if checkNil && dd.TryDecodeAsNil() {
  21306. if v != nil {
  21307. changed = true
  21308. }
  21309. return nil, changed
  21310. }
  21311. containerLen := dd.ReadMapStart()
  21312. if canChange && v == nil {
  21313. if containerLen > 0 {
  21314. v = make(map[int]uint64, containerLen)
  21315. } else {
  21316. v = make(map[int]uint64) // supports indefinite-length, etc
  21317. }
  21318. changed = true
  21319. }
  21320. if containerLen > 0 {
  21321. for j := 0; j < containerLen; j++ {
  21322. mk := int(dd.DecodeInt(intBitsize))
  21323. mv := v[mk]
  21324. mv = dd.DecodeUint(64)
  21325. if v != nil {
  21326. v[mk] = mv
  21327. }
  21328. }
  21329. } else if containerLen < 0 {
  21330. for j := 0; !dd.CheckBreak(); j++ {
  21331. if j > 0 {
  21332. dd.ReadMapEntrySeparator()
  21333. }
  21334. mk := int(dd.DecodeInt(intBitsize))
  21335. dd.ReadMapKVSeparator()
  21336. mv := v[mk]
  21337. mv = dd.DecodeUint(64)
  21338. if v != nil {
  21339. v[mk] = mv
  21340. }
  21341. }
  21342. dd.ReadMapEnd()
  21343. }
  21344. return v, changed
  21345. }
  21346. func (f decFnInfo) fastpathDecMapIntIntR(rv reflect.Value) {
  21347. if rv.CanAddr() {
  21348. vp := rv.Addr().Interface().(*map[int]int)
  21349. v, changed := fastpathTV.DecMapIntIntV(*vp, fastpathCheckNilFalse, true, f.d)
  21350. if changed {
  21351. *vp = v
  21352. }
  21353. } else {
  21354. v := rv.Interface().(map[int]int)
  21355. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, f.d)
  21356. }
  21357. }
  21358. func (f fastpathT) DecMapIntIntX(vp *map[int]int, checkNil bool, d *Decoder) {
  21359. v, changed := f.DecMapIntIntV(*vp, checkNil, true, d)
  21360. if changed {
  21361. *vp = v
  21362. }
  21363. }
  21364. func (_ fastpathT) DecMapIntIntV(v map[int]int, checkNil bool, canChange bool,
  21365. d *Decoder) (_ map[int]int, changed bool) {
  21366. dd := d.d
  21367. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21368. if checkNil && dd.TryDecodeAsNil() {
  21369. if v != nil {
  21370. changed = true
  21371. }
  21372. return nil, changed
  21373. }
  21374. containerLen := dd.ReadMapStart()
  21375. if canChange && v == nil {
  21376. if containerLen > 0 {
  21377. v = make(map[int]int, containerLen)
  21378. } else {
  21379. v = make(map[int]int) // supports indefinite-length, etc
  21380. }
  21381. changed = true
  21382. }
  21383. if containerLen > 0 {
  21384. for j := 0; j < containerLen; j++ {
  21385. mk := int(dd.DecodeInt(intBitsize))
  21386. mv := v[mk]
  21387. mv = int(dd.DecodeInt(intBitsize))
  21388. if v != nil {
  21389. v[mk] = mv
  21390. }
  21391. }
  21392. } else if containerLen < 0 {
  21393. for j := 0; !dd.CheckBreak(); j++ {
  21394. if j > 0 {
  21395. dd.ReadMapEntrySeparator()
  21396. }
  21397. mk := int(dd.DecodeInt(intBitsize))
  21398. dd.ReadMapKVSeparator()
  21399. mv := v[mk]
  21400. mv = int(dd.DecodeInt(intBitsize))
  21401. if v != nil {
  21402. v[mk] = mv
  21403. }
  21404. }
  21405. dd.ReadMapEnd()
  21406. }
  21407. return v, changed
  21408. }
  21409. func (f decFnInfo) fastpathDecMapIntInt8R(rv reflect.Value) {
  21410. if rv.CanAddr() {
  21411. vp := rv.Addr().Interface().(*map[int]int8)
  21412. v, changed := fastpathTV.DecMapIntInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  21413. if changed {
  21414. *vp = v
  21415. }
  21416. } else {
  21417. v := rv.Interface().(map[int]int8)
  21418. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, f.d)
  21419. }
  21420. }
  21421. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, checkNil bool, d *Decoder) {
  21422. v, changed := f.DecMapIntInt8V(*vp, checkNil, true, d)
  21423. if changed {
  21424. *vp = v
  21425. }
  21426. }
  21427. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, checkNil bool, canChange bool,
  21428. d *Decoder) (_ map[int]int8, changed bool) {
  21429. dd := d.d
  21430. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21431. if checkNil && dd.TryDecodeAsNil() {
  21432. if v != nil {
  21433. changed = true
  21434. }
  21435. return nil, changed
  21436. }
  21437. containerLen := dd.ReadMapStart()
  21438. if canChange && v == nil {
  21439. if containerLen > 0 {
  21440. v = make(map[int]int8, containerLen)
  21441. } else {
  21442. v = make(map[int]int8) // supports indefinite-length, etc
  21443. }
  21444. changed = true
  21445. }
  21446. if containerLen > 0 {
  21447. for j := 0; j < containerLen; j++ {
  21448. mk := int(dd.DecodeInt(intBitsize))
  21449. mv := v[mk]
  21450. mv = int8(dd.DecodeInt(8))
  21451. if v != nil {
  21452. v[mk] = mv
  21453. }
  21454. }
  21455. } else if containerLen < 0 {
  21456. for j := 0; !dd.CheckBreak(); j++ {
  21457. if j > 0 {
  21458. dd.ReadMapEntrySeparator()
  21459. }
  21460. mk := int(dd.DecodeInt(intBitsize))
  21461. dd.ReadMapKVSeparator()
  21462. mv := v[mk]
  21463. mv = int8(dd.DecodeInt(8))
  21464. if v != nil {
  21465. v[mk] = mv
  21466. }
  21467. }
  21468. dd.ReadMapEnd()
  21469. }
  21470. return v, changed
  21471. }
  21472. func (f decFnInfo) fastpathDecMapIntInt16R(rv reflect.Value) {
  21473. if rv.CanAddr() {
  21474. vp := rv.Addr().Interface().(*map[int]int16)
  21475. v, changed := fastpathTV.DecMapIntInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  21476. if changed {
  21477. *vp = v
  21478. }
  21479. } else {
  21480. v := rv.Interface().(map[int]int16)
  21481. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, f.d)
  21482. }
  21483. }
  21484. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, checkNil bool, d *Decoder) {
  21485. v, changed := f.DecMapIntInt16V(*vp, checkNil, true, d)
  21486. if changed {
  21487. *vp = v
  21488. }
  21489. }
  21490. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, checkNil bool, canChange bool,
  21491. d *Decoder) (_ map[int]int16, changed bool) {
  21492. dd := d.d
  21493. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21494. if checkNil && dd.TryDecodeAsNil() {
  21495. if v != nil {
  21496. changed = true
  21497. }
  21498. return nil, changed
  21499. }
  21500. containerLen := dd.ReadMapStart()
  21501. if canChange && v == nil {
  21502. if containerLen > 0 {
  21503. v = make(map[int]int16, containerLen)
  21504. } else {
  21505. v = make(map[int]int16) // supports indefinite-length, etc
  21506. }
  21507. changed = true
  21508. }
  21509. if containerLen > 0 {
  21510. for j := 0; j < containerLen; j++ {
  21511. mk := int(dd.DecodeInt(intBitsize))
  21512. mv := v[mk]
  21513. mv = int16(dd.DecodeInt(16))
  21514. if v != nil {
  21515. v[mk] = mv
  21516. }
  21517. }
  21518. } else if containerLen < 0 {
  21519. for j := 0; !dd.CheckBreak(); j++ {
  21520. if j > 0 {
  21521. dd.ReadMapEntrySeparator()
  21522. }
  21523. mk := int(dd.DecodeInt(intBitsize))
  21524. dd.ReadMapKVSeparator()
  21525. mv := v[mk]
  21526. mv = int16(dd.DecodeInt(16))
  21527. if v != nil {
  21528. v[mk] = mv
  21529. }
  21530. }
  21531. dd.ReadMapEnd()
  21532. }
  21533. return v, changed
  21534. }
  21535. func (f decFnInfo) fastpathDecMapIntInt32R(rv reflect.Value) {
  21536. if rv.CanAddr() {
  21537. vp := rv.Addr().Interface().(*map[int]int32)
  21538. v, changed := fastpathTV.DecMapIntInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  21539. if changed {
  21540. *vp = v
  21541. }
  21542. } else {
  21543. v := rv.Interface().(map[int]int32)
  21544. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, f.d)
  21545. }
  21546. }
  21547. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, checkNil bool, d *Decoder) {
  21548. v, changed := f.DecMapIntInt32V(*vp, checkNil, true, d)
  21549. if changed {
  21550. *vp = v
  21551. }
  21552. }
  21553. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, checkNil bool, canChange bool,
  21554. d *Decoder) (_ map[int]int32, changed bool) {
  21555. dd := d.d
  21556. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21557. if checkNil && dd.TryDecodeAsNil() {
  21558. if v != nil {
  21559. changed = true
  21560. }
  21561. return nil, changed
  21562. }
  21563. containerLen := dd.ReadMapStart()
  21564. if canChange && v == nil {
  21565. if containerLen > 0 {
  21566. v = make(map[int]int32, containerLen)
  21567. } else {
  21568. v = make(map[int]int32) // supports indefinite-length, etc
  21569. }
  21570. changed = true
  21571. }
  21572. if containerLen > 0 {
  21573. for j := 0; j < containerLen; j++ {
  21574. mk := int(dd.DecodeInt(intBitsize))
  21575. mv := v[mk]
  21576. mv = int32(dd.DecodeInt(32))
  21577. if v != nil {
  21578. v[mk] = mv
  21579. }
  21580. }
  21581. } else if containerLen < 0 {
  21582. for j := 0; !dd.CheckBreak(); j++ {
  21583. if j > 0 {
  21584. dd.ReadMapEntrySeparator()
  21585. }
  21586. mk := int(dd.DecodeInt(intBitsize))
  21587. dd.ReadMapKVSeparator()
  21588. mv := v[mk]
  21589. mv = int32(dd.DecodeInt(32))
  21590. if v != nil {
  21591. v[mk] = mv
  21592. }
  21593. }
  21594. dd.ReadMapEnd()
  21595. }
  21596. return v, changed
  21597. }
  21598. func (f decFnInfo) fastpathDecMapIntInt64R(rv reflect.Value) {
  21599. if rv.CanAddr() {
  21600. vp := rv.Addr().Interface().(*map[int]int64)
  21601. v, changed := fastpathTV.DecMapIntInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  21602. if changed {
  21603. *vp = v
  21604. }
  21605. } else {
  21606. v := rv.Interface().(map[int]int64)
  21607. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, f.d)
  21608. }
  21609. }
  21610. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, checkNil bool, d *Decoder) {
  21611. v, changed := f.DecMapIntInt64V(*vp, checkNil, true, d)
  21612. if changed {
  21613. *vp = v
  21614. }
  21615. }
  21616. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, checkNil bool, canChange bool,
  21617. d *Decoder) (_ map[int]int64, changed bool) {
  21618. dd := d.d
  21619. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21620. if checkNil && dd.TryDecodeAsNil() {
  21621. if v != nil {
  21622. changed = true
  21623. }
  21624. return nil, changed
  21625. }
  21626. containerLen := dd.ReadMapStart()
  21627. if canChange && v == nil {
  21628. if containerLen > 0 {
  21629. v = make(map[int]int64, containerLen)
  21630. } else {
  21631. v = make(map[int]int64) // supports indefinite-length, etc
  21632. }
  21633. changed = true
  21634. }
  21635. if containerLen > 0 {
  21636. for j := 0; j < containerLen; j++ {
  21637. mk := int(dd.DecodeInt(intBitsize))
  21638. mv := v[mk]
  21639. mv = dd.DecodeInt(64)
  21640. if v != nil {
  21641. v[mk] = mv
  21642. }
  21643. }
  21644. } else if containerLen < 0 {
  21645. for j := 0; !dd.CheckBreak(); j++ {
  21646. if j > 0 {
  21647. dd.ReadMapEntrySeparator()
  21648. }
  21649. mk := int(dd.DecodeInt(intBitsize))
  21650. dd.ReadMapKVSeparator()
  21651. mv := v[mk]
  21652. mv = dd.DecodeInt(64)
  21653. if v != nil {
  21654. v[mk] = mv
  21655. }
  21656. }
  21657. dd.ReadMapEnd()
  21658. }
  21659. return v, changed
  21660. }
  21661. func (f decFnInfo) fastpathDecMapIntFloat32R(rv reflect.Value) {
  21662. if rv.CanAddr() {
  21663. vp := rv.Addr().Interface().(*map[int]float32)
  21664. v, changed := fastpathTV.DecMapIntFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  21665. if changed {
  21666. *vp = v
  21667. }
  21668. } else {
  21669. v := rv.Interface().(map[int]float32)
  21670. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, f.d)
  21671. }
  21672. }
  21673. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, checkNil bool, d *Decoder) {
  21674. v, changed := f.DecMapIntFloat32V(*vp, checkNil, true, d)
  21675. if changed {
  21676. *vp = v
  21677. }
  21678. }
  21679. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, checkNil bool, canChange bool,
  21680. d *Decoder) (_ map[int]float32, changed bool) {
  21681. dd := d.d
  21682. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21683. if checkNil && dd.TryDecodeAsNil() {
  21684. if v != nil {
  21685. changed = true
  21686. }
  21687. return nil, changed
  21688. }
  21689. containerLen := dd.ReadMapStart()
  21690. if canChange && v == nil {
  21691. if containerLen > 0 {
  21692. v = make(map[int]float32, containerLen)
  21693. } else {
  21694. v = make(map[int]float32) // supports indefinite-length, etc
  21695. }
  21696. changed = true
  21697. }
  21698. if containerLen > 0 {
  21699. for j := 0; j < containerLen; j++ {
  21700. mk := int(dd.DecodeInt(intBitsize))
  21701. mv := v[mk]
  21702. mv = float32(dd.DecodeFloat(true))
  21703. if v != nil {
  21704. v[mk] = mv
  21705. }
  21706. }
  21707. } else if containerLen < 0 {
  21708. for j := 0; !dd.CheckBreak(); j++ {
  21709. if j > 0 {
  21710. dd.ReadMapEntrySeparator()
  21711. }
  21712. mk := int(dd.DecodeInt(intBitsize))
  21713. dd.ReadMapKVSeparator()
  21714. mv := v[mk]
  21715. mv = float32(dd.DecodeFloat(true))
  21716. if v != nil {
  21717. v[mk] = mv
  21718. }
  21719. }
  21720. dd.ReadMapEnd()
  21721. }
  21722. return v, changed
  21723. }
  21724. func (f decFnInfo) fastpathDecMapIntFloat64R(rv reflect.Value) {
  21725. if rv.CanAddr() {
  21726. vp := rv.Addr().Interface().(*map[int]float64)
  21727. v, changed := fastpathTV.DecMapIntFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  21728. if changed {
  21729. *vp = v
  21730. }
  21731. } else {
  21732. v := rv.Interface().(map[int]float64)
  21733. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, f.d)
  21734. }
  21735. }
  21736. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, checkNil bool, d *Decoder) {
  21737. v, changed := f.DecMapIntFloat64V(*vp, checkNil, true, d)
  21738. if changed {
  21739. *vp = v
  21740. }
  21741. }
  21742. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, checkNil bool, canChange bool,
  21743. d *Decoder) (_ map[int]float64, changed bool) {
  21744. dd := d.d
  21745. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21746. if checkNil && dd.TryDecodeAsNil() {
  21747. if v != nil {
  21748. changed = true
  21749. }
  21750. return nil, changed
  21751. }
  21752. containerLen := dd.ReadMapStart()
  21753. if canChange && v == nil {
  21754. if containerLen > 0 {
  21755. v = make(map[int]float64, containerLen)
  21756. } else {
  21757. v = make(map[int]float64) // supports indefinite-length, etc
  21758. }
  21759. changed = true
  21760. }
  21761. if containerLen > 0 {
  21762. for j := 0; j < containerLen; j++ {
  21763. mk := int(dd.DecodeInt(intBitsize))
  21764. mv := v[mk]
  21765. mv = dd.DecodeFloat(false)
  21766. if v != nil {
  21767. v[mk] = mv
  21768. }
  21769. }
  21770. } else if containerLen < 0 {
  21771. for j := 0; !dd.CheckBreak(); j++ {
  21772. if j > 0 {
  21773. dd.ReadMapEntrySeparator()
  21774. }
  21775. mk := int(dd.DecodeInt(intBitsize))
  21776. dd.ReadMapKVSeparator()
  21777. mv := v[mk]
  21778. mv = dd.DecodeFloat(false)
  21779. if v != nil {
  21780. v[mk] = mv
  21781. }
  21782. }
  21783. dd.ReadMapEnd()
  21784. }
  21785. return v, changed
  21786. }
  21787. func (f decFnInfo) fastpathDecMapIntBoolR(rv reflect.Value) {
  21788. if rv.CanAddr() {
  21789. vp := rv.Addr().Interface().(*map[int]bool)
  21790. v, changed := fastpathTV.DecMapIntBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  21791. if changed {
  21792. *vp = v
  21793. }
  21794. } else {
  21795. v := rv.Interface().(map[int]bool)
  21796. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, f.d)
  21797. }
  21798. }
  21799. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, checkNil bool, d *Decoder) {
  21800. v, changed := f.DecMapIntBoolV(*vp, checkNil, true, d)
  21801. if changed {
  21802. *vp = v
  21803. }
  21804. }
  21805. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, checkNil bool, canChange bool,
  21806. d *Decoder) (_ map[int]bool, changed bool) {
  21807. dd := d.d
  21808. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21809. if checkNil && dd.TryDecodeAsNil() {
  21810. if v != nil {
  21811. changed = true
  21812. }
  21813. return nil, changed
  21814. }
  21815. containerLen := dd.ReadMapStart()
  21816. if canChange && v == nil {
  21817. if containerLen > 0 {
  21818. v = make(map[int]bool, containerLen)
  21819. } else {
  21820. v = make(map[int]bool) // supports indefinite-length, etc
  21821. }
  21822. changed = true
  21823. }
  21824. if containerLen > 0 {
  21825. for j := 0; j < containerLen; j++ {
  21826. mk := int(dd.DecodeInt(intBitsize))
  21827. mv := v[mk]
  21828. mv = dd.DecodeBool()
  21829. if v != nil {
  21830. v[mk] = mv
  21831. }
  21832. }
  21833. } else if containerLen < 0 {
  21834. for j := 0; !dd.CheckBreak(); j++ {
  21835. if j > 0 {
  21836. dd.ReadMapEntrySeparator()
  21837. }
  21838. mk := int(dd.DecodeInt(intBitsize))
  21839. dd.ReadMapKVSeparator()
  21840. mv := v[mk]
  21841. mv = dd.DecodeBool()
  21842. if v != nil {
  21843. v[mk] = mv
  21844. }
  21845. }
  21846. dd.ReadMapEnd()
  21847. }
  21848. return v, changed
  21849. }
  21850. func (f decFnInfo) fastpathDecMapInt8IntfR(rv reflect.Value) {
  21851. if rv.CanAddr() {
  21852. vp := rv.Addr().Interface().(*map[int8]interface{})
  21853. v, changed := fastpathTV.DecMapInt8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  21854. if changed {
  21855. *vp = v
  21856. }
  21857. } else {
  21858. v := rv.Interface().(map[int8]interface{})
  21859. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, f.d)
  21860. }
  21861. }
  21862. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, checkNil bool, d *Decoder) {
  21863. v, changed := f.DecMapInt8IntfV(*vp, checkNil, true, d)
  21864. if changed {
  21865. *vp = v
  21866. }
  21867. }
  21868. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, checkNil bool, canChange bool,
  21869. d *Decoder) (_ map[int8]interface{}, changed bool) {
  21870. dd := d.d
  21871. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21872. if checkNil && dd.TryDecodeAsNil() {
  21873. if v != nil {
  21874. changed = true
  21875. }
  21876. return nil, changed
  21877. }
  21878. containerLen := dd.ReadMapStart()
  21879. if canChange && v == nil {
  21880. if containerLen > 0 {
  21881. v = make(map[int8]interface{}, containerLen)
  21882. } else {
  21883. v = make(map[int8]interface{}) // supports indefinite-length, etc
  21884. }
  21885. changed = true
  21886. }
  21887. if containerLen > 0 {
  21888. for j := 0; j < containerLen; j++ {
  21889. mk := int8(dd.DecodeInt(8))
  21890. mv := v[mk]
  21891. d.decode(&mv)
  21892. if v != nil {
  21893. v[mk] = mv
  21894. }
  21895. }
  21896. } else if containerLen < 0 {
  21897. for j := 0; !dd.CheckBreak(); j++ {
  21898. if j > 0 {
  21899. dd.ReadMapEntrySeparator()
  21900. }
  21901. mk := int8(dd.DecodeInt(8))
  21902. dd.ReadMapKVSeparator()
  21903. mv := v[mk]
  21904. d.decode(&mv)
  21905. if v != nil {
  21906. v[mk] = mv
  21907. }
  21908. }
  21909. dd.ReadMapEnd()
  21910. }
  21911. return v, changed
  21912. }
  21913. func (f decFnInfo) fastpathDecMapInt8StringR(rv reflect.Value) {
  21914. if rv.CanAddr() {
  21915. vp := rv.Addr().Interface().(*map[int8]string)
  21916. v, changed := fastpathTV.DecMapInt8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  21917. if changed {
  21918. *vp = v
  21919. }
  21920. } else {
  21921. v := rv.Interface().(map[int8]string)
  21922. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, f.d)
  21923. }
  21924. }
  21925. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, checkNil bool, d *Decoder) {
  21926. v, changed := f.DecMapInt8StringV(*vp, checkNil, true, d)
  21927. if changed {
  21928. *vp = v
  21929. }
  21930. }
  21931. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, checkNil bool, canChange bool,
  21932. d *Decoder) (_ map[int8]string, changed bool) {
  21933. dd := d.d
  21934. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21935. if checkNil && dd.TryDecodeAsNil() {
  21936. if v != nil {
  21937. changed = true
  21938. }
  21939. return nil, changed
  21940. }
  21941. containerLen := dd.ReadMapStart()
  21942. if canChange && v == nil {
  21943. if containerLen > 0 {
  21944. v = make(map[int8]string, containerLen)
  21945. } else {
  21946. v = make(map[int8]string) // supports indefinite-length, etc
  21947. }
  21948. changed = true
  21949. }
  21950. if containerLen > 0 {
  21951. for j := 0; j < containerLen; j++ {
  21952. mk := int8(dd.DecodeInt(8))
  21953. mv := v[mk]
  21954. mv = dd.DecodeString()
  21955. if v != nil {
  21956. v[mk] = mv
  21957. }
  21958. }
  21959. } else if containerLen < 0 {
  21960. for j := 0; !dd.CheckBreak(); j++ {
  21961. if j > 0 {
  21962. dd.ReadMapEntrySeparator()
  21963. }
  21964. mk := int8(dd.DecodeInt(8))
  21965. dd.ReadMapKVSeparator()
  21966. mv := v[mk]
  21967. mv = dd.DecodeString()
  21968. if v != nil {
  21969. v[mk] = mv
  21970. }
  21971. }
  21972. dd.ReadMapEnd()
  21973. }
  21974. return v, changed
  21975. }
  21976. func (f decFnInfo) fastpathDecMapInt8UintR(rv reflect.Value) {
  21977. if rv.CanAddr() {
  21978. vp := rv.Addr().Interface().(*map[int8]uint)
  21979. v, changed := fastpathTV.DecMapInt8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  21980. if changed {
  21981. *vp = v
  21982. }
  21983. } else {
  21984. v := rv.Interface().(map[int8]uint)
  21985. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, f.d)
  21986. }
  21987. }
  21988. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, checkNil bool, d *Decoder) {
  21989. v, changed := f.DecMapInt8UintV(*vp, checkNil, true, d)
  21990. if changed {
  21991. *vp = v
  21992. }
  21993. }
  21994. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, checkNil bool, canChange bool,
  21995. d *Decoder) (_ map[int8]uint, changed bool) {
  21996. dd := d.d
  21997. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  21998. if checkNil && dd.TryDecodeAsNil() {
  21999. if v != nil {
  22000. changed = true
  22001. }
  22002. return nil, changed
  22003. }
  22004. containerLen := dd.ReadMapStart()
  22005. if canChange && v == nil {
  22006. if containerLen > 0 {
  22007. v = make(map[int8]uint, containerLen)
  22008. } else {
  22009. v = make(map[int8]uint) // supports indefinite-length, etc
  22010. }
  22011. changed = true
  22012. }
  22013. if containerLen > 0 {
  22014. for j := 0; j < containerLen; j++ {
  22015. mk := int8(dd.DecodeInt(8))
  22016. mv := v[mk]
  22017. mv = uint(dd.DecodeUint(uintBitsize))
  22018. if v != nil {
  22019. v[mk] = mv
  22020. }
  22021. }
  22022. } else if containerLen < 0 {
  22023. for j := 0; !dd.CheckBreak(); j++ {
  22024. if j > 0 {
  22025. dd.ReadMapEntrySeparator()
  22026. }
  22027. mk := int8(dd.DecodeInt(8))
  22028. dd.ReadMapKVSeparator()
  22029. mv := v[mk]
  22030. mv = uint(dd.DecodeUint(uintBitsize))
  22031. if v != nil {
  22032. v[mk] = mv
  22033. }
  22034. }
  22035. dd.ReadMapEnd()
  22036. }
  22037. return v, changed
  22038. }
  22039. func (f decFnInfo) fastpathDecMapInt8Uint8R(rv reflect.Value) {
  22040. if rv.CanAddr() {
  22041. vp := rv.Addr().Interface().(*map[int8]uint8)
  22042. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  22043. if changed {
  22044. *vp = v
  22045. }
  22046. } else {
  22047. v := rv.Interface().(map[int8]uint8)
  22048. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  22049. }
  22050. }
  22051. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, checkNil bool, d *Decoder) {
  22052. v, changed := f.DecMapInt8Uint8V(*vp, checkNil, true, d)
  22053. if changed {
  22054. *vp = v
  22055. }
  22056. }
  22057. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, checkNil bool, canChange bool,
  22058. d *Decoder) (_ map[int8]uint8, changed bool) {
  22059. dd := d.d
  22060. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22061. if checkNil && dd.TryDecodeAsNil() {
  22062. if v != nil {
  22063. changed = true
  22064. }
  22065. return nil, changed
  22066. }
  22067. containerLen := dd.ReadMapStart()
  22068. if canChange && v == nil {
  22069. if containerLen > 0 {
  22070. v = make(map[int8]uint8, containerLen)
  22071. } else {
  22072. v = make(map[int8]uint8) // supports indefinite-length, etc
  22073. }
  22074. changed = true
  22075. }
  22076. if containerLen > 0 {
  22077. for j := 0; j < containerLen; j++ {
  22078. mk := int8(dd.DecodeInt(8))
  22079. mv := v[mk]
  22080. mv = uint8(dd.DecodeUint(8))
  22081. if v != nil {
  22082. v[mk] = mv
  22083. }
  22084. }
  22085. } else if containerLen < 0 {
  22086. for j := 0; !dd.CheckBreak(); j++ {
  22087. if j > 0 {
  22088. dd.ReadMapEntrySeparator()
  22089. }
  22090. mk := int8(dd.DecodeInt(8))
  22091. dd.ReadMapKVSeparator()
  22092. mv := v[mk]
  22093. mv = uint8(dd.DecodeUint(8))
  22094. if v != nil {
  22095. v[mk] = mv
  22096. }
  22097. }
  22098. dd.ReadMapEnd()
  22099. }
  22100. return v, changed
  22101. }
  22102. func (f decFnInfo) fastpathDecMapInt8Uint16R(rv reflect.Value) {
  22103. if rv.CanAddr() {
  22104. vp := rv.Addr().Interface().(*map[int8]uint16)
  22105. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  22106. if changed {
  22107. *vp = v
  22108. }
  22109. } else {
  22110. v := rv.Interface().(map[int8]uint16)
  22111. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  22112. }
  22113. }
  22114. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, checkNil bool, d *Decoder) {
  22115. v, changed := f.DecMapInt8Uint16V(*vp, checkNil, true, d)
  22116. if changed {
  22117. *vp = v
  22118. }
  22119. }
  22120. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, checkNil bool, canChange bool,
  22121. d *Decoder) (_ map[int8]uint16, changed bool) {
  22122. dd := d.d
  22123. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22124. if checkNil && dd.TryDecodeAsNil() {
  22125. if v != nil {
  22126. changed = true
  22127. }
  22128. return nil, changed
  22129. }
  22130. containerLen := dd.ReadMapStart()
  22131. if canChange && v == nil {
  22132. if containerLen > 0 {
  22133. v = make(map[int8]uint16, containerLen)
  22134. } else {
  22135. v = make(map[int8]uint16) // supports indefinite-length, etc
  22136. }
  22137. changed = true
  22138. }
  22139. if containerLen > 0 {
  22140. for j := 0; j < containerLen; j++ {
  22141. mk := int8(dd.DecodeInt(8))
  22142. mv := v[mk]
  22143. mv = uint16(dd.DecodeUint(16))
  22144. if v != nil {
  22145. v[mk] = mv
  22146. }
  22147. }
  22148. } else if containerLen < 0 {
  22149. for j := 0; !dd.CheckBreak(); j++ {
  22150. if j > 0 {
  22151. dd.ReadMapEntrySeparator()
  22152. }
  22153. mk := int8(dd.DecodeInt(8))
  22154. dd.ReadMapKVSeparator()
  22155. mv := v[mk]
  22156. mv = uint16(dd.DecodeUint(16))
  22157. if v != nil {
  22158. v[mk] = mv
  22159. }
  22160. }
  22161. dd.ReadMapEnd()
  22162. }
  22163. return v, changed
  22164. }
  22165. func (f decFnInfo) fastpathDecMapInt8Uint32R(rv reflect.Value) {
  22166. if rv.CanAddr() {
  22167. vp := rv.Addr().Interface().(*map[int8]uint32)
  22168. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  22169. if changed {
  22170. *vp = v
  22171. }
  22172. } else {
  22173. v := rv.Interface().(map[int8]uint32)
  22174. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  22175. }
  22176. }
  22177. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, checkNil bool, d *Decoder) {
  22178. v, changed := f.DecMapInt8Uint32V(*vp, checkNil, true, d)
  22179. if changed {
  22180. *vp = v
  22181. }
  22182. }
  22183. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, checkNil bool, canChange bool,
  22184. d *Decoder) (_ map[int8]uint32, changed bool) {
  22185. dd := d.d
  22186. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22187. if checkNil && dd.TryDecodeAsNil() {
  22188. if v != nil {
  22189. changed = true
  22190. }
  22191. return nil, changed
  22192. }
  22193. containerLen := dd.ReadMapStart()
  22194. if canChange && v == nil {
  22195. if containerLen > 0 {
  22196. v = make(map[int8]uint32, containerLen)
  22197. } else {
  22198. v = make(map[int8]uint32) // supports indefinite-length, etc
  22199. }
  22200. changed = true
  22201. }
  22202. if containerLen > 0 {
  22203. for j := 0; j < containerLen; j++ {
  22204. mk := int8(dd.DecodeInt(8))
  22205. mv := v[mk]
  22206. mv = uint32(dd.DecodeUint(32))
  22207. if v != nil {
  22208. v[mk] = mv
  22209. }
  22210. }
  22211. } else if containerLen < 0 {
  22212. for j := 0; !dd.CheckBreak(); j++ {
  22213. if j > 0 {
  22214. dd.ReadMapEntrySeparator()
  22215. }
  22216. mk := int8(dd.DecodeInt(8))
  22217. dd.ReadMapKVSeparator()
  22218. mv := v[mk]
  22219. mv = uint32(dd.DecodeUint(32))
  22220. if v != nil {
  22221. v[mk] = mv
  22222. }
  22223. }
  22224. dd.ReadMapEnd()
  22225. }
  22226. return v, changed
  22227. }
  22228. func (f decFnInfo) fastpathDecMapInt8Uint64R(rv reflect.Value) {
  22229. if rv.CanAddr() {
  22230. vp := rv.Addr().Interface().(*map[int8]uint64)
  22231. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  22232. if changed {
  22233. *vp = v
  22234. }
  22235. } else {
  22236. v := rv.Interface().(map[int8]uint64)
  22237. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  22238. }
  22239. }
  22240. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, checkNil bool, d *Decoder) {
  22241. v, changed := f.DecMapInt8Uint64V(*vp, checkNil, true, d)
  22242. if changed {
  22243. *vp = v
  22244. }
  22245. }
  22246. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, checkNil bool, canChange bool,
  22247. d *Decoder) (_ map[int8]uint64, changed bool) {
  22248. dd := d.d
  22249. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22250. if checkNil && dd.TryDecodeAsNil() {
  22251. if v != nil {
  22252. changed = true
  22253. }
  22254. return nil, changed
  22255. }
  22256. containerLen := dd.ReadMapStart()
  22257. if canChange && v == nil {
  22258. if containerLen > 0 {
  22259. v = make(map[int8]uint64, containerLen)
  22260. } else {
  22261. v = make(map[int8]uint64) // supports indefinite-length, etc
  22262. }
  22263. changed = true
  22264. }
  22265. if containerLen > 0 {
  22266. for j := 0; j < containerLen; j++ {
  22267. mk := int8(dd.DecodeInt(8))
  22268. mv := v[mk]
  22269. mv = dd.DecodeUint(64)
  22270. if v != nil {
  22271. v[mk] = mv
  22272. }
  22273. }
  22274. } else if containerLen < 0 {
  22275. for j := 0; !dd.CheckBreak(); j++ {
  22276. if j > 0 {
  22277. dd.ReadMapEntrySeparator()
  22278. }
  22279. mk := int8(dd.DecodeInt(8))
  22280. dd.ReadMapKVSeparator()
  22281. mv := v[mk]
  22282. mv = dd.DecodeUint(64)
  22283. if v != nil {
  22284. v[mk] = mv
  22285. }
  22286. }
  22287. dd.ReadMapEnd()
  22288. }
  22289. return v, changed
  22290. }
  22291. func (f decFnInfo) fastpathDecMapInt8IntR(rv reflect.Value) {
  22292. if rv.CanAddr() {
  22293. vp := rv.Addr().Interface().(*map[int8]int)
  22294. v, changed := fastpathTV.DecMapInt8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  22295. if changed {
  22296. *vp = v
  22297. }
  22298. } else {
  22299. v := rv.Interface().(map[int8]int)
  22300. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, f.d)
  22301. }
  22302. }
  22303. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, checkNil bool, d *Decoder) {
  22304. v, changed := f.DecMapInt8IntV(*vp, checkNil, true, d)
  22305. if changed {
  22306. *vp = v
  22307. }
  22308. }
  22309. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, checkNil bool, canChange bool,
  22310. d *Decoder) (_ map[int8]int, changed bool) {
  22311. dd := d.d
  22312. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22313. if checkNil && dd.TryDecodeAsNil() {
  22314. if v != nil {
  22315. changed = true
  22316. }
  22317. return nil, changed
  22318. }
  22319. containerLen := dd.ReadMapStart()
  22320. if canChange && v == nil {
  22321. if containerLen > 0 {
  22322. v = make(map[int8]int, containerLen)
  22323. } else {
  22324. v = make(map[int8]int) // supports indefinite-length, etc
  22325. }
  22326. changed = true
  22327. }
  22328. if containerLen > 0 {
  22329. for j := 0; j < containerLen; j++ {
  22330. mk := int8(dd.DecodeInt(8))
  22331. mv := v[mk]
  22332. mv = int(dd.DecodeInt(intBitsize))
  22333. if v != nil {
  22334. v[mk] = mv
  22335. }
  22336. }
  22337. } else if containerLen < 0 {
  22338. for j := 0; !dd.CheckBreak(); j++ {
  22339. if j > 0 {
  22340. dd.ReadMapEntrySeparator()
  22341. }
  22342. mk := int8(dd.DecodeInt(8))
  22343. dd.ReadMapKVSeparator()
  22344. mv := v[mk]
  22345. mv = int(dd.DecodeInt(intBitsize))
  22346. if v != nil {
  22347. v[mk] = mv
  22348. }
  22349. }
  22350. dd.ReadMapEnd()
  22351. }
  22352. return v, changed
  22353. }
  22354. func (f decFnInfo) fastpathDecMapInt8Int8R(rv reflect.Value) {
  22355. if rv.CanAddr() {
  22356. vp := rv.Addr().Interface().(*map[int8]int8)
  22357. v, changed := fastpathTV.DecMapInt8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  22358. if changed {
  22359. *vp = v
  22360. }
  22361. } else {
  22362. v := rv.Interface().(map[int8]int8)
  22363. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, f.d)
  22364. }
  22365. }
  22366. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, checkNil bool, d *Decoder) {
  22367. v, changed := f.DecMapInt8Int8V(*vp, checkNil, true, d)
  22368. if changed {
  22369. *vp = v
  22370. }
  22371. }
  22372. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, checkNil bool, canChange bool,
  22373. d *Decoder) (_ map[int8]int8, changed bool) {
  22374. dd := d.d
  22375. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22376. if checkNil && dd.TryDecodeAsNil() {
  22377. if v != nil {
  22378. changed = true
  22379. }
  22380. return nil, changed
  22381. }
  22382. containerLen := dd.ReadMapStart()
  22383. if canChange && v == nil {
  22384. if containerLen > 0 {
  22385. v = make(map[int8]int8, containerLen)
  22386. } else {
  22387. v = make(map[int8]int8) // supports indefinite-length, etc
  22388. }
  22389. changed = true
  22390. }
  22391. if containerLen > 0 {
  22392. for j := 0; j < containerLen; j++ {
  22393. mk := int8(dd.DecodeInt(8))
  22394. mv := v[mk]
  22395. mv = int8(dd.DecodeInt(8))
  22396. if v != nil {
  22397. v[mk] = mv
  22398. }
  22399. }
  22400. } else if containerLen < 0 {
  22401. for j := 0; !dd.CheckBreak(); j++ {
  22402. if j > 0 {
  22403. dd.ReadMapEntrySeparator()
  22404. }
  22405. mk := int8(dd.DecodeInt(8))
  22406. dd.ReadMapKVSeparator()
  22407. mv := v[mk]
  22408. mv = int8(dd.DecodeInt(8))
  22409. if v != nil {
  22410. v[mk] = mv
  22411. }
  22412. }
  22413. dd.ReadMapEnd()
  22414. }
  22415. return v, changed
  22416. }
  22417. func (f decFnInfo) fastpathDecMapInt8Int16R(rv reflect.Value) {
  22418. if rv.CanAddr() {
  22419. vp := rv.Addr().Interface().(*map[int8]int16)
  22420. v, changed := fastpathTV.DecMapInt8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  22421. if changed {
  22422. *vp = v
  22423. }
  22424. } else {
  22425. v := rv.Interface().(map[int8]int16)
  22426. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, f.d)
  22427. }
  22428. }
  22429. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, checkNil bool, d *Decoder) {
  22430. v, changed := f.DecMapInt8Int16V(*vp, checkNil, true, d)
  22431. if changed {
  22432. *vp = v
  22433. }
  22434. }
  22435. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, checkNil bool, canChange bool,
  22436. d *Decoder) (_ map[int8]int16, changed bool) {
  22437. dd := d.d
  22438. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22439. if checkNil && dd.TryDecodeAsNil() {
  22440. if v != nil {
  22441. changed = true
  22442. }
  22443. return nil, changed
  22444. }
  22445. containerLen := dd.ReadMapStart()
  22446. if canChange && v == nil {
  22447. if containerLen > 0 {
  22448. v = make(map[int8]int16, containerLen)
  22449. } else {
  22450. v = make(map[int8]int16) // supports indefinite-length, etc
  22451. }
  22452. changed = true
  22453. }
  22454. if containerLen > 0 {
  22455. for j := 0; j < containerLen; j++ {
  22456. mk := int8(dd.DecodeInt(8))
  22457. mv := v[mk]
  22458. mv = int16(dd.DecodeInt(16))
  22459. if v != nil {
  22460. v[mk] = mv
  22461. }
  22462. }
  22463. } else if containerLen < 0 {
  22464. for j := 0; !dd.CheckBreak(); j++ {
  22465. if j > 0 {
  22466. dd.ReadMapEntrySeparator()
  22467. }
  22468. mk := int8(dd.DecodeInt(8))
  22469. dd.ReadMapKVSeparator()
  22470. mv := v[mk]
  22471. mv = int16(dd.DecodeInt(16))
  22472. if v != nil {
  22473. v[mk] = mv
  22474. }
  22475. }
  22476. dd.ReadMapEnd()
  22477. }
  22478. return v, changed
  22479. }
  22480. func (f decFnInfo) fastpathDecMapInt8Int32R(rv reflect.Value) {
  22481. if rv.CanAddr() {
  22482. vp := rv.Addr().Interface().(*map[int8]int32)
  22483. v, changed := fastpathTV.DecMapInt8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  22484. if changed {
  22485. *vp = v
  22486. }
  22487. } else {
  22488. v := rv.Interface().(map[int8]int32)
  22489. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, f.d)
  22490. }
  22491. }
  22492. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, checkNil bool, d *Decoder) {
  22493. v, changed := f.DecMapInt8Int32V(*vp, checkNil, true, d)
  22494. if changed {
  22495. *vp = v
  22496. }
  22497. }
  22498. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, checkNil bool, canChange bool,
  22499. d *Decoder) (_ map[int8]int32, changed bool) {
  22500. dd := d.d
  22501. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22502. if checkNil && dd.TryDecodeAsNil() {
  22503. if v != nil {
  22504. changed = true
  22505. }
  22506. return nil, changed
  22507. }
  22508. containerLen := dd.ReadMapStart()
  22509. if canChange && v == nil {
  22510. if containerLen > 0 {
  22511. v = make(map[int8]int32, containerLen)
  22512. } else {
  22513. v = make(map[int8]int32) // supports indefinite-length, etc
  22514. }
  22515. changed = true
  22516. }
  22517. if containerLen > 0 {
  22518. for j := 0; j < containerLen; j++ {
  22519. mk := int8(dd.DecodeInt(8))
  22520. mv := v[mk]
  22521. mv = int32(dd.DecodeInt(32))
  22522. if v != nil {
  22523. v[mk] = mv
  22524. }
  22525. }
  22526. } else if containerLen < 0 {
  22527. for j := 0; !dd.CheckBreak(); j++ {
  22528. if j > 0 {
  22529. dd.ReadMapEntrySeparator()
  22530. }
  22531. mk := int8(dd.DecodeInt(8))
  22532. dd.ReadMapKVSeparator()
  22533. mv := v[mk]
  22534. mv = int32(dd.DecodeInt(32))
  22535. if v != nil {
  22536. v[mk] = mv
  22537. }
  22538. }
  22539. dd.ReadMapEnd()
  22540. }
  22541. return v, changed
  22542. }
  22543. func (f decFnInfo) fastpathDecMapInt8Int64R(rv reflect.Value) {
  22544. if rv.CanAddr() {
  22545. vp := rv.Addr().Interface().(*map[int8]int64)
  22546. v, changed := fastpathTV.DecMapInt8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  22547. if changed {
  22548. *vp = v
  22549. }
  22550. } else {
  22551. v := rv.Interface().(map[int8]int64)
  22552. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, f.d)
  22553. }
  22554. }
  22555. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, checkNil bool, d *Decoder) {
  22556. v, changed := f.DecMapInt8Int64V(*vp, checkNil, true, d)
  22557. if changed {
  22558. *vp = v
  22559. }
  22560. }
  22561. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, checkNil bool, canChange bool,
  22562. d *Decoder) (_ map[int8]int64, changed bool) {
  22563. dd := d.d
  22564. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22565. if checkNil && dd.TryDecodeAsNil() {
  22566. if v != nil {
  22567. changed = true
  22568. }
  22569. return nil, changed
  22570. }
  22571. containerLen := dd.ReadMapStart()
  22572. if canChange && v == nil {
  22573. if containerLen > 0 {
  22574. v = make(map[int8]int64, containerLen)
  22575. } else {
  22576. v = make(map[int8]int64) // supports indefinite-length, etc
  22577. }
  22578. changed = true
  22579. }
  22580. if containerLen > 0 {
  22581. for j := 0; j < containerLen; j++ {
  22582. mk := int8(dd.DecodeInt(8))
  22583. mv := v[mk]
  22584. mv = dd.DecodeInt(64)
  22585. if v != nil {
  22586. v[mk] = mv
  22587. }
  22588. }
  22589. } else if containerLen < 0 {
  22590. for j := 0; !dd.CheckBreak(); j++ {
  22591. if j > 0 {
  22592. dd.ReadMapEntrySeparator()
  22593. }
  22594. mk := int8(dd.DecodeInt(8))
  22595. dd.ReadMapKVSeparator()
  22596. mv := v[mk]
  22597. mv = dd.DecodeInt(64)
  22598. if v != nil {
  22599. v[mk] = mv
  22600. }
  22601. }
  22602. dd.ReadMapEnd()
  22603. }
  22604. return v, changed
  22605. }
  22606. func (f decFnInfo) fastpathDecMapInt8Float32R(rv reflect.Value) {
  22607. if rv.CanAddr() {
  22608. vp := rv.Addr().Interface().(*map[int8]float32)
  22609. v, changed := fastpathTV.DecMapInt8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  22610. if changed {
  22611. *vp = v
  22612. }
  22613. } else {
  22614. v := rv.Interface().(map[int8]float32)
  22615. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, f.d)
  22616. }
  22617. }
  22618. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, checkNil bool, d *Decoder) {
  22619. v, changed := f.DecMapInt8Float32V(*vp, checkNil, true, d)
  22620. if changed {
  22621. *vp = v
  22622. }
  22623. }
  22624. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, checkNil bool, canChange bool,
  22625. d *Decoder) (_ map[int8]float32, changed bool) {
  22626. dd := d.d
  22627. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22628. if checkNil && dd.TryDecodeAsNil() {
  22629. if v != nil {
  22630. changed = true
  22631. }
  22632. return nil, changed
  22633. }
  22634. containerLen := dd.ReadMapStart()
  22635. if canChange && v == nil {
  22636. if containerLen > 0 {
  22637. v = make(map[int8]float32, containerLen)
  22638. } else {
  22639. v = make(map[int8]float32) // supports indefinite-length, etc
  22640. }
  22641. changed = true
  22642. }
  22643. if containerLen > 0 {
  22644. for j := 0; j < containerLen; j++ {
  22645. mk := int8(dd.DecodeInt(8))
  22646. mv := v[mk]
  22647. mv = float32(dd.DecodeFloat(true))
  22648. if v != nil {
  22649. v[mk] = mv
  22650. }
  22651. }
  22652. } else if containerLen < 0 {
  22653. for j := 0; !dd.CheckBreak(); j++ {
  22654. if j > 0 {
  22655. dd.ReadMapEntrySeparator()
  22656. }
  22657. mk := int8(dd.DecodeInt(8))
  22658. dd.ReadMapKVSeparator()
  22659. mv := v[mk]
  22660. mv = float32(dd.DecodeFloat(true))
  22661. if v != nil {
  22662. v[mk] = mv
  22663. }
  22664. }
  22665. dd.ReadMapEnd()
  22666. }
  22667. return v, changed
  22668. }
  22669. func (f decFnInfo) fastpathDecMapInt8Float64R(rv reflect.Value) {
  22670. if rv.CanAddr() {
  22671. vp := rv.Addr().Interface().(*map[int8]float64)
  22672. v, changed := fastpathTV.DecMapInt8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  22673. if changed {
  22674. *vp = v
  22675. }
  22676. } else {
  22677. v := rv.Interface().(map[int8]float64)
  22678. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, f.d)
  22679. }
  22680. }
  22681. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, checkNil bool, d *Decoder) {
  22682. v, changed := f.DecMapInt8Float64V(*vp, checkNil, true, d)
  22683. if changed {
  22684. *vp = v
  22685. }
  22686. }
  22687. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, checkNil bool, canChange bool,
  22688. d *Decoder) (_ map[int8]float64, changed bool) {
  22689. dd := d.d
  22690. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22691. if checkNil && dd.TryDecodeAsNil() {
  22692. if v != nil {
  22693. changed = true
  22694. }
  22695. return nil, changed
  22696. }
  22697. containerLen := dd.ReadMapStart()
  22698. if canChange && v == nil {
  22699. if containerLen > 0 {
  22700. v = make(map[int8]float64, containerLen)
  22701. } else {
  22702. v = make(map[int8]float64) // supports indefinite-length, etc
  22703. }
  22704. changed = true
  22705. }
  22706. if containerLen > 0 {
  22707. for j := 0; j < containerLen; j++ {
  22708. mk := int8(dd.DecodeInt(8))
  22709. mv := v[mk]
  22710. mv = dd.DecodeFloat(false)
  22711. if v != nil {
  22712. v[mk] = mv
  22713. }
  22714. }
  22715. } else if containerLen < 0 {
  22716. for j := 0; !dd.CheckBreak(); j++ {
  22717. if j > 0 {
  22718. dd.ReadMapEntrySeparator()
  22719. }
  22720. mk := int8(dd.DecodeInt(8))
  22721. dd.ReadMapKVSeparator()
  22722. mv := v[mk]
  22723. mv = dd.DecodeFloat(false)
  22724. if v != nil {
  22725. v[mk] = mv
  22726. }
  22727. }
  22728. dd.ReadMapEnd()
  22729. }
  22730. return v, changed
  22731. }
  22732. func (f decFnInfo) fastpathDecMapInt8BoolR(rv reflect.Value) {
  22733. if rv.CanAddr() {
  22734. vp := rv.Addr().Interface().(*map[int8]bool)
  22735. v, changed := fastpathTV.DecMapInt8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  22736. if changed {
  22737. *vp = v
  22738. }
  22739. } else {
  22740. v := rv.Interface().(map[int8]bool)
  22741. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, f.d)
  22742. }
  22743. }
  22744. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, checkNil bool, d *Decoder) {
  22745. v, changed := f.DecMapInt8BoolV(*vp, checkNil, true, d)
  22746. if changed {
  22747. *vp = v
  22748. }
  22749. }
  22750. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, checkNil bool, canChange bool,
  22751. d *Decoder) (_ map[int8]bool, changed bool) {
  22752. dd := d.d
  22753. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22754. if checkNil && dd.TryDecodeAsNil() {
  22755. if v != nil {
  22756. changed = true
  22757. }
  22758. return nil, changed
  22759. }
  22760. containerLen := dd.ReadMapStart()
  22761. if canChange && v == nil {
  22762. if containerLen > 0 {
  22763. v = make(map[int8]bool, containerLen)
  22764. } else {
  22765. v = make(map[int8]bool) // supports indefinite-length, etc
  22766. }
  22767. changed = true
  22768. }
  22769. if containerLen > 0 {
  22770. for j := 0; j < containerLen; j++ {
  22771. mk := int8(dd.DecodeInt(8))
  22772. mv := v[mk]
  22773. mv = dd.DecodeBool()
  22774. if v != nil {
  22775. v[mk] = mv
  22776. }
  22777. }
  22778. } else if containerLen < 0 {
  22779. for j := 0; !dd.CheckBreak(); j++ {
  22780. if j > 0 {
  22781. dd.ReadMapEntrySeparator()
  22782. }
  22783. mk := int8(dd.DecodeInt(8))
  22784. dd.ReadMapKVSeparator()
  22785. mv := v[mk]
  22786. mv = dd.DecodeBool()
  22787. if v != nil {
  22788. v[mk] = mv
  22789. }
  22790. }
  22791. dd.ReadMapEnd()
  22792. }
  22793. return v, changed
  22794. }
  22795. func (f decFnInfo) fastpathDecMapInt16IntfR(rv reflect.Value) {
  22796. if rv.CanAddr() {
  22797. vp := rv.Addr().Interface().(*map[int16]interface{})
  22798. v, changed := fastpathTV.DecMapInt16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  22799. if changed {
  22800. *vp = v
  22801. }
  22802. } else {
  22803. v := rv.Interface().(map[int16]interface{})
  22804. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, f.d)
  22805. }
  22806. }
  22807. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, checkNil bool, d *Decoder) {
  22808. v, changed := f.DecMapInt16IntfV(*vp, checkNil, true, d)
  22809. if changed {
  22810. *vp = v
  22811. }
  22812. }
  22813. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, checkNil bool, canChange bool,
  22814. d *Decoder) (_ map[int16]interface{}, changed bool) {
  22815. dd := d.d
  22816. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22817. if checkNil && dd.TryDecodeAsNil() {
  22818. if v != nil {
  22819. changed = true
  22820. }
  22821. return nil, changed
  22822. }
  22823. containerLen := dd.ReadMapStart()
  22824. if canChange && v == nil {
  22825. if containerLen > 0 {
  22826. v = make(map[int16]interface{}, containerLen)
  22827. } else {
  22828. v = make(map[int16]interface{}) // supports indefinite-length, etc
  22829. }
  22830. changed = true
  22831. }
  22832. if containerLen > 0 {
  22833. for j := 0; j < containerLen; j++ {
  22834. mk := int16(dd.DecodeInt(16))
  22835. mv := v[mk]
  22836. d.decode(&mv)
  22837. if v != nil {
  22838. v[mk] = mv
  22839. }
  22840. }
  22841. } else if containerLen < 0 {
  22842. for j := 0; !dd.CheckBreak(); j++ {
  22843. if j > 0 {
  22844. dd.ReadMapEntrySeparator()
  22845. }
  22846. mk := int16(dd.DecodeInt(16))
  22847. dd.ReadMapKVSeparator()
  22848. mv := v[mk]
  22849. d.decode(&mv)
  22850. if v != nil {
  22851. v[mk] = mv
  22852. }
  22853. }
  22854. dd.ReadMapEnd()
  22855. }
  22856. return v, changed
  22857. }
  22858. func (f decFnInfo) fastpathDecMapInt16StringR(rv reflect.Value) {
  22859. if rv.CanAddr() {
  22860. vp := rv.Addr().Interface().(*map[int16]string)
  22861. v, changed := fastpathTV.DecMapInt16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  22862. if changed {
  22863. *vp = v
  22864. }
  22865. } else {
  22866. v := rv.Interface().(map[int16]string)
  22867. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, f.d)
  22868. }
  22869. }
  22870. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, checkNil bool, d *Decoder) {
  22871. v, changed := f.DecMapInt16StringV(*vp, checkNil, true, d)
  22872. if changed {
  22873. *vp = v
  22874. }
  22875. }
  22876. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, checkNil bool, canChange bool,
  22877. d *Decoder) (_ map[int16]string, changed bool) {
  22878. dd := d.d
  22879. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22880. if checkNil && dd.TryDecodeAsNil() {
  22881. if v != nil {
  22882. changed = true
  22883. }
  22884. return nil, changed
  22885. }
  22886. containerLen := dd.ReadMapStart()
  22887. if canChange && v == nil {
  22888. if containerLen > 0 {
  22889. v = make(map[int16]string, containerLen)
  22890. } else {
  22891. v = make(map[int16]string) // supports indefinite-length, etc
  22892. }
  22893. changed = true
  22894. }
  22895. if containerLen > 0 {
  22896. for j := 0; j < containerLen; j++ {
  22897. mk := int16(dd.DecodeInt(16))
  22898. mv := v[mk]
  22899. mv = dd.DecodeString()
  22900. if v != nil {
  22901. v[mk] = mv
  22902. }
  22903. }
  22904. } else if containerLen < 0 {
  22905. for j := 0; !dd.CheckBreak(); j++ {
  22906. if j > 0 {
  22907. dd.ReadMapEntrySeparator()
  22908. }
  22909. mk := int16(dd.DecodeInt(16))
  22910. dd.ReadMapKVSeparator()
  22911. mv := v[mk]
  22912. mv = dd.DecodeString()
  22913. if v != nil {
  22914. v[mk] = mv
  22915. }
  22916. }
  22917. dd.ReadMapEnd()
  22918. }
  22919. return v, changed
  22920. }
  22921. func (f decFnInfo) fastpathDecMapInt16UintR(rv reflect.Value) {
  22922. if rv.CanAddr() {
  22923. vp := rv.Addr().Interface().(*map[int16]uint)
  22924. v, changed := fastpathTV.DecMapInt16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  22925. if changed {
  22926. *vp = v
  22927. }
  22928. } else {
  22929. v := rv.Interface().(map[int16]uint)
  22930. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, f.d)
  22931. }
  22932. }
  22933. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, checkNil bool, d *Decoder) {
  22934. v, changed := f.DecMapInt16UintV(*vp, checkNil, true, d)
  22935. if changed {
  22936. *vp = v
  22937. }
  22938. }
  22939. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, checkNil bool, canChange bool,
  22940. d *Decoder) (_ map[int16]uint, changed bool) {
  22941. dd := d.d
  22942. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  22943. if checkNil && dd.TryDecodeAsNil() {
  22944. if v != nil {
  22945. changed = true
  22946. }
  22947. return nil, changed
  22948. }
  22949. containerLen := dd.ReadMapStart()
  22950. if canChange && v == nil {
  22951. if containerLen > 0 {
  22952. v = make(map[int16]uint, containerLen)
  22953. } else {
  22954. v = make(map[int16]uint) // supports indefinite-length, etc
  22955. }
  22956. changed = true
  22957. }
  22958. if containerLen > 0 {
  22959. for j := 0; j < containerLen; j++ {
  22960. mk := int16(dd.DecodeInt(16))
  22961. mv := v[mk]
  22962. mv = uint(dd.DecodeUint(uintBitsize))
  22963. if v != nil {
  22964. v[mk] = mv
  22965. }
  22966. }
  22967. } else if containerLen < 0 {
  22968. for j := 0; !dd.CheckBreak(); j++ {
  22969. if j > 0 {
  22970. dd.ReadMapEntrySeparator()
  22971. }
  22972. mk := int16(dd.DecodeInt(16))
  22973. dd.ReadMapKVSeparator()
  22974. mv := v[mk]
  22975. mv = uint(dd.DecodeUint(uintBitsize))
  22976. if v != nil {
  22977. v[mk] = mv
  22978. }
  22979. }
  22980. dd.ReadMapEnd()
  22981. }
  22982. return v, changed
  22983. }
  22984. func (f decFnInfo) fastpathDecMapInt16Uint8R(rv reflect.Value) {
  22985. if rv.CanAddr() {
  22986. vp := rv.Addr().Interface().(*map[int16]uint8)
  22987. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  22988. if changed {
  22989. *vp = v
  22990. }
  22991. } else {
  22992. v := rv.Interface().(map[int16]uint8)
  22993. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  22994. }
  22995. }
  22996. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, checkNil bool, d *Decoder) {
  22997. v, changed := f.DecMapInt16Uint8V(*vp, checkNil, true, d)
  22998. if changed {
  22999. *vp = v
  23000. }
  23001. }
  23002. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, checkNil bool, canChange bool,
  23003. d *Decoder) (_ map[int16]uint8, changed bool) {
  23004. dd := d.d
  23005. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23006. if checkNil && dd.TryDecodeAsNil() {
  23007. if v != nil {
  23008. changed = true
  23009. }
  23010. return nil, changed
  23011. }
  23012. containerLen := dd.ReadMapStart()
  23013. if canChange && v == nil {
  23014. if containerLen > 0 {
  23015. v = make(map[int16]uint8, containerLen)
  23016. } else {
  23017. v = make(map[int16]uint8) // supports indefinite-length, etc
  23018. }
  23019. changed = true
  23020. }
  23021. if containerLen > 0 {
  23022. for j := 0; j < containerLen; j++ {
  23023. mk := int16(dd.DecodeInt(16))
  23024. mv := v[mk]
  23025. mv = uint8(dd.DecodeUint(8))
  23026. if v != nil {
  23027. v[mk] = mv
  23028. }
  23029. }
  23030. } else if containerLen < 0 {
  23031. for j := 0; !dd.CheckBreak(); j++ {
  23032. if j > 0 {
  23033. dd.ReadMapEntrySeparator()
  23034. }
  23035. mk := int16(dd.DecodeInt(16))
  23036. dd.ReadMapKVSeparator()
  23037. mv := v[mk]
  23038. mv = uint8(dd.DecodeUint(8))
  23039. if v != nil {
  23040. v[mk] = mv
  23041. }
  23042. }
  23043. dd.ReadMapEnd()
  23044. }
  23045. return v, changed
  23046. }
  23047. func (f decFnInfo) fastpathDecMapInt16Uint16R(rv reflect.Value) {
  23048. if rv.CanAddr() {
  23049. vp := rv.Addr().Interface().(*map[int16]uint16)
  23050. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  23051. if changed {
  23052. *vp = v
  23053. }
  23054. } else {
  23055. v := rv.Interface().(map[int16]uint16)
  23056. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  23057. }
  23058. }
  23059. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, checkNil bool, d *Decoder) {
  23060. v, changed := f.DecMapInt16Uint16V(*vp, checkNil, true, d)
  23061. if changed {
  23062. *vp = v
  23063. }
  23064. }
  23065. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, checkNil bool, canChange bool,
  23066. d *Decoder) (_ map[int16]uint16, changed bool) {
  23067. dd := d.d
  23068. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23069. if checkNil && dd.TryDecodeAsNil() {
  23070. if v != nil {
  23071. changed = true
  23072. }
  23073. return nil, changed
  23074. }
  23075. containerLen := dd.ReadMapStart()
  23076. if canChange && v == nil {
  23077. if containerLen > 0 {
  23078. v = make(map[int16]uint16, containerLen)
  23079. } else {
  23080. v = make(map[int16]uint16) // supports indefinite-length, etc
  23081. }
  23082. changed = true
  23083. }
  23084. if containerLen > 0 {
  23085. for j := 0; j < containerLen; j++ {
  23086. mk := int16(dd.DecodeInt(16))
  23087. mv := v[mk]
  23088. mv = uint16(dd.DecodeUint(16))
  23089. if v != nil {
  23090. v[mk] = mv
  23091. }
  23092. }
  23093. } else if containerLen < 0 {
  23094. for j := 0; !dd.CheckBreak(); j++ {
  23095. if j > 0 {
  23096. dd.ReadMapEntrySeparator()
  23097. }
  23098. mk := int16(dd.DecodeInt(16))
  23099. dd.ReadMapKVSeparator()
  23100. mv := v[mk]
  23101. mv = uint16(dd.DecodeUint(16))
  23102. if v != nil {
  23103. v[mk] = mv
  23104. }
  23105. }
  23106. dd.ReadMapEnd()
  23107. }
  23108. return v, changed
  23109. }
  23110. func (f decFnInfo) fastpathDecMapInt16Uint32R(rv reflect.Value) {
  23111. if rv.CanAddr() {
  23112. vp := rv.Addr().Interface().(*map[int16]uint32)
  23113. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  23114. if changed {
  23115. *vp = v
  23116. }
  23117. } else {
  23118. v := rv.Interface().(map[int16]uint32)
  23119. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  23120. }
  23121. }
  23122. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, checkNil bool, d *Decoder) {
  23123. v, changed := f.DecMapInt16Uint32V(*vp, checkNil, true, d)
  23124. if changed {
  23125. *vp = v
  23126. }
  23127. }
  23128. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, checkNil bool, canChange bool,
  23129. d *Decoder) (_ map[int16]uint32, changed bool) {
  23130. dd := d.d
  23131. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23132. if checkNil && dd.TryDecodeAsNil() {
  23133. if v != nil {
  23134. changed = true
  23135. }
  23136. return nil, changed
  23137. }
  23138. containerLen := dd.ReadMapStart()
  23139. if canChange && v == nil {
  23140. if containerLen > 0 {
  23141. v = make(map[int16]uint32, containerLen)
  23142. } else {
  23143. v = make(map[int16]uint32) // supports indefinite-length, etc
  23144. }
  23145. changed = true
  23146. }
  23147. if containerLen > 0 {
  23148. for j := 0; j < containerLen; j++ {
  23149. mk := int16(dd.DecodeInt(16))
  23150. mv := v[mk]
  23151. mv = uint32(dd.DecodeUint(32))
  23152. if v != nil {
  23153. v[mk] = mv
  23154. }
  23155. }
  23156. } else if containerLen < 0 {
  23157. for j := 0; !dd.CheckBreak(); j++ {
  23158. if j > 0 {
  23159. dd.ReadMapEntrySeparator()
  23160. }
  23161. mk := int16(dd.DecodeInt(16))
  23162. dd.ReadMapKVSeparator()
  23163. mv := v[mk]
  23164. mv = uint32(dd.DecodeUint(32))
  23165. if v != nil {
  23166. v[mk] = mv
  23167. }
  23168. }
  23169. dd.ReadMapEnd()
  23170. }
  23171. return v, changed
  23172. }
  23173. func (f decFnInfo) fastpathDecMapInt16Uint64R(rv reflect.Value) {
  23174. if rv.CanAddr() {
  23175. vp := rv.Addr().Interface().(*map[int16]uint64)
  23176. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  23177. if changed {
  23178. *vp = v
  23179. }
  23180. } else {
  23181. v := rv.Interface().(map[int16]uint64)
  23182. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  23183. }
  23184. }
  23185. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, checkNil bool, d *Decoder) {
  23186. v, changed := f.DecMapInt16Uint64V(*vp, checkNil, true, d)
  23187. if changed {
  23188. *vp = v
  23189. }
  23190. }
  23191. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, checkNil bool, canChange bool,
  23192. d *Decoder) (_ map[int16]uint64, changed bool) {
  23193. dd := d.d
  23194. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23195. if checkNil && dd.TryDecodeAsNil() {
  23196. if v != nil {
  23197. changed = true
  23198. }
  23199. return nil, changed
  23200. }
  23201. containerLen := dd.ReadMapStart()
  23202. if canChange && v == nil {
  23203. if containerLen > 0 {
  23204. v = make(map[int16]uint64, containerLen)
  23205. } else {
  23206. v = make(map[int16]uint64) // supports indefinite-length, etc
  23207. }
  23208. changed = true
  23209. }
  23210. if containerLen > 0 {
  23211. for j := 0; j < containerLen; j++ {
  23212. mk := int16(dd.DecodeInt(16))
  23213. mv := v[mk]
  23214. mv = dd.DecodeUint(64)
  23215. if v != nil {
  23216. v[mk] = mv
  23217. }
  23218. }
  23219. } else if containerLen < 0 {
  23220. for j := 0; !dd.CheckBreak(); j++ {
  23221. if j > 0 {
  23222. dd.ReadMapEntrySeparator()
  23223. }
  23224. mk := int16(dd.DecodeInt(16))
  23225. dd.ReadMapKVSeparator()
  23226. mv := v[mk]
  23227. mv = dd.DecodeUint(64)
  23228. if v != nil {
  23229. v[mk] = mv
  23230. }
  23231. }
  23232. dd.ReadMapEnd()
  23233. }
  23234. return v, changed
  23235. }
  23236. func (f decFnInfo) fastpathDecMapInt16IntR(rv reflect.Value) {
  23237. if rv.CanAddr() {
  23238. vp := rv.Addr().Interface().(*map[int16]int)
  23239. v, changed := fastpathTV.DecMapInt16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  23240. if changed {
  23241. *vp = v
  23242. }
  23243. } else {
  23244. v := rv.Interface().(map[int16]int)
  23245. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, f.d)
  23246. }
  23247. }
  23248. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, checkNil bool, d *Decoder) {
  23249. v, changed := f.DecMapInt16IntV(*vp, checkNil, true, d)
  23250. if changed {
  23251. *vp = v
  23252. }
  23253. }
  23254. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, checkNil bool, canChange bool,
  23255. d *Decoder) (_ map[int16]int, changed bool) {
  23256. dd := d.d
  23257. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23258. if checkNil && dd.TryDecodeAsNil() {
  23259. if v != nil {
  23260. changed = true
  23261. }
  23262. return nil, changed
  23263. }
  23264. containerLen := dd.ReadMapStart()
  23265. if canChange && v == nil {
  23266. if containerLen > 0 {
  23267. v = make(map[int16]int, containerLen)
  23268. } else {
  23269. v = make(map[int16]int) // supports indefinite-length, etc
  23270. }
  23271. changed = true
  23272. }
  23273. if containerLen > 0 {
  23274. for j := 0; j < containerLen; j++ {
  23275. mk := int16(dd.DecodeInt(16))
  23276. mv := v[mk]
  23277. mv = int(dd.DecodeInt(intBitsize))
  23278. if v != nil {
  23279. v[mk] = mv
  23280. }
  23281. }
  23282. } else if containerLen < 0 {
  23283. for j := 0; !dd.CheckBreak(); j++ {
  23284. if j > 0 {
  23285. dd.ReadMapEntrySeparator()
  23286. }
  23287. mk := int16(dd.DecodeInt(16))
  23288. dd.ReadMapKVSeparator()
  23289. mv := v[mk]
  23290. mv = int(dd.DecodeInt(intBitsize))
  23291. if v != nil {
  23292. v[mk] = mv
  23293. }
  23294. }
  23295. dd.ReadMapEnd()
  23296. }
  23297. return v, changed
  23298. }
  23299. func (f decFnInfo) fastpathDecMapInt16Int8R(rv reflect.Value) {
  23300. if rv.CanAddr() {
  23301. vp := rv.Addr().Interface().(*map[int16]int8)
  23302. v, changed := fastpathTV.DecMapInt16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  23303. if changed {
  23304. *vp = v
  23305. }
  23306. } else {
  23307. v := rv.Interface().(map[int16]int8)
  23308. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, f.d)
  23309. }
  23310. }
  23311. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, checkNil bool, d *Decoder) {
  23312. v, changed := f.DecMapInt16Int8V(*vp, checkNil, true, d)
  23313. if changed {
  23314. *vp = v
  23315. }
  23316. }
  23317. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, checkNil bool, canChange bool,
  23318. d *Decoder) (_ map[int16]int8, changed bool) {
  23319. dd := d.d
  23320. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23321. if checkNil && dd.TryDecodeAsNil() {
  23322. if v != nil {
  23323. changed = true
  23324. }
  23325. return nil, changed
  23326. }
  23327. containerLen := dd.ReadMapStart()
  23328. if canChange && v == nil {
  23329. if containerLen > 0 {
  23330. v = make(map[int16]int8, containerLen)
  23331. } else {
  23332. v = make(map[int16]int8) // supports indefinite-length, etc
  23333. }
  23334. changed = true
  23335. }
  23336. if containerLen > 0 {
  23337. for j := 0; j < containerLen; j++ {
  23338. mk := int16(dd.DecodeInt(16))
  23339. mv := v[mk]
  23340. mv = int8(dd.DecodeInt(8))
  23341. if v != nil {
  23342. v[mk] = mv
  23343. }
  23344. }
  23345. } else if containerLen < 0 {
  23346. for j := 0; !dd.CheckBreak(); j++ {
  23347. if j > 0 {
  23348. dd.ReadMapEntrySeparator()
  23349. }
  23350. mk := int16(dd.DecodeInt(16))
  23351. dd.ReadMapKVSeparator()
  23352. mv := v[mk]
  23353. mv = int8(dd.DecodeInt(8))
  23354. if v != nil {
  23355. v[mk] = mv
  23356. }
  23357. }
  23358. dd.ReadMapEnd()
  23359. }
  23360. return v, changed
  23361. }
  23362. func (f decFnInfo) fastpathDecMapInt16Int16R(rv reflect.Value) {
  23363. if rv.CanAddr() {
  23364. vp := rv.Addr().Interface().(*map[int16]int16)
  23365. v, changed := fastpathTV.DecMapInt16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  23366. if changed {
  23367. *vp = v
  23368. }
  23369. } else {
  23370. v := rv.Interface().(map[int16]int16)
  23371. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, f.d)
  23372. }
  23373. }
  23374. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, checkNil bool, d *Decoder) {
  23375. v, changed := f.DecMapInt16Int16V(*vp, checkNil, true, d)
  23376. if changed {
  23377. *vp = v
  23378. }
  23379. }
  23380. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, checkNil bool, canChange bool,
  23381. d *Decoder) (_ map[int16]int16, changed bool) {
  23382. dd := d.d
  23383. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23384. if checkNil && dd.TryDecodeAsNil() {
  23385. if v != nil {
  23386. changed = true
  23387. }
  23388. return nil, changed
  23389. }
  23390. containerLen := dd.ReadMapStart()
  23391. if canChange && v == nil {
  23392. if containerLen > 0 {
  23393. v = make(map[int16]int16, containerLen)
  23394. } else {
  23395. v = make(map[int16]int16) // supports indefinite-length, etc
  23396. }
  23397. changed = true
  23398. }
  23399. if containerLen > 0 {
  23400. for j := 0; j < containerLen; j++ {
  23401. mk := int16(dd.DecodeInt(16))
  23402. mv := v[mk]
  23403. mv = int16(dd.DecodeInt(16))
  23404. if v != nil {
  23405. v[mk] = mv
  23406. }
  23407. }
  23408. } else if containerLen < 0 {
  23409. for j := 0; !dd.CheckBreak(); j++ {
  23410. if j > 0 {
  23411. dd.ReadMapEntrySeparator()
  23412. }
  23413. mk := int16(dd.DecodeInt(16))
  23414. dd.ReadMapKVSeparator()
  23415. mv := v[mk]
  23416. mv = int16(dd.DecodeInt(16))
  23417. if v != nil {
  23418. v[mk] = mv
  23419. }
  23420. }
  23421. dd.ReadMapEnd()
  23422. }
  23423. return v, changed
  23424. }
  23425. func (f decFnInfo) fastpathDecMapInt16Int32R(rv reflect.Value) {
  23426. if rv.CanAddr() {
  23427. vp := rv.Addr().Interface().(*map[int16]int32)
  23428. v, changed := fastpathTV.DecMapInt16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  23429. if changed {
  23430. *vp = v
  23431. }
  23432. } else {
  23433. v := rv.Interface().(map[int16]int32)
  23434. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, f.d)
  23435. }
  23436. }
  23437. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, checkNil bool, d *Decoder) {
  23438. v, changed := f.DecMapInt16Int32V(*vp, checkNil, true, d)
  23439. if changed {
  23440. *vp = v
  23441. }
  23442. }
  23443. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, checkNil bool, canChange bool,
  23444. d *Decoder) (_ map[int16]int32, changed bool) {
  23445. dd := d.d
  23446. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23447. if checkNil && dd.TryDecodeAsNil() {
  23448. if v != nil {
  23449. changed = true
  23450. }
  23451. return nil, changed
  23452. }
  23453. containerLen := dd.ReadMapStart()
  23454. if canChange && v == nil {
  23455. if containerLen > 0 {
  23456. v = make(map[int16]int32, containerLen)
  23457. } else {
  23458. v = make(map[int16]int32) // supports indefinite-length, etc
  23459. }
  23460. changed = true
  23461. }
  23462. if containerLen > 0 {
  23463. for j := 0; j < containerLen; j++ {
  23464. mk := int16(dd.DecodeInt(16))
  23465. mv := v[mk]
  23466. mv = int32(dd.DecodeInt(32))
  23467. if v != nil {
  23468. v[mk] = mv
  23469. }
  23470. }
  23471. } else if containerLen < 0 {
  23472. for j := 0; !dd.CheckBreak(); j++ {
  23473. if j > 0 {
  23474. dd.ReadMapEntrySeparator()
  23475. }
  23476. mk := int16(dd.DecodeInt(16))
  23477. dd.ReadMapKVSeparator()
  23478. mv := v[mk]
  23479. mv = int32(dd.DecodeInt(32))
  23480. if v != nil {
  23481. v[mk] = mv
  23482. }
  23483. }
  23484. dd.ReadMapEnd()
  23485. }
  23486. return v, changed
  23487. }
  23488. func (f decFnInfo) fastpathDecMapInt16Int64R(rv reflect.Value) {
  23489. if rv.CanAddr() {
  23490. vp := rv.Addr().Interface().(*map[int16]int64)
  23491. v, changed := fastpathTV.DecMapInt16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  23492. if changed {
  23493. *vp = v
  23494. }
  23495. } else {
  23496. v := rv.Interface().(map[int16]int64)
  23497. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, f.d)
  23498. }
  23499. }
  23500. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, checkNil bool, d *Decoder) {
  23501. v, changed := f.DecMapInt16Int64V(*vp, checkNil, true, d)
  23502. if changed {
  23503. *vp = v
  23504. }
  23505. }
  23506. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, checkNil bool, canChange bool,
  23507. d *Decoder) (_ map[int16]int64, changed bool) {
  23508. dd := d.d
  23509. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23510. if checkNil && dd.TryDecodeAsNil() {
  23511. if v != nil {
  23512. changed = true
  23513. }
  23514. return nil, changed
  23515. }
  23516. containerLen := dd.ReadMapStart()
  23517. if canChange && v == nil {
  23518. if containerLen > 0 {
  23519. v = make(map[int16]int64, containerLen)
  23520. } else {
  23521. v = make(map[int16]int64) // supports indefinite-length, etc
  23522. }
  23523. changed = true
  23524. }
  23525. if containerLen > 0 {
  23526. for j := 0; j < containerLen; j++ {
  23527. mk := int16(dd.DecodeInt(16))
  23528. mv := v[mk]
  23529. mv = dd.DecodeInt(64)
  23530. if v != nil {
  23531. v[mk] = mv
  23532. }
  23533. }
  23534. } else if containerLen < 0 {
  23535. for j := 0; !dd.CheckBreak(); j++ {
  23536. if j > 0 {
  23537. dd.ReadMapEntrySeparator()
  23538. }
  23539. mk := int16(dd.DecodeInt(16))
  23540. dd.ReadMapKVSeparator()
  23541. mv := v[mk]
  23542. mv = dd.DecodeInt(64)
  23543. if v != nil {
  23544. v[mk] = mv
  23545. }
  23546. }
  23547. dd.ReadMapEnd()
  23548. }
  23549. return v, changed
  23550. }
  23551. func (f decFnInfo) fastpathDecMapInt16Float32R(rv reflect.Value) {
  23552. if rv.CanAddr() {
  23553. vp := rv.Addr().Interface().(*map[int16]float32)
  23554. v, changed := fastpathTV.DecMapInt16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  23555. if changed {
  23556. *vp = v
  23557. }
  23558. } else {
  23559. v := rv.Interface().(map[int16]float32)
  23560. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, f.d)
  23561. }
  23562. }
  23563. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, checkNil bool, d *Decoder) {
  23564. v, changed := f.DecMapInt16Float32V(*vp, checkNil, true, d)
  23565. if changed {
  23566. *vp = v
  23567. }
  23568. }
  23569. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, checkNil bool, canChange bool,
  23570. d *Decoder) (_ map[int16]float32, changed bool) {
  23571. dd := d.d
  23572. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23573. if checkNil && dd.TryDecodeAsNil() {
  23574. if v != nil {
  23575. changed = true
  23576. }
  23577. return nil, changed
  23578. }
  23579. containerLen := dd.ReadMapStart()
  23580. if canChange && v == nil {
  23581. if containerLen > 0 {
  23582. v = make(map[int16]float32, containerLen)
  23583. } else {
  23584. v = make(map[int16]float32) // supports indefinite-length, etc
  23585. }
  23586. changed = true
  23587. }
  23588. if containerLen > 0 {
  23589. for j := 0; j < containerLen; j++ {
  23590. mk := int16(dd.DecodeInt(16))
  23591. mv := v[mk]
  23592. mv = float32(dd.DecodeFloat(true))
  23593. if v != nil {
  23594. v[mk] = mv
  23595. }
  23596. }
  23597. } else if containerLen < 0 {
  23598. for j := 0; !dd.CheckBreak(); j++ {
  23599. if j > 0 {
  23600. dd.ReadMapEntrySeparator()
  23601. }
  23602. mk := int16(dd.DecodeInt(16))
  23603. dd.ReadMapKVSeparator()
  23604. mv := v[mk]
  23605. mv = float32(dd.DecodeFloat(true))
  23606. if v != nil {
  23607. v[mk] = mv
  23608. }
  23609. }
  23610. dd.ReadMapEnd()
  23611. }
  23612. return v, changed
  23613. }
  23614. func (f decFnInfo) fastpathDecMapInt16Float64R(rv reflect.Value) {
  23615. if rv.CanAddr() {
  23616. vp := rv.Addr().Interface().(*map[int16]float64)
  23617. v, changed := fastpathTV.DecMapInt16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  23618. if changed {
  23619. *vp = v
  23620. }
  23621. } else {
  23622. v := rv.Interface().(map[int16]float64)
  23623. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, f.d)
  23624. }
  23625. }
  23626. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, checkNil bool, d *Decoder) {
  23627. v, changed := f.DecMapInt16Float64V(*vp, checkNil, true, d)
  23628. if changed {
  23629. *vp = v
  23630. }
  23631. }
  23632. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, checkNil bool, canChange bool,
  23633. d *Decoder) (_ map[int16]float64, changed bool) {
  23634. dd := d.d
  23635. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23636. if checkNil && dd.TryDecodeAsNil() {
  23637. if v != nil {
  23638. changed = true
  23639. }
  23640. return nil, changed
  23641. }
  23642. containerLen := dd.ReadMapStart()
  23643. if canChange && v == nil {
  23644. if containerLen > 0 {
  23645. v = make(map[int16]float64, containerLen)
  23646. } else {
  23647. v = make(map[int16]float64) // supports indefinite-length, etc
  23648. }
  23649. changed = true
  23650. }
  23651. if containerLen > 0 {
  23652. for j := 0; j < containerLen; j++ {
  23653. mk := int16(dd.DecodeInt(16))
  23654. mv := v[mk]
  23655. mv = dd.DecodeFloat(false)
  23656. if v != nil {
  23657. v[mk] = mv
  23658. }
  23659. }
  23660. } else if containerLen < 0 {
  23661. for j := 0; !dd.CheckBreak(); j++ {
  23662. if j > 0 {
  23663. dd.ReadMapEntrySeparator()
  23664. }
  23665. mk := int16(dd.DecodeInt(16))
  23666. dd.ReadMapKVSeparator()
  23667. mv := v[mk]
  23668. mv = dd.DecodeFloat(false)
  23669. if v != nil {
  23670. v[mk] = mv
  23671. }
  23672. }
  23673. dd.ReadMapEnd()
  23674. }
  23675. return v, changed
  23676. }
  23677. func (f decFnInfo) fastpathDecMapInt16BoolR(rv reflect.Value) {
  23678. if rv.CanAddr() {
  23679. vp := rv.Addr().Interface().(*map[int16]bool)
  23680. v, changed := fastpathTV.DecMapInt16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  23681. if changed {
  23682. *vp = v
  23683. }
  23684. } else {
  23685. v := rv.Interface().(map[int16]bool)
  23686. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, f.d)
  23687. }
  23688. }
  23689. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, checkNil bool, d *Decoder) {
  23690. v, changed := f.DecMapInt16BoolV(*vp, checkNil, true, d)
  23691. if changed {
  23692. *vp = v
  23693. }
  23694. }
  23695. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, checkNil bool, canChange bool,
  23696. d *Decoder) (_ map[int16]bool, changed bool) {
  23697. dd := d.d
  23698. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23699. if checkNil && dd.TryDecodeAsNil() {
  23700. if v != nil {
  23701. changed = true
  23702. }
  23703. return nil, changed
  23704. }
  23705. containerLen := dd.ReadMapStart()
  23706. if canChange && v == nil {
  23707. if containerLen > 0 {
  23708. v = make(map[int16]bool, containerLen)
  23709. } else {
  23710. v = make(map[int16]bool) // supports indefinite-length, etc
  23711. }
  23712. changed = true
  23713. }
  23714. if containerLen > 0 {
  23715. for j := 0; j < containerLen; j++ {
  23716. mk := int16(dd.DecodeInt(16))
  23717. mv := v[mk]
  23718. mv = dd.DecodeBool()
  23719. if v != nil {
  23720. v[mk] = mv
  23721. }
  23722. }
  23723. } else if containerLen < 0 {
  23724. for j := 0; !dd.CheckBreak(); j++ {
  23725. if j > 0 {
  23726. dd.ReadMapEntrySeparator()
  23727. }
  23728. mk := int16(dd.DecodeInt(16))
  23729. dd.ReadMapKVSeparator()
  23730. mv := v[mk]
  23731. mv = dd.DecodeBool()
  23732. if v != nil {
  23733. v[mk] = mv
  23734. }
  23735. }
  23736. dd.ReadMapEnd()
  23737. }
  23738. return v, changed
  23739. }
  23740. func (f decFnInfo) fastpathDecMapInt32IntfR(rv reflect.Value) {
  23741. if rv.CanAddr() {
  23742. vp := rv.Addr().Interface().(*map[int32]interface{})
  23743. v, changed := fastpathTV.DecMapInt32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  23744. if changed {
  23745. *vp = v
  23746. }
  23747. } else {
  23748. v := rv.Interface().(map[int32]interface{})
  23749. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, f.d)
  23750. }
  23751. }
  23752. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, checkNil bool, d *Decoder) {
  23753. v, changed := f.DecMapInt32IntfV(*vp, checkNil, true, d)
  23754. if changed {
  23755. *vp = v
  23756. }
  23757. }
  23758. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, checkNil bool, canChange bool,
  23759. d *Decoder) (_ map[int32]interface{}, changed bool) {
  23760. dd := d.d
  23761. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23762. if checkNil && dd.TryDecodeAsNil() {
  23763. if v != nil {
  23764. changed = true
  23765. }
  23766. return nil, changed
  23767. }
  23768. containerLen := dd.ReadMapStart()
  23769. if canChange && v == nil {
  23770. if containerLen > 0 {
  23771. v = make(map[int32]interface{}, containerLen)
  23772. } else {
  23773. v = make(map[int32]interface{}) // supports indefinite-length, etc
  23774. }
  23775. changed = true
  23776. }
  23777. if containerLen > 0 {
  23778. for j := 0; j < containerLen; j++ {
  23779. mk := int32(dd.DecodeInt(32))
  23780. mv := v[mk]
  23781. d.decode(&mv)
  23782. if v != nil {
  23783. v[mk] = mv
  23784. }
  23785. }
  23786. } else if containerLen < 0 {
  23787. for j := 0; !dd.CheckBreak(); j++ {
  23788. if j > 0 {
  23789. dd.ReadMapEntrySeparator()
  23790. }
  23791. mk := int32(dd.DecodeInt(32))
  23792. dd.ReadMapKVSeparator()
  23793. mv := v[mk]
  23794. d.decode(&mv)
  23795. if v != nil {
  23796. v[mk] = mv
  23797. }
  23798. }
  23799. dd.ReadMapEnd()
  23800. }
  23801. return v, changed
  23802. }
  23803. func (f decFnInfo) fastpathDecMapInt32StringR(rv reflect.Value) {
  23804. if rv.CanAddr() {
  23805. vp := rv.Addr().Interface().(*map[int32]string)
  23806. v, changed := fastpathTV.DecMapInt32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  23807. if changed {
  23808. *vp = v
  23809. }
  23810. } else {
  23811. v := rv.Interface().(map[int32]string)
  23812. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, f.d)
  23813. }
  23814. }
  23815. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, checkNil bool, d *Decoder) {
  23816. v, changed := f.DecMapInt32StringV(*vp, checkNil, true, d)
  23817. if changed {
  23818. *vp = v
  23819. }
  23820. }
  23821. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, checkNil bool, canChange bool,
  23822. d *Decoder) (_ map[int32]string, changed bool) {
  23823. dd := d.d
  23824. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23825. if checkNil && dd.TryDecodeAsNil() {
  23826. if v != nil {
  23827. changed = true
  23828. }
  23829. return nil, changed
  23830. }
  23831. containerLen := dd.ReadMapStart()
  23832. if canChange && v == nil {
  23833. if containerLen > 0 {
  23834. v = make(map[int32]string, containerLen)
  23835. } else {
  23836. v = make(map[int32]string) // supports indefinite-length, etc
  23837. }
  23838. changed = true
  23839. }
  23840. if containerLen > 0 {
  23841. for j := 0; j < containerLen; j++ {
  23842. mk := int32(dd.DecodeInt(32))
  23843. mv := v[mk]
  23844. mv = dd.DecodeString()
  23845. if v != nil {
  23846. v[mk] = mv
  23847. }
  23848. }
  23849. } else if containerLen < 0 {
  23850. for j := 0; !dd.CheckBreak(); j++ {
  23851. if j > 0 {
  23852. dd.ReadMapEntrySeparator()
  23853. }
  23854. mk := int32(dd.DecodeInt(32))
  23855. dd.ReadMapKVSeparator()
  23856. mv := v[mk]
  23857. mv = dd.DecodeString()
  23858. if v != nil {
  23859. v[mk] = mv
  23860. }
  23861. }
  23862. dd.ReadMapEnd()
  23863. }
  23864. return v, changed
  23865. }
  23866. func (f decFnInfo) fastpathDecMapInt32UintR(rv reflect.Value) {
  23867. if rv.CanAddr() {
  23868. vp := rv.Addr().Interface().(*map[int32]uint)
  23869. v, changed := fastpathTV.DecMapInt32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  23870. if changed {
  23871. *vp = v
  23872. }
  23873. } else {
  23874. v := rv.Interface().(map[int32]uint)
  23875. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, f.d)
  23876. }
  23877. }
  23878. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, checkNil bool, d *Decoder) {
  23879. v, changed := f.DecMapInt32UintV(*vp, checkNil, true, d)
  23880. if changed {
  23881. *vp = v
  23882. }
  23883. }
  23884. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, checkNil bool, canChange bool,
  23885. d *Decoder) (_ map[int32]uint, changed bool) {
  23886. dd := d.d
  23887. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23888. if checkNil && dd.TryDecodeAsNil() {
  23889. if v != nil {
  23890. changed = true
  23891. }
  23892. return nil, changed
  23893. }
  23894. containerLen := dd.ReadMapStart()
  23895. if canChange && v == nil {
  23896. if containerLen > 0 {
  23897. v = make(map[int32]uint, containerLen)
  23898. } else {
  23899. v = make(map[int32]uint) // supports indefinite-length, etc
  23900. }
  23901. changed = true
  23902. }
  23903. if containerLen > 0 {
  23904. for j := 0; j < containerLen; j++ {
  23905. mk := int32(dd.DecodeInt(32))
  23906. mv := v[mk]
  23907. mv = uint(dd.DecodeUint(uintBitsize))
  23908. if v != nil {
  23909. v[mk] = mv
  23910. }
  23911. }
  23912. } else if containerLen < 0 {
  23913. for j := 0; !dd.CheckBreak(); j++ {
  23914. if j > 0 {
  23915. dd.ReadMapEntrySeparator()
  23916. }
  23917. mk := int32(dd.DecodeInt(32))
  23918. dd.ReadMapKVSeparator()
  23919. mv := v[mk]
  23920. mv = uint(dd.DecodeUint(uintBitsize))
  23921. if v != nil {
  23922. v[mk] = mv
  23923. }
  23924. }
  23925. dd.ReadMapEnd()
  23926. }
  23927. return v, changed
  23928. }
  23929. func (f decFnInfo) fastpathDecMapInt32Uint8R(rv reflect.Value) {
  23930. if rv.CanAddr() {
  23931. vp := rv.Addr().Interface().(*map[int32]uint8)
  23932. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  23933. if changed {
  23934. *vp = v
  23935. }
  23936. } else {
  23937. v := rv.Interface().(map[int32]uint8)
  23938. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  23939. }
  23940. }
  23941. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, checkNil bool, d *Decoder) {
  23942. v, changed := f.DecMapInt32Uint8V(*vp, checkNil, true, d)
  23943. if changed {
  23944. *vp = v
  23945. }
  23946. }
  23947. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, checkNil bool, canChange bool,
  23948. d *Decoder) (_ map[int32]uint8, changed bool) {
  23949. dd := d.d
  23950. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  23951. if checkNil && dd.TryDecodeAsNil() {
  23952. if v != nil {
  23953. changed = true
  23954. }
  23955. return nil, changed
  23956. }
  23957. containerLen := dd.ReadMapStart()
  23958. if canChange && v == nil {
  23959. if containerLen > 0 {
  23960. v = make(map[int32]uint8, containerLen)
  23961. } else {
  23962. v = make(map[int32]uint8) // supports indefinite-length, etc
  23963. }
  23964. changed = true
  23965. }
  23966. if containerLen > 0 {
  23967. for j := 0; j < containerLen; j++ {
  23968. mk := int32(dd.DecodeInt(32))
  23969. mv := v[mk]
  23970. mv = uint8(dd.DecodeUint(8))
  23971. if v != nil {
  23972. v[mk] = mv
  23973. }
  23974. }
  23975. } else if containerLen < 0 {
  23976. for j := 0; !dd.CheckBreak(); j++ {
  23977. if j > 0 {
  23978. dd.ReadMapEntrySeparator()
  23979. }
  23980. mk := int32(dd.DecodeInt(32))
  23981. dd.ReadMapKVSeparator()
  23982. mv := v[mk]
  23983. mv = uint8(dd.DecodeUint(8))
  23984. if v != nil {
  23985. v[mk] = mv
  23986. }
  23987. }
  23988. dd.ReadMapEnd()
  23989. }
  23990. return v, changed
  23991. }
  23992. func (f decFnInfo) fastpathDecMapInt32Uint16R(rv reflect.Value) {
  23993. if rv.CanAddr() {
  23994. vp := rv.Addr().Interface().(*map[int32]uint16)
  23995. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  23996. if changed {
  23997. *vp = v
  23998. }
  23999. } else {
  24000. v := rv.Interface().(map[int32]uint16)
  24001. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  24002. }
  24003. }
  24004. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, checkNil bool, d *Decoder) {
  24005. v, changed := f.DecMapInt32Uint16V(*vp, checkNil, true, d)
  24006. if changed {
  24007. *vp = v
  24008. }
  24009. }
  24010. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, checkNil bool, canChange bool,
  24011. d *Decoder) (_ map[int32]uint16, changed bool) {
  24012. dd := d.d
  24013. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24014. if checkNil && dd.TryDecodeAsNil() {
  24015. if v != nil {
  24016. changed = true
  24017. }
  24018. return nil, changed
  24019. }
  24020. containerLen := dd.ReadMapStart()
  24021. if canChange && v == nil {
  24022. if containerLen > 0 {
  24023. v = make(map[int32]uint16, containerLen)
  24024. } else {
  24025. v = make(map[int32]uint16) // supports indefinite-length, etc
  24026. }
  24027. changed = true
  24028. }
  24029. if containerLen > 0 {
  24030. for j := 0; j < containerLen; j++ {
  24031. mk := int32(dd.DecodeInt(32))
  24032. mv := v[mk]
  24033. mv = uint16(dd.DecodeUint(16))
  24034. if v != nil {
  24035. v[mk] = mv
  24036. }
  24037. }
  24038. } else if containerLen < 0 {
  24039. for j := 0; !dd.CheckBreak(); j++ {
  24040. if j > 0 {
  24041. dd.ReadMapEntrySeparator()
  24042. }
  24043. mk := int32(dd.DecodeInt(32))
  24044. dd.ReadMapKVSeparator()
  24045. mv := v[mk]
  24046. mv = uint16(dd.DecodeUint(16))
  24047. if v != nil {
  24048. v[mk] = mv
  24049. }
  24050. }
  24051. dd.ReadMapEnd()
  24052. }
  24053. return v, changed
  24054. }
  24055. func (f decFnInfo) fastpathDecMapInt32Uint32R(rv reflect.Value) {
  24056. if rv.CanAddr() {
  24057. vp := rv.Addr().Interface().(*map[int32]uint32)
  24058. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  24059. if changed {
  24060. *vp = v
  24061. }
  24062. } else {
  24063. v := rv.Interface().(map[int32]uint32)
  24064. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  24065. }
  24066. }
  24067. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, checkNil bool, d *Decoder) {
  24068. v, changed := f.DecMapInt32Uint32V(*vp, checkNil, true, d)
  24069. if changed {
  24070. *vp = v
  24071. }
  24072. }
  24073. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, checkNil bool, canChange bool,
  24074. d *Decoder) (_ map[int32]uint32, changed bool) {
  24075. dd := d.d
  24076. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24077. if checkNil && dd.TryDecodeAsNil() {
  24078. if v != nil {
  24079. changed = true
  24080. }
  24081. return nil, changed
  24082. }
  24083. containerLen := dd.ReadMapStart()
  24084. if canChange && v == nil {
  24085. if containerLen > 0 {
  24086. v = make(map[int32]uint32, containerLen)
  24087. } else {
  24088. v = make(map[int32]uint32) // supports indefinite-length, etc
  24089. }
  24090. changed = true
  24091. }
  24092. if containerLen > 0 {
  24093. for j := 0; j < containerLen; j++ {
  24094. mk := int32(dd.DecodeInt(32))
  24095. mv := v[mk]
  24096. mv = uint32(dd.DecodeUint(32))
  24097. if v != nil {
  24098. v[mk] = mv
  24099. }
  24100. }
  24101. } else if containerLen < 0 {
  24102. for j := 0; !dd.CheckBreak(); j++ {
  24103. if j > 0 {
  24104. dd.ReadMapEntrySeparator()
  24105. }
  24106. mk := int32(dd.DecodeInt(32))
  24107. dd.ReadMapKVSeparator()
  24108. mv := v[mk]
  24109. mv = uint32(dd.DecodeUint(32))
  24110. if v != nil {
  24111. v[mk] = mv
  24112. }
  24113. }
  24114. dd.ReadMapEnd()
  24115. }
  24116. return v, changed
  24117. }
  24118. func (f decFnInfo) fastpathDecMapInt32Uint64R(rv reflect.Value) {
  24119. if rv.CanAddr() {
  24120. vp := rv.Addr().Interface().(*map[int32]uint64)
  24121. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  24122. if changed {
  24123. *vp = v
  24124. }
  24125. } else {
  24126. v := rv.Interface().(map[int32]uint64)
  24127. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  24128. }
  24129. }
  24130. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, checkNil bool, d *Decoder) {
  24131. v, changed := f.DecMapInt32Uint64V(*vp, checkNil, true, d)
  24132. if changed {
  24133. *vp = v
  24134. }
  24135. }
  24136. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, checkNil bool, canChange bool,
  24137. d *Decoder) (_ map[int32]uint64, changed bool) {
  24138. dd := d.d
  24139. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24140. if checkNil && dd.TryDecodeAsNil() {
  24141. if v != nil {
  24142. changed = true
  24143. }
  24144. return nil, changed
  24145. }
  24146. containerLen := dd.ReadMapStart()
  24147. if canChange && v == nil {
  24148. if containerLen > 0 {
  24149. v = make(map[int32]uint64, containerLen)
  24150. } else {
  24151. v = make(map[int32]uint64) // supports indefinite-length, etc
  24152. }
  24153. changed = true
  24154. }
  24155. if containerLen > 0 {
  24156. for j := 0; j < containerLen; j++ {
  24157. mk := int32(dd.DecodeInt(32))
  24158. mv := v[mk]
  24159. mv = dd.DecodeUint(64)
  24160. if v != nil {
  24161. v[mk] = mv
  24162. }
  24163. }
  24164. } else if containerLen < 0 {
  24165. for j := 0; !dd.CheckBreak(); j++ {
  24166. if j > 0 {
  24167. dd.ReadMapEntrySeparator()
  24168. }
  24169. mk := int32(dd.DecodeInt(32))
  24170. dd.ReadMapKVSeparator()
  24171. mv := v[mk]
  24172. mv = dd.DecodeUint(64)
  24173. if v != nil {
  24174. v[mk] = mv
  24175. }
  24176. }
  24177. dd.ReadMapEnd()
  24178. }
  24179. return v, changed
  24180. }
  24181. func (f decFnInfo) fastpathDecMapInt32IntR(rv reflect.Value) {
  24182. if rv.CanAddr() {
  24183. vp := rv.Addr().Interface().(*map[int32]int)
  24184. v, changed := fastpathTV.DecMapInt32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  24185. if changed {
  24186. *vp = v
  24187. }
  24188. } else {
  24189. v := rv.Interface().(map[int32]int)
  24190. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, f.d)
  24191. }
  24192. }
  24193. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, checkNil bool, d *Decoder) {
  24194. v, changed := f.DecMapInt32IntV(*vp, checkNil, true, d)
  24195. if changed {
  24196. *vp = v
  24197. }
  24198. }
  24199. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, checkNil bool, canChange bool,
  24200. d *Decoder) (_ map[int32]int, changed bool) {
  24201. dd := d.d
  24202. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24203. if checkNil && dd.TryDecodeAsNil() {
  24204. if v != nil {
  24205. changed = true
  24206. }
  24207. return nil, changed
  24208. }
  24209. containerLen := dd.ReadMapStart()
  24210. if canChange && v == nil {
  24211. if containerLen > 0 {
  24212. v = make(map[int32]int, containerLen)
  24213. } else {
  24214. v = make(map[int32]int) // supports indefinite-length, etc
  24215. }
  24216. changed = true
  24217. }
  24218. if containerLen > 0 {
  24219. for j := 0; j < containerLen; j++ {
  24220. mk := int32(dd.DecodeInt(32))
  24221. mv := v[mk]
  24222. mv = int(dd.DecodeInt(intBitsize))
  24223. if v != nil {
  24224. v[mk] = mv
  24225. }
  24226. }
  24227. } else if containerLen < 0 {
  24228. for j := 0; !dd.CheckBreak(); j++ {
  24229. if j > 0 {
  24230. dd.ReadMapEntrySeparator()
  24231. }
  24232. mk := int32(dd.DecodeInt(32))
  24233. dd.ReadMapKVSeparator()
  24234. mv := v[mk]
  24235. mv = int(dd.DecodeInt(intBitsize))
  24236. if v != nil {
  24237. v[mk] = mv
  24238. }
  24239. }
  24240. dd.ReadMapEnd()
  24241. }
  24242. return v, changed
  24243. }
  24244. func (f decFnInfo) fastpathDecMapInt32Int8R(rv reflect.Value) {
  24245. if rv.CanAddr() {
  24246. vp := rv.Addr().Interface().(*map[int32]int8)
  24247. v, changed := fastpathTV.DecMapInt32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  24248. if changed {
  24249. *vp = v
  24250. }
  24251. } else {
  24252. v := rv.Interface().(map[int32]int8)
  24253. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, f.d)
  24254. }
  24255. }
  24256. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, checkNil bool, d *Decoder) {
  24257. v, changed := f.DecMapInt32Int8V(*vp, checkNil, true, d)
  24258. if changed {
  24259. *vp = v
  24260. }
  24261. }
  24262. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, checkNil bool, canChange bool,
  24263. d *Decoder) (_ map[int32]int8, changed bool) {
  24264. dd := d.d
  24265. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24266. if checkNil && dd.TryDecodeAsNil() {
  24267. if v != nil {
  24268. changed = true
  24269. }
  24270. return nil, changed
  24271. }
  24272. containerLen := dd.ReadMapStart()
  24273. if canChange && v == nil {
  24274. if containerLen > 0 {
  24275. v = make(map[int32]int8, containerLen)
  24276. } else {
  24277. v = make(map[int32]int8) // supports indefinite-length, etc
  24278. }
  24279. changed = true
  24280. }
  24281. if containerLen > 0 {
  24282. for j := 0; j < containerLen; j++ {
  24283. mk := int32(dd.DecodeInt(32))
  24284. mv := v[mk]
  24285. mv = int8(dd.DecodeInt(8))
  24286. if v != nil {
  24287. v[mk] = mv
  24288. }
  24289. }
  24290. } else if containerLen < 0 {
  24291. for j := 0; !dd.CheckBreak(); j++ {
  24292. if j > 0 {
  24293. dd.ReadMapEntrySeparator()
  24294. }
  24295. mk := int32(dd.DecodeInt(32))
  24296. dd.ReadMapKVSeparator()
  24297. mv := v[mk]
  24298. mv = int8(dd.DecodeInt(8))
  24299. if v != nil {
  24300. v[mk] = mv
  24301. }
  24302. }
  24303. dd.ReadMapEnd()
  24304. }
  24305. return v, changed
  24306. }
  24307. func (f decFnInfo) fastpathDecMapInt32Int16R(rv reflect.Value) {
  24308. if rv.CanAddr() {
  24309. vp := rv.Addr().Interface().(*map[int32]int16)
  24310. v, changed := fastpathTV.DecMapInt32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  24311. if changed {
  24312. *vp = v
  24313. }
  24314. } else {
  24315. v := rv.Interface().(map[int32]int16)
  24316. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, f.d)
  24317. }
  24318. }
  24319. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, checkNil bool, d *Decoder) {
  24320. v, changed := f.DecMapInt32Int16V(*vp, checkNil, true, d)
  24321. if changed {
  24322. *vp = v
  24323. }
  24324. }
  24325. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, checkNil bool, canChange bool,
  24326. d *Decoder) (_ map[int32]int16, changed bool) {
  24327. dd := d.d
  24328. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24329. if checkNil && dd.TryDecodeAsNil() {
  24330. if v != nil {
  24331. changed = true
  24332. }
  24333. return nil, changed
  24334. }
  24335. containerLen := dd.ReadMapStart()
  24336. if canChange && v == nil {
  24337. if containerLen > 0 {
  24338. v = make(map[int32]int16, containerLen)
  24339. } else {
  24340. v = make(map[int32]int16) // supports indefinite-length, etc
  24341. }
  24342. changed = true
  24343. }
  24344. if containerLen > 0 {
  24345. for j := 0; j < containerLen; j++ {
  24346. mk := int32(dd.DecodeInt(32))
  24347. mv := v[mk]
  24348. mv = int16(dd.DecodeInt(16))
  24349. if v != nil {
  24350. v[mk] = mv
  24351. }
  24352. }
  24353. } else if containerLen < 0 {
  24354. for j := 0; !dd.CheckBreak(); j++ {
  24355. if j > 0 {
  24356. dd.ReadMapEntrySeparator()
  24357. }
  24358. mk := int32(dd.DecodeInt(32))
  24359. dd.ReadMapKVSeparator()
  24360. mv := v[mk]
  24361. mv = int16(dd.DecodeInt(16))
  24362. if v != nil {
  24363. v[mk] = mv
  24364. }
  24365. }
  24366. dd.ReadMapEnd()
  24367. }
  24368. return v, changed
  24369. }
  24370. func (f decFnInfo) fastpathDecMapInt32Int32R(rv reflect.Value) {
  24371. if rv.CanAddr() {
  24372. vp := rv.Addr().Interface().(*map[int32]int32)
  24373. v, changed := fastpathTV.DecMapInt32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  24374. if changed {
  24375. *vp = v
  24376. }
  24377. } else {
  24378. v := rv.Interface().(map[int32]int32)
  24379. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, f.d)
  24380. }
  24381. }
  24382. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, checkNil bool, d *Decoder) {
  24383. v, changed := f.DecMapInt32Int32V(*vp, checkNil, true, d)
  24384. if changed {
  24385. *vp = v
  24386. }
  24387. }
  24388. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, checkNil bool, canChange bool,
  24389. d *Decoder) (_ map[int32]int32, changed bool) {
  24390. dd := d.d
  24391. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24392. if checkNil && dd.TryDecodeAsNil() {
  24393. if v != nil {
  24394. changed = true
  24395. }
  24396. return nil, changed
  24397. }
  24398. containerLen := dd.ReadMapStart()
  24399. if canChange && v == nil {
  24400. if containerLen > 0 {
  24401. v = make(map[int32]int32, containerLen)
  24402. } else {
  24403. v = make(map[int32]int32) // supports indefinite-length, etc
  24404. }
  24405. changed = true
  24406. }
  24407. if containerLen > 0 {
  24408. for j := 0; j < containerLen; j++ {
  24409. mk := int32(dd.DecodeInt(32))
  24410. mv := v[mk]
  24411. mv = int32(dd.DecodeInt(32))
  24412. if v != nil {
  24413. v[mk] = mv
  24414. }
  24415. }
  24416. } else if containerLen < 0 {
  24417. for j := 0; !dd.CheckBreak(); j++ {
  24418. if j > 0 {
  24419. dd.ReadMapEntrySeparator()
  24420. }
  24421. mk := int32(dd.DecodeInt(32))
  24422. dd.ReadMapKVSeparator()
  24423. mv := v[mk]
  24424. mv = int32(dd.DecodeInt(32))
  24425. if v != nil {
  24426. v[mk] = mv
  24427. }
  24428. }
  24429. dd.ReadMapEnd()
  24430. }
  24431. return v, changed
  24432. }
  24433. func (f decFnInfo) fastpathDecMapInt32Int64R(rv reflect.Value) {
  24434. if rv.CanAddr() {
  24435. vp := rv.Addr().Interface().(*map[int32]int64)
  24436. v, changed := fastpathTV.DecMapInt32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  24437. if changed {
  24438. *vp = v
  24439. }
  24440. } else {
  24441. v := rv.Interface().(map[int32]int64)
  24442. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, f.d)
  24443. }
  24444. }
  24445. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, checkNil bool, d *Decoder) {
  24446. v, changed := f.DecMapInt32Int64V(*vp, checkNil, true, d)
  24447. if changed {
  24448. *vp = v
  24449. }
  24450. }
  24451. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, checkNil bool, canChange bool,
  24452. d *Decoder) (_ map[int32]int64, changed bool) {
  24453. dd := d.d
  24454. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24455. if checkNil && dd.TryDecodeAsNil() {
  24456. if v != nil {
  24457. changed = true
  24458. }
  24459. return nil, changed
  24460. }
  24461. containerLen := dd.ReadMapStart()
  24462. if canChange && v == nil {
  24463. if containerLen > 0 {
  24464. v = make(map[int32]int64, containerLen)
  24465. } else {
  24466. v = make(map[int32]int64) // supports indefinite-length, etc
  24467. }
  24468. changed = true
  24469. }
  24470. if containerLen > 0 {
  24471. for j := 0; j < containerLen; j++ {
  24472. mk := int32(dd.DecodeInt(32))
  24473. mv := v[mk]
  24474. mv = dd.DecodeInt(64)
  24475. if v != nil {
  24476. v[mk] = mv
  24477. }
  24478. }
  24479. } else if containerLen < 0 {
  24480. for j := 0; !dd.CheckBreak(); j++ {
  24481. if j > 0 {
  24482. dd.ReadMapEntrySeparator()
  24483. }
  24484. mk := int32(dd.DecodeInt(32))
  24485. dd.ReadMapKVSeparator()
  24486. mv := v[mk]
  24487. mv = dd.DecodeInt(64)
  24488. if v != nil {
  24489. v[mk] = mv
  24490. }
  24491. }
  24492. dd.ReadMapEnd()
  24493. }
  24494. return v, changed
  24495. }
  24496. func (f decFnInfo) fastpathDecMapInt32Float32R(rv reflect.Value) {
  24497. if rv.CanAddr() {
  24498. vp := rv.Addr().Interface().(*map[int32]float32)
  24499. v, changed := fastpathTV.DecMapInt32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  24500. if changed {
  24501. *vp = v
  24502. }
  24503. } else {
  24504. v := rv.Interface().(map[int32]float32)
  24505. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, f.d)
  24506. }
  24507. }
  24508. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, checkNil bool, d *Decoder) {
  24509. v, changed := f.DecMapInt32Float32V(*vp, checkNil, true, d)
  24510. if changed {
  24511. *vp = v
  24512. }
  24513. }
  24514. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, checkNil bool, canChange bool,
  24515. d *Decoder) (_ map[int32]float32, changed bool) {
  24516. dd := d.d
  24517. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24518. if checkNil && dd.TryDecodeAsNil() {
  24519. if v != nil {
  24520. changed = true
  24521. }
  24522. return nil, changed
  24523. }
  24524. containerLen := dd.ReadMapStart()
  24525. if canChange && v == nil {
  24526. if containerLen > 0 {
  24527. v = make(map[int32]float32, containerLen)
  24528. } else {
  24529. v = make(map[int32]float32) // supports indefinite-length, etc
  24530. }
  24531. changed = true
  24532. }
  24533. if containerLen > 0 {
  24534. for j := 0; j < containerLen; j++ {
  24535. mk := int32(dd.DecodeInt(32))
  24536. mv := v[mk]
  24537. mv = float32(dd.DecodeFloat(true))
  24538. if v != nil {
  24539. v[mk] = mv
  24540. }
  24541. }
  24542. } else if containerLen < 0 {
  24543. for j := 0; !dd.CheckBreak(); j++ {
  24544. if j > 0 {
  24545. dd.ReadMapEntrySeparator()
  24546. }
  24547. mk := int32(dd.DecodeInt(32))
  24548. dd.ReadMapKVSeparator()
  24549. mv := v[mk]
  24550. mv = float32(dd.DecodeFloat(true))
  24551. if v != nil {
  24552. v[mk] = mv
  24553. }
  24554. }
  24555. dd.ReadMapEnd()
  24556. }
  24557. return v, changed
  24558. }
  24559. func (f decFnInfo) fastpathDecMapInt32Float64R(rv reflect.Value) {
  24560. if rv.CanAddr() {
  24561. vp := rv.Addr().Interface().(*map[int32]float64)
  24562. v, changed := fastpathTV.DecMapInt32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  24563. if changed {
  24564. *vp = v
  24565. }
  24566. } else {
  24567. v := rv.Interface().(map[int32]float64)
  24568. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, f.d)
  24569. }
  24570. }
  24571. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, checkNil bool, d *Decoder) {
  24572. v, changed := f.DecMapInt32Float64V(*vp, checkNil, true, d)
  24573. if changed {
  24574. *vp = v
  24575. }
  24576. }
  24577. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, checkNil bool, canChange bool,
  24578. d *Decoder) (_ map[int32]float64, changed bool) {
  24579. dd := d.d
  24580. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24581. if checkNil && dd.TryDecodeAsNil() {
  24582. if v != nil {
  24583. changed = true
  24584. }
  24585. return nil, changed
  24586. }
  24587. containerLen := dd.ReadMapStart()
  24588. if canChange && v == nil {
  24589. if containerLen > 0 {
  24590. v = make(map[int32]float64, containerLen)
  24591. } else {
  24592. v = make(map[int32]float64) // supports indefinite-length, etc
  24593. }
  24594. changed = true
  24595. }
  24596. if containerLen > 0 {
  24597. for j := 0; j < containerLen; j++ {
  24598. mk := int32(dd.DecodeInt(32))
  24599. mv := v[mk]
  24600. mv = dd.DecodeFloat(false)
  24601. if v != nil {
  24602. v[mk] = mv
  24603. }
  24604. }
  24605. } else if containerLen < 0 {
  24606. for j := 0; !dd.CheckBreak(); j++ {
  24607. if j > 0 {
  24608. dd.ReadMapEntrySeparator()
  24609. }
  24610. mk := int32(dd.DecodeInt(32))
  24611. dd.ReadMapKVSeparator()
  24612. mv := v[mk]
  24613. mv = dd.DecodeFloat(false)
  24614. if v != nil {
  24615. v[mk] = mv
  24616. }
  24617. }
  24618. dd.ReadMapEnd()
  24619. }
  24620. return v, changed
  24621. }
  24622. func (f decFnInfo) fastpathDecMapInt32BoolR(rv reflect.Value) {
  24623. if rv.CanAddr() {
  24624. vp := rv.Addr().Interface().(*map[int32]bool)
  24625. v, changed := fastpathTV.DecMapInt32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  24626. if changed {
  24627. *vp = v
  24628. }
  24629. } else {
  24630. v := rv.Interface().(map[int32]bool)
  24631. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, f.d)
  24632. }
  24633. }
  24634. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, checkNil bool, d *Decoder) {
  24635. v, changed := f.DecMapInt32BoolV(*vp, checkNil, true, d)
  24636. if changed {
  24637. *vp = v
  24638. }
  24639. }
  24640. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, checkNil bool, canChange bool,
  24641. d *Decoder) (_ map[int32]bool, changed bool) {
  24642. dd := d.d
  24643. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24644. if checkNil && dd.TryDecodeAsNil() {
  24645. if v != nil {
  24646. changed = true
  24647. }
  24648. return nil, changed
  24649. }
  24650. containerLen := dd.ReadMapStart()
  24651. if canChange && v == nil {
  24652. if containerLen > 0 {
  24653. v = make(map[int32]bool, containerLen)
  24654. } else {
  24655. v = make(map[int32]bool) // supports indefinite-length, etc
  24656. }
  24657. changed = true
  24658. }
  24659. if containerLen > 0 {
  24660. for j := 0; j < containerLen; j++ {
  24661. mk := int32(dd.DecodeInt(32))
  24662. mv := v[mk]
  24663. mv = dd.DecodeBool()
  24664. if v != nil {
  24665. v[mk] = mv
  24666. }
  24667. }
  24668. } else if containerLen < 0 {
  24669. for j := 0; !dd.CheckBreak(); j++ {
  24670. if j > 0 {
  24671. dd.ReadMapEntrySeparator()
  24672. }
  24673. mk := int32(dd.DecodeInt(32))
  24674. dd.ReadMapKVSeparator()
  24675. mv := v[mk]
  24676. mv = dd.DecodeBool()
  24677. if v != nil {
  24678. v[mk] = mv
  24679. }
  24680. }
  24681. dd.ReadMapEnd()
  24682. }
  24683. return v, changed
  24684. }
  24685. func (f decFnInfo) fastpathDecMapInt64IntfR(rv reflect.Value) {
  24686. if rv.CanAddr() {
  24687. vp := rv.Addr().Interface().(*map[int64]interface{})
  24688. v, changed := fastpathTV.DecMapInt64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  24689. if changed {
  24690. *vp = v
  24691. }
  24692. } else {
  24693. v := rv.Interface().(map[int64]interface{})
  24694. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, f.d)
  24695. }
  24696. }
  24697. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, checkNil bool, d *Decoder) {
  24698. v, changed := f.DecMapInt64IntfV(*vp, checkNil, true, d)
  24699. if changed {
  24700. *vp = v
  24701. }
  24702. }
  24703. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, checkNil bool, canChange bool,
  24704. d *Decoder) (_ map[int64]interface{}, changed bool) {
  24705. dd := d.d
  24706. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24707. if checkNil && dd.TryDecodeAsNil() {
  24708. if v != nil {
  24709. changed = true
  24710. }
  24711. return nil, changed
  24712. }
  24713. containerLen := dd.ReadMapStart()
  24714. if canChange && v == nil {
  24715. if containerLen > 0 {
  24716. v = make(map[int64]interface{}, containerLen)
  24717. } else {
  24718. v = make(map[int64]interface{}) // supports indefinite-length, etc
  24719. }
  24720. changed = true
  24721. }
  24722. if containerLen > 0 {
  24723. for j := 0; j < containerLen; j++ {
  24724. mk := dd.DecodeInt(64)
  24725. mv := v[mk]
  24726. d.decode(&mv)
  24727. if v != nil {
  24728. v[mk] = mv
  24729. }
  24730. }
  24731. } else if containerLen < 0 {
  24732. for j := 0; !dd.CheckBreak(); j++ {
  24733. if j > 0 {
  24734. dd.ReadMapEntrySeparator()
  24735. }
  24736. mk := dd.DecodeInt(64)
  24737. dd.ReadMapKVSeparator()
  24738. mv := v[mk]
  24739. d.decode(&mv)
  24740. if v != nil {
  24741. v[mk] = mv
  24742. }
  24743. }
  24744. dd.ReadMapEnd()
  24745. }
  24746. return v, changed
  24747. }
  24748. func (f decFnInfo) fastpathDecMapInt64StringR(rv reflect.Value) {
  24749. if rv.CanAddr() {
  24750. vp := rv.Addr().Interface().(*map[int64]string)
  24751. v, changed := fastpathTV.DecMapInt64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  24752. if changed {
  24753. *vp = v
  24754. }
  24755. } else {
  24756. v := rv.Interface().(map[int64]string)
  24757. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, f.d)
  24758. }
  24759. }
  24760. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, checkNil bool, d *Decoder) {
  24761. v, changed := f.DecMapInt64StringV(*vp, checkNil, true, d)
  24762. if changed {
  24763. *vp = v
  24764. }
  24765. }
  24766. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, checkNil bool, canChange bool,
  24767. d *Decoder) (_ map[int64]string, changed bool) {
  24768. dd := d.d
  24769. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24770. if checkNil && dd.TryDecodeAsNil() {
  24771. if v != nil {
  24772. changed = true
  24773. }
  24774. return nil, changed
  24775. }
  24776. containerLen := dd.ReadMapStart()
  24777. if canChange && v == nil {
  24778. if containerLen > 0 {
  24779. v = make(map[int64]string, containerLen)
  24780. } else {
  24781. v = make(map[int64]string) // supports indefinite-length, etc
  24782. }
  24783. changed = true
  24784. }
  24785. if containerLen > 0 {
  24786. for j := 0; j < containerLen; j++ {
  24787. mk := dd.DecodeInt(64)
  24788. mv := v[mk]
  24789. mv = dd.DecodeString()
  24790. if v != nil {
  24791. v[mk] = mv
  24792. }
  24793. }
  24794. } else if containerLen < 0 {
  24795. for j := 0; !dd.CheckBreak(); j++ {
  24796. if j > 0 {
  24797. dd.ReadMapEntrySeparator()
  24798. }
  24799. mk := dd.DecodeInt(64)
  24800. dd.ReadMapKVSeparator()
  24801. mv := v[mk]
  24802. mv = dd.DecodeString()
  24803. if v != nil {
  24804. v[mk] = mv
  24805. }
  24806. }
  24807. dd.ReadMapEnd()
  24808. }
  24809. return v, changed
  24810. }
  24811. func (f decFnInfo) fastpathDecMapInt64UintR(rv reflect.Value) {
  24812. if rv.CanAddr() {
  24813. vp := rv.Addr().Interface().(*map[int64]uint)
  24814. v, changed := fastpathTV.DecMapInt64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  24815. if changed {
  24816. *vp = v
  24817. }
  24818. } else {
  24819. v := rv.Interface().(map[int64]uint)
  24820. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, f.d)
  24821. }
  24822. }
  24823. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, checkNil bool, d *Decoder) {
  24824. v, changed := f.DecMapInt64UintV(*vp, checkNil, true, d)
  24825. if changed {
  24826. *vp = v
  24827. }
  24828. }
  24829. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, checkNil bool, canChange bool,
  24830. d *Decoder) (_ map[int64]uint, changed bool) {
  24831. dd := d.d
  24832. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24833. if checkNil && dd.TryDecodeAsNil() {
  24834. if v != nil {
  24835. changed = true
  24836. }
  24837. return nil, changed
  24838. }
  24839. containerLen := dd.ReadMapStart()
  24840. if canChange && v == nil {
  24841. if containerLen > 0 {
  24842. v = make(map[int64]uint, containerLen)
  24843. } else {
  24844. v = make(map[int64]uint) // supports indefinite-length, etc
  24845. }
  24846. changed = true
  24847. }
  24848. if containerLen > 0 {
  24849. for j := 0; j < containerLen; j++ {
  24850. mk := dd.DecodeInt(64)
  24851. mv := v[mk]
  24852. mv = uint(dd.DecodeUint(uintBitsize))
  24853. if v != nil {
  24854. v[mk] = mv
  24855. }
  24856. }
  24857. } else if containerLen < 0 {
  24858. for j := 0; !dd.CheckBreak(); j++ {
  24859. if j > 0 {
  24860. dd.ReadMapEntrySeparator()
  24861. }
  24862. mk := dd.DecodeInt(64)
  24863. dd.ReadMapKVSeparator()
  24864. mv := v[mk]
  24865. mv = uint(dd.DecodeUint(uintBitsize))
  24866. if v != nil {
  24867. v[mk] = mv
  24868. }
  24869. }
  24870. dd.ReadMapEnd()
  24871. }
  24872. return v, changed
  24873. }
  24874. func (f decFnInfo) fastpathDecMapInt64Uint8R(rv reflect.Value) {
  24875. if rv.CanAddr() {
  24876. vp := rv.Addr().Interface().(*map[int64]uint8)
  24877. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  24878. if changed {
  24879. *vp = v
  24880. }
  24881. } else {
  24882. v := rv.Interface().(map[int64]uint8)
  24883. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  24884. }
  24885. }
  24886. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, checkNil bool, d *Decoder) {
  24887. v, changed := f.DecMapInt64Uint8V(*vp, checkNil, true, d)
  24888. if changed {
  24889. *vp = v
  24890. }
  24891. }
  24892. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, checkNil bool, canChange bool,
  24893. d *Decoder) (_ map[int64]uint8, changed bool) {
  24894. dd := d.d
  24895. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24896. if checkNil && dd.TryDecodeAsNil() {
  24897. if v != nil {
  24898. changed = true
  24899. }
  24900. return nil, changed
  24901. }
  24902. containerLen := dd.ReadMapStart()
  24903. if canChange && v == nil {
  24904. if containerLen > 0 {
  24905. v = make(map[int64]uint8, containerLen)
  24906. } else {
  24907. v = make(map[int64]uint8) // supports indefinite-length, etc
  24908. }
  24909. changed = true
  24910. }
  24911. if containerLen > 0 {
  24912. for j := 0; j < containerLen; j++ {
  24913. mk := dd.DecodeInt(64)
  24914. mv := v[mk]
  24915. mv = uint8(dd.DecodeUint(8))
  24916. if v != nil {
  24917. v[mk] = mv
  24918. }
  24919. }
  24920. } else if containerLen < 0 {
  24921. for j := 0; !dd.CheckBreak(); j++ {
  24922. if j > 0 {
  24923. dd.ReadMapEntrySeparator()
  24924. }
  24925. mk := dd.DecodeInt(64)
  24926. dd.ReadMapKVSeparator()
  24927. mv := v[mk]
  24928. mv = uint8(dd.DecodeUint(8))
  24929. if v != nil {
  24930. v[mk] = mv
  24931. }
  24932. }
  24933. dd.ReadMapEnd()
  24934. }
  24935. return v, changed
  24936. }
  24937. func (f decFnInfo) fastpathDecMapInt64Uint16R(rv reflect.Value) {
  24938. if rv.CanAddr() {
  24939. vp := rv.Addr().Interface().(*map[int64]uint16)
  24940. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  24941. if changed {
  24942. *vp = v
  24943. }
  24944. } else {
  24945. v := rv.Interface().(map[int64]uint16)
  24946. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  24947. }
  24948. }
  24949. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, checkNil bool, d *Decoder) {
  24950. v, changed := f.DecMapInt64Uint16V(*vp, checkNil, true, d)
  24951. if changed {
  24952. *vp = v
  24953. }
  24954. }
  24955. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, checkNil bool, canChange bool,
  24956. d *Decoder) (_ map[int64]uint16, changed bool) {
  24957. dd := d.d
  24958. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  24959. if checkNil && dd.TryDecodeAsNil() {
  24960. if v != nil {
  24961. changed = true
  24962. }
  24963. return nil, changed
  24964. }
  24965. containerLen := dd.ReadMapStart()
  24966. if canChange && v == nil {
  24967. if containerLen > 0 {
  24968. v = make(map[int64]uint16, containerLen)
  24969. } else {
  24970. v = make(map[int64]uint16) // supports indefinite-length, etc
  24971. }
  24972. changed = true
  24973. }
  24974. if containerLen > 0 {
  24975. for j := 0; j < containerLen; j++ {
  24976. mk := dd.DecodeInt(64)
  24977. mv := v[mk]
  24978. mv = uint16(dd.DecodeUint(16))
  24979. if v != nil {
  24980. v[mk] = mv
  24981. }
  24982. }
  24983. } else if containerLen < 0 {
  24984. for j := 0; !dd.CheckBreak(); j++ {
  24985. if j > 0 {
  24986. dd.ReadMapEntrySeparator()
  24987. }
  24988. mk := dd.DecodeInt(64)
  24989. dd.ReadMapKVSeparator()
  24990. mv := v[mk]
  24991. mv = uint16(dd.DecodeUint(16))
  24992. if v != nil {
  24993. v[mk] = mv
  24994. }
  24995. }
  24996. dd.ReadMapEnd()
  24997. }
  24998. return v, changed
  24999. }
  25000. func (f decFnInfo) fastpathDecMapInt64Uint32R(rv reflect.Value) {
  25001. if rv.CanAddr() {
  25002. vp := rv.Addr().Interface().(*map[int64]uint32)
  25003. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  25004. if changed {
  25005. *vp = v
  25006. }
  25007. } else {
  25008. v := rv.Interface().(map[int64]uint32)
  25009. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  25010. }
  25011. }
  25012. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, checkNil bool, d *Decoder) {
  25013. v, changed := f.DecMapInt64Uint32V(*vp, checkNil, true, d)
  25014. if changed {
  25015. *vp = v
  25016. }
  25017. }
  25018. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, checkNil bool, canChange bool,
  25019. d *Decoder) (_ map[int64]uint32, changed bool) {
  25020. dd := d.d
  25021. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25022. if checkNil && dd.TryDecodeAsNil() {
  25023. if v != nil {
  25024. changed = true
  25025. }
  25026. return nil, changed
  25027. }
  25028. containerLen := dd.ReadMapStart()
  25029. if canChange && v == nil {
  25030. if containerLen > 0 {
  25031. v = make(map[int64]uint32, containerLen)
  25032. } else {
  25033. v = make(map[int64]uint32) // supports indefinite-length, etc
  25034. }
  25035. changed = true
  25036. }
  25037. if containerLen > 0 {
  25038. for j := 0; j < containerLen; j++ {
  25039. mk := dd.DecodeInt(64)
  25040. mv := v[mk]
  25041. mv = uint32(dd.DecodeUint(32))
  25042. if v != nil {
  25043. v[mk] = mv
  25044. }
  25045. }
  25046. } else if containerLen < 0 {
  25047. for j := 0; !dd.CheckBreak(); j++ {
  25048. if j > 0 {
  25049. dd.ReadMapEntrySeparator()
  25050. }
  25051. mk := dd.DecodeInt(64)
  25052. dd.ReadMapKVSeparator()
  25053. mv := v[mk]
  25054. mv = uint32(dd.DecodeUint(32))
  25055. if v != nil {
  25056. v[mk] = mv
  25057. }
  25058. }
  25059. dd.ReadMapEnd()
  25060. }
  25061. return v, changed
  25062. }
  25063. func (f decFnInfo) fastpathDecMapInt64Uint64R(rv reflect.Value) {
  25064. if rv.CanAddr() {
  25065. vp := rv.Addr().Interface().(*map[int64]uint64)
  25066. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  25067. if changed {
  25068. *vp = v
  25069. }
  25070. } else {
  25071. v := rv.Interface().(map[int64]uint64)
  25072. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  25073. }
  25074. }
  25075. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, checkNil bool, d *Decoder) {
  25076. v, changed := f.DecMapInt64Uint64V(*vp, checkNil, true, d)
  25077. if changed {
  25078. *vp = v
  25079. }
  25080. }
  25081. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, checkNil bool, canChange bool,
  25082. d *Decoder) (_ map[int64]uint64, changed bool) {
  25083. dd := d.d
  25084. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25085. if checkNil && dd.TryDecodeAsNil() {
  25086. if v != nil {
  25087. changed = true
  25088. }
  25089. return nil, changed
  25090. }
  25091. containerLen := dd.ReadMapStart()
  25092. if canChange && v == nil {
  25093. if containerLen > 0 {
  25094. v = make(map[int64]uint64, containerLen)
  25095. } else {
  25096. v = make(map[int64]uint64) // supports indefinite-length, etc
  25097. }
  25098. changed = true
  25099. }
  25100. if containerLen > 0 {
  25101. for j := 0; j < containerLen; j++ {
  25102. mk := dd.DecodeInt(64)
  25103. mv := v[mk]
  25104. mv = dd.DecodeUint(64)
  25105. if v != nil {
  25106. v[mk] = mv
  25107. }
  25108. }
  25109. } else if containerLen < 0 {
  25110. for j := 0; !dd.CheckBreak(); j++ {
  25111. if j > 0 {
  25112. dd.ReadMapEntrySeparator()
  25113. }
  25114. mk := dd.DecodeInt(64)
  25115. dd.ReadMapKVSeparator()
  25116. mv := v[mk]
  25117. mv = dd.DecodeUint(64)
  25118. if v != nil {
  25119. v[mk] = mv
  25120. }
  25121. }
  25122. dd.ReadMapEnd()
  25123. }
  25124. return v, changed
  25125. }
  25126. func (f decFnInfo) fastpathDecMapInt64IntR(rv reflect.Value) {
  25127. if rv.CanAddr() {
  25128. vp := rv.Addr().Interface().(*map[int64]int)
  25129. v, changed := fastpathTV.DecMapInt64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  25130. if changed {
  25131. *vp = v
  25132. }
  25133. } else {
  25134. v := rv.Interface().(map[int64]int)
  25135. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, f.d)
  25136. }
  25137. }
  25138. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, checkNil bool, d *Decoder) {
  25139. v, changed := f.DecMapInt64IntV(*vp, checkNil, true, d)
  25140. if changed {
  25141. *vp = v
  25142. }
  25143. }
  25144. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, checkNil bool, canChange bool,
  25145. d *Decoder) (_ map[int64]int, changed bool) {
  25146. dd := d.d
  25147. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25148. if checkNil && dd.TryDecodeAsNil() {
  25149. if v != nil {
  25150. changed = true
  25151. }
  25152. return nil, changed
  25153. }
  25154. containerLen := dd.ReadMapStart()
  25155. if canChange && v == nil {
  25156. if containerLen > 0 {
  25157. v = make(map[int64]int, containerLen)
  25158. } else {
  25159. v = make(map[int64]int) // supports indefinite-length, etc
  25160. }
  25161. changed = true
  25162. }
  25163. if containerLen > 0 {
  25164. for j := 0; j < containerLen; j++ {
  25165. mk := dd.DecodeInt(64)
  25166. mv := v[mk]
  25167. mv = int(dd.DecodeInt(intBitsize))
  25168. if v != nil {
  25169. v[mk] = mv
  25170. }
  25171. }
  25172. } else if containerLen < 0 {
  25173. for j := 0; !dd.CheckBreak(); j++ {
  25174. if j > 0 {
  25175. dd.ReadMapEntrySeparator()
  25176. }
  25177. mk := dd.DecodeInt(64)
  25178. dd.ReadMapKVSeparator()
  25179. mv := v[mk]
  25180. mv = int(dd.DecodeInt(intBitsize))
  25181. if v != nil {
  25182. v[mk] = mv
  25183. }
  25184. }
  25185. dd.ReadMapEnd()
  25186. }
  25187. return v, changed
  25188. }
  25189. func (f decFnInfo) fastpathDecMapInt64Int8R(rv reflect.Value) {
  25190. if rv.CanAddr() {
  25191. vp := rv.Addr().Interface().(*map[int64]int8)
  25192. v, changed := fastpathTV.DecMapInt64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  25193. if changed {
  25194. *vp = v
  25195. }
  25196. } else {
  25197. v := rv.Interface().(map[int64]int8)
  25198. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, f.d)
  25199. }
  25200. }
  25201. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, checkNil bool, d *Decoder) {
  25202. v, changed := f.DecMapInt64Int8V(*vp, checkNil, true, d)
  25203. if changed {
  25204. *vp = v
  25205. }
  25206. }
  25207. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, checkNil bool, canChange bool,
  25208. d *Decoder) (_ map[int64]int8, changed bool) {
  25209. dd := d.d
  25210. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25211. if checkNil && dd.TryDecodeAsNil() {
  25212. if v != nil {
  25213. changed = true
  25214. }
  25215. return nil, changed
  25216. }
  25217. containerLen := dd.ReadMapStart()
  25218. if canChange && v == nil {
  25219. if containerLen > 0 {
  25220. v = make(map[int64]int8, containerLen)
  25221. } else {
  25222. v = make(map[int64]int8) // supports indefinite-length, etc
  25223. }
  25224. changed = true
  25225. }
  25226. if containerLen > 0 {
  25227. for j := 0; j < containerLen; j++ {
  25228. mk := dd.DecodeInt(64)
  25229. mv := v[mk]
  25230. mv = int8(dd.DecodeInt(8))
  25231. if v != nil {
  25232. v[mk] = mv
  25233. }
  25234. }
  25235. } else if containerLen < 0 {
  25236. for j := 0; !dd.CheckBreak(); j++ {
  25237. if j > 0 {
  25238. dd.ReadMapEntrySeparator()
  25239. }
  25240. mk := dd.DecodeInt(64)
  25241. dd.ReadMapKVSeparator()
  25242. mv := v[mk]
  25243. mv = int8(dd.DecodeInt(8))
  25244. if v != nil {
  25245. v[mk] = mv
  25246. }
  25247. }
  25248. dd.ReadMapEnd()
  25249. }
  25250. return v, changed
  25251. }
  25252. func (f decFnInfo) fastpathDecMapInt64Int16R(rv reflect.Value) {
  25253. if rv.CanAddr() {
  25254. vp := rv.Addr().Interface().(*map[int64]int16)
  25255. v, changed := fastpathTV.DecMapInt64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  25256. if changed {
  25257. *vp = v
  25258. }
  25259. } else {
  25260. v := rv.Interface().(map[int64]int16)
  25261. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, f.d)
  25262. }
  25263. }
  25264. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, checkNil bool, d *Decoder) {
  25265. v, changed := f.DecMapInt64Int16V(*vp, checkNil, true, d)
  25266. if changed {
  25267. *vp = v
  25268. }
  25269. }
  25270. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, checkNil bool, canChange bool,
  25271. d *Decoder) (_ map[int64]int16, changed bool) {
  25272. dd := d.d
  25273. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25274. if checkNil && dd.TryDecodeAsNil() {
  25275. if v != nil {
  25276. changed = true
  25277. }
  25278. return nil, changed
  25279. }
  25280. containerLen := dd.ReadMapStart()
  25281. if canChange && v == nil {
  25282. if containerLen > 0 {
  25283. v = make(map[int64]int16, containerLen)
  25284. } else {
  25285. v = make(map[int64]int16) // supports indefinite-length, etc
  25286. }
  25287. changed = true
  25288. }
  25289. if containerLen > 0 {
  25290. for j := 0; j < containerLen; j++ {
  25291. mk := dd.DecodeInt(64)
  25292. mv := v[mk]
  25293. mv = int16(dd.DecodeInt(16))
  25294. if v != nil {
  25295. v[mk] = mv
  25296. }
  25297. }
  25298. } else if containerLen < 0 {
  25299. for j := 0; !dd.CheckBreak(); j++ {
  25300. if j > 0 {
  25301. dd.ReadMapEntrySeparator()
  25302. }
  25303. mk := dd.DecodeInt(64)
  25304. dd.ReadMapKVSeparator()
  25305. mv := v[mk]
  25306. mv = int16(dd.DecodeInt(16))
  25307. if v != nil {
  25308. v[mk] = mv
  25309. }
  25310. }
  25311. dd.ReadMapEnd()
  25312. }
  25313. return v, changed
  25314. }
  25315. func (f decFnInfo) fastpathDecMapInt64Int32R(rv reflect.Value) {
  25316. if rv.CanAddr() {
  25317. vp := rv.Addr().Interface().(*map[int64]int32)
  25318. v, changed := fastpathTV.DecMapInt64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  25319. if changed {
  25320. *vp = v
  25321. }
  25322. } else {
  25323. v := rv.Interface().(map[int64]int32)
  25324. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, f.d)
  25325. }
  25326. }
  25327. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, checkNil bool, d *Decoder) {
  25328. v, changed := f.DecMapInt64Int32V(*vp, checkNil, true, d)
  25329. if changed {
  25330. *vp = v
  25331. }
  25332. }
  25333. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, checkNil bool, canChange bool,
  25334. d *Decoder) (_ map[int64]int32, changed bool) {
  25335. dd := d.d
  25336. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25337. if checkNil && dd.TryDecodeAsNil() {
  25338. if v != nil {
  25339. changed = true
  25340. }
  25341. return nil, changed
  25342. }
  25343. containerLen := dd.ReadMapStart()
  25344. if canChange && v == nil {
  25345. if containerLen > 0 {
  25346. v = make(map[int64]int32, containerLen)
  25347. } else {
  25348. v = make(map[int64]int32) // supports indefinite-length, etc
  25349. }
  25350. changed = true
  25351. }
  25352. if containerLen > 0 {
  25353. for j := 0; j < containerLen; j++ {
  25354. mk := dd.DecodeInt(64)
  25355. mv := v[mk]
  25356. mv = int32(dd.DecodeInt(32))
  25357. if v != nil {
  25358. v[mk] = mv
  25359. }
  25360. }
  25361. } else if containerLen < 0 {
  25362. for j := 0; !dd.CheckBreak(); j++ {
  25363. if j > 0 {
  25364. dd.ReadMapEntrySeparator()
  25365. }
  25366. mk := dd.DecodeInt(64)
  25367. dd.ReadMapKVSeparator()
  25368. mv := v[mk]
  25369. mv = int32(dd.DecodeInt(32))
  25370. if v != nil {
  25371. v[mk] = mv
  25372. }
  25373. }
  25374. dd.ReadMapEnd()
  25375. }
  25376. return v, changed
  25377. }
  25378. func (f decFnInfo) fastpathDecMapInt64Int64R(rv reflect.Value) {
  25379. if rv.CanAddr() {
  25380. vp := rv.Addr().Interface().(*map[int64]int64)
  25381. v, changed := fastpathTV.DecMapInt64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  25382. if changed {
  25383. *vp = v
  25384. }
  25385. } else {
  25386. v := rv.Interface().(map[int64]int64)
  25387. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, f.d)
  25388. }
  25389. }
  25390. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, checkNil bool, d *Decoder) {
  25391. v, changed := f.DecMapInt64Int64V(*vp, checkNil, true, d)
  25392. if changed {
  25393. *vp = v
  25394. }
  25395. }
  25396. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, checkNil bool, canChange bool,
  25397. d *Decoder) (_ map[int64]int64, changed bool) {
  25398. dd := d.d
  25399. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25400. if checkNil && dd.TryDecodeAsNil() {
  25401. if v != nil {
  25402. changed = true
  25403. }
  25404. return nil, changed
  25405. }
  25406. containerLen := dd.ReadMapStart()
  25407. if canChange && v == nil {
  25408. if containerLen > 0 {
  25409. v = make(map[int64]int64, containerLen)
  25410. } else {
  25411. v = make(map[int64]int64) // supports indefinite-length, etc
  25412. }
  25413. changed = true
  25414. }
  25415. if containerLen > 0 {
  25416. for j := 0; j < containerLen; j++ {
  25417. mk := dd.DecodeInt(64)
  25418. mv := v[mk]
  25419. mv = dd.DecodeInt(64)
  25420. if v != nil {
  25421. v[mk] = mv
  25422. }
  25423. }
  25424. } else if containerLen < 0 {
  25425. for j := 0; !dd.CheckBreak(); j++ {
  25426. if j > 0 {
  25427. dd.ReadMapEntrySeparator()
  25428. }
  25429. mk := dd.DecodeInt(64)
  25430. dd.ReadMapKVSeparator()
  25431. mv := v[mk]
  25432. mv = dd.DecodeInt(64)
  25433. if v != nil {
  25434. v[mk] = mv
  25435. }
  25436. }
  25437. dd.ReadMapEnd()
  25438. }
  25439. return v, changed
  25440. }
  25441. func (f decFnInfo) fastpathDecMapInt64Float32R(rv reflect.Value) {
  25442. if rv.CanAddr() {
  25443. vp := rv.Addr().Interface().(*map[int64]float32)
  25444. v, changed := fastpathTV.DecMapInt64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  25445. if changed {
  25446. *vp = v
  25447. }
  25448. } else {
  25449. v := rv.Interface().(map[int64]float32)
  25450. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, f.d)
  25451. }
  25452. }
  25453. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, checkNil bool, d *Decoder) {
  25454. v, changed := f.DecMapInt64Float32V(*vp, checkNil, true, d)
  25455. if changed {
  25456. *vp = v
  25457. }
  25458. }
  25459. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, checkNil bool, canChange bool,
  25460. d *Decoder) (_ map[int64]float32, changed bool) {
  25461. dd := d.d
  25462. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25463. if checkNil && dd.TryDecodeAsNil() {
  25464. if v != nil {
  25465. changed = true
  25466. }
  25467. return nil, changed
  25468. }
  25469. containerLen := dd.ReadMapStart()
  25470. if canChange && v == nil {
  25471. if containerLen > 0 {
  25472. v = make(map[int64]float32, containerLen)
  25473. } else {
  25474. v = make(map[int64]float32) // supports indefinite-length, etc
  25475. }
  25476. changed = true
  25477. }
  25478. if containerLen > 0 {
  25479. for j := 0; j < containerLen; j++ {
  25480. mk := dd.DecodeInt(64)
  25481. mv := v[mk]
  25482. mv = float32(dd.DecodeFloat(true))
  25483. if v != nil {
  25484. v[mk] = mv
  25485. }
  25486. }
  25487. } else if containerLen < 0 {
  25488. for j := 0; !dd.CheckBreak(); j++ {
  25489. if j > 0 {
  25490. dd.ReadMapEntrySeparator()
  25491. }
  25492. mk := dd.DecodeInt(64)
  25493. dd.ReadMapKVSeparator()
  25494. mv := v[mk]
  25495. mv = float32(dd.DecodeFloat(true))
  25496. if v != nil {
  25497. v[mk] = mv
  25498. }
  25499. }
  25500. dd.ReadMapEnd()
  25501. }
  25502. return v, changed
  25503. }
  25504. func (f decFnInfo) fastpathDecMapInt64Float64R(rv reflect.Value) {
  25505. if rv.CanAddr() {
  25506. vp := rv.Addr().Interface().(*map[int64]float64)
  25507. v, changed := fastpathTV.DecMapInt64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  25508. if changed {
  25509. *vp = v
  25510. }
  25511. } else {
  25512. v := rv.Interface().(map[int64]float64)
  25513. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, f.d)
  25514. }
  25515. }
  25516. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, checkNil bool, d *Decoder) {
  25517. v, changed := f.DecMapInt64Float64V(*vp, checkNil, true, d)
  25518. if changed {
  25519. *vp = v
  25520. }
  25521. }
  25522. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, checkNil bool, canChange bool,
  25523. d *Decoder) (_ map[int64]float64, changed bool) {
  25524. dd := d.d
  25525. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25526. if checkNil && dd.TryDecodeAsNil() {
  25527. if v != nil {
  25528. changed = true
  25529. }
  25530. return nil, changed
  25531. }
  25532. containerLen := dd.ReadMapStart()
  25533. if canChange && v == nil {
  25534. if containerLen > 0 {
  25535. v = make(map[int64]float64, containerLen)
  25536. } else {
  25537. v = make(map[int64]float64) // supports indefinite-length, etc
  25538. }
  25539. changed = true
  25540. }
  25541. if containerLen > 0 {
  25542. for j := 0; j < containerLen; j++ {
  25543. mk := dd.DecodeInt(64)
  25544. mv := v[mk]
  25545. mv = dd.DecodeFloat(false)
  25546. if v != nil {
  25547. v[mk] = mv
  25548. }
  25549. }
  25550. } else if containerLen < 0 {
  25551. for j := 0; !dd.CheckBreak(); j++ {
  25552. if j > 0 {
  25553. dd.ReadMapEntrySeparator()
  25554. }
  25555. mk := dd.DecodeInt(64)
  25556. dd.ReadMapKVSeparator()
  25557. mv := v[mk]
  25558. mv = dd.DecodeFloat(false)
  25559. if v != nil {
  25560. v[mk] = mv
  25561. }
  25562. }
  25563. dd.ReadMapEnd()
  25564. }
  25565. return v, changed
  25566. }
  25567. func (f decFnInfo) fastpathDecMapInt64BoolR(rv reflect.Value) {
  25568. if rv.CanAddr() {
  25569. vp := rv.Addr().Interface().(*map[int64]bool)
  25570. v, changed := fastpathTV.DecMapInt64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  25571. if changed {
  25572. *vp = v
  25573. }
  25574. } else {
  25575. v := rv.Interface().(map[int64]bool)
  25576. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, f.d)
  25577. }
  25578. }
  25579. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, checkNil bool, d *Decoder) {
  25580. v, changed := f.DecMapInt64BoolV(*vp, checkNil, true, d)
  25581. if changed {
  25582. *vp = v
  25583. }
  25584. }
  25585. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, checkNil bool, canChange bool,
  25586. d *Decoder) (_ map[int64]bool, changed bool) {
  25587. dd := d.d
  25588. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25589. if checkNil && dd.TryDecodeAsNil() {
  25590. if v != nil {
  25591. changed = true
  25592. }
  25593. return nil, changed
  25594. }
  25595. containerLen := dd.ReadMapStart()
  25596. if canChange && v == nil {
  25597. if containerLen > 0 {
  25598. v = make(map[int64]bool, containerLen)
  25599. } else {
  25600. v = make(map[int64]bool) // supports indefinite-length, etc
  25601. }
  25602. changed = true
  25603. }
  25604. if containerLen > 0 {
  25605. for j := 0; j < containerLen; j++ {
  25606. mk := dd.DecodeInt(64)
  25607. mv := v[mk]
  25608. mv = dd.DecodeBool()
  25609. if v != nil {
  25610. v[mk] = mv
  25611. }
  25612. }
  25613. } else if containerLen < 0 {
  25614. for j := 0; !dd.CheckBreak(); j++ {
  25615. if j > 0 {
  25616. dd.ReadMapEntrySeparator()
  25617. }
  25618. mk := dd.DecodeInt(64)
  25619. dd.ReadMapKVSeparator()
  25620. mv := v[mk]
  25621. mv = dd.DecodeBool()
  25622. if v != nil {
  25623. v[mk] = mv
  25624. }
  25625. }
  25626. dd.ReadMapEnd()
  25627. }
  25628. return v, changed
  25629. }
  25630. func (f decFnInfo) fastpathDecMapBoolIntfR(rv reflect.Value) {
  25631. if rv.CanAddr() {
  25632. vp := rv.Addr().Interface().(*map[bool]interface{})
  25633. v, changed := fastpathTV.DecMapBoolIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  25634. if changed {
  25635. *vp = v
  25636. }
  25637. } else {
  25638. v := rv.Interface().(map[bool]interface{})
  25639. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, f.d)
  25640. }
  25641. }
  25642. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, checkNil bool, d *Decoder) {
  25643. v, changed := f.DecMapBoolIntfV(*vp, checkNil, true, d)
  25644. if changed {
  25645. *vp = v
  25646. }
  25647. }
  25648. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, checkNil bool, canChange bool,
  25649. d *Decoder) (_ map[bool]interface{}, changed bool) {
  25650. dd := d.d
  25651. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25652. if checkNil && dd.TryDecodeAsNil() {
  25653. if v != nil {
  25654. changed = true
  25655. }
  25656. return nil, changed
  25657. }
  25658. containerLen := dd.ReadMapStart()
  25659. if canChange && v == nil {
  25660. if containerLen > 0 {
  25661. v = make(map[bool]interface{}, containerLen)
  25662. } else {
  25663. v = make(map[bool]interface{}) // supports indefinite-length, etc
  25664. }
  25665. changed = true
  25666. }
  25667. if containerLen > 0 {
  25668. for j := 0; j < containerLen; j++ {
  25669. mk := dd.DecodeBool()
  25670. mv := v[mk]
  25671. d.decode(&mv)
  25672. if v != nil {
  25673. v[mk] = mv
  25674. }
  25675. }
  25676. } else if containerLen < 0 {
  25677. for j := 0; !dd.CheckBreak(); j++ {
  25678. if j > 0 {
  25679. dd.ReadMapEntrySeparator()
  25680. }
  25681. mk := dd.DecodeBool()
  25682. dd.ReadMapKVSeparator()
  25683. mv := v[mk]
  25684. d.decode(&mv)
  25685. if v != nil {
  25686. v[mk] = mv
  25687. }
  25688. }
  25689. dd.ReadMapEnd()
  25690. }
  25691. return v, changed
  25692. }
  25693. func (f decFnInfo) fastpathDecMapBoolStringR(rv reflect.Value) {
  25694. if rv.CanAddr() {
  25695. vp := rv.Addr().Interface().(*map[bool]string)
  25696. v, changed := fastpathTV.DecMapBoolStringV(*vp, fastpathCheckNilFalse, true, f.d)
  25697. if changed {
  25698. *vp = v
  25699. }
  25700. } else {
  25701. v := rv.Interface().(map[bool]string)
  25702. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, f.d)
  25703. }
  25704. }
  25705. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, checkNil bool, d *Decoder) {
  25706. v, changed := f.DecMapBoolStringV(*vp, checkNil, true, d)
  25707. if changed {
  25708. *vp = v
  25709. }
  25710. }
  25711. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, checkNil bool, canChange bool,
  25712. d *Decoder) (_ map[bool]string, changed bool) {
  25713. dd := d.d
  25714. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25715. if checkNil && dd.TryDecodeAsNil() {
  25716. if v != nil {
  25717. changed = true
  25718. }
  25719. return nil, changed
  25720. }
  25721. containerLen := dd.ReadMapStart()
  25722. if canChange && v == nil {
  25723. if containerLen > 0 {
  25724. v = make(map[bool]string, containerLen)
  25725. } else {
  25726. v = make(map[bool]string) // supports indefinite-length, etc
  25727. }
  25728. changed = true
  25729. }
  25730. if containerLen > 0 {
  25731. for j := 0; j < containerLen; j++ {
  25732. mk := dd.DecodeBool()
  25733. mv := v[mk]
  25734. mv = dd.DecodeString()
  25735. if v != nil {
  25736. v[mk] = mv
  25737. }
  25738. }
  25739. } else if containerLen < 0 {
  25740. for j := 0; !dd.CheckBreak(); j++ {
  25741. if j > 0 {
  25742. dd.ReadMapEntrySeparator()
  25743. }
  25744. mk := dd.DecodeBool()
  25745. dd.ReadMapKVSeparator()
  25746. mv := v[mk]
  25747. mv = dd.DecodeString()
  25748. if v != nil {
  25749. v[mk] = mv
  25750. }
  25751. }
  25752. dd.ReadMapEnd()
  25753. }
  25754. return v, changed
  25755. }
  25756. func (f decFnInfo) fastpathDecMapBoolUintR(rv reflect.Value) {
  25757. if rv.CanAddr() {
  25758. vp := rv.Addr().Interface().(*map[bool]uint)
  25759. v, changed := fastpathTV.DecMapBoolUintV(*vp, fastpathCheckNilFalse, true, f.d)
  25760. if changed {
  25761. *vp = v
  25762. }
  25763. } else {
  25764. v := rv.Interface().(map[bool]uint)
  25765. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, f.d)
  25766. }
  25767. }
  25768. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, checkNil bool, d *Decoder) {
  25769. v, changed := f.DecMapBoolUintV(*vp, checkNil, true, d)
  25770. if changed {
  25771. *vp = v
  25772. }
  25773. }
  25774. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, checkNil bool, canChange bool,
  25775. d *Decoder) (_ map[bool]uint, changed bool) {
  25776. dd := d.d
  25777. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25778. if checkNil && dd.TryDecodeAsNil() {
  25779. if v != nil {
  25780. changed = true
  25781. }
  25782. return nil, changed
  25783. }
  25784. containerLen := dd.ReadMapStart()
  25785. if canChange && v == nil {
  25786. if containerLen > 0 {
  25787. v = make(map[bool]uint, containerLen)
  25788. } else {
  25789. v = make(map[bool]uint) // supports indefinite-length, etc
  25790. }
  25791. changed = true
  25792. }
  25793. if containerLen > 0 {
  25794. for j := 0; j < containerLen; j++ {
  25795. mk := dd.DecodeBool()
  25796. mv := v[mk]
  25797. mv = uint(dd.DecodeUint(uintBitsize))
  25798. if v != nil {
  25799. v[mk] = mv
  25800. }
  25801. }
  25802. } else if containerLen < 0 {
  25803. for j := 0; !dd.CheckBreak(); j++ {
  25804. if j > 0 {
  25805. dd.ReadMapEntrySeparator()
  25806. }
  25807. mk := dd.DecodeBool()
  25808. dd.ReadMapKVSeparator()
  25809. mv := v[mk]
  25810. mv = uint(dd.DecodeUint(uintBitsize))
  25811. if v != nil {
  25812. v[mk] = mv
  25813. }
  25814. }
  25815. dd.ReadMapEnd()
  25816. }
  25817. return v, changed
  25818. }
  25819. func (f decFnInfo) fastpathDecMapBoolUint8R(rv reflect.Value) {
  25820. if rv.CanAddr() {
  25821. vp := rv.Addr().Interface().(*map[bool]uint8)
  25822. v, changed := fastpathTV.DecMapBoolUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  25823. if changed {
  25824. *vp = v
  25825. }
  25826. } else {
  25827. v := rv.Interface().(map[bool]uint8)
  25828. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, f.d)
  25829. }
  25830. }
  25831. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, checkNil bool, d *Decoder) {
  25832. v, changed := f.DecMapBoolUint8V(*vp, checkNil, true, d)
  25833. if changed {
  25834. *vp = v
  25835. }
  25836. }
  25837. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, checkNil bool, canChange bool,
  25838. d *Decoder) (_ map[bool]uint8, changed bool) {
  25839. dd := d.d
  25840. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25841. if checkNil && dd.TryDecodeAsNil() {
  25842. if v != nil {
  25843. changed = true
  25844. }
  25845. return nil, changed
  25846. }
  25847. containerLen := dd.ReadMapStart()
  25848. if canChange && v == nil {
  25849. if containerLen > 0 {
  25850. v = make(map[bool]uint8, containerLen)
  25851. } else {
  25852. v = make(map[bool]uint8) // supports indefinite-length, etc
  25853. }
  25854. changed = true
  25855. }
  25856. if containerLen > 0 {
  25857. for j := 0; j < containerLen; j++ {
  25858. mk := dd.DecodeBool()
  25859. mv := v[mk]
  25860. mv = uint8(dd.DecodeUint(8))
  25861. if v != nil {
  25862. v[mk] = mv
  25863. }
  25864. }
  25865. } else if containerLen < 0 {
  25866. for j := 0; !dd.CheckBreak(); j++ {
  25867. if j > 0 {
  25868. dd.ReadMapEntrySeparator()
  25869. }
  25870. mk := dd.DecodeBool()
  25871. dd.ReadMapKVSeparator()
  25872. mv := v[mk]
  25873. mv = uint8(dd.DecodeUint(8))
  25874. if v != nil {
  25875. v[mk] = mv
  25876. }
  25877. }
  25878. dd.ReadMapEnd()
  25879. }
  25880. return v, changed
  25881. }
  25882. func (f decFnInfo) fastpathDecMapBoolUint16R(rv reflect.Value) {
  25883. if rv.CanAddr() {
  25884. vp := rv.Addr().Interface().(*map[bool]uint16)
  25885. v, changed := fastpathTV.DecMapBoolUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  25886. if changed {
  25887. *vp = v
  25888. }
  25889. } else {
  25890. v := rv.Interface().(map[bool]uint16)
  25891. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, f.d)
  25892. }
  25893. }
  25894. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, checkNil bool, d *Decoder) {
  25895. v, changed := f.DecMapBoolUint16V(*vp, checkNil, true, d)
  25896. if changed {
  25897. *vp = v
  25898. }
  25899. }
  25900. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, checkNil bool, canChange bool,
  25901. d *Decoder) (_ map[bool]uint16, changed bool) {
  25902. dd := d.d
  25903. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25904. if checkNil && dd.TryDecodeAsNil() {
  25905. if v != nil {
  25906. changed = true
  25907. }
  25908. return nil, changed
  25909. }
  25910. containerLen := dd.ReadMapStart()
  25911. if canChange && v == nil {
  25912. if containerLen > 0 {
  25913. v = make(map[bool]uint16, containerLen)
  25914. } else {
  25915. v = make(map[bool]uint16) // supports indefinite-length, etc
  25916. }
  25917. changed = true
  25918. }
  25919. if containerLen > 0 {
  25920. for j := 0; j < containerLen; j++ {
  25921. mk := dd.DecodeBool()
  25922. mv := v[mk]
  25923. mv = uint16(dd.DecodeUint(16))
  25924. if v != nil {
  25925. v[mk] = mv
  25926. }
  25927. }
  25928. } else if containerLen < 0 {
  25929. for j := 0; !dd.CheckBreak(); j++ {
  25930. if j > 0 {
  25931. dd.ReadMapEntrySeparator()
  25932. }
  25933. mk := dd.DecodeBool()
  25934. dd.ReadMapKVSeparator()
  25935. mv := v[mk]
  25936. mv = uint16(dd.DecodeUint(16))
  25937. if v != nil {
  25938. v[mk] = mv
  25939. }
  25940. }
  25941. dd.ReadMapEnd()
  25942. }
  25943. return v, changed
  25944. }
  25945. func (f decFnInfo) fastpathDecMapBoolUint32R(rv reflect.Value) {
  25946. if rv.CanAddr() {
  25947. vp := rv.Addr().Interface().(*map[bool]uint32)
  25948. v, changed := fastpathTV.DecMapBoolUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  25949. if changed {
  25950. *vp = v
  25951. }
  25952. } else {
  25953. v := rv.Interface().(map[bool]uint32)
  25954. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, f.d)
  25955. }
  25956. }
  25957. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, checkNil bool, d *Decoder) {
  25958. v, changed := f.DecMapBoolUint32V(*vp, checkNil, true, d)
  25959. if changed {
  25960. *vp = v
  25961. }
  25962. }
  25963. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, checkNil bool, canChange bool,
  25964. d *Decoder) (_ map[bool]uint32, changed bool) {
  25965. dd := d.d
  25966. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  25967. if checkNil && dd.TryDecodeAsNil() {
  25968. if v != nil {
  25969. changed = true
  25970. }
  25971. return nil, changed
  25972. }
  25973. containerLen := dd.ReadMapStart()
  25974. if canChange && v == nil {
  25975. if containerLen > 0 {
  25976. v = make(map[bool]uint32, containerLen)
  25977. } else {
  25978. v = make(map[bool]uint32) // supports indefinite-length, etc
  25979. }
  25980. changed = true
  25981. }
  25982. if containerLen > 0 {
  25983. for j := 0; j < containerLen; j++ {
  25984. mk := dd.DecodeBool()
  25985. mv := v[mk]
  25986. mv = uint32(dd.DecodeUint(32))
  25987. if v != nil {
  25988. v[mk] = mv
  25989. }
  25990. }
  25991. } else if containerLen < 0 {
  25992. for j := 0; !dd.CheckBreak(); j++ {
  25993. if j > 0 {
  25994. dd.ReadMapEntrySeparator()
  25995. }
  25996. mk := dd.DecodeBool()
  25997. dd.ReadMapKVSeparator()
  25998. mv := v[mk]
  25999. mv = uint32(dd.DecodeUint(32))
  26000. if v != nil {
  26001. v[mk] = mv
  26002. }
  26003. }
  26004. dd.ReadMapEnd()
  26005. }
  26006. return v, changed
  26007. }
  26008. func (f decFnInfo) fastpathDecMapBoolUint64R(rv reflect.Value) {
  26009. if rv.CanAddr() {
  26010. vp := rv.Addr().Interface().(*map[bool]uint64)
  26011. v, changed := fastpathTV.DecMapBoolUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  26012. if changed {
  26013. *vp = v
  26014. }
  26015. } else {
  26016. v := rv.Interface().(map[bool]uint64)
  26017. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, f.d)
  26018. }
  26019. }
  26020. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, checkNil bool, d *Decoder) {
  26021. v, changed := f.DecMapBoolUint64V(*vp, checkNil, true, d)
  26022. if changed {
  26023. *vp = v
  26024. }
  26025. }
  26026. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, checkNil bool, canChange bool,
  26027. d *Decoder) (_ map[bool]uint64, changed bool) {
  26028. dd := d.d
  26029. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  26030. if checkNil && dd.TryDecodeAsNil() {
  26031. if v != nil {
  26032. changed = true
  26033. }
  26034. return nil, changed
  26035. }
  26036. containerLen := dd.ReadMapStart()
  26037. if canChange && v == nil {
  26038. if containerLen > 0 {
  26039. v = make(map[bool]uint64, containerLen)
  26040. } else {
  26041. v = make(map[bool]uint64) // supports indefinite-length, etc
  26042. }
  26043. changed = true
  26044. }
  26045. if containerLen > 0 {
  26046. for j := 0; j < containerLen; j++ {
  26047. mk := dd.DecodeBool()
  26048. mv := v[mk]
  26049. mv = dd.DecodeUint(64)
  26050. if v != nil {
  26051. v[mk] = mv
  26052. }
  26053. }
  26054. } else if containerLen < 0 {
  26055. for j := 0; !dd.CheckBreak(); j++ {
  26056. if j > 0 {
  26057. dd.ReadMapEntrySeparator()
  26058. }
  26059. mk := dd.DecodeBool()
  26060. dd.ReadMapKVSeparator()
  26061. mv := v[mk]
  26062. mv = dd.DecodeUint(64)
  26063. if v != nil {
  26064. v[mk] = mv
  26065. }
  26066. }
  26067. dd.ReadMapEnd()
  26068. }
  26069. return v, changed
  26070. }
  26071. func (f decFnInfo) fastpathDecMapBoolIntR(rv reflect.Value) {
  26072. if rv.CanAddr() {
  26073. vp := rv.Addr().Interface().(*map[bool]int)
  26074. v, changed := fastpathTV.DecMapBoolIntV(*vp, fastpathCheckNilFalse, true, f.d)
  26075. if changed {
  26076. *vp = v
  26077. }
  26078. } else {
  26079. v := rv.Interface().(map[bool]int)
  26080. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, f.d)
  26081. }
  26082. }
  26083. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, checkNil bool, d *Decoder) {
  26084. v, changed := f.DecMapBoolIntV(*vp, checkNil, true, d)
  26085. if changed {
  26086. *vp = v
  26087. }
  26088. }
  26089. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, checkNil bool, canChange bool,
  26090. d *Decoder) (_ map[bool]int, changed bool) {
  26091. dd := d.d
  26092. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  26093. if checkNil && dd.TryDecodeAsNil() {
  26094. if v != nil {
  26095. changed = true
  26096. }
  26097. return nil, changed
  26098. }
  26099. containerLen := dd.ReadMapStart()
  26100. if canChange && v == nil {
  26101. if containerLen > 0 {
  26102. v = make(map[bool]int, containerLen)
  26103. } else {
  26104. v = make(map[bool]int) // supports indefinite-length, etc
  26105. }
  26106. changed = true
  26107. }
  26108. if containerLen > 0 {
  26109. for j := 0; j < containerLen; j++ {
  26110. mk := dd.DecodeBool()
  26111. mv := v[mk]
  26112. mv = int(dd.DecodeInt(intBitsize))
  26113. if v != nil {
  26114. v[mk] = mv
  26115. }
  26116. }
  26117. } else if containerLen < 0 {
  26118. for j := 0; !dd.CheckBreak(); j++ {
  26119. if j > 0 {
  26120. dd.ReadMapEntrySeparator()
  26121. }
  26122. mk := dd.DecodeBool()
  26123. dd.ReadMapKVSeparator()
  26124. mv := v[mk]
  26125. mv = int(dd.DecodeInt(intBitsize))
  26126. if v != nil {
  26127. v[mk] = mv
  26128. }
  26129. }
  26130. dd.ReadMapEnd()
  26131. }
  26132. return v, changed
  26133. }
  26134. func (f decFnInfo) fastpathDecMapBoolInt8R(rv reflect.Value) {
  26135. if rv.CanAddr() {
  26136. vp := rv.Addr().Interface().(*map[bool]int8)
  26137. v, changed := fastpathTV.DecMapBoolInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  26138. if changed {
  26139. *vp = v
  26140. }
  26141. } else {
  26142. v := rv.Interface().(map[bool]int8)
  26143. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, f.d)
  26144. }
  26145. }
  26146. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, checkNil bool, d *Decoder) {
  26147. v, changed := f.DecMapBoolInt8V(*vp, checkNil, true, d)
  26148. if changed {
  26149. *vp = v
  26150. }
  26151. }
  26152. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, checkNil bool, canChange bool,
  26153. d *Decoder) (_ map[bool]int8, changed bool) {
  26154. dd := d.d
  26155. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  26156. if checkNil && dd.TryDecodeAsNil() {
  26157. if v != nil {
  26158. changed = true
  26159. }
  26160. return nil, changed
  26161. }
  26162. containerLen := dd.ReadMapStart()
  26163. if canChange && v == nil {
  26164. if containerLen > 0 {
  26165. v = make(map[bool]int8, containerLen)
  26166. } else {
  26167. v = make(map[bool]int8) // supports indefinite-length, etc
  26168. }
  26169. changed = true
  26170. }
  26171. if containerLen > 0 {
  26172. for j := 0; j < containerLen; j++ {
  26173. mk := dd.DecodeBool()
  26174. mv := v[mk]
  26175. mv = int8(dd.DecodeInt(8))
  26176. if v != nil {
  26177. v[mk] = mv
  26178. }
  26179. }
  26180. } else if containerLen < 0 {
  26181. for j := 0; !dd.CheckBreak(); j++ {
  26182. if j > 0 {
  26183. dd.ReadMapEntrySeparator()
  26184. }
  26185. mk := dd.DecodeBool()
  26186. dd.ReadMapKVSeparator()
  26187. mv := v[mk]
  26188. mv = int8(dd.DecodeInt(8))
  26189. if v != nil {
  26190. v[mk] = mv
  26191. }
  26192. }
  26193. dd.ReadMapEnd()
  26194. }
  26195. return v, changed
  26196. }
  26197. func (f decFnInfo) fastpathDecMapBoolInt16R(rv reflect.Value) {
  26198. if rv.CanAddr() {
  26199. vp := rv.Addr().Interface().(*map[bool]int16)
  26200. v, changed := fastpathTV.DecMapBoolInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  26201. if changed {
  26202. *vp = v
  26203. }
  26204. } else {
  26205. v := rv.Interface().(map[bool]int16)
  26206. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, f.d)
  26207. }
  26208. }
  26209. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, checkNil bool, d *Decoder) {
  26210. v, changed := f.DecMapBoolInt16V(*vp, checkNil, true, d)
  26211. if changed {
  26212. *vp = v
  26213. }
  26214. }
  26215. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, checkNil bool, canChange bool,
  26216. d *Decoder) (_ map[bool]int16, changed bool) {
  26217. dd := d.d
  26218. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  26219. if checkNil && dd.TryDecodeAsNil() {
  26220. if v != nil {
  26221. changed = true
  26222. }
  26223. return nil, changed
  26224. }
  26225. containerLen := dd.ReadMapStart()
  26226. if canChange && v == nil {
  26227. if containerLen > 0 {
  26228. v = make(map[bool]int16, containerLen)
  26229. } else {
  26230. v = make(map[bool]int16) // supports indefinite-length, etc
  26231. }
  26232. changed = true
  26233. }
  26234. if containerLen > 0 {
  26235. for j := 0; j < containerLen; j++ {
  26236. mk := dd.DecodeBool()
  26237. mv := v[mk]
  26238. mv = int16(dd.DecodeInt(16))
  26239. if v != nil {
  26240. v[mk] = mv
  26241. }
  26242. }
  26243. } else if containerLen < 0 {
  26244. for j := 0; !dd.CheckBreak(); j++ {
  26245. if j > 0 {
  26246. dd.ReadMapEntrySeparator()
  26247. }
  26248. mk := dd.DecodeBool()
  26249. dd.ReadMapKVSeparator()
  26250. mv := v[mk]
  26251. mv = int16(dd.DecodeInt(16))
  26252. if v != nil {
  26253. v[mk] = mv
  26254. }
  26255. }
  26256. dd.ReadMapEnd()
  26257. }
  26258. return v, changed
  26259. }
  26260. func (f decFnInfo) fastpathDecMapBoolInt32R(rv reflect.Value) {
  26261. if rv.CanAddr() {
  26262. vp := rv.Addr().Interface().(*map[bool]int32)
  26263. v, changed := fastpathTV.DecMapBoolInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  26264. if changed {
  26265. *vp = v
  26266. }
  26267. } else {
  26268. v := rv.Interface().(map[bool]int32)
  26269. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, f.d)
  26270. }
  26271. }
  26272. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, checkNil bool, d *Decoder) {
  26273. v, changed := f.DecMapBoolInt32V(*vp, checkNil, true, d)
  26274. if changed {
  26275. *vp = v
  26276. }
  26277. }
  26278. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, checkNil bool, canChange bool,
  26279. d *Decoder) (_ map[bool]int32, changed bool) {
  26280. dd := d.d
  26281. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  26282. if checkNil && dd.TryDecodeAsNil() {
  26283. if v != nil {
  26284. changed = true
  26285. }
  26286. return nil, changed
  26287. }
  26288. containerLen := dd.ReadMapStart()
  26289. if canChange && v == nil {
  26290. if containerLen > 0 {
  26291. v = make(map[bool]int32, containerLen)
  26292. } else {
  26293. v = make(map[bool]int32) // supports indefinite-length, etc
  26294. }
  26295. changed = true
  26296. }
  26297. if containerLen > 0 {
  26298. for j := 0; j < containerLen; j++ {
  26299. mk := dd.DecodeBool()
  26300. mv := v[mk]
  26301. mv = int32(dd.DecodeInt(32))
  26302. if v != nil {
  26303. v[mk] = mv
  26304. }
  26305. }
  26306. } else if containerLen < 0 {
  26307. for j := 0; !dd.CheckBreak(); j++ {
  26308. if j > 0 {
  26309. dd.ReadMapEntrySeparator()
  26310. }
  26311. mk := dd.DecodeBool()
  26312. dd.ReadMapKVSeparator()
  26313. mv := v[mk]
  26314. mv = int32(dd.DecodeInt(32))
  26315. if v != nil {
  26316. v[mk] = mv
  26317. }
  26318. }
  26319. dd.ReadMapEnd()
  26320. }
  26321. return v, changed
  26322. }
  26323. func (f decFnInfo) fastpathDecMapBoolInt64R(rv reflect.Value) {
  26324. if rv.CanAddr() {
  26325. vp := rv.Addr().Interface().(*map[bool]int64)
  26326. v, changed := fastpathTV.DecMapBoolInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  26327. if changed {
  26328. *vp = v
  26329. }
  26330. } else {
  26331. v := rv.Interface().(map[bool]int64)
  26332. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, f.d)
  26333. }
  26334. }
  26335. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, checkNil bool, d *Decoder) {
  26336. v, changed := f.DecMapBoolInt64V(*vp, checkNil, true, d)
  26337. if changed {
  26338. *vp = v
  26339. }
  26340. }
  26341. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, checkNil bool, canChange bool,
  26342. d *Decoder) (_ map[bool]int64, changed bool) {
  26343. dd := d.d
  26344. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  26345. if checkNil && dd.TryDecodeAsNil() {
  26346. if v != nil {
  26347. changed = true
  26348. }
  26349. return nil, changed
  26350. }
  26351. containerLen := dd.ReadMapStart()
  26352. if canChange && v == nil {
  26353. if containerLen > 0 {
  26354. v = make(map[bool]int64, containerLen)
  26355. } else {
  26356. v = make(map[bool]int64) // supports indefinite-length, etc
  26357. }
  26358. changed = true
  26359. }
  26360. if containerLen > 0 {
  26361. for j := 0; j < containerLen; j++ {
  26362. mk := dd.DecodeBool()
  26363. mv := v[mk]
  26364. mv = dd.DecodeInt(64)
  26365. if v != nil {
  26366. v[mk] = mv
  26367. }
  26368. }
  26369. } else if containerLen < 0 {
  26370. for j := 0; !dd.CheckBreak(); j++ {
  26371. if j > 0 {
  26372. dd.ReadMapEntrySeparator()
  26373. }
  26374. mk := dd.DecodeBool()
  26375. dd.ReadMapKVSeparator()
  26376. mv := v[mk]
  26377. mv = dd.DecodeInt(64)
  26378. if v != nil {
  26379. v[mk] = mv
  26380. }
  26381. }
  26382. dd.ReadMapEnd()
  26383. }
  26384. return v, changed
  26385. }
  26386. func (f decFnInfo) fastpathDecMapBoolFloat32R(rv reflect.Value) {
  26387. if rv.CanAddr() {
  26388. vp := rv.Addr().Interface().(*map[bool]float32)
  26389. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  26390. if changed {
  26391. *vp = v
  26392. }
  26393. } else {
  26394. v := rv.Interface().(map[bool]float32)
  26395. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, f.d)
  26396. }
  26397. }
  26398. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, checkNil bool, d *Decoder) {
  26399. v, changed := f.DecMapBoolFloat32V(*vp, checkNil, true, d)
  26400. if changed {
  26401. *vp = v
  26402. }
  26403. }
  26404. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, checkNil bool, canChange bool,
  26405. d *Decoder) (_ map[bool]float32, changed bool) {
  26406. dd := d.d
  26407. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  26408. if checkNil && dd.TryDecodeAsNil() {
  26409. if v != nil {
  26410. changed = true
  26411. }
  26412. return nil, changed
  26413. }
  26414. containerLen := dd.ReadMapStart()
  26415. if canChange && v == nil {
  26416. if containerLen > 0 {
  26417. v = make(map[bool]float32, containerLen)
  26418. } else {
  26419. v = make(map[bool]float32) // supports indefinite-length, etc
  26420. }
  26421. changed = true
  26422. }
  26423. if containerLen > 0 {
  26424. for j := 0; j < containerLen; j++ {
  26425. mk := dd.DecodeBool()
  26426. mv := v[mk]
  26427. mv = float32(dd.DecodeFloat(true))
  26428. if v != nil {
  26429. v[mk] = mv
  26430. }
  26431. }
  26432. } else if containerLen < 0 {
  26433. for j := 0; !dd.CheckBreak(); j++ {
  26434. if j > 0 {
  26435. dd.ReadMapEntrySeparator()
  26436. }
  26437. mk := dd.DecodeBool()
  26438. dd.ReadMapKVSeparator()
  26439. mv := v[mk]
  26440. mv = float32(dd.DecodeFloat(true))
  26441. if v != nil {
  26442. v[mk] = mv
  26443. }
  26444. }
  26445. dd.ReadMapEnd()
  26446. }
  26447. return v, changed
  26448. }
  26449. func (f decFnInfo) fastpathDecMapBoolFloat64R(rv reflect.Value) {
  26450. if rv.CanAddr() {
  26451. vp := rv.Addr().Interface().(*map[bool]float64)
  26452. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  26453. if changed {
  26454. *vp = v
  26455. }
  26456. } else {
  26457. v := rv.Interface().(map[bool]float64)
  26458. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, f.d)
  26459. }
  26460. }
  26461. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, checkNil bool, d *Decoder) {
  26462. v, changed := f.DecMapBoolFloat64V(*vp, checkNil, true, d)
  26463. if changed {
  26464. *vp = v
  26465. }
  26466. }
  26467. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, checkNil bool, canChange bool,
  26468. d *Decoder) (_ map[bool]float64, changed bool) {
  26469. dd := d.d
  26470. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  26471. if checkNil && dd.TryDecodeAsNil() {
  26472. if v != nil {
  26473. changed = true
  26474. }
  26475. return nil, changed
  26476. }
  26477. containerLen := dd.ReadMapStart()
  26478. if canChange && v == nil {
  26479. if containerLen > 0 {
  26480. v = make(map[bool]float64, containerLen)
  26481. } else {
  26482. v = make(map[bool]float64) // supports indefinite-length, etc
  26483. }
  26484. changed = true
  26485. }
  26486. if containerLen > 0 {
  26487. for j := 0; j < containerLen; j++ {
  26488. mk := dd.DecodeBool()
  26489. mv := v[mk]
  26490. mv = dd.DecodeFloat(false)
  26491. if v != nil {
  26492. v[mk] = mv
  26493. }
  26494. }
  26495. } else if containerLen < 0 {
  26496. for j := 0; !dd.CheckBreak(); j++ {
  26497. if j > 0 {
  26498. dd.ReadMapEntrySeparator()
  26499. }
  26500. mk := dd.DecodeBool()
  26501. dd.ReadMapKVSeparator()
  26502. mv := v[mk]
  26503. mv = dd.DecodeFloat(false)
  26504. if v != nil {
  26505. v[mk] = mv
  26506. }
  26507. }
  26508. dd.ReadMapEnd()
  26509. }
  26510. return v, changed
  26511. }
  26512. func (f decFnInfo) fastpathDecMapBoolBoolR(rv reflect.Value) {
  26513. if rv.CanAddr() {
  26514. vp := rv.Addr().Interface().(*map[bool]bool)
  26515. v, changed := fastpathTV.DecMapBoolBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  26516. if changed {
  26517. *vp = v
  26518. }
  26519. } else {
  26520. v := rv.Interface().(map[bool]bool)
  26521. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, f.d)
  26522. }
  26523. }
  26524. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, checkNil bool, d *Decoder) {
  26525. v, changed := f.DecMapBoolBoolV(*vp, checkNil, true, d)
  26526. if changed {
  26527. *vp = v
  26528. }
  26529. }
  26530. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, checkNil bool, canChange bool,
  26531. d *Decoder) (_ map[bool]bool, changed bool) {
  26532. dd := d.d
  26533. // if dd.isContainerType(valueTypeNil) {dd.TryDecodeAsNil()
  26534. if checkNil && dd.TryDecodeAsNil() {
  26535. if v != nil {
  26536. changed = true
  26537. }
  26538. return nil, changed
  26539. }
  26540. containerLen := dd.ReadMapStart()
  26541. if canChange && v == nil {
  26542. if containerLen > 0 {
  26543. v = make(map[bool]bool, containerLen)
  26544. } else {
  26545. v = make(map[bool]bool) // supports indefinite-length, etc
  26546. }
  26547. changed = true
  26548. }
  26549. if containerLen > 0 {
  26550. for j := 0; j < containerLen; j++ {
  26551. mk := dd.DecodeBool()
  26552. mv := v[mk]
  26553. mv = dd.DecodeBool()
  26554. if v != nil {
  26555. v[mk] = mv
  26556. }
  26557. }
  26558. } else if containerLen < 0 {
  26559. for j := 0; !dd.CheckBreak(); j++ {
  26560. if j > 0 {
  26561. dd.ReadMapEntrySeparator()
  26562. }
  26563. mk := dd.DecodeBool()
  26564. dd.ReadMapKVSeparator()
  26565. mv := v[mk]
  26566. mv = dd.DecodeBool()
  26567. if v != nil {
  26568. v[mk] = mv
  26569. }
  26570. }
  26571. dd.ReadMapEnd()
  26572. }
  26573. return v, changed
  26574. }