fast-path.generated.go 754 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680
  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 [271]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, 271 // 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 < 271 && 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([]uintptr(nil), (*encFnInfo).fastpathEncSliceUintptrR, (*decFnInfo).fastpathDecSliceUintptrR)
  89. fn([]int(nil), (*encFnInfo).fastpathEncSliceIntR, (*decFnInfo).fastpathDecSliceIntR)
  90. fn([]int8(nil), (*encFnInfo).fastpathEncSliceInt8R, (*decFnInfo).fastpathDecSliceInt8R)
  91. fn([]int16(nil), (*encFnInfo).fastpathEncSliceInt16R, (*decFnInfo).fastpathDecSliceInt16R)
  92. fn([]int32(nil), (*encFnInfo).fastpathEncSliceInt32R, (*decFnInfo).fastpathDecSliceInt32R)
  93. fn([]int64(nil), (*encFnInfo).fastpathEncSliceInt64R, (*decFnInfo).fastpathDecSliceInt64R)
  94. fn([]bool(nil), (*encFnInfo).fastpathEncSliceBoolR, (*decFnInfo).fastpathDecSliceBoolR)
  95. fn(map[interface{}]interface{}(nil), (*encFnInfo).fastpathEncMapIntfIntfR, (*decFnInfo).fastpathDecMapIntfIntfR)
  96. fn(map[interface{}]string(nil), (*encFnInfo).fastpathEncMapIntfStringR, (*decFnInfo).fastpathDecMapIntfStringR)
  97. fn(map[interface{}]uint(nil), (*encFnInfo).fastpathEncMapIntfUintR, (*decFnInfo).fastpathDecMapIntfUintR)
  98. fn(map[interface{}]uint8(nil), (*encFnInfo).fastpathEncMapIntfUint8R, (*decFnInfo).fastpathDecMapIntfUint8R)
  99. fn(map[interface{}]uint16(nil), (*encFnInfo).fastpathEncMapIntfUint16R, (*decFnInfo).fastpathDecMapIntfUint16R)
  100. fn(map[interface{}]uint32(nil), (*encFnInfo).fastpathEncMapIntfUint32R, (*decFnInfo).fastpathDecMapIntfUint32R)
  101. fn(map[interface{}]uint64(nil), (*encFnInfo).fastpathEncMapIntfUint64R, (*decFnInfo).fastpathDecMapIntfUint64R)
  102. fn(map[interface{}]uintptr(nil), (*encFnInfo).fastpathEncMapIntfUintptrR, (*decFnInfo).fastpathDecMapIntfUintptrR)
  103. fn(map[interface{}]int(nil), (*encFnInfo).fastpathEncMapIntfIntR, (*decFnInfo).fastpathDecMapIntfIntR)
  104. fn(map[interface{}]int8(nil), (*encFnInfo).fastpathEncMapIntfInt8R, (*decFnInfo).fastpathDecMapIntfInt8R)
  105. fn(map[interface{}]int16(nil), (*encFnInfo).fastpathEncMapIntfInt16R, (*decFnInfo).fastpathDecMapIntfInt16R)
  106. fn(map[interface{}]int32(nil), (*encFnInfo).fastpathEncMapIntfInt32R, (*decFnInfo).fastpathDecMapIntfInt32R)
  107. fn(map[interface{}]int64(nil), (*encFnInfo).fastpathEncMapIntfInt64R, (*decFnInfo).fastpathDecMapIntfInt64R)
  108. fn(map[interface{}]float32(nil), (*encFnInfo).fastpathEncMapIntfFloat32R, (*decFnInfo).fastpathDecMapIntfFloat32R)
  109. fn(map[interface{}]float64(nil), (*encFnInfo).fastpathEncMapIntfFloat64R, (*decFnInfo).fastpathDecMapIntfFloat64R)
  110. fn(map[interface{}]bool(nil), (*encFnInfo).fastpathEncMapIntfBoolR, (*decFnInfo).fastpathDecMapIntfBoolR)
  111. fn(map[string]interface{}(nil), (*encFnInfo).fastpathEncMapStringIntfR, (*decFnInfo).fastpathDecMapStringIntfR)
  112. fn(map[string]string(nil), (*encFnInfo).fastpathEncMapStringStringR, (*decFnInfo).fastpathDecMapStringStringR)
  113. fn(map[string]uint(nil), (*encFnInfo).fastpathEncMapStringUintR, (*decFnInfo).fastpathDecMapStringUintR)
  114. fn(map[string]uint8(nil), (*encFnInfo).fastpathEncMapStringUint8R, (*decFnInfo).fastpathDecMapStringUint8R)
  115. fn(map[string]uint16(nil), (*encFnInfo).fastpathEncMapStringUint16R, (*decFnInfo).fastpathDecMapStringUint16R)
  116. fn(map[string]uint32(nil), (*encFnInfo).fastpathEncMapStringUint32R, (*decFnInfo).fastpathDecMapStringUint32R)
  117. fn(map[string]uint64(nil), (*encFnInfo).fastpathEncMapStringUint64R, (*decFnInfo).fastpathDecMapStringUint64R)
  118. fn(map[string]uintptr(nil), (*encFnInfo).fastpathEncMapStringUintptrR, (*decFnInfo).fastpathDecMapStringUintptrR)
  119. fn(map[string]int(nil), (*encFnInfo).fastpathEncMapStringIntR, (*decFnInfo).fastpathDecMapStringIntR)
  120. fn(map[string]int8(nil), (*encFnInfo).fastpathEncMapStringInt8R, (*decFnInfo).fastpathDecMapStringInt8R)
  121. fn(map[string]int16(nil), (*encFnInfo).fastpathEncMapStringInt16R, (*decFnInfo).fastpathDecMapStringInt16R)
  122. fn(map[string]int32(nil), (*encFnInfo).fastpathEncMapStringInt32R, (*decFnInfo).fastpathDecMapStringInt32R)
  123. fn(map[string]int64(nil), (*encFnInfo).fastpathEncMapStringInt64R, (*decFnInfo).fastpathDecMapStringInt64R)
  124. fn(map[string]float32(nil), (*encFnInfo).fastpathEncMapStringFloat32R, (*decFnInfo).fastpathDecMapStringFloat32R)
  125. fn(map[string]float64(nil), (*encFnInfo).fastpathEncMapStringFloat64R, (*decFnInfo).fastpathDecMapStringFloat64R)
  126. fn(map[string]bool(nil), (*encFnInfo).fastpathEncMapStringBoolR, (*decFnInfo).fastpathDecMapStringBoolR)
  127. fn(map[float32]interface{}(nil), (*encFnInfo).fastpathEncMapFloat32IntfR, (*decFnInfo).fastpathDecMapFloat32IntfR)
  128. fn(map[float32]string(nil), (*encFnInfo).fastpathEncMapFloat32StringR, (*decFnInfo).fastpathDecMapFloat32StringR)
  129. fn(map[float32]uint(nil), (*encFnInfo).fastpathEncMapFloat32UintR, (*decFnInfo).fastpathDecMapFloat32UintR)
  130. fn(map[float32]uint8(nil), (*encFnInfo).fastpathEncMapFloat32Uint8R, (*decFnInfo).fastpathDecMapFloat32Uint8R)
  131. fn(map[float32]uint16(nil), (*encFnInfo).fastpathEncMapFloat32Uint16R, (*decFnInfo).fastpathDecMapFloat32Uint16R)
  132. fn(map[float32]uint32(nil), (*encFnInfo).fastpathEncMapFloat32Uint32R, (*decFnInfo).fastpathDecMapFloat32Uint32R)
  133. fn(map[float32]uint64(nil), (*encFnInfo).fastpathEncMapFloat32Uint64R, (*decFnInfo).fastpathDecMapFloat32Uint64R)
  134. fn(map[float32]uintptr(nil), (*encFnInfo).fastpathEncMapFloat32UintptrR, (*decFnInfo).fastpathDecMapFloat32UintptrR)
  135. fn(map[float32]int(nil), (*encFnInfo).fastpathEncMapFloat32IntR, (*decFnInfo).fastpathDecMapFloat32IntR)
  136. fn(map[float32]int8(nil), (*encFnInfo).fastpathEncMapFloat32Int8R, (*decFnInfo).fastpathDecMapFloat32Int8R)
  137. fn(map[float32]int16(nil), (*encFnInfo).fastpathEncMapFloat32Int16R, (*decFnInfo).fastpathDecMapFloat32Int16R)
  138. fn(map[float32]int32(nil), (*encFnInfo).fastpathEncMapFloat32Int32R, (*decFnInfo).fastpathDecMapFloat32Int32R)
  139. fn(map[float32]int64(nil), (*encFnInfo).fastpathEncMapFloat32Int64R, (*decFnInfo).fastpathDecMapFloat32Int64R)
  140. fn(map[float32]float32(nil), (*encFnInfo).fastpathEncMapFloat32Float32R, (*decFnInfo).fastpathDecMapFloat32Float32R)
  141. fn(map[float32]float64(nil), (*encFnInfo).fastpathEncMapFloat32Float64R, (*decFnInfo).fastpathDecMapFloat32Float64R)
  142. fn(map[float32]bool(nil), (*encFnInfo).fastpathEncMapFloat32BoolR, (*decFnInfo).fastpathDecMapFloat32BoolR)
  143. fn(map[float64]interface{}(nil), (*encFnInfo).fastpathEncMapFloat64IntfR, (*decFnInfo).fastpathDecMapFloat64IntfR)
  144. fn(map[float64]string(nil), (*encFnInfo).fastpathEncMapFloat64StringR, (*decFnInfo).fastpathDecMapFloat64StringR)
  145. fn(map[float64]uint(nil), (*encFnInfo).fastpathEncMapFloat64UintR, (*decFnInfo).fastpathDecMapFloat64UintR)
  146. fn(map[float64]uint8(nil), (*encFnInfo).fastpathEncMapFloat64Uint8R, (*decFnInfo).fastpathDecMapFloat64Uint8R)
  147. fn(map[float64]uint16(nil), (*encFnInfo).fastpathEncMapFloat64Uint16R, (*decFnInfo).fastpathDecMapFloat64Uint16R)
  148. fn(map[float64]uint32(nil), (*encFnInfo).fastpathEncMapFloat64Uint32R, (*decFnInfo).fastpathDecMapFloat64Uint32R)
  149. fn(map[float64]uint64(nil), (*encFnInfo).fastpathEncMapFloat64Uint64R, (*decFnInfo).fastpathDecMapFloat64Uint64R)
  150. fn(map[float64]uintptr(nil), (*encFnInfo).fastpathEncMapFloat64UintptrR, (*decFnInfo).fastpathDecMapFloat64UintptrR)
  151. fn(map[float64]int(nil), (*encFnInfo).fastpathEncMapFloat64IntR, (*decFnInfo).fastpathDecMapFloat64IntR)
  152. fn(map[float64]int8(nil), (*encFnInfo).fastpathEncMapFloat64Int8R, (*decFnInfo).fastpathDecMapFloat64Int8R)
  153. fn(map[float64]int16(nil), (*encFnInfo).fastpathEncMapFloat64Int16R, (*decFnInfo).fastpathDecMapFloat64Int16R)
  154. fn(map[float64]int32(nil), (*encFnInfo).fastpathEncMapFloat64Int32R, (*decFnInfo).fastpathDecMapFloat64Int32R)
  155. fn(map[float64]int64(nil), (*encFnInfo).fastpathEncMapFloat64Int64R, (*decFnInfo).fastpathDecMapFloat64Int64R)
  156. fn(map[float64]float32(nil), (*encFnInfo).fastpathEncMapFloat64Float32R, (*decFnInfo).fastpathDecMapFloat64Float32R)
  157. fn(map[float64]float64(nil), (*encFnInfo).fastpathEncMapFloat64Float64R, (*decFnInfo).fastpathDecMapFloat64Float64R)
  158. fn(map[float64]bool(nil), (*encFnInfo).fastpathEncMapFloat64BoolR, (*decFnInfo).fastpathDecMapFloat64BoolR)
  159. fn(map[uint]interface{}(nil), (*encFnInfo).fastpathEncMapUintIntfR, (*decFnInfo).fastpathDecMapUintIntfR)
  160. fn(map[uint]string(nil), (*encFnInfo).fastpathEncMapUintStringR, (*decFnInfo).fastpathDecMapUintStringR)
  161. fn(map[uint]uint(nil), (*encFnInfo).fastpathEncMapUintUintR, (*decFnInfo).fastpathDecMapUintUintR)
  162. fn(map[uint]uint8(nil), (*encFnInfo).fastpathEncMapUintUint8R, (*decFnInfo).fastpathDecMapUintUint8R)
  163. fn(map[uint]uint16(nil), (*encFnInfo).fastpathEncMapUintUint16R, (*decFnInfo).fastpathDecMapUintUint16R)
  164. fn(map[uint]uint32(nil), (*encFnInfo).fastpathEncMapUintUint32R, (*decFnInfo).fastpathDecMapUintUint32R)
  165. fn(map[uint]uint64(nil), (*encFnInfo).fastpathEncMapUintUint64R, (*decFnInfo).fastpathDecMapUintUint64R)
  166. fn(map[uint]uintptr(nil), (*encFnInfo).fastpathEncMapUintUintptrR, (*decFnInfo).fastpathDecMapUintUintptrR)
  167. fn(map[uint]int(nil), (*encFnInfo).fastpathEncMapUintIntR, (*decFnInfo).fastpathDecMapUintIntR)
  168. fn(map[uint]int8(nil), (*encFnInfo).fastpathEncMapUintInt8R, (*decFnInfo).fastpathDecMapUintInt8R)
  169. fn(map[uint]int16(nil), (*encFnInfo).fastpathEncMapUintInt16R, (*decFnInfo).fastpathDecMapUintInt16R)
  170. fn(map[uint]int32(nil), (*encFnInfo).fastpathEncMapUintInt32R, (*decFnInfo).fastpathDecMapUintInt32R)
  171. fn(map[uint]int64(nil), (*encFnInfo).fastpathEncMapUintInt64R, (*decFnInfo).fastpathDecMapUintInt64R)
  172. fn(map[uint]float32(nil), (*encFnInfo).fastpathEncMapUintFloat32R, (*decFnInfo).fastpathDecMapUintFloat32R)
  173. fn(map[uint]float64(nil), (*encFnInfo).fastpathEncMapUintFloat64R, (*decFnInfo).fastpathDecMapUintFloat64R)
  174. fn(map[uint]bool(nil), (*encFnInfo).fastpathEncMapUintBoolR, (*decFnInfo).fastpathDecMapUintBoolR)
  175. fn(map[uint8]interface{}(nil), (*encFnInfo).fastpathEncMapUint8IntfR, (*decFnInfo).fastpathDecMapUint8IntfR)
  176. fn(map[uint8]string(nil), (*encFnInfo).fastpathEncMapUint8StringR, (*decFnInfo).fastpathDecMapUint8StringR)
  177. fn(map[uint8]uint(nil), (*encFnInfo).fastpathEncMapUint8UintR, (*decFnInfo).fastpathDecMapUint8UintR)
  178. fn(map[uint8]uint8(nil), (*encFnInfo).fastpathEncMapUint8Uint8R, (*decFnInfo).fastpathDecMapUint8Uint8R)
  179. fn(map[uint8]uint16(nil), (*encFnInfo).fastpathEncMapUint8Uint16R, (*decFnInfo).fastpathDecMapUint8Uint16R)
  180. fn(map[uint8]uint32(nil), (*encFnInfo).fastpathEncMapUint8Uint32R, (*decFnInfo).fastpathDecMapUint8Uint32R)
  181. fn(map[uint8]uint64(nil), (*encFnInfo).fastpathEncMapUint8Uint64R, (*decFnInfo).fastpathDecMapUint8Uint64R)
  182. fn(map[uint8]uintptr(nil), (*encFnInfo).fastpathEncMapUint8UintptrR, (*decFnInfo).fastpathDecMapUint8UintptrR)
  183. fn(map[uint8]int(nil), (*encFnInfo).fastpathEncMapUint8IntR, (*decFnInfo).fastpathDecMapUint8IntR)
  184. fn(map[uint8]int8(nil), (*encFnInfo).fastpathEncMapUint8Int8R, (*decFnInfo).fastpathDecMapUint8Int8R)
  185. fn(map[uint8]int16(nil), (*encFnInfo).fastpathEncMapUint8Int16R, (*decFnInfo).fastpathDecMapUint8Int16R)
  186. fn(map[uint8]int32(nil), (*encFnInfo).fastpathEncMapUint8Int32R, (*decFnInfo).fastpathDecMapUint8Int32R)
  187. fn(map[uint8]int64(nil), (*encFnInfo).fastpathEncMapUint8Int64R, (*decFnInfo).fastpathDecMapUint8Int64R)
  188. fn(map[uint8]float32(nil), (*encFnInfo).fastpathEncMapUint8Float32R, (*decFnInfo).fastpathDecMapUint8Float32R)
  189. fn(map[uint8]float64(nil), (*encFnInfo).fastpathEncMapUint8Float64R, (*decFnInfo).fastpathDecMapUint8Float64R)
  190. fn(map[uint8]bool(nil), (*encFnInfo).fastpathEncMapUint8BoolR, (*decFnInfo).fastpathDecMapUint8BoolR)
  191. fn(map[uint16]interface{}(nil), (*encFnInfo).fastpathEncMapUint16IntfR, (*decFnInfo).fastpathDecMapUint16IntfR)
  192. fn(map[uint16]string(nil), (*encFnInfo).fastpathEncMapUint16StringR, (*decFnInfo).fastpathDecMapUint16StringR)
  193. fn(map[uint16]uint(nil), (*encFnInfo).fastpathEncMapUint16UintR, (*decFnInfo).fastpathDecMapUint16UintR)
  194. fn(map[uint16]uint8(nil), (*encFnInfo).fastpathEncMapUint16Uint8R, (*decFnInfo).fastpathDecMapUint16Uint8R)
  195. fn(map[uint16]uint16(nil), (*encFnInfo).fastpathEncMapUint16Uint16R, (*decFnInfo).fastpathDecMapUint16Uint16R)
  196. fn(map[uint16]uint32(nil), (*encFnInfo).fastpathEncMapUint16Uint32R, (*decFnInfo).fastpathDecMapUint16Uint32R)
  197. fn(map[uint16]uint64(nil), (*encFnInfo).fastpathEncMapUint16Uint64R, (*decFnInfo).fastpathDecMapUint16Uint64R)
  198. fn(map[uint16]uintptr(nil), (*encFnInfo).fastpathEncMapUint16UintptrR, (*decFnInfo).fastpathDecMapUint16UintptrR)
  199. fn(map[uint16]int(nil), (*encFnInfo).fastpathEncMapUint16IntR, (*decFnInfo).fastpathDecMapUint16IntR)
  200. fn(map[uint16]int8(nil), (*encFnInfo).fastpathEncMapUint16Int8R, (*decFnInfo).fastpathDecMapUint16Int8R)
  201. fn(map[uint16]int16(nil), (*encFnInfo).fastpathEncMapUint16Int16R, (*decFnInfo).fastpathDecMapUint16Int16R)
  202. fn(map[uint16]int32(nil), (*encFnInfo).fastpathEncMapUint16Int32R, (*decFnInfo).fastpathDecMapUint16Int32R)
  203. fn(map[uint16]int64(nil), (*encFnInfo).fastpathEncMapUint16Int64R, (*decFnInfo).fastpathDecMapUint16Int64R)
  204. fn(map[uint16]float32(nil), (*encFnInfo).fastpathEncMapUint16Float32R, (*decFnInfo).fastpathDecMapUint16Float32R)
  205. fn(map[uint16]float64(nil), (*encFnInfo).fastpathEncMapUint16Float64R, (*decFnInfo).fastpathDecMapUint16Float64R)
  206. fn(map[uint16]bool(nil), (*encFnInfo).fastpathEncMapUint16BoolR, (*decFnInfo).fastpathDecMapUint16BoolR)
  207. fn(map[uint32]interface{}(nil), (*encFnInfo).fastpathEncMapUint32IntfR, (*decFnInfo).fastpathDecMapUint32IntfR)
  208. fn(map[uint32]string(nil), (*encFnInfo).fastpathEncMapUint32StringR, (*decFnInfo).fastpathDecMapUint32StringR)
  209. fn(map[uint32]uint(nil), (*encFnInfo).fastpathEncMapUint32UintR, (*decFnInfo).fastpathDecMapUint32UintR)
  210. fn(map[uint32]uint8(nil), (*encFnInfo).fastpathEncMapUint32Uint8R, (*decFnInfo).fastpathDecMapUint32Uint8R)
  211. fn(map[uint32]uint16(nil), (*encFnInfo).fastpathEncMapUint32Uint16R, (*decFnInfo).fastpathDecMapUint32Uint16R)
  212. fn(map[uint32]uint32(nil), (*encFnInfo).fastpathEncMapUint32Uint32R, (*decFnInfo).fastpathDecMapUint32Uint32R)
  213. fn(map[uint32]uint64(nil), (*encFnInfo).fastpathEncMapUint32Uint64R, (*decFnInfo).fastpathDecMapUint32Uint64R)
  214. fn(map[uint32]uintptr(nil), (*encFnInfo).fastpathEncMapUint32UintptrR, (*decFnInfo).fastpathDecMapUint32UintptrR)
  215. fn(map[uint32]int(nil), (*encFnInfo).fastpathEncMapUint32IntR, (*decFnInfo).fastpathDecMapUint32IntR)
  216. fn(map[uint32]int8(nil), (*encFnInfo).fastpathEncMapUint32Int8R, (*decFnInfo).fastpathDecMapUint32Int8R)
  217. fn(map[uint32]int16(nil), (*encFnInfo).fastpathEncMapUint32Int16R, (*decFnInfo).fastpathDecMapUint32Int16R)
  218. fn(map[uint32]int32(nil), (*encFnInfo).fastpathEncMapUint32Int32R, (*decFnInfo).fastpathDecMapUint32Int32R)
  219. fn(map[uint32]int64(nil), (*encFnInfo).fastpathEncMapUint32Int64R, (*decFnInfo).fastpathDecMapUint32Int64R)
  220. fn(map[uint32]float32(nil), (*encFnInfo).fastpathEncMapUint32Float32R, (*decFnInfo).fastpathDecMapUint32Float32R)
  221. fn(map[uint32]float64(nil), (*encFnInfo).fastpathEncMapUint32Float64R, (*decFnInfo).fastpathDecMapUint32Float64R)
  222. fn(map[uint32]bool(nil), (*encFnInfo).fastpathEncMapUint32BoolR, (*decFnInfo).fastpathDecMapUint32BoolR)
  223. fn(map[uint64]interface{}(nil), (*encFnInfo).fastpathEncMapUint64IntfR, (*decFnInfo).fastpathDecMapUint64IntfR)
  224. fn(map[uint64]string(nil), (*encFnInfo).fastpathEncMapUint64StringR, (*decFnInfo).fastpathDecMapUint64StringR)
  225. fn(map[uint64]uint(nil), (*encFnInfo).fastpathEncMapUint64UintR, (*decFnInfo).fastpathDecMapUint64UintR)
  226. fn(map[uint64]uint8(nil), (*encFnInfo).fastpathEncMapUint64Uint8R, (*decFnInfo).fastpathDecMapUint64Uint8R)
  227. fn(map[uint64]uint16(nil), (*encFnInfo).fastpathEncMapUint64Uint16R, (*decFnInfo).fastpathDecMapUint64Uint16R)
  228. fn(map[uint64]uint32(nil), (*encFnInfo).fastpathEncMapUint64Uint32R, (*decFnInfo).fastpathDecMapUint64Uint32R)
  229. fn(map[uint64]uint64(nil), (*encFnInfo).fastpathEncMapUint64Uint64R, (*decFnInfo).fastpathDecMapUint64Uint64R)
  230. fn(map[uint64]uintptr(nil), (*encFnInfo).fastpathEncMapUint64UintptrR, (*decFnInfo).fastpathDecMapUint64UintptrR)
  231. fn(map[uint64]int(nil), (*encFnInfo).fastpathEncMapUint64IntR, (*decFnInfo).fastpathDecMapUint64IntR)
  232. fn(map[uint64]int8(nil), (*encFnInfo).fastpathEncMapUint64Int8R, (*decFnInfo).fastpathDecMapUint64Int8R)
  233. fn(map[uint64]int16(nil), (*encFnInfo).fastpathEncMapUint64Int16R, (*decFnInfo).fastpathDecMapUint64Int16R)
  234. fn(map[uint64]int32(nil), (*encFnInfo).fastpathEncMapUint64Int32R, (*decFnInfo).fastpathDecMapUint64Int32R)
  235. fn(map[uint64]int64(nil), (*encFnInfo).fastpathEncMapUint64Int64R, (*decFnInfo).fastpathDecMapUint64Int64R)
  236. fn(map[uint64]float32(nil), (*encFnInfo).fastpathEncMapUint64Float32R, (*decFnInfo).fastpathDecMapUint64Float32R)
  237. fn(map[uint64]float64(nil), (*encFnInfo).fastpathEncMapUint64Float64R, (*decFnInfo).fastpathDecMapUint64Float64R)
  238. fn(map[uint64]bool(nil), (*encFnInfo).fastpathEncMapUint64BoolR, (*decFnInfo).fastpathDecMapUint64BoolR)
  239. fn(map[uintptr]interface{}(nil), (*encFnInfo).fastpathEncMapUintptrIntfR, (*decFnInfo).fastpathDecMapUintptrIntfR)
  240. fn(map[uintptr]string(nil), (*encFnInfo).fastpathEncMapUintptrStringR, (*decFnInfo).fastpathDecMapUintptrStringR)
  241. fn(map[uintptr]uint(nil), (*encFnInfo).fastpathEncMapUintptrUintR, (*decFnInfo).fastpathDecMapUintptrUintR)
  242. fn(map[uintptr]uint8(nil), (*encFnInfo).fastpathEncMapUintptrUint8R, (*decFnInfo).fastpathDecMapUintptrUint8R)
  243. fn(map[uintptr]uint16(nil), (*encFnInfo).fastpathEncMapUintptrUint16R, (*decFnInfo).fastpathDecMapUintptrUint16R)
  244. fn(map[uintptr]uint32(nil), (*encFnInfo).fastpathEncMapUintptrUint32R, (*decFnInfo).fastpathDecMapUintptrUint32R)
  245. fn(map[uintptr]uint64(nil), (*encFnInfo).fastpathEncMapUintptrUint64R, (*decFnInfo).fastpathDecMapUintptrUint64R)
  246. fn(map[uintptr]uintptr(nil), (*encFnInfo).fastpathEncMapUintptrUintptrR, (*decFnInfo).fastpathDecMapUintptrUintptrR)
  247. fn(map[uintptr]int(nil), (*encFnInfo).fastpathEncMapUintptrIntR, (*decFnInfo).fastpathDecMapUintptrIntR)
  248. fn(map[uintptr]int8(nil), (*encFnInfo).fastpathEncMapUintptrInt8R, (*decFnInfo).fastpathDecMapUintptrInt8R)
  249. fn(map[uintptr]int16(nil), (*encFnInfo).fastpathEncMapUintptrInt16R, (*decFnInfo).fastpathDecMapUintptrInt16R)
  250. fn(map[uintptr]int32(nil), (*encFnInfo).fastpathEncMapUintptrInt32R, (*decFnInfo).fastpathDecMapUintptrInt32R)
  251. fn(map[uintptr]int64(nil), (*encFnInfo).fastpathEncMapUintptrInt64R, (*decFnInfo).fastpathDecMapUintptrInt64R)
  252. fn(map[uintptr]float32(nil), (*encFnInfo).fastpathEncMapUintptrFloat32R, (*decFnInfo).fastpathDecMapUintptrFloat32R)
  253. fn(map[uintptr]float64(nil), (*encFnInfo).fastpathEncMapUintptrFloat64R, (*decFnInfo).fastpathDecMapUintptrFloat64R)
  254. fn(map[uintptr]bool(nil), (*encFnInfo).fastpathEncMapUintptrBoolR, (*decFnInfo).fastpathDecMapUintptrBoolR)
  255. fn(map[int]interface{}(nil), (*encFnInfo).fastpathEncMapIntIntfR, (*decFnInfo).fastpathDecMapIntIntfR)
  256. fn(map[int]string(nil), (*encFnInfo).fastpathEncMapIntStringR, (*decFnInfo).fastpathDecMapIntStringR)
  257. fn(map[int]uint(nil), (*encFnInfo).fastpathEncMapIntUintR, (*decFnInfo).fastpathDecMapIntUintR)
  258. fn(map[int]uint8(nil), (*encFnInfo).fastpathEncMapIntUint8R, (*decFnInfo).fastpathDecMapIntUint8R)
  259. fn(map[int]uint16(nil), (*encFnInfo).fastpathEncMapIntUint16R, (*decFnInfo).fastpathDecMapIntUint16R)
  260. fn(map[int]uint32(nil), (*encFnInfo).fastpathEncMapIntUint32R, (*decFnInfo).fastpathDecMapIntUint32R)
  261. fn(map[int]uint64(nil), (*encFnInfo).fastpathEncMapIntUint64R, (*decFnInfo).fastpathDecMapIntUint64R)
  262. fn(map[int]uintptr(nil), (*encFnInfo).fastpathEncMapIntUintptrR, (*decFnInfo).fastpathDecMapIntUintptrR)
  263. fn(map[int]int(nil), (*encFnInfo).fastpathEncMapIntIntR, (*decFnInfo).fastpathDecMapIntIntR)
  264. fn(map[int]int8(nil), (*encFnInfo).fastpathEncMapIntInt8R, (*decFnInfo).fastpathDecMapIntInt8R)
  265. fn(map[int]int16(nil), (*encFnInfo).fastpathEncMapIntInt16R, (*decFnInfo).fastpathDecMapIntInt16R)
  266. fn(map[int]int32(nil), (*encFnInfo).fastpathEncMapIntInt32R, (*decFnInfo).fastpathDecMapIntInt32R)
  267. fn(map[int]int64(nil), (*encFnInfo).fastpathEncMapIntInt64R, (*decFnInfo).fastpathDecMapIntInt64R)
  268. fn(map[int]float32(nil), (*encFnInfo).fastpathEncMapIntFloat32R, (*decFnInfo).fastpathDecMapIntFloat32R)
  269. fn(map[int]float64(nil), (*encFnInfo).fastpathEncMapIntFloat64R, (*decFnInfo).fastpathDecMapIntFloat64R)
  270. fn(map[int]bool(nil), (*encFnInfo).fastpathEncMapIntBoolR, (*decFnInfo).fastpathDecMapIntBoolR)
  271. fn(map[int8]interface{}(nil), (*encFnInfo).fastpathEncMapInt8IntfR, (*decFnInfo).fastpathDecMapInt8IntfR)
  272. fn(map[int8]string(nil), (*encFnInfo).fastpathEncMapInt8StringR, (*decFnInfo).fastpathDecMapInt8StringR)
  273. fn(map[int8]uint(nil), (*encFnInfo).fastpathEncMapInt8UintR, (*decFnInfo).fastpathDecMapInt8UintR)
  274. fn(map[int8]uint8(nil), (*encFnInfo).fastpathEncMapInt8Uint8R, (*decFnInfo).fastpathDecMapInt8Uint8R)
  275. fn(map[int8]uint16(nil), (*encFnInfo).fastpathEncMapInt8Uint16R, (*decFnInfo).fastpathDecMapInt8Uint16R)
  276. fn(map[int8]uint32(nil), (*encFnInfo).fastpathEncMapInt8Uint32R, (*decFnInfo).fastpathDecMapInt8Uint32R)
  277. fn(map[int8]uint64(nil), (*encFnInfo).fastpathEncMapInt8Uint64R, (*decFnInfo).fastpathDecMapInt8Uint64R)
  278. fn(map[int8]uintptr(nil), (*encFnInfo).fastpathEncMapInt8UintptrR, (*decFnInfo).fastpathDecMapInt8UintptrR)
  279. fn(map[int8]int(nil), (*encFnInfo).fastpathEncMapInt8IntR, (*decFnInfo).fastpathDecMapInt8IntR)
  280. fn(map[int8]int8(nil), (*encFnInfo).fastpathEncMapInt8Int8R, (*decFnInfo).fastpathDecMapInt8Int8R)
  281. fn(map[int8]int16(nil), (*encFnInfo).fastpathEncMapInt8Int16R, (*decFnInfo).fastpathDecMapInt8Int16R)
  282. fn(map[int8]int32(nil), (*encFnInfo).fastpathEncMapInt8Int32R, (*decFnInfo).fastpathDecMapInt8Int32R)
  283. fn(map[int8]int64(nil), (*encFnInfo).fastpathEncMapInt8Int64R, (*decFnInfo).fastpathDecMapInt8Int64R)
  284. fn(map[int8]float32(nil), (*encFnInfo).fastpathEncMapInt8Float32R, (*decFnInfo).fastpathDecMapInt8Float32R)
  285. fn(map[int8]float64(nil), (*encFnInfo).fastpathEncMapInt8Float64R, (*decFnInfo).fastpathDecMapInt8Float64R)
  286. fn(map[int8]bool(nil), (*encFnInfo).fastpathEncMapInt8BoolR, (*decFnInfo).fastpathDecMapInt8BoolR)
  287. fn(map[int16]interface{}(nil), (*encFnInfo).fastpathEncMapInt16IntfR, (*decFnInfo).fastpathDecMapInt16IntfR)
  288. fn(map[int16]string(nil), (*encFnInfo).fastpathEncMapInt16StringR, (*decFnInfo).fastpathDecMapInt16StringR)
  289. fn(map[int16]uint(nil), (*encFnInfo).fastpathEncMapInt16UintR, (*decFnInfo).fastpathDecMapInt16UintR)
  290. fn(map[int16]uint8(nil), (*encFnInfo).fastpathEncMapInt16Uint8R, (*decFnInfo).fastpathDecMapInt16Uint8R)
  291. fn(map[int16]uint16(nil), (*encFnInfo).fastpathEncMapInt16Uint16R, (*decFnInfo).fastpathDecMapInt16Uint16R)
  292. fn(map[int16]uint32(nil), (*encFnInfo).fastpathEncMapInt16Uint32R, (*decFnInfo).fastpathDecMapInt16Uint32R)
  293. fn(map[int16]uint64(nil), (*encFnInfo).fastpathEncMapInt16Uint64R, (*decFnInfo).fastpathDecMapInt16Uint64R)
  294. fn(map[int16]uintptr(nil), (*encFnInfo).fastpathEncMapInt16UintptrR, (*decFnInfo).fastpathDecMapInt16UintptrR)
  295. fn(map[int16]int(nil), (*encFnInfo).fastpathEncMapInt16IntR, (*decFnInfo).fastpathDecMapInt16IntR)
  296. fn(map[int16]int8(nil), (*encFnInfo).fastpathEncMapInt16Int8R, (*decFnInfo).fastpathDecMapInt16Int8R)
  297. fn(map[int16]int16(nil), (*encFnInfo).fastpathEncMapInt16Int16R, (*decFnInfo).fastpathDecMapInt16Int16R)
  298. fn(map[int16]int32(nil), (*encFnInfo).fastpathEncMapInt16Int32R, (*decFnInfo).fastpathDecMapInt16Int32R)
  299. fn(map[int16]int64(nil), (*encFnInfo).fastpathEncMapInt16Int64R, (*decFnInfo).fastpathDecMapInt16Int64R)
  300. fn(map[int16]float32(nil), (*encFnInfo).fastpathEncMapInt16Float32R, (*decFnInfo).fastpathDecMapInt16Float32R)
  301. fn(map[int16]float64(nil), (*encFnInfo).fastpathEncMapInt16Float64R, (*decFnInfo).fastpathDecMapInt16Float64R)
  302. fn(map[int16]bool(nil), (*encFnInfo).fastpathEncMapInt16BoolR, (*decFnInfo).fastpathDecMapInt16BoolR)
  303. fn(map[int32]interface{}(nil), (*encFnInfo).fastpathEncMapInt32IntfR, (*decFnInfo).fastpathDecMapInt32IntfR)
  304. fn(map[int32]string(nil), (*encFnInfo).fastpathEncMapInt32StringR, (*decFnInfo).fastpathDecMapInt32StringR)
  305. fn(map[int32]uint(nil), (*encFnInfo).fastpathEncMapInt32UintR, (*decFnInfo).fastpathDecMapInt32UintR)
  306. fn(map[int32]uint8(nil), (*encFnInfo).fastpathEncMapInt32Uint8R, (*decFnInfo).fastpathDecMapInt32Uint8R)
  307. fn(map[int32]uint16(nil), (*encFnInfo).fastpathEncMapInt32Uint16R, (*decFnInfo).fastpathDecMapInt32Uint16R)
  308. fn(map[int32]uint32(nil), (*encFnInfo).fastpathEncMapInt32Uint32R, (*decFnInfo).fastpathDecMapInt32Uint32R)
  309. fn(map[int32]uint64(nil), (*encFnInfo).fastpathEncMapInt32Uint64R, (*decFnInfo).fastpathDecMapInt32Uint64R)
  310. fn(map[int32]uintptr(nil), (*encFnInfo).fastpathEncMapInt32UintptrR, (*decFnInfo).fastpathDecMapInt32UintptrR)
  311. fn(map[int32]int(nil), (*encFnInfo).fastpathEncMapInt32IntR, (*decFnInfo).fastpathDecMapInt32IntR)
  312. fn(map[int32]int8(nil), (*encFnInfo).fastpathEncMapInt32Int8R, (*decFnInfo).fastpathDecMapInt32Int8R)
  313. fn(map[int32]int16(nil), (*encFnInfo).fastpathEncMapInt32Int16R, (*decFnInfo).fastpathDecMapInt32Int16R)
  314. fn(map[int32]int32(nil), (*encFnInfo).fastpathEncMapInt32Int32R, (*decFnInfo).fastpathDecMapInt32Int32R)
  315. fn(map[int32]int64(nil), (*encFnInfo).fastpathEncMapInt32Int64R, (*decFnInfo).fastpathDecMapInt32Int64R)
  316. fn(map[int32]float32(nil), (*encFnInfo).fastpathEncMapInt32Float32R, (*decFnInfo).fastpathDecMapInt32Float32R)
  317. fn(map[int32]float64(nil), (*encFnInfo).fastpathEncMapInt32Float64R, (*decFnInfo).fastpathDecMapInt32Float64R)
  318. fn(map[int32]bool(nil), (*encFnInfo).fastpathEncMapInt32BoolR, (*decFnInfo).fastpathDecMapInt32BoolR)
  319. fn(map[int64]interface{}(nil), (*encFnInfo).fastpathEncMapInt64IntfR, (*decFnInfo).fastpathDecMapInt64IntfR)
  320. fn(map[int64]string(nil), (*encFnInfo).fastpathEncMapInt64StringR, (*decFnInfo).fastpathDecMapInt64StringR)
  321. fn(map[int64]uint(nil), (*encFnInfo).fastpathEncMapInt64UintR, (*decFnInfo).fastpathDecMapInt64UintR)
  322. fn(map[int64]uint8(nil), (*encFnInfo).fastpathEncMapInt64Uint8R, (*decFnInfo).fastpathDecMapInt64Uint8R)
  323. fn(map[int64]uint16(nil), (*encFnInfo).fastpathEncMapInt64Uint16R, (*decFnInfo).fastpathDecMapInt64Uint16R)
  324. fn(map[int64]uint32(nil), (*encFnInfo).fastpathEncMapInt64Uint32R, (*decFnInfo).fastpathDecMapInt64Uint32R)
  325. fn(map[int64]uint64(nil), (*encFnInfo).fastpathEncMapInt64Uint64R, (*decFnInfo).fastpathDecMapInt64Uint64R)
  326. fn(map[int64]uintptr(nil), (*encFnInfo).fastpathEncMapInt64UintptrR, (*decFnInfo).fastpathDecMapInt64UintptrR)
  327. fn(map[int64]int(nil), (*encFnInfo).fastpathEncMapInt64IntR, (*decFnInfo).fastpathDecMapInt64IntR)
  328. fn(map[int64]int8(nil), (*encFnInfo).fastpathEncMapInt64Int8R, (*decFnInfo).fastpathDecMapInt64Int8R)
  329. fn(map[int64]int16(nil), (*encFnInfo).fastpathEncMapInt64Int16R, (*decFnInfo).fastpathDecMapInt64Int16R)
  330. fn(map[int64]int32(nil), (*encFnInfo).fastpathEncMapInt64Int32R, (*decFnInfo).fastpathDecMapInt64Int32R)
  331. fn(map[int64]int64(nil), (*encFnInfo).fastpathEncMapInt64Int64R, (*decFnInfo).fastpathDecMapInt64Int64R)
  332. fn(map[int64]float32(nil), (*encFnInfo).fastpathEncMapInt64Float32R, (*decFnInfo).fastpathDecMapInt64Float32R)
  333. fn(map[int64]float64(nil), (*encFnInfo).fastpathEncMapInt64Float64R, (*decFnInfo).fastpathDecMapInt64Float64R)
  334. fn(map[int64]bool(nil), (*encFnInfo).fastpathEncMapInt64BoolR, (*decFnInfo).fastpathDecMapInt64BoolR)
  335. fn(map[bool]interface{}(nil), (*encFnInfo).fastpathEncMapBoolIntfR, (*decFnInfo).fastpathDecMapBoolIntfR)
  336. fn(map[bool]string(nil), (*encFnInfo).fastpathEncMapBoolStringR, (*decFnInfo).fastpathDecMapBoolStringR)
  337. fn(map[bool]uint(nil), (*encFnInfo).fastpathEncMapBoolUintR, (*decFnInfo).fastpathDecMapBoolUintR)
  338. fn(map[bool]uint8(nil), (*encFnInfo).fastpathEncMapBoolUint8R, (*decFnInfo).fastpathDecMapBoolUint8R)
  339. fn(map[bool]uint16(nil), (*encFnInfo).fastpathEncMapBoolUint16R, (*decFnInfo).fastpathDecMapBoolUint16R)
  340. fn(map[bool]uint32(nil), (*encFnInfo).fastpathEncMapBoolUint32R, (*decFnInfo).fastpathDecMapBoolUint32R)
  341. fn(map[bool]uint64(nil), (*encFnInfo).fastpathEncMapBoolUint64R, (*decFnInfo).fastpathDecMapBoolUint64R)
  342. fn(map[bool]uintptr(nil), (*encFnInfo).fastpathEncMapBoolUintptrR, (*decFnInfo).fastpathDecMapBoolUintptrR)
  343. fn(map[bool]int(nil), (*encFnInfo).fastpathEncMapBoolIntR, (*decFnInfo).fastpathDecMapBoolIntR)
  344. fn(map[bool]int8(nil), (*encFnInfo).fastpathEncMapBoolInt8R, (*decFnInfo).fastpathDecMapBoolInt8R)
  345. fn(map[bool]int16(nil), (*encFnInfo).fastpathEncMapBoolInt16R, (*decFnInfo).fastpathDecMapBoolInt16R)
  346. fn(map[bool]int32(nil), (*encFnInfo).fastpathEncMapBoolInt32R, (*decFnInfo).fastpathDecMapBoolInt32R)
  347. fn(map[bool]int64(nil), (*encFnInfo).fastpathEncMapBoolInt64R, (*decFnInfo).fastpathDecMapBoolInt64R)
  348. fn(map[bool]float32(nil), (*encFnInfo).fastpathEncMapBoolFloat32R, (*decFnInfo).fastpathDecMapBoolFloat32R)
  349. fn(map[bool]float64(nil), (*encFnInfo).fastpathEncMapBoolFloat64R, (*decFnInfo).fastpathDecMapBoolFloat64R)
  350. fn(map[bool]bool(nil), (*encFnInfo).fastpathEncMapBoolBoolR, (*decFnInfo).fastpathDecMapBoolBoolR)
  351. sort.Sort(fastpathAslice(fastpathAV[:]))
  352. }
  353. // -- encode
  354. // -- -- fast path type switch
  355. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  356. switch v := iv.(type) {
  357. case []interface{}:
  358. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  359. case *[]interface{}:
  360. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  361. case map[interface{}]interface{}:
  362. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  363. case *map[interface{}]interface{}:
  364. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  365. case map[interface{}]string:
  366. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  367. case *map[interface{}]string:
  368. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  369. case map[interface{}]uint:
  370. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  371. case *map[interface{}]uint:
  372. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  373. case map[interface{}]uint8:
  374. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  375. case *map[interface{}]uint8:
  376. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  377. case map[interface{}]uint16:
  378. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  379. case *map[interface{}]uint16:
  380. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  381. case map[interface{}]uint32:
  382. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  383. case *map[interface{}]uint32:
  384. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  385. case map[interface{}]uint64:
  386. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  387. case *map[interface{}]uint64:
  388. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  389. case map[interface{}]uintptr:
  390. fastpathTV.EncMapIntfUintptrV(v, fastpathCheckNilTrue, e)
  391. case *map[interface{}]uintptr:
  392. fastpathTV.EncMapIntfUintptrV(*v, fastpathCheckNilTrue, e)
  393. case map[interface{}]int:
  394. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  395. case *map[interface{}]int:
  396. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  397. case map[interface{}]int8:
  398. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  399. case *map[interface{}]int8:
  400. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  401. case map[interface{}]int16:
  402. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  403. case *map[interface{}]int16:
  404. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  405. case map[interface{}]int32:
  406. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  407. case *map[interface{}]int32:
  408. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  409. case map[interface{}]int64:
  410. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  411. case *map[interface{}]int64:
  412. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  413. case map[interface{}]float32:
  414. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  415. case *map[interface{}]float32:
  416. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  417. case map[interface{}]float64:
  418. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  419. case *map[interface{}]float64:
  420. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  421. case map[interface{}]bool:
  422. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  423. case *map[interface{}]bool:
  424. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  425. case []string:
  426. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  427. case *[]string:
  428. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  429. case map[string]interface{}:
  430. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  431. case *map[string]interface{}:
  432. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  433. case map[string]string:
  434. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  435. case *map[string]string:
  436. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  437. case map[string]uint:
  438. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  439. case *map[string]uint:
  440. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  441. case map[string]uint8:
  442. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  443. case *map[string]uint8:
  444. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  445. case map[string]uint16:
  446. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  447. case *map[string]uint16:
  448. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  449. case map[string]uint32:
  450. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  451. case *map[string]uint32:
  452. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  453. case map[string]uint64:
  454. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  455. case *map[string]uint64:
  456. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  457. case map[string]uintptr:
  458. fastpathTV.EncMapStringUintptrV(v, fastpathCheckNilTrue, e)
  459. case *map[string]uintptr:
  460. fastpathTV.EncMapStringUintptrV(*v, fastpathCheckNilTrue, e)
  461. case map[string]int:
  462. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  463. case *map[string]int:
  464. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  465. case map[string]int8:
  466. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  467. case *map[string]int8:
  468. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  469. case map[string]int16:
  470. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  471. case *map[string]int16:
  472. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  473. case map[string]int32:
  474. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  475. case *map[string]int32:
  476. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  477. case map[string]int64:
  478. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  479. case *map[string]int64:
  480. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  481. case map[string]float32:
  482. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  483. case *map[string]float32:
  484. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  485. case map[string]float64:
  486. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  487. case *map[string]float64:
  488. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  489. case map[string]bool:
  490. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  491. case *map[string]bool:
  492. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  493. case []float32:
  494. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  495. case *[]float32:
  496. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  497. case map[float32]interface{}:
  498. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  499. case *map[float32]interface{}:
  500. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  501. case map[float32]string:
  502. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  503. case *map[float32]string:
  504. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  505. case map[float32]uint:
  506. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  507. case *map[float32]uint:
  508. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  509. case map[float32]uint8:
  510. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  511. case *map[float32]uint8:
  512. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  513. case map[float32]uint16:
  514. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  515. case *map[float32]uint16:
  516. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  517. case map[float32]uint32:
  518. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  519. case *map[float32]uint32:
  520. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  521. case map[float32]uint64:
  522. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  523. case *map[float32]uint64:
  524. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  525. case map[float32]uintptr:
  526. fastpathTV.EncMapFloat32UintptrV(v, fastpathCheckNilTrue, e)
  527. case *map[float32]uintptr:
  528. fastpathTV.EncMapFloat32UintptrV(*v, fastpathCheckNilTrue, e)
  529. case map[float32]int:
  530. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  531. case *map[float32]int:
  532. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  533. case map[float32]int8:
  534. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  535. case *map[float32]int8:
  536. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  537. case map[float32]int16:
  538. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  539. case *map[float32]int16:
  540. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  541. case map[float32]int32:
  542. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  543. case *map[float32]int32:
  544. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  545. case map[float32]int64:
  546. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  547. case *map[float32]int64:
  548. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  549. case map[float32]float32:
  550. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  551. case *map[float32]float32:
  552. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  553. case map[float32]float64:
  554. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  555. case *map[float32]float64:
  556. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  557. case map[float32]bool:
  558. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  559. case *map[float32]bool:
  560. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  561. case []float64:
  562. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  563. case *[]float64:
  564. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  565. case map[float64]interface{}:
  566. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  567. case *map[float64]interface{}:
  568. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  569. case map[float64]string:
  570. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  571. case *map[float64]string:
  572. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  573. case map[float64]uint:
  574. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  575. case *map[float64]uint:
  576. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  577. case map[float64]uint8:
  578. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  579. case *map[float64]uint8:
  580. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  581. case map[float64]uint16:
  582. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  583. case *map[float64]uint16:
  584. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  585. case map[float64]uint32:
  586. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  587. case *map[float64]uint32:
  588. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  589. case map[float64]uint64:
  590. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  591. case *map[float64]uint64:
  592. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  593. case map[float64]uintptr:
  594. fastpathTV.EncMapFloat64UintptrV(v, fastpathCheckNilTrue, e)
  595. case *map[float64]uintptr:
  596. fastpathTV.EncMapFloat64UintptrV(*v, fastpathCheckNilTrue, e)
  597. case map[float64]int:
  598. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  599. case *map[float64]int:
  600. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  601. case map[float64]int8:
  602. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  603. case *map[float64]int8:
  604. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  605. case map[float64]int16:
  606. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  607. case *map[float64]int16:
  608. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  609. case map[float64]int32:
  610. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  611. case *map[float64]int32:
  612. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  613. case map[float64]int64:
  614. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  615. case *map[float64]int64:
  616. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  617. case map[float64]float32:
  618. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  619. case *map[float64]float32:
  620. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  621. case map[float64]float64:
  622. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  623. case *map[float64]float64:
  624. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  625. case map[float64]bool:
  626. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  627. case *map[float64]bool:
  628. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  629. case []uint:
  630. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  631. case *[]uint:
  632. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  633. case map[uint]interface{}:
  634. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  635. case *map[uint]interface{}:
  636. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  637. case map[uint]string:
  638. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  639. case *map[uint]string:
  640. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  641. case map[uint]uint:
  642. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  643. case *map[uint]uint:
  644. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  645. case map[uint]uint8:
  646. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  647. case *map[uint]uint8:
  648. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  649. case map[uint]uint16:
  650. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  651. case *map[uint]uint16:
  652. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  653. case map[uint]uint32:
  654. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  655. case *map[uint]uint32:
  656. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  657. case map[uint]uint64:
  658. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  659. case *map[uint]uint64:
  660. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  661. case map[uint]uintptr:
  662. fastpathTV.EncMapUintUintptrV(v, fastpathCheckNilTrue, e)
  663. case *map[uint]uintptr:
  664. fastpathTV.EncMapUintUintptrV(*v, fastpathCheckNilTrue, e)
  665. case map[uint]int:
  666. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  667. case *map[uint]int:
  668. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  669. case map[uint]int8:
  670. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  671. case *map[uint]int8:
  672. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  673. case map[uint]int16:
  674. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  675. case *map[uint]int16:
  676. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  677. case map[uint]int32:
  678. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  679. case *map[uint]int32:
  680. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  681. case map[uint]int64:
  682. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  683. case *map[uint]int64:
  684. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  685. case map[uint]float32:
  686. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  687. case *map[uint]float32:
  688. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  689. case map[uint]float64:
  690. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  691. case *map[uint]float64:
  692. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  693. case map[uint]bool:
  694. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  695. case *map[uint]bool:
  696. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  697. case map[uint8]interface{}:
  698. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  699. case *map[uint8]interface{}:
  700. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  701. case map[uint8]string:
  702. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  703. case *map[uint8]string:
  704. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  705. case map[uint8]uint:
  706. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  707. case *map[uint8]uint:
  708. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  709. case map[uint8]uint8:
  710. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  711. case *map[uint8]uint8:
  712. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  713. case map[uint8]uint16:
  714. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  715. case *map[uint8]uint16:
  716. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  717. case map[uint8]uint32:
  718. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  719. case *map[uint8]uint32:
  720. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  721. case map[uint8]uint64:
  722. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  723. case *map[uint8]uint64:
  724. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  725. case map[uint8]uintptr:
  726. fastpathTV.EncMapUint8UintptrV(v, fastpathCheckNilTrue, e)
  727. case *map[uint8]uintptr:
  728. fastpathTV.EncMapUint8UintptrV(*v, fastpathCheckNilTrue, e)
  729. case map[uint8]int:
  730. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  731. case *map[uint8]int:
  732. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  733. case map[uint8]int8:
  734. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  735. case *map[uint8]int8:
  736. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  737. case map[uint8]int16:
  738. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  739. case *map[uint8]int16:
  740. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  741. case map[uint8]int32:
  742. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  743. case *map[uint8]int32:
  744. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  745. case map[uint8]int64:
  746. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  747. case *map[uint8]int64:
  748. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  749. case map[uint8]float32:
  750. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  751. case *map[uint8]float32:
  752. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  753. case map[uint8]float64:
  754. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  755. case *map[uint8]float64:
  756. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  757. case map[uint8]bool:
  758. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  759. case *map[uint8]bool:
  760. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  761. case []uint16:
  762. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  763. case *[]uint16:
  764. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  765. case map[uint16]interface{}:
  766. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  767. case *map[uint16]interface{}:
  768. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  769. case map[uint16]string:
  770. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  771. case *map[uint16]string:
  772. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  773. case map[uint16]uint:
  774. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  775. case *map[uint16]uint:
  776. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  777. case map[uint16]uint8:
  778. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  779. case *map[uint16]uint8:
  780. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  781. case map[uint16]uint16:
  782. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  783. case *map[uint16]uint16:
  784. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  785. case map[uint16]uint32:
  786. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  787. case *map[uint16]uint32:
  788. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  789. case map[uint16]uint64:
  790. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  791. case *map[uint16]uint64:
  792. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  793. case map[uint16]uintptr:
  794. fastpathTV.EncMapUint16UintptrV(v, fastpathCheckNilTrue, e)
  795. case *map[uint16]uintptr:
  796. fastpathTV.EncMapUint16UintptrV(*v, fastpathCheckNilTrue, e)
  797. case map[uint16]int:
  798. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  799. case *map[uint16]int:
  800. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  801. case map[uint16]int8:
  802. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  803. case *map[uint16]int8:
  804. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  805. case map[uint16]int16:
  806. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  807. case *map[uint16]int16:
  808. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  809. case map[uint16]int32:
  810. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  811. case *map[uint16]int32:
  812. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  813. case map[uint16]int64:
  814. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  815. case *map[uint16]int64:
  816. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  817. case map[uint16]float32:
  818. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  819. case *map[uint16]float32:
  820. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  821. case map[uint16]float64:
  822. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  823. case *map[uint16]float64:
  824. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  825. case map[uint16]bool:
  826. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  827. case *map[uint16]bool:
  828. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  829. case []uint32:
  830. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  831. case *[]uint32:
  832. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  833. case map[uint32]interface{}:
  834. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  835. case *map[uint32]interface{}:
  836. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  837. case map[uint32]string:
  838. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  839. case *map[uint32]string:
  840. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  841. case map[uint32]uint:
  842. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  843. case *map[uint32]uint:
  844. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  845. case map[uint32]uint8:
  846. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  847. case *map[uint32]uint8:
  848. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  849. case map[uint32]uint16:
  850. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  851. case *map[uint32]uint16:
  852. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  853. case map[uint32]uint32:
  854. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  855. case *map[uint32]uint32:
  856. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  857. case map[uint32]uint64:
  858. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  859. case *map[uint32]uint64:
  860. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  861. case map[uint32]uintptr:
  862. fastpathTV.EncMapUint32UintptrV(v, fastpathCheckNilTrue, e)
  863. case *map[uint32]uintptr:
  864. fastpathTV.EncMapUint32UintptrV(*v, fastpathCheckNilTrue, e)
  865. case map[uint32]int:
  866. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  867. case *map[uint32]int:
  868. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  869. case map[uint32]int8:
  870. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  871. case *map[uint32]int8:
  872. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  873. case map[uint32]int16:
  874. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  875. case *map[uint32]int16:
  876. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  877. case map[uint32]int32:
  878. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  879. case *map[uint32]int32:
  880. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  881. case map[uint32]int64:
  882. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  883. case *map[uint32]int64:
  884. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  885. case map[uint32]float32:
  886. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  887. case *map[uint32]float32:
  888. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  889. case map[uint32]float64:
  890. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  891. case *map[uint32]float64:
  892. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  893. case map[uint32]bool:
  894. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  895. case *map[uint32]bool:
  896. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  897. case []uint64:
  898. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  899. case *[]uint64:
  900. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  901. case map[uint64]interface{}:
  902. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  903. case *map[uint64]interface{}:
  904. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  905. case map[uint64]string:
  906. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  907. case *map[uint64]string:
  908. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  909. case map[uint64]uint:
  910. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  911. case *map[uint64]uint:
  912. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  913. case map[uint64]uint8:
  914. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  915. case *map[uint64]uint8:
  916. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  917. case map[uint64]uint16:
  918. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  919. case *map[uint64]uint16:
  920. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  921. case map[uint64]uint32:
  922. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  923. case *map[uint64]uint32:
  924. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  925. case map[uint64]uint64:
  926. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  927. case *map[uint64]uint64:
  928. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  929. case map[uint64]uintptr:
  930. fastpathTV.EncMapUint64UintptrV(v, fastpathCheckNilTrue, e)
  931. case *map[uint64]uintptr:
  932. fastpathTV.EncMapUint64UintptrV(*v, fastpathCheckNilTrue, e)
  933. case map[uint64]int:
  934. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  935. case *map[uint64]int:
  936. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  937. case map[uint64]int8:
  938. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  939. case *map[uint64]int8:
  940. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  941. case map[uint64]int16:
  942. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  943. case *map[uint64]int16:
  944. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  945. case map[uint64]int32:
  946. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  947. case *map[uint64]int32:
  948. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  949. case map[uint64]int64:
  950. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  951. case *map[uint64]int64:
  952. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  953. case map[uint64]float32:
  954. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  955. case *map[uint64]float32:
  956. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  957. case map[uint64]float64:
  958. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  959. case *map[uint64]float64:
  960. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  961. case map[uint64]bool:
  962. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  963. case *map[uint64]bool:
  964. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  965. case []uintptr:
  966. fastpathTV.EncSliceUintptrV(v, fastpathCheckNilTrue, e)
  967. case *[]uintptr:
  968. fastpathTV.EncSliceUintptrV(*v, fastpathCheckNilTrue, e)
  969. case map[uintptr]interface{}:
  970. fastpathTV.EncMapUintptrIntfV(v, fastpathCheckNilTrue, e)
  971. case *map[uintptr]interface{}:
  972. fastpathTV.EncMapUintptrIntfV(*v, fastpathCheckNilTrue, e)
  973. case map[uintptr]string:
  974. fastpathTV.EncMapUintptrStringV(v, fastpathCheckNilTrue, e)
  975. case *map[uintptr]string:
  976. fastpathTV.EncMapUintptrStringV(*v, fastpathCheckNilTrue, e)
  977. case map[uintptr]uint:
  978. fastpathTV.EncMapUintptrUintV(v, fastpathCheckNilTrue, e)
  979. case *map[uintptr]uint:
  980. fastpathTV.EncMapUintptrUintV(*v, fastpathCheckNilTrue, e)
  981. case map[uintptr]uint8:
  982. fastpathTV.EncMapUintptrUint8V(v, fastpathCheckNilTrue, e)
  983. case *map[uintptr]uint8:
  984. fastpathTV.EncMapUintptrUint8V(*v, fastpathCheckNilTrue, e)
  985. case map[uintptr]uint16:
  986. fastpathTV.EncMapUintptrUint16V(v, fastpathCheckNilTrue, e)
  987. case *map[uintptr]uint16:
  988. fastpathTV.EncMapUintptrUint16V(*v, fastpathCheckNilTrue, e)
  989. case map[uintptr]uint32:
  990. fastpathTV.EncMapUintptrUint32V(v, fastpathCheckNilTrue, e)
  991. case *map[uintptr]uint32:
  992. fastpathTV.EncMapUintptrUint32V(*v, fastpathCheckNilTrue, e)
  993. case map[uintptr]uint64:
  994. fastpathTV.EncMapUintptrUint64V(v, fastpathCheckNilTrue, e)
  995. case *map[uintptr]uint64:
  996. fastpathTV.EncMapUintptrUint64V(*v, fastpathCheckNilTrue, e)
  997. case map[uintptr]uintptr:
  998. fastpathTV.EncMapUintptrUintptrV(v, fastpathCheckNilTrue, e)
  999. case *map[uintptr]uintptr:
  1000. fastpathTV.EncMapUintptrUintptrV(*v, fastpathCheckNilTrue, e)
  1001. case map[uintptr]int:
  1002. fastpathTV.EncMapUintptrIntV(v, fastpathCheckNilTrue, e)
  1003. case *map[uintptr]int:
  1004. fastpathTV.EncMapUintptrIntV(*v, fastpathCheckNilTrue, e)
  1005. case map[uintptr]int8:
  1006. fastpathTV.EncMapUintptrInt8V(v, fastpathCheckNilTrue, e)
  1007. case *map[uintptr]int8:
  1008. fastpathTV.EncMapUintptrInt8V(*v, fastpathCheckNilTrue, e)
  1009. case map[uintptr]int16:
  1010. fastpathTV.EncMapUintptrInt16V(v, fastpathCheckNilTrue, e)
  1011. case *map[uintptr]int16:
  1012. fastpathTV.EncMapUintptrInt16V(*v, fastpathCheckNilTrue, e)
  1013. case map[uintptr]int32:
  1014. fastpathTV.EncMapUintptrInt32V(v, fastpathCheckNilTrue, e)
  1015. case *map[uintptr]int32:
  1016. fastpathTV.EncMapUintptrInt32V(*v, fastpathCheckNilTrue, e)
  1017. case map[uintptr]int64:
  1018. fastpathTV.EncMapUintptrInt64V(v, fastpathCheckNilTrue, e)
  1019. case *map[uintptr]int64:
  1020. fastpathTV.EncMapUintptrInt64V(*v, fastpathCheckNilTrue, e)
  1021. case map[uintptr]float32:
  1022. fastpathTV.EncMapUintptrFloat32V(v, fastpathCheckNilTrue, e)
  1023. case *map[uintptr]float32:
  1024. fastpathTV.EncMapUintptrFloat32V(*v, fastpathCheckNilTrue, e)
  1025. case map[uintptr]float64:
  1026. fastpathTV.EncMapUintptrFloat64V(v, fastpathCheckNilTrue, e)
  1027. case *map[uintptr]float64:
  1028. fastpathTV.EncMapUintptrFloat64V(*v, fastpathCheckNilTrue, e)
  1029. case map[uintptr]bool:
  1030. fastpathTV.EncMapUintptrBoolV(v, fastpathCheckNilTrue, e)
  1031. case *map[uintptr]bool:
  1032. fastpathTV.EncMapUintptrBoolV(*v, fastpathCheckNilTrue, e)
  1033. case []int:
  1034. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  1035. case *[]int:
  1036. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  1037. case map[int]interface{}:
  1038. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  1039. case *map[int]interface{}:
  1040. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  1041. case map[int]string:
  1042. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  1043. case *map[int]string:
  1044. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  1045. case map[int]uint:
  1046. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  1047. case *map[int]uint:
  1048. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  1049. case map[int]uint8:
  1050. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  1051. case *map[int]uint8:
  1052. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  1053. case map[int]uint16:
  1054. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  1055. case *map[int]uint16:
  1056. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  1057. case map[int]uint32:
  1058. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  1059. case *map[int]uint32:
  1060. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  1061. case map[int]uint64:
  1062. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  1063. case *map[int]uint64:
  1064. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  1065. case map[int]uintptr:
  1066. fastpathTV.EncMapIntUintptrV(v, fastpathCheckNilTrue, e)
  1067. case *map[int]uintptr:
  1068. fastpathTV.EncMapIntUintptrV(*v, fastpathCheckNilTrue, e)
  1069. case map[int]int:
  1070. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  1071. case *map[int]int:
  1072. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  1073. case map[int]int8:
  1074. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  1075. case *map[int]int8:
  1076. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  1077. case map[int]int16:
  1078. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  1079. case *map[int]int16:
  1080. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  1081. case map[int]int32:
  1082. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  1083. case *map[int]int32:
  1084. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  1085. case map[int]int64:
  1086. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  1087. case *map[int]int64:
  1088. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  1089. case map[int]float32:
  1090. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  1091. case *map[int]float32:
  1092. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  1093. case map[int]float64:
  1094. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  1095. case *map[int]float64:
  1096. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  1097. case map[int]bool:
  1098. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  1099. case *map[int]bool:
  1100. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  1101. case []int8:
  1102. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  1103. case *[]int8:
  1104. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  1105. case map[int8]interface{}:
  1106. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  1107. case *map[int8]interface{}:
  1108. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  1109. case map[int8]string:
  1110. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  1111. case *map[int8]string:
  1112. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  1113. case map[int8]uint:
  1114. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  1115. case *map[int8]uint:
  1116. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  1117. case map[int8]uint8:
  1118. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  1119. case *map[int8]uint8:
  1120. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  1121. case map[int8]uint16:
  1122. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  1123. case *map[int8]uint16:
  1124. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  1125. case map[int8]uint32:
  1126. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  1127. case *map[int8]uint32:
  1128. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  1129. case map[int8]uint64:
  1130. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  1131. case *map[int8]uint64:
  1132. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  1133. case map[int8]uintptr:
  1134. fastpathTV.EncMapInt8UintptrV(v, fastpathCheckNilTrue, e)
  1135. case *map[int8]uintptr:
  1136. fastpathTV.EncMapInt8UintptrV(*v, fastpathCheckNilTrue, e)
  1137. case map[int8]int:
  1138. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  1139. case *map[int8]int:
  1140. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  1141. case map[int8]int8:
  1142. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  1143. case *map[int8]int8:
  1144. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  1145. case map[int8]int16:
  1146. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  1147. case *map[int8]int16:
  1148. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  1149. case map[int8]int32:
  1150. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  1151. case *map[int8]int32:
  1152. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  1153. case map[int8]int64:
  1154. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  1155. case *map[int8]int64:
  1156. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  1157. case map[int8]float32:
  1158. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  1159. case *map[int8]float32:
  1160. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  1161. case map[int8]float64:
  1162. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  1163. case *map[int8]float64:
  1164. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  1165. case map[int8]bool:
  1166. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  1167. case *map[int8]bool:
  1168. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  1169. case []int16:
  1170. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1171. case *[]int16:
  1172. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1173. case map[int16]interface{}:
  1174. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  1175. case *map[int16]interface{}:
  1176. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  1177. case map[int16]string:
  1178. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  1179. case *map[int16]string:
  1180. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  1181. case map[int16]uint:
  1182. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  1183. case *map[int16]uint:
  1184. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  1185. case map[int16]uint8:
  1186. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  1187. case *map[int16]uint8:
  1188. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  1189. case map[int16]uint16:
  1190. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  1191. case *map[int16]uint16:
  1192. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  1193. case map[int16]uint32:
  1194. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  1195. case *map[int16]uint32:
  1196. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  1197. case map[int16]uint64:
  1198. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  1199. case *map[int16]uint64:
  1200. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  1201. case map[int16]uintptr:
  1202. fastpathTV.EncMapInt16UintptrV(v, fastpathCheckNilTrue, e)
  1203. case *map[int16]uintptr:
  1204. fastpathTV.EncMapInt16UintptrV(*v, fastpathCheckNilTrue, e)
  1205. case map[int16]int:
  1206. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  1207. case *map[int16]int:
  1208. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  1209. case map[int16]int8:
  1210. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  1211. case *map[int16]int8:
  1212. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  1213. case map[int16]int16:
  1214. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  1215. case *map[int16]int16:
  1216. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  1217. case map[int16]int32:
  1218. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  1219. case *map[int16]int32:
  1220. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  1221. case map[int16]int64:
  1222. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  1223. case *map[int16]int64:
  1224. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  1225. case map[int16]float32:
  1226. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  1227. case *map[int16]float32:
  1228. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  1229. case map[int16]float64:
  1230. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  1231. case *map[int16]float64:
  1232. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  1233. case map[int16]bool:
  1234. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  1235. case *map[int16]bool:
  1236. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  1237. case []int32:
  1238. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1239. case *[]int32:
  1240. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1241. case map[int32]interface{}:
  1242. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  1243. case *map[int32]interface{}:
  1244. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  1245. case map[int32]string:
  1246. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  1247. case *map[int32]string:
  1248. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  1249. case map[int32]uint:
  1250. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  1251. case *map[int32]uint:
  1252. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  1253. case map[int32]uint8:
  1254. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  1255. case *map[int32]uint8:
  1256. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  1257. case map[int32]uint16:
  1258. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  1259. case *map[int32]uint16:
  1260. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  1261. case map[int32]uint32:
  1262. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  1263. case *map[int32]uint32:
  1264. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  1265. case map[int32]uint64:
  1266. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  1267. case *map[int32]uint64:
  1268. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  1269. case map[int32]uintptr:
  1270. fastpathTV.EncMapInt32UintptrV(v, fastpathCheckNilTrue, e)
  1271. case *map[int32]uintptr:
  1272. fastpathTV.EncMapInt32UintptrV(*v, fastpathCheckNilTrue, e)
  1273. case map[int32]int:
  1274. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  1275. case *map[int32]int:
  1276. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  1277. case map[int32]int8:
  1278. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  1279. case *map[int32]int8:
  1280. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  1281. case map[int32]int16:
  1282. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  1283. case *map[int32]int16:
  1284. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  1285. case map[int32]int32:
  1286. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  1287. case *map[int32]int32:
  1288. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  1289. case map[int32]int64:
  1290. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  1291. case *map[int32]int64:
  1292. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  1293. case map[int32]float32:
  1294. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  1295. case *map[int32]float32:
  1296. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  1297. case map[int32]float64:
  1298. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  1299. case *map[int32]float64:
  1300. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  1301. case map[int32]bool:
  1302. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  1303. case *map[int32]bool:
  1304. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  1305. case []int64:
  1306. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1307. case *[]int64:
  1308. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1309. case map[int64]interface{}:
  1310. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  1311. case *map[int64]interface{}:
  1312. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  1313. case map[int64]string:
  1314. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  1315. case *map[int64]string:
  1316. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  1317. case map[int64]uint:
  1318. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  1319. case *map[int64]uint:
  1320. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  1321. case map[int64]uint8:
  1322. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  1323. case *map[int64]uint8:
  1324. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  1325. case map[int64]uint16:
  1326. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  1327. case *map[int64]uint16:
  1328. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  1329. case map[int64]uint32:
  1330. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  1331. case *map[int64]uint32:
  1332. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  1333. case map[int64]uint64:
  1334. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  1335. case *map[int64]uint64:
  1336. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  1337. case map[int64]uintptr:
  1338. fastpathTV.EncMapInt64UintptrV(v, fastpathCheckNilTrue, e)
  1339. case *map[int64]uintptr:
  1340. fastpathTV.EncMapInt64UintptrV(*v, fastpathCheckNilTrue, e)
  1341. case map[int64]int:
  1342. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  1343. case *map[int64]int:
  1344. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  1345. case map[int64]int8:
  1346. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  1347. case *map[int64]int8:
  1348. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  1349. case map[int64]int16:
  1350. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  1351. case *map[int64]int16:
  1352. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  1353. case map[int64]int32:
  1354. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  1355. case *map[int64]int32:
  1356. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  1357. case map[int64]int64:
  1358. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  1359. case *map[int64]int64:
  1360. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  1361. case map[int64]float32:
  1362. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  1363. case *map[int64]float32:
  1364. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  1365. case map[int64]float64:
  1366. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  1367. case *map[int64]float64:
  1368. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  1369. case map[int64]bool:
  1370. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  1371. case *map[int64]bool:
  1372. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  1373. case []bool:
  1374. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1375. case *[]bool:
  1376. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1377. case map[bool]interface{}:
  1378. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  1379. case *map[bool]interface{}:
  1380. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  1381. case map[bool]string:
  1382. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  1383. case *map[bool]string:
  1384. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  1385. case map[bool]uint:
  1386. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  1387. case *map[bool]uint:
  1388. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  1389. case map[bool]uint8:
  1390. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  1391. case *map[bool]uint8:
  1392. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  1393. case map[bool]uint16:
  1394. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  1395. case *map[bool]uint16:
  1396. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  1397. case map[bool]uint32:
  1398. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  1399. case *map[bool]uint32:
  1400. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  1401. case map[bool]uint64:
  1402. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  1403. case *map[bool]uint64:
  1404. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  1405. case map[bool]uintptr:
  1406. fastpathTV.EncMapBoolUintptrV(v, fastpathCheckNilTrue, e)
  1407. case *map[bool]uintptr:
  1408. fastpathTV.EncMapBoolUintptrV(*v, fastpathCheckNilTrue, e)
  1409. case map[bool]int:
  1410. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  1411. case *map[bool]int:
  1412. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  1413. case map[bool]int8:
  1414. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  1415. case *map[bool]int8:
  1416. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  1417. case map[bool]int16:
  1418. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  1419. case *map[bool]int16:
  1420. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  1421. case map[bool]int32:
  1422. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  1423. case *map[bool]int32:
  1424. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  1425. case map[bool]int64:
  1426. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  1427. case *map[bool]int64:
  1428. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  1429. case map[bool]float32:
  1430. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  1431. case *map[bool]float32:
  1432. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  1433. case map[bool]float64:
  1434. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  1435. case *map[bool]float64:
  1436. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  1437. case map[bool]bool:
  1438. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  1439. case *map[bool]bool:
  1440. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  1441. default:
  1442. return false
  1443. }
  1444. return true
  1445. }
  1446. func fastpathEncodeTypeSwitchSlice(iv interface{}, e *Encoder) bool {
  1447. switch v := iv.(type) {
  1448. case []interface{}:
  1449. fastpathTV.EncSliceIntfV(v, fastpathCheckNilTrue, e)
  1450. case *[]interface{}:
  1451. fastpathTV.EncSliceIntfV(*v, fastpathCheckNilTrue, e)
  1452. case []string:
  1453. fastpathTV.EncSliceStringV(v, fastpathCheckNilTrue, e)
  1454. case *[]string:
  1455. fastpathTV.EncSliceStringV(*v, fastpathCheckNilTrue, e)
  1456. case []float32:
  1457. fastpathTV.EncSliceFloat32V(v, fastpathCheckNilTrue, e)
  1458. case *[]float32:
  1459. fastpathTV.EncSliceFloat32V(*v, fastpathCheckNilTrue, e)
  1460. case []float64:
  1461. fastpathTV.EncSliceFloat64V(v, fastpathCheckNilTrue, e)
  1462. case *[]float64:
  1463. fastpathTV.EncSliceFloat64V(*v, fastpathCheckNilTrue, e)
  1464. case []uint:
  1465. fastpathTV.EncSliceUintV(v, fastpathCheckNilTrue, e)
  1466. case *[]uint:
  1467. fastpathTV.EncSliceUintV(*v, fastpathCheckNilTrue, e)
  1468. case []uint16:
  1469. fastpathTV.EncSliceUint16V(v, fastpathCheckNilTrue, e)
  1470. case *[]uint16:
  1471. fastpathTV.EncSliceUint16V(*v, fastpathCheckNilTrue, e)
  1472. case []uint32:
  1473. fastpathTV.EncSliceUint32V(v, fastpathCheckNilTrue, e)
  1474. case *[]uint32:
  1475. fastpathTV.EncSliceUint32V(*v, fastpathCheckNilTrue, e)
  1476. case []uint64:
  1477. fastpathTV.EncSliceUint64V(v, fastpathCheckNilTrue, e)
  1478. case *[]uint64:
  1479. fastpathTV.EncSliceUint64V(*v, fastpathCheckNilTrue, e)
  1480. case []uintptr:
  1481. fastpathTV.EncSliceUintptrV(v, fastpathCheckNilTrue, e)
  1482. case *[]uintptr:
  1483. fastpathTV.EncSliceUintptrV(*v, fastpathCheckNilTrue, e)
  1484. case []int:
  1485. fastpathTV.EncSliceIntV(v, fastpathCheckNilTrue, e)
  1486. case *[]int:
  1487. fastpathTV.EncSliceIntV(*v, fastpathCheckNilTrue, e)
  1488. case []int8:
  1489. fastpathTV.EncSliceInt8V(v, fastpathCheckNilTrue, e)
  1490. case *[]int8:
  1491. fastpathTV.EncSliceInt8V(*v, fastpathCheckNilTrue, e)
  1492. case []int16:
  1493. fastpathTV.EncSliceInt16V(v, fastpathCheckNilTrue, e)
  1494. case *[]int16:
  1495. fastpathTV.EncSliceInt16V(*v, fastpathCheckNilTrue, e)
  1496. case []int32:
  1497. fastpathTV.EncSliceInt32V(v, fastpathCheckNilTrue, e)
  1498. case *[]int32:
  1499. fastpathTV.EncSliceInt32V(*v, fastpathCheckNilTrue, e)
  1500. case []int64:
  1501. fastpathTV.EncSliceInt64V(v, fastpathCheckNilTrue, e)
  1502. case *[]int64:
  1503. fastpathTV.EncSliceInt64V(*v, fastpathCheckNilTrue, e)
  1504. case []bool:
  1505. fastpathTV.EncSliceBoolV(v, fastpathCheckNilTrue, e)
  1506. case *[]bool:
  1507. fastpathTV.EncSliceBoolV(*v, fastpathCheckNilTrue, e)
  1508. default:
  1509. return false
  1510. }
  1511. return true
  1512. }
  1513. func fastpathEncodeTypeSwitchMap(iv interface{}, e *Encoder) bool {
  1514. switch v := iv.(type) {
  1515. case map[interface{}]interface{}:
  1516. fastpathTV.EncMapIntfIntfV(v, fastpathCheckNilTrue, e)
  1517. case *map[interface{}]interface{}:
  1518. fastpathTV.EncMapIntfIntfV(*v, fastpathCheckNilTrue, e)
  1519. case map[interface{}]string:
  1520. fastpathTV.EncMapIntfStringV(v, fastpathCheckNilTrue, e)
  1521. case *map[interface{}]string:
  1522. fastpathTV.EncMapIntfStringV(*v, fastpathCheckNilTrue, e)
  1523. case map[interface{}]uint:
  1524. fastpathTV.EncMapIntfUintV(v, fastpathCheckNilTrue, e)
  1525. case *map[interface{}]uint:
  1526. fastpathTV.EncMapIntfUintV(*v, fastpathCheckNilTrue, e)
  1527. case map[interface{}]uint8:
  1528. fastpathTV.EncMapIntfUint8V(v, fastpathCheckNilTrue, e)
  1529. case *map[interface{}]uint8:
  1530. fastpathTV.EncMapIntfUint8V(*v, fastpathCheckNilTrue, e)
  1531. case map[interface{}]uint16:
  1532. fastpathTV.EncMapIntfUint16V(v, fastpathCheckNilTrue, e)
  1533. case *map[interface{}]uint16:
  1534. fastpathTV.EncMapIntfUint16V(*v, fastpathCheckNilTrue, e)
  1535. case map[interface{}]uint32:
  1536. fastpathTV.EncMapIntfUint32V(v, fastpathCheckNilTrue, e)
  1537. case *map[interface{}]uint32:
  1538. fastpathTV.EncMapIntfUint32V(*v, fastpathCheckNilTrue, e)
  1539. case map[interface{}]uint64:
  1540. fastpathTV.EncMapIntfUint64V(v, fastpathCheckNilTrue, e)
  1541. case *map[interface{}]uint64:
  1542. fastpathTV.EncMapIntfUint64V(*v, fastpathCheckNilTrue, e)
  1543. case map[interface{}]uintptr:
  1544. fastpathTV.EncMapIntfUintptrV(v, fastpathCheckNilTrue, e)
  1545. case *map[interface{}]uintptr:
  1546. fastpathTV.EncMapIntfUintptrV(*v, fastpathCheckNilTrue, e)
  1547. case map[interface{}]int:
  1548. fastpathTV.EncMapIntfIntV(v, fastpathCheckNilTrue, e)
  1549. case *map[interface{}]int:
  1550. fastpathTV.EncMapIntfIntV(*v, fastpathCheckNilTrue, e)
  1551. case map[interface{}]int8:
  1552. fastpathTV.EncMapIntfInt8V(v, fastpathCheckNilTrue, e)
  1553. case *map[interface{}]int8:
  1554. fastpathTV.EncMapIntfInt8V(*v, fastpathCheckNilTrue, e)
  1555. case map[interface{}]int16:
  1556. fastpathTV.EncMapIntfInt16V(v, fastpathCheckNilTrue, e)
  1557. case *map[interface{}]int16:
  1558. fastpathTV.EncMapIntfInt16V(*v, fastpathCheckNilTrue, e)
  1559. case map[interface{}]int32:
  1560. fastpathTV.EncMapIntfInt32V(v, fastpathCheckNilTrue, e)
  1561. case *map[interface{}]int32:
  1562. fastpathTV.EncMapIntfInt32V(*v, fastpathCheckNilTrue, e)
  1563. case map[interface{}]int64:
  1564. fastpathTV.EncMapIntfInt64V(v, fastpathCheckNilTrue, e)
  1565. case *map[interface{}]int64:
  1566. fastpathTV.EncMapIntfInt64V(*v, fastpathCheckNilTrue, e)
  1567. case map[interface{}]float32:
  1568. fastpathTV.EncMapIntfFloat32V(v, fastpathCheckNilTrue, e)
  1569. case *map[interface{}]float32:
  1570. fastpathTV.EncMapIntfFloat32V(*v, fastpathCheckNilTrue, e)
  1571. case map[interface{}]float64:
  1572. fastpathTV.EncMapIntfFloat64V(v, fastpathCheckNilTrue, e)
  1573. case *map[interface{}]float64:
  1574. fastpathTV.EncMapIntfFloat64V(*v, fastpathCheckNilTrue, e)
  1575. case map[interface{}]bool:
  1576. fastpathTV.EncMapIntfBoolV(v, fastpathCheckNilTrue, e)
  1577. case *map[interface{}]bool:
  1578. fastpathTV.EncMapIntfBoolV(*v, fastpathCheckNilTrue, e)
  1579. case map[string]interface{}:
  1580. fastpathTV.EncMapStringIntfV(v, fastpathCheckNilTrue, e)
  1581. case *map[string]interface{}:
  1582. fastpathTV.EncMapStringIntfV(*v, fastpathCheckNilTrue, e)
  1583. case map[string]string:
  1584. fastpathTV.EncMapStringStringV(v, fastpathCheckNilTrue, e)
  1585. case *map[string]string:
  1586. fastpathTV.EncMapStringStringV(*v, fastpathCheckNilTrue, e)
  1587. case map[string]uint:
  1588. fastpathTV.EncMapStringUintV(v, fastpathCheckNilTrue, e)
  1589. case *map[string]uint:
  1590. fastpathTV.EncMapStringUintV(*v, fastpathCheckNilTrue, e)
  1591. case map[string]uint8:
  1592. fastpathTV.EncMapStringUint8V(v, fastpathCheckNilTrue, e)
  1593. case *map[string]uint8:
  1594. fastpathTV.EncMapStringUint8V(*v, fastpathCheckNilTrue, e)
  1595. case map[string]uint16:
  1596. fastpathTV.EncMapStringUint16V(v, fastpathCheckNilTrue, e)
  1597. case *map[string]uint16:
  1598. fastpathTV.EncMapStringUint16V(*v, fastpathCheckNilTrue, e)
  1599. case map[string]uint32:
  1600. fastpathTV.EncMapStringUint32V(v, fastpathCheckNilTrue, e)
  1601. case *map[string]uint32:
  1602. fastpathTV.EncMapStringUint32V(*v, fastpathCheckNilTrue, e)
  1603. case map[string]uint64:
  1604. fastpathTV.EncMapStringUint64V(v, fastpathCheckNilTrue, e)
  1605. case *map[string]uint64:
  1606. fastpathTV.EncMapStringUint64V(*v, fastpathCheckNilTrue, e)
  1607. case map[string]uintptr:
  1608. fastpathTV.EncMapStringUintptrV(v, fastpathCheckNilTrue, e)
  1609. case *map[string]uintptr:
  1610. fastpathTV.EncMapStringUintptrV(*v, fastpathCheckNilTrue, e)
  1611. case map[string]int:
  1612. fastpathTV.EncMapStringIntV(v, fastpathCheckNilTrue, e)
  1613. case *map[string]int:
  1614. fastpathTV.EncMapStringIntV(*v, fastpathCheckNilTrue, e)
  1615. case map[string]int8:
  1616. fastpathTV.EncMapStringInt8V(v, fastpathCheckNilTrue, e)
  1617. case *map[string]int8:
  1618. fastpathTV.EncMapStringInt8V(*v, fastpathCheckNilTrue, e)
  1619. case map[string]int16:
  1620. fastpathTV.EncMapStringInt16V(v, fastpathCheckNilTrue, e)
  1621. case *map[string]int16:
  1622. fastpathTV.EncMapStringInt16V(*v, fastpathCheckNilTrue, e)
  1623. case map[string]int32:
  1624. fastpathTV.EncMapStringInt32V(v, fastpathCheckNilTrue, e)
  1625. case *map[string]int32:
  1626. fastpathTV.EncMapStringInt32V(*v, fastpathCheckNilTrue, e)
  1627. case map[string]int64:
  1628. fastpathTV.EncMapStringInt64V(v, fastpathCheckNilTrue, e)
  1629. case *map[string]int64:
  1630. fastpathTV.EncMapStringInt64V(*v, fastpathCheckNilTrue, e)
  1631. case map[string]float32:
  1632. fastpathTV.EncMapStringFloat32V(v, fastpathCheckNilTrue, e)
  1633. case *map[string]float32:
  1634. fastpathTV.EncMapStringFloat32V(*v, fastpathCheckNilTrue, e)
  1635. case map[string]float64:
  1636. fastpathTV.EncMapStringFloat64V(v, fastpathCheckNilTrue, e)
  1637. case *map[string]float64:
  1638. fastpathTV.EncMapStringFloat64V(*v, fastpathCheckNilTrue, e)
  1639. case map[string]bool:
  1640. fastpathTV.EncMapStringBoolV(v, fastpathCheckNilTrue, e)
  1641. case *map[string]bool:
  1642. fastpathTV.EncMapStringBoolV(*v, fastpathCheckNilTrue, e)
  1643. case map[float32]interface{}:
  1644. fastpathTV.EncMapFloat32IntfV(v, fastpathCheckNilTrue, e)
  1645. case *map[float32]interface{}:
  1646. fastpathTV.EncMapFloat32IntfV(*v, fastpathCheckNilTrue, e)
  1647. case map[float32]string:
  1648. fastpathTV.EncMapFloat32StringV(v, fastpathCheckNilTrue, e)
  1649. case *map[float32]string:
  1650. fastpathTV.EncMapFloat32StringV(*v, fastpathCheckNilTrue, e)
  1651. case map[float32]uint:
  1652. fastpathTV.EncMapFloat32UintV(v, fastpathCheckNilTrue, e)
  1653. case *map[float32]uint:
  1654. fastpathTV.EncMapFloat32UintV(*v, fastpathCheckNilTrue, e)
  1655. case map[float32]uint8:
  1656. fastpathTV.EncMapFloat32Uint8V(v, fastpathCheckNilTrue, e)
  1657. case *map[float32]uint8:
  1658. fastpathTV.EncMapFloat32Uint8V(*v, fastpathCheckNilTrue, e)
  1659. case map[float32]uint16:
  1660. fastpathTV.EncMapFloat32Uint16V(v, fastpathCheckNilTrue, e)
  1661. case *map[float32]uint16:
  1662. fastpathTV.EncMapFloat32Uint16V(*v, fastpathCheckNilTrue, e)
  1663. case map[float32]uint32:
  1664. fastpathTV.EncMapFloat32Uint32V(v, fastpathCheckNilTrue, e)
  1665. case *map[float32]uint32:
  1666. fastpathTV.EncMapFloat32Uint32V(*v, fastpathCheckNilTrue, e)
  1667. case map[float32]uint64:
  1668. fastpathTV.EncMapFloat32Uint64V(v, fastpathCheckNilTrue, e)
  1669. case *map[float32]uint64:
  1670. fastpathTV.EncMapFloat32Uint64V(*v, fastpathCheckNilTrue, e)
  1671. case map[float32]uintptr:
  1672. fastpathTV.EncMapFloat32UintptrV(v, fastpathCheckNilTrue, e)
  1673. case *map[float32]uintptr:
  1674. fastpathTV.EncMapFloat32UintptrV(*v, fastpathCheckNilTrue, e)
  1675. case map[float32]int:
  1676. fastpathTV.EncMapFloat32IntV(v, fastpathCheckNilTrue, e)
  1677. case *map[float32]int:
  1678. fastpathTV.EncMapFloat32IntV(*v, fastpathCheckNilTrue, e)
  1679. case map[float32]int8:
  1680. fastpathTV.EncMapFloat32Int8V(v, fastpathCheckNilTrue, e)
  1681. case *map[float32]int8:
  1682. fastpathTV.EncMapFloat32Int8V(*v, fastpathCheckNilTrue, e)
  1683. case map[float32]int16:
  1684. fastpathTV.EncMapFloat32Int16V(v, fastpathCheckNilTrue, e)
  1685. case *map[float32]int16:
  1686. fastpathTV.EncMapFloat32Int16V(*v, fastpathCheckNilTrue, e)
  1687. case map[float32]int32:
  1688. fastpathTV.EncMapFloat32Int32V(v, fastpathCheckNilTrue, e)
  1689. case *map[float32]int32:
  1690. fastpathTV.EncMapFloat32Int32V(*v, fastpathCheckNilTrue, e)
  1691. case map[float32]int64:
  1692. fastpathTV.EncMapFloat32Int64V(v, fastpathCheckNilTrue, e)
  1693. case *map[float32]int64:
  1694. fastpathTV.EncMapFloat32Int64V(*v, fastpathCheckNilTrue, e)
  1695. case map[float32]float32:
  1696. fastpathTV.EncMapFloat32Float32V(v, fastpathCheckNilTrue, e)
  1697. case *map[float32]float32:
  1698. fastpathTV.EncMapFloat32Float32V(*v, fastpathCheckNilTrue, e)
  1699. case map[float32]float64:
  1700. fastpathTV.EncMapFloat32Float64V(v, fastpathCheckNilTrue, e)
  1701. case *map[float32]float64:
  1702. fastpathTV.EncMapFloat32Float64V(*v, fastpathCheckNilTrue, e)
  1703. case map[float32]bool:
  1704. fastpathTV.EncMapFloat32BoolV(v, fastpathCheckNilTrue, e)
  1705. case *map[float32]bool:
  1706. fastpathTV.EncMapFloat32BoolV(*v, fastpathCheckNilTrue, e)
  1707. case map[float64]interface{}:
  1708. fastpathTV.EncMapFloat64IntfV(v, fastpathCheckNilTrue, e)
  1709. case *map[float64]interface{}:
  1710. fastpathTV.EncMapFloat64IntfV(*v, fastpathCheckNilTrue, e)
  1711. case map[float64]string:
  1712. fastpathTV.EncMapFloat64StringV(v, fastpathCheckNilTrue, e)
  1713. case *map[float64]string:
  1714. fastpathTV.EncMapFloat64StringV(*v, fastpathCheckNilTrue, e)
  1715. case map[float64]uint:
  1716. fastpathTV.EncMapFloat64UintV(v, fastpathCheckNilTrue, e)
  1717. case *map[float64]uint:
  1718. fastpathTV.EncMapFloat64UintV(*v, fastpathCheckNilTrue, e)
  1719. case map[float64]uint8:
  1720. fastpathTV.EncMapFloat64Uint8V(v, fastpathCheckNilTrue, e)
  1721. case *map[float64]uint8:
  1722. fastpathTV.EncMapFloat64Uint8V(*v, fastpathCheckNilTrue, e)
  1723. case map[float64]uint16:
  1724. fastpathTV.EncMapFloat64Uint16V(v, fastpathCheckNilTrue, e)
  1725. case *map[float64]uint16:
  1726. fastpathTV.EncMapFloat64Uint16V(*v, fastpathCheckNilTrue, e)
  1727. case map[float64]uint32:
  1728. fastpathTV.EncMapFloat64Uint32V(v, fastpathCheckNilTrue, e)
  1729. case *map[float64]uint32:
  1730. fastpathTV.EncMapFloat64Uint32V(*v, fastpathCheckNilTrue, e)
  1731. case map[float64]uint64:
  1732. fastpathTV.EncMapFloat64Uint64V(v, fastpathCheckNilTrue, e)
  1733. case *map[float64]uint64:
  1734. fastpathTV.EncMapFloat64Uint64V(*v, fastpathCheckNilTrue, e)
  1735. case map[float64]uintptr:
  1736. fastpathTV.EncMapFloat64UintptrV(v, fastpathCheckNilTrue, e)
  1737. case *map[float64]uintptr:
  1738. fastpathTV.EncMapFloat64UintptrV(*v, fastpathCheckNilTrue, e)
  1739. case map[float64]int:
  1740. fastpathTV.EncMapFloat64IntV(v, fastpathCheckNilTrue, e)
  1741. case *map[float64]int:
  1742. fastpathTV.EncMapFloat64IntV(*v, fastpathCheckNilTrue, e)
  1743. case map[float64]int8:
  1744. fastpathTV.EncMapFloat64Int8V(v, fastpathCheckNilTrue, e)
  1745. case *map[float64]int8:
  1746. fastpathTV.EncMapFloat64Int8V(*v, fastpathCheckNilTrue, e)
  1747. case map[float64]int16:
  1748. fastpathTV.EncMapFloat64Int16V(v, fastpathCheckNilTrue, e)
  1749. case *map[float64]int16:
  1750. fastpathTV.EncMapFloat64Int16V(*v, fastpathCheckNilTrue, e)
  1751. case map[float64]int32:
  1752. fastpathTV.EncMapFloat64Int32V(v, fastpathCheckNilTrue, e)
  1753. case *map[float64]int32:
  1754. fastpathTV.EncMapFloat64Int32V(*v, fastpathCheckNilTrue, e)
  1755. case map[float64]int64:
  1756. fastpathTV.EncMapFloat64Int64V(v, fastpathCheckNilTrue, e)
  1757. case *map[float64]int64:
  1758. fastpathTV.EncMapFloat64Int64V(*v, fastpathCheckNilTrue, e)
  1759. case map[float64]float32:
  1760. fastpathTV.EncMapFloat64Float32V(v, fastpathCheckNilTrue, e)
  1761. case *map[float64]float32:
  1762. fastpathTV.EncMapFloat64Float32V(*v, fastpathCheckNilTrue, e)
  1763. case map[float64]float64:
  1764. fastpathTV.EncMapFloat64Float64V(v, fastpathCheckNilTrue, e)
  1765. case *map[float64]float64:
  1766. fastpathTV.EncMapFloat64Float64V(*v, fastpathCheckNilTrue, e)
  1767. case map[float64]bool:
  1768. fastpathTV.EncMapFloat64BoolV(v, fastpathCheckNilTrue, e)
  1769. case *map[float64]bool:
  1770. fastpathTV.EncMapFloat64BoolV(*v, fastpathCheckNilTrue, e)
  1771. case map[uint]interface{}:
  1772. fastpathTV.EncMapUintIntfV(v, fastpathCheckNilTrue, e)
  1773. case *map[uint]interface{}:
  1774. fastpathTV.EncMapUintIntfV(*v, fastpathCheckNilTrue, e)
  1775. case map[uint]string:
  1776. fastpathTV.EncMapUintStringV(v, fastpathCheckNilTrue, e)
  1777. case *map[uint]string:
  1778. fastpathTV.EncMapUintStringV(*v, fastpathCheckNilTrue, e)
  1779. case map[uint]uint:
  1780. fastpathTV.EncMapUintUintV(v, fastpathCheckNilTrue, e)
  1781. case *map[uint]uint:
  1782. fastpathTV.EncMapUintUintV(*v, fastpathCheckNilTrue, e)
  1783. case map[uint]uint8:
  1784. fastpathTV.EncMapUintUint8V(v, fastpathCheckNilTrue, e)
  1785. case *map[uint]uint8:
  1786. fastpathTV.EncMapUintUint8V(*v, fastpathCheckNilTrue, e)
  1787. case map[uint]uint16:
  1788. fastpathTV.EncMapUintUint16V(v, fastpathCheckNilTrue, e)
  1789. case *map[uint]uint16:
  1790. fastpathTV.EncMapUintUint16V(*v, fastpathCheckNilTrue, e)
  1791. case map[uint]uint32:
  1792. fastpathTV.EncMapUintUint32V(v, fastpathCheckNilTrue, e)
  1793. case *map[uint]uint32:
  1794. fastpathTV.EncMapUintUint32V(*v, fastpathCheckNilTrue, e)
  1795. case map[uint]uint64:
  1796. fastpathTV.EncMapUintUint64V(v, fastpathCheckNilTrue, e)
  1797. case *map[uint]uint64:
  1798. fastpathTV.EncMapUintUint64V(*v, fastpathCheckNilTrue, e)
  1799. case map[uint]uintptr:
  1800. fastpathTV.EncMapUintUintptrV(v, fastpathCheckNilTrue, e)
  1801. case *map[uint]uintptr:
  1802. fastpathTV.EncMapUintUintptrV(*v, fastpathCheckNilTrue, e)
  1803. case map[uint]int:
  1804. fastpathTV.EncMapUintIntV(v, fastpathCheckNilTrue, e)
  1805. case *map[uint]int:
  1806. fastpathTV.EncMapUintIntV(*v, fastpathCheckNilTrue, e)
  1807. case map[uint]int8:
  1808. fastpathTV.EncMapUintInt8V(v, fastpathCheckNilTrue, e)
  1809. case *map[uint]int8:
  1810. fastpathTV.EncMapUintInt8V(*v, fastpathCheckNilTrue, e)
  1811. case map[uint]int16:
  1812. fastpathTV.EncMapUintInt16V(v, fastpathCheckNilTrue, e)
  1813. case *map[uint]int16:
  1814. fastpathTV.EncMapUintInt16V(*v, fastpathCheckNilTrue, e)
  1815. case map[uint]int32:
  1816. fastpathTV.EncMapUintInt32V(v, fastpathCheckNilTrue, e)
  1817. case *map[uint]int32:
  1818. fastpathTV.EncMapUintInt32V(*v, fastpathCheckNilTrue, e)
  1819. case map[uint]int64:
  1820. fastpathTV.EncMapUintInt64V(v, fastpathCheckNilTrue, e)
  1821. case *map[uint]int64:
  1822. fastpathTV.EncMapUintInt64V(*v, fastpathCheckNilTrue, e)
  1823. case map[uint]float32:
  1824. fastpathTV.EncMapUintFloat32V(v, fastpathCheckNilTrue, e)
  1825. case *map[uint]float32:
  1826. fastpathTV.EncMapUintFloat32V(*v, fastpathCheckNilTrue, e)
  1827. case map[uint]float64:
  1828. fastpathTV.EncMapUintFloat64V(v, fastpathCheckNilTrue, e)
  1829. case *map[uint]float64:
  1830. fastpathTV.EncMapUintFloat64V(*v, fastpathCheckNilTrue, e)
  1831. case map[uint]bool:
  1832. fastpathTV.EncMapUintBoolV(v, fastpathCheckNilTrue, e)
  1833. case *map[uint]bool:
  1834. fastpathTV.EncMapUintBoolV(*v, fastpathCheckNilTrue, e)
  1835. case map[uint8]interface{}:
  1836. fastpathTV.EncMapUint8IntfV(v, fastpathCheckNilTrue, e)
  1837. case *map[uint8]interface{}:
  1838. fastpathTV.EncMapUint8IntfV(*v, fastpathCheckNilTrue, e)
  1839. case map[uint8]string:
  1840. fastpathTV.EncMapUint8StringV(v, fastpathCheckNilTrue, e)
  1841. case *map[uint8]string:
  1842. fastpathTV.EncMapUint8StringV(*v, fastpathCheckNilTrue, e)
  1843. case map[uint8]uint:
  1844. fastpathTV.EncMapUint8UintV(v, fastpathCheckNilTrue, e)
  1845. case *map[uint8]uint:
  1846. fastpathTV.EncMapUint8UintV(*v, fastpathCheckNilTrue, e)
  1847. case map[uint8]uint8:
  1848. fastpathTV.EncMapUint8Uint8V(v, fastpathCheckNilTrue, e)
  1849. case *map[uint8]uint8:
  1850. fastpathTV.EncMapUint8Uint8V(*v, fastpathCheckNilTrue, e)
  1851. case map[uint8]uint16:
  1852. fastpathTV.EncMapUint8Uint16V(v, fastpathCheckNilTrue, e)
  1853. case *map[uint8]uint16:
  1854. fastpathTV.EncMapUint8Uint16V(*v, fastpathCheckNilTrue, e)
  1855. case map[uint8]uint32:
  1856. fastpathTV.EncMapUint8Uint32V(v, fastpathCheckNilTrue, e)
  1857. case *map[uint8]uint32:
  1858. fastpathTV.EncMapUint8Uint32V(*v, fastpathCheckNilTrue, e)
  1859. case map[uint8]uint64:
  1860. fastpathTV.EncMapUint8Uint64V(v, fastpathCheckNilTrue, e)
  1861. case *map[uint8]uint64:
  1862. fastpathTV.EncMapUint8Uint64V(*v, fastpathCheckNilTrue, e)
  1863. case map[uint8]uintptr:
  1864. fastpathTV.EncMapUint8UintptrV(v, fastpathCheckNilTrue, e)
  1865. case *map[uint8]uintptr:
  1866. fastpathTV.EncMapUint8UintptrV(*v, fastpathCheckNilTrue, e)
  1867. case map[uint8]int:
  1868. fastpathTV.EncMapUint8IntV(v, fastpathCheckNilTrue, e)
  1869. case *map[uint8]int:
  1870. fastpathTV.EncMapUint8IntV(*v, fastpathCheckNilTrue, e)
  1871. case map[uint8]int8:
  1872. fastpathTV.EncMapUint8Int8V(v, fastpathCheckNilTrue, e)
  1873. case *map[uint8]int8:
  1874. fastpathTV.EncMapUint8Int8V(*v, fastpathCheckNilTrue, e)
  1875. case map[uint8]int16:
  1876. fastpathTV.EncMapUint8Int16V(v, fastpathCheckNilTrue, e)
  1877. case *map[uint8]int16:
  1878. fastpathTV.EncMapUint8Int16V(*v, fastpathCheckNilTrue, e)
  1879. case map[uint8]int32:
  1880. fastpathTV.EncMapUint8Int32V(v, fastpathCheckNilTrue, e)
  1881. case *map[uint8]int32:
  1882. fastpathTV.EncMapUint8Int32V(*v, fastpathCheckNilTrue, e)
  1883. case map[uint8]int64:
  1884. fastpathTV.EncMapUint8Int64V(v, fastpathCheckNilTrue, e)
  1885. case *map[uint8]int64:
  1886. fastpathTV.EncMapUint8Int64V(*v, fastpathCheckNilTrue, e)
  1887. case map[uint8]float32:
  1888. fastpathTV.EncMapUint8Float32V(v, fastpathCheckNilTrue, e)
  1889. case *map[uint8]float32:
  1890. fastpathTV.EncMapUint8Float32V(*v, fastpathCheckNilTrue, e)
  1891. case map[uint8]float64:
  1892. fastpathTV.EncMapUint8Float64V(v, fastpathCheckNilTrue, e)
  1893. case *map[uint8]float64:
  1894. fastpathTV.EncMapUint8Float64V(*v, fastpathCheckNilTrue, e)
  1895. case map[uint8]bool:
  1896. fastpathTV.EncMapUint8BoolV(v, fastpathCheckNilTrue, e)
  1897. case *map[uint8]bool:
  1898. fastpathTV.EncMapUint8BoolV(*v, fastpathCheckNilTrue, e)
  1899. case map[uint16]interface{}:
  1900. fastpathTV.EncMapUint16IntfV(v, fastpathCheckNilTrue, e)
  1901. case *map[uint16]interface{}:
  1902. fastpathTV.EncMapUint16IntfV(*v, fastpathCheckNilTrue, e)
  1903. case map[uint16]string:
  1904. fastpathTV.EncMapUint16StringV(v, fastpathCheckNilTrue, e)
  1905. case *map[uint16]string:
  1906. fastpathTV.EncMapUint16StringV(*v, fastpathCheckNilTrue, e)
  1907. case map[uint16]uint:
  1908. fastpathTV.EncMapUint16UintV(v, fastpathCheckNilTrue, e)
  1909. case *map[uint16]uint:
  1910. fastpathTV.EncMapUint16UintV(*v, fastpathCheckNilTrue, e)
  1911. case map[uint16]uint8:
  1912. fastpathTV.EncMapUint16Uint8V(v, fastpathCheckNilTrue, e)
  1913. case *map[uint16]uint8:
  1914. fastpathTV.EncMapUint16Uint8V(*v, fastpathCheckNilTrue, e)
  1915. case map[uint16]uint16:
  1916. fastpathTV.EncMapUint16Uint16V(v, fastpathCheckNilTrue, e)
  1917. case *map[uint16]uint16:
  1918. fastpathTV.EncMapUint16Uint16V(*v, fastpathCheckNilTrue, e)
  1919. case map[uint16]uint32:
  1920. fastpathTV.EncMapUint16Uint32V(v, fastpathCheckNilTrue, e)
  1921. case *map[uint16]uint32:
  1922. fastpathTV.EncMapUint16Uint32V(*v, fastpathCheckNilTrue, e)
  1923. case map[uint16]uint64:
  1924. fastpathTV.EncMapUint16Uint64V(v, fastpathCheckNilTrue, e)
  1925. case *map[uint16]uint64:
  1926. fastpathTV.EncMapUint16Uint64V(*v, fastpathCheckNilTrue, e)
  1927. case map[uint16]uintptr:
  1928. fastpathTV.EncMapUint16UintptrV(v, fastpathCheckNilTrue, e)
  1929. case *map[uint16]uintptr:
  1930. fastpathTV.EncMapUint16UintptrV(*v, fastpathCheckNilTrue, e)
  1931. case map[uint16]int:
  1932. fastpathTV.EncMapUint16IntV(v, fastpathCheckNilTrue, e)
  1933. case *map[uint16]int:
  1934. fastpathTV.EncMapUint16IntV(*v, fastpathCheckNilTrue, e)
  1935. case map[uint16]int8:
  1936. fastpathTV.EncMapUint16Int8V(v, fastpathCheckNilTrue, e)
  1937. case *map[uint16]int8:
  1938. fastpathTV.EncMapUint16Int8V(*v, fastpathCheckNilTrue, e)
  1939. case map[uint16]int16:
  1940. fastpathTV.EncMapUint16Int16V(v, fastpathCheckNilTrue, e)
  1941. case *map[uint16]int16:
  1942. fastpathTV.EncMapUint16Int16V(*v, fastpathCheckNilTrue, e)
  1943. case map[uint16]int32:
  1944. fastpathTV.EncMapUint16Int32V(v, fastpathCheckNilTrue, e)
  1945. case *map[uint16]int32:
  1946. fastpathTV.EncMapUint16Int32V(*v, fastpathCheckNilTrue, e)
  1947. case map[uint16]int64:
  1948. fastpathTV.EncMapUint16Int64V(v, fastpathCheckNilTrue, e)
  1949. case *map[uint16]int64:
  1950. fastpathTV.EncMapUint16Int64V(*v, fastpathCheckNilTrue, e)
  1951. case map[uint16]float32:
  1952. fastpathTV.EncMapUint16Float32V(v, fastpathCheckNilTrue, e)
  1953. case *map[uint16]float32:
  1954. fastpathTV.EncMapUint16Float32V(*v, fastpathCheckNilTrue, e)
  1955. case map[uint16]float64:
  1956. fastpathTV.EncMapUint16Float64V(v, fastpathCheckNilTrue, e)
  1957. case *map[uint16]float64:
  1958. fastpathTV.EncMapUint16Float64V(*v, fastpathCheckNilTrue, e)
  1959. case map[uint16]bool:
  1960. fastpathTV.EncMapUint16BoolV(v, fastpathCheckNilTrue, e)
  1961. case *map[uint16]bool:
  1962. fastpathTV.EncMapUint16BoolV(*v, fastpathCheckNilTrue, e)
  1963. case map[uint32]interface{}:
  1964. fastpathTV.EncMapUint32IntfV(v, fastpathCheckNilTrue, e)
  1965. case *map[uint32]interface{}:
  1966. fastpathTV.EncMapUint32IntfV(*v, fastpathCheckNilTrue, e)
  1967. case map[uint32]string:
  1968. fastpathTV.EncMapUint32StringV(v, fastpathCheckNilTrue, e)
  1969. case *map[uint32]string:
  1970. fastpathTV.EncMapUint32StringV(*v, fastpathCheckNilTrue, e)
  1971. case map[uint32]uint:
  1972. fastpathTV.EncMapUint32UintV(v, fastpathCheckNilTrue, e)
  1973. case *map[uint32]uint:
  1974. fastpathTV.EncMapUint32UintV(*v, fastpathCheckNilTrue, e)
  1975. case map[uint32]uint8:
  1976. fastpathTV.EncMapUint32Uint8V(v, fastpathCheckNilTrue, e)
  1977. case *map[uint32]uint8:
  1978. fastpathTV.EncMapUint32Uint8V(*v, fastpathCheckNilTrue, e)
  1979. case map[uint32]uint16:
  1980. fastpathTV.EncMapUint32Uint16V(v, fastpathCheckNilTrue, e)
  1981. case *map[uint32]uint16:
  1982. fastpathTV.EncMapUint32Uint16V(*v, fastpathCheckNilTrue, e)
  1983. case map[uint32]uint32:
  1984. fastpathTV.EncMapUint32Uint32V(v, fastpathCheckNilTrue, e)
  1985. case *map[uint32]uint32:
  1986. fastpathTV.EncMapUint32Uint32V(*v, fastpathCheckNilTrue, e)
  1987. case map[uint32]uint64:
  1988. fastpathTV.EncMapUint32Uint64V(v, fastpathCheckNilTrue, e)
  1989. case *map[uint32]uint64:
  1990. fastpathTV.EncMapUint32Uint64V(*v, fastpathCheckNilTrue, e)
  1991. case map[uint32]uintptr:
  1992. fastpathTV.EncMapUint32UintptrV(v, fastpathCheckNilTrue, e)
  1993. case *map[uint32]uintptr:
  1994. fastpathTV.EncMapUint32UintptrV(*v, fastpathCheckNilTrue, e)
  1995. case map[uint32]int:
  1996. fastpathTV.EncMapUint32IntV(v, fastpathCheckNilTrue, e)
  1997. case *map[uint32]int:
  1998. fastpathTV.EncMapUint32IntV(*v, fastpathCheckNilTrue, e)
  1999. case map[uint32]int8:
  2000. fastpathTV.EncMapUint32Int8V(v, fastpathCheckNilTrue, e)
  2001. case *map[uint32]int8:
  2002. fastpathTV.EncMapUint32Int8V(*v, fastpathCheckNilTrue, e)
  2003. case map[uint32]int16:
  2004. fastpathTV.EncMapUint32Int16V(v, fastpathCheckNilTrue, e)
  2005. case *map[uint32]int16:
  2006. fastpathTV.EncMapUint32Int16V(*v, fastpathCheckNilTrue, e)
  2007. case map[uint32]int32:
  2008. fastpathTV.EncMapUint32Int32V(v, fastpathCheckNilTrue, e)
  2009. case *map[uint32]int32:
  2010. fastpathTV.EncMapUint32Int32V(*v, fastpathCheckNilTrue, e)
  2011. case map[uint32]int64:
  2012. fastpathTV.EncMapUint32Int64V(v, fastpathCheckNilTrue, e)
  2013. case *map[uint32]int64:
  2014. fastpathTV.EncMapUint32Int64V(*v, fastpathCheckNilTrue, e)
  2015. case map[uint32]float32:
  2016. fastpathTV.EncMapUint32Float32V(v, fastpathCheckNilTrue, e)
  2017. case *map[uint32]float32:
  2018. fastpathTV.EncMapUint32Float32V(*v, fastpathCheckNilTrue, e)
  2019. case map[uint32]float64:
  2020. fastpathTV.EncMapUint32Float64V(v, fastpathCheckNilTrue, e)
  2021. case *map[uint32]float64:
  2022. fastpathTV.EncMapUint32Float64V(*v, fastpathCheckNilTrue, e)
  2023. case map[uint32]bool:
  2024. fastpathTV.EncMapUint32BoolV(v, fastpathCheckNilTrue, e)
  2025. case *map[uint32]bool:
  2026. fastpathTV.EncMapUint32BoolV(*v, fastpathCheckNilTrue, e)
  2027. case map[uint64]interface{}:
  2028. fastpathTV.EncMapUint64IntfV(v, fastpathCheckNilTrue, e)
  2029. case *map[uint64]interface{}:
  2030. fastpathTV.EncMapUint64IntfV(*v, fastpathCheckNilTrue, e)
  2031. case map[uint64]string:
  2032. fastpathTV.EncMapUint64StringV(v, fastpathCheckNilTrue, e)
  2033. case *map[uint64]string:
  2034. fastpathTV.EncMapUint64StringV(*v, fastpathCheckNilTrue, e)
  2035. case map[uint64]uint:
  2036. fastpathTV.EncMapUint64UintV(v, fastpathCheckNilTrue, e)
  2037. case *map[uint64]uint:
  2038. fastpathTV.EncMapUint64UintV(*v, fastpathCheckNilTrue, e)
  2039. case map[uint64]uint8:
  2040. fastpathTV.EncMapUint64Uint8V(v, fastpathCheckNilTrue, e)
  2041. case *map[uint64]uint8:
  2042. fastpathTV.EncMapUint64Uint8V(*v, fastpathCheckNilTrue, e)
  2043. case map[uint64]uint16:
  2044. fastpathTV.EncMapUint64Uint16V(v, fastpathCheckNilTrue, e)
  2045. case *map[uint64]uint16:
  2046. fastpathTV.EncMapUint64Uint16V(*v, fastpathCheckNilTrue, e)
  2047. case map[uint64]uint32:
  2048. fastpathTV.EncMapUint64Uint32V(v, fastpathCheckNilTrue, e)
  2049. case *map[uint64]uint32:
  2050. fastpathTV.EncMapUint64Uint32V(*v, fastpathCheckNilTrue, e)
  2051. case map[uint64]uint64:
  2052. fastpathTV.EncMapUint64Uint64V(v, fastpathCheckNilTrue, e)
  2053. case *map[uint64]uint64:
  2054. fastpathTV.EncMapUint64Uint64V(*v, fastpathCheckNilTrue, e)
  2055. case map[uint64]uintptr:
  2056. fastpathTV.EncMapUint64UintptrV(v, fastpathCheckNilTrue, e)
  2057. case *map[uint64]uintptr:
  2058. fastpathTV.EncMapUint64UintptrV(*v, fastpathCheckNilTrue, e)
  2059. case map[uint64]int:
  2060. fastpathTV.EncMapUint64IntV(v, fastpathCheckNilTrue, e)
  2061. case *map[uint64]int:
  2062. fastpathTV.EncMapUint64IntV(*v, fastpathCheckNilTrue, e)
  2063. case map[uint64]int8:
  2064. fastpathTV.EncMapUint64Int8V(v, fastpathCheckNilTrue, e)
  2065. case *map[uint64]int8:
  2066. fastpathTV.EncMapUint64Int8V(*v, fastpathCheckNilTrue, e)
  2067. case map[uint64]int16:
  2068. fastpathTV.EncMapUint64Int16V(v, fastpathCheckNilTrue, e)
  2069. case *map[uint64]int16:
  2070. fastpathTV.EncMapUint64Int16V(*v, fastpathCheckNilTrue, e)
  2071. case map[uint64]int32:
  2072. fastpathTV.EncMapUint64Int32V(v, fastpathCheckNilTrue, e)
  2073. case *map[uint64]int32:
  2074. fastpathTV.EncMapUint64Int32V(*v, fastpathCheckNilTrue, e)
  2075. case map[uint64]int64:
  2076. fastpathTV.EncMapUint64Int64V(v, fastpathCheckNilTrue, e)
  2077. case *map[uint64]int64:
  2078. fastpathTV.EncMapUint64Int64V(*v, fastpathCheckNilTrue, e)
  2079. case map[uint64]float32:
  2080. fastpathTV.EncMapUint64Float32V(v, fastpathCheckNilTrue, e)
  2081. case *map[uint64]float32:
  2082. fastpathTV.EncMapUint64Float32V(*v, fastpathCheckNilTrue, e)
  2083. case map[uint64]float64:
  2084. fastpathTV.EncMapUint64Float64V(v, fastpathCheckNilTrue, e)
  2085. case *map[uint64]float64:
  2086. fastpathTV.EncMapUint64Float64V(*v, fastpathCheckNilTrue, e)
  2087. case map[uint64]bool:
  2088. fastpathTV.EncMapUint64BoolV(v, fastpathCheckNilTrue, e)
  2089. case *map[uint64]bool:
  2090. fastpathTV.EncMapUint64BoolV(*v, fastpathCheckNilTrue, e)
  2091. case map[uintptr]interface{}:
  2092. fastpathTV.EncMapUintptrIntfV(v, fastpathCheckNilTrue, e)
  2093. case *map[uintptr]interface{}:
  2094. fastpathTV.EncMapUintptrIntfV(*v, fastpathCheckNilTrue, e)
  2095. case map[uintptr]string:
  2096. fastpathTV.EncMapUintptrStringV(v, fastpathCheckNilTrue, e)
  2097. case *map[uintptr]string:
  2098. fastpathTV.EncMapUintptrStringV(*v, fastpathCheckNilTrue, e)
  2099. case map[uintptr]uint:
  2100. fastpathTV.EncMapUintptrUintV(v, fastpathCheckNilTrue, e)
  2101. case *map[uintptr]uint:
  2102. fastpathTV.EncMapUintptrUintV(*v, fastpathCheckNilTrue, e)
  2103. case map[uintptr]uint8:
  2104. fastpathTV.EncMapUintptrUint8V(v, fastpathCheckNilTrue, e)
  2105. case *map[uintptr]uint8:
  2106. fastpathTV.EncMapUintptrUint8V(*v, fastpathCheckNilTrue, e)
  2107. case map[uintptr]uint16:
  2108. fastpathTV.EncMapUintptrUint16V(v, fastpathCheckNilTrue, e)
  2109. case *map[uintptr]uint16:
  2110. fastpathTV.EncMapUintptrUint16V(*v, fastpathCheckNilTrue, e)
  2111. case map[uintptr]uint32:
  2112. fastpathTV.EncMapUintptrUint32V(v, fastpathCheckNilTrue, e)
  2113. case *map[uintptr]uint32:
  2114. fastpathTV.EncMapUintptrUint32V(*v, fastpathCheckNilTrue, e)
  2115. case map[uintptr]uint64:
  2116. fastpathTV.EncMapUintptrUint64V(v, fastpathCheckNilTrue, e)
  2117. case *map[uintptr]uint64:
  2118. fastpathTV.EncMapUintptrUint64V(*v, fastpathCheckNilTrue, e)
  2119. case map[uintptr]uintptr:
  2120. fastpathTV.EncMapUintptrUintptrV(v, fastpathCheckNilTrue, e)
  2121. case *map[uintptr]uintptr:
  2122. fastpathTV.EncMapUintptrUintptrV(*v, fastpathCheckNilTrue, e)
  2123. case map[uintptr]int:
  2124. fastpathTV.EncMapUintptrIntV(v, fastpathCheckNilTrue, e)
  2125. case *map[uintptr]int:
  2126. fastpathTV.EncMapUintptrIntV(*v, fastpathCheckNilTrue, e)
  2127. case map[uintptr]int8:
  2128. fastpathTV.EncMapUintptrInt8V(v, fastpathCheckNilTrue, e)
  2129. case *map[uintptr]int8:
  2130. fastpathTV.EncMapUintptrInt8V(*v, fastpathCheckNilTrue, e)
  2131. case map[uintptr]int16:
  2132. fastpathTV.EncMapUintptrInt16V(v, fastpathCheckNilTrue, e)
  2133. case *map[uintptr]int16:
  2134. fastpathTV.EncMapUintptrInt16V(*v, fastpathCheckNilTrue, e)
  2135. case map[uintptr]int32:
  2136. fastpathTV.EncMapUintptrInt32V(v, fastpathCheckNilTrue, e)
  2137. case *map[uintptr]int32:
  2138. fastpathTV.EncMapUintptrInt32V(*v, fastpathCheckNilTrue, e)
  2139. case map[uintptr]int64:
  2140. fastpathTV.EncMapUintptrInt64V(v, fastpathCheckNilTrue, e)
  2141. case *map[uintptr]int64:
  2142. fastpathTV.EncMapUintptrInt64V(*v, fastpathCheckNilTrue, e)
  2143. case map[uintptr]float32:
  2144. fastpathTV.EncMapUintptrFloat32V(v, fastpathCheckNilTrue, e)
  2145. case *map[uintptr]float32:
  2146. fastpathTV.EncMapUintptrFloat32V(*v, fastpathCheckNilTrue, e)
  2147. case map[uintptr]float64:
  2148. fastpathTV.EncMapUintptrFloat64V(v, fastpathCheckNilTrue, e)
  2149. case *map[uintptr]float64:
  2150. fastpathTV.EncMapUintptrFloat64V(*v, fastpathCheckNilTrue, e)
  2151. case map[uintptr]bool:
  2152. fastpathTV.EncMapUintptrBoolV(v, fastpathCheckNilTrue, e)
  2153. case *map[uintptr]bool:
  2154. fastpathTV.EncMapUintptrBoolV(*v, fastpathCheckNilTrue, e)
  2155. case map[int]interface{}:
  2156. fastpathTV.EncMapIntIntfV(v, fastpathCheckNilTrue, e)
  2157. case *map[int]interface{}:
  2158. fastpathTV.EncMapIntIntfV(*v, fastpathCheckNilTrue, e)
  2159. case map[int]string:
  2160. fastpathTV.EncMapIntStringV(v, fastpathCheckNilTrue, e)
  2161. case *map[int]string:
  2162. fastpathTV.EncMapIntStringV(*v, fastpathCheckNilTrue, e)
  2163. case map[int]uint:
  2164. fastpathTV.EncMapIntUintV(v, fastpathCheckNilTrue, e)
  2165. case *map[int]uint:
  2166. fastpathTV.EncMapIntUintV(*v, fastpathCheckNilTrue, e)
  2167. case map[int]uint8:
  2168. fastpathTV.EncMapIntUint8V(v, fastpathCheckNilTrue, e)
  2169. case *map[int]uint8:
  2170. fastpathTV.EncMapIntUint8V(*v, fastpathCheckNilTrue, e)
  2171. case map[int]uint16:
  2172. fastpathTV.EncMapIntUint16V(v, fastpathCheckNilTrue, e)
  2173. case *map[int]uint16:
  2174. fastpathTV.EncMapIntUint16V(*v, fastpathCheckNilTrue, e)
  2175. case map[int]uint32:
  2176. fastpathTV.EncMapIntUint32V(v, fastpathCheckNilTrue, e)
  2177. case *map[int]uint32:
  2178. fastpathTV.EncMapIntUint32V(*v, fastpathCheckNilTrue, e)
  2179. case map[int]uint64:
  2180. fastpathTV.EncMapIntUint64V(v, fastpathCheckNilTrue, e)
  2181. case *map[int]uint64:
  2182. fastpathTV.EncMapIntUint64V(*v, fastpathCheckNilTrue, e)
  2183. case map[int]uintptr:
  2184. fastpathTV.EncMapIntUintptrV(v, fastpathCheckNilTrue, e)
  2185. case *map[int]uintptr:
  2186. fastpathTV.EncMapIntUintptrV(*v, fastpathCheckNilTrue, e)
  2187. case map[int]int:
  2188. fastpathTV.EncMapIntIntV(v, fastpathCheckNilTrue, e)
  2189. case *map[int]int:
  2190. fastpathTV.EncMapIntIntV(*v, fastpathCheckNilTrue, e)
  2191. case map[int]int8:
  2192. fastpathTV.EncMapIntInt8V(v, fastpathCheckNilTrue, e)
  2193. case *map[int]int8:
  2194. fastpathTV.EncMapIntInt8V(*v, fastpathCheckNilTrue, e)
  2195. case map[int]int16:
  2196. fastpathTV.EncMapIntInt16V(v, fastpathCheckNilTrue, e)
  2197. case *map[int]int16:
  2198. fastpathTV.EncMapIntInt16V(*v, fastpathCheckNilTrue, e)
  2199. case map[int]int32:
  2200. fastpathTV.EncMapIntInt32V(v, fastpathCheckNilTrue, e)
  2201. case *map[int]int32:
  2202. fastpathTV.EncMapIntInt32V(*v, fastpathCheckNilTrue, e)
  2203. case map[int]int64:
  2204. fastpathTV.EncMapIntInt64V(v, fastpathCheckNilTrue, e)
  2205. case *map[int]int64:
  2206. fastpathTV.EncMapIntInt64V(*v, fastpathCheckNilTrue, e)
  2207. case map[int]float32:
  2208. fastpathTV.EncMapIntFloat32V(v, fastpathCheckNilTrue, e)
  2209. case *map[int]float32:
  2210. fastpathTV.EncMapIntFloat32V(*v, fastpathCheckNilTrue, e)
  2211. case map[int]float64:
  2212. fastpathTV.EncMapIntFloat64V(v, fastpathCheckNilTrue, e)
  2213. case *map[int]float64:
  2214. fastpathTV.EncMapIntFloat64V(*v, fastpathCheckNilTrue, e)
  2215. case map[int]bool:
  2216. fastpathTV.EncMapIntBoolV(v, fastpathCheckNilTrue, e)
  2217. case *map[int]bool:
  2218. fastpathTV.EncMapIntBoolV(*v, fastpathCheckNilTrue, e)
  2219. case map[int8]interface{}:
  2220. fastpathTV.EncMapInt8IntfV(v, fastpathCheckNilTrue, e)
  2221. case *map[int8]interface{}:
  2222. fastpathTV.EncMapInt8IntfV(*v, fastpathCheckNilTrue, e)
  2223. case map[int8]string:
  2224. fastpathTV.EncMapInt8StringV(v, fastpathCheckNilTrue, e)
  2225. case *map[int8]string:
  2226. fastpathTV.EncMapInt8StringV(*v, fastpathCheckNilTrue, e)
  2227. case map[int8]uint:
  2228. fastpathTV.EncMapInt8UintV(v, fastpathCheckNilTrue, e)
  2229. case *map[int8]uint:
  2230. fastpathTV.EncMapInt8UintV(*v, fastpathCheckNilTrue, e)
  2231. case map[int8]uint8:
  2232. fastpathTV.EncMapInt8Uint8V(v, fastpathCheckNilTrue, e)
  2233. case *map[int8]uint8:
  2234. fastpathTV.EncMapInt8Uint8V(*v, fastpathCheckNilTrue, e)
  2235. case map[int8]uint16:
  2236. fastpathTV.EncMapInt8Uint16V(v, fastpathCheckNilTrue, e)
  2237. case *map[int8]uint16:
  2238. fastpathTV.EncMapInt8Uint16V(*v, fastpathCheckNilTrue, e)
  2239. case map[int8]uint32:
  2240. fastpathTV.EncMapInt8Uint32V(v, fastpathCheckNilTrue, e)
  2241. case *map[int8]uint32:
  2242. fastpathTV.EncMapInt8Uint32V(*v, fastpathCheckNilTrue, e)
  2243. case map[int8]uint64:
  2244. fastpathTV.EncMapInt8Uint64V(v, fastpathCheckNilTrue, e)
  2245. case *map[int8]uint64:
  2246. fastpathTV.EncMapInt8Uint64V(*v, fastpathCheckNilTrue, e)
  2247. case map[int8]uintptr:
  2248. fastpathTV.EncMapInt8UintptrV(v, fastpathCheckNilTrue, e)
  2249. case *map[int8]uintptr:
  2250. fastpathTV.EncMapInt8UintptrV(*v, fastpathCheckNilTrue, e)
  2251. case map[int8]int:
  2252. fastpathTV.EncMapInt8IntV(v, fastpathCheckNilTrue, e)
  2253. case *map[int8]int:
  2254. fastpathTV.EncMapInt8IntV(*v, fastpathCheckNilTrue, e)
  2255. case map[int8]int8:
  2256. fastpathTV.EncMapInt8Int8V(v, fastpathCheckNilTrue, e)
  2257. case *map[int8]int8:
  2258. fastpathTV.EncMapInt8Int8V(*v, fastpathCheckNilTrue, e)
  2259. case map[int8]int16:
  2260. fastpathTV.EncMapInt8Int16V(v, fastpathCheckNilTrue, e)
  2261. case *map[int8]int16:
  2262. fastpathTV.EncMapInt8Int16V(*v, fastpathCheckNilTrue, e)
  2263. case map[int8]int32:
  2264. fastpathTV.EncMapInt8Int32V(v, fastpathCheckNilTrue, e)
  2265. case *map[int8]int32:
  2266. fastpathTV.EncMapInt8Int32V(*v, fastpathCheckNilTrue, e)
  2267. case map[int8]int64:
  2268. fastpathTV.EncMapInt8Int64V(v, fastpathCheckNilTrue, e)
  2269. case *map[int8]int64:
  2270. fastpathTV.EncMapInt8Int64V(*v, fastpathCheckNilTrue, e)
  2271. case map[int8]float32:
  2272. fastpathTV.EncMapInt8Float32V(v, fastpathCheckNilTrue, e)
  2273. case *map[int8]float32:
  2274. fastpathTV.EncMapInt8Float32V(*v, fastpathCheckNilTrue, e)
  2275. case map[int8]float64:
  2276. fastpathTV.EncMapInt8Float64V(v, fastpathCheckNilTrue, e)
  2277. case *map[int8]float64:
  2278. fastpathTV.EncMapInt8Float64V(*v, fastpathCheckNilTrue, e)
  2279. case map[int8]bool:
  2280. fastpathTV.EncMapInt8BoolV(v, fastpathCheckNilTrue, e)
  2281. case *map[int8]bool:
  2282. fastpathTV.EncMapInt8BoolV(*v, fastpathCheckNilTrue, e)
  2283. case map[int16]interface{}:
  2284. fastpathTV.EncMapInt16IntfV(v, fastpathCheckNilTrue, e)
  2285. case *map[int16]interface{}:
  2286. fastpathTV.EncMapInt16IntfV(*v, fastpathCheckNilTrue, e)
  2287. case map[int16]string:
  2288. fastpathTV.EncMapInt16StringV(v, fastpathCheckNilTrue, e)
  2289. case *map[int16]string:
  2290. fastpathTV.EncMapInt16StringV(*v, fastpathCheckNilTrue, e)
  2291. case map[int16]uint:
  2292. fastpathTV.EncMapInt16UintV(v, fastpathCheckNilTrue, e)
  2293. case *map[int16]uint:
  2294. fastpathTV.EncMapInt16UintV(*v, fastpathCheckNilTrue, e)
  2295. case map[int16]uint8:
  2296. fastpathTV.EncMapInt16Uint8V(v, fastpathCheckNilTrue, e)
  2297. case *map[int16]uint8:
  2298. fastpathTV.EncMapInt16Uint8V(*v, fastpathCheckNilTrue, e)
  2299. case map[int16]uint16:
  2300. fastpathTV.EncMapInt16Uint16V(v, fastpathCheckNilTrue, e)
  2301. case *map[int16]uint16:
  2302. fastpathTV.EncMapInt16Uint16V(*v, fastpathCheckNilTrue, e)
  2303. case map[int16]uint32:
  2304. fastpathTV.EncMapInt16Uint32V(v, fastpathCheckNilTrue, e)
  2305. case *map[int16]uint32:
  2306. fastpathTV.EncMapInt16Uint32V(*v, fastpathCheckNilTrue, e)
  2307. case map[int16]uint64:
  2308. fastpathTV.EncMapInt16Uint64V(v, fastpathCheckNilTrue, e)
  2309. case *map[int16]uint64:
  2310. fastpathTV.EncMapInt16Uint64V(*v, fastpathCheckNilTrue, e)
  2311. case map[int16]uintptr:
  2312. fastpathTV.EncMapInt16UintptrV(v, fastpathCheckNilTrue, e)
  2313. case *map[int16]uintptr:
  2314. fastpathTV.EncMapInt16UintptrV(*v, fastpathCheckNilTrue, e)
  2315. case map[int16]int:
  2316. fastpathTV.EncMapInt16IntV(v, fastpathCheckNilTrue, e)
  2317. case *map[int16]int:
  2318. fastpathTV.EncMapInt16IntV(*v, fastpathCheckNilTrue, e)
  2319. case map[int16]int8:
  2320. fastpathTV.EncMapInt16Int8V(v, fastpathCheckNilTrue, e)
  2321. case *map[int16]int8:
  2322. fastpathTV.EncMapInt16Int8V(*v, fastpathCheckNilTrue, e)
  2323. case map[int16]int16:
  2324. fastpathTV.EncMapInt16Int16V(v, fastpathCheckNilTrue, e)
  2325. case *map[int16]int16:
  2326. fastpathTV.EncMapInt16Int16V(*v, fastpathCheckNilTrue, e)
  2327. case map[int16]int32:
  2328. fastpathTV.EncMapInt16Int32V(v, fastpathCheckNilTrue, e)
  2329. case *map[int16]int32:
  2330. fastpathTV.EncMapInt16Int32V(*v, fastpathCheckNilTrue, e)
  2331. case map[int16]int64:
  2332. fastpathTV.EncMapInt16Int64V(v, fastpathCheckNilTrue, e)
  2333. case *map[int16]int64:
  2334. fastpathTV.EncMapInt16Int64V(*v, fastpathCheckNilTrue, e)
  2335. case map[int16]float32:
  2336. fastpathTV.EncMapInt16Float32V(v, fastpathCheckNilTrue, e)
  2337. case *map[int16]float32:
  2338. fastpathTV.EncMapInt16Float32V(*v, fastpathCheckNilTrue, e)
  2339. case map[int16]float64:
  2340. fastpathTV.EncMapInt16Float64V(v, fastpathCheckNilTrue, e)
  2341. case *map[int16]float64:
  2342. fastpathTV.EncMapInt16Float64V(*v, fastpathCheckNilTrue, e)
  2343. case map[int16]bool:
  2344. fastpathTV.EncMapInt16BoolV(v, fastpathCheckNilTrue, e)
  2345. case *map[int16]bool:
  2346. fastpathTV.EncMapInt16BoolV(*v, fastpathCheckNilTrue, e)
  2347. case map[int32]interface{}:
  2348. fastpathTV.EncMapInt32IntfV(v, fastpathCheckNilTrue, e)
  2349. case *map[int32]interface{}:
  2350. fastpathTV.EncMapInt32IntfV(*v, fastpathCheckNilTrue, e)
  2351. case map[int32]string:
  2352. fastpathTV.EncMapInt32StringV(v, fastpathCheckNilTrue, e)
  2353. case *map[int32]string:
  2354. fastpathTV.EncMapInt32StringV(*v, fastpathCheckNilTrue, e)
  2355. case map[int32]uint:
  2356. fastpathTV.EncMapInt32UintV(v, fastpathCheckNilTrue, e)
  2357. case *map[int32]uint:
  2358. fastpathTV.EncMapInt32UintV(*v, fastpathCheckNilTrue, e)
  2359. case map[int32]uint8:
  2360. fastpathTV.EncMapInt32Uint8V(v, fastpathCheckNilTrue, e)
  2361. case *map[int32]uint8:
  2362. fastpathTV.EncMapInt32Uint8V(*v, fastpathCheckNilTrue, e)
  2363. case map[int32]uint16:
  2364. fastpathTV.EncMapInt32Uint16V(v, fastpathCheckNilTrue, e)
  2365. case *map[int32]uint16:
  2366. fastpathTV.EncMapInt32Uint16V(*v, fastpathCheckNilTrue, e)
  2367. case map[int32]uint32:
  2368. fastpathTV.EncMapInt32Uint32V(v, fastpathCheckNilTrue, e)
  2369. case *map[int32]uint32:
  2370. fastpathTV.EncMapInt32Uint32V(*v, fastpathCheckNilTrue, e)
  2371. case map[int32]uint64:
  2372. fastpathTV.EncMapInt32Uint64V(v, fastpathCheckNilTrue, e)
  2373. case *map[int32]uint64:
  2374. fastpathTV.EncMapInt32Uint64V(*v, fastpathCheckNilTrue, e)
  2375. case map[int32]uintptr:
  2376. fastpathTV.EncMapInt32UintptrV(v, fastpathCheckNilTrue, e)
  2377. case *map[int32]uintptr:
  2378. fastpathTV.EncMapInt32UintptrV(*v, fastpathCheckNilTrue, e)
  2379. case map[int32]int:
  2380. fastpathTV.EncMapInt32IntV(v, fastpathCheckNilTrue, e)
  2381. case *map[int32]int:
  2382. fastpathTV.EncMapInt32IntV(*v, fastpathCheckNilTrue, e)
  2383. case map[int32]int8:
  2384. fastpathTV.EncMapInt32Int8V(v, fastpathCheckNilTrue, e)
  2385. case *map[int32]int8:
  2386. fastpathTV.EncMapInt32Int8V(*v, fastpathCheckNilTrue, e)
  2387. case map[int32]int16:
  2388. fastpathTV.EncMapInt32Int16V(v, fastpathCheckNilTrue, e)
  2389. case *map[int32]int16:
  2390. fastpathTV.EncMapInt32Int16V(*v, fastpathCheckNilTrue, e)
  2391. case map[int32]int32:
  2392. fastpathTV.EncMapInt32Int32V(v, fastpathCheckNilTrue, e)
  2393. case *map[int32]int32:
  2394. fastpathTV.EncMapInt32Int32V(*v, fastpathCheckNilTrue, e)
  2395. case map[int32]int64:
  2396. fastpathTV.EncMapInt32Int64V(v, fastpathCheckNilTrue, e)
  2397. case *map[int32]int64:
  2398. fastpathTV.EncMapInt32Int64V(*v, fastpathCheckNilTrue, e)
  2399. case map[int32]float32:
  2400. fastpathTV.EncMapInt32Float32V(v, fastpathCheckNilTrue, e)
  2401. case *map[int32]float32:
  2402. fastpathTV.EncMapInt32Float32V(*v, fastpathCheckNilTrue, e)
  2403. case map[int32]float64:
  2404. fastpathTV.EncMapInt32Float64V(v, fastpathCheckNilTrue, e)
  2405. case *map[int32]float64:
  2406. fastpathTV.EncMapInt32Float64V(*v, fastpathCheckNilTrue, e)
  2407. case map[int32]bool:
  2408. fastpathTV.EncMapInt32BoolV(v, fastpathCheckNilTrue, e)
  2409. case *map[int32]bool:
  2410. fastpathTV.EncMapInt32BoolV(*v, fastpathCheckNilTrue, e)
  2411. case map[int64]interface{}:
  2412. fastpathTV.EncMapInt64IntfV(v, fastpathCheckNilTrue, e)
  2413. case *map[int64]interface{}:
  2414. fastpathTV.EncMapInt64IntfV(*v, fastpathCheckNilTrue, e)
  2415. case map[int64]string:
  2416. fastpathTV.EncMapInt64StringV(v, fastpathCheckNilTrue, e)
  2417. case *map[int64]string:
  2418. fastpathTV.EncMapInt64StringV(*v, fastpathCheckNilTrue, e)
  2419. case map[int64]uint:
  2420. fastpathTV.EncMapInt64UintV(v, fastpathCheckNilTrue, e)
  2421. case *map[int64]uint:
  2422. fastpathTV.EncMapInt64UintV(*v, fastpathCheckNilTrue, e)
  2423. case map[int64]uint8:
  2424. fastpathTV.EncMapInt64Uint8V(v, fastpathCheckNilTrue, e)
  2425. case *map[int64]uint8:
  2426. fastpathTV.EncMapInt64Uint8V(*v, fastpathCheckNilTrue, e)
  2427. case map[int64]uint16:
  2428. fastpathTV.EncMapInt64Uint16V(v, fastpathCheckNilTrue, e)
  2429. case *map[int64]uint16:
  2430. fastpathTV.EncMapInt64Uint16V(*v, fastpathCheckNilTrue, e)
  2431. case map[int64]uint32:
  2432. fastpathTV.EncMapInt64Uint32V(v, fastpathCheckNilTrue, e)
  2433. case *map[int64]uint32:
  2434. fastpathTV.EncMapInt64Uint32V(*v, fastpathCheckNilTrue, e)
  2435. case map[int64]uint64:
  2436. fastpathTV.EncMapInt64Uint64V(v, fastpathCheckNilTrue, e)
  2437. case *map[int64]uint64:
  2438. fastpathTV.EncMapInt64Uint64V(*v, fastpathCheckNilTrue, e)
  2439. case map[int64]uintptr:
  2440. fastpathTV.EncMapInt64UintptrV(v, fastpathCheckNilTrue, e)
  2441. case *map[int64]uintptr:
  2442. fastpathTV.EncMapInt64UintptrV(*v, fastpathCheckNilTrue, e)
  2443. case map[int64]int:
  2444. fastpathTV.EncMapInt64IntV(v, fastpathCheckNilTrue, e)
  2445. case *map[int64]int:
  2446. fastpathTV.EncMapInt64IntV(*v, fastpathCheckNilTrue, e)
  2447. case map[int64]int8:
  2448. fastpathTV.EncMapInt64Int8V(v, fastpathCheckNilTrue, e)
  2449. case *map[int64]int8:
  2450. fastpathTV.EncMapInt64Int8V(*v, fastpathCheckNilTrue, e)
  2451. case map[int64]int16:
  2452. fastpathTV.EncMapInt64Int16V(v, fastpathCheckNilTrue, e)
  2453. case *map[int64]int16:
  2454. fastpathTV.EncMapInt64Int16V(*v, fastpathCheckNilTrue, e)
  2455. case map[int64]int32:
  2456. fastpathTV.EncMapInt64Int32V(v, fastpathCheckNilTrue, e)
  2457. case *map[int64]int32:
  2458. fastpathTV.EncMapInt64Int32V(*v, fastpathCheckNilTrue, e)
  2459. case map[int64]int64:
  2460. fastpathTV.EncMapInt64Int64V(v, fastpathCheckNilTrue, e)
  2461. case *map[int64]int64:
  2462. fastpathTV.EncMapInt64Int64V(*v, fastpathCheckNilTrue, e)
  2463. case map[int64]float32:
  2464. fastpathTV.EncMapInt64Float32V(v, fastpathCheckNilTrue, e)
  2465. case *map[int64]float32:
  2466. fastpathTV.EncMapInt64Float32V(*v, fastpathCheckNilTrue, e)
  2467. case map[int64]float64:
  2468. fastpathTV.EncMapInt64Float64V(v, fastpathCheckNilTrue, e)
  2469. case *map[int64]float64:
  2470. fastpathTV.EncMapInt64Float64V(*v, fastpathCheckNilTrue, e)
  2471. case map[int64]bool:
  2472. fastpathTV.EncMapInt64BoolV(v, fastpathCheckNilTrue, e)
  2473. case *map[int64]bool:
  2474. fastpathTV.EncMapInt64BoolV(*v, fastpathCheckNilTrue, e)
  2475. case map[bool]interface{}:
  2476. fastpathTV.EncMapBoolIntfV(v, fastpathCheckNilTrue, e)
  2477. case *map[bool]interface{}:
  2478. fastpathTV.EncMapBoolIntfV(*v, fastpathCheckNilTrue, e)
  2479. case map[bool]string:
  2480. fastpathTV.EncMapBoolStringV(v, fastpathCheckNilTrue, e)
  2481. case *map[bool]string:
  2482. fastpathTV.EncMapBoolStringV(*v, fastpathCheckNilTrue, e)
  2483. case map[bool]uint:
  2484. fastpathTV.EncMapBoolUintV(v, fastpathCheckNilTrue, e)
  2485. case *map[bool]uint:
  2486. fastpathTV.EncMapBoolUintV(*v, fastpathCheckNilTrue, e)
  2487. case map[bool]uint8:
  2488. fastpathTV.EncMapBoolUint8V(v, fastpathCheckNilTrue, e)
  2489. case *map[bool]uint8:
  2490. fastpathTV.EncMapBoolUint8V(*v, fastpathCheckNilTrue, e)
  2491. case map[bool]uint16:
  2492. fastpathTV.EncMapBoolUint16V(v, fastpathCheckNilTrue, e)
  2493. case *map[bool]uint16:
  2494. fastpathTV.EncMapBoolUint16V(*v, fastpathCheckNilTrue, e)
  2495. case map[bool]uint32:
  2496. fastpathTV.EncMapBoolUint32V(v, fastpathCheckNilTrue, e)
  2497. case *map[bool]uint32:
  2498. fastpathTV.EncMapBoolUint32V(*v, fastpathCheckNilTrue, e)
  2499. case map[bool]uint64:
  2500. fastpathTV.EncMapBoolUint64V(v, fastpathCheckNilTrue, e)
  2501. case *map[bool]uint64:
  2502. fastpathTV.EncMapBoolUint64V(*v, fastpathCheckNilTrue, e)
  2503. case map[bool]uintptr:
  2504. fastpathTV.EncMapBoolUintptrV(v, fastpathCheckNilTrue, e)
  2505. case *map[bool]uintptr:
  2506. fastpathTV.EncMapBoolUintptrV(*v, fastpathCheckNilTrue, e)
  2507. case map[bool]int:
  2508. fastpathTV.EncMapBoolIntV(v, fastpathCheckNilTrue, e)
  2509. case *map[bool]int:
  2510. fastpathTV.EncMapBoolIntV(*v, fastpathCheckNilTrue, e)
  2511. case map[bool]int8:
  2512. fastpathTV.EncMapBoolInt8V(v, fastpathCheckNilTrue, e)
  2513. case *map[bool]int8:
  2514. fastpathTV.EncMapBoolInt8V(*v, fastpathCheckNilTrue, e)
  2515. case map[bool]int16:
  2516. fastpathTV.EncMapBoolInt16V(v, fastpathCheckNilTrue, e)
  2517. case *map[bool]int16:
  2518. fastpathTV.EncMapBoolInt16V(*v, fastpathCheckNilTrue, e)
  2519. case map[bool]int32:
  2520. fastpathTV.EncMapBoolInt32V(v, fastpathCheckNilTrue, e)
  2521. case *map[bool]int32:
  2522. fastpathTV.EncMapBoolInt32V(*v, fastpathCheckNilTrue, e)
  2523. case map[bool]int64:
  2524. fastpathTV.EncMapBoolInt64V(v, fastpathCheckNilTrue, e)
  2525. case *map[bool]int64:
  2526. fastpathTV.EncMapBoolInt64V(*v, fastpathCheckNilTrue, e)
  2527. case map[bool]float32:
  2528. fastpathTV.EncMapBoolFloat32V(v, fastpathCheckNilTrue, e)
  2529. case *map[bool]float32:
  2530. fastpathTV.EncMapBoolFloat32V(*v, fastpathCheckNilTrue, e)
  2531. case map[bool]float64:
  2532. fastpathTV.EncMapBoolFloat64V(v, fastpathCheckNilTrue, e)
  2533. case *map[bool]float64:
  2534. fastpathTV.EncMapBoolFloat64V(*v, fastpathCheckNilTrue, e)
  2535. case map[bool]bool:
  2536. fastpathTV.EncMapBoolBoolV(v, fastpathCheckNilTrue, e)
  2537. case *map[bool]bool:
  2538. fastpathTV.EncMapBoolBoolV(*v, fastpathCheckNilTrue, e)
  2539. default:
  2540. _ = v // TODO: workaround https://github.com/golang/go/issues/12927 (remove after go 1.6 release)
  2541. return false
  2542. }
  2543. return true
  2544. }
  2545. // -- -- fast path functions
  2546. func (f *encFnInfo) fastpathEncSliceIntfR(rv reflect.Value) {
  2547. fastpathTV.EncSliceIntfV(rv.Interface().([]interface{}), fastpathCheckNilFalse, f.e)
  2548. }
  2549. func (_ fastpathT) EncSliceIntfV(v []interface{}, checkNil bool, e *Encoder) {
  2550. ee := e.e
  2551. if checkNil && v == nil {
  2552. ee.EncodeNil()
  2553. return
  2554. }
  2555. ee.EncodeArrayStart(len(v))
  2556. for _, v2 := range v {
  2557. e.encode(v2)
  2558. }
  2559. ee.EncodeEnd()
  2560. }
  2561. func (f *encFnInfo) fastpathEncSliceStringR(rv reflect.Value) {
  2562. fastpathTV.EncSliceStringV(rv.Interface().([]string), fastpathCheckNilFalse, f.e)
  2563. }
  2564. func (_ fastpathT) EncSliceStringV(v []string, checkNil bool, e *Encoder) {
  2565. ee := e.e
  2566. if checkNil && v == nil {
  2567. ee.EncodeNil()
  2568. return
  2569. }
  2570. ee.EncodeArrayStart(len(v))
  2571. for _, v2 := range v {
  2572. ee.EncodeString(c_UTF8, v2)
  2573. }
  2574. ee.EncodeEnd()
  2575. }
  2576. func (f *encFnInfo) fastpathEncSliceFloat32R(rv reflect.Value) {
  2577. fastpathTV.EncSliceFloat32V(rv.Interface().([]float32), fastpathCheckNilFalse, f.e)
  2578. }
  2579. func (_ fastpathT) EncSliceFloat32V(v []float32, checkNil bool, e *Encoder) {
  2580. ee := e.e
  2581. if checkNil && v == nil {
  2582. ee.EncodeNil()
  2583. return
  2584. }
  2585. ee.EncodeArrayStart(len(v))
  2586. for _, v2 := range v {
  2587. ee.EncodeFloat32(v2)
  2588. }
  2589. ee.EncodeEnd()
  2590. }
  2591. func (f *encFnInfo) fastpathEncSliceFloat64R(rv reflect.Value) {
  2592. fastpathTV.EncSliceFloat64V(rv.Interface().([]float64), fastpathCheckNilFalse, f.e)
  2593. }
  2594. func (_ fastpathT) EncSliceFloat64V(v []float64, checkNil bool, e *Encoder) {
  2595. ee := e.e
  2596. if checkNil && v == nil {
  2597. ee.EncodeNil()
  2598. return
  2599. }
  2600. ee.EncodeArrayStart(len(v))
  2601. for _, v2 := range v {
  2602. ee.EncodeFloat64(v2)
  2603. }
  2604. ee.EncodeEnd()
  2605. }
  2606. func (f *encFnInfo) fastpathEncSliceUintR(rv reflect.Value) {
  2607. fastpathTV.EncSliceUintV(rv.Interface().([]uint), fastpathCheckNilFalse, f.e)
  2608. }
  2609. func (_ fastpathT) EncSliceUintV(v []uint, checkNil bool, e *Encoder) {
  2610. ee := e.e
  2611. if checkNil && v == nil {
  2612. ee.EncodeNil()
  2613. return
  2614. }
  2615. ee.EncodeArrayStart(len(v))
  2616. for _, v2 := range v {
  2617. ee.EncodeUint(uint64(v2))
  2618. }
  2619. ee.EncodeEnd()
  2620. }
  2621. func (f *encFnInfo) fastpathEncSliceUint16R(rv reflect.Value) {
  2622. fastpathTV.EncSliceUint16V(rv.Interface().([]uint16), fastpathCheckNilFalse, f.e)
  2623. }
  2624. func (_ fastpathT) EncSliceUint16V(v []uint16, checkNil bool, e *Encoder) {
  2625. ee := e.e
  2626. if checkNil && v == nil {
  2627. ee.EncodeNil()
  2628. return
  2629. }
  2630. ee.EncodeArrayStart(len(v))
  2631. for _, v2 := range v {
  2632. ee.EncodeUint(uint64(v2))
  2633. }
  2634. ee.EncodeEnd()
  2635. }
  2636. func (f *encFnInfo) fastpathEncSliceUint32R(rv reflect.Value) {
  2637. fastpathTV.EncSliceUint32V(rv.Interface().([]uint32), fastpathCheckNilFalse, f.e)
  2638. }
  2639. func (_ fastpathT) EncSliceUint32V(v []uint32, checkNil bool, e *Encoder) {
  2640. ee := e.e
  2641. if checkNil && v == nil {
  2642. ee.EncodeNil()
  2643. return
  2644. }
  2645. ee.EncodeArrayStart(len(v))
  2646. for _, v2 := range v {
  2647. ee.EncodeUint(uint64(v2))
  2648. }
  2649. ee.EncodeEnd()
  2650. }
  2651. func (f *encFnInfo) fastpathEncSliceUint64R(rv reflect.Value) {
  2652. fastpathTV.EncSliceUint64V(rv.Interface().([]uint64), fastpathCheckNilFalse, f.e)
  2653. }
  2654. func (_ fastpathT) EncSliceUint64V(v []uint64, checkNil bool, e *Encoder) {
  2655. ee := e.e
  2656. if checkNil && v == nil {
  2657. ee.EncodeNil()
  2658. return
  2659. }
  2660. ee.EncodeArrayStart(len(v))
  2661. for _, v2 := range v {
  2662. ee.EncodeUint(uint64(v2))
  2663. }
  2664. ee.EncodeEnd()
  2665. }
  2666. func (f *encFnInfo) fastpathEncSliceUintptrR(rv reflect.Value) {
  2667. fastpathTV.EncSliceUintptrV(rv.Interface().([]uintptr), fastpathCheckNilFalse, f.e)
  2668. }
  2669. func (_ fastpathT) EncSliceUintptrV(v []uintptr, checkNil bool, e *Encoder) {
  2670. ee := e.e
  2671. if checkNil && v == nil {
  2672. ee.EncodeNil()
  2673. return
  2674. }
  2675. ee.EncodeArrayStart(len(v))
  2676. for _, v2 := range v {
  2677. e.encode(v2)
  2678. }
  2679. ee.EncodeEnd()
  2680. }
  2681. func (f *encFnInfo) fastpathEncSliceIntR(rv reflect.Value) {
  2682. fastpathTV.EncSliceIntV(rv.Interface().([]int), fastpathCheckNilFalse, f.e)
  2683. }
  2684. func (_ fastpathT) EncSliceIntV(v []int, checkNil bool, e *Encoder) {
  2685. ee := e.e
  2686. if checkNil && v == nil {
  2687. ee.EncodeNil()
  2688. return
  2689. }
  2690. ee.EncodeArrayStart(len(v))
  2691. for _, v2 := range v {
  2692. ee.EncodeInt(int64(v2))
  2693. }
  2694. ee.EncodeEnd()
  2695. }
  2696. func (f *encFnInfo) fastpathEncSliceInt8R(rv reflect.Value) {
  2697. fastpathTV.EncSliceInt8V(rv.Interface().([]int8), fastpathCheckNilFalse, f.e)
  2698. }
  2699. func (_ fastpathT) EncSliceInt8V(v []int8, checkNil bool, e *Encoder) {
  2700. ee := e.e
  2701. if checkNil && v == nil {
  2702. ee.EncodeNil()
  2703. return
  2704. }
  2705. ee.EncodeArrayStart(len(v))
  2706. for _, v2 := range v {
  2707. ee.EncodeInt(int64(v2))
  2708. }
  2709. ee.EncodeEnd()
  2710. }
  2711. func (f *encFnInfo) fastpathEncSliceInt16R(rv reflect.Value) {
  2712. fastpathTV.EncSliceInt16V(rv.Interface().([]int16), fastpathCheckNilFalse, f.e)
  2713. }
  2714. func (_ fastpathT) EncSliceInt16V(v []int16, checkNil bool, e *Encoder) {
  2715. ee := e.e
  2716. if checkNil && v == nil {
  2717. ee.EncodeNil()
  2718. return
  2719. }
  2720. ee.EncodeArrayStart(len(v))
  2721. for _, v2 := range v {
  2722. ee.EncodeInt(int64(v2))
  2723. }
  2724. ee.EncodeEnd()
  2725. }
  2726. func (f *encFnInfo) fastpathEncSliceInt32R(rv reflect.Value) {
  2727. fastpathTV.EncSliceInt32V(rv.Interface().([]int32), fastpathCheckNilFalse, f.e)
  2728. }
  2729. func (_ fastpathT) EncSliceInt32V(v []int32, checkNil bool, e *Encoder) {
  2730. ee := e.e
  2731. if checkNil && v == nil {
  2732. ee.EncodeNil()
  2733. return
  2734. }
  2735. ee.EncodeArrayStart(len(v))
  2736. for _, v2 := range v {
  2737. ee.EncodeInt(int64(v2))
  2738. }
  2739. ee.EncodeEnd()
  2740. }
  2741. func (f *encFnInfo) fastpathEncSliceInt64R(rv reflect.Value) {
  2742. fastpathTV.EncSliceInt64V(rv.Interface().([]int64), fastpathCheckNilFalse, f.e)
  2743. }
  2744. func (_ fastpathT) EncSliceInt64V(v []int64, checkNil bool, e *Encoder) {
  2745. ee := e.e
  2746. if checkNil && v == nil {
  2747. ee.EncodeNil()
  2748. return
  2749. }
  2750. ee.EncodeArrayStart(len(v))
  2751. for _, v2 := range v {
  2752. ee.EncodeInt(int64(v2))
  2753. }
  2754. ee.EncodeEnd()
  2755. }
  2756. func (f *encFnInfo) fastpathEncSliceBoolR(rv reflect.Value) {
  2757. fastpathTV.EncSliceBoolV(rv.Interface().([]bool), fastpathCheckNilFalse, f.e)
  2758. }
  2759. func (_ fastpathT) EncSliceBoolV(v []bool, checkNil bool, e *Encoder) {
  2760. ee := e.e
  2761. if checkNil && v == nil {
  2762. ee.EncodeNil()
  2763. return
  2764. }
  2765. ee.EncodeArrayStart(len(v))
  2766. for _, v2 := range v {
  2767. ee.EncodeBool(v2)
  2768. }
  2769. ee.EncodeEnd()
  2770. }
  2771. func (f *encFnInfo) fastpathEncMapIntfIntfR(rv reflect.Value) {
  2772. fastpathTV.EncMapIntfIntfV(rv.Interface().(map[interface{}]interface{}), fastpathCheckNilFalse, f.e)
  2773. }
  2774. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, e *Encoder) {
  2775. ee := e.e
  2776. if checkNil && v == nil {
  2777. ee.EncodeNil()
  2778. return
  2779. }
  2780. ee.EncodeMapStart(len(v))
  2781. if e.h.Canonical {
  2782. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2783. e2 := NewEncoderBytes(&mksv, e.hh)
  2784. v2 := make([]bytesI, len(v))
  2785. var i, l int
  2786. var vp *bytesI
  2787. for k2, _ := range v {
  2788. l = len(mksv)
  2789. e2.MustEncode(k2)
  2790. vp = &v2[i]
  2791. vp.v = mksv[l:]
  2792. vp.i = k2
  2793. i++
  2794. }
  2795. sort.Sort(bytesISlice(v2))
  2796. for j := range v2 {
  2797. e.asis(v2[j].v)
  2798. e.encode(v[v2[j].i])
  2799. }
  2800. } else {
  2801. for k2, v2 := range v {
  2802. e.encode(k2)
  2803. e.encode(v2)
  2804. }
  2805. }
  2806. ee.EncodeEnd()
  2807. }
  2808. func (f *encFnInfo) fastpathEncMapIntfStringR(rv reflect.Value) {
  2809. fastpathTV.EncMapIntfStringV(rv.Interface().(map[interface{}]string), fastpathCheckNilFalse, f.e)
  2810. }
  2811. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, checkNil bool, e *Encoder) {
  2812. ee := e.e
  2813. if checkNil && v == nil {
  2814. ee.EncodeNil()
  2815. return
  2816. }
  2817. ee.EncodeMapStart(len(v))
  2818. if e.h.Canonical {
  2819. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2820. e2 := NewEncoderBytes(&mksv, e.hh)
  2821. v2 := make([]bytesI, len(v))
  2822. var i, l int
  2823. var vp *bytesI
  2824. for k2, _ := range v {
  2825. l = len(mksv)
  2826. e2.MustEncode(k2)
  2827. vp = &v2[i]
  2828. vp.v = mksv[l:]
  2829. vp.i = k2
  2830. i++
  2831. }
  2832. sort.Sort(bytesISlice(v2))
  2833. for j := range v2 {
  2834. e.asis(v2[j].v)
  2835. e.encode(v[v2[j].i])
  2836. }
  2837. } else {
  2838. for k2, v2 := range v {
  2839. e.encode(k2)
  2840. ee.EncodeString(c_UTF8, v2)
  2841. }
  2842. }
  2843. ee.EncodeEnd()
  2844. }
  2845. func (f *encFnInfo) fastpathEncMapIntfUintR(rv reflect.Value) {
  2846. fastpathTV.EncMapIntfUintV(rv.Interface().(map[interface{}]uint), fastpathCheckNilFalse, f.e)
  2847. }
  2848. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, checkNil bool, e *Encoder) {
  2849. ee := e.e
  2850. if checkNil && v == nil {
  2851. ee.EncodeNil()
  2852. return
  2853. }
  2854. ee.EncodeMapStart(len(v))
  2855. if e.h.Canonical {
  2856. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2857. e2 := NewEncoderBytes(&mksv, e.hh)
  2858. v2 := make([]bytesI, len(v))
  2859. var i, l int
  2860. var vp *bytesI
  2861. for k2, _ := range v {
  2862. l = len(mksv)
  2863. e2.MustEncode(k2)
  2864. vp = &v2[i]
  2865. vp.v = mksv[l:]
  2866. vp.i = k2
  2867. i++
  2868. }
  2869. sort.Sort(bytesISlice(v2))
  2870. for j := range v2 {
  2871. e.asis(v2[j].v)
  2872. e.encode(v[v2[j].i])
  2873. }
  2874. } else {
  2875. for k2, v2 := range v {
  2876. e.encode(k2)
  2877. ee.EncodeUint(uint64(v2))
  2878. }
  2879. }
  2880. ee.EncodeEnd()
  2881. }
  2882. func (f *encFnInfo) fastpathEncMapIntfUint8R(rv reflect.Value) {
  2883. fastpathTV.EncMapIntfUint8V(rv.Interface().(map[interface{}]uint8), fastpathCheckNilFalse, f.e)
  2884. }
  2885. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, checkNil bool, e *Encoder) {
  2886. ee := e.e
  2887. if checkNil && v == nil {
  2888. ee.EncodeNil()
  2889. return
  2890. }
  2891. ee.EncodeMapStart(len(v))
  2892. if e.h.Canonical {
  2893. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2894. e2 := NewEncoderBytes(&mksv, e.hh)
  2895. v2 := make([]bytesI, len(v))
  2896. var i, l int
  2897. var vp *bytesI
  2898. for k2, _ := range v {
  2899. l = len(mksv)
  2900. e2.MustEncode(k2)
  2901. vp = &v2[i]
  2902. vp.v = mksv[l:]
  2903. vp.i = k2
  2904. i++
  2905. }
  2906. sort.Sort(bytesISlice(v2))
  2907. for j := range v2 {
  2908. e.asis(v2[j].v)
  2909. e.encode(v[v2[j].i])
  2910. }
  2911. } else {
  2912. for k2, v2 := range v {
  2913. e.encode(k2)
  2914. ee.EncodeUint(uint64(v2))
  2915. }
  2916. }
  2917. ee.EncodeEnd()
  2918. }
  2919. func (f *encFnInfo) fastpathEncMapIntfUint16R(rv reflect.Value) {
  2920. fastpathTV.EncMapIntfUint16V(rv.Interface().(map[interface{}]uint16), fastpathCheckNilFalse, f.e)
  2921. }
  2922. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, checkNil bool, e *Encoder) {
  2923. ee := e.e
  2924. if checkNil && v == nil {
  2925. ee.EncodeNil()
  2926. return
  2927. }
  2928. ee.EncodeMapStart(len(v))
  2929. if e.h.Canonical {
  2930. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2931. e2 := NewEncoderBytes(&mksv, e.hh)
  2932. v2 := make([]bytesI, len(v))
  2933. var i, l int
  2934. var vp *bytesI
  2935. for k2, _ := range v {
  2936. l = len(mksv)
  2937. e2.MustEncode(k2)
  2938. vp = &v2[i]
  2939. vp.v = mksv[l:]
  2940. vp.i = k2
  2941. i++
  2942. }
  2943. sort.Sort(bytesISlice(v2))
  2944. for j := range v2 {
  2945. e.asis(v2[j].v)
  2946. e.encode(v[v2[j].i])
  2947. }
  2948. } else {
  2949. for k2, v2 := range v {
  2950. e.encode(k2)
  2951. ee.EncodeUint(uint64(v2))
  2952. }
  2953. }
  2954. ee.EncodeEnd()
  2955. }
  2956. func (f *encFnInfo) fastpathEncMapIntfUint32R(rv reflect.Value) {
  2957. fastpathTV.EncMapIntfUint32V(rv.Interface().(map[interface{}]uint32), fastpathCheckNilFalse, f.e)
  2958. }
  2959. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, checkNil bool, e *Encoder) {
  2960. ee := e.e
  2961. if checkNil && v == nil {
  2962. ee.EncodeNil()
  2963. return
  2964. }
  2965. ee.EncodeMapStart(len(v))
  2966. if e.h.Canonical {
  2967. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2968. e2 := NewEncoderBytes(&mksv, e.hh)
  2969. v2 := make([]bytesI, len(v))
  2970. var i, l int
  2971. var vp *bytesI
  2972. for k2, _ := range v {
  2973. l = len(mksv)
  2974. e2.MustEncode(k2)
  2975. vp = &v2[i]
  2976. vp.v = mksv[l:]
  2977. vp.i = k2
  2978. i++
  2979. }
  2980. sort.Sort(bytesISlice(v2))
  2981. for j := range v2 {
  2982. e.asis(v2[j].v)
  2983. e.encode(v[v2[j].i])
  2984. }
  2985. } else {
  2986. for k2, v2 := range v {
  2987. e.encode(k2)
  2988. ee.EncodeUint(uint64(v2))
  2989. }
  2990. }
  2991. ee.EncodeEnd()
  2992. }
  2993. func (f *encFnInfo) fastpathEncMapIntfUint64R(rv reflect.Value) {
  2994. fastpathTV.EncMapIntfUint64V(rv.Interface().(map[interface{}]uint64), fastpathCheckNilFalse, f.e)
  2995. }
  2996. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, checkNil bool, e *Encoder) {
  2997. ee := e.e
  2998. if checkNil && v == nil {
  2999. ee.EncodeNil()
  3000. return
  3001. }
  3002. ee.EncodeMapStart(len(v))
  3003. if e.h.Canonical {
  3004. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3005. e2 := NewEncoderBytes(&mksv, e.hh)
  3006. v2 := make([]bytesI, len(v))
  3007. var i, l int
  3008. var vp *bytesI
  3009. for k2, _ := range v {
  3010. l = len(mksv)
  3011. e2.MustEncode(k2)
  3012. vp = &v2[i]
  3013. vp.v = mksv[l:]
  3014. vp.i = k2
  3015. i++
  3016. }
  3017. sort.Sort(bytesISlice(v2))
  3018. for j := range v2 {
  3019. e.asis(v2[j].v)
  3020. e.encode(v[v2[j].i])
  3021. }
  3022. } else {
  3023. for k2, v2 := range v {
  3024. e.encode(k2)
  3025. ee.EncodeUint(uint64(v2))
  3026. }
  3027. }
  3028. ee.EncodeEnd()
  3029. }
  3030. func (f *encFnInfo) fastpathEncMapIntfUintptrR(rv reflect.Value) {
  3031. fastpathTV.EncMapIntfUintptrV(rv.Interface().(map[interface{}]uintptr), fastpathCheckNilFalse, f.e)
  3032. }
  3033. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, checkNil bool, e *Encoder) {
  3034. ee := e.e
  3035. if checkNil && v == nil {
  3036. ee.EncodeNil()
  3037. return
  3038. }
  3039. ee.EncodeMapStart(len(v))
  3040. if e.h.Canonical {
  3041. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3042. e2 := NewEncoderBytes(&mksv, e.hh)
  3043. v2 := make([]bytesI, len(v))
  3044. var i, l int
  3045. var vp *bytesI
  3046. for k2, _ := range v {
  3047. l = len(mksv)
  3048. e2.MustEncode(k2)
  3049. vp = &v2[i]
  3050. vp.v = mksv[l:]
  3051. vp.i = k2
  3052. i++
  3053. }
  3054. sort.Sort(bytesISlice(v2))
  3055. for j := range v2 {
  3056. e.asis(v2[j].v)
  3057. e.encode(v[v2[j].i])
  3058. }
  3059. } else {
  3060. for k2, v2 := range v {
  3061. e.encode(k2)
  3062. e.encode(v2)
  3063. }
  3064. }
  3065. ee.EncodeEnd()
  3066. }
  3067. func (f *encFnInfo) fastpathEncMapIntfIntR(rv reflect.Value) {
  3068. fastpathTV.EncMapIntfIntV(rv.Interface().(map[interface{}]int), fastpathCheckNilFalse, f.e)
  3069. }
  3070. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, checkNil bool, e *Encoder) {
  3071. ee := e.e
  3072. if checkNil && v == nil {
  3073. ee.EncodeNil()
  3074. return
  3075. }
  3076. ee.EncodeMapStart(len(v))
  3077. if e.h.Canonical {
  3078. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3079. e2 := NewEncoderBytes(&mksv, e.hh)
  3080. v2 := make([]bytesI, len(v))
  3081. var i, l int
  3082. var vp *bytesI
  3083. for k2, _ := range v {
  3084. l = len(mksv)
  3085. e2.MustEncode(k2)
  3086. vp = &v2[i]
  3087. vp.v = mksv[l:]
  3088. vp.i = k2
  3089. i++
  3090. }
  3091. sort.Sort(bytesISlice(v2))
  3092. for j := range v2 {
  3093. e.asis(v2[j].v)
  3094. e.encode(v[v2[j].i])
  3095. }
  3096. } else {
  3097. for k2, v2 := range v {
  3098. e.encode(k2)
  3099. ee.EncodeInt(int64(v2))
  3100. }
  3101. }
  3102. ee.EncodeEnd()
  3103. }
  3104. func (f *encFnInfo) fastpathEncMapIntfInt8R(rv reflect.Value) {
  3105. fastpathTV.EncMapIntfInt8V(rv.Interface().(map[interface{}]int8), fastpathCheckNilFalse, f.e)
  3106. }
  3107. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, 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. if e.h.Canonical {
  3115. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3116. e2 := NewEncoderBytes(&mksv, e.hh)
  3117. v2 := make([]bytesI, len(v))
  3118. var i, l int
  3119. var vp *bytesI
  3120. for k2, _ := range v {
  3121. l = len(mksv)
  3122. e2.MustEncode(k2)
  3123. vp = &v2[i]
  3124. vp.v = mksv[l:]
  3125. vp.i = k2
  3126. i++
  3127. }
  3128. sort.Sort(bytesISlice(v2))
  3129. for j := range v2 {
  3130. e.asis(v2[j].v)
  3131. e.encode(v[v2[j].i])
  3132. }
  3133. } else {
  3134. for k2, v2 := range v {
  3135. e.encode(k2)
  3136. ee.EncodeInt(int64(v2))
  3137. }
  3138. }
  3139. ee.EncodeEnd()
  3140. }
  3141. func (f *encFnInfo) fastpathEncMapIntfInt16R(rv reflect.Value) {
  3142. fastpathTV.EncMapIntfInt16V(rv.Interface().(map[interface{}]int16), fastpathCheckNilFalse, f.e)
  3143. }
  3144. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, checkNil bool, e *Encoder) {
  3145. ee := e.e
  3146. if checkNil && v == nil {
  3147. ee.EncodeNil()
  3148. return
  3149. }
  3150. ee.EncodeMapStart(len(v))
  3151. if e.h.Canonical {
  3152. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3153. e2 := NewEncoderBytes(&mksv, e.hh)
  3154. v2 := make([]bytesI, len(v))
  3155. var i, l int
  3156. var vp *bytesI
  3157. for k2, _ := range v {
  3158. l = len(mksv)
  3159. e2.MustEncode(k2)
  3160. vp = &v2[i]
  3161. vp.v = mksv[l:]
  3162. vp.i = k2
  3163. i++
  3164. }
  3165. sort.Sort(bytesISlice(v2))
  3166. for j := range v2 {
  3167. e.asis(v2[j].v)
  3168. e.encode(v[v2[j].i])
  3169. }
  3170. } else {
  3171. for k2, v2 := range v {
  3172. e.encode(k2)
  3173. ee.EncodeInt(int64(v2))
  3174. }
  3175. }
  3176. ee.EncodeEnd()
  3177. }
  3178. func (f *encFnInfo) fastpathEncMapIntfInt32R(rv reflect.Value) {
  3179. fastpathTV.EncMapIntfInt32V(rv.Interface().(map[interface{}]int32), fastpathCheckNilFalse, f.e)
  3180. }
  3181. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, checkNil bool, e *Encoder) {
  3182. ee := e.e
  3183. if checkNil && v == nil {
  3184. ee.EncodeNil()
  3185. return
  3186. }
  3187. ee.EncodeMapStart(len(v))
  3188. if e.h.Canonical {
  3189. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3190. e2 := NewEncoderBytes(&mksv, e.hh)
  3191. v2 := make([]bytesI, len(v))
  3192. var i, l int
  3193. var vp *bytesI
  3194. for k2, _ := range v {
  3195. l = len(mksv)
  3196. e2.MustEncode(k2)
  3197. vp = &v2[i]
  3198. vp.v = mksv[l:]
  3199. vp.i = k2
  3200. i++
  3201. }
  3202. sort.Sort(bytesISlice(v2))
  3203. for j := range v2 {
  3204. e.asis(v2[j].v)
  3205. e.encode(v[v2[j].i])
  3206. }
  3207. } else {
  3208. for k2, v2 := range v {
  3209. e.encode(k2)
  3210. ee.EncodeInt(int64(v2))
  3211. }
  3212. }
  3213. ee.EncodeEnd()
  3214. }
  3215. func (f *encFnInfo) fastpathEncMapIntfInt64R(rv reflect.Value) {
  3216. fastpathTV.EncMapIntfInt64V(rv.Interface().(map[interface{}]int64), fastpathCheckNilFalse, f.e)
  3217. }
  3218. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, checkNil bool, e *Encoder) {
  3219. ee := e.e
  3220. if checkNil && v == nil {
  3221. ee.EncodeNil()
  3222. return
  3223. }
  3224. ee.EncodeMapStart(len(v))
  3225. if e.h.Canonical {
  3226. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3227. e2 := NewEncoderBytes(&mksv, e.hh)
  3228. v2 := make([]bytesI, len(v))
  3229. var i, l int
  3230. var vp *bytesI
  3231. for k2, _ := range v {
  3232. l = len(mksv)
  3233. e2.MustEncode(k2)
  3234. vp = &v2[i]
  3235. vp.v = mksv[l:]
  3236. vp.i = k2
  3237. i++
  3238. }
  3239. sort.Sort(bytesISlice(v2))
  3240. for j := range v2 {
  3241. e.asis(v2[j].v)
  3242. e.encode(v[v2[j].i])
  3243. }
  3244. } else {
  3245. for k2, v2 := range v {
  3246. e.encode(k2)
  3247. ee.EncodeInt(int64(v2))
  3248. }
  3249. }
  3250. ee.EncodeEnd()
  3251. }
  3252. func (f *encFnInfo) fastpathEncMapIntfFloat32R(rv reflect.Value) {
  3253. fastpathTV.EncMapIntfFloat32V(rv.Interface().(map[interface{}]float32), fastpathCheckNilFalse, f.e)
  3254. }
  3255. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, checkNil bool, e *Encoder) {
  3256. ee := e.e
  3257. if checkNil && v == nil {
  3258. ee.EncodeNil()
  3259. return
  3260. }
  3261. ee.EncodeMapStart(len(v))
  3262. if e.h.Canonical {
  3263. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3264. e2 := NewEncoderBytes(&mksv, e.hh)
  3265. v2 := make([]bytesI, len(v))
  3266. var i, l int
  3267. var vp *bytesI
  3268. for k2, _ := range v {
  3269. l = len(mksv)
  3270. e2.MustEncode(k2)
  3271. vp = &v2[i]
  3272. vp.v = mksv[l:]
  3273. vp.i = k2
  3274. i++
  3275. }
  3276. sort.Sort(bytesISlice(v2))
  3277. for j := range v2 {
  3278. e.asis(v2[j].v)
  3279. e.encode(v[v2[j].i])
  3280. }
  3281. } else {
  3282. for k2, v2 := range v {
  3283. e.encode(k2)
  3284. ee.EncodeFloat32(v2)
  3285. }
  3286. }
  3287. ee.EncodeEnd()
  3288. }
  3289. func (f *encFnInfo) fastpathEncMapIntfFloat64R(rv reflect.Value) {
  3290. fastpathTV.EncMapIntfFloat64V(rv.Interface().(map[interface{}]float64), fastpathCheckNilFalse, f.e)
  3291. }
  3292. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, checkNil bool, e *Encoder) {
  3293. ee := e.e
  3294. if checkNil && v == nil {
  3295. ee.EncodeNil()
  3296. return
  3297. }
  3298. ee.EncodeMapStart(len(v))
  3299. if e.h.Canonical {
  3300. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3301. e2 := NewEncoderBytes(&mksv, e.hh)
  3302. v2 := make([]bytesI, len(v))
  3303. var i, l int
  3304. var vp *bytesI
  3305. for k2, _ := range v {
  3306. l = len(mksv)
  3307. e2.MustEncode(k2)
  3308. vp = &v2[i]
  3309. vp.v = mksv[l:]
  3310. vp.i = k2
  3311. i++
  3312. }
  3313. sort.Sort(bytesISlice(v2))
  3314. for j := range v2 {
  3315. e.asis(v2[j].v)
  3316. e.encode(v[v2[j].i])
  3317. }
  3318. } else {
  3319. for k2, v2 := range v {
  3320. e.encode(k2)
  3321. ee.EncodeFloat64(v2)
  3322. }
  3323. }
  3324. ee.EncodeEnd()
  3325. }
  3326. func (f *encFnInfo) fastpathEncMapIntfBoolR(rv reflect.Value) {
  3327. fastpathTV.EncMapIntfBoolV(rv.Interface().(map[interface{}]bool), fastpathCheckNilFalse, f.e)
  3328. }
  3329. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, checkNil bool, e *Encoder) {
  3330. ee := e.e
  3331. if checkNil && v == nil {
  3332. ee.EncodeNil()
  3333. return
  3334. }
  3335. ee.EncodeMapStart(len(v))
  3336. if e.h.Canonical {
  3337. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3338. e2 := NewEncoderBytes(&mksv, e.hh)
  3339. v2 := make([]bytesI, len(v))
  3340. var i, l int
  3341. var vp *bytesI
  3342. for k2, _ := range v {
  3343. l = len(mksv)
  3344. e2.MustEncode(k2)
  3345. vp = &v2[i]
  3346. vp.v = mksv[l:]
  3347. vp.i = k2
  3348. i++
  3349. }
  3350. sort.Sort(bytesISlice(v2))
  3351. for j := range v2 {
  3352. e.asis(v2[j].v)
  3353. e.encode(v[v2[j].i])
  3354. }
  3355. } else {
  3356. for k2, v2 := range v {
  3357. e.encode(k2)
  3358. ee.EncodeBool(v2)
  3359. }
  3360. }
  3361. ee.EncodeEnd()
  3362. }
  3363. func (f *encFnInfo) fastpathEncMapStringIntfR(rv reflect.Value) {
  3364. fastpathTV.EncMapStringIntfV(rv.Interface().(map[string]interface{}), fastpathCheckNilFalse, f.e)
  3365. }
  3366. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, checkNil bool, e *Encoder) {
  3367. ee := e.e
  3368. if checkNil && v == nil {
  3369. ee.EncodeNil()
  3370. return
  3371. }
  3372. ee.EncodeMapStart(len(v))
  3373. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3374. if e.h.Canonical {
  3375. v2 := make([]string, len(v))
  3376. var i int
  3377. for k, _ := range v {
  3378. v2[i] = string(k)
  3379. i++
  3380. }
  3381. sort.Sort(stringSlice(v2))
  3382. for _, k2 := range v2 {
  3383. if asSymbols {
  3384. ee.EncodeSymbol(k2)
  3385. } else {
  3386. ee.EncodeString(c_UTF8, k2)
  3387. }
  3388. e.encode(v[string(k2)])
  3389. }
  3390. } else {
  3391. for k2, v2 := range v {
  3392. if asSymbols {
  3393. ee.EncodeSymbol(k2)
  3394. } else {
  3395. ee.EncodeString(c_UTF8, k2)
  3396. }
  3397. e.encode(v2)
  3398. }
  3399. }
  3400. ee.EncodeEnd()
  3401. }
  3402. func (f *encFnInfo) fastpathEncMapStringStringR(rv reflect.Value) {
  3403. fastpathTV.EncMapStringStringV(rv.Interface().(map[string]string), fastpathCheckNilFalse, f.e)
  3404. }
  3405. func (_ fastpathT) EncMapStringStringV(v map[string]string, checkNil bool, e *Encoder) {
  3406. ee := e.e
  3407. if checkNil && v == nil {
  3408. ee.EncodeNil()
  3409. return
  3410. }
  3411. ee.EncodeMapStart(len(v))
  3412. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3413. if e.h.Canonical {
  3414. v2 := make([]string, len(v))
  3415. var i int
  3416. for k, _ := range v {
  3417. v2[i] = string(k)
  3418. i++
  3419. }
  3420. sort.Sort(stringSlice(v2))
  3421. for _, k2 := range v2 {
  3422. if asSymbols {
  3423. ee.EncodeSymbol(k2)
  3424. } else {
  3425. ee.EncodeString(c_UTF8, k2)
  3426. }
  3427. ee.EncodeString(c_UTF8, v[string(k2)])
  3428. }
  3429. } else {
  3430. for k2, v2 := range v {
  3431. if asSymbols {
  3432. ee.EncodeSymbol(k2)
  3433. } else {
  3434. ee.EncodeString(c_UTF8, k2)
  3435. }
  3436. ee.EncodeString(c_UTF8, v2)
  3437. }
  3438. }
  3439. ee.EncodeEnd()
  3440. }
  3441. func (f *encFnInfo) fastpathEncMapStringUintR(rv reflect.Value) {
  3442. fastpathTV.EncMapStringUintV(rv.Interface().(map[string]uint), fastpathCheckNilFalse, f.e)
  3443. }
  3444. func (_ fastpathT) EncMapStringUintV(v map[string]uint, checkNil bool, e *Encoder) {
  3445. ee := e.e
  3446. if checkNil && v == nil {
  3447. ee.EncodeNil()
  3448. return
  3449. }
  3450. ee.EncodeMapStart(len(v))
  3451. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3452. if e.h.Canonical {
  3453. v2 := make([]string, len(v))
  3454. var i int
  3455. for k, _ := range v {
  3456. v2[i] = string(k)
  3457. i++
  3458. }
  3459. sort.Sort(stringSlice(v2))
  3460. for _, k2 := range v2 {
  3461. if asSymbols {
  3462. ee.EncodeSymbol(k2)
  3463. } else {
  3464. ee.EncodeString(c_UTF8, k2)
  3465. }
  3466. ee.EncodeUint(uint64(v[string(k2)]))
  3467. }
  3468. } else {
  3469. for k2, v2 := range v {
  3470. if asSymbols {
  3471. ee.EncodeSymbol(k2)
  3472. } else {
  3473. ee.EncodeString(c_UTF8, k2)
  3474. }
  3475. ee.EncodeUint(uint64(v2))
  3476. }
  3477. }
  3478. ee.EncodeEnd()
  3479. }
  3480. func (f *encFnInfo) fastpathEncMapStringUint8R(rv reflect.Value) {
  3481. fastpathTV.EncMapStringUint8V(rv.Interface().(map[string]uint8), fastpathCheckNilFalse, f.e)
  3482. }
  3483. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, checkNil bool, e *Encoder) {
  3484. ee := e.e
  3485. if checkNil && v == nil {
  3486. ee.EncodeNil()
  3487. return
  3488. }
  3489. ee.EncodeMapStart(len(v))
  3490. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3491. if e.h.Canonical {
  3492. v2 := make([]string, len(v))
  3493. var i int
  3494. for k, _ := range v {
  3495. v2[i] = string(k)
  3496. i++
  3497. }
  3498. sort.Sort(stringSlice(v2))
  3499. for _, k2 := range v2 {
  3500. if asSymbols {
  3501. ee.EncodeSymbol(k2)
  3502. } else {
  3503. ee.EncodeString(c_UTF8, k2)
  3504. }
  3505. ee.EncodeUint(uint64(v[string(k2)]))
  3506. }
  3507. } else {
  3508. for k2, v2 := range v {
  3509. if asSymbols {
  3510. ee.EncodeSymbol(k2)
  3511. } else {
  3512. ee.EncodeString(c_UTF8, k2)
  3513. }
  3514. ee.EncodeUint(uint64(v2))
  3515. }
  3516. }
  3517. ee.EncodeEnd()
  3518. }
  3519. func (f *encFnInfo) fastpathEncMapStringUint16R(rv reflect.Value) {
  3520. fastpathTV.EncMapStringUint16V(rv.Interface().(map[string]uint16), fastpathCheckNilFalse, f.e)
  3521. }
  3522. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, checkNil bool, e *Encoder) {
  3523. ee := e.e
  3524. if checkNil && v == nil {
  3525. ee.EncodeNil()
  3526. return
  3527. }
  3528. ee.EncodeMapStart(len(v))
  3529. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3530. if e.h.Canonical {
  3531. v2 := make([]string, len(v))
  3532. var i int
  3533. for k, _ := range v {
  3534. v2[i] = string(k)
  3535. i++
  3536. }
  3537. sort.Sort(stringSlice(v2))
  3538. for _, k2 := range v2 {
  3539. if asSymbols {
  3540. ee.EncodeSymbol(k2)
  3541. } else {
  3542. ee.EncodeString(c_UTF8, k2)
  3543. }
  3544. ee.EncodeUint(uint64(v[string(k2)]))
  3545. }
  3546. } else {
  3547. for k2, v2 := range v {
  3548. if asSymbols {
  3549. ee.EncodeSymbol(k2)
  3550. } else {
  3551. ee.EncodeString(c_UTF8, k2)
  3552. }
  3553. ee.EncodeUint(uint64(v2))
  3554. }
  3555. }
  3556. ee.EncodeEnd()
  3557. }
  3558. func (f *encFnInfo) fastpathEncMapStringUint32R(rv reflect.Value) {
  3559. fastpathTV.EncMapStringUint32V(rv.Interface().(map[string]uint32), fastpathCheckNilFalse, f.e)
  3560. }
  3561. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, checkNil bool, e *Encoder) {
  3562. ee := e.e
  3563. if checkNil && v == nil {
  3564. ee.EncodeNil()
  3565. return
  3566. }
  3567. ee.EncodeMapStart(len(v))
  3568. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3569. if e.h.Canonical {
  3570. v2 := make([]string, len(v))
  3571. var i int
  3572. for k, _ := range v {
  3573. v2[i] = string(k)
  3574. i++
  3575. }
  3576. sort.Sort(stringSlice(v2))
  3577. for _, k2 := range v2 {
  3578. if asSymbols {
  3579. ee.EncodeSymbol(k2)
  3580. } else {
  3581. ee.EncodeString(c_UTF8, k2)
  3582. }
  3583. ee.EncodeUint(uint64(v[string(k2)]))
  3584. }
  3585. } else {
  3586. for k2, v2 := range v {
  3587. if asSymbols {
  3588. ee.EncodeSymbol(k2)
  3589. } else {
  3590. ee.EncodeString(c_UTF8, k2)
  3591. }
  3592. ee.EncodeUint(uint64(v2))
  3593. }
  3594. }
  3595. ee.EncodeEnd()
  3596. }
  3597. func (f *encFnInfo) fastpathEncMapStringUint64R(rv reflect.Value) {
  3598. fastpathTV.EncMapStringUint64V(rv.Interface().(map[string]uint64), fastpathCheckNilFalse, f.e)
  3599. }
  3600. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, checkNil bool, e *Encoder) {
  3601. ee := e.e
  3602. if checkNil && v == nil {
  3603. ee.EncodeNil()
  3604. return
  3605. }
  3606. ee.EncodeMapStart(len(v))
  3607. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3608. if e.h.Canonical {
  3609. v2 := make([]string, len(v))
  3610. var i int
  3611. for k, _ := range v {
  3612. v2[i] = string(k)
  3613. i++
  3614. }
  3615. sort.Sort(stringSlice(v2))
  3616. for _, k2 := range v2 {
  3617. if asSymbols {
  3618. ee.EncodeSymbol(k2)
  3619. } else {
  3620. ee.EncodeString(c_UTF8, k2)
  3621. }
  3622. ee.EncodeUint(uint64(v[string(k2)]))
  3623. }
  3624. } else {
  3625. for k2, v2 := range v {
  3626. if asSymbols {
  3627. ee.EncodeSymbol(k2)
  3628. } else {
  3629. ee.EncodeString(c_UTF8, k2)
  3630. }
  3631. ee.EncodeUint(uint64(v2))
  3632. }
  3633. }
  3634. ee.EncodeEnd()
  3635. }
  3636. func (f *encFnInfo) fastpathEncMapStringUintptrR(rv reflect.Value) {
  3637. fastpathTV.EncMapStringUintptrV(rv.Interface().(map[string]uintptr), fastpathCheckNilFalse, f.e)
  3638. }
  3639. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, checkNil bool, e *Encoder) {
  3640. ee := e.e
  3641. if checkNil && v == nil {
  3642. ee.EncodeNil()
  3643. return
  3644. }
  3645. ee.EncodeMapStart(len(v))
  3646. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3647. if e.h.Canonical {
  3648. v2 := make([]string, len(v))
  3649. var i int
  3650. for k, _ := range v {
  3651. v2[i] = string(k)
  3652. i++
  3653. }
  3654. sort.Sort(stringSlice(v2))
  3655. for _, k2 := range v2 {
  3656. if asSymbols {
  3657. ee.EncodeSymbol(k2)
  3658. } else {
  3659. ee.EncodeString(c_UTF8, k2)
  3660. }
  3661. e.encode(v[string(k2)])
  3662. }
  3663. } else {
  3664. for k2, v2 := range v {
  3665. if asSymbols {
  3666. ee.EncodeSymbol(k2)
  3667. } else {
  3668. ee.EncodeString(c_UTF8, k2)
  3669. }
  3670. e.encode(v2)
  3671. }
  3672. }
  3673. ee.EncodeEnd()
  3674. }
  3675. func (f *encFnInfo) fastpathEncMapStringIntR(rv reflect.Value) {
  3676. fastpathTV.EncMapStringIntV(rv.Interface().(map[string]int), fastpathCheckNilFalse, f.e)
  3677. }
  3678. func (_ fastpathT) EncMapStringIntV(v map[string]int, checkNil bool, e *Encoder) {
  3679. ee := e.e
  3680. if checkNil && v == nil {
  3681. ee.EncodeNil()
  3682. return
  3683. }
  3684. ee.EncodeMapStart(len(v))
  3685. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3686. if e.h.Canonical {
  3687. v2 := make([]string, len(v))
  3688. var i int
  3689. for k, _ := range v {
  3690. v2[i] = string(k)
  3691. i++
  3692. }
  3693. sort.Sort(stringSlice(v2))
  3694. for _, k2 := range v2 {
  3695. if asSymbols {
  3696. ee.EncodeSymbol(k2)
  3697. } else {
  3698. ee.EncodeString(c_UTF8, k2)
  3699. }
  3700. ee.EncodeInt(int64(v[string(k2)]))
  3701. }
  3702. } else {
  3703. for k2, v2 := range v {
  3704. if asSymbols {
  3705. ee.EncodeSymbol(k2)
  3706. } else {
  3707. ee.EncodeString(c_UTF8, k2)
  3708. }
  3709. ee.EncodeInt(int64(v2))
  3710. }
  3711. }
  3712. ee.EncodeEnd()
  3713. }
  3714. func (f *encFnInfo) fastpathEncMapStringInt8R(rv reflect.Value) {
  3715. fastpathTV.EncMapStringInt8V(rv.Interface().(map[string]int8), fastpathCheckNilFalse, f.e)
  3716. }
  3717. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, 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. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3725. if e.h.Canonical {
  3726. v2 := make([]string, len(v))
  3727. var i int
  3728. for k, _ := range v {
  3729. v2[i] = string(k)
  3730. i++
  3731. }
  3732. sort.Sort(stringSlice(v2))
  3733. for _, k2 := range v2 {
  3734. if asSymbols {
  3735. ee.EncodeSymbol(k2)
  3736. } else {
  3737. ee.EncodeString(c_UTF8, k2)
  3738. }
  3739. ee.EncodeInt(int64(v[string(k2)]))
  3740. }
  3741. } else {
  3742. for k2, v2 := range v {
  3743. if asSymbols {
  3744. ee.EncodeSymbol(k2)
  3745. } else {
  3746. ee.EncodeString(c_UTF8, k2)
  3747. }
  3748. ee.EncodeInt(int64(v2))
  3749. }
  3750. }
  3751. ee.EncodeEnd()
  3752. }
  3753. func (f *encFnInfo) fastpathEncMapStringInt16R(rv reflect.Value) {
  3754. fastpathTV.EncMapStringInt16V(rv.Interface().(map[string]int16), fastpathCheckNilFalse, f.e)
  3755. }
  3756. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, checkNil bool, e *Encoder) {
  3757. ee := e.e
  3758. if checkNil && v == nil {
  3759. ee.EncodeNil()
  3760. return
  3761. }
  3762. ee.EncodeMapStart(len(v))
  3763. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3764. if e.h.Canonical {
  3765. v2 := make([]string, len(v))
  3766. var i int
  3767. for k, _ := range v {
  3768. v2[i] = string(k)
  3769. i++
  3770. }
  3771. sort.Sort(stringSlice(v2))
  3772. for _, k2 := range v2 {
  3773. if asSymbols {
  3774. ee.EncodeSymbol(k2)
  3775. } else {
  3776. ee.EncodeString(c_UTF8, k2)
  3777. }
  3778. ee.EncodeInt(int64(v[string(k2)]))
  3779. }
  3780. } else {
  3781. for k2, v2 := range v {
  3782. if asSymbols {
  3783. ee.EncodeSymbol(k2)
  3784. } else {
  3785. ee.EncodeString(c_UTF8, k2)
  3786. }
  3787. ee.EncodeInt(int64(v2))
  3788. }
  3789. }
  3790. ee.EncodeEnd()
  3791. }
  3792. func (f *encFnInfo) fastpathEncMapStringInt32R(rv reflect.Value) {
  3793. fastpathTV.EncMapStringInt32V(rv.Interface().(map[string]int32), fastpathCheckNilFalse, f.e)
  3794. }
  3795. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, checkNil bool, e *Encoder) {
  3796. ee := e.e
  3797. if checkNil && v == nil {
  3798. ee.EncodeNil()
  3799. return
  3800. }
  3801. ee.EncodeMapStart(len(v))
  3802. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3803. if e.h.Canonical {
  3804. v2 := make([]string, len(v))
  3805. var i int
  3806. for k, _ := range v {
  3807. v2[i] = string(k)
  3808. i++
  3809. }
  3810. sort.Sort(stringSlice(v2))
  3811. for _, k2 := range v2 {
  3812. if asSymbols {
  3813. ee.EncodeSymbol(k2)
  3814. } else {
  3815. ee.EncodeString(c_UTF8, k2)
  3816. }
  3817. ee.EncodeInt(int64(v[string(k2)]))
  3818. }
  3819. } else {
  3820. for k2, v2 := range v {
  3821. if asSymbols {
  3822. ee.EncodeSymbol(k2)
  3823. } else {
  3824. ee.EncodeString(c_UTF8, k2)
  3825. }
  3826. ee.EncodeInt(int64(v2))
  3827. }
  3828. }
  3829. ee.EncodeEnd()
  3830. }
  3831. func (f *encFnInfo) fastpathEncMapStringInt64R(rv reflect.Value) {
  3832. fastpathTV.EncMapStringInt64V(rv.Interface().(map[string]int64), fastpathCheckNilFalse, f.e)
  3833. }
  3834. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, checkNil bool, e *Encoder) {
  3835. ee := e.e
  3836. if checkNil && v == nil {
  3837. ee.EncodeNil()
  3838. return
  3839. }
  3840. ee.EncodeMapStart(len(v))
  3841. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3842. if e.h.Canonical {
  3843. v2 := make([]string, len(v))
  3844. var i int
  3845. for k, _ := range v {
  3846. v2[i] = string(k)
  3847. i++
  3848. }
  3849. sort.Sort(stringSlice(v2))
  3850. for _, k2 := range v2 {
  3851. if asSymbols {
  3852. ee.EncodeSymbol(k2)
  3853. } else {
  3854. ee.EncodeString(c_UTF8, k2)
  3855. }
  3856. ee.EncodeInt(int64(v[string(k2)]))
  3857. }
  3858. } else {
  3859. for k2, v2 := range v {
  3860. if asSymbols {
  3861. ee.EncodeSymbol(k2)
  3862. } else {
  3863. ee.EncodeString(c_UTF8, k2)
  3864. }
  3865. ee.EncodeInt(int64(v2))
  3866. }
  3867. }
  3868. ee.EncodeEnd()
  3869. }
  3870. func (f *encFnInfo) fastpathEncMapStringFloat32R(rv reflect.Value) {
  3871. fastpathTV.EncMapStringFloat32V(rv.Interface().(map[string]float32), fastpathCheckNilFalse, f.e)
  3872. }
  3873. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, checkNil bool, e *Encoder) {
  3874. ee := e.e
  3875. if checkNil && v == nil {
  3876. ee.EncodeNil()
  3877. return
  3878. }
  3879. ee.EncodeMapStart(len(v))
  3880. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3881. if e.h.Canonical {
  3882. v2 := make([]string, len(v))
  3883. var i int
  3884. for k, _ := range v {
  3885. v2[i] = string(k)
  3886. i++
  3887. }
  3888. sort.Sort(stringSlice(v2))
  3889. for _, k2 := range v2 {
  3890. if asSymbols {
  3891. ee.EncodeSymbol(k2)
  3892. } else {
  3893. ee.EncodeString(c_UTF8, k2)
  3894. }
  3895. ee.EncodeFloat32(v[string(k2)])
  3896. }
  3897. } else {
  3898. for k2, v2 := range v {
  3899. if asSymbols {
  3900. ee.EncodeSymbol(k2)
  3901. } else {
  3902. ee.EncodeString(c_UTF8, k2)
  3903. }
  3904. ee.EncodeFloat32(v2)
  3905. }
  3906. }
  3907. ee.EncodeEnd()
  3908. }
  3909. func (f *encFnInfo) fastpathEncMapStringFloat64R(rv reflect.Value) {
  3910. fastpathTV.EncMapStringFloat64V(rv.Interface().(map[string]float64), fastpathCheckNilFalse, f.e)
  3911. }
  3912. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, checkNil bool, e *Encoder) {
  3913. ee := e.e
  3914. if checkNil && v == nil {
  3915. ee.EncodeNil()
  3916. return
  3917. }
  3918. ee.EncodeMapStart(len(v))
  3919. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3920. if e.h.Canonical {
  3921. v2 := make([]string, len(v))
  3922. var i int
  3923. for k, _ := range v {
  3924. v2[i] = string(k)
  3925. i++
  3926. }
  3927. sort.Sort(stringSlice(v2))
  3928. for _, k2 := range v2 {
  3929. if asSymbols {
  3930. ee.EncodeSymbol(k2)
  3931. } else {
  3932. ee.EncodeString(c_UTF8, k2)
  3933. }
  3934. ee.EncodeFloat64(v[string(k2)])
  3935. }
  3936. } else {
  3937. for k2, v2 := range v {
  3938. if asSymbols {
  3939. ee.EncodeSymbol(k2)
  3940. } else {
  3941. ee.EncodeString(c_UTF8, k2)
  3942. }
  3943. ee.EncodeFloat64(v2)
  3944. }
  3945. }
  3946. ee.EncodeEnd()
  3947. }
  3948. func (f *encFnInfo) fastpathEncMapStringBoolR(rv reflect.Value) {
  3949. fastpathTV.EncMapStringBoolV(rv.Interface().(map[string]bool), fastpathCheckNilFalse, f.e)
  3950. }
  3951. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, checkNil bool, e *Encoder) {
  3952. ee := e.e
  3953. if checkNil && v == nil {
  3954. ee.EncodeNil()
  3955. return
  3956. }
  3957. ee.EncodeMapStart(len(v))
  3958. asSymbols := e.h.AsSymbols&AsSymbolMapStringKeysFlag != 0
  3959. if e.h.Canonical {
  3960. v2 := make([]string, len(v))
  3961. var i int
  3962. for k, _ := range v {
  3963. v2[i] = string(k)
  3964. i++
  3965. }
  3966. sort.Sort(stringSlice(v2))
  3967. for _, k2 := range v2 {
  3968. if asSymbols {
  3969. ee.EncodeSymbol(k2)
  3970. } else {
  3971. ee.EncodeString(c_UTF8, k2)
  3972. }
  3973. ee.EncodeBool(v[string(k2)])
  3974. }
  3975. } else {
  3976. for k2, v2 := range v {
  3977. if asSymbols {
  3978. ee.EncodeSymbol(k2)
  3979. } else {
  3980. ee.EncodeString(c_UTF8, k2)
  3981. }
  3982. ee.EncodeBool(v2)
  3983. }
  3984. }
  3985. ee.EncodeEnd()
  3986. }
  3987. func (f *encFnInfo) fastpathEncMapFloat32IntfR(rv reflect.Value) {
  3988. fastpathTV.EncMapFloat32IntfV(rv.Interface().(map[float32]interface{}), fastpathCheckNilFalse, f.e)
  3989. }
  3990. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, checkNil bool, e *Encoder) {
  3991. ee := e.e
  3992. if checkNil && v == nil {
  3993. ee.EncodeNil()
  3994. return
  3995. }
  3996. ee.EncodeMapStart(len(v))
  3997. if e.h.Canonical {
  3998. v2 := make([]float64, len(v))
  3999. var i int
  4000. for k, _ := range v {
  4001. v2[i] = float64(k)
  4002. i++
  4003. }
  4004. sort.Sort(floatSlice(v2))
  4005. for _, k2 := range v2 {
  4006. ee.EncodeFloat32(float32(k2))
  4007. e.encode(v[float32(k2)])
  4008. }
  4009. } else {
  4010. for k2, v2 := range v {
  4011. ee.EncodeFloat32(k2)
  4012. e.encode(v2)
  4013. }
  4014. }
  4015. ee.EncodeEnd()
  4016. }
  4017. func (f *encFnInfo) fastpathEncMapFloat32StringR(rv reflect.Value) {
  4018. fastpathTV.EncMapFloat32StringV(rv.Interface().(map[float32]string), fastpathCheckNilFalse, f.e)
  4019. }
  4020. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, checkNil bool, e *Encoder) {
  4021. ee := e.e
  4022. if checkNil && v == nil {
  4023. ee.EncodeNil()
  4024. return
  4025. }
  4026. ee.EncodeMapStart(len(v))
  4027. if e.h.Canonical {
  4028. v2 := make([]float64, len(v))
  4029. var i int
  4030. for k, _ := range v {
  4031. v2[i] = float64(k)
  4032. i++
  4033. }
  4034. sort.Sort(floatSlice(v2))
  4035. for _, k2 := range v2 {
  4036. ee.EncodeFloat32(float32(k2))
  4037. ee.EncodeString(c_UTF8, v[float32(k2)])
  4038. }
  4039. } else {
  4040. for k2, v2 := range v {
  4041. ee.EncodeFloat32(k2)
  4042. ee.EncodeString(c_UTF8, v2)
  4043. }
  4044. }
  4045. ee.EncodeEnd()
  4046. }
  4047. func (f *encFnInfo) fastpathEncMapFloat32UintR(rv reflect.Value) {
  4048. fastpathTV.EncMapFloat32UintV(rv.Interface().(map[float32]uint), fastpathCheckNilFalse, f.e)
  4049. }
  4050. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, checkNil bool, e *Encoder) {
  4051. ee := e.e
  4052. if checkNil && v == nil {
  4053. ee.EncodeNil()
  4054. return
  4055. }
  4056. ee.EncodeMapStart(len(v))
  4057. if e.h.Canonical {
  4058. v2 := make([]float64, len(v))
  4059. var i int
  4060. for k, _ := range v {
  4061. v2[i] = float64(k)
  4062. i++
  4063. }
  4064. sort.Sort(floatSlice(v2))
  4065. for _, k2 := range v2 {
  4066. ee.EncodeFloat32(float32(k2))
  4067. ee.EncodeUint(uint64(v[float32(k2)]))
  4068. }
  4069. } else {
  4070. for k2, v2 := range v {
  4071. ee.EncodeFloat32(k2)
  4072. ee.EncodeUint(uint64(v2))
  4073. }
  4074. }
  4075. ee.EncodeEnd()
  4076. }
  4077. func (f *encFnInfo) fastpathEncMapFloat32Uint8R(rv reflect.Value) {
  4078. fastpathTV.EncMapFloat32Uint8V(rv.Interface().(map[float32]uint8), fastpathCheckNilFalse, f.e)
  4079. }
  4080. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, checkNil bool, e *Encoder) {
  4081. ee := e.e
  4082. if checkNil && v == nil {
  4083. ee.EncodeNil()
  4084. return
  4085. }
  4086. ee.EncodeMapStart(len(v))
  4087. if e.h.Canonical {
  4088. v2 := make([]float64, len(v))
  4089. var i int
  4090. for k, _ := range v {
  4091. v2[i] = float64(k)
  4092. i++
  4093. }
  4094. sort.Sort(floatSlice(v2))
  4095. for _, k2 := range v2 {
  4096. ee.EncodeFloat32(float32(k2))
  4097. ee.EncodeUint(uint64(v[float32(k2)]))
  4098. }
  4099. } else {
  4100. for k2, v2 := range v {
  4101. ee.EncodeFloat32(k2)
  4102. ee.EncodeUint(uint64(v2))
  4103. }
  4104. }
  4105. ee.EncodeEnd()
  4106. }
  4107. func (f *encFnInfo) fastpathEncMapFloat32Uint16R(rv reflect.Value) {
  4108. fastpathTV.EncMapFloat32Uint16V(rv.Interface().(map[float32]uint16), fastpathCheckNilFalse, f.e)
  4109. }
  4110. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, checkNil bool, e *Encoder) {
  4111. ee := e.e
  4112. if checkNil && v == nil {
  4113. ee.EncodeNil()
  4114. return
  4115. }
  4116. ee.EncodeMapStart(len(v))
  4117. if e.h.Canonical {
  4118. v2 := make([]float64, len(v))
  4119. var i int
  4120. for k, _ := range v {
  4121. v2[i] = float64(k)
  4122. i++
  4123. }
  4124. sort.Sort(floatSlice(v2))
  4125. for _, k2 := range v2 {
  4126. ee.EncodeFloat32(float32(k2))
  4127. ee.EncodeUint(uint64(v[float32(k2)]))
  4128. }
  4129. } else {
  4130. for k2, v2 := range v {
  4131. ee.EncodeFloat32(k2)
  4132. ee.EncodeUint(uint64(v2))
  4133. }
  4134. }
  4135. ee.EncodeEnd()
  4136. }
  4137. func (f *encFnInfo) fastpathEncMapFloat32Uint32R(rv reflect.Value) {
  4138. fastpathTV.EncMapFloat32Uint32V(rv.Interface().(map[float32]uint32), fastpathCheckNilFalse, f.e)
  4139. }
  4140. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, checkNil bool, e *Encoder) {
  4141. ee := e.e
  4142. if checkNil && v == nil {
  4143. ee.EncodeNil()
  4144. return
  4145. }
  4146. ee.EncodeMapStart(len(v))
  4147. if e.h.Canonical {
  4148. v2 := make([]float64, len(v))
  4149. var i int
  4150. for k, _ := range v {
  4151. v2[i] = float64(k)
  4152. i++
  4153. }
  4154. sort.Sort(floatSlice(v2))
  4155. for _, k2 := range v2 {
  4156. ee.EncodeFloat32(float32(k2))
  4157. ee.EncodeUint(uint64(v[float32(k2)]))
  4158. }
  4159. } else {
  4160. for k2, v2 := range v {
  4161. ee.EncodeFloat32(k2)
  4162. ee.EncodeUint(uint64(v2))
  4163. }
  4164. }
  4165. ee.EncodeEnd()
  4166. }
  4167. func (f *encFnInfo) fastpathEncMapFloat32Uint64R(rv reflect.Value) {
  4168. fastpathTV.EncMapFloat32Uint64V(rv.Interface().(map[float32]uint64), fastpathCheckNilFalse, f.e)
  4169. }
  4170. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, checkNil bool, e *Encoder) {
  4171. ee := e.e
  4172. if checkNil && v == nil {
  4173. ee.EncodeNil()
  4174. return
  4175. }
  4176. ee.EncodeMapStart(len(v))
  4177. if e.h.Canonical {
  4178. v2 := make([]float64, len(v))
  4179. var i int
  4180. for k, _ := range v {
  4181. v2[i] = float64(k)
  4182. i++
  4183. }
  4184. sort.Sort(floatSlice(v2))
  4185. for _, k2 := range v2 {
  4186. ee.EncodeFloat32(float32(k2))
  4187. ee.EncodeUint(uint64(v[float32(k2)]))
  4188. }
  4189. } else {
  4190. for k2, v2 := range v {
  4191. ee.EncodeFloat32(k2)
  4192. ee.EncodeUint(uint64(v2))
  4193. }
  4194. }
  4195. ee.EncodeEnd()
  4196. }
  4197. func (f *encFnInfo) fastpathEncMapFloat32UintptrR(rv reflect.Value) {
  4198. fastpathTV.EncMapFloat32UintptrV(rv.Interface().(map[float32]uintptr), fastpathCheckNilFalse, f.e)
  4199. }
  4200. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, checkNil bool, e *Encoder) {
  4201. ee := e.e
  4202. if checkNil && v == nil {
  4203. ee.EncodeNil()
  4204. return
  4205. }
  4206. ee.EncodeMapStart(len(v))
  4207. if e.h.Canonical {
  4208. v2 := make([]float64, len(v))
  4209. var i int
  4210. for k, _ := range v {
  4211. v2[i] = float64(k)
  4212. i++
  4213. }
  4214. sort.Sort(floatSlice(v2))
  4215. for _, k2 := range v2 {
  4216. ee.EncodeFloat32(float32(k2))
  4217. e.encode(v[float32(k2)])
  4218. }
  4219. } else {
  4220. for k2, v2 := range v {
  4221. ee.EncodeFloat32(k2)
  4222. e.encode(v2)
  4223. }
  4224. }
  4225. ee.EncodeEnd()
  4226. }
  4227. func (f *encFnInfo) fastpathEncMapFloat32IntR(rv reflect.Value) {
  4228. fastpathTV.EncMapFloat32IntV(rv.Interface().(map[float32]int), fastpathCheckNilFalse, f.e)
  4229. }
  4230. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, checkNil bool, e *Encoder) {
  4231. ee := e.e
  4232. if checkNil && v == nil {
  4233. ee.EncodeNil()
  4234. return
  4235. }
  4236. ee.EncodeMapStart(len(v))
  4237. if e.h.Canonical {
  4238. v2 := make([]float64, len(v))
  4239. var i int
  4240. for k, _ := range v {
  4241. v2[i] = float64(k)
  4242. i++
  4243. }
  4244. sort.Sort(floatSlice(v2))
  4245. for _, k2 := range v2 {
  4246. ee.EncodeFloat32(float32(k2))
  4247. ee.EncodeInt(int64(v[float32(k2)]))
  4248. }
  4249. } else {
  4250. for k2, v2 := range v {
  4251. ee.EncodeFloat32(k2)
  4252. ee.EncodeInt(int64(v2))
  4253. }
  4254. }
  4255. ee.EncodeEnd()
  4256. }
  4257. func (f *encFnInfo) fastpathEncMapFloat32Int8R(rv reflect.Value) {
  4258. fastpathTV.EncMapFloat32Int8V(rv.Interface().(map[float32]int8), fastpathCheckNilFalse, f.e)
  4259. }
  4260. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, checkNil bool, e *Encoder) {
  4261. ee := e.e
  4262. if checkNil && v == nil {
  4263. ee.EncodeNil()
  4264. return
  4265. }
  4266. ee.EncodeMapStart(len(v))
  4267. if e.h.Canonical {
  4268. v2 := make([]float64, len(v))
  4269. var i int
  4270. for k, _ := range v {
  4271. v2[i] = float64(k)
  4272. i++
  4273. }
  4274. sort.Sort(floatSlice(v2))
  4275. for _, k2 := range v2 {
  4276. ee.EncodeFloat32(float32(k2))
  4277. ee.EncodeInt(int64(v[float32(k2)]))
  4278. }
  4279. } else {
  4280. for k2, v2 := range v {
  4281. ee.EncodeFloat32(k2)
  4282. ee.EncodeInt(int64(v2))
  4283. }
  4284. }
  4285. ee.EncodeEnd()
  4286. }
  4287. func (f *encFnInfo) fastpathEncMapFloat32Int16R(rv reflect.Value) {
  4288. fastpathTV.EncMapFloat32Int16V(rv.Interface().(map[float32]int16), fastpathCheckNilFalse, f.e)
  4289. }
  4290. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, checkNil bool, e *Encoder) {
  4291. ee := e.e
  4292. if checkNil && v == nil {
  4293. ee.EncodeNil()
  4294. return
  4295. }
  4296. ee.EncodeMapStart(len(v))
  4297. if e.h.Canonical {
  4298. v2 := make([]float64, len(v))
  4299. var i int
  4300. for k, _ := range v {
  4301. v2[i] = float64(k)
  4302. i++
  4303. }
  4304. sort.Sort(floatSlice(v2))
  4305. for _, k2 := range v2 {
  4306. ee.EncodeFloat32(float32(k2))
  4307. ee.EncodeInt(int64(v[float32(k2)]))
  4308. }
  4309. } else {
  4310. for k2, v2 := range v {
  4311. ee.EncodeFloat32(k2)
  4312. ee.EncodeInt(int64(v2))
  4313. }
  4314. }
  4315. ee.EncodeEnd()
  4316. }
  4317. func (f *encFnInfo) fastpathEncMapFloat32Int32R(rv reflect.Value) {
  4318. fastpathTV.EncMapFloat32Int32V(rv.Interface().(map[float32]int32), fastpathCheckNilFalse, f.e)
  4319. }
  4320. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, checkNil bool, e *Encoder) {
  4321. ee := e.e
  4322. if checkNil && v == nil {
  4323. ee.EncodeNil()
  4324. return
  4325. }
  4326. ee.EncodeMapStart(len(v))
  4327. if e.h.Canonical {
  4328. v2 := make([]float64, len(v))
  4329. var i int
  4330. for k, _ := range v {
  4331. v2[i] = float64(k)
  4332. i++
  4333. }
  4334. sort.Sort(floatSlice(v2))
  4335. for _, k2 := range v2 {
  4336. ee.EncodeFloat32(float32(k2))
  4337. ee.EncodeInt(int64(v[float32(k2)]))
  4338. }
  4339. } else {
  4340. for k2, v2 := range v {
  4341. ee.EncodeFloat32(k2)
  4342. ee.EncodeInt(int64(v2))
  4343. }
  4344. }
  4345. ee.EncodeEnd()
  4346. }
  4347. func (f *encFnInfo) fastpathEncMapFloat32Int64R(rv reflect.Value) {
  4348. fastpathTV.EncMapFloat32Int64V(rv.Interface().(map[float32]int64), fastpathCheckNilFalse, f.e)
  4349. }
  4350. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, checkNil bool, e *Encoder) {
  4351. ee := e.e
  4352. if checkNil && v == nil {
  4353. ee.EncodeNil()
  4354. return
  4355. }
  4356. ee.EncodeMapStart(len(v))
  4357. if e.h.Canonical {
  4358. v2 := make([]float64, len(v))
  4359. var i int
  4360. for k, _ := range v {
  4361. v2[i] = float64(k)
  4362. i++
  4363. }
  4364. sort.Sort(floatSlice(v2))
  4365. for _, k2 := range v2 {
  4366. ee.EncodeFloat32(float32(k2))
  4367. ee.EncodeInt(int64(v[float32(k2)]))
  4368. }
  4369. } else {
  4370. for k2, v2 := range v {
  4371. ee.EncodeFloat32(k2)
  4372. ee.EncodeInt(int64(v2))
  4373. }
  4374. }
  4375. ee.EncodeEnd()
  4376. }
  4377. func (f *encFnInfo) fastpathEncMapFloat32Float32R(rv reflect.Value) {
  4378. fastpathTV.EncMapFloat32Float32V(rv.Interface().(map[float32]float32), fastpathCheckNilFalse, f.e)
  4379. }
  4380. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, checkNil bool, e *Encoder) {
  4381. ee := e.e
  4382. if checkNil && v == nil {
  4383. ee.EncodeNil()
  4384. return
  4385. }
  4386. ee.EncodeMapStart(len(v))
  4387. if e.h.Canonical {
  4388. v2 := make([]float64, len(v))
  4389. var i int
  4390. for k, _ := range v {
  4391. v2[i] = float64(k)
  4392. i++
  4393. }
  4394. sort.Sort(floatSlice(v2))
  4395. for _, k2 := range v2 {
  4396. ee.EncodeFloat32(float32(k2))
  4397. ee.EncodeFloat32(v[float32(k2)])
  4398. }
  4399. } else {
  4400. for k2, v2 := range v {
  4401. ee.EncodeFloat32(k2)
  4402. ee.EncodeFloat32(v2)
  4403. }
  4404. }
  4405. ee.EncodeEnd()
  4406. }
  4407. func (f *encFnInfo) fastpathEncMapFloat32Float64R(rv reflect.Value) {
  4408. fastpathTV.EncMapFloat32Float64V(rv.Interface().(map[float32]float64), fastpathCheckNilFalse, f.e)
  4409. }
  4410. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, checkNil bool, e *Encoder) {
  4411. ee := e.e
  4412. if checkNil && v == nil {
  4413. ee.EncodeNil()
  4414. return
  4415. }
  4416. ee.EncodeMapStart(len(v))
  4417. if e.h.Canonical {
  4418. v2 := make([]float64, len(v))
  4419. var i int
  4420. for k, _ := range v {
  4421. v2[i] = float64(k)
  4422. i++
  4423. }
  4424. sort.Sort(floatSlice(v2))
  4425. for _, k2 := range v2 {
  4426. ee.EncodeFloat32(float32(k2))
  4427. ee.EncodeFloat64(v[float32(k2)])
  4428. }
  4429. } else {
  4430. for k2, v2 := range v {
  4431. ee.EncodeFloat32(k2)
  4432. ee.EncodeFloat64(v2)
  4433. }
  4434. }
  4435. ee.EncodeEnd()
  4436. }
  4437. func (f *encFnInfo) fastpathEncMapFloat32BoolR(rv reflect.Value) {
  4438. fastpathTV.EncMapFloat32BoolV(rv.Interface().(map[float32]bool), fastpathCheckNilFalse, f.e)
  4439. }
  4440. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, checkNil bool, e *Encoder) {
  4441. ee := e.e
  4442. if checkNil && v == nil {
  4443. ee.EncodeNil()
  4444. return
  4445. }
  4446. ee.EncodeMapStart(len(v))
  4447. if e.h.Canonical {
  4448. v2 := make([]float64, len(v))
  4449. var i int
  4450. for k, _ := range v {
  4451. v2[i] = float64(k)
  4452. i++
  4453. }
  4454. sort.Sort(floatSlice(v2))
  4455. for _, k2 := range v2 {
  4456. ee.EncodeFloat32(float32(k2))
  4457. ee.EncodeBool(v[float32(k2)])
  4458. }
  4459. } else {
  4460. for k2, v2 := range v {
  4461. ee.EncodeFloat32(k2)
  4462. ee.EncodeBool(v2)
  4463. }
  4464. }
  4465. ee.EncodeEnd()
  4466. }
  4467. func (f *encFnInfo) fastpathEncMapFloat64IntfR(rv reflect.Value) {
  4468. fastpathTV.EncMapFloat64IntfV(rv.Interface().(map[float64]interface{}), fastpathCheckNilFalse, f.e)
  4469. }
  4470. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, checkNil bool, e *Encoder) {
  4471. ee := e.e
  4472. if checkNil && v == nil {
  4473. ee.EncodeNil()
  4474. return
  4475. }
  4476. ee.EncodeMapStart(len(v))
  4477. if e.h.Canonical {
  4478. v2 := make([]float64, len(v))
  4479. var i int
  4480. for k, _ := range v {
  4481. v2[i] = float64(k)
  4482. i++
  4483. }
  4484. sort.Sort(floatSlice(v2))
  4485. for _, k2 := range v2 {
  4486. ee.EncodeFloat64(float64(k2))
  4487. e.encode(v[float64(k2)])
  4488. }
  4489. } else {
  4490. for k2, v2 := range v {
  4491. ee.EncodeFloat64(k2)
  4492. e.encode(v2)
  4493. }
  4494. }
  4495. ee.EncodeEnd()
  4496. }
  4497. func (f *encFnInfo) fastpathEncMapFloat64StringR(rv reflect.Value) {
  4498. fastpathTV.EncMapFloat64StringV(rv.Interface().(map[float64]string), fastpathCheckNilFalse, f.e)
  4499. }
  4500. func (_ fastpathT) EncMapFloat64StringV(v map[float64]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.h.Canonical {
  4508. v2 := make([]float64, len(v))
  4509. var i int
  4510. for k, _ := range v {
  4511. v2[i] = float64(k)
  4512. i++
  4513. }
  4514. sort.Sort(floatSlice(v2))
  4515. for _, k2 := range v2 {
  4516. ee.EncodeFloat64(float64(k2))
  4517. ee.EncodeString(c_UTF8, v[float64(k2)])
  4518. }
  4519. } else {
  4520. for k2, v2 := range v {
  4521. ee.EncodeFloat64(k2)
  4522. ee.EncodeString(c_UTF8, v2)
  4523. }
  4524. }
  4525. ee.EncodeEnd()
  4526. }
  4527. func (f *encFnInfo) fastpathEncMapFloat64UintR(rv reflect.Value) {
  4528. fastpathTV.EncMapFloat64UintV(rv.Interface().(map[float64]uint), fastpathCheckNilFalse, f.e)
  4529. }
  4530. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, checkNil bool, e *Encoder) {
  4531. ee := e.e
  4532. if checkNil && v == nil {
  4533. ee.EncodeNil()
  4534. return
  4535. }
  4536. ee.EncodeMapStart(len(v))
  4537. if e.h.Canonical {
  4538. v2 := make([]float64, len(v))
  4539. var i int
  4540. for k, _ := range v {
  4541. v2[i] = float64(k)
  4542. i++
  4543. }
  4544. sort.Sort(floatSlice(v2))
  4545. for _, k2 := range v2 {
  4546. ee.EncodeFloat64(float64(k2))
  4547. ee.EncodeUint(uint64(v[float64(k2)]))
  4548. }
  4549. } else {
  4550. for k2, v2 := range v {
  4551. ee.EncodeFloat64(k2)
  4552. ee.EncodeUint(uint64(v2))
  4553. }
  4554. }
  4555. ee.EncodeEnd()
  4556. }
  4557. func (f *encFnInfo) fastpathEncMapFloat64Uint8R(rv reflect.Value) {
  4558. fastpathTV.EncMapFloat64Uint8V(rv.Interface().(map[float64]uint8), fastpathCheckNilFalse, f.e)
  4559. }
  4560. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, checkNil bool, e *Encoder) {
  4561. ee := e.e
  4562. if checkNil && v == nil {
  4563. ee.EncodeNil()
  4564. return
  4565. }
  4566. ee.EncodeMapStart(len(v))
  4567. if e.h.Canonical {
  4568. v2 := make([]float64, len(v))
  4569. var i int
  4570. for k, _ := range v {
  4571. v2[i] = float64(k)
  4572. i++
  4573. }
  4574. sort.Sort(floatSlice(v2))
  4575. for _, k2 := range v2 {
  4576. ee.EncodeFloat64(float64(k2))
  4577. ee.EncodeUint(uint64(v[float64(k2)]))
  4578. }
  4579. } else {
  4580. for k2, v2 := range v {
  4581. ee.EncodeFloat64(k2)
  4582. ee.EncodeUint(uint64(v2))
  4583. }
  4584. }
  4585. ee.EncodeEnd()
  4586. }
  4587. func (f *encFnInfo) fastpathEncMapFloat64Uint16R(rv reflect.Value) {
  4588. fastpathTV.EncMapFloat64Uint16V(rv.Interface().(map[float64]uint16), fastpathCheckNilFalse, f.e)
  4589. }
  4590. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, checkNil bool, e *Encoder) {
  4591. ee := e.e
  4592. if checkNil && v == nil {
  4593. ee.EncodeNil()
  4594. return
  4595. }
  4596. ee.EncodeMapStart(len(v))
  4597. if e.h.Canonical {
  4598. v2 := make([]float64, len(v))
  4599. var i int
  4600. for k, _ := range v {
  4601. v2[i] = float64(k)
  4602. i++
  4603. }
  4604. sort.Sort(floatSlice(v2))
  4605. for _, k2 := range v2 {
  4606. ee.EncodeFloat64(float64(k2))
  4607. ee.EncodeUint(uint64(v[float64(k2)]))
  4608. }
  4609. } else {
  4610. for k2, v2 := range v {
  4611. ee.EncodeFloat64(k2)
  4612. ee.EncodeUint(uint64(v2))
  4613. }
  4614. }
  4615. ee.EncodeEnd()
  4616. }
  4617. func (f *encFnInfo) fastpathEncMapFloat64Uint32R(rv reflect.Value) {
  4618. fastpathTV.EncMapFloat64Uint32V(rv.Interface().(map[float64]uint32), fastpathCheckNilFalse, f.e)
  4619. }
  4620. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, checkNil bool, e *Encoder) {
  4621. ee := e.e
  4622. if checkNil && v == nil {
  4623. ee.EncodeNil()
  4624. return
  4625. }
  4626. ee.EncodeMapStart(len(v))
  4627. if e.h.Canonical {
  4628. v2 := make([]float64, len(v))
  4629. var i int
  4630. for k, _ := range v {
  4631. v2[i] = float64(k)
  4632. i++
  4633. }
  4634. sort.Sort(floatSlice(v2))
  4635. for _, k2 := range v2 {
  4636. ee.EncodeFloat64(float64(k2))
  4637. ee.EncodeUint(uint64(v[float64(k2)]))
  4638. }
  4639. } else {
  4640. for k2, v2 := range v {
  4641. ee.EncodeFloat64(k2)
  4642. ee.EncodeUint(uint64(v2))
  4643. }
  4644. }
  4645. ee.EncodeEnd()
  4646. }
  4647. func (f *encFnInfo) fastpathEncMapFloat64Uint64R(rv reflect.Value) {
  4648. fastpathTV.EncMapFloat64Uint64V(rv.Interface().(map[float64]uint64), fastpathCheckNilFalse, f.e)
  4649. }
  4650. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, checkNil bool, e *Encoder) {
  4651. ee := e.e
  4652. if checkNil && v == nil {
  4653. ee.EncodeNil()
  4654. return
  4655. }
  4656. ee.EncodeMapStart(len(v))
  4657. if e.h.Canonical {
  4658. v2 := make([]float64, len(v))
  4659. var i int
  4660. for k, _ := range v {
  4661. v2[i] = float64(k)
  4662. i++
  4663. }
  4664. sort.Sort(floatSlice(v2))
  4665. for _, k2 := range v2 {
  4666. ee.EncodeFloat64(float64(k2))
  4667. ee.EncodeUint(uint64(v[float64(k2)]))
  4668. }
  4669. } else {
  4670. for k2, v2 := range v {
  4671. ee.EncodeFloat64(k2)
  4672. ee.EncodeUint(uint64(v2))
  4673. }
  4674. }
  4675. ee.EncodeEnd()
  4676. }
  4677. func (f *encFnInfo) fastpathEncMapFloat64UintptrR(rv reflect.Value) {
  4678. fastpathTV.EncMapFloat64UintptrV(rv.Interface().(map[float64]uintptr), fastpathCheckNilFalse, f.e)
  4679. }
  4680. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, checkNil bool, e *Encoder) {
  4681. ee := e.e
  4682. if checkNil && v == nil {
  4683. ee.EncodeNil()
  4684. return
  4685. }
  4686. ee.EncodeMapStart(len(v))
  4687. if e.h.Canonical {
  4688. v2 := make([]float64, len(v))
  4689. var i int
  4690. for k, _ := range v {
  4691. v2[i] = float64(k)
  4692. i++
  4693. }
  4694. sort.Sort(floatSlice(v2))
  4695. for _, k2 := range v2 {
  4696. ee.EncodeFloat64(float64(k2))
  4697. e.encode(v[float64(k2)])
  4698. }
  4699. } else {
  4700. for k2, v2 := range v {
  4701. ee.EncodeFloat64(k2)
  4702. e.encode(v2)
  4703. }
  4704. }
  4705. ee.EncodeEnd()
  4706. }
  4707. func (f *encFnInfo) fastpathEncMapFloat64IntR(rv reflect.Value) {
  4708. fastpathTV.EncMapFloat64IntV(rv.Interface().(map[float64]int), fastpathCheckNilFalse, f.e)
  4709. }
  4710. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, checkNil bool, e *Encoder) {
  4711. ee := e.e
  4712. if checkNil && v == nil {
  4713. ee.EncodeNil()
  4714. return
  4715. }
  4716. ee.EncodeMapStart(len(v))
  4717. if e.h.Canonical {
  4718. v2 := make([]float64, len(v))
  4719. var i int
  4720. for k, _ := range v {
  4721. v2[i] = float64(k)
  4722. i++
  4723. }
  4724. sort.Sort(floatSlice(v2))
  4725. for _, k2 := range v2 {
  4726. ee.EncodeFloat64(float64(k2))
  4727. ee.EncodeInt(int64(v[float64(k2)]))
  4728. }
  4729. } else {
  4730. for k2, v2 := range v {
  4731. ee.EncodeFloat64(k2)
  4732. ee.EncodeInt(int64(v2))
  4733. }
  4734. }
  4735. ee.EncodeEnd()
  4736. }
  4737. func (f *encFnInfo) fastpathEncMapFloat64Int8R(rv reflect.Value) {
  4738. fastpathTV.EncMapFloat64Int8V(rv.Interface().(map[float64]int8), fastpathCheckNilFalse, f.e)
  4739. }
  4740. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, checkNil bool, e *Encoder) {
  4741. ee := e.e
  4742. if checkNil && v == nil {
  4743. ee.EncodeNil()
  4744. return
  4745. }
  4746. ee.EncodeMapStart(len(v))
  4747. if e.h.Canonical {
  4748. v2 := make([]float64, len(v))
  4749. var i int
  4750. for k, _ := range v {
  4751. v2[i] = float64(k)
  4752. i++
  4753. }
  4754. sort.Sort(floatSlice(v2))
  4755. for _, k2 := range v2 {
  4756. ee.EncodeFloat64(float64(k2))
  4757. ee.EncodeInt(int64(v[float64(k2)]))
  4758. }
  4759. } else {
  4760. for k2, v2 := range v {
  4761. ee.EncodeFloat64(k2)
  4762. ee.EncodeInt(int64(v2))
  4763. }
  4764. }
  4765. ee.EncodeEnd()
  4766. }
  4767. func (f *encFnInfo) fastpathEncMapFloat64Int16R(rv reflect.Value) {
  4768. fastpathTV.EncMapFloat64Int16V(rv.Interface().(map[float64]int16), fastpathCheckNilFalse, f.e)
  4769. }
  4770. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, checkNil bool, e *Encoder) {
  4771. ee := e.e
  4772. if checkNil && v == nil {
  4773. ee.EncodeNil()
  4774. return
  4775. }
  4776. ee.EncodeMapStart(len(v))
  4777. if e.h.Canonical {
  4778. v2 := make([]float64, len(v))
  4779. var i int
  4780. for k, _ := range v {
  4781. v2[i] = float64(k)
  4782. i++
  4783. }
  4784. sort.Sort(floatSlice(v2))
  4785. for _, k2 := range v2 {
  4786. ee.EncodeFloat64(float64(k2))
  4787. ee.EncodeInt(int64(v[float64(k2)]))
  4788. }
  4789. } else {
  4790. for k2, v2 := range v {
  4791. ee.EncodeFloat64(k2)
  4792. ee.EncodeInt(int64(v2))
  4793. }
  4794. }
  4795. ee.EncodeEnd()
  4796. }
  4797. func (f *encFnInfo) fastpathEncMapFloat64Int32R(rv reflect.Value) {
  4798. fastpathTV.EncMapFloat64Int32V(rv.Interface().(map[float64]int32), fastpathCheckNilFalse, f.e)
  4799. }
  4800. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, checkNil bool, e *Encoder) {
  4801. ee := e.e
  4802. if checkNil && v == nil {
  4803. ee.EncodeNil()
  4804. return
  4805. }
  4806. ee.EncodeMapStart(len(v))
  4807. if e.h.Canonical {
  4808. v2 := make([]float64, len(v))
  4809. var i int
  4810. for k, _ := range v {
  4811. v2[i] = float64(k)
  4812. i++
  4813. }
  4814. sort.Sort(floatSlice(v2))
  4815. for _, k2 := range v2 {
  4816. ee.EncodeFloat64(float64(k2))
  4817. ee.EncodeInt(int64(v[float64(k2)]))
  4818. }
  4819. } else {
  4820. for k2, v2 := range v {
  4821. ee.EncodeFloat64(k2)
  4822. ee.EncodeInt(int64(v2))
  4823. }
  4824. }
  4825. ee.EncodeEnd()
  4826. }
  4827. func (f *encFnInfo) fastpathEncMapFloat64Int64R(rv reflect.Value) {
  4828. fastpathTV.EncMapFloat64Int64V(rv.Interface().(map[float64]int64), fastpathCheckNilFalse, f.e)
  4829. }
  4830. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, checkNil bool, e *Encoder) {
  4831. ee := e.e
  4832. if checkNil && v == nil {
  4833. ee.EncodeNil()
  4834. return
  4835. }
  4836. ee.EncodeMapStart(len(v))
  4837. if e.h.Canonical {
  4838. v2 := make([]float64, len(v))
  4839. var i int
  4840. for k, _ := range v {
  4841. v2[i] = float64(k)
  4842. i++
  4843. }
  4844. sort.Sort(floatSlice(v2))
  4845. for _, k2 := range v2 {
  4846. ee.EncodeFloat64(float64(k2))
  4847. ee.EncodeInt(int64(v[float64(k2)]))
  4848. }
  4849. } else {
  4850. for k2, v2 := range v {
  4851. ee.EncodeFloat64(k2)
  4852. ee.EncodeInt(int64(v2))
  4853. }
  4854. }
  4855. ee.EncodeEnd()
  4856. }
  4857. func (f *encFnInfo) fastpathEncMapFloat64Float32R(rv reflect.Value) {
  4858. fastpathTV.EncMapFloat64Float32V(rv.Interface().(map[float64]float32), fastpathCheckNilFalse, f.e)
  4859. }
  4860. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, checkNil bool, e *Encoder) {
  4861. ee := e.e
  4862. if checkNil && v == nil {
  4863. ee.EncodeNil()
  4864. return
  4865. }
  4866. ee.EncodeMapStart(len(v))
  4867. if e.h.Canonical {
  4868. v2 := make([]float64, len(v))
  4869. var i int
  4870. for k, _ := range v {
  4871. v2[i] = float64(k)
  4872. i++
  4873. }
  4874. sort.Sort(floatSlice(v2))
  4875. for _, k2 := range v2 {
  4876. ee.EncodeFloat64(float64(k2))
  4877. ee.EncodeFloat32(v[float64(k2)])
  4878. }
  4879. } else {
  4880. for k2, v2 := range v {
  4881. ee.EncodeFloat64(k2)
  4882. ee.EncodeFloat32(v2)
  4883. }
  4884. }
  4885. ee.EncodeEnd()
  4886. }
  4887. func (f *encFnInfo) fastpathEncMapFloat64Float64R(rv reflect.Value) {
  4888. fastpathTV.EncMapFloat64Float64V(rv.Interface().(map[float64]float64), fastpathCheckNilFalse, f.e)
  4889. }
  4890. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, checkNil bool, e *Encoder) {
  4891. ee := e.e
  4892. if checkNil && v == nil {
  4893. ee.EncodeNil()
  4894. return
  4895. }
  4896. ee.EncodeMapStart(len(v))
  4897. if e.h.Canonical {
  4898. v2 := make([]float64, len(v))
  4899. var i int
  4900. for k, _ := range v {
  4901. v2[i] = float64(k)
  4902. i++
  4903. }
  4904. sort.Sort(floatSlice(v2))
  4905. for _, k2 := range v2 {
  4906. ee.EncodeFloat64(float64(k2))
  4907. ee.EncodeFloat64(v[float64(k2)])
  4908. }
  4909. } else {
  4910. for k2, v2 := range v {
  4911. ee.EncodeFloat64(k2)
  4912. ee.EncodeFloat64(v2)
  4913. }
  4914. }
  4915. ee.EncodeEnd()
  4916. }
  4917. func (f *encFnInfo) fastpathEncMapFloat64BoolR(rv reflect.Value) {
  4918. fastpathTV.EncMapFloat64BoolV(rv.Interface().(map[float64]bool), fastpathCheckNilFalse, f.e)
  4919. }
  4920. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, checkNil bool, e *Encoder) {
  4921. ee := e.e
  4922. if checkNil && v == nil {
  4923. ee.EncodeNil()
  4924. return
  4925. }
  4926. ee.EncodeMapStart(len(v))
  4927. if e.h.Canonical {
  4928. v2 := make([]float64, len(v))
  4929. var i int
  4930. for k, _ := range v {
  4931. v2[i] = float64(k)
  4932. i++
  4933. }
  4934. sort.Sort(floatSlice(v2))
  4935. for _, k2 := range v2 {
  4936. ee.EncodeFloat64(float64(k2))
  4937. ee.EncodeBool(v[float64(k2)])
  4938. }
  4939. } else {
  4940. for k2, v2 := range v {
  4941. ee.EncodeFloat64(k2)
  4942. ee.EncodeBool(v2)
  4943. }
  4944. }
  4945. ee.EncodeEnd()
  4946. }
  4947. func (f *encFnInfo) fastpathEncMapUintIntfR(rv reflect.Value) {
  4948. fastpathTV.EncMapUintIntfV(rv.Interface().(map[uint]interface{}), fastpathCheckNilFalse, f.e)
  4949. }
  4950. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, checkNil bool, e *Encoder) {
  4951. ee := e.e
  4952. if checkNil && v == nil {
  4953. ee.EncodeNil()
  4954. return
  4955. }
  4956. ee.EncodeMapStart(len(v))
  4957. if e.h.Canonical {
  4958. v2 := make([]uint64, len(v))
  4959. var i int
  4960. for k, _ := range v {
  4961. v2[i] = uint64(k)
  4962. i++
  4963. }
  4964. sort.Sort(uintSlice(v2))
  4965. for _, k2 := range v2 {
  4966. ee.EncodeUint(uint64(uint(k2)))
  4967. e.encode(v[uint(k2)])
  4968. }
  4969. } else {
  4970. for k2, v2 := range v {
  4971. ee.EncodeUint(uint64(k2))
  4972. e.encode(v2)
  4973. }
  4974. }
  4975. ee.EncodeEnd()
  4976. }
  4977. func (f *encFnInfo) fastpathEncMapUintStringR(rv reflect.Value) {
  4978. fastpathTV.EncMapUintStringV(rv.Interface().(map[uint]string), fastpathCheckNilFalse, f.e)
  4979. }
  4980. func (_ fastpathT) EncMapUintStringV(v map[uint]string, checkNil bool, e *Encoder) {
  4981. ee := e.e
  4982. if checkNil && v == nil {
  4983. ee.EncodeNil()
  4984. return
  4985. }
  4986. ee.EncodeMapStart(len(v))
  4987. if e.h.Canonical {
  4988. v2 := make([]uint64, len(v))
  4989. var i int
  4990. for k, _ := range v {
  4991. v2[i] = uint64(k)
  4992. i++
  4993. }
  4994. sort.Sort(uintSlice(v2))
  4995. for _, k2 := range v2 {
  4996. ee.EncodeUint(uint64(uint(k2)))
  4997. ee.EncodeString(c_UTF8, v[uint(k2)])
  4998. }
  4999. } else {
  5000. for k2, v2 := range v {
  5001. ee.EncodeUint(uint64(k2))
  5002. ee.EncodeString(c_UTF8, v2)
  5003. }
  5004. }
  5005. ee.EncodeEnd()
  5006. }
  5007. func (f *encFnInfo) fastpathEncMapUintUintR(rv reflect.Value) {
  5008. fastpathTV.EncMapUintUintV(rv.Interface().(map[uint]uint), fastpathCheckNilFalse, f.e)
  5009. }
  5010. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, checkNil bool, e *Encoder) {
  5011. ee := e.e
  5012. if checkNil && v == nil {
  5013. ee.EncodeNil()
  5014. return
  5015. }
  5016. ee.EncodeMapStart(len(v))
  5017. if e.h.Canonical {
  5018. v2 := make([]uint64, len(v))
  5019. var i int
  5020. for k, _ := range v {
  5021. v2[i] = uint64(k)
  5022. i++
  5023. }
  5024. sort.Sort(uintSlice(v2))
  5025. for _, k2 := range v2 {
  5026. ee.EncodeUint(uint64(uint(k2)))
  5027. ee.EncodeUint(uint64(v[uint(k2)]))
  5028. }
  5029. } else {
  5030. for k2, v2 := range v {
  5031. ee.EncodeUint(uint64(k2))
  5032. ee.EncodeUint(uint64(v2))
  5033. }
  5034. }
  5035. ee.EncodeEnd()
  5036. }
  5037. func (f *encFnInfo) fastpathEncMapUintUint8R(rv reflect.Value) {
  5038. fastpathTV.EncMapUintUint8V(rv.Interface().(map[uint]uint8), fastpathCheckNilFalse, f.e)
  5039. }
  5040. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, checkNil bool, e *Encoder) {
  5041. ee := e.e
  5042. if checkNil && v == nil {
  5043. ee.EncodeNil()
  5044. return
  5045. }
  5046. ee.EncodeMapStart(len(v))
  5047. if e.h.Canonical {
  5048. v2 := make([]uint64, len(v))
  5049. var i int
  5050. for k, _ := range v {
  5051. v2[i] = uint64(k)
  5052. i++
  5053. }
  5054. sort.Sort(uintSlice(v2))
  5055. for _, k2 := range v2 {
  5056. ee.EncodeUint(uint64(uint(k2)))
  5057. ee.EncodeUint(uint64(v[uint(k2)]))
  5058. }
  5059. } else {
  5060. for k2, v2 := range v {
  5061. ee.EncodeUint(uint64(k2))
  5062. ee.EncodeUint(uint64(v2))
  5063. }
  5064. }
  5065. ee.EncodeEnd()
  5066. }
  5067. func (f *encFnInfo) fastpathEncMapUintUint16R(rv reflect.Value) {
  5068. fastpathTV.EncMapUintUint16V(rv.Interface().(map[uint]uint16), fastpathCheckNilFalse, f.e)
  5069. }
  5070. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, checkNil bool, e *Encoder) {
  5071. ee := e.e
  5072. if checkNil && v == nil {
  5073. ee.EncodeNil()
  5074. return
  5075. }
  5076. ee.EncodeMapStart(len(v))
  5077. if e.h.Canonical {
  5078. v2 := make([]uint64, len(v))
  5079. var i int
  5080. for k, _ := range v {
  5081. v2[i] = uint64(k)
  5082. i++
  5083. }
  5084. sort.Sort(uintSlice(v2))
  5085. for _, k2 := range v2 {
  5086. ee.EncodeUint(uint64(uint(k2)))
  5087. ee.EncodeUint(uint64(v[uint(k2)]))
  5088. }
  5089. } else {
  5090. for k2, v2 := range v {
  5091. ee.EncodeUint(uint64(k2))
  5092. ee.EncodeUint(uint64(v2))
  5093. }
  5094. }
  5095. ee.EncodeEnd()
  5096. }
  5097. func (f *encFnInfo) fastpathEncMapUintUint32R(rv reflect.Value) {
  5098. fastpathTV.EncMapUintUint32V(rv.Interface().(map[uint]uint32), fastpathCheckNilFalse, f.e)
  5099. }
  5100. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, checkNil bool, e *Encoder) {
  5101. ee := e.e
  5102. if checkNil && v == nil {
  5103. ee.EncodeNil()
  5104. return
  5105. }
  5106. ee.EncodeMapStart(len(v))
  5107. if e.h.Canonical {
  5108. v2 := make([]uint64, len(v))
  5109. var i int
  5110. for k, _ := range v {
  5111. v2[i] = uint64(k)
  5112. i++
  5113. }
  5114. sort.Sort(uintSlice(v2))
  5115. for _, k2 := range v2 {
  5116. ee.EncodeUint(uint64(uint(k2)))
  5117. ee.EncodeUint(uint64(v[uint(k2)]))
  5118. }
  5119. } else {
  5120. for k2, v2 := range v {
  5121. ee.EncodeUint(uint64(k2))
  5122. ee.EncodeUint(uint64(v2))
  5123. }
  5124. }
  5125. ee.EncodeEnd()
  5126. }
  5127. func (f *encFnInfo) fastpathEncMapUintUint64R(rv reflect.Value) {
  5128. fastpathTV.EncMapUintUint64V(rv.Interface().(map[uint]uint64), fastpathCheckNilFalse, f.e)
  5129. }
  5130. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, checkNil bool, e *Encoder) {
  5131. ee := e.e
  5132. if checkNil && v == nil {
  5133. ee.EncodeNil()
  5134. return
  5135. }
  5136. ee.EncodeMapStart(len(v))
  5137. if e.h.Canonical {
  5138. v2 := make([]uint64, len(v))
  5139. var i int
  5140. for k, _ := range v {
  5141. v2[i] = uint64(k)
  5142. i++
  5143. }
  5144. sort.Sort(uintSlice(v2))
  5145. for _, k2 := range v2 {
  5146. ee.EncodeUint(uint64(uint(k2)))
  5147. ee.EncodeUint(uint64(v[uint(k2)]))
  5148. }
  5149. } else {
  5150. for k2, v2 := range v {
  5151. ee.EncodeUint(uint64(k2))
  5152. ee.EncodeUint(uint64(v2))
  5153. }
  5154. }
  5155. ee.EncodeEnd()
  5156. }
  5157. func (f *encFnInfo) fastpathEncMapUintUintptrR(rv reflect.Value) {
  5158. fastpathTV.EncMapUintUintptrV(rv.Interface().(map[uint]uintptr), fastpathCheckNilFalse, f.e)
  5159. }
  5160. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, checkNil bool, e *Encoder) {
  5161. ee := e.e
  5162. if checkNil && v == nil {
  5163. ee.EncodeNil()
  5164. return
  5165. }
  5166. ee.EncodeMapStart(len(v))
  5167. if e.h.Canonical {
  5168. v2 := make([]uint64, len(v))
  5169. var i int
  5170. for k, _ := range v {
  5171. v2[i] = uint64(k)
  5172. i++
  5173. }
  5174. sort.Sort(uintSlice(v2))
  5175. for _, k2 := range v2 {
  5176. ee.EncodeUint(uint64(uint(k2)))
  5177. e.encode(v[uint(k2)])
  5178. }
  5179. } else {
  5180. for k2, v2 := range v {
  5181. ee.EncodeUint(uint64(k2))
  5182. e.encode(v2)
  5183. }
  5184. }
  5185. ee.EncodeEnd()
  5186. }
  5187. func (f *encFnInfo) fastpathEncMapUintIntR(rv reflect.Value) {
  5188. fastpathTV.EncMapUintIntV(rv.Interface().(map[uint]int), fastpathCheckNilFalse, f.e)
  5189. }
  5190. func (_ fastpathT) EncMapUintIntV(v map[uint]int, checkNil bool, e *Encoder) {
  5191. ee := e.e
  5192. if checkNil && v == nil {
  5193. ee.EncodeNil()
  5194. return
  5195. }
  5196. ee.EncodeMapStart(len(v))
  5197. if e.h.Canonical {
  5198. v2 := make([]uint64, len(v))
  5199. var i int
  5200. for k, _ := range v {
  5201. v2[i] = uint64(k)
  5202. i++
  5203. }
  5204. sort.Sort(uintSlice(v2))
  5205. for _, k2 := range v2 {
  5206. ee.EncodeUint(uint64(uint(k2)))
  5207. ee.EncodeInt(int64(v[uint(k2)]))
  5208. }
  5209. } else {
  5210. for k2, v2 := range v {
  5211. ee.EncodeUint(uint64(k2))
  5212. ee.EncodeInt(int64(v2))
  5213. }
  5214. }
  5215. ee.EncodeEnd()
  5216. }
  5217. func (f *encFnInfo) fastpathEncMapUintInt8R(rv reflect.Value) {
  5218. fastpathTV.EncMapUintInt8V(rv.Interface().(map[uint]int8), fastpathCheckNilFalse, f.e)
  5219. }
  5220. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, checkNil bool, e *Encoder) {
  5221. ee := e.e
  5222. if checkNil && v == nil {
  5223. ee.EncodeNil()
  5224. return
  5225. }
  5226. ee.EncodeMapStart(len(v))
  5227. if e.h.Canonical {
  5228. v2 := make([]uint64, len(v))
  5229. var i int
  5230. for k, _ := range v {
  5231. v2[i] = uint64(k)
  5232. i++
  5233. }
  5234. sort.Sort(uintSlice(v2))
  5235. for _, k2 := range v2 {
  5236. ee.EncodeUint(uint64(uint(k2)))
  5237. ee.EncodeInt(int64(v[uint(k2)]))
  5238. }
  5239. } else {
  5240. for k2, v2 := range v {
  5241. ee.EncodeUint(uint64(k2))
  5242. ee.EncodeInt(int64(v2))
  5243. }
  5244. }
  5245. ee.EncodeEnd()
  5246. }
  5247. func (f *encFnInfo) fastpathEncMapUintInt16R(rv reflect.Value) {
  5248. fastpathTV.EncMapUintInt16V(rv.Interface().(map[uint]int16), fastpathCheckNilFalse, f.e)
  5249. }
  5250. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, checkNil bool, e *Encoder) {
  5251. ee := e.e
  5252. if checkNil && v == nil {
  5253. ee.EncodeNil()
  5254. return
  5255. }
  5256. ee.EncodeMapStart(len(v))
  5257. if e.h.Canonical {
  5258. v2 := make([]uint64, len(v))
  5259. var i int
  5260. for k, _ := range v {
  5261. v2[i] = uint64(k)
  5262. i++
  5263. }
  5264. sort.Sort(uintSlice(v2))
  5265. for _, k2 := range v2 {
  5266. ee.EncodeUint(uint64(uint(k2)))
  5267. ee.EncodeInt(int64(v[uint(k2)]))
  5268. }
  5269. } else {
  5270. for k2, v2 := range v {
  5271. ee.EncodeUint(uint64(k2))
  5272. ee.EncodeInt(int64(v2))
  5273. }
  5274. }
  5275. ee.EncodeEnd()
  5276. }
  5277. func (f *encFnInfo) fastpathEncMapUintInt32R(rv reflect.Value) {
  5278. fastpathTV.EncMapUintInt32V(rv.Interface().(map[uint]int32), fastpathCheckNilFalse, f.e)
  5279. }
  5280. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, checkNil bool, e *Encoder) {
  5281. ee := e.e
  5282. if checkNil && v == nil {
  5283. ee.EncodeNil()
  5284. return
  5285. }
  5286. ee.EncodeMapStart(len(v))
  5287. if e.h.Canonical {
  5288. v2 := make([]uint64, len(v))
  5289. var i int
  5290. for k, _ := range v {
  5291. v2[i] = uint64(k)
  5292. i++
  5293. }
  5294. sort.Sort(uintSlice(v2))
  5295. for _, k2 := range v2 {
  5296. ee.EncodeUint(uint64(uint(k2)))
  5297. ee.EncodeInt(int64(v[uint(k2)]))
  5298. }
  5299. } else {
  5300. for k2, v2 := range v {
  5301. ee.EncodeUint(uint64(k2))
  5302. ee.EncodeInt(int64(v2))
  5303. }
  5304. }
  5305. ee.EncodeEnd()
  5306. }
  5307. func (f *encFnInfo) fastpathEncMapUintInt64R(rv reflect.Value) {
  5308. fastpathTV.EncMapUintInt64V(rv.Interface().(map[uint]int64), fastpathCheckNilFalse, f.e)
  5309. }
  5310. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, checkNil bool, e *Encoder) {
  5311. ee := e.e
  5312. if checkNil && v == nil {
  5313. ee.EncodeNil()
  5314. return
  5315. }
  5316. ee.EncodeMapStart(len(v))
  5317. if e.h.Canonical {
  5318. v2 := make([]uint64, len(v))
  5319. var i int
  5320. for k, _ := range v {
  5321. v2[i] = uint64(k)
  5322. i++
  5323. }
  5324. sort.Sort(uintSlice(v2))
  5325. for _, k2 := range v2 {
  5326. ee.EncodeUint(uint64(uint(k2)))
  5327. ee.EncodeInt(int64(v[uint(k2)]))
  5328. }
  5329. } else {
  5330. for k2, v2 := range v {
  5331. ee.EncodeUint(uint64(k2))
  5332. ee.EncodeInt(int64(v2))
  5333. }
  5334. }
  5335. ee.EncodeEnd()
  5336. }
  5337. func (f *encFnInfo) fastpathEncMapUintFloat32R(rv reflect.Value) {
  5338. fastpathTV.EncMapUintFloat32V(rv.Interface().(map[uint]float32), fastpathCheckNilFalse, f.e)
  5339. }
  5340. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, checkNil bool, e *Encoder) {
  5341. ee := e.e
  5342. if checkNil && v == nil {
  5343. ee.EncodeNil()
  5344. return
  5345. }
  5346. ee.EncodeMapStart(len(v))
  5347. if e.h.Canonical {
  5348. v2 := make([]uint64, len(v))
  5349. var i int
  5350. for k, _ := range v {
  5351. v2[i] = uint64(k)
  5352. i++
  5353. }
  5354. sort.Sort(uintSlice(v2))
  5355. for _, k2 := range v2 {
  5356. ee.EncodeUint(uint64(uint(k2)))
  5357. ee.EncodeFloat32(v[uint(k2)])
  5358. }
  5359. } else {
  5360. for k2, v2 := range v {
  5361. ee.EncodeUint(uint64(k2))
  5362. ee.EncodeFloat32(v2)
  5363. }
  5364. }
  5365. ee.EncodeEnd()
  5366. }
  5367. func (f *encFnInfo) fastpathEncMapUintFloat64R(rv reflect.Value) {
  5368. fastpathTV.EncMapUintFloat64V(rv.Interface().(map[uint]float64), fastpathCheckNilFalse, f.e)
  5369. }
  5370. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, 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.h.Canonical {
  5378. v2 := make([]uint64, len(v))
  5379. var i int
  5380. for k, _ := range v {
  5381. v2[i] = uint64(k)
  5382. i++
  5383. }
  5384. sort.Sort(uintSlice(v2))
  5385. for _, k2 := range v2 {
  5386. ee.EncodeUint(uint64(uint(k2)))
  5387. ee.EncodeFloat64(v[uint(k2)])
  5388. }
  5389. } else {
  5390. for k2, v2 := range v {
  5391. ee.EncodeUint(uint64(k2))
  5392. ee.EncodeFloat64(v2)
  5393. }
  5394. }
  5395. ee.EncodeEnd()
  5396. }
  5397. func (f *encFnInfo) fastpathEncMapUintBoolR(rv reflect.Value) {
  5398. fastpathTV.EncMapUintBoolV(rv.Interface().(map[uint]bool), fastpathCheckNilFalse, f.e)
  5399. }
  5400. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, checkNil bool, e *Encoder) {
  5401. ee := e.e
  5402. if checkNil && v == nil {
  5403. ee.EncodeNil()
  5404. return
  5405. }
  5406. ee.EncodeMapStart(len(v))
  5407. if e.h.Canonical {
  5408. v2 := make([]uint64, len(v))
  5409. var i int
  5410. for k, _ := range v {
  5411. v2[i] = uint64(k)
  5412. i++
  5413. }
  5414. sort.Sort(uintSlice(v2))
  5415. for _, k2 := range v2 {
  5416. ee.EncodeUint(uint64(uint(k2)))
  5417. ee.EncodeBool(v[uint(k2)])
  5418. }
  5419. } else {
  5420. for k2, v2 := range v {
  5421. ee.EncodeUint(uint64(k2))
  5422. ee.EncodeBool(v2)
  5423. }
  5424. }
  5425. ee.EncodeEnd()
  5426. }
  5427. func (f *encFnInfo) fastpathEncMapUint8IntfR(rv reflect.Value) {
  5428. fastpathTV.EncMapUint8IntfV(rv.Interface().(map[uint8]interface{}), fastpathCheckNilFalse, f.e)
  5429. }
  5430. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, checkNil bool, e *Encoder) {
  5431. ee := e.e
  5432. if checkNil && v == nil {
  5433. ee.EncodeNil()
  5434. return
  5435. }
  5436. ee.EncodeMapStart(len(v))
  5437. if e.h.Canonical {
  5438. v2 := make([]uint64, len(v))
  5439. var i int
  5440. for k, _ := range v {
  5441. v2[i] = uint64(k)
  5442. i++
  5443. }
  5444. sort.Sort(uintSlice(v2))
  5445. for _, k2 := range v2 {
  5446. ee.EncodeUint(uint64(uint8(k2)))
  5447. e.encode(v[uint8(k2)])
  5448. }
  5449. } else {
  5450. for k2, v2 := range v {
  5451. ee.EncodeUint(uint64(k2))
  5452. e.encode(v2)
  5453. }
  5454. }
  5455. ee.EncodeEnd()
  5456. }
  5457. func (f *encFnInfo) fastpathEncMapUint8StringR(rv reflect.Value) {
  5458. fastpathTV.EncMapUint8StringV(rv.Interface().(map[uint8]string), fastpathCheckNilFalse, f.e)
  5459. }
  5460. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, checkNil bool, e *Encoder) {
  5461. ee := e.e
  5462. if checkNil && v == nil {
  5463. ee.EncodeNil()
  5464. return
  5465. }
  5466. ee.EncodeMapStart(len(v))
  5467. if e.h.Canonical {
  5468. v2 := make([]uint64, len(v))
  5469. var i int
  5470. for k, _ := range v {
  5471. v2[i] = uint64(k)
  5472. i++
  5473. }
  5474. sort.Sort(uintSlice(v2))
  5475. for _, k2 := range v2 {
  5476. ee.EncodeUint(uint64(uint8(k2)))
  5477. ee.EncodeString(c_UTF8, v[uint8(k2)])
  5478. }
  5479. } else {
  5480. for k2, v2 := range v {
  5481. ee.EncodeUint(uint64(k2))
  5482. ee.EncodeString(c_UTF8, v2)
  5483. }
  5484. }
  5485. ee.EncodeEnd()
  5486. }
  5487. func (f *encFnInfo) fastpathEncMapUint8UintR(rv reflect.Value) {
  5488. fastpathTV.EncMapUint8UintV(rv.Interface().(map[uint8]uint), fastpathCheckNilFalse, f.e)
  5489. }
  5490. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, checkNil bool, e *Encoder) {
  5491. ee := e.e
  5492. if checkNil && v == nil {
  5493. ee.EncodeNil()
  5494. return
  5495. }
  5496. ee.EncodeMapStart(len(v))
  5497. if e.h.Canonical {
  5498. v2 := make([]uint64, len(v))
  5499. var i int
  5500. for k, _ := range v {
  5501. v2[i] = uint64(k)
  5502. i++
  5503. }
  5504. sort.Sort(uintSlice(v2))
  5505. for _, k2 := range v2 {
  5506. ee.EncodeUint(uint64(uint8(k2)))
  5507. ee.EncodeUint(uint64(v[uint8(k2)]))
  5508. }
  5509. } else {
  5510. for k2, v2 := range v {
  5511. ee.EncodeUint(uint64(k2))
  5512. ee.EncodeUint(uint64(v2))
  5513. }
  5514. }
  5515. ee.EncodeEnd()
  5516. }
  5517. func (f *encFnInfo) fastpathEncMapUint8Uint8R(rv reflect.Value) {
  5518. fastpathTV.EncMapUint8Uint8V(rv.Interface().(map[uint8]uint8), fastpathCheckNilFalse, f.e)
  5519. }
  5520. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, checkNil bool, e *Encoder) {
  5521. ee := e.e
  5522. if checkNil && v == nil {
  5523. ee.EncodeNil()
  5524. return
  5525. }
  5526. ee.EncodeMapStart(len(v))
  5527. if e.h.Canonical {
  5528. v2 := make([]uint64, len(v))
  5529. var i int
  5530. for k, _ := range v {
  5531. v2[i] = uint64(k)
  5532. i++
  5533. }
  5534. sort.Sort(uintSlice(v2))
  5535. for _, k2 := range v2 {
  5536. ee.EncodeUint(uint64(uint8(k2)))
  5537. ee.EncodeUint(uint64(v[uint8(k2)]))
  5538. }
  5539. } else {
  5540. for k2, v2 := range v {
  5541. ee.EncodeUint(uint64(k2))
  5542. ee.EncodeUint(uint64(v2))
  5543. }
  5544. }
  5545. ee.EncodeEnd()
  5546. }
  5547. func (f *encFnInfo) fastpathEncMapUint8Uint16R(rv reflect.Value) {
  5548. fastpathTV.EncMapUint8Uint16V(rv.Interface().(map[uint8]uint16), fastpathCheckNilFalse, f.e)
  5549. }
  5550. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, checkNil bool, e *Encoder) {
  5551. ee := e.e
  5552. if checkNil && v == nil {
  5553. ee.EncodeNil()
  5554. return
  5555. }
  5556. ee.EncodeMapStart(len(v))
  5557. if e.h.Canonical {
  5558. v2 := make([]uint64, len(v))
  5559. var i int
  5560. for k, _ := range v {
  5561. v2[i] = uint64(k)
  5562. i++
  5563. }
  5564. sort.Sort(uintSlice(v2))
  5565. for _, k2 := range v2 {
  5566. ee.EncodeUint(uint64(uint8(k2)))
  5567. ee.EncodeUint(uint64(v[uint8(k2)]))
  5568. }
  5569. } else {
  5570. for k2, v2 := range v {
  5571. ee.EncodeUint(uint64(k2))
  5572. ee.EncodeUint(uint64(v2))
  5573. }
  5574. }
  5575. ee.EncodeEnd()
  5576. }
  5577. func (f *encFnInfo) fastpathEncMapUint8Uint32R(rv reflect.Value) {
  5578. fastpathTV.EncMapUint8Uint32V(rv.Interface().(map[uint8]uint32), fastpathCheckNilFalse, f.e)
  5579. }
  5580. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, checkNil bool, e *Encoder) {
  5581. ee := e.e
  5582. if checkNil && v == nil {
  5583. ee.EncodeNil()
  5584. return
  5585. }
  5586. ee.EncodeMapStart(len(v))
  5587. if e.h.Canonical {
  5588. v2 := make([]uint64, len(v))
  5589. var i int
  5590. for k, _ := range v {
  5591. v2[i] = uint64(k)
  5592. i++
  5593. }
  5594. sort.Sort(uintSlice(v2))
  5595. for _, k2 := range v2 {
  5596. ee.EncodeUint(uint64(uint8(k2)))
  5597. ee.EncodeUint(uint64(v[uint8(k2)]))
  5598. }
  5599. } else {
  5600. for k2, v2 := range v {
  5601. ee.EncodeUint(uint64(k2))
  5602. ee.EncodeUint(uint64(v2))
  5603. }
  5604. }
  5605. ee.EncodeEnd()
  5606. }
  5607. func (f *encFnInfo) fastpathEncMapUint8Uint64R(rv reflect.Value) {
  5608. fastpathTV.EncMapUint8Uint64V(rv.Interface().(map[uint8]uint64), fastpathCheckNilFalse, f.e)
  5609. }
  5610. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, checkNil bool, e *Encoder) {
  5611. ee := e.e
  5612. if checkNil && v == nil {
  5613. ee.EncodeNil()
  5614. return
  5615. }
  5616. ee.EncodeMapStart(len(v))
  5617. if e.h.Canonical {
  5618. v2 := make([]uint64, len(v))
  5619. var i int
  5620. for k, _ := range v {
  5621. v2[i] = uint64(k)
  5622. i++
  5623. }
  5624. sort.Sort(uintSlice(v2))
  5625. for _, k2 := range v2 {
  5626. ee.EncodeUint(uint64(uint8(k2)))
  5627. ee.EncodeUint(uint64(v[uint8(k2)]))
  5628. }
  5629. } else {
  5630. for k2, v2 := range v {
  5631. ee.EncodeUint(uint64(k2))
  5632. ee.EncodeUint(uint64(v2))
  5633. }
  5634. }
  5635. ee.EncodeEnd()
  5636. }
  5637. func (f *encFnInfo) fastpathEncMapUint8UintptrR(rv reflect.Value) {
  5638. fastpathTV.EncMapUint8UintptrV(rv.Interface().(map[uint8]uintptr), fastpathCheckNilFalse, f.e)
  5639. }
  5640. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, checkNil bool, e *Encoder) {
  5641. ee := e.e
  5642. if checkNil && v == nil {
  5643. ee.EncodeNil()
  5644. return
  5645. }
  5646. ee.EncodeMapStart(len(v))
  5647. if e.h.Canonical {
  5648. v2 := make([]uint64, len(v))
  5649. var i int
  5650. for k, _ := range v {
  5651. v2[i] = uint64(k)
  5652. i++
  5653. }
  5654. sort.Sort(uintSlice(v2))
  5655. for _, k2 := range v2 {
  5656. ee.EncodeUint(uint64(uint8(k2)))
  5657. e.encode(v[uint8(k2)])
  5658. }
  5659. } else {
  5660. for k2, v2 := range v {
  5661. ee.EncodeUint(uint64(k2))
  5662. e.encode(v2)
  5663. }
  5664. }
  5665. ee.EncodeEnd()
  5666. }
  5667. func (f *encFnInfo) fastpathEncMapUint8IntR(rv reflect.Value) {
  5668. fastpathTV.EncMapUint8IntV(rv.Interface().(map[uint8]int), fastpathCheckNilFalse, f.e)
  5669. }
  5670. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, checkNil bool, e *Encoder) {
  5671. ee := e.e
  5672. if checkNil && v == nil {
  5673. ee.EncodeNil()
  5674. return
  5675. }
  5676. ee.EncodeMapStart(len(v))
  5677. if e.h.Canonical {
  5678. v2 := make([]uint64, len(v))
  5679. var i int
  5680. for k, _ := range v {
  5681. v2[i] = uint64(k)
  5682. i++
  5683. }
  5684. sort.Sort(uintSlice(v2))
  5685. for _, k2 := range v2 {
  5686. ee.EncodeUint(uint64(uint8(k2)))
  5687. ee.EncodeInt(int64(v[uint8(k2)]))
  5688. }
  5689. } else {
  5690. for k2, v2 := range v {
  5691. ee.EncodeUint(uint64(k2))
  5692. ee.EncodeInt(int64(v2))
  5693. }
  5694. }
  5695. ee.EncodeEnd()
  5696. }
  5697. func (f *encFnInfo) fastpathEncMapUint8Int8R(rv reflect.Value) {
  5698. fastpathTV.EncMapUint8Int8V(rv.Interface().(map[uint8]int8), fastpathCheckNilFalse, f.e)
  5699. }
  5700. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, checkNil bool, e *Encoder) {
  5701. ee := e.e
  5702. if checkNil && v == nil {
  5703. ee.EncodeNil()
  5704. return
  5705. }
  5706. ee.EncodeMapStart(len(v))
  5707. if e.h.Canonical {
  5708. v2 := make([]uint64, len(v))
  5709. var i int
  5710. for k, _ := range v {
  5711. v2[i] = uint64(k)
  5712. i++
  5713. }
  5714. sort.Sort(uintSlice(v2))
  5715. for _, k2 := range v2 {
  5716. ee.EncodeUint(uint64(uint8(k2)))
  5717. ee.EncodeInt(int64(v[uint8(k2)]))
  5718. }
  5719. } else {
  5720. for k2, v2 := range v {
  5721. ee.EncodeUint(uint64(k2))
  5722. ee.EncodeInt(int64(v2))
  5723. }
  5724. }
  5725. ee.EncodeEnd()
  5726. }
  5727. func (f *encFnInfo) fastpathEncMapUint8Int16R(rv reflect.Value) {
  5728. fastpathTV.EncMapUint8Int16V(rv.Interface().(map[uint8]int16), fastpathCheckNilFalse, f.e)
  5729. }
  5730. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, checkNil bool, e *Encoder) {
  5731. ee := e.e
  5732. if checkNil && v == nil {
  5733. ee.EncodeNil()
  5734. return
  5735. }
  5736. ee.EncodeMapStart(len(v))
  5737. if e.h.Canonical {
  5738. v2 := make([]uint64, len(v))
  5739. var i int
  5740. for k, _ := range v {
  5741. v2[i] = uint64(k)
  5742. i++
  5743. }
  5744. sort.Sort(uintSlice(v2))
  5745. for _, k2 := range v2 {
  5746. ee.EncodeUint(uint64(uint8(k2)))
  5747. ee.EncodeInt(int64(v[uint8(k2)]))
  5748. }
  5749. } else {
  5750. for k2, v2 := range v {
  5751. ee.EncodeUint(uint64(k2))
  5752. ee.EncodeInt(int64(v2))
  5753. }
  5754. }
  5755. ee.EncodeEnd()
  5756. }
  5757. func (f *encFnInfo) fastpathEncMapUint8Int32R(rv reflect.Value) {
  5758. fastpathTV.EncMapUint8Int32V(rv.Interface().(map[uint8]int32), fastpathCheckNilFalse, f.e)
  5759. }
  5760. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, checkNil bool, e *Encoder) {
  5761. ee := e.e
  5762. if checkNil && v == nil {
  5763. ee.EncodeNil()
  5764. return
  5765. }
  5766. ee.EncodeMapStart(len(v))
  5767. if e.h.Canonical {
  5768. v2 := make([]uint64, len(v))
  5769. var i int
  5770. for k, _ := range v {
  5771. v2[i] = uint64(k)
  5772. i++
  5773. }
  5774. sort.Sort(uintSlice(v2))
  5775. for _, k2 := range v2 {
  5776. ee.EncodeUint(uint64(uint8(k2)))
  5777. ee.EncodeInt(int64(v[uint8(k2)]))
  5778. }
  5779. } else {
  5780. for k2, v2 := range v {
  5781. ee.EncodeUint(uint64(k2))
  5782. ee.EncodeInt(int64(v2))
  5783. }
  5784. }
  5785. ee.EncodeEnd()
  5786. }
  5787. func (f *encFnInfo) fastpathEncMapUint8Int64R(rv reflect.Value) {
  5788. fastpathTV.EncMapUint8Int64V(rv.Interface().(map[uint8]int64), fastpathCheckNilFalse, f.e)
  5789. }
  5790. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, checkNil bool, e *Encoder) {
  5791. ee := e.e
  5792. if checkNil && v == nil {
  5793. ee.EncodeNil()
  5794. return
  5795. }
  5796. ee.EncodeMapStart(len(v))
  5797. if e.h.Canonical {
  5798. v2 := make([]uint64, len(v))
  5799. var i int
  5800. for k, _ := range v {
  5801. v2[i] = uint64(k)
  5802. i++
  5803. }
  5804. sort.Sort(uintSlice(v2))
  5805. for _, k2 := range v2 {
  5806. ee.EncodeUint(uint64(uint8(k2)))
  5807. ee.EncodeInt(int64(v[uint8(k2)]))
  5808. }
  5809. } else {
  5810. for k2, v2 := range v {
  5811. ee.EncodeUint(uint64(k2))
  5812. ee.EncodeInt(int64(v2))
  5813. }
  5814. }
  5815. ee.EncodeEnd()
  5816. }
  5817. func (f *encFnInfo) fastpathEncMapUint8Float32R(rv reflect.Value) {
  5818. fastpathTV.EncMapUint8Float32V(rv.Interface().(map[uint8]float32), fastpathCheckNilFalse, f.e)
  5819. }
  5820. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, checkNil bool, e *Encoder) {
  5821. ee := e.e
  5822. if checkNil && v == nil {
  5823. ee.EncodeNil()
  5824. return
  5825. }
  5826. ee.EncodeMapStart(len(v))
  5827. if e.h.Canonical {
  5828. v2 := make([]uint64, len(v))
  5829. var i int
  5830. for k, _ := range v {
  5831. v2[i] = uint64(k)
  5832. i++
  5833. }
  5834. sort.Sort(uintSlice(v2))
  5835. for _, k2 := range v2 {
  5836. ee.EncodeUint(uint64(uint8(k2)))
  5837. ee.EncodeFloat32(v[uint8(k2)])
  5838. }
  5839. } else {
  5840. for k2, v2 := range v {
  5841. ee.EncodeUint(uint64(k2))
  5842. ee.EncodeFloat32(v2)
  5843. }
  5844. }
  5845. ee.EncodeEnd()
  5846. }
  5847. func (f *encFnInfo) fastpathEncMapUint8Float64R(rv reflect.Value) {
  5848. fastpathTV.EncMapUint8Float64V(rv.Interface().(map[uint8]float64), fastpathCheckNilFalse, f.e)
  5849. }
  5850. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, checkNil bool, e *Encoder) {
  5851. ee := e.e
  5852. if checkNil && v == nil {
  5853. ee.EncodeNil()
  5854. return
  5855. }
  5856. ee.EncodeMapStart(len(v))
  5857. if e.h.Canonical {
  5858. v2 := make([]uint64, len(v))
  5859. var i int
  5860. for k, _ := range v {
  5861. v2[i] = uint64(k)
  5862. i++
  5863. }
  5864. sort.Sort(uintSlice(v2))
  5865. for _, k2 := range v2 {
  5866. ee.EncodeUint(uint64(uint8(k2)))
  5867. ee.EncodeFloat64(v[uint8(k2)])
  5868. }
  5869. } else {
  5870. for k2, v2 := range v {
  5871. ee.EncodeUint(uint64(k2))
  5872. ee.EncodeFloat64(v2)
  5873. }
  5874. }
  5875. ee.EncodeEnd()
  5876. }
  5877. func (f *encFnInfo) fastpathEncMapUint8BoolR(rv reflect.Value) {
  5878. fastpathTV.EncMapUint8BoolV(rv.Interface().(map[uint8]bool), fastpathCheckNilFalse, f.e)
  5879. }
  5880. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, checkNil bool, e *Encoder) {
  5881. ee := e.e
  5882. if checkNil && v == nil {
  5883. ee.EncodeNil()
  5884. return
  5885. }
  5886. ee.EncodeMapStart(len(v))
  5887. if e.h.Canonical {
  5888. v2 := make([]uint64, len(v))
  5889. var i int
  5890. for k, _ := range v {
  5891. v2[i] = uint64(k)
  5892. i++
  5893. }
  5894. sort.Sort(uintSlice(v2))
  5895. for _, k2 := range v2 {
  5896. ee.EncodeUint(uint64(uint8(k2)))
  5897. ee.EncodeBool(v[uint8(k2)])
  5898. }
  5899. } else {
  5900. for k2, v2 := range v {
  5901. ee.EncodeUint(uint64(k2))
  5902. ee.EncodeBool(v2)
  5903. }
  5904. }
  5905. ee.EncodeEnd()
  5906. }
  5907. func (f *encFnInfo) fastpathEncMapUint16IntfR(rv reflect.Value) {
  5908. fastpathTV.EncMapUint16IntfV(rv.Interface().(map[uint16]interface{}), fastpathCheckNilFalse, f.e)
  5909. }
  5910. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, checkNil bool, e *Encoder) {
  5911. ee := e.e
  5912. if checkNil && v == nil {
  5913. ee.EncodeNil()
  5914. return
  5915. }
  5916. ee.EncodeMapStart(len(v))
  5917. if e.h.Canonical {
  5918. v2 := make([]uint64, len(v))
  5919. var i int
  5920. for k, _ := range v {
  5921. v2[i] = uint64(k)
  5922. i++
  5923. }
  5924. sort.Sort(uintSlice(v2))
  5925. for _, k2 := range v2 {
  5926. ee.EncodeUint(uint64(uint16(k2)))
  5927. e.encode(v[uint16(k2)])
  5928. }
  5929. } else {
  5930. for k2, v2 := range v {
  5931. ee.EncodeUint(uint64(k2))
  5932. e.encode(v2)
  5933. }
  5934. }
  5935. ee.EncodeEnd()
  5936. }
  5937. func (f *encFnInfo) fastpathEncMapUint16StringR(rv reflect.Value) {
  5938. fastpathTV.EncMapUint16StringV(rv.Interface().(map[uint16]string), fastpathCheckNilFalse, f.e)
  5939. }
  5940. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, checkNil bool, e *Encoder) {
  5941. ee := e.e
  5942. if checkNil && v == nil {
  5943. ee.EncodeNil()
  5944. return
  5945. }
  5946. ee.EncodeMapStart(len(v))
  5947. if e.h.Canonical {
  5948. v2 := make([]uint64, len(v))
  5949. var i int
  5950. for k, _ := range v {
  5951. v2[i] = uint64(k)
  5952. i++
  5953. }
  5954. sort.Sort(uintSlice(v2))
  5955. for _, k2 := range v2 {
  5956. ee.EncodeUint(uint64(uint16(k2)))
  5957. ee.EncodeString(c_UTF8, v[uint16(k2)])
  5958. }
  5959. } else {
  5960. for k2, v2 := range v {
  5961. ee.EncodeUint(uint64(k2))
  5962. ee.EncodeString(c_UTF8, v2)
  5963. }
  5964. }
  5965. ee.EncodeEnd()
  5966. }
  5967. func (f *encFnInfo) fastpathEncMapUint16UintR(rv reflect.Value) {
  5968. fastpathTV.EncMapUint16UintV(rv.Interface().(map[uint16]uint), fastpathCheckNilFalse, f.e)
  5969. }
  5970. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, checkNil bool, e *Encoder) {
  5971. ee := e.e
  5972. if checkNil && v == nil {
  5973. ee.EncodeNil()
  5974. return
  5975. }
  5976. ee.EncodeMapStart(len(v))
  5977. if e.h.Canonical {
  5978. v2 := make([]uint64, len(v))
  5979. var i int
  5980. for k, _ := range v {
  5981. v2[i] = uint64(k)
  5982. i++
  5983. }
  5984. sort.Sort(uintSlice(v2))
  5985. for _, k2 := range v2 {
  5986. ee.EncodeUint(uint64(uint16(k2)))
  5987. ee.EncodeUint(uint64(v[uint16(k2)]))
  5988. }
  5989. } else {
  5990. for k2, v2 := range v {
  5991. ee.EncodeUint(uint64(k2))
  5992. ee.EncodeUint(uint64(v2))
  5993. }
  5994. }
  5995. ee.EncodeEnd()
  5996. }
  5997. func (f *encFnInfo) fastpathEncMapUint16Uint8R(rv reflect.Value) {
  5998. fastpathTV.EncMapUint16Uint8V(rv.Interface().(map[uint16]uint8), fastpathCheckNilFalse, f.e)
  5999. }
  6000. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, checkNil bool, e *Encoder) {
  6001. ee := e.e
  6002. if checkNil && v == nil {
  6003. ee.EncodeNil()
  6004. return
  6005. }
  6006. ee.EncodeMapStart(len(v))
  6007. if e.h.Canonical {
  6008. v2 := make([]uint64, len(v))
  6009. var i int
  6010. for k, _ := range v {
  6011. v2[i] = uint64(k)
  6012. i++
  6013. }
  6014. sort.Sort(uintSlice(v2))
  6015. for _, k2 := range v2 {
  6016. ee.EncodeUint(uint64(uint16(k2)))
  6017. ee.EncodeUint(uint64(v[uint16(k2)]))
  6018. }
  6019. } else {
  6020. for k2, v2 := range v {
  6021. ee.EncodeUint(uint64(k2))
  6022. ee.EncodeUint(uint64(v2))
  6023. }
  6024. }
  6025. ee.EncodeEnd()
  6026. }
  6027. func (f *encFnInfo) fastpathEncMapUint16Uint16R(rv reflect.Value) {
  6028. fastpathTV.EncMapUint16Uint16V(rv.Interface().(map[uint16]uint16), fastpathCheckNilFalse, f.e)
  6029. }
  6030. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, checkNil bool, e *Encoder) {
  6031. ee := e.e
  6032. if checkNil && v == nil {
  6033. ee.EncodeNil()
  6034. return
  6035. }
  6036. ee.EncodeMapStart(len(v))
  6037. if e.h.Canonical {
  6038. v2 := make([]uint64, len(v))
  6039. var i int
  6040. for k, _ := range v {
  6041. v2[i] = uint64(k)
  6042. i++
  6043. }
  6044. sort.Sort(uintSlice(v2))
  6045. for _, k2 := range v2 {
  6046. ee.EncodeUint(uint64(uint16(k2)))
  6047. ee.EncodeUint(uint64(v[uint16(k2)]))
  6048. }
  6049. } else {
  6050. for k2, v2 := range v {
  6051. ee.EncodeUint(uint64(k2))
  6052. ee.EncodeUint(uint64(v2))
  6053. }
  6054. }
  6055. ee.EncodeEnd()
  6056. }
  6057. func (f *encFnInfo) fastpathEncMapUint16Uint32R(rv reflect.Value) {
  6058. fastpathTV.EncMapUint16Uint32V(rv.Interface().(map[uint16]uint32), fastpathCheckNilFalse, f.e)
  6059. }
  6060. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, checkNil bool, e *Encoder) {
  6061. ee := e.e
  6062. if checkNil && v == nil {
  6063. ee.EncodeNil()
  6064. return
  6065. }
  6066. ee.EncodeMapStart(len(v))
  6067. if e.h.Canonical {
  6068. v2 := make([]uint64, len(v))
  6069. var i int
  6070. for k, _ := range v {
  6071. v2[i] = uint64(k)
  6072. i++
  6073. }
  6074. sort.Sort(uintSlice(v2))
  6075. for _, k2 := range v2 {
  6076. ee.EncodeUint(uint64(uint16(k2)))
  6077. ee.EncodeUint(uint64(v[uint16(k2)]))
  6078. }
  6079. } else {
  6080. for k2, v2 := range v {
  6081. ee.EncodeUint(uint64(k2))
  6082. ee.EncodeUint(uint64(v2))
  6083. }
  6084. }
  6085. ee.EncodeEnd()
  6086. }
  6087. func (f *encFnInfo) fastpathEncMapUint16Uint64R(rv reflect.Value) {
  6088. fastpathTV.EncMapUint16Uint64V(rv.Interface().(map[uint16]uint64), fastpathCheckNilFalse, f.e)
  6089. }
  6090. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, checkNil bool, e *Encoder) {
  6091. ee := e.e
  6092. if checkNil && v == nil {
  6093. ee.EncodeNil()
  6094. return
  6095. }
  6096. ee.EncodeMapStart(len(v))
  6097. if e.h.Canonical {
  6098. v2 := make([]uint64, len(v))
  6099. var i int
  6100. for k, _ := range v {
  6101. v2[i] = uint64(k)
  6102. i++
  6103. }
  6104. sort.Sort(uintSlice(v2))
  6105. for _, k2 := range v2 {
  6106. ee.EncodeUint(uint64(uint16(k2)))
  6107. ee.EncodeUint(uint64(v[uint16(k2)]))
  6108. }
  6109. } else {
  6110. for k2, v2 := range v {
  6111. ee.EncodeUint(uint64(k2))
  6112. ee.EncodeUint(uint64(v2))
  6113. }
  6114. }
  6115. ee.EncodeEnd()
  6116. }
  6117. func (f *encFnInfo) fastpathEncMapUint16UintptrR(rv reflect.Value) {
  6118. fastpathTV.EncMapUint16UintptrV(rv.Interface().(map[uint16]uintptr), fastpathCheckNilFalse, f.e)
  6119. }
  6120. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, checkNil bool, e *Encoder) {
  6121. ee := e.e
  6122. if checkNil && v == nil {
  6123. ee.EncodeNil()
  6124. return
  6125. }
  6126. ee.EncodeMapStart(len(v))
  6127. if e.h.Canonical {
  6128. v2 := make([]uint64, len(v))
  6129. var i int
  6130. for k, _ := range v {
  6131. v2[i] = uint64(k)
  6132. i++
  6133. }
  6134. sort.Sort(uintSlice(v2))
  6135. for _, k2 := range v2 {
  6136. ee.EncodeUint(uint64(uint16(k2)))
  6137. e.encode(v[uint16(k2)])
  6138. }
  6139. } else {
  6140. for k2, v2 := range v {
  6141. ee.EncodeUint(uint64(k2))
  6142. e.encode(v2)
  6143. }
  6144. }
  6145. ee.EncodeEnd()
  6146. }
  6147. func (f *encFnInfo) fastpathEncMapUint16IntR(rv reflect.Value) {
  6148. fastpathTV.EncMapUint16IntV(rv.Interface().(map[uint16]int), fastpathCheckNilFalse, f.e)
  6149. }
  6150. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, checkNil bool, e *Encoder) {
  6151. ee := e.e
  6152. if checkNil && v == nil {
  6153. ee.EncodeNil()
  6154. return
  6155. }
  6156. ee.EncodeMapStart(len(v))
  6157. if e.h.Canonical {
  6158. v2 := make([]uint64, len(v))
  6159. var i int
  6160. for k, _ := range v {
  6161. v2[i] = uint64(k)
  6162. i++
  6163. }
  6164. sort.Sort(uintSlice(v2))
  6165. for _, k2 := range v2 {
  6166. ee.EncodeUint(uint64(uint16(k2)))
  6167. ee.EncodeInt(int64(v[uint16(k2)]))
  6168. }
  6169. } else {
  6170. for k2, v2 := range v {
  6171. ee.EncodeUint(uint64(k2))
  6172. ee.EncodeInt(int64(v2))
  6173. }
  6174. }
  6175. ee.EncodeEnd()
  6176. }
  6177. func (f *encFnInfo) fastpathEncMapUint16Int8R(rv reflect.Value) {
  6178. fastpathTV.EncMapUint16Int8V(rv.Interface().(map[uint16]int8), fastpathCheckNilFalse, f.e)
  6179. }
  6180. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, checkNil bool, e *Encoder) {
  6181. ee := e.e
  6182. if checkNil && v == nil {
  6183. ee.EncodeNil()
  6184. return
  6185. }
  6186. ee.EncodeMapStart(len(v))
  6187. if e.h.Canonical {
  6188. v2 := make([]uint64, len(v))
  6189. var i int
  6190. for k, _ := range v {
  6191. v2[i] = uint64(k)
  6192. i++
  6193. }
  6194. sort.Sort(uintSlice(v2))
  6195. for _, k2 := range v2 {
  6196. ee.EncodeUint(uint64(uint16(k2)))
  6197. ee.EncodeInt(int64(v[uint16(k2)]))
  6198. }
  6199. } else {
  6200. for k2, v2 := range v {
  6201. ee.EncodeUint(uint64(k2))
  6202. ee.EncodeInt(int64(v2))
  6203. }
  6204. }
  6205. ee.EncodeEnd()
  6206. }
  6207. func (f *encFnInfo) fastpathEncMapUint16Int16R(rv reflect.Value) {
  6208. fastpathTV.EncMapUint16Int16V(rv.Interface().(map[uint16]int16), fastpathCheckNilFalse, f.e)
  6209. }
  6210. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, checkNil bool, e *Encoder) {
  6211. ee := e.e
  6212. if checkNil && v == nil {
  6213. ee.EncodeNil()
  6214. return
  6215. }
  6216. ee.EncodeMapStart(len(v))
  6217. if e.h.Canonical {
  6218. v2 := make([]uint64, len(v))
  6219. var i int
  6220. for k, _ := range v {
  6221. v2[i] = uint64(k)
  6222. i++
  6223. }
  6224. sort.Sort(uintSlice(v2))
  6225. for _, k2 := range v2 {
  6226. ee.EncodeUint(uint64(uint16(k2)))
  6227. ee.EncodeInt(int64(v[uint16(k2)]))
  6228. }
  6229. } else {
  6230. for k2, v2 := range v {
  6231. ee.EncodeUint(uint64(k2))
  6232. ee.EncodeInt(int64(v2))
  6233. }
  6234. }
  6235. ee.EncodeEnd()
  6236. }
  6237. func (f *encFnInfo) fastpathEncMapUint16Int32R(rv reflect.Value) {
  6238. fastpathTV.EncMapUint16Int32V(rv.Interface().(map[uint16]int32), fastpathCheckNilFalse, f.e)
  6239. }
  6240. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, 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.h.Canonical {
  6248. v2 := make([]uint64, len(v))
  6249. var i int
  6250. for k, _ := range v {
  6251. v2[i] = uint64(k)
  6252. i++
  6253. }
  6254. sort.Sort(uintSlice(v2))
  6255. for _, k2 := range v2 {
  6256. ee.EncodeUint(uint64(uint16(k2)))
  6257. ee.EncodeInt(int64(v[uint16(k2)]))
  6258. }
  6259. } else {
  6260. for k2, v2 := range v {
  6261. ee.EncodeUint(uint64(k2))
  6262. ee.EncodeInt(int64(v2))
  6263. }
  6264. }
  6265. ee.EncodeEnd()
  6266. }
  6267. func (f *encFnInfo) fastpathEncMapUint16Int64R(rv reflect.Value) {
  6268. fastpathTV.EncMapUint16Int64V(rv.Interface().(map[uint16]int64), fastpathCheckNilFalse, f.e)
  6269. }
  6270. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, checkNil bool, e *Encoder) {
  6271. ee := e.e
  6272. if checkNil && v == nil {
  6273. ee.EncodeNil()
  6274. return
  6275. }
  6276. ee.EncodeMapStart(len(v))
  6277. if e.h.Canonical {
  6278. v2 := make([]uint64, len(v))
  6279. var i int
  6280. for k, _ := range v {
  6281. v2[i] = uint64(k)
  6282. i++
  6283. }
  6284. sort.Sort(uintSlice(v2))
  6285. for _, k2 := range v2 {
  6286. ee.EncodeUint(uint64(uint16(k2)))
  6287. ee.EncodeInt(int64(v[uint16(k2)]))
  6288. }
  6289. } else {
  6290. for k2, v2 := range v {
  6291. ee.EncodeUint(uint64(k2))
  6292. ee.EncodeInt(int64(v2))
  6293. }
  6294. }
  6295. ee.EncodeEnd()
  6296. }
  6297. func (f *encFnInfo) fastpathEncMapUint16Float32R(rv reflect.Value) {
  6298. fastpathTV.EncMapUint16Float32V(rv.Interface().(map[uint16]float32), fastpathCheckNilFalse, f.e)
  6299. }
  6300. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, checkNil bool, e *Encoder) {
  6301. ee := e.e
  6302. if checkNil && v == nil {
  6303. ee.EncodeNil()
  6304. return
  6305. }
  6306. ee.EncodeMapStart(len(v))
  6307. if e.h.Canonical {
  6308. v2 := make([]uint64, len(v))
  6309. var i int
  6310. for k, _ := range v {
  6311. v2[i] = uint64(k)
  6312. i++
  6313. }
  6314. sort.Sort(uintSlice(v2))
  6315. for _, k2 := range v2 {
  6316. ee.EncodeUint(uint64(uint16(k2)))
  6317. ee.EncodeFloat32(v[uint16(k2)])
  6318. }
  6319. } else {
  6320. for k2, v2 := range v {
  6321. ee.EncodeUint(uint64(k2))
  6322. ee.EncodeFloat32(v2)
  6323. }
  6324. }
  6325. ee.EncodeEnd()
  6326. }
  6327. func (f *encFnInfo) fastpathEncMapUint16Float64R(rv reflect.Value) {
  6328. fastpathTV.EncMapUint16Float64V(rv.Interface().(map[uint16]float64), fastpathCheckNilFalse, f.e)
  6329. }
  6330. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, checkNil bool, e *Encoder) {
  6331. ee := e.e
  6332. if checkNil && v == nil {
  6333. ee.EncodeNil()
  6334. return
  6335. }
  6336. ee.EncodeMapStart(len(v))
  6337. if e.h.Canonical {
  6338. v2 := make([]uint64, len(v))
  6339. var i int
  6340. for k, _ := range v {
  6341. v2[i] = uint64(k)
  6342. i++
  6343. }
  6344. sort.Sort(uintSlice(v2))
  6345. for _, k2 := range v2 {
  6346. ee.EncodeUint(uint64(uint16(k2)))
  6347. ee.EncodeFloat64(v[uint16(k2)])
  6348. }
  6349. } else {
  6350. for k2, v2 := range v {
  6351. ee.EncodeUint(uint64(k2))
  6352. ee.EncodeFloat64(v2)
  6353. }
  6354. }
  6355. ee.EncodeEnd()
  6356. }
  6357. func (f *encFnInfo) fastpathEncMapUint16BoolR(rv reflect.Value) {
  6358. fastpathTV.EncMapUint16BoolV(rv.Interface().(map[uint16]bool), fastpathCheckNilFalse, f.e)
  6359. }
  6360. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, checkNil bool, e *Encoder) {
  6361. ee := e.e
  6362. if checkNil && v == nil {
  6363. ee.EncodeNil()
  6364. return
  6365. }
  6366. ee.EncodeMapStart(len(v))
  6367. if e.h.Canonical {
  6368. v2 := make([]uint64, len(v))
  6369. var i int
  6370. for k, _ := range v {
  6371. v2[i] = uint64(k)
  6372. i++
  6373. }
  6374. sort.Sort(uintSlice(v2))
  6375. for _, k2 := range v2 {
  6376. ee.EncodeUint(uint64(uint16(k2)))
  6377. ee.EncodeBool(v[uint16(k2)])
  6378. }
  6379. } else {
  6380. for k2, v2 := range v {
  6381. ee.EncodeUint(uint64(k2))
  6382. ee.EncodeBool(v2)
  6383. }
  6384. }
  6385. ee.EncodeEnd()
  6386. }
  6387. func (f *encFnInfo) fastpathEncMapUint32IntfR(rv reflect.Value) {
  6388. fastpathTV.EncMapUint32IntfV(rv.Interface().(map[uint32]interface{}), fastpathCheckNilFalse, f.e)
  6389. }
  6390. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, checkNil bool, e *Encoder) {
  6391. ee := e.e
  6392. if checkNil && v == nil {
  6393. ee.EncodeNil()
  6394. return
  6395. }
  6396. ee.EncodeMapStart(len(v))
  6397. if e.h.Canonical {
  6398. v2 := make([]uint64, len(v))
  6399. var i int
  6400. for k, _ := range v {
  6401. v2[i] = uint64(k)
  6402. i++
  6403. }
  6404. sort.Sort(uintSlice(v2))
  6405. for _, k2 := range v2 {
  6406. ee.EncodeUint(uint64(uint32(k2)))
  6407. e.encode(v[uint32(k2)])
  6408. }
  6409. } else {
  6410. for k2, v2 := range v {
  6411. ee.EncodeUint(uint64(k2))
  6412. e.encode(v2)
  6413. }
  6414. }
  6415. ee.EncodeEnd()
  6416. }
  6417. func (f *encFnInfo) fastpathEncMapUint32StringR(rv reflect.Value) {
  6418. fastpathTV.EncMapUint32StringV(rv.Interface().(map[uint32]string), fastpathCheckNilFalse, f.e)
  6419. }
  6420. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, checkNil bool, e *Encoder) {
  6421. ee := e.e
  6422. if checkNil && v == nil {
  6423. ee.EncodeNil()
  6424. return
  6425. }
  6426. ee.EncodeMapStart(len(v))
  6427. if e.h.Canonical {
  6428. v2 := make([]uint64, len(v))
  6429. var i int
  6430. for k, _ := range v {
  6431. v2[i] = uint64(k)
  6432. i++
  6433. }
  6434. sort.Sort(uintSlice(v2))
  6435. for _, k2 := range v2 {
  6436. ee.EncodeUint(uint64(uint32(k2)))
  6437. ee.EncodeString(c_UTF8, v[uint32(k2)])
  6438. }
  6439. } else {
  6440. for k2, v2 := range v {
  6441. ee.EncodeUint(uint64(k2))
  6442. ee.EncodeString(c_UTF8, v2)
  6443. }
  6444. }
  6445. ee.EncodeEnd()
  6446. }
  6447. func (f *encFnInfo) fastpathEncMapUint32UintR(rv reflect.Value) {
  6448. fastpathTV.EncMapUint32UintV(rv.Interface().(map[uint32]uint), fastpathCheckNilFalse, f.e)
  6449. }
  6450. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, checkNil bool, e *Encoder) {
  6451. ee := e.e
  6452. if checkNil && v == nil {
  6453. ee.EncodeNil()
  6454. return
  6455. }
  6456. ee.EncodeMapStart(len(v))
  6457. if e.h.Canonical {
  6458. v2 := make([]uint64, len(v))
  6459. var i int
  6460. for k, _ := range v {
  6461. v2[i] = uint64(k)
  6462. i++
  6463. }
  6464. sort.Sort(uintSlice(v2))
  6465. for _, k2 := range v2 {
  6466. ee.EncodeUint(uint64(uint32(k2)))
  6467. ee.EncodeUint(uint64(v[uint32(k2)]))
  6468. }
  6469. } else {
  6470. for k2, v2 := range v {
  6471. ee.EncodeUint(uint64(k2))
  6472. ee.EncodeUint(uint64(v2))
  6473. }
  6474. }
  6475. ee.EncodeEnd()
  6476. }
  6477. func (f *encFnInfo) fastpathEncMapUint32Uint8R(rv reflect.Value) {
  6478. fastpathTV.EncMapUint32Uint8V(rv.Interface().(map[uint32]uint8), fastpathCheckNilFalse, f.e)
  6479. }
  6480. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, checkNil bool, e *Encoder) {
  6481. ee := e.e
  6482. if checkNil && v == nil {
  6483. ee.EncodeNil()
  6484. return
  6485. }
  6486. ee.EncodeMapStart(len(v))
  6487. if e.h.Canonical {
  6488. v2 := make([]uint64, len(v))
  6489. var i int
  6490. for k, _ := range v {
  6491. v2[i] = uint64(k)
  6492. i++
  6493. }
  6494. sort.Sort(uintSlice(v2))
  6495. for _, k2 := range v2 {
  6496. ee.EncodeUint(uint64(uint32(k2)))
  6497. ee.EncodeUint(uint64(v[uint32(k2)]))
  6498. }
  6499. } else {
  6500. for k2, v2 := range v {
  6501. ee.EncodeUint(uint64(k2))
  6502. ee.EncodeUint(uint64(v2))
  6503. }
  6504. }
  6505. ee.EncodeEnd()
  6506. }
  6507. func (f *encFnInfo) fastpathEncMapUint32Uint16R(rv reflect.Value) {
  6508. fastpathTV.EncMapUint32Uint16V(rv.Interface().(map[uint32]uint16), fastpathCheckNilFalse, f.e)
  6509. }
  6510. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, checkNil bool, e *Encoder) {
  6511. ee := e.e
  6512. if checkNil && v == nil {
  6513. ee.EncodeNil()
  6514. return
  6515. }
  6516. ee.EncodeMapStart(len(v))
  6517. if e.h.Canonical {
  6518. v2 := make([]uint64, len(v))
  6519. var i int
  6520. for k, _ := range v {
  6521. v2[i] = uint64(k)
  6522. i++
  6523. }
  6524. sort.Sort(uintSlice(v2))
  6525. for _, k2 := range v2 {
  6526. ee.EncodeUint(uint64(uint32(k2)))
  6527. ee.EncodeUint(uint64(v[uint32(k2)]))
  6528. }
  6529. } else {
  6530. for k2, v2 := range v {
  6531. ee.EncodeUint(uint64(k2))
  6532. ee.EncodeUint(uint64(v2))
  6533. }
  6534. }
  6535. ee.EncodeEnd()
  6536. }
  6537. func (f *encFnInfo) fastpathEncMapUint32Uint32R(rv reflect.Value) {
  6538. fastpathTV.EncMapUint32Uint32V(rv.Interface().(map[uint32]uint32), fastpathCheckNilFalse, f.e)
  6539. }
  6540. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, checkNil bool, e *Encoder) {
  6541. ee := e.e
  6542. if checkNil && v == nil {
  6543. ee.EncodeNil()
  6544. return
  6545. }
  6546. ee.EncodeMapStart(len(v))
  6547. if e.h.Canonical {
  6548. v2 := make([]uint64, len(v))
  6549. var i int
  6550. for k, _ := range v {
  6551. v2[i] = uint64(k)
  6552. i++
  6553. }
  6554. sort.Sort(uintSlice(v2))
  6555. for _, k2 := range v2 {
  6556. ee.EncodeUint(uint64(uint32(k2)))
  6557. ee.EncodeUint(uint64(v[uint32(k2)]))
  6558. }
  6559. } else {
  6560. for k2, v2 := range v {
  6561. ee.EncodeUint(uint64(k2))
  6562. ee.EncodeUint(uint64(v2))
  6563. }
  6564. }
  6565. ee.EncodeEnd()
  6566. }
  6567. func (f *encFnInfo) fastpathEncMapUint32Uint64R(rv reflect.Value) {
  6568. fastpathTV.EncMapUint32Uint64V(rv.Interface().(map[uint32]uint64), fastpathCheckNilFalse, f.e)
  6569. }
  6570. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, checkNil bool, e *Encoder) {
  6571. ee := e.e
  6572. if checkNil && v == nil {
  6573. ee.EncodeNil()
  6574. return
  6575. }
  6576. ee.EncodeMapStart(len(v))
  6577. if e.h.Canonical {
  6578. v2 := make([]uint64, len(v))
  6579. var i int
  6580. for k, _ := range v {
  6581. v2[i] = uint64(k)
  6582. i++
  6583. }
  6584. sort.Sort(uintSlice(v2))
  6585. for _, k2 := range v2 {
  6586. ee.EncodeUint(uint64(uint32(k2)))
  6587. ee.EncodeUint(uint64(v[uint32(k2)]))
  6588. }
  6589. } else {
  6590. for k2, v2 := range v {
  6591. ee.EncodeUint(uint64(k2))
  6592. ee.EncodeUint(uint64(v2))
  6593. }
  6594. }
  6595. ee.EncodeEnd()
  6596. }
  6597. func (f *encFnInfo) fastpathEncMapUint32UintptrR(rv reflect.Value) {
  6598. fastpathTV.EncMapUint32UintptrV(rv.Interface().(map[uint32]uintptr), fastpathCheckNilFalse, f.e)
  6599. }
  6600. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, checkNil bool, e *Encoder) {
  6601. ee := e.e
  6602. if checkNil && v == nil {
  6603. ee.EncodeNil()
  6604. return
  6605. }
  6606. ee.EncodeMapStart(len(v))
  6607. if e.h.Canonical {
  6608. v2 := make([]uint64, len(v))
  6609. var i int
  6610. for k, _ := range v {
  6611. v2[i] = uint64(k)
  6612. i++
  6613. }
  6614. sort.Sort(uintSlice(v2))
  6615. for _, k2 := range v2 {
  6616. ee.EncodeUint(uint64(uint32(k2)))
  6617. e.encode(v[uint32(k2)])
  6618. }
  6619. } else {
  6620. for k2, v2 := range v {
  6621. ee.EncodeUint(uint64(k2))
  6622. e.encode(v2)
  6623. }
  6624. }
  6625. ee.EncodeEnd()
  6626. }
  6627. func (f *encFnInfo) fastpathEncMapUint32IntR(rv reflect.Value) {
  6628. fastpathTV.EncMapUint32IntV(rv.Interface().(map[uint32]int), fastpathCheckNilFalse, f.e)
  6629. }
  6630. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, checkNil bool, e *Encoder) {
  6631. ee := e.e
  6632. if checkNil && v == nil {
  6633. ee.EncodeNil()
  6634. return
  6635. }
  6636. ee.EncodeMapStart(len(v))
  6637. if e.h.Canonical {
  6638. v2 := make([]uint64, len(v))
  6639. var i int
  6640. for k, _ := range v {
  6641. v2[i] = uint64(k)
  6642. i++
  6643. }
  6644. sort.Sort(uintSlice(v2))
  6645. for _, k2 := range v2 {
  6646. ee.EncodeUint(uint64(uint32(k2)))
  6647. ee.EncodeInt(int64(v[uint32(k2)]))
  6648. }
  6649. } else {
  6650. for k2, v2 := range v {
  6651. ee.EncodeUint(uint64(k2))
  6652. ee.EncodeInt(int64(v2))
  6653. }
  6654. }
  6655. ee.EncodeEnd()
  6656. }
  6657. func (f *encFnInfo) fastpathEncMapUint32Int8R(rv reflect.Value) {
  6658. fastpathTV.EncMapUint32Int8V(rv.Interface().(map[uint32]int8), fastpathCheckNilFalse, f.e)
  6659. }
  6660. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, checkNil bool, e *Encoder) {
  6661. ee := e.e
  6662. if checkNil && v == nil {
  6663. ee.EncodeNil()
  6664. return
  6665. }
  6666. ee.EncodeMapStart(len(v))
  6667. if e.h.Canonical {
  6668. v2 := make([]uint64, len(v))
  6669. var i int
  6670. for k, _ := range v {
  6671. v2[i] = uint64(k)
  6672. i++
  6673. }
  6674. sort.Sort(uintSlice(v2))
  6675. for _, k2 := range v2 {
  6676. ee.EncodeUint(uint64(uint32(k2)))
  6677. ee.EncodeInt(int64(v[uint32(k2)]))
  6678. }
  6679. } else {
  6680. for k2, v2 := range v {
  6681. ee.EncodeUint(uint64(k2))
  6682. ee.EncodeInt(int64(v2))
  6683. }
  6684. }
  6685. ee.EncodeEnd()
  6686. }
  6687. func (f *encFnInfo) fastpathEncMapUint32Int16R(rv reflect.Value) {
  6688. fastpathTV.EncMapUint32Int16V(rv.Interface().(map[uint32]int16), fastpathCheckNilFalse, f.e)
  6689. }
  6690. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, checkNil bool, e *Encoder) {
  6691. ee := e.e
  6692. if checkNil && v == nil {
  6693. ee.EncodeNil()
  6694. return
  6695. }
  6696. ee.EncodeMapStart(len(v))
  6697. if e.h.Canonical {
  6698. v2 := make([]uint64, len(v))
  6699. var i int
  6700. for k, _ := range v {
  6701. v2[i] = uint64(k)
  6702. i++
  6703. }
  6704. sort.Sort(uintSlice(v2))
  6705. for _, k2 := range v2 {
  6706. ee.EncodeUint(uint64(uint32(k2)))
  6707. ee.EncodeInt(int64(v[uint32(k2)]))
  6708. }
  6709. } else {
  6710. for k2, v2 := range v {
  6711. ee.EncodeUint(uint64(k2))
  6712. ee.EncodeInt(int64(v2))
  6713. }
  6714. }
  6715. ee.EncodeEnd()
  6716. }
  6717. func (f *encFnInfo) fastpathEncMapUint32Int32R(rv reflect.Value) {
  6718. fastpathTV.EncMapUint32Int32V(rv.Interface().(map[uint32]int32), fastpathCheckNilFalse, f.e)
  6719. }
  6720. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, checkNil bool, e *Encoder) {
  6721. ee := e.e
  6722. if checkNil && v == nil {
  6723. ee.EncodeNil()
  6724. return
  6725. }
  6726. ee.EncodeMapStart(len(v))
  6727. if e.h.Canonical {
  6728. v2 := make([]uint64, len(v))
  6729. var i int
  6730. for k, _ := range v {
  6731. v2[i] = uint64(k)
  6732. i++
  6733. }
  6734. sort.Sort(uintSlice(v2))
  6735. for _, k2 := range v2 {
  6736. ee.EncodeUint(uint64(uint32(k2)))
  6737. ee.EncodeInt(int64(v[uint32(k2)]))
  6738. }
  6739. } else {
  6740. for k2, v2 := range v {
  6741. ee.EncodeUint(uint64(k2))
  6742. ee.EncodeInt(int64(v2))
  6743. }
  6744. }
  6745. ee.EncodeEnd()
  6746. }
  6747. func (f *encFnInfo) fastpathEncMapUint32Int64R(rv reflect.Value) {
  6748. fastpathTV.EncMapUint32Int64V(rv.Interface().(map[uint32]int64), fastpathCheckNilFalse, f.e)
  6749. }
  6750. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, checkNil bool, e *Encoder) {
  6751. ee := e.e
  6752. if checkNil && v == nil {
  6753. ee.EncodeNil()
  6754. return
  6755. }
  6756. ee.EncodeMapStart(len(v))
  6757. if e.h.Canonical {
  6758. v2 := make([]uint64, len(v))
  6759. var i int
  6760. for k, _ := range v {
  6761. v2[i] = uint64(k)
  6762. i++
  6763. }
  6764. sort.Sort(uintSlice(v2))
  6765. for _, k2 := range v2 {
  6766. ee.EncodeUint(uint64(uint32(k2)))
  6767. ee.EncodeInt(int64(v[uint32(k2)]))
  6768. }
  6769. } else {
  6770. for k2, v2 := range v {
  6771. ee.EncodeUint(uint64(k2))
  6772. ee.EncodeInt(int64(v2))
  6773. }
  6774. }
  6775. ee.EncodeEnd()
  6776. }
  6777. func (f *encFnInfo) fastpathEncMapUint32Float32R(rv reflect.Value) {
  6778. fastpathTV.EncMapUint32Float32V(rv.Interface().(map[uint32]float32), fastpathCheckNilFalse, f.e)
  6779. }
  6780. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, checkNil bool, e *Encoder) {
  6781. ee := e.e
  6782. if checkNil && v == nil {
  6783. ee.EncodeNil()
  6784. return
  6785. }
  6786. ee.EncodeMapStart(len(v))
  6787. if e.h.Canonical {
  6788. v2 := make([]uint64, len(v))
  6789. var i int
  6790. for k, _ := range v {
  6791. v2[i] = uint64(k)
  6792. i++
  6793. }
  6794. sort.Sort(uintSlice(v2))
  6795. for _, k2 := range v2 {
  6796. ee.EncodeUint(uint64(uint32(k2)))
  6797. ee.EncodeFloat32(v[uint32(k2)])
  6798. }
  6799. } else {
  6800. for k2, v2 := range v {
  6801. ee.EncodeUint(uint64(k2))
  6802. ee.EncodeFloat32(v2)
  6803. }
  6804. }
  6805. ee.EncodeEnd()
  6806. }
  6807. func (f *encFnInfo) fastpathEncMapUint32Float64R(rv reflect.Value) {
  6808. fastpathTV.EncMapUint32Float64V(rv.Interface().(map[uint32]float64), fastpathCheckNilFalse, f.e)
  6809. }
  6810. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, checkNil bool, e *Encoder) {
  6811. ee := e.e
  6812. if checkNil && v == nil {
  6813. ee.EncodeNil()
  6814. return
  6815. }
  6816. ee.EncodeMapStart(len(v))
  6817. if e.h.Canonical {
  6818. v2 := make([]uint64, len(v))
  6819. var i int
  6820. for k, _ := range v {
  6821. v2[i] = uint64(k)
  6822. i++
  6823. }
  6824. sort.Sort(uintSlice(v2))
  6825. for _, k2 := range v2 {
  6826. ee.EncodeUint(uint64(uint32(k2)))
  6827. ee.EncodeFloat64(v[uint32(k2)])
  6828. }
  6829. } else {
  6830. for k2, v2 := range v {
  6831. ee.EncodeUint(uint64(k2))
  6832. ee.EncodeFloat64(v2)
  6833. }
  6834. }
  6835. ee.EncodeEnd()
  6836. }
  6837. func (f *encFnInfo) fastpathEncMapUint32BoolR(rv reflect.Value) {
  6838. fastpathTV.EncMapUint32BoolV(rv.Interface().(map[uint32]bool), fastpathCheckNilFalse, f.e)
  6839. }
  6840. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, checkNil bool, e *Encoder) {
  6841. ee := e.e
  6842. if checkNil && v == nil {
  6843. ee.EncodeNil()
  6844. return
  6845. }
  6846. ee.EncodeMapStart(len(v))
  6847. if e.h.Canonical {
  6848. v2 := make([]uint64, len(v))
  6849. var i int
  6850. for k, _ := range v {
  6851. v2[i] = uint64(k)
  6852. i++
  6853. }
  6854. sort.Sort(uintSlice(v2))
  6855. for _, k2 := range v2 {
  6856. ee.EncodeUint(uint64(uint32(k2)))
  6857. ee.EncodeBool(v[uint32(k2)])
  6858. }
  6859. } else {
  6860. for k2, v2 := range v {
  6861. ee.EncodeUint(uint64(k2))
  6862. ee.EncodeBool(v2)
  6863. }
  6864. }
  6865. ee.EncodeEnd()
  6866. }
  6867. func (f *encFnInfo) fastpathEncMapUint64IntfR(rv reflect.Value) {
  6868. fastpathTV.EncMapUint64IntfV(rv.Interface().(map[uint64]interface{}), fastpathCheckNilFalse, f.e)
  6869. }
  6870. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, checkNil bool, e *Encoder) {
  6871. ee := e.e
  6872. if checkNil && v == nil {
  6873. ee.EncodeNil()
  6874. return
  6875. }
  6876. ee.EncodeMapStart(len(v))
  6877. if e.h.Canonical {
  6878. v2 := make([]uint64, len(v))
  6879. var i int
  6880. for k, _ := range v {
  6881. v2[i] = uint64(k)
  6882. i++
  6883. }
  6884. sort.Sort(uintSlice(v2))
  6885. for _, k2 := range v2 {
  6886. ee.EncodeUint(uint64(uint64(k2)))
  6887. e.encode(v[uint64(k2)])
  6888. }
  6889. } else {
  6890. for k2, v2 := range v {
  6891. ee.EncodeUint(uint64(k2))
  6892. e.encode(v2)
  6893. }
  6894. }
  6895. ee.EncodeEnd()
  6896. }
  6897. func (f *encFnInfo) fastpathEncMapUint64StringR(rv reflect.Value) {
  6898. fastpathTV.EncMapUint64StringV(rv.Interface().(map[uint64]string), fastpathCheckNilFalse, f.e)
  6899. }
  6900. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, checkNil bool, e *Encoder) {
  6901. ee := e.e
  6902. if checkNil && v == nil {
  6903. ee.EncodeNil()
  6904. return
  6905. }
  6906. ee.EncodeMapStart(len(v))
  6907. if e.h.Canonical {
  6908. v2 := make([]uint64, len(v))
  6909. var i int
  6910. for k, _ := range v {
  6911. v2[i] = uint64(k)
  6912. i++
  6913. }
  6914. sort.Sort(uintSlice(v2))
  6915. for _, k2 := range v2 {
  6916. ee.EncodeUint(uint64(uint64(k2)))
  6917. ee.EncodeString(c_UTF8, v[uint64(k2)])
  6918. }
  6919. } else {
  6920. for k2, v2 := range v {
  6921. ee.EncodeUint(uint64(k2))
  6922. ee.EncodeString(c_UTF8, v2)
  6923. }
  6924. }
  6925. ee.EncodeEnd()
  6926. }
  6927. func (f *encFnInfo) fastpathEncMapUint64UintR(rv reflect.Value) {
  6928. fastpathTV.EncMapUint64UintV(rv.Interface().(map[uint64]uint), fastpathCheckNilFalse, f.e)
  6929. }
  6930. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, checkNil bool, e *Encoder) {
  6931. ee := e.e
  6932. if checkNil && v == nil {
  6933. ee.EncodeNil()
  6934. return
  6935. }
  6936. ee.EncodeMapStart(len(v))
  6937. if e.h.Canonical {
  6938. v2 := make([]uint64, len(v))
  6939. var i int
  6940. for k, _ := range v {
  6941. v2[i] = uint64(k)
  6942. i++
  6943. }
  6944. sort.Sort(uintSlice(v2))
  6945. for _, k2 := range v2 {
  6946. ee.EncodeUint(uint64(uint64(k2)))
  6947. ee.EncodeUint(uint64(v[uint64(k2)]))
  6948. }
  6949. } else {
  6950. for k2, v2 := range v {
  6951. ee.EncodeUint(uint64(k2))
  6952. ee.EncodeUint(uint64(v2))
  6953. }
  6954. }
  6955. ee.EncodeEnd()
  6956. }
  6957. func (f *encFnInfo) fastpathEncMapUint64Uint8R(rv reflect.Value) {
  6958. fastpathTV.EncMapUint64Uint8V(rv.Interface().(map[uint64]uint8), fastpathCheckNilFalse, f.e)
  6959. }
  6960. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, checkNil bool, e *Encoder) {
  6961. ee := e.e
  6962. if checkNil && v == nil {
  6963. ee.EncodeNil()
  6964. return
  6965. }
  6966. ee.EncodeMapStart(len(v))
  6967. if e.h.Canonical {
  6968. v2 := make([]uint64, len(v))
  6969. var i int
  6970. for k, _ := range v {
  6971. v2[i] = uint64(k)
  6972. i++
  6973. }
  6974. sort.Sort(uintSlice(v2))
  6975. for _, k2 := range v2 {
  6976. ee.EncodeUint(uint64(uint64(k2)))
  6977. ee.EncodeUint(uint64(v[uint64(k2)]))
  6978. }
  6979. } else {
  6980. for k2, v2 := range v {
  6981. ee.EncodeUint(uint64(k2))
  6982. ee.EncodeUint(uint64(v2))
  6983. }
  6984. }
  6985. ee.EncodeEnd()
  6986. }
  6987. func (f *encFnInfo) fastpathEncMapUint64Uint16R(rv reflect.Value) {
  6988. fastpathTV.EncMapUint64Uint16V(rv.Interface().(map[uint64]uint16), fastpathCheckNilFalse, f.e)
  6989. }
  6990. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, checkNil bool, e *Encoder) {
  6991. ee := e.e
  6992. if checkNil && v == nil {
  6993. ee.EncodeNil()
  6994. return
  6995. }
  6996. ee.EncodeMapStart(len(v))
  6997. if e.h.Canonical {
  6998. v2 := make([]uint64, len(v))
  6999. var i int
  7000. for k, _ := range v {
  7001. v2[i] = uint64(k)
  7002. i++
  7003. }
  7004. sort.Sort(uintSlice(v2))
  7005. for _, k2 := range v2 {
  7006. ee.EncodeUint(uint64(uint64(k2)))
  7007. ee.EncodeUint(uint64(v[uint64(k2)]))
  7008. }
  7009. } else {
  7010. for k2, v2 := range v {
  7011. ee.EncodeUint(uint64(k2))
  7012. ee.EncodeUint(uint64(v2))
  7013. }
  7014. }
  7015. ee.EncodeEnd()
  7016. }
  7017. func (f *encFnInfo) fastpathEncMapUint64Uint32R(rv reflect.Value) {
  7018. fastpathTV.EncMapUint64Uint32V(rv.Interface().(map[uint64]uint32), fastpathCheckNilFalse, f.e)
  7019. }
  7020. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, checkNil bool, e *Encoder) {
  7021. ee := e.e
  7022. if checkNil && v == nil {
  7023. ee.EncodeNil()
  7024. return
  7025. }
  7026. ee.EncodeMapStart(len(v))
  7027. if e.h.Canonical {
  7028. v2 := make([]uint64, len(v))
  7029. var i int
  7030. for k, _ := range v {
  7031. v2[i] = uint64(k)
  7032. i++
  7033. }
  7034. sort.Sort(uintSlice(v2))
  7035. for _, k2 := range v2 {
  7036. ee.EncodeUint(uint64(uint64(k2)))
  7037. ee.EncodeUint(uint64(v[uint64(k2)]))
  7038. }
  7039. } else {
  7040. for k2, v2 := range v {
  7041. ee.EncodeUint(uint64(k2))
  7042. ee.EncodeUint(uint64(v2))
  7043. }
  7044. }
  7045. ee.EncodeEnd()
  7046. }
  7047. func (f *encFnInfo) fastpathEncMapUint64Uint64R(rv reflect.Value) {
  7048. fastpathTV.EncMapUint64Uint64V(rv.Interface().(map[uint64]uint64), fastpathCheckNilFalse, f.e)
  7049. }
  7050. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, checkNil bool, e *Encoder) {
  7051. ee := e.e
  7052. if checkNil && v == nil {
  7053. ee.EncodeNil()
  7054. return
  7055. }
  7056. ee.EncodeMapStart(len(v))
  7057. if e.h.Canonical {
  7058. v2 := make([]uint64, len(v))
  7059. var i int
  7060. for k, _ := range v {
  7061. v2[i] = uint64(k)
  7062. i++
  7063. }
  7064. sort.Sort(uintSlice(v2))
  7065. for _, k2 := range v2 {
  7066. ee.EncodeUint(uint64(uint64(k2)))
  7067. ee.EncodeUint(uint64(v[uint64(k2)]))
  7068. }
  7069. } else {
  7070. for k2, v2 := range v {
  7071. ee.EncodeUint(uint64(k2))
  7072. ee.EncodeUint(uint64(v2))
  7073. }
  7074. }
  7075. ee.EncodeEnd()
  7076. }
  7077. func (f *encFnInfo) fastpathEncMapUint64UintptrR(rv reflect.Value) {
  7078. fastpathTV.EncMapUint64UintptrV(rv.Interface().(map[uint64]uintptr), fastpathCheckNilFalse, f.e)
  7079. }
  7080. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, checkNil bool, e *Encoder) {
  7081. ee := e.e
  7082. if checkNil && v == nil {
  7083. ee.EncodeNil()
  7084. return
  7085. }
  7086. ee.EncodeMapStart(len(v))
  7087. if e.h.Canonical {
  7088. v2 := make([]uint64, len(v))
  7089. var i int
  7090. for k, _ := range v {
  7091. v2[i] = uint64(k)
  7092. i++
  7093. }
  7094. sort.Sort(uintSlice(v2))
  7095. for _, k2 := range v2 {
  7096. ee.EncodeUint(uint64(uint64(k2)))
  7097. e.encode(v[uint64(k2)])
  7098. }
  7099. } else {
  7100. for k2, v2 := range v {
  7101. ee.EncodeUint(uint64(k2))
  7102. e.encode(v2)
  7103. }
  7104. }
  7105. ee.EncodeEnd()
  7106. }
  7107. func (f *encFnInfo) fastpathEncMapUint64IntR(rv reflect.Value) {
  7108. fastpathTV.EncMapUint64IntV(rv.Interface().(map[uint64]int), fastpathCheckNilFalse, f.e)
  7109. }
  7110. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, 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.h.Canonical {
  7118. v2 := make([]uint64, len(v))
  7119. var i int
  7120. for k, _ := range v {
  7121. v2[i] = uint64(k)
  7122. i++
  7123. }
  7124. sort.Sort(uintSlice(v2))
  7125. for _, k2 := range v2 {
  7126. ee.EncodeUint(uint64(uint64(k2)))
  7127. ee.EncodeInt(int64(v[uint64(k2)]))
  7128. }
  7129. } else {
  7130. for k2, v2 := range v {
  7131. ee.EncodeUint(uint64(k2))
  7132. ee.EncodeInt(int64(v2))
  7133. }
  7134. }
  7135. ee.EncodeEnd()
  7136. }
  7137. func (f *encFnInfo) fastpathEncMapUint64Int8R(rv reflect.Value) {
  7138. fastpathTV.EncMapUint64Int8V(rv.Interface().(map[uint64]int8), fastpathCheckNilFalse, f.e)
  7139. }
  7140. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, checkNil bool, e *Encoder) {
  7141. ee := e.e
  7142. if checkNil && v == nil {
  7143. ee.EncodeNil()
  7144. return
  7145. }
  7146. ee.EncodeMapStart(len(v))
  7147. if e.h.Canonical {
  7148. v2 := make([]uint64, len(v))
  7149. var i int
  7150. for k, _ := range v {
  7151. v2[i] = uint64(k)
  7152. i++
  7153. }
  7154. sort.Sort(uintSlice(v2))
  7155. for _, k2 := range v2 {
  7156. ee.EncodeUint(uint64(uint64(k2)))
  7157. ee.EncodeInt(int64(v[uint64(k2)]))
  7158. }
  7159. } else {
  7160. for k2, v2 := range v {
  7161. ee.EncodeUint(uint64(k2))
  7162. ee.EncodeInt(int64(v2))
  7163. }
  7164. }
  7165. ee.EncodeEnd()
  7166. }
  7167. func (f *encFnInfo) fastpathEncMapUint64Int16R(rv reflect.Value) {
  7168. fastpathTV.EncMapUint64Int16V(rv.Interface().(map[uint64]int16), fastpathCheckNilFalse, f.e)
  7169. }
  7170. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, checkNil bool, e *Encoder) {
  7171. ee := e.e
  7172. if checkNil && v == nil {
  7173. ee.EncodeNil()
  7174. return
  7175. }
  7176. ee.EncodeMapStart(len(v))
  7177. if e.h.Canonical {
  7178. v2 := make([]uint64, len(v))
  7179. var i int
  7180. for k, _ := range v {
  7181. v2[i] = uint64(k)
  7182. i++
  7183. }
  7184. sort.Sort(uintSlice(v2))
  7185. for _, k2 := range v2 {
  7186. ee.EncodeUint(uint64(uint64(k2)))
  7187. ee.EncodeInt(int64(v[uint64(k2)]))
  7188. }
  7189. } else {
  7190. for k2, v2 := range v {
  7191. ee.EncodeUint(uint64(k2))
  7192. ee.EncodeInt(int64(v2))
  7193. }
  7194. }
  7195. ee.EncodeEnd()
  7196. }
  7197. func (f *encFnInfo) fastpathEncMapUint64Int32R(rv reflect.Value) {
  7198. fastpathTV.EncMapUint64Int32V(rv.Interface().(map[uint64]int32), fastpathCheckNilFalse, f.e)
  7199. }
  7200. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, checkNil bool, e *Encoder) {
  7201. ee := e.e
  7202. if checkNil && v == nil {
  7203. ee.EncodeNil()
  7204. return
  7205. }
  7206. ee.EncodeMapStart(len(v))
  7207. if e.h.Canonical {
  7208. v2 := make([]uint64, len(v))
  7209. var i int
  7210. for k, _ := range v {
  7211. v2[i] = uint64(k)
  7212. i++
  7213. }
  7214. sort.Sort(uintSlice(v2))
  7215. for _, k2 := range v2 {
  7216. ee.EncodeUint(uint64(uint64(k2)))
  7217. ee.EncodeInt(int64(v[uint64(k2)]))
  7218. }
  7219. } else {
  7220. for k2, v2 := range v {
  7221. ee.EncodeUint(uint64(k2))
  7222. ee.EncodeInt(int64(v2))
  7223. }
  7224. }
  7225. ee.EncodeEnd()
  7226. }
  7227. func (f *encFnInfo) fastpathEncMapUint64Int64R(rv reflect.Value) {
  7228. fastpathTV.EncMapUint64Int64V(rv.Interface().(map[uint64]int64), fastpathCheckNilFalse, f.e)
  7229. }
  7230. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, checkNil bool, e *Encoder) {
  7231. ee := e.e
  7232. if checkNil && v == nil {
  7233. ee.EncodeNil()
  7234. return
  7235. }
  7236. ee.EncodeMapStart(len(v))
  7237. if e.h.Canonical {
  7238. v2 := make([]uint64, len(v))
  7239. var i int
  7240. for k, _ := range v {
  7241. v2[i] = uint64(k)
  7242. i++
  7243. }
  7244. sort.Sort(uintSlice(v2))
  7245. for _, k2 := range v2 {
  7246. ee.EncodeUint(uint64(uint64(k2)))
  7247. ee.EncodeInt(int64(v[uint64(k2)]))
  7248. }
  7249. } else {
  7250. for k2, v2 := range v {
  7251. ee.EncodeUint(uint64(k2))
  7252. ee.EncodeInt(int64(v2))
  7253. }
  7254. }
  7255. ee.EncodeEnd()
  7256. }
  7257. func (f *encFnInfo) fastpathEncMapUint64Float32R(rv reflect.Value) {
  7258. fastpathTV.EncMapUint64Float32V(rv.Interface().(map[uint64]float32), fastpathCheckNilFalse, f.e)
  7259. }
  7260. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, checkNil bool, e *Encoder) {
  7261. ee := e.e
  7262. if checkNil && v == nil {
  7263. ee.EncodeNil()
  7264. return
  7265. }
  7266. ee.EncodeMapStart(len(v))
  7267. if e.h.Canonical {
  7268. v2 := make([]uint64, len(v))
  7269. var i int
  7270. for k, _ := range v {
  7271. v2[i] = uint64(k)
  7272. i++
  7273. }
  7274. sort.Sort(uintSlice(v2))
  7275. for _, k2 := range v2 {
  7276. ee.EncodeUint(uint64(uint64(k2)))
  7277. ee.EncodeFloat32(v[uint64(k2)])
  7278. }
  7279. } else {
  7280. for k2, v2 := range v {
  7281. ee.EncodeUint(uint64(k2))
  7282. ee.EncodeFloat32(v2)
  7283. }
  7284. }
  7285. ee.EncodeEnd()
  7286. }
  7287. func (f *encFnInfo) fastpathEncMapUint64Float64R(rv reflect.Value) {
  7288. fastpathTV.EncMapUint64Float64V(rv.Interface().(map[uint64]float64), fastpathCheckNilFalse, f.e)
  7289. }
  7290. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, checkNil bool, e *Encoder) {
  7291. ee := e.e
  7292. if checkNil && v == nil {
  7293. ee.EncodeNil()
  7294. return
  7295. }
  7296. ee.EncodeMapStart(len(v))
  7297. if e.h.Canonical {
  7298. v2 := make([]uint64, len(v))
  7299. var i int
  7300. for k, _ := range v {
  7301. v2[i] = uint64(k)
  7302. i++
  7303. }
  7304. sort.Sort(uintSlice(v2))
  7305. for _, k2 := range v2 {
  7306. ee.EncodeUint(uint64(uint64(k2)))
  7307. ee.EncodeFloat64(v[uint64(k2)])
  7308. }
  7309. } else {
  7310. for k2, v2 := range v {
  7311. ee.EncodeUint(uint64(k2))
  7312. ee.EncodeFloat64(v2)
  7313. }
  7314. }
  7315. ee.EncodeEnd()
  7316. }
  7317. func (f *encFnInfo) fastpathEncMapUint64BoolR(rv reflect.Value) {
  7318. fastpathTV.EncMapUint64BoolV(rv.Interface().(map[uint64]bool), fastpathCheckNilFalse, f.e)
  7319. }
  7320. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, checkNil bool, e *Encoder) {
  7321. ee := e.e
  7322. if checkNil && v == nil {
  7323. ee.EncodeNil()
  7324. return
  7325. }
  7326. ee.EncodeMapStart(len(v))
  7327. if e.h.Canonical {
  7328. v2 := make([]uint64, len(v))
  7329. var i int
  7330. for k, _ := range v {
  7331. v2[i] = uint64(k)
  7332. i++
  7333. }
  7334. sort.Sort(uintSlice(v2))
  7335. for _, k2 := range v2 {
  7336. ee.EncodeUint(uint64(uint64(k2)))
  7337. ee.EncodeBool(v[uint64(k2)])
  7338. }
  7339. } else {
  7340. for k2, v2 := range v {
  7341. ee.EncodeUint(uint64(k2))
  7342. ee.EncodeBool(v2)
  7343. }
  7344. }
  7345. ee.EncodeEnd()
  7346. }
  7347. func (f *encFnInfo) fastpathEncMapUintptrIntfR(rv reflect.Value) {
  7348. fastpathTV.EncMapUintptrIntfV(rv.Interface().(map[uintptr]interface{}), fastpathCheckNilFalse, f.e)
  7349. }
  7350. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, checkNil bool, e *Encoder) {
  7351. ee := e.e
  7352. if checkNil && v == nil {
  7353. ee.EncodeNil()
  7354. return
  7355. }
  7356. ee.EncodeMapStart(len(v))
  7357. if e.h.Canonical {
  7358. v2 := make([]uint64, len(v))
  7359. var i int
  7360. for k, _ := range v {
  7361. v2[i] = uint64(k)
  7362. i++
  7363. }
  7364. sort.Sort(uintSlice(v2))
  7365. for _, k2 := range v2 {
  7366. e.encode(uintptr(k2))
  7367. e.encode(v[uintptr(k2)])
  7368. }
  7369. } else {
  7370. for k2, v2 := range v {
  7371. e.encode(k2)
  7372. e.encode(v2)
  7373. }
  7374. }
  7375. ee.EncodeEnd()
  7376. }
  7377. func (f *encFnInfo) fastpathEncMapUintptrStringR(rv reflect.Value) {
  7378. fastpathTV.EncMapUintptrStringV(rv.Interface().(map[uintptr]string), fastpathCheckNilFalse, f.e)
  7379. }
  7380. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, checkNil bool, e *Encoder) {
  7381. ee := e.e
  7382. if checkNil && v == nil {
  7383. ee.EncodeNil()
  7384. return
  7385. }
  7386. ee.EncodeMapStart(len(v))
  7387. if e.h.Canonical {
  7388. v2 := make([]uint64, len(v))
  7389. var i int
  7390. for k, _ := range v {
  7391. v2[i] = uint64(k)
  7392. i++
  7393. }
  7394. sort.Sort(uintSlice(v2))
  7395. for _, k2 := range v2 {
  7396. e.encode(uintptr(k2))
  7397. ee.EncodeString(c_UTF8, v[uintptr(k2)])
  7398. }
  7399. } else {
  7400. for k2, v2 := range v {
  7401. e.encode(k2)
  7402. ee.EncodeString(c_UTF8, v2)
  7403. }
  7404. }
  7405. ee.EncodeEnd()
  7406. }
  7407. func (f *encFnInfo) fastpathEncMapUintptrUintR(rv reflect.Value) {
  7408. fastpathTV.EncMapUintptrUintV(rv.Interface().(map[uintptr]uint), fastpathCheckNilFalse, f.e)
  7409. }
  7410. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, checkNil bool, e *Encoder) {
  7411. ee := e.e
  7412. if checkNil && v == nil {
  7413. ee.EncodeNil()
  7414. return
  7415. }
  7416. ee.EncodeMapStart(len(v))
  7417. if e.h.Canonical {
  7418. v2 := make([]uint64, len(v))
  7419. var i int
  7420. for k, _ := range v {
  7421. v2[i] = uint64(k)
  7422. i++
  7423. }
  7424. sort.Sort(uintSlice(v2))
  7425. for _, k2 := range v2 {
  7426. e.encode(uintptr(k2))
  7427. ee.EncodeUint(uint64(v[uintptr(k2)]))
  7428. }
  7429. } else {
  7430. for k2, v2 := range v {
  7431. e.encode(k2)
  7432. ee.EncodeUint(uint64(v2))
  7433. }
  7434. }
  7435. ee.EncodeEnd()
  7436. }
  7437. func (f *encFnInfo) fastpathEncMapUintptrUint8R(rv reflect.Value) {
  7438. fastpathTV.EncMapUintptrUint8V(rv.Interface().(map[uintptr]uint8), fastpathCheckNilFalse, f.e)
  7439. }
  7440. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, checkNil bool, e *Encoder) {
  7441. ee := e.e
  7442. if checkNil && v == nil {
  7443. ee.EncodeNil()
  7444. return
  7445. }
  7446. ee.EncodeMapStart(len(v))
  7447. if e.h.Canonical {
  7448. v2 := make([]uint64, len(v))
  7449. var i int
  7450. for k, _ := range v {
  7451. v2[i] = uint64(k)
  7452. i++
  7453. }
  7454. sort.Sort(uintSlice(v2))
  7455. for _, k2 := range v2 {
  7456. e.encode(uintptr(k2))
  7457. ee.EncodeUint(uint64(v[uintptr(k2)]))
  7458. }
  7459. } else {
  7460. for k2, v2 := range v {
  7461. e.encode(k2)
  7462. ee.EncodeUint(uint64(v2))
  7463. }
  7464. }
  7465. ee.EncodeEnd()
  7466. }
  7467. func (f *encFnInfo) fastpathEncMapUintptrUint16R(rv reflect.Value) {
  7468. fastpathTV.EncMapUintptrUint16V(rv.Interface().(map[uintptr]uint16), fastpathCheckNilFalse, f.e)
  7469. }
  7470. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, checkNil bool, e *Encoder) {
  7471. ee := e.e
  7472. if checkNil && v == nil {
  7473. ee.EncodeNil()
  7474. return
  7475. }
  7476. ee.EncodeMapStart(len(v))
  7477. if e.h.Canonical {
  7478. v2 := make([]uint64, len(v))
  7479. var i int
  7480. for k, _ := range v {
  7481. v2[i] = uint64(k)
  7482. i++
  7483. }
  7484. sort.Sort(uintSlice(v2))
  7485. for _, k2 := range v2 {
  7486. e.encode(uintptr(k2))
  7487. ee.EncodeUint(uint64(v[uintptr(k2)]))
  7488. }
  7489. } else {
  7490. for k2, v2 := range v {
  7491. e.encode(k2)
  7492. ee.EncodeUint(uint64(v2))
  7493. }
  7494. }
  7495. ee.EncodeEnd()
  7496. }
  7497. func (f *encFnInfo) fastpathEncMapUintptrUint32R(rv reflect.Value) {
  7498. fastpathTV.EncMapUintptrUint32V(rv.Interface().(map[uintptr]uint32), fastpathCheckNilFalse, f.e)
  7499. }
  7500. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, checkNil bool, e *Encoder) {
  7501. ee := e.e
  7502. if checkNil && v == nil {
  7503. ee.EncodeNil()
  7504. return
  7505. }
  7506. ee.EncodeMapStart(len(v))
  7507. if e.h.Canonical {
  7508. v2 := make([]uint64, len(v))
  7509. var i int
  7510. for k, _ := range v {
  7511. v2[i] = uint64(k)
  7512. i++
  7513. }
  7514. sort.Sort(uintSlice(v2))
  7515. for _, k2 := range v2 {
  7516. e.encode(uintptr(k2))
  7517. ee.EncodeUint(uint64(v[uintptr(k2)]))
  7518. }
  7519. } else {
  7520. for k2, v2 := range v {
  7521. e.encode(k2)
  7522. ee.EncodeUint(uint64(v2))
  7523. }
  7524. }
  7525. ee.EncodeEnd()
  7526. }
  7527. func (f *encFnInfo) fastpathEncMapUintptrUint64R(rv reflect.Value) {
  7528. fastpathTV.EncMapUintptrUint64V(rv.Interface().(map[uintptr]uint64), fastpathCheckNilFalse, f.e)
  7529. }
  7530. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, checkNil bool, e *Encoder) {
  7531. ee := e.e
  7532. if checkNil && v == nil {
  7533. ee.EncodeNil()
  7534. return
  7535. }
  7536. ee.EncodeMapStart(len(v))
  7537. if e.h.Canonical {
  7538. v2 := make([]uint64, len(v))
  7539. var i int
  7540. for k, _ := range v {
  7541. v2[i] = uint64(k)
  7542. i++
  7543. }
  7544. sort.Sort(uintSlice(v2))
  7545. for _, k2 := range v2 {
  7546. e.encode(uintptr(k2))
  7547. ee.EncodeUint(uint64(v[uintptr(k2)]))
  7548. }
  7549. } else {
  7550. for k2, v2 := range v {
  7551. e.encode(k2)
  7552. ee.EncodeUint(uint64(v2))
  7553. }
  7554. }
  7555. ee.EncodeEnd()
  7556. }
  7557. func (f *encFnInfo) fastpathEncMapUintptrUintptrR(rv reflect.Value) {
  7558. fastpathTV.EncMapUintptrUintptrV(rv.Interface().(map[uintptr]uintptr), fastpathCheckNilFalse, f.e)
  7559. }
  7560. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, checkNil bool, e *Encoder) {
  7561. ee := e.e
  7562. if checkNil && v == nil {
  7563. ee.EncodeNil()
  7564. return
  7565. }
  7566. ee.EncodeMapStart(len(v))
  7567. if e.h.Canonical {
  7568. v2 := make([]uint64, len(v))
  7569. var i int
  7570. for k, _ := range v {
  7571. v2[i] = uint64(k)
  7572. i++
  7573. }
  7574. sort.Sort(uintSlice(v2))
  7575. for _, k2 := range v2 {
  7576. e.encode(uintptr(k2))
  7577. e.encode(v[uintptr(k2)])
  7578. }
  7579. } else {
  7580. for k2, v2 := range v {
  7581. e.encode(k2)
  7582. e.encode(v2)
  7583. }
  7584. }
  7585. ee.EncodeEnd()
  7586. }
  7587. func (f *encFnInfo) fastpathEncMapUintptrIntR(rv reflect.Value) {
  7588. fastpathTV.EncMapUintptrIntV(rv.Interface().(map[uintptr]int), fastpathCheckNilFalse, f.e)
  7589. }
  7590. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, checkNil bool, e *Encoder) {
  7591. ee := e.e
  7592. if checkNil && v == nil {
  7593. ee.EncodeNil()
  7594. return
  7595. }
  7596. ee.EncodeMapStart(len(v))
  7597. if e.h.Canonical {
  7598. v2 := make([]uint64, len(v))
  7599. var i int
  7600. for k, _ := range v {
  7601. v2[i] = uint64(k)
  7602. i++
  7603. }
  7604. sort.Sort(uintSlice(v2))
  7605. for _, k2 := range v2 {
  7606. e.encode(uintptr(k2))
  7607. ee.EncodeInt(int64(v[uintptr(k2)]))
  7608. }
  7609. } else {
  7610. for k2, v2 := range v {
  7611. e.encode(k2)
  7612. ee.EncodeInt(int64(v2))
  7613. }
  7614. }
  7615. ee.EncodeEnd()
  7616. }
  7617. func (f *encFnInfo) fastpathEncMapUintptrInt8R(rv reflect.Value) {
  7618. fastpathTV.EncMapUintptrInt8V(rv.Interface().(map[uintptr]int8), fastpathCheckNilFalse, f.e)
  7619. }
  7620. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, checkNil bool, e *Encoder) {
  7621. ee := e.e
  7622. if checkNil && v == nil {
  7623. ee.EncodeNil()
  7624. return
  7625. }
  7626. ee.EncodeMapStart(len(v))
  7627. if e.h.Canonical {
  7628. v2 := make([]uint64, len(v))
  7629. var i int
  7630. for k, _ := range v {
  7631. v2[i] = uint64(k)
  7632. i++
  7633. }
  7634. sort.Sort(uintSlice(v2))
  7635. for _, k2 := range v2 {
  7636. e.encode(uintptr(k2))
  7637. ee.EncodeInt(int64(v[uintptr(k2)]))
  7638. }
  7639. } else {
  7640. for k2, v2 := range v {
  7641. e.encode(k2)
  7642. ee.EncodeInt(int64(v2))
  7643. }
  7644. }
  7645. ee.EncodeEnd()
  7646. }
  7647. func (f *encFnInfo) fastpathEncMapUintptrInt16R(rv reflect.Value) {
  7648. fastpathTV.EncMapUintptrInt16V(rv.Interface().(map[uintptr]int16), fastpathCheckNilFalse, f.e)
  7649. }
  7650. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, checkNil bool, e *Encoder) {
  7651. ee := e.e
  7652. if checkNil && v == nil {
  7653. ee.EncodeNil()
  7654. return
  7655. }
  7656. ee.EncodeMapStart(len(v))
  7657. if e.h.Canonical {
  7658. v2 := make([]uint64, len(v))
  7659. var i int
  7660. for k, _ := range v {
  7661. v2[i] = uint64(k)
  7662. i++
  7663. }
  7664. sort.Sort(uintSlice(v2))
  7665. for _, k2 := range v2 {
  7666. e.encode(uintptr(k2))
  7667. ee.EncodeInt(int64(v[uintptr(k2)]))
  7668. }
  7669. } else {
  7670. for k2, v2 := range v {
  7671. e.encode(k2)
  7672. ee.EncodeInt(int64(v2))
  7673. }
  7674. }
  7675. ee.EncodeEnd()
  7676. }
  7677. func (f *encFnInfo) fastpathEncMapUintptrInt32R(rv reflect.Value) {
  7678. fastpathTV.EncMapUintptrInt32V(rv.Interface().(map[uintptr]int32), fastpathCheckNilFalse, f.e)
  7679. }
  7680. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, checkNil bool, e *Encoder) {
  7681. ee := e.e
  7682. if checkNil && v == nil {
  7683. ee.EncodeNil()
  7684. return
  7685. }
  7686. ee.EncodeMapStart(len(v))
  7687. if e.h.Canonical {
  7688. v2 := make([]uint64, len(v))
  7689. var i int
  7690. for k, _ := range v {
  7691. v2[i] = uint64(k)
  7692. i++
  7693. }
  7694. sort.Sort(uintSlice(v2))
  7695. for _, k2 := range v2 {
  7696. e.encode(uintptr(k2))
  7697. ee.EncodeInt(int64(v[uintptr(k2)]))
  7698. }
  7699. } else {
  7700. for k2, v2 := range v {
  7701. e.encode(k2)
  7702. ee.EncodeInt(int64(v2))
  7703. }
  7704. }
  7705. ee.EncodeEnd()
  7706. }
  7707. func (f *encFnInfo) fastpathEncMapUintptrInt64R(rv reflect.Value) {
  7708. fastpathTV.EncMapUintptrInt64V(rv.Interface().(map[uintptr]int64), fastpathCheckNilFalse, f.e)
  7709. }
  7710. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, checkNil bool, e *Encoder) {
  7711. ee := e.e
  7712. if checkNil && v == nil {
  7713. ee.EncodeNil()
  7714. return
  7715. }
  7716. ee.EncodeMapStart(len(v))
  7717. if e.h.Canonical {
  7718. v2 := make([]uint64, len(v))
  7719. var i int
  7720. for k, _ := range v {
  7721. v2[i] = uint64(k)
  7722. i++
  7723. }
  7724. sort.Sort(uintSlice(v2))
  7725. for _, k2 := range v2 {
  7726. e.encode(uintptr(k2))
  7727. ee.EncodeInt(int64(v[uintptr(k2)]))
  7728. }
  7729. } else {
  7730. for k2, v2 := range v {
  7731. e.encode(k2)
  7732. ee.EncodeInt(int64(v2))
  7733. }
  7734. }
  7735. ee.EncodeEnd()
  7736. }
  7737. func (f *encFnInfo) fastpathEncMapUintptrFloat32R(rv reflect.Value) {
  7738. fastpathTV.EncMapUintptrFloat32V(rv.Interface().(map[uintptr]float32), fastpathCheckNilFalse, f.e)
  7739. }
  7740. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, checkNil bool, e *Encoder) {
  7741. ee := e.e
  7742. if checkNil && v == nil {
  7743. ee.EncodeNil()
  7744. return
  7745. }
  7746. ee.EncodeMapStart(len(v))
  7747. if e.h.Canonical {
  7748. v2 := make([]uint64, len(v))
  7749. var i int
  7750. for k, _ := range v {
  7751. v2[i] = uint64(k)
  7752. i++
  7753. }
  7754. sort.Sort(uintSlice(v2))
  7755. for _, k2 := range v2 {
  7756. e.encode(uintptr(k2))
  7757. ee.EncodeFloat32(v[uintptr(k2)])
  7758. }
  7759. } else {
  7760. for k2, v2 := range v {
  7761. e.encode(k2)
  7762. ee.EncodeFloat32(v2)
  7763. }
  7764. }
  7765. ee.EncodeEnd()
  7766. }
  7767. func (f *encFnInfo) fastpathEncMapUintptrFloat64R(rv reflect.Value) {
  7768. fastpathTV.EncMapUintptrFloat64V(rv.Interface().(map[uintptr]float64), fastpathCheckNilFalse, f.e)
  7769. }
  7770. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, checkNil bool, e *Encoder) {
  7771. ee := e.e
  7772. if checkNil && v == nil {
  7773. ee.EncodeNil()
  7774. return
  7775. }
  7776. ee.EncodeMapStart(len(v))
  7777. if e.h.Canonical {
  7778. v2 := make([]uint64, len(v))
  7779. var i int
  7780. for k, _ := range v {
  7781. v2[i] = uint64(k)
  7782. i++
  7783. }
  7784. sort.Sort(uintSlice(v2))
  7785. for _, k2 := range v2 {
  7786. e.encode(uintptr(k2))
  7787. ee.EncodeFloat64(v[uintptr(k2)])
  7788. }
  7789. } else {
  7790. for k2, v2 := range v {
  7791. e.encode(k2)
  7792. ee.EncodeFloat64(v2)
  7793. }
  7794. }
  7795. ee.EncodeEnd()
  7796. }
  7797. func (f *encFnInfo) fastpathEncMapUintptrBoolR(rv reflect.Value) {
  7798. fastpathTV.EncMapUintptrBoolV(rv.Interface().(map[uintptr]bool), fastpathCheckNilFalse, f.e)
  7799. }
  7800. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, checkNil bool, e *Encoder) {
  7801. ee := e.e
  7802. if checkNil && v == nil {
  7803. ee.EncodeNil()
  7804. return
  7805. }
  7806. ee.EncodeMapStart(len(v))
  7807. if e.h.Canonical {
  7808. v2 := make([]uint64, len(v))
  7809. var i int
  7810. for k, _ := range v {
  7811. v2[i] = uint64(k)
  7812. i++
  7813. }
  7814. sort.Sort(uintSlice(v2))
  7815. for _, k2 := range v2 {
  7816. e.encode(uintptr(k2))
  7817. ee.EncodeBool(v[uintptr(k2)])
  7818. }
  7819. } else {
  7820. for k2, v2 := range v {
  7821. e.encode(k2)
  7822. ee.EncodeBool(v2)
  7823. }
  7824. }
  7825. ee.EncodeEnd()
  7826. }
  7827. func (f *encFnInfo) fastpathEncMapIntIntfR(rv reflect.Value) {
  7828. fastpathTV.EncMapIntIntfV(rv.Interface().(map[int]interface{}), fastpathCheckNilFalse, f.e)
  7829. }
  7830. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, checkNil bool, e *Encoder) {
  7831. ee := e.e
  7832. if checkNil && v == nil {
  7833. ee.EncodeNil()
  7834. return
  7835. }
  7836. ee.EncodeMapStart(len(v))
  7837. if e.h.Canonical {
  7838. v2 := make([]int64, len(v))
  7839. var i int
  7840. for k, _ := range v {
  7841. v2[i] = int64(k)
  7842. i++
  7843. }
  7844. sort.Sort(intSlice(v2))
  7845. for _, k2 := range v2 {
  7846. ee.EncodeInt(int64(int(k2)))
  7847. e.encode(v[int(k2)])
  7848. }
  7849. } else {
  7850. for k2, v2 := range v {
  7851. ee.EncodeInt(int64(k2))
  7852. e.encode(v2)
  7853. }
  7854. }
  7855. ee.EncodeEnd()
  7856. }
  7857. func (f *encFnInfo) fastpathEncMapIntStringR(rv reflect.Value) {
  7858. fastpathTV.EncMapIntStringV(rv.Interface().(map[int]string), fastpathCheckNilFalse, f.e)
  7859. }
  7860. func (_ fastpathT) EncMapIntStringV(v map[int]string, checkNil bool, e *Encoder) {
  7861. ee := e.e
  7862. if checkNil && v == nil {
  7863. ee.EncodeNil()
  7864. return
  7865. }
  7866. ee.EncodeMapStart(len(v))
  7867. if e.h.Canonical {
  7868. v2 := make([]int64, len(v))
  7869. var i int
  7870. for k, _ := range v {
  7871. v2[i] = int64(k)
  7872. i++
  7873. }
  7874. sort.Sort(intSlice(v2))
  7875. for _, k2 := range v2 {
  7876. ee.EncodeInt(int64(int(k2)))
  7877. ee.EncodeString(c_UTF8, v[int(k2)])
  7878. }
  7879. } else {
  7880. for k2, v2 := range v {
  7881. ee.EncodeInt(int64(k2))
  7882. ee.EncodeString(c_UTF8, v2)
  7883. }
  7884. }
  7885. ee.EncodeEnd()
  7886. }
  7887. func (f *encFnInfo) fastpathEncMapIntUintR(rv reflect.Value) {
  7888. fastpathTV.EncMapIntUintV(rv.Interface().(map[int]uint), fastpathCheckNilFalse, f.e)
  7889. }
  7890. func (_ fastpathT) EncMapIntUintV(v map[int]uint, checkNil bool, e *Encoder) {
  7891. ee := e.e
  7892. if checkNil && v == nil {
  7893. ee.EncodeNil()
  7894. return
  7895. }
  7896. ee.EncodeMapStart(len(v))
  7897. if e.h.Canonical {
  7898. v2 := make([]int64, len(v))
  7899. var i int
  7900. for k, _ := range v {
  7901. v2[i] = int64(k)
  7902. i++
  7903. }
  7904. sort.Sort(intSlice(v2))
  7905. for _, k2 := range v2 {
  7906. ee.EncodeInt(int64(int(k2)))
  7907. ee.EncodeUint(uint64(v[int(k2)]))
  7908. }
  7909. } else {
  7910. for k2, v2 := range v {
  7911. ee.EncodeInt(int64(k2))
  7912. ee.EncodeUint(uint64(v2))
  7913. }
  7914. }
  7915. ee.EncodeEnd()
  7916. }
  7917. func (f *encFnInfo) fastpathEncMapIntUint8R(rv reflect.Value) {
  7918. fastpathTV.EncMapIntUint8V(rv.Interface().(map[int]uint8), fastpathCheckNilFalse, f.e)
  7919. }
  7920. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, checkNil bool, e *Encoder) {
  7921. ee := e.e
  7922. if checkNil && v == nil {
  7923. ee.EncodeNil()
  7924. return
  7925. }
  7926. ee.EncodeMapStart(len(v))
  7927. if e.h.Canonical {
  7928. v2 := make([]int64, len(v))
  7929. var i int
  7930. for k, _ := range v {
  7931. v2[i] = int64(k)
  7932. i++
  7933. }
  7934. sort.Sort(intSlice(v2))
  7935. for _, k2 := range v2 {
  7936. ee.EncodeInt(int64(int(k2)))
  7937. ee.EncodeUint(uint64(v[int(k2)]))
  7938. }
  7939. } else {
  7940. for k2, v2 := range v {
  7941. ee.EncodeInt(int64(k2))
  7942. ee.EncodeUint(uint64(v2))
  7943. }
  7944. }
  7945. ee.EncodeEnd()
  7946. }
  7947. func (f *encFnInfo) fastpathEncMapIntUint16R(rv reflect.Value) {
  7948. fastpathTV.EncMapIntUint16V(rv.Interface().(map[int]uint16), fastpathCheckNilFalse, f.e)
  7949. }
  7950. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, checkNil bool, e *Encoder) {
  7951. ee := e.e
  7952. if checkNil && v == nil {
  7953. ee.EncodeNil()
  7954. return
  7955. }
  7956. ee.EncodeMapStart(len(v))
  7957. if e.h.Canonical {
  7958. v2 := make([]int64, len(v))
  7959. var i int
  7960. for k, _ := range v {
  7961. v2[i] = int64(k)
  7962. i++
  7963. }
  7964. sort.Sort(intSlice(v2))
  7965. for _, k2 := range v2 {
  7966. ee.EncodeInt(int64(int(k2)))
  7967. ee.EncodeUint(uint64(v[int(k2)]))
  7968. }
  7969. } else {
  7970. for k2, v2 := range v {
  7971. ee.EncodeInt(int64(k2))
  7972. ee.EncodeUint(uint64(v2))
  7973. }
  7974. }
  7975. ee.EncodeEnd()
  7976. }
  7977. func (f *encFnInfo) fastpathEncMapIntUint32R(rv reflect.Value) {
  7978. fastpathTV.EncMapIntUint32V(rv.Interface().(map[int]uint32), fastpathCheckNilFalse, f.e)
  7979. }
  7980. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, 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.h.Canonical {
  7988. v2 := make([]int64, len(v))
  7989. var i int
  7990. for k, _ := range v {
  7991. v2[i] = int64(k)
  7992. i++
  7993. }
  7994. sort.Sort(intSlice(v2))
  7995. for _, k2 := range v2 {
  7996. ee.EncodeInt(int64(int(k2)))
  7997. ee.EncodeUint(uint64(v[int(k2)]))
  7998. }
  7999. } else {
  8000. for k2, v2 := range v {
  8001. ee.EncodeInt(int64(k2))
  8002. ee.EncodeUint(uint64(v2))
  8003. }
  8004. }
  8005. ee.EncodeEnd()
  8006. }
  8007. func (f *encFnInfo) fastpathEncMapIntUint64R(rv reflect.Value) {
  8008. fastpathTV.EncMapIntUint64V(rv.Interface().(map[int]uint64), fastpathCheckNilFalse, f.e)
  8009. }
  8010. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, checkNil bool, e *Encoder) {
  8011. ee := e.e
  8012. if checkNil && v == nil {
  8013. ee.EncodeNil()
  8014. return
  8015. }
  8016. ee.EncodeMapStart(len(v))
  8017. if e.h.Canonical {
  8018. v2 := make([]int64, len(v))
  8019. var i int
  8020. for k, _ := range v {
  8021. v2[i] = int64(k)
  8022. i++
  8023. }
  8024. sort.Sort(intSlice(v2))
  8025. for _, k2 := range v2 {
  8026. ee.EncodeInt(int64(int(k2)))
  8027. ee.EncodeUint(uint64(v[int(k2)]))
  8028. }
  8029. } else {
  8030. for k2, v2 := range v {
  8031. ee.EncodeInt(int64(k2))
  8032. ee.EncodeUint(uint64(v2))
  8033. }
  8034. }
  8035. ee.EncodeEnd()
  8036. }
  8037. func (f *encFnInfo) fastpathEncMapIntUintptrR(rv reflect.Value) {
  8038. fastpathTV.EncMapIntUintptrV(rv.Interface().(map[int]uintptr), fastpathCheckNilFalse, f.e)
  8039. }
  8040. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, checkNil bool, e *Encoder) {
  8041. ee := e.e
  8042. if checkNil && v == nil {
  8043. ee.EncodeNil()
  8044. return
  8045. }
  8046. ee.EncodeMapStart(len(v))
  8047. if e.h.Canonical {
  8048. v2 := make([]int64, len(v))
  8049. var i int
  8050. for k, _ := range v {
  8051. v2[i] = int64(k)
  8052. i++
  8053. }
  8054. sort.Sort(intSlice(v2))
  8055. for _, k2 := range v2 {
  8056. ee.EncodeInt(int64(int(k2)))
  8057. e.encode(v[int(k2)])
  8058. }
  8059. } else {
  8060. for k2, v2 := range v {
  8061. ee.EncodeInt(int64(k2))
  8062. e.encode(v2)
  8063. }
  8064. }
  8065. ee.EncodeEnd()
  8066. }
  8067. func (f *encFnInfo) fastpathEncMapIntIntR(rv reflect.Value) {
  8068. fastpathTV.EncMapIntIntV(rv.Interface().(map[int]int), fastpathCheckNilFalse, f.e)
  8069. }
  8070. func (_ fastpathT) EncMapIntIntV(v map[int]int, checkNil bool, e *Encoder) {
  8071. ee := e.e
  8072. if checkNil && v == nil {
  8073. ee.EncodeNil()
  8074. return
  8075. }
  8076. ee.EncodeMapStart(len(v))
  8077. if e.h.Canonical {
  8078. v2 := make([]int64, len(v))
  8079. var i int
  8080. for k, _ := range v {
  8081. v2[i] = int64(k)
  8082. i++
  8083. }
  8084. sort.Sort(intSlice(v2))
  8085. for _, k2 := range v2 {
  8086. ee.EncodeInt(int64(int(k2)))
  8087. ee.EncodeInt(int64(v[int(k2)]))
  8088. }
  8089. } else {
  8090. for k2, v2 := range v {
  8091. ee.EncodeInt(int64(k2))
  8092. ee.EncodeInt(int64(v2))
  8093. }
  8094. }
  8095. ee.EncodeEnd()
  8096. }
  8097. func (f *encFnInfo) fastpathEncMapIntInt8R(rv reflect.Value) {
  8098. fastpathTV.EncMapIntInt8V(rv.Interface().(map[int]int8), fastpathCheckNilFalse, f.e)
  8099. }
  8100. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, checkNil bool, e *Encoder) {
  8101. ee := e.e
  8102. if checkNil && v == nil {
  8103. ee.EncodeNil()
  8104. return
  8105. }
  8106. ee.EncodeMapStart(len(v))
  8107. if e.h.Canonical {
  8108. v2 := make([]int64, len(v))
  8109. var i int
  8110. for k, _ := range v {
  8111. v2[i] = int64(k)
  8112. i++
  8113. }
  8114. sort.Sort(intSlice(v2))
  8115. for _, k2 := range v2 {
  8116. ee.EncodeInt(int64(int(k2)))
  8117. ee.EncodeInt(int64(v[int(k2)]))
  8118. }
  8119. } else {
  8120. for k2, v2 := range v {
  8121. ee.EncodeInt(int64(k2))
  8122. ee.EncodeInt(int64(v2))
  8123. }
  8124. }
  8125. ee.EncodeEnd()
  8126. }
  8127. func (f *encFnInfo) fastpathEncMapIntInt16R(rv reflect.Value) {
  8128. fastpathTV.EncMapIntInt16V(rv.Interface().(map[int]int16), fastpathCheckNilFalse, f.e)
  8129. }
  8130. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, checkNil bool, e *Encoder) {
  8131. ee := e.e
  8132. if checkNil && v == nil {
  8133. ee.EncodeNil()
  8134. return
  8135. }
  8136. ee.EncodeMapStart(len(v))
  8137. if e.h.Canonical {
  8138. v2 := make([]int64, len(v))
  8139. var i int
  8140. for k, _ := range v {
  8141. v2[i] = int64(k)
  8142. i++
  8143. }
  8144. sort.Sort(intSlice(v2))
  8145. for _, k2 := range v2 {
  8146. ee.EncodeInt(int64(int(k2)))
  8147. ee.EncodeInt(int64(v[int(k2)]))
  8148. }
  8149. } else {
  8150. for k2, v2 := range v {
  8151. ee.EncodeInt(int64(k2))
  8152. ee.EncodeInt(int64(v2))
  8153. }
  8154. }
  8155. ee.EncodeEnd()
  8156. }
  8157. func (f *encFnInfo) fastpathEncMapIntInt32R(rv reflect.Value) {
  8158. fastpathTV.EncMapIntInt32V(rv.Interface().(map[int]int32), fastpathCheckNilFalse, f.e)
  8159. }
  8160. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, checkNil bool, e *Encoder) {
  8161. ee := e.e
  8162. if checkNil && v == nil {
  8163. ee.EncodeNil()
  8164. return
  8165. }
  8166. ee.EncodeMapStart(len(v))
  8167. if e.h.Canonical {
  8168. v2 := make([]int64, len(v))
  8169. var i int
  8170. for k, _ := range v {
  8171. v2[i] = int64(k)
  8172. i++
  8173. }
  8174. sort.Sort(intSlice(v2))
  8175. for _, k2 := range v2 {
  8176. ee.EncodeInt(int64(int(k2)))
  8177. ee.EncodeInt(int64(v[int(k2)]))
  8178. }
  8179. } else {
  8180. for k2, v2 := range v {
  8181. ee.EncodeInt(int64(k2))
  8182. ee.EncodeInt(int64(v2))
  8183. }
  8184. }
  8185. ee.EncodeEnd()
  8186. }
  8187. func (f *encFnInfo) fastpathEncMapIntInt64R(rv reflect.Value) {
  8188. fastpathTV.EncMapIntInt64V(rv.Interface().(map[int]int64), fastpathCheckNilFalse, f.e)
  8189. }
  8190. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, checkNil bool, e *Encoder) {
  8191. ee := e.e
  8192. if checkNil && v == nil {
  8193. ee.EncodeNil()
  8194. return
  8195. }
  8196. ee.EncodeMapStart(len(v))
  8197. if e.h.Canonical {
  8198. v2 := make([]int64, len(v))
  8199. var i int
  8200. for k, _ := range v {
  8201. v2[i] = int64(k)
  8202. i++
  8203. }
  8204. sort.Sort(intSlice(v2))
  8205. for _, k2 := range v2 {
  8206. ee.EncodeInt(int64(int(k2)))
  8207. ee.EncodeInt(int64(v[int(k2)]))
  8208. }
  8209. } else {
  8210. for k2, v2 := range v {
  8211. ee.EncodeInt(int64(k2))
  8212. ee.EncodeInt(int64(v2))
  8213. }
  8214. }
  8215. ee.EncodeEnd()
  8216. }
  8217. func (f *encFnInfo) fastpathEncMapIntFloat32R(rv reflect.Value) {
  8218. fastpathTV.EncMapIntFloat32V(rv.Interface().(map[int]float32), fastpathCheckNilFalse, f.e)
  8219. }
  8220. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, checkNil bool, e *Encoder) {
  8221. ee := e.e
  8222. if checkNil && v == nil {
  8223. ee.EncodeNil()
  8224. return
  8225. }
  8226. ee.EncodeMapStart(len(v))
  8227. if e.h.Canonical {
  8228. v2 := make([]int64, len(v))
  8229. var i int
  8230. for k, _ := range v {
  8231. v2[i] = int64(k)
  8232. i++
  8233. }
  8234. sort.Sort(intSlice(v2))
  8235. for _, k2 := range v2 {
  8236. ee.EncodeInt(int64(int(k2)))
  8237. ee.EncodeFloat32(v[int(k2)])
  8238. }
  8239. } else {
  8240. for k2, v2 := range v {
  8241. ee.EncodeInt(int64(k2))
  8242. ee.EncodeFloat32(v2)
  8243. }
  8244. }
  8245. ee.EncodeEnd()
  8246. }
  8247. func (f *encFnInfo) fastpathEncMapIntFloat64R(rv reflect.Value) {
  8248. fastpathTV.EncMapIntFloat64V(rv.Interface().(map[int]float64), fastpathCheckNilFalse, f.e)
  8249. }
  8250. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, checkNil bool, e *Encoder) {
  8251. ee := e.e
  8252. if checkNil && v == nil {
  8253. ee.EncodeNil()
  8254. return
  8255. }
  8256. ee.EncodeMapStart(len(v))
  8257. if e.h.Canonical {
  8258. v2 := make([]int64, len(v))
  8259. var i int
  8260. for k, _ := range v {
  8261. v2[i] = int64(k)
  8262. i++
  8263. }
  8264. sort.Sort(intSlice(v2))
  8265. for _, k2 := range v2 {
  8266. ee.EncodeInt(int64(int(k2)))
  8267. ee.EncodeFloat64(v[int(k2)])
  8268. }
  8269. } else {
  8270. for k2, v2 := range v {
  8271. ee.EncodeInt(int64(k2))
  8272. ee.EncodeFloat64(v2)
  8273. }
  8274. }
  8275. ee.EncodeEnd()
  8276. }
  8277. func (f *encFnInfo) fastpathEncMapIntBoolR(rv reflect.Value) {
  8278. fastpathTV.EncMapIntBoolV(rv.Interface().(map[int]bool), fastpathCheckNilFalse, f.e)
  8279. }
  8280. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, checkNil bool, e *Encoder) {
  8281. ee := e.e
  8282. if checkNil && v == nil {
  8283. ee.EncodeNil()
  8284. return
  8285. }
  8286. ee.EncodeMapStart(len(v))
  8287. if e.h.Canonical {
  8288. v2 := make([]int64, len(v))
  8289. var i int
  8290. for k, _ := range v {
  8291. v2[i] = int64(k)
  8292. i++
  8293. }
  8294. sort.Sort(intSlice(v2))
  8295. for _, k2 := range v2 {
  8296. ee.EncodeInt(int64(int(k2)))
  8297. ee.EncodeBool(v[int(k2)])
  8298. }
  8299. } else {
  8300. for k2, v2 := range v {
  8301. ee.EncodeInt(int64(k2))
  8302. ee.EncodeBool(v2)
  8303. }
  8304. }
  8305. ee.EncodeEnd()
  8306. }
  8307. func (f *encFnInfo) fastpathEncMapInt8IntfR(rv reflect.Value) {
  8308. fastpathTV.EncMapInt8IntfV(rv.Interface().(map[int8]interface{}), fastpathCheckNilFalse, f.e)
  8309. }
  8310. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, checkNil bool, e *Encoder) {
  8311. ee := e.e
  8312. if checkNil && v == nil {
  8313. ee.EncodeNil()
  8314. return
  8315. }
  8316. ee.EncodeMapStart(len(v))
  8317. if e.h.Canonical {
  8318. v2 := make([]int64, len(v))
  8319. var i int
  8320. for k, _ := range v {
  8321. v2[i] = int64(k)
  8322. i++
  8323. }
  8324. sort.Sort(intSlice(v2))
  8325. for _, k2 := range v2 {
  8326. ee.EncodeInt(int64(int8(k2)))
  8327. e.encode(v[int8(k2)])
  8328. }
  8329. } else {
  8330. for k2, v2 := range v {
  8331. ee.EncodeInt(int64(k2))
  8332. e.encode(v2)
  8333. }
  8334. }
  8335. ee.EncodeEnd()
  8336. }
  8337. func (f *encFnInfo) fastpathEncMapInt8StringR(rv reflect.Value) {
  8338. fastpathTV.EncMapInt8StringV(rv.Interface().(map[int8]string), fastpathCheckNilFalse, f.e)
  8339. }
  8340. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, checkNil bool, e *Encoder) {
  8341. ee := e.e
  8342. if checkNil && v == nil {
  8343. ee.EncodeNil()
  8344. return
  8345. }
  8346. ee.EncodeMapStart(len(v))
  8347. if e.h.Canonical {
  8348. v2 := make([]int64, len(v))
  8349. var i int
  8350. for k, _ := range v {
  8351. v2[i] = int64(k)
  8352. i++
  8353. }
  8354. sort.Sort(intSlice(v2))
  8355. for _, k2 := range v2 {
  8356. ee.EncodeInt(int64(int8(k2)))
  8357. ee.EncodeString(c_UTF8, v[int8(k2)])
  8358. }
  8359. } else {
  8360. for k2, v2 := range v {
  8361. ee.EncodeInt(int64(k2))
  8362. ee.EncodeString(c_UTF8, v2)
  8363. }
  8364. }
  8365. ee.EncodeEnd()
  8366. }
  8367. func (f *encFnInfo) fastpathEncMapInt8UintR(rv reflect.Value) {
  8368. fastpathTV.EncMapInt8UintV(rv.Interface().(map[int8]uint), fastpathCheckNilFalse, f.e)
  8369. }
  8370. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, checkNil bool, e *Encoder) {
  8371. ee := e.e
  8372. if checkNil && v == nil {
  8373. ee.EncodeNil()
  8374. return
  8375. }
  8376. ee.EncodeMapStart(len(v))
  8377. if e.h.Canonical {
  8378. v2 := make([]int64, len(v))
  8379. var i int
  8380. for k, _ := range v {
  8381. v2[i] = int64(k)
  8382. i++
  8383. }
  8384. sort.Sort(intSlice(v2))
  8385. for _, k2 := range v2 {
  8386. ee.EncodeInt(int64(int8(k2)))
  8387. ee.EncodeUint(uint64(v[int8(k2)]))
  8388. }
  8389. } else {
  8390. for k2, v2 := range v {
  8391. ee.EncodeInt(int64(k2))
  8392. ee.EncodeUint(uint64(v2))
  8393. }
  8394. }
  8395. ee.EncodeEnd()
  8396. }
  8397. func (f *encFnInfo) fastpathEncMapInt8Uint8R(rv reflect.Value) {
  8398. fastpathTV.EncMapInt8Uint8V(rv.Interface().(map[int8]uint8), fastpathCheckNilFalse, f.e)
  8399. }
  8400. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, checkNil bool, e *Encoder) {
  8401. ee := e.e
  8402. if checkNil && v == nil {
  8403. ee.EncodeNil()
  8404. return
  8405. }
  8406. ee.EncodeMapStart(len(v))
  8407. if e.h.Canonical {
  8408. v2 := make([]int64, len(v))
  8409. var i int
  8410. for k, _ := range v {
  8411. v2[i] = int64(k)
  8412. i++
  8413. }
  8414. sort.Sort(intSlice(v2))
  8415. for _, k2 := range v2 {
  8416. ee.EncodeInt(int64(int8(k2)))
  8417. ee.EncodeUint(uint64(v[int8(k2)]))
  8418. }
  8419. } else {
  8420. for k2, v2 := range v {
  8421. ee.EncodeInt(int64(k2))
  8422. ee.EncodeUint(uint64(v2))
  8423. }
  8424. }
  8425. ee.EncodeEnd()
  8426. }
  8427. func (f *encFnInfo) fastpathEncMapInt8Uint16R(rv reflect.Value) {
  8428. fastpathTV.EncMapInt8Uint16V(rv.Interface().(map[int8]uint16), fastpathCheckNilFalse, f.e)
  8429. }
  8430. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, checkNil bool, e *Encoder) {
  8431. ee := e.e
  8432. if checkNil && v == nil {
  8433. ee.EncodeNil()
  8434. return
  8435. }
  8436. ee.EncodeMapStart(len(v))
  8437. if e.h.Canonical {
  8438. v2 := make([]int64, len(v))
  8439. var i int
  8440. for k, _ := range v {
  8441. v2[i] = int64(k)
  8442. i++
  8443. }
  8444. sort.Sort(intSlice(v2))
  8445. for _, k2 := range v2 {
  8446. ee.EncodeInt(int64(int8(k2)))
  8447. ee.EncodeUint(uint64(v[int8(k2)]))
  8448. }
  8449. } else {
  8450. for k2, v2 := range v {
  8451. ee.EncodeInt(int64(k2))
  8452. ee.EncodeUint(uint64(v2))
  8453. }
  8454. }
  8455. ee.EncodeEnd()
  8456. }
  8457. func (f *encFnInfo) fastpathEncMapInt8Uint32R(rv reflect.Value) {
  8458. fastpathTV.EncMapInt8Uint32V(rv.Interface().(map[int8]uint32), fastpathCheckNilFalse, f.e)
  8459. }
  8460. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, checkNil bool, e *Encoder) {
  8461. ee := e.e
  8462. if checkNil && v == nil {
  8463. ee.EncodeNil()
  8464. return
  8465. }
  8466. ee.EncodeMapStart(len(v))
  8467. if e.h.Canonical {
  8468. v2 := make([]int64, len(v))
  8469. var i int
  8470. for k, _ := range v {
  8471. v2[i] = int64(k)
  8472. i++
  8473. }
  8474. sort.Sort(intSlice(v2))
  8475. for _, k2 := range v2 {
  8476. ee.EncodeInt(int64(int8(k2)))
  8477. ee.EncodeUint(uint64(v[int8(k2)]))
  8478. }
  8479. } else {
  8480. for k2, v2 := range v {
  8481. ee.EncodeInt(int64(k2))
  8482. ee.EncodeUint(uint64(v2))
  8483. }
  8484. }
  8485. ee.EncodeEnd()
  8486. }
  8487. func (f *encFnInfo) fastpathEncMapInt8Uint64R(rv reflect.Value) {
  8488. fastpathTV.EncMapInt8Uint64V(rv.Interface().(map[int8]uint64), fastpathCheckNilFalse, f.e)
  8489. }
  8490. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, checkNil bool, e *Encoder) {
  8491. ee := e.e
  8492. if checkNil && v == nil {
  8493. ee.EncodeNil()
  8494. return
  8495. }
  8496. ee.EncodeMapStart(len(v))
  8497. if e.h.Canonical {
  8498. v2 := make([]int64, len(v))
  8499. var i int
  8500. for k, _ := range v {
  8501. v2[i] = int64(k)
  8502. i++
  8503. }
  8504. sort.Sort(intSlice(v2))
  8505. for _, k2 := range v2 {
  8506. ee.EncodeInt(int64(int8(k2)))
  8507. ee.EncodeUint(uint64(v[int8(k2)]))
  8508. }
  8509. } else {
  8510. for k2, v2 := range v {
  8511. ee.EncodeInt(int64(k2))
  8512. ee.EncodeUint(uint64(v2))
  8513. }
  8514. }
  8515. ee.EncodeEnd()
  8516. }
  8517. func (f *encFnInfo) fastpathEncMapInt8UintptrR(rv reflect.Value) {
  8518. fastpathTV.EncMapInt8UintptrV(rv.Interface().(map[int8]uintptr), fastpathCheckNilFalse, f.e)
  8519. }
  8520. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, checkNil bool, e *Encoder) {
  8521. ee := e.e
  8522. if checkNil && v == nil {
  8523. ee.EncodeNil()
  8524. return
  8525. }
  8526. ee.EncodeMapStart(len(v))
  8527. if e.h.Canonical {
  8528. v2 := make([]int64, len(v))
  8529. var i int
  8530. for k, _ := range v {
  8531. v2[i] = int64(k)
  8532. i++
  8533. }
  8534. sort.Sort(intSlice(v2))
  8535. for _, k2 := range v2 {
  8536. ee.EncodeInt(int64(int8(k2)))
  8537. e.encode(v[int8(k2)])
  8538. }
  8539. } else {
  8540. for k2, v2 := range v {
  8541. ee.EncodeInt(int64(k2))
  8542. e.encode(v2)
  8543. }
  8544. }
  8545. ee.EncodeEnd()
  8546. }
  8547. func (f *encFnInfo) fastpathEncMapInt8IntR(rv reflect.Value) {
  8548. fastpathTV.EncMapInt8IntV(rv.Interface().(map[int8]int), fastpathCheckNilFalse, f.e)
  8549. }
  8550. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, checkNil bool, e *Encoder) {
  8551. ee := e.e
  8552. if checkNil && v == nil {
  8553. ee.EncodeNil()
  8554. return
  8555. }
  8556. ee.EncodeMapStart(len(v))
  8557. if e.h.Canonical {
  8558. v2 := make([]int64, len(v))
  8559. var i int
  8560. for k, _ := range v {
  8561. v2[i] = int64(k)
  8562. i++
  8563. }
  8564. sort.Sort(intSlice(v2))
  8565. for _, k2 := range v2 {
  8566. ee.EncodeInt(int64(int8(k2)))
  8567. ee.EncodeInt(int64(v[int8(k2)]))
  8568. }
  8569. } else {
  8570. for k2, v2 := range v {
  8571. ee.EncodeInt(int64(k2))
  8572. ee.EncodeInt(int64(v2))
  8573. }
  8574. }
  8575. ee.EncodeEnd()
  8576. }
  8577. func (f *encFnInfo) fastpathEncMapInt8Int8R(rv reflect.Value) {
  8578. fastpathTV.EncMapInt8Int8V(rv.Interface().(map[int8]int8), fastpathCheckNilFalse, f.e)
  8579. }
  8580. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, checkNil bool, e *Encoder) {
  8581. ee := e.e
  8582. if checkNil && v == nil {
  8583. ee.EncodeNil()
  8584. return
  8585. }
  8586. ee.EncodeMapStart(len(v))
  8587. if e.h.Canonical {
  8588. v2 := make([]int64, len(v))
  8589. var i int
  8590. for k, _ := range v {
  8591. v2[i] = int64(k)
  8592. i++
  8593. }
  8594. sort.Sort(intSlice(v2))
  8595. for _, k2 := range v2 {
  8596. ee.EncodeInt(int64(int8(k2)))
  8597. ee.EncodeInt(int64(v[int8(k2)]))
  8598. }
  8599. } else {
  8600. for k2, v2 := range v {
  8601. ee.EncodeInt(int64(k2))
  8602. ee.EncodeInt(int64(v2))
  8603. }
  8604. }
  8605. ee.EncodeEnd()
  8606. }
  8607. func (f *encFnInfo) fastpathEncMapInt8Int16R(rv reflect.Value) {
  8608. fastpathTV.EncMapInt8Int16V(rv.Interface().(map[int8]int16), fastpathCheckNilFalse, f.e)
  8609. }
  8610. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, checkNil bool, e *Encoder) {
  8611. ee := e.e
  8612. if checkNil && v == nil {
  8613. ee.EncodeNil()
  8614. return
  8615. }
  8616. ee.EncodeMapStart(len(v))
  8617. if e.h.Canonical {
  8618. v2 := make([]int64, len(v))
  8619. var i int
  8620. for k, _ := range v {
  8621. v2[i] = int64(k)
  8622. i++
  8623. }
  8624. sort.Sort(intSlice(v2))
  8625. for _, k2 := range v2 {
  8626. ee.EncodeInt(int64(int8(k2)))
  8627. ee.EncodeInt(int64(v[int8(k2)]))
  8628. }
  8629. } else {
  8630. for k2, v2 := range v {
  8631. ee.EncodeInt(int64(k2))
  8632. ee.EncodeInt(int64(v2))
  8633. }
  8634. }
  8635. ee.EncodeEnd()
  8636. }
  8637. func (f *encFnInfo) fastpathEncMapInt8Int32R(rv reflect.Value) {
  8638. fastpathTV.EncMapInt8Int32V(rv.Interface().(map[int8]int32), fastpathCheckNilFalse, f.e)
  8639. }
  8640. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, checkNil bool, e *Encoder) {
  8641. ee := e.e
  8642. if checkNil && v == nil {
  8643. ee.EncodeNil()
  8644. return
  8645. }
  8646. ee.EncodeMapStart(len(v))
  8647. if e.h.Canonical {
  8648. v2 := make([]int64, len(v))
  8649. var i int
  8650. for k, _ := range v {
  8651. v2[i] = int64(k)
  8652. i++
  8653. }
  8654. sort.Sort(intSlice(v2))
  8655. for _, k2 := range v2 {
  8656. ee.EncodeInt(int64(int8(k2)))
  8657. ee.EncodeInt(int64(v[int8(k2)]))
  8658. }
  8659. } else {
  8660. for k2, v2 := range v {
  8661. ee.EncodeInt(int64(k2))
  8662. ee.EncodeInt(int64(v2))
  8663. }
  8664. }
  8665. ee.EncodeEnd()
  8666. }
  8667. func (f *encFnInfo) fastpathEncMapInt8Int64R(rv reflect.Value) {
  8668. fastpathTV.EncMapInt8Int64V(rv.Interface().(map[int8]int64), fastpathCheckNilFalse, f.e)
  8669. }
  8670. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, checkNil bool, e *Encoder) {
  8671. ee := e.e
  8672. if checkNil && v == nil {
  8673. ee.EncodeNil()
  8674. return
  8675. }
  8676. ee.EncodeMapStart(len(v))
  8677. if e.h.Canonical {
  8678. v2 := make([]int64, len(v))
  8679. var i int
  8680. for k, _ := range v {
  8681. v2[i] = int64(k)
  8682. i++
  8683. }
  8684. sort.Sort(intSlice(v2))
  8685. for _, k2 := range v2 {
  8686. ee.EncodeInt(int64(int8(k2)))
  8687. ee.EncodeInt(int64(v[int8(k2)]))
  8688. }
  8689. } else {
  8690. for k2, v2 := range v {
  8691. ee.EncodeInt(int64(k2))
  8692. ee.EncodeInt(int64(v2))
  8693. }
  8694. }
  8695. ee.EncodeEnd()
  8696. }
  8697. func (f *encFnInfo) fastpathEncMapInt8Float32R(rv reflect.Value) {
  8698. fastpathTV.EncMapInt8Float32V(rv.Interface().(map[int8]float32), fastpathCheckNilFalse, f.e)
  8699. }
  8700. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, checkNil bool, e *Encoder) {
  8701. ee := e.e
  8702. if checkNil && v == nil {
  8703. ee.EncodeNil()
  8704. return
  8705. }
  8706. ee.EncodeMapStart(len(v))
  8707. if e.h.Canonical {
  8708. v2 := make([]int64, len(v))
  8709. var i int
  8710. for k, _ := range v {
  8711. v2[i] = int64(k)
  8712. i++
  8713. }
  8714. sort.Sort(intSlice(v2))
  8715. for _, k2 := range v2 {
  8716. ee.EncodeInt(int64(int8(k2)))
  8717. ee.EncodeFloat32(v[int8(k2)])
  8718. }
  8719. } else {
  8720. for k2, v2 := range v {
  8721. ee.EncodeInt(int64(k2))
  8722. ee.EncodeFloat32(v2)
  8723. }
  8724. }
  8725. ee.EncodeEnd()
  8726. }
  8727. func (f *encFnInfo) fastpathEncMapInt8Float64R(rv reflect.Value) {
  8728. fastpathTV.EncMapInt8Float64V(rv.Interface().(map[int8]float64), fastpathCheckNilFalse, f.e)
  8729. }
  8730. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, checkNil bool, e *Encoder) {
  8731. ee := e.e
  8732. if checkNil && v == nil {
  8733. ee.EncodeNil()
  8734. return
  8735. }
  8736. ee.EncodeMapStart(len(v))
  8737. if e.h.Canonical {
  8738. v2 := make([]int64, len(v))
  8739. var i int
  8740. for k, _ := range v {
  8741. v2[i] = int64(k)
  8742. i++
  8743. }
  8744. sort.Sort(intSlice(v2))
  8745. for _, k2 := range v2 {
  8746. ee.EncodeInt(int64(int8(k2)))
  8747. ee.EncodeFloat64(v[int8(k2)])
  8748. }
  8749. } else {
  8750. for k2, v2 := range v {
  8751. ee.EncodeInt(int64(k2))
  8752. ee.EncodeFloat64(v2)
  8753. }
  8754. }
  8755. ee.EncodeEnd()
  8756. }
  8757. func (f *encFnInfo) fastpathEncMapInt8BoolR(rv reflect.Value) {
  8758. fastpathTV.EncMapInt8BoolV(rv.Interface().(map[int8]bool), fastpathCheckNilFalse, f.e)
  8759. }
  8760. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, checkNil bool, e *Encoder) {
  8761. ee := e.e
  8762. if checkNil && v == nil {
  8763. ee.EncodeNil()
  8764. return
  8765. }
  8766. ee.EncodeMapStart(len(v))
  8767. if e.h.Canonical {
  8768. v2 := make([]int64, len(v))
  8769. var i int
  8770. for k, _ := range v {
  8771. v2[i] = int64(k)
  8772. i++
  8773. }
  8774. sort.Sort(intSlice(v2))
  8775. for _, k2 := range v2 {
  8776. ee.EncodeInt(int64(int8(k2)))
  8777. ee.EncodeBool(v[int8(k2)])
  8778. }
  8779. } else {
  8780. for k2, v2 := range v {
  8781. ee.EncodeInt(int64(k2))
  8782. ee.EncodeBool(v2)
  8783. }
  8784. }
  8785. ee.EncodeEnd()
  8786. }
  8787. func (f *encFnInfo) fastpathEncMapInt16IntfR(rv reflect.Value) {
  8788. fastpathTV.EncMapInt16IntfV(rv.Interface().(map[int16]interface{}), fastpathCheckNilFalse, f.e)
  8789. }
  8790. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, checkNil bool, e *Encoder) {
  8791. ee := e.e
  8792. if checkNil && v == nil {
  8793. ee.EncodeNil()
  8794. return
  8795. }
  8796. ee.EncodeMapStart(len(v))
  8797. if e.h.Canonical {
  8798. v2 := make([]int64, len(v))
  8799. var i int
  8800. for k, _ := range v {
  8801. v2[i] = int64(k)
  8802. i++
  8803. }
  8804. sort.Sort(intSlice(v2))
  8805. for _, k2 := range v2 {
  8806. ee.EncodeInt(int64(int16(k2)))
  8807. e.encode(v[int16(k2)])
  8808. }
  8809. } else {
  8810. for k2, v2 := range v {
  8811. ee.EncodeInt(int64(k2))
  8812. e.encode(v2)
  8813. }
  8814. }
  8815. ee.EncodeEnd()
  8816. }
  8817. func (f *encFnInfo) fastpathEncMapInt16StringR(rv reflect.Value) {
  8818. fastpathTV.EncMapInt16StringV(rv.Interface().(map[int16]string), fastpathCheckNilFalse, f.e)
  8819. }
  8820. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, checkNil bool, e *Encoder) {
  8821. ee := e.e
  8822. if checkNil && v == nil {
  8823. ee.EncodeNil()
  8824. return
  8825. }
  8826. ee.EncodeMapStart(len(v))
  8827. if e.h.Canonical {
  8828. v2 := make([]int64, len(v))
  8829. var i int
  8830. for k, _ := range v {
  8831. v2[i] = int64(k)
  8832. i++
  8833. }
  8834. sort.Sort(intSlice(v2))
  8835. for _, k2 := range v2 {
  8836. ee.EncodeInt(int64(int16(k2)))
  8837. ee.EncodeString(c_UTF8, v[int16(k2)])
  8838. }
  8839. } else {
  8840. for k2, v2 := range v {
  8841. ee.EncodeInt(int64(k2))
  8842. ee.EncodeString(c_UTF8, v2)
  8843. }
  8844. }
  8845. ee.EncodeEnd()
  8846. }
  8847. func (f *encFnInfo) fastpathEncMapInt16UintR(rv reflect.Value) {
  8848. fastpathTV.EncMapInt16UintV(rv.Interface().(map[int16]uint), fastpathCheckNilFalse, f.e)
  8849. }
  8850. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, 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.h.Canonical {
  8858. v2 := make([]int64, len(v))
  8859. var i int
  8860. for k, _ := range v {
  8861. v2[i] = int64(k)
  8862. i++
  8863. }
  8864. sort.Sort(intSlice(v2))
  8865. for _, k2 := range v2 {
  8866. ee.EncodeInt(int64(int16(k2)))
  8867. ee.EncodeUint(uint64(v[int16(k2)]))
  8868. }
  8869. } else {
  8870. for k2, v2 := range v {
  8871. ee.EncodeInt(int64(k2))
  8872. ee.EncodeUint(uint64(v2))
  8873. }
  8874. }
  8875. ee.EncodeEnd()
  8876. }
  8877. func (f *encFnInfo) fastpathEncMapInt16Uint8R(rv reflect.Value) {
  8878. fastpathTV.EncMapInt16Uint8V(rv.Interface().(map[int16]uint8), fastpathCheckNilFalse, f.e)
  8879. }
  8880. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, checkNil bool, e *Encoder) {
  8881. ee := e.e
  8882. if checkNil && v == nil {
  8883. ee.EncodeNil()
  8884. return
  8885. }
  8886. ee.EncodeMapStart(len(v))
  8887. if e.h.Canonical {
  8888. v2 := make([]int64, len(v))
  8889. var i int
  8890. for k, _ := range v {
  8891. v2[i] = int64(k)
  8892. i++
  8893. }
  8894. sort.Sort(intSlice(v2))
  8895. for _, k2 := range v2 {
  8896. ee.EncodeInt(int64(int16(k2)))
  8897. ee.EncodeUint(uint64(v[int16(k2)]))
  8898. }
  8899. } else {
  8900. for k2, v2 := range v {
  8901. ee.EncodeInt(int64(k2))
  8902. ee.EncodeUint(uint64(v2))
  8903. }
  8904. }
  8905. ee.EncodeEnd()
  8906. }
  8907. func (f *encFnInfo) fastpathEncMapInt16Uint16R(rv reflect.Value) {
  8908. fastpathTV.EncMapInt16Uint16V(rv.Interface().(map[int16]uint16), fastpathCheckNilFalse, f.e)
  8909. }
  8910. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, checkNil bool, e *Encoder) {
  8911. ee := e.e
  8912. if checkNil && v == nil {
  8913. ee.EncodeNil()
  8914. return
  8915. }
  8916. ee.EncodeMapStart(len(v))
  8917. if e.h.Canonical {
  8918. v2 := make([]int64, len(v))
  8919. var i int
  8920. for k, _ := range v {
  8921. v2[i] = int64(k)
  8922. i++
  8923. }
  8924. sort.Sort(intSlice(v2))
  8925. for _, k2 := range v2 {
  8926. ee.EncodeInt(int64(int16(k2)))
  8927. ee.EncodeUint(uint64(v[int16(k2)]))
  8928. }
  8929. } else {
  8930. for k2, v2 := range v {
  8931. ee.EncodeInt(int64(k2))
  8932. ee.EncodeUint(uint64(v2))
  8933. }
  8934. }
  8935. ee.EncodeEnd()
  8936. }
  8937. func (f *encFnInfo) fastpathEncMapInt16Uint32R(rv reflect.Value) {
  8938. fastpathTV.EncMapInt16Uint32V(rv.Interface().(map[int16]uint32), fastpathCheckNilFalse, f.e)
  8939. }
  8940. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, checkNil bool, e *Encoder) {
  8941. ee := e.e
  8942. if checkNil && v == nil {
  8943. ee.EncodeNil()
  8944. return
  8945. }
  8946. ee.EncodeMapStart(len(v))
  8947. if e.h.Canonical {
  8948. v2 := make([]int64, len(v))
  8949. var i int
  8950. for k, _ := range v {
  8951. v2[i] = int64(k)
  8952. i++
  8953. }
  8954. sort.Sort(intSlice(v2))
  8955. for _, k2 := range v2 {
  8956. ee.EncodeInt(int64(int16(k2)))
  8957. ee.EncodeUint(uint64(v[int16(k2)]))
  8958. }
  8959. } else {
  8960. for k2, v2 := range v {
  8961. ee.EncodeInt(int64(k2))
  8962. ee.EncodeUint(uint64(v2))
  8963. }
  8964. }
  8965. ee.EncodeEnd()
  8966. }
  8967. func (f *encFnInfo) fastpathEncMapInt16Uint64R(rv reflect.Value) {
  8968. fastpathTV.EncMapInt16Uint64V(rv.Interface().(map[int16]uint64), fastpathCheckNilFalse, f.e)
  8969. }
  8970. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, checkNil bool, e *Encoder) {
  8971. ee := e.e
  8972. if checkNil && v == nil {
  8973. ee.EncodeNil()
  8974. return
  8975. }
  8976. ee.EncodeMapStart(len(v))
  8977. if e.h.Canonical {
  8978. v2 := make([]int64, len(v))
  8979. var i int
  8980. for k, _ := range v {
  8981. v2[i] = int64(k)
  8982. i++
  8983. }
  8984. sort.Sort(intSlice(v2))
  8985. for _, k2 := range v2 {
  8986. ee.EncodeInt(int64(int16(k2)))
  8987. ee.EncodeUint(uint64(v[int16(k2)]))
  8988. }
  8989. } else {
  8990. for k2, v2 := range v {
  8991. ee.EncodeInt(int64(k2))
  8992. ee.EncodeUint(uint64(v2))
  8993. }
  8994. }
  8995. ee.EncodeEnd()
  8996. }
  8997. func (f *encFnInfo) fastpathEncMapInt16UintptrR(rv reflect.Value) {
  8998. fastpathTV.EncMapInt16UintptrV(rv.Interface().(map[int16]uintptr), fastpathCheckNilFalse, f.e)
  8999. }
  9000. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, checkNil bool, e *Encoder) {
  9001. ee := e.e
  9002. if checkNil && v == nil {
  9003. ee.EncodeNil()
  9004. return
  9005. }
  9006. ee.EncodeMapStart(len(v))
  9007. if e.h.Canonical {
  9008. v2 := make([]int64, len(v))
  9009. var i int
  9010. for k, _ := range v {
  9011. v2[i] = int64(k)
  9012. i++
  9013. }
  9014. sort.Sort(intSlice(v2))
  9015. for _, k2 := range v2 {
  9016. ee.EncodeInt(int64(int16(k2)))
  9017. e.encode(v[int16(k2)])
  9018. }
  9019. } else {
  9020. for k2, v2 := range v {
  9021. ee.EncodeInt(int64(k2))
  9022. e.encode(v2)
  9023. }
  9024. }
  9025. ee.EncodeEnd()
  9026. }
  9027. func (f *encFnInfo) fastpathEncMapInt16IntR(rv reflect.Value) {
  9028. fastpathTV.EncMapInt16IntV(rv.Interface().(map[int16]int), fastpathCheckNilFalse, f.e)
  9029. }
  9030. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, checkNil bool, e *Encoder) {
  9031. ee := e.e
  9032. if checkNil && v == nil {
  9033. ee.EncodeNil()
  9034. return
  9035. }
  9036. ee.EncodeMapStart(len(v))
  9037. if e.h.Canonical {
  9038. v2 := make([]int64, len(v))
  9039. var i int
  9040. for k, _ := range v {
  9041. v2[i] = int64(k)
  9042. i++
  9043. }
  9044. sort.Sort(intSlice(v2))
  9045. for _, k2 := range v2 {
  9046. ee.EncodeInt(int64(int16(k2)))
  9047. ee.EncodeInt(int64(v[int16(k2)]))
  9048. }
  9049. } else {
  9050. for k2, v2 := range v {
  9051. ee.EncodeInt(int64(k2))
  9052. ee.EncodeInt(int64(v2))
  9053. }
  9054. }
  9055. ee.EncodeEnd()
  9056. }
  9057. func (f *encFnInfo) fastpathEncMapInt16Int8R(rv reflect.Value) {
  9058. fastpathTV.EncMapInt16Int8V(rv.Interface().(map[int16]int8), fastpathCheckNilFalse, f.e)
  9059. }
  9060. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, checkNil bool, e *Encoder) {
  9061. ee := e.e
  9062. if checkNil && v == nil {
  9063. ee.EncodeNil()
  9064. return
  9065. }
  9066. ee.EncodeMapStart(len(v))
  9067. if e.h.Canonical {
  9068. v2 := make([]int64, len(v))
  9069. var i int
  9070. for k, _ := range v {
  9071. v2[i] = int64(k)
  9072. i++
  9073. }
  9074. sort.Sort(intSlice(v2))
  9075. for _, k2 := range v2 {
  9076. ee.EncodeInt(int64(int16(k2)))
  9077. ee.EncodeInt(int64(v[int16(k2)]))
  9078. }
  9079. } else {
  9080. for k2, v2 := range v {
  9081. ee.EncodeInt(int64(k2))
  9082. ee.EncodeInt(int64(v2))
  9083. }
  9084. }
  9085. ee.EncodeEnd()
  9086. }
  9087. func (f *encFnInfo) fastpathEncMapInt16Int16R(rv reflect.Value) {
  9088. fastpathTV.EncMapInt16Int16V(rv.Interface().(map[int16]int16), fastpathCheckNilFalse, f.e)
  9089. }
  9090. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, checkNil bool, e *Encoder) {
  9091. ee := e.e
  9092. if checkNil && v == nil {
  9093. ee.EncodeNil()
  9094. return
  9095. }
  9096. ee.EncodeMapStart(len(v))
  9097. if e.h.Canonical {
  9098. v2 := make([]int64, len(v))
  9099. var i int
  9100. for k, _ := range v {
  9101. v2[i] = int64(k)
  9102. i++
  9103. }
  9104. sort.Sort(intSlice(v2))
  9105. for _, k2 := range v2 {
  9106. ee.EncodeInt(int64(int16(k2)))
  9107. ee.EncodeInt(int64(v[int16(k2)]))
  9108. }
  9109. } else {
  9110. for k2, v2 := range v {
  9111. ee.EncodeInt(int64(k2))
  9112. ee.EncodeInt(int64(v2))
  9113. }
  9114. }
  9115. ee.EncodeEnd()
  9116. }
  9117. func (f *encFnInfo) fastpathEncMapInt16Int32R(rv reflect.Value) {
  9118. fastpathTV.EncMapInt16Int32V(rv.Interface().(map[int16]int32), fastpathCheckNilFalse, f.e)
  9119. }
  9120. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, checkNil bool, e *Encoder) {
  9121. ee := e.e
  9122. if checkNil && v == nil {
  9123. ee.EncodeNil()
  9124. return
  9125. }
  9126. ee.EncodeMapStart(len(v))
  9127. if e.h.Canonical {
  9128. v2 := make([]int64, len(v))
  9129. var i int
  9130. for k, _ := range v {
  9131. v2[i] = int64(k)
  9132. i++
  9133. }
  9134. sort.Sort(intSlice(v2))
  9135. for _, k2 := range v2 {
  9136. ee.EncodeInt(int64(int16(k2)))
  9137. ee.EncodeInt(int64(v[int16(k2)]))
  9138. }
  9139. } else {
  9140. for k2, v2 := range v {
  9141. ee.EncodeInt(int64(k2))
  9142. ee.EncodeInt(int64(v2))
  9143. }
  9144. }
  9145. ee.EncodeEnd()
  9146. }
  9147. func (f *encFnInfo) fastpathEncMapInt16Int64R(rv reflect.Value) {
  9148. fastpathTV.EncMapInt16Int64V(rv.Interface().(map[int16]int64), fastpathCheckNilFalse, f.e)
  9149. }
  9150. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, checkNil bool, e *Encoder) {
  9151. ee := e.e
  9152. if checkNil && v == nil {
  9153. ee.EncodeNil()
  9154. return
  9155. }
  9156. ee.EncodeMapStart(len(v))
  9157. if e.h.Canonical {
  9158. v2 := make([]int64, len(v))
  9159. var i int
  9160. for k, _ := range v {
  9161. v2[i] = int64(k)
  9162. i++
  9163. }
  9164. sort.Sort(intSlice(v2))
  9165. for _, k2 := range v2 {
  9166. ee.EncodeInt(int64(int16(k2)))
  9167. ee.EncodeInt(int64(v[int16(k2)]))
  9168. }
  9169. } else {
  9170. for k2, v2 := range v {
  9171. ee.EncodeInt(int64(k2))
  9172. ee.EncodeInt(int64(v2))
  9173. }
  9174. }
  9175. ee.EncodeEnd()
  9176. }
  9177. func (f *encFnInfo) fastpathEncMapInt16Float32R(rv reflect.Value) {
  9178. fastpathTV.EncMapInt16Float32V(rv.Interface().(map[int16]float32), fastpathCheckNilFalse, f.e)
  9179. }
  9180. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, checkNil bool, e *Encoder) {
  9181. ee := e.e
  9182. if checkNil && v == nil {
  9183. ee.EncodeNil()
  9184. return
  9185. }
  9186. ee.EncodeMapStart(len(v))
  9187. if e.h.Canonical {
  9188. v2 := make([]int64, len(v))
  9189. var i int
  9190. for k, _ := range v {
  9191. v2[i] = int64(k)
  9192. i++
  9193. }
  9194. sort.Sort(intSlice(v2))
  9195. for _, k2 := range v2 {
  9196. ee.EncodeInt(int64(int16(k2)))
  9197. ee.EncodeFloat32(v[int16(k2)])
  9198. }
  9199. } else {
  9200. for k2, v2 := range v {
  9201. ee.EncodeInt(int64(k2))
  9202. ee.EncodeFloat32(v2)
  9203. }
  9204. }
  9205. ee.EncodeEnd()
  9206. }
  9207. func (f *encFnInfo) fastpathEncMapInt16Float64R(rv reflect.Value) {
  9208. fastpathTV.EncMapInt16Float64V(rv.Interface().(map[int16]float64), fastpathCheckNilFalse, f.e)
  9209. }
  9210. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, checkNil bool, e *Encoder) {
  9211. ee := e.e
  9212. if checkNil && v == nil {
  9213. ee.EncodeNil()
  9214. return
  9215. }
  9216. ee.EncodeMapStart(len(v))
  9217. if e.h.Canonical {
  9218. v2 := make([]int64, len(v))
  9219. var i int
  9220. for k, _ := range v {
  9221. v2[i] = int64(k)
  9222. i++
  9223. }
  9224. sort.Sort(intSlice(v2))
  9225. for _, k2 := range v2 {
  9226. ee.EncodeInt(int64(int16(k2)))
  9227. ee.EncodeFloat64(v[int16(k2)])
  9228. }
  9229. } else {
  9230. for k2, v2 := range v {
  9231. ee.EncodeInt(int64(k2))
  9232. ee.EncodeFloat64(v2)
  9233. }
  9234. }
  9235. ee.EncodeEnd()
  9236. }
  9237. func (f *encFnInfo) fastpathEncMapInt16BoolR(rv reflect.Value) {
  9238. fastpathTV.EncMapInt16BoolV(rv.Interface().(map[int16]bool), fastpathCheckNilFalse, f.e)
  9239. }
  9240. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, checkNil bool, e *Encoder) {
  9241. ee := e.e
  9242. if checkNil && v == nil {
  9243. ee.EncodeNil()
  9244. return
  9245. }
  9246. ee.EncodeMapStart(len(v))
  9247. if e.h.Canonical {
  9248. v2 := make([]int64, len(v))
  9249. var i int
  9250. for k, _ := range v {
  9251. v2[i] = int64(k)
  9252. i++
  9253. }
  9254. sort.Sort(intSlice(v2))
  9255. for _, k2 := range v2 {
  9256. ee.EncodeInt(int64(int16(k2)))
  9257. ee.EncodeBool(v[int16(k2)])
  9258. }
  9259. } else {
  9260. for k2, v2 := range v {
  9261. ee.EncodeInt(int64(k2))
  9262. ee.EncodeBool(v2)
  9263. }
  9264. }
  9265. ee.EncodeEnd()
  9266. }
  9267. func (f *encFnInfo) fastpathEncMapInt32IntfR(rv reflect.Value) {
  9268. fastpathTV.EncMapInt32IntfV(rv.Interface().(map[int32]interface{}), fastpathCheckNilFalse, f.e)
  9269. }
  9270. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, checkNil bool, e *Encoder) {
  9271. ee := e.e
  9272. if checkNil && v == nil {
  9273. ee.EncodeNil()
  9274. return
  9275. }
  9276. ee.EncodeMapStart(len(v))
  9277. if e.h.Canonical {
  9278. v2 := make([]int64, len(v))
  9279. var i int
  9280. for k, _ := range v {
  9281. v2[i] = int64(k)
  9282. i++
  9283. }
  9284. sort.Sort(intSlice(v2))
  9285. for _, k2 := range v2 {
  9286. ee.EncodeInt(int64(int32(k2)))
  9287. e.encode(v[int32(k2)])
  9288. }
  9289. } else {
  9290. for k2, v2 := range v {
  9291. ee.EncodeInt(int64(k2))
  9292. e.encode(v2)
  9293. }
  9294. }
  9295. ee.EncodeEnd()
  9296. }
  9297. func (f *encFnInfo) fastpathEncMapInt32StringR(rv reflect.Value) {
  9298. fastpathTV.EncMapInt32StringV(rv.Interface().(map[int32]string), fastpathCheckNilFalse, f.e)
  9299. }
  9300. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, checkNil bool, e *Encoder) {
  9301. ee := e.e
  9302. if checkNil && v == nil {
  9303. ee.EncodeNil()
  9304. return
  9305. }
  9306. ee.EncodeMapStart(len(v))
  9307. if e.h.Canonical {
  9308. v2 := make([]int64, len(v))
  9309. var i int
  9310. for k, _ := range v {
  9311. v2[i] = int64(k)
  9312. i++
  9313. }
  9314. sort.Sort(intSlice(v2))
  9315. for _, k2 := range v2 {
  9316. ee.EncodeInt(int64(int32(k2)))
  9317. ee.EncodeString(c_UTF8, v[int32(k2)])
  9318. }
  9319. } else {
  9320. for k2, v2 := range v {
  9321. ee.EncodeInt(int64(k2))
  9322. ee.EncodeString(c_UTF8, v2)
  9323. }
  9324. }
  9325. ee.EncodeEnd()
  9326. }
  9327. func (f *encFnInfo) fastpathEncMapInt32UintR(rv reflect.Value) {
  9328. fastpathTV.EncMapInt32UintV(rv.Interface().(map[int32]uint), fastpathCheckNilFalse, f.e)
  9329. }
  9330. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, checkNil bool, e *Encoder) {
  9331. ee := e.e
  9332. if checkNil && v == nil {
  9333. ee.EncodeNil()
  9334. return
  9335. }
  9336. ee.EncodeMapStart(len(v))
  9337. if e.h.Canonical {
  9338. v2 := make([]int64, len(v))
  9339. var i int
  9340. for k, _ := range v {
  9341. v2[i] = int64(k)
  9342. i++
  9343. }
  9344. sort.Sort(intSlice(v2))
  9345. for _, k2 := range v2 {
  9346. ee.EncodeInt(int64(int32(k2)))
  9347. ee.EncodeUint(uint64(v[int32(k2)]))
  9348. }
  9349. } else {
  9350. for k2, v2 := range v {
  9351. ee.EncodeInt(int64(k2))
  9352. ee.EncodeUint(uint64(v2))
  9353. }
  9354. }
  9355. ee.EncodeEnd()
  9356. }
  9357. func (f *encFnInfo) fastpathEncMapInt32Uint8R(rv reflect.Value) {
  9358. fastpathTV.EncMapInt32Uint8V(rv.Interface().(map[int32]uint8), fastpathCheckNilFalse, f.e)
  9359. }
  9360. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, checkNil bool, e *Encoder) {
  9361. ee := e.e
  9362. if checkNil && v == nil {
  9363. ee.EncodeNil()
  9364. return
  9365. }
  9366. ee.EncodeMapStart(len(v))
  9367. if e.h.Canonical {
  9368. v2 := make([]int64, len(v))
  9369. var i int
  9370. for k, _ := range v {
  9371. v2[i] = int64(k)
  9372. i++
  9373. }
  9374. sort.Sort(intSlice(v2))
  9375. for _, k2 := range v2 {
  9376. ee.EncodeInt(int64(int32(k2)))
  9377. ee.EncodeUint(uint64(v[int32(k2)]))
  9378. }
  9379. } else {
  9380. for k2, v2 := range v {
  9381. ee.EncodeInt(int64(k2))
  9382. ee.EncodeUint(uint64(v2))
  9383. }
  9384. }
  9385. ee.EncodeEnd()
  9386. }
  9387. func (f *encFnInfo) fastpathEncMapInt32Uint16R(rv reflect.Value) {
  9388. fastpathTV.EncMapInt32Uint16V(rv.Interface().(map[int32]uint16), fastpathCheckNilFalse, f.e)
  9389. }
  9390. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, checkNil bool, e *Encoder) {
  9391. ee := e.e
  9392. if checkNil && v == nil {
  9393. ee.EncodeNil()
  9394. return
  9395. }
  9396. ee.EncodeMapStart(len(v))
  9397. if e.h.Canonical {
  9398. v2 := make([]int64, len(v))
  9399. var i int
  9400. for k, _ := range v {
  9401. v2[i] = int64(k)
  9402. i++
  9403. }
  9404. sort.Sort(intSlice(v2))
  9405. for _, k2 := range v2 {
  9406. ee.EncodeInt(int64(int32(k2)))
  9407. ee.EncodeUint(uint64(v[int32(k2)]))
  9408. }
  9409. } else {
  9410. for k2, v2 := range v {
  9411. ee.EncodeInt(int64(k2))
  9412. ee.EncodeUint(uint64(v2))
  9413. }
  9414. }
  9415. ee.EncodeEnd()
  9416. }
  9417. func (f *encFnInfo) fastpathEncMapInt32Uint32R(rv reflect.Value) {
  9418. fastpathTV.EncMapInt32Uint32V(rv.Interface().(map[int32]uint32), fastpathCheckNilFalse, f.e)
  9419. }
  9420. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, checkNil bool, e *Encoder) {
  9421. ee := e.e
  9422. if checkNil && v == nil {
  9423. ee.EncodeNil()
  9424. return
  9425. }
  9426. ee.EncodeMapStart(len(v))
  9427. if e.h.Canonical {
  9428. v2 := make([]int64, len(v))
  9429. var i int
  9430. for k, _ := range v {
  9431. v2[i] = int64(k)
  9432. i++
  9433. }
  9434. sort.Sort(intSlice(v2))
  9435. for _, k2 := range v2 {
  9436. ee.EncodeInt(int64(int32(k2)))
  9437. ee.EncodeUint(uint64(v[int32(k2)]))
  9438. }
  9439. } else {
  9440. for k2, v2 := range v {
  9441. ee.EncodeInt(int64(k2))
  9442. ee.EncodeUint(uint64(v2))
  9443. }
  9444. }
  9445. ee.EncodeEnd()
  9446. }
  9447. func (f *encFnInfo) fastpathEncMapInt32Uint64R(rv reflect.Value) {
  9448. fastpathTV.EncMapInt32Uint64V(rv.Interface().(map[int32]uint64), fastpathCheckNilFalse, f.e)
  9449. }
  9450. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, checkNil bool, e *Encoder) {
  9451. ee := e.e
  9452. if checkNil && v == nil {
  9453. ee.EncodeNil()
  9454. return
  9455. }
  9456. ee.EncodeMapStart(len(v))
  9457. if e.h.Canonical {
  9458. v2 := make([]int64, len(v))
  9459. var i int
  9460. for k, _ := range v {
  9461. v2[i] = int64(k)
  9462. i++
  9463. }
  9464. sort.Sort(intSlice(v2))
  9465. for _, k2 := range v2 {
  9466. ee.EncodeInt(int64(int32(k2)))
  9467. ee.EncodeUint(uint64(v[int32(k2)]))
  9468. }
  9469. } else {
  9470. for k2, v2 := range v {
  9471. ee.EncodeInt(int64(k2))
  9472. ee.EncodeUint(uint64(v2))
  9473. }
  9474. }
  9475. ee.EncodeEnd()
  9476. }
  9477. func (f *encFnInfo) fastpathEncMapInt32UintptrR(rv reflect.Value) {
  9478. fastpathTV.EncMapInt32UintptrV(rv.Interface().(map[int32]uintptr), fastpathCheckNilFalse, f.e)
  9479. }
  9480. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, checkNil bool, e *Encoder) {
  9481. ee := e.e
  9482. if checkNil && v == nil {
  9483. ee.EncodeNil()
  9484. return
  9485. }
  9486. ee.EncodeMapStart(len(v))
  9487. if e.h.Canonical {
  9488. v2 := make([]int64, len(v))
  9489. var i int
  9490. for k, _ := range v {
  9491. v2[i] = int64(k)
  9492. i++
  9493. }
  9494. sort.Sort(intSlice(v2))
  9495. for _, k2 := range v2 {
  9496. ee.EncodeInt(int64(int32(k2)))
  9497. e.encode(v[int32(k2)])
  9498. }
  9499. } else {
  9500. for k2, v2 := range v {
  9501. ee.EncodeInt(int64(k2))
  9502. e.encode(v2)
  9503. }
  9504. }
  9505. ee.EncodeEnd()
  9506. }
  9507. func (f *encFnInfo) fastpathEncMapInt32IntR(rv reflect.Value) {
  9508. fastpathTV.EncMapInt32IntV(rv.Interface().(map[int32]int), fastpathCheckNilFalse, f.e)
  9509. }
  9510. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, checkNil bool, e *Encoder) {
  9511. ee := e.e
  9512. if checkNil && v == nil {
  9513. ee.EncodeNil()
  9514. return
  9515. }
  9516. ee.EncodeMapStart(len(v))
  9517. if e.h.Canonical {
  9518. v2 := make([]int64, len(v))
  9519. var i int
  9520. for k, _ := range v {
  9521. v2[i] = int64(k)
  9522. i++
  9523. }
  9524. sort.Sort(intSlice(v2))
  9525. for _, k2 := range v2 {
  9526. ee.EncodeInt(int64(int32(k2)))
  9527. ee.EncodeInt(int64(v[int32(k2)]))
  9528. }
  9529. } else {
  9530. for k2, v2 := range v {
  9531. ee.EncodeInt(int64(k2))
  9532. ee.EncodeInt(int64(v2))
  9533. }
  9534. }
  9535. ee.EncodeEnd()
  9536. }
  9537. func (f *encFnInfo) fastpathEncMapInt32Int8R(rv reflect.Value) {
  9538. fastpathTV.EncMapInt32Int8V(rv.Interface().(map[int32]int8), fastpathCheckNilFalse, f.e)
  9539. }
  9540. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, checkNil bool, e *Encoder) {
  9541. ee := e.e
  9542. if checkNil && v == nil {
  9543. ee.EncodeNil()
  9544. return
  9545. }
  9546. ee.EncodeMapStart(len(v))
  9547. if e.h.Canonical {
  9548. v2 := make([]int64, len(v))
  9549. var i int
  9550. for k, _ := range v {
  9551. v2[i] = int64(k)
  9552. i++
  9553. }
  9554. sort.Sort(intSlice(v2))
  9555. for _, k2 := range v2 {
  9556. ee.EncodeInt(int64(int32(k2)))
  9557. ee.EncodeInt(int64(v[int32(k2)]))
  9558. }
  9559. } else {
  9560. for k2, v2 := range v {
  9561. ee.EncodeInt(int64(k2))
  9562. ee.EncodeInt(int64(v2))
  9563. }
  9564. }
  9565. ee.EncodeEnd()
  9566. }
  9567. func (f *encFnInfo) fastpathEncMapInt32Int16R(rv reflect.Value) {
  9568. fastpathTV.EncMapInt32Int16V(rv.Interface().(map[int32]int16), fastpathCheckNilFalse, f.e)
  9569. }
  9570. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, checkNil bool, e *Encoder) {
  9571. ee := e.e
  9572. if checkNil && v == nil {
  9573. ee.EncodeNil()
  9574. return
  9575. }
  9576. ee.EncodeMapStart(len(v))
  9577. if e.h.Canonical {
  9578. v2 := make([]int64, len(v))
  9579. var i int
  9580. for k, _ := range v {
  9581. v2[i] = int64(k)
  9582. i++
  9583. }
  9584. sort.Sort(intSlice(v2))
  9585. for _, k2 := range v2 {
  9586. ee.EncodeInt(int64(int32(k2)))
  9587. ee.EncodeInt(int64(v[int32(k2)]))
  9588. }
  9589. } else {
  9590. for k2, v2 := range v {
  9591. ee.EncodeInt(int64(k2))
  9592. ee.EncodeInt(int64(v2))
  9593. }
  9594. }
  9595. ee.EncodeEnd()
  9596. }
  9597. func (f *encFnInfo) fastpathEncMapInt32Int32R(rv reflect.Value) {
  9598. fastpathTV.EncMapInt32Int32V(rv.Interface().(map[int32]int32), fastpathCheckNilFalse, f.e)
  9599. }
  9600. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, checkNil bool, e *Encoder) {
  9601. ee := e.e
  9602. if checkNil && v == nil {
  9603. ee.EncodeNil()
  9604. return
  9605. }
  9606. ee.EncodeMapStart(len(v))
  9607. if e.h.Canonical {
  9608. v2 := make([]int64, len(v))
  9609. var i int
  9610. for k, _ := range v {
  9611. v2[i] = int64(k)
  9612. i++
  9613. }
  9614. sort.Sort(intSlice(v2))
  9615. for _, k2 := range v2 {
  9616. ee.EncodeInt(int64(int32(k2)))
  9617. ee.EncodeInt(int64(v[int32(k2)]))
  9618. }
  9619. } else {
  9620. for k2, v2 := range v {
  9621. ee.EncodeInt(int64(k2))
  9622. ee.EncodeInt(int64(v2))
  9623. }
  9624. }
  9625. ee.EncodeEnd()
  9626. }
  9627. func (f *encFnInfo) fastpathEncMapInt32Int64R(rv reflect.Value) {
  9628. fastpathTV.EncMapInt32Int64V(rv.Interface().(map[int32]int64), fastpathCheckNilFalse, f.e)
  9629. }
  9630. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, checkNil bool, e *Encoder) {
  9631. ee := e.e
  9632. if checkNil && v == nil {
  9633. ee.EncodeNil()
  9634. return
  9635. }
  9636. ee.EncodeMapStart(len(v))
  9637. if e.h.Canonical {
  9638. v2 := make([]int64, len(v))
  9639. var i int
  9640. for k, _ := range v {
  9641. v2[i] = int64(k)
  9642. i++
  9643. }
  9644. sort.Sort(intSlice(v2))
  9645. for _, k2 := range v2 {
  9646. ee.EncodeInt(int64(int32(k2)))
  9647. ee.EncodeInt(int64(v[int32(k2)]))
  9648. }
  9649. } else {
  9650. for k2, v2 := range v {
  9651. ee.EncodeInt(int64(k2))
  9652. ee.EncodeInt(int64(v2))
  9653. }
  9654. }
  9655. ee.EncodeEnd()
  9656. }
  9657. func (f *encFnInfo) fastpathEncMapInt32Float32R(rv reflect.Value) {
  9658. fastpathTV.EncMapInt32Float32V(rv.Interface().(map[int32]float32), fastpathCheckNilFalse, f.e)
  9659. }
  9660. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, checkNil bool, e *Encoder) {
  9661. ee := e.e
  9662. if checkNil && v == nil {
  9663. ee.EncodeNil()
  9664. return
  9665. }
  9666. ee.EncodeMapStart(len(v))
  9667. if e.h.Canonical {
  9668. v2 := make([]int64, len(v))
  9669. var i int
  9670. for k, _ := range v {
  9671. v2[i] = int64(k)
  9672. i++
  9673. }
  9674. sort.Sort(intSlice(v2))
  9675. for _, k2 := range v2 {
  9676. ee.EncodeInt(int64(int32(k2)))
  9677. ee.EncodeFloat32(v[int32(k2)])
  9678. }
  9679. } else {
  9680. for k2, v2 := range v {
  9681. ee.EncodeInt(int64(k2))
  9682. ee.EncodeFloat32(v2)
  9683. }
  9684. }
  9685. ee.EncodeEnd()
  9686. }
  9687. func (f *encFnInfo) fastpathEncMapInt32Float64R(rv reflect.Value) {
  9688. fastpathTV.EncMapInt32Float64V(rv.Interface().(map[int32]float64), fastpathCheckNilFalse, f.e)
  9689. }
  9690. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, checkNil bool, e *Encoder) {
  9691. ee := e.e
  9692. if checkNil && v == nil {
  9693. ee.EncodeNil()
  9694. return
  9695. }
  9696. ee.EncodeMapStart(len(v))
  9697. if e.h.Canonical {
  9698. v2 := make([]int64, len(v))
  9699. var i int
  9700. for k, _ := range v {
  9701. v2[i] = int64(k)
  9702. i++
  9703. }
  9704. sort.Sort(intSlice(v2))
  9705. for _, k2 := range v2 {
  9706. ee.EncodeInt(int64(int32(k2)))
  9707. ee.EncodeFloat64(v[int32(k2)])
  9708. }
  9709. } else {
  9710. for k2, v2 := range v {
  9711. ee.EncodeInt(int64(k2))
  9712. ee.EncodeFloat64(v2)
  9713. }
  9714. }
  9715. ee.EncodeEnd()
  9716. }
  9717. func (f *encFnInfo) fastpathEncMapInt32BoolR(rv reflect.Value) {
  9718. fastpathTV.EncMapInt32BoolV(rv.Interface().(map[int32]bool), fastpathCheckNilFalse, f.e)
  9719. }
  9720. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, checkNil bool, e *Encoder) {
  9721. ee := e.e
  9722. if checkNil && v == nil {
  9723. ee.EncodeNil()
  9724. return
  9725. }
  9726. ee.EncodeMapStart(len(v))
  9727. if e.h.Canonical {
  9728. v2 := make([]int64, len(v))
  9729. var i int
  9730. for k, _ := range v {
  9731. v2[i] = int64(k)
  9732. i++
  9733. }
  9734. sort.Sort(intSlice(v2))
  9735. for _, k2 := range v2 {
  9736. ee.EncodeInt(int64(int32(k2)))
  9737. ee.EncodeBool(v[int32(k2)])
  9738. }
  9739. } else {
  9740. for k2, v2 := range v {
  9741. ee.EncodeInt(int64(k2))
  9742. ee.EncodeBool(v2)
  9743. }
  9744. }
  9745. ee.EncodeEnd()
  9746. }
  9747. func (f *encFnInfo) fastpathEncMapInt64IntfR(rv reflect.Value) {
  9748. fastpathTV.EncMapInt64IntfV(rv.Interface().(map[int64]interface{}), fastpathCheckNilFalse, f.e)
  9749. }
  9750. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, checkNil bool, e *Encoder) {
  9751. ee := e.e
  9752. if checkNil && v == nil {
  9753. ee.EncodeNil()
  9754. return
  9755. }
  9756. ee.EncodeMapStart(len(v))
  9757. if e.h.Canonical {
  9758. v2 := make([]int64, len(v))
  9759. var i int
  9760. for k, _ := range v {
  9761. v2[i] = int64(k)
  9762. i++
  9763. }
  9764. sort.Sort(intSlice(v2))
  9765. for _, k2 := range v2 {
  9766. ee.EncodeInt(int64(int64(k2)))
  9767. e.encode(v[int64(k2)])
  9768. }
  9769. } else {
  9770. for k2, v2 := range v {
  9771. ee.EncodeInt(int64(k2))
  9772. e.encode(v2)
  9773. }
  9774. }
  9775. ee.EncodeEnd()
  9776. }
  9777. func (f *encFnInfo) fastpathEncMapInt64StringR(rv reflect.Value) {
  9778. fastpathTV.EncMapInt64StringV(rv.Interface().(map[int64]string), fastpathCheckNilFalse, f.e)
  9779. }
  9780. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, checkNil bool, e *Encoder) {
  9781. ee := e.e
  9782. if checkNil && v == nil {
  9783. ee.EncodeNil()
  9784. return
  9785. }
  9786. ee.EncodeMapStart(len(v))
  9787. if e.h.Canonical {
  9788. v2 := make([]int64, len(v))
  9789. var i int
  9790. for k, _ := range v {
  9791. v2[i] = int64(k)
  9792. i++
  9793. }
  9794. sort.Sort(intSlice(v2))
  9795. for _, k2 := range v2 {
  9796. ee.EncodeInt(int64(int64(k2)))
  9797. ee.EncodeString(c_UTF8, v[int64(k2)])
  9798. }
  9799. } else {
  9800. for k2, v2 := range v {
  9801. ee.EncodeInt(int64(k2))
  9802. ee.EncodeString(c_UTF8, v2)
  9803. }
  9804. }
  9805. ee.EncodeEnd()
  9806. }
  9807. func (f *encFnInfo) fastpathEncMapInt64UintR(rv reflect.Value) {
  9808. fastpathTV.EncMapInt64UintV(rv.Interface().(map[int64]uint), fastpathCheckNilFalse, f.e)
  9809. }
  9810. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, checkNil bool, e *Encoder) {
  9811. ee := e.e
  9812. if checkNil && v == nil {
  9813. ee.EncodeNil()
  9814. return
  9815. }
  9816. ee.EncodeMapStart(len(v))
  9817. if e.h.Canonical {
  9818. v2 := make([]int64, len(v))
  9819. var i int
  9820. for k, _ := range v {
  9821. v2[i] = int64(k)
  9822. i++
  9823. }
  9824. sort.Sort(intSlice(v2))
  9825. for _, k2 := range v2 {
  9826. ee.EncodeInt(int64(int64(k2)))
  9827. ee.EncodeUint(uint64(v[int64(k2)]))
  9828. }
  9829. } else {
  9830. for k2, v2 := range v {
  9831. ee.EncodeInt(int64(k2))
  9832. ee.EncodeUint(uint64(v2))
  9833. }
  9834. }
  9835. ee.EncodeEnd()
  9836. }
  9837. func (f *encFnInfo) fastpathEncMapInt64Uint8R(rv reflect.Value) {
  9838. fastpathTV.EncMapInt64Uint8V(rv.Interface().(map[int64]uint8), fastpathCheckNilFalse, f.e)
  9839. }
  9840. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, checkNil bool, e *Encoder) {
  9841. ee := e.e
  9842. if checkNil && v == nil {
  9843. ee.EncodeNil()
  9844. return
  9845. }
  9846. ee.EncodeMapStart(len(v))
  9847. if e.h.Canonical {
  9848. v2 := make([]int64, len(v))
  9849. var i int
  9850. for k, _ := range v {
  9851. v2[i] = int64(k)
  9852. i++
  9853. }
  9854. sort.Sort(intSlice(v2))
  9855. for _, k2 := range v2 {
  9856. ee.EncodeInt(int64(int64(k2)))
  9857. ee.EncodeUint(uint64(v[int64(k2)]))
  9858. }
  9859. } else {
  9860. for k2, v2 := range v {
  9861. ee.EncodeInt(int64(k2))
  9862. ee.EncodeUint(uint64(v2))
  9863. }
  9864. }
  9865. ee.EncodeEnd()
  9866. }
  9867. func (f *encFnInfo) fastpathEncMapInt64Uint16R(rv reflect.Value) {
  9868. fastpathTV.EncMapInt64Uint16V(rv.Interface().(map[int64]uint16), fastpathCheckNilFalse, f.e)
  9869. }
  9870. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, checkNil bool, e *Encoder) {
  9871. ee := e.e
  9872. if checkNil && v == nil {
  9873. ee.EncodeNil()
  9874. return
  9875. }
  9876. ee.EncodeMapStart(len(v))
  9877. if e.h.Canonical {
  9878. v2 := make([]int64, len(v))
  9879. var i int
  9880. for k, _ := range v {
  9881. v2[i] = int64(k)
  9882. i++
  9883. }
  9884. sort.Sort(intSlice(v2))
  9885. for _, k2 := range v2 {
  9886. ee.EncodeInt(int64(int64(k2)))
  9887. ee.EncodeUint(uint64(v[int64(k2)]))
  9888. }
  9889. } else {
  9890. for k2, v2 := range v {
  9891. ee.EncodeInt(int64(k2))
  9892. ee.EncodeUint(uint64(v2))
  9893. }
  9894. }
  9895. ee.EncodeEnd()
  9896. }
  9897. func (f *encFnInfo) fastpathEncMapInt64Uint32R(rv reflect.Value) {
  9898. fastpathTV.EncMapInt64Uint32V(rv.Interface().(map[int64]uint32), fastpathCheckNilFalse, f.e)
  9899. }
  9900. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, checkNil bool, e *Encoder) {
  9901. ee := e.e
  9902. if checkNil && v == nil {
  9903. ee.EncodeNil()
  9904. return
  9905. }
  9906. ee.EncodeMapStart(len(v))
  9907. if e.h.Canonical {
  9908. v2 := make([]int64, len(v))
  9909. var i int
  9910. for k, _ := range v {
  9911. v2[i] = int64(k)
  9912. i++
  9913. }
  9914. sort.Sort(intSlice(v2))
  9915. for _, k2 := range v2 {
  9916. ee.EncodeInt(int64(int64(k2)))
  9917. ee.EncodeUint(uint64(v[int64(k2)]))
  9918. }
  9919. } else {
  9920. for k2, v2 := range v {
  9921. ee.EncodeInt(int64(k2))
  9922. ee.EncodeUint(uint64(v2))
  9923. }
  9924. }
  9925. ee.EncodeEnd()
  9926. }
  9927. func (f *encFnInfo) fastpathEncMapInt64Uint64R(rv reflect.Value) {
  9928. fastpathTV.EncMapInt64Uint64V(rv.Interface().(map[int64]uint64), fastpathCheckNilFalse, f.e)
  9929. }
  9930. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, checkNil bool, e *Encoder) {
  9931. ee := e.e
  9932. if checkNil && v == nil {
  9933. ee.EncodeNil()
  9934. return
  9935. }
  9936. ee.EncodeMapStart(len(v))
  9937. if e.h.Canonical {
  9938. v2 := make([]int64, len(v))
  9939. var i int
  9940. for k, _ := range v {
  9941. v2[i] = int64(k)
  9942. i++
  9943. }
  9944. sort.Sort(intSlice(v2))
  9945. for _, k2 := range v2 {
  9946. ee.EncodeInt(int64(int64(k2)))
  9947. ee.EncodeUint(uint64(v[int64(k2)]))
  9948. }
  9949. } else {
  9950. for k2, v2 := range v {
  9951. ee.EncodeInt(int64(k2))
  9952. ee.EncodeUint(uint64(v2))
  9953. }
  9954. }
  9955. ee.EncodeEnd()
  9956. }
  9957. func (f *encFnInfo) fastpathEncMapInt64UintptrR(rv reflect.Value) {
  9958. fastpathTV.EncMapInt64UintptrV(rv.Interface().(map[int64]uintptr), fastpathCheckNilFalse, f.e)
  9959. }
  9960. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, checkNil bool, e *Encoder) {
  9961. ee := e.e
  9962. if checkNil && v == nil {
  9963. ee.EncodeNil()
  9964. return
  9965. }
  9966. ee.EncodeMapStart(len(v))
  9967. if e.h.Canonical {
  9968. v2 := make([]int64, len(v))
  9969. var i int
  9970. for k, _ := range v {
  9971. v2[i] = int64(k)
  9972. i++
  9973. }
  9974. sort.Sort(intSlice(v2))
  9975. for _, k2 := range v2 {
  9976. ee.EncodeInt(int64(int64(k2)))
  9977. e.encode(v[int64(k2)])
  9978. }
  9979. } else {
  9980. for k2, v2 := range v {
  9981. ee.EncodeInt(int64(k2))
  9982. e.encode(v2)
  9983. }
  9984. }
  9985. ee.EncodeEnd()
  9986. }
  9987. func (f *encFnInfo) fastpathEncMapInt64IntR(rv reflect.Value) {
  9988. fastpathTV.EncMapInt64IntV(rv.Interface().(map[int64]int), fastpathCheckNilFalse, f.e)
  9989. }
  9990. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, checkNil bool, e *Encoder) {
  9991. ee := e.e
  9992. if checkNil && v == nil {
  9993. ee.EncodeNil()
  9994. return
  9995. }
  9996. ee.EncodeMapStart(len(v))
  9997. if e.h.Canonical {
  9998. v2 := make([]int64, len(v))
  9999. var i int
  10000. for k, _ := range v {
  10001. v2[i] = int64(k)
  10002. i++
  10003. }
  10004. sort.Sort(intSlice(v2))
  10005. for _, k2 := range v2 {
  10006. ee.EncodeInt(int64(int64(k2)))
  10007. ee.EncodeInt(int64(v[int64(k2)]))
  10008. }
  10009. } else {
  10010. for k2, v2 := range v {
  10011. ee.EncodeInt(int64(k2))
  10012. ee.EncodeInt(int64(v2))
  10013. }
  10014. }
  10015. ee.EncodeEnd()
  10016. }
  10017. func (f *encFnInfo) fastpathEncMapInt64Int8R(rv reflect.Value) {
  10018. fastpathTV.EncMapInt64Int8V(rv.Interface().(map[int64]int8), fastpathCheckNilFalse, f.e)
  10019. }
  10020. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, checkNil bool, e *Encoder) {
  10021. ee := e.e
  10022. if checkNil && v == nil {
  10023. ee.EncodeNil()
  10024. return
  10025. }
  10026. ee.EncodeMapStart(len(v))
  10027. if e.h.Canonical {
  10028. v2 := make([]int64, len(v))
  10029. var i int
  10030. for k, _ := range v {
  10031. v2[i] = int64(k)
  10032. i++
  10033. }
  10034. sort.Sort(intSlice(v2))
  10035. for _, k2 := range v2 {
  10036. ee.EncodeInt(int64(int64(k2)))
  10037. ee.EncodeInt(int64(v[int64(k2)]))
  10038. }
  10039. } else {
  10040. for k2, v2 := range v {
  10041. ee.EncodeInt(int64(k2))
  10042. ee.EncodeInt(int64(v2))
  10043. }
  10044. }
  10045. ee.EncodeEnd()
  10046. }
  10047. func (f *encFnInfo) fastpathEncMapInt64Int16R(rv reflect.Value) {
  10048. fastpathTV.EncMapInt64Int16V(rv.Interface().(map[int64]int16), fastpathCheckNilFalse, f.e)
  10049. }
  10050. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, checkNil bool, e *Encoder) {
  10051. ee := e.e
  10052. if checkNil && v == nil {
  10053. ee.EncodeNil()
  10054. return
  10055. }
  10056. ee.EncodeMapStart(len(v))
  10057. if e.h.Canonical {
  10058. v2 := make([]int64, len(v))
  10059. var i int
  10060. for k, _ := range v {
  10061. v2[i] = int64(k)
  10062. i++
  10063. }
  10064. sort.Sort(intSlice(v2))
  10065. for _, k2 := range v2 {
  10066. ee.EncodeInt(int64(int64(k2)))
  10067. ee.EncodeInt(int64(v[int64(k2)]))
  10068. }
  10069. } else {
  10070. for k2, v2 := range v {
  10071. ee.EncodeInt(int64(k2))
  10072. ee.EncodeInt(int64(v2))
  10073. }
  10074. }
  10075. ee.EncodeEnd()
  10076. }
  10077. func (f *encFnInfo) fastpathEncMapInt64Int32R(rv reflect.Value) {
  10078. fastpathTV.EncMapInt64Int32V(rv.Interface().(map[int64]int32), fastpathCheckNilFalse, f.e)
  10079. }
  10080. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, checkNil bool, e *Encoder) {
  10081. ee := e.e
  10082. if checkNil && v == nil {
  10083. ee.EncodeNil()
  10084. return
  10085. }
  10086. ee.EncodeMapStart(len(v))
  10087. if e.h.Canonical {
  10088. v2 := make([]int64, len(v))
  10089. var i int
  10090. for k, _ := range v {
  10091. v2[i] = int64(k)
  10092. i++
  10093. }
  10094. sort.Sort(intSlice(v2))
  10095. for _, k2 := range v2 {
  10096. ee.EncodeInt(int64(int64(k2)))
  10097. ee.EncodeInt(int64(v[int64(k2)]))
  10098. }
  10099. } else {
  10100. for k2, v2 := range v {
  10101. ee.EncodeInt(int64(k2))
  10102. ee.EncodeInt(int64(v2))
  10103. }
  10104. }
  10105. ee.EncodeEnd()
  10106. }
  10107. func (f *encFnInfo) fastpathEncMapInt64Int64R(rv reflect.Value) {
  10108. fastpathTV.EncMapInt64Int64V(rv.Interface().(map[int64]int64), fastpathCheckNilFalse, f.e)
  10109. }
  10110. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, checkNil bool, e *Encoder) {
  10111. ee := e.e
  10112. if checkNil && v == nil {
  10113. ee.EncodeNil()
  10114. return
  10115. }
  10116. ee.EncodeMapStart(len(v))
  10117. if e.h.Canonical {
  10118. v2 := make([]int64, len(v))
  10119. var i int
  10120. for k, _ := range v {
  10121. v2[i] = int64(k)
  10122. i++
  10123. }
  10124. sort.Sort(intSlice(v2))
  10125. for _, k2 := range v2 {
  10126. ee.EncodeInt(int64(int64(k2)))
  10127. ee.EncodeInt(int64(v[int64(k2)]))
  10128. }
  10129. } else {
  10130. for k2, v2 := range v {
  10131. ee.EncodeInt(int64(k2))
  10132. ee.EncodeInt(int64(v2))
  10133. }
  10134. }
  10135. ee.EncodeEnd()
  10136. }
  10137. func (f *encFnInfo) fastpathEncMapInt64Float32R(rv reflect.Value) {
  10138. fastpathTV.EncMapInt64Float32V(rv.Interface().(map[int64]float32), fastpathCheckNilFalse, f.e)
  10139. }
  10140. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, checkNil bool, e *Encoder) {
  10141. ee := e.e
  10142. if checkNil && v == nil {
  10143. ee.EncodeNil()
  10144. return
  10145. }
  10146. ee.EncodeMapStart(len(v))
  10147. if e.h.Canonical {
  10148. v2 := make([]int64, len(v))
  10149. var i int
  10150. for k, _ := range v {
  10151. v2[i] = int64(k)
  10152. i++
  10153. }
  10154. sort.Sort(intSlice(v2))
  10155. for _, k2 := range v2 {
  10156. ee.EncodeInt(int64(int64(k2)))
  10157. ee.EncodeFloat32(v[int64(k2)])
  10158. }
  10159. } else {
  10160. for k2, v2 := range v {
  10161. ee.EncodeInt(int64(k2))
  10162. ee.EncodeFloat32(v2)
  10163. }
  10164. }
  10165. ee.EncodeEnd()
  10166. }
  10167. func (f *encFnInfo) fastpathEncMapInt64Float64R(rv reflect.Value) {
  10168. fastpathTV.EncMapInt64Float64V(rv.Interface().(map[int64]float64), fastpathCheckNilFalse, f.e)
  10169. }
  10170. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, checkNil bool, e *Encoder) {
  10171. ee := e.e
  10172. if checkNil && v == nil {
  10173. ee.EncodeNil()
  10174. return
  10175. }
  10176. ee.EncodeMapStart(len(v))
  10177. if e.h.Canonical {
  10178. v2 := make([]int64, len(v))
  10179. var i int
  10180. for k, _ := range v {
  10181. v2[i] = int64(k)
  10182. i++
  10183. }
  10184. sort.Sort(intSlice(v2))
  10185. for _, k2 := range v2 {
  10186. ee.EncodeInt(int64(int64(k2)))
  10187. ee.EncodeFloat64(v[int64(k2)])
  10188. }
  10189. } else {
  10190. for k2, v2 := range v {
  10191. ee.EncodeInt(int64(k2))
  10192. ee.EncodeFloat64(v2)
  10193. }
  10194. }
  10195. ee.EncodeEnd()
  10196. }
  10197. func (f *encFnInfo) fastpathEncMapInt64BoolR(rv reflect.Value) {
  10198. fastpathTV.EncMapInt64BoolV(rv.Interface().(map[int64]bool), fastpathCheckNilFalse, f.e)
  10199. }
  10200. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, checkNil bool, e *Encoder) {
  10201. ee := e.e
  10202. if checkNil && v == nil {
  10203. ee.EncodeNil()
  10204. return
  10205. }
  10206. ee.EncodeMapStart(len(v))
  10207. if e.h.Canonical {
  10208. v2 := make([]int64, len(v))
  10209. var i int
  10210. for k, _ := range v {
  10211. v2[i] = int64(k)
  10212. i++
  10213. }
  10214. sort.Sort(intSlice(v2))
  10215. for _, k2 := range v2 {
  10216. ee.EncodeInt(int64(int64(k2)))
  10217. ee.EncodeBool(v[int64(k2)])
  10218. }
  10219. } else {
  10220. for k2, v2 := range v {
  10221. ee.EncodeInt(int64(k2))
  10222. ee.EncodeBool(v2)
  10223. }
  10224. }
  10225. ee.EncodeEnd()
  10226. }
  10227. func (f *encFnInfo) fastpathEncMapBoolIntfR(rv reflect.Value) {
  10228. fastpathTV.EncMapBoolIntfV(rv.Interface().(map[bool]interface{}), fastpathCheckNilFalse, f.e)
  10229. }
  10230. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, checkNil bool, e *Encoder) {
  10231. ee := e.e
  10232. if checkNil && v == nil {
  10233. ee.EncodeNil()
  10234. return
  10235. }
  10236. ee.EncodeMapStart(len(v))
  10237. if e.h.Canonical {
  10238. v2 := make([]bool, len(v))
  10239. var i int
  10240. for k, _ := range v {
  10241. v2[i] = bool(k)
  10242. i++
  10243. }
  10244. sort.Sort(boolSlice(v2))
  10245. for _, k2 := range v2 {
  10246. ee.EncodeBool(bool(k2))
  10247. e.encode(v[bool(k2)])
  10248. }
  10249. } else {
  10250. for k2, v2 := range v {
  10251. ee.EncodeBool(k2)
  10252. e.encode(v2)
  10253. }
  10254. }
  10255. ee.EncodeEnd()
  10256. }
  10257. func (f *encFnInfo) fastpathEncMapBoolStringR(rv reflect.Value) {
  10258. fastpathTV.EncMapBoolStringV(rv.Interface().(map[bool]string), fastpathCheckNilFalse, f.e)
  10259. }
  10260. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, checkNil bool, e *Encoder) {
  10261. ee := e.e
  10262. if checkNil && v == nil {
  10263. ee.EncodeNil()
  10264. return
  10265. }
  10266. ee.EncodeMapStart(len(v))
  10267. if e.h.Canonical {
  10268. v2 := make([]bool, len(v))
  10269. var i int
  10270. for k, _ := range v {
  10271. v2[i] = bool(k)
  10272. i++
  10273. }
  10274. sort.Sort(boolSlice(v2))
  10275. for _, k2 := range v2 {
  10276. ee.EncodeBool(bool(k2))
  10277. ee.EncodeString(c_UTF8, v[bool(k2)])
  10278. }
  10279. } else {
  10280. for k2, v2 := range v {
  10281. ee.EncodeBool(k2)
  10282. ee.EncodeString(c_UTF8, v2)
  10283. }
  10284. }
  10285. ee.EncodeEnd()
  10286. }
  10287. func (f *encFnInfo) fastpathEncMapBoolUintR(rv reflect.Value) {
  10288. fastpathTV.EncMapBoolUintV(rv.Interface().(map[bool]uint), fastpathCheckNilFalse, f.e)
  10289. }
  10290. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, checkNil bool, e *Encoder) {
  10291. ee := e.e
  10292. if checkNil && v == nil {
  10293. ee.EncodeNil()
  10294. return
  10295. }
  10296. ee.EncodeMapStart(len(v))
  10297. if e.h.Canonical {
  10298. v2 := make([]bool, len(v))
  10299. var i int
  10300. for k, _ := range v {
  10301. v2[i] = bool(k)
  10302. i++
  10303. }
  10304. sort.Sort(boolSlice(v2))
  10305. for _, k2 := range v2 {
  10306. ee.EncodeBool(bool(k2))
  10307. ee.EncodeUint(uint64(v[bool(k2)]))
  10308. }
  10309. } else {
  10310. for k2, v2 := range v {
  10311. ee.EncodeBool(k2)
  10312. ee.EncodeUint(uint64(v2))
  10313. }
  10314. }
  10315. ee.EncodeEnd()
  10316. }
  10317. func (f *encFnInfo) fastpathEncMapBoolUint8R(rv reflect.Value) {
  10318. fastpathTV.EncMapBoolUint8V(rv.Interface().(map[bool]uint8), fastpathCheckNilFalse, f.e)
  10319. }
  10320. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, checkNil bool, e *Encoder) {
  10321. ee := e.e
  10322. if checkNil && v == nil {
  10323. ee.EncodeNil()
  10324. return
  10325. }
  10326. ee.EncodeMapStart(len(v))
  10327. if e.h.Canonical {
  10328. v2 := make([]bool, len(v))
  10329. var i int
  10330. for k, _ := range v {
  10331. v2[i] = bool(k)
  10332. i++
  10333. }
  10334. sort.Sort(boolSlice(v2))
  10335. for _, k2 := range v2 {
  10336. ee.EncodeBool(bool(k2))
  10337. ee.EncodeUint(uint64(v[bool(k2)]))
  10338. }
  10339. } else {
  10340. for k2, v2 := range v {
  10341. ee.EncodeBool(k2)
  10342. ee.EncodeUint(uint64(v2))
  10343. }
  10344. }
  10345. ee.EncodeEnd()
  10346. }
  10347. func (f *encFnInfo) fastpathEncMapBoolUint16R(rv reflect.Value) {
  10348. fastpathTV.EncMapBoolUint16V(rv.Interface().(map[bool]uint16), fastpathCheckNilFalse, f.e)
  10349. }
  10350. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, checkNil bool, e *Encoder) {
  10351. ee := e.e
  10352. if checkNil && v == nil {
  10353. ee.EncodeNil()
  10354. return
  10355. }
  10356. ee.EncodeMapStart(len(v))
  10357. if e.h.Canonical {
  10358. v2 := make([]bool, len(v))
  10359. var i int
  10360. for k, _ := range v {
  10361. v2[i] = bool(k)
  10362. i++
  10363. }
  10364. sort.Sort(boolSlice(v2))
  10365. for _, k2 := range v2 {
  10366. ee.EncodeBool(bool(k2))
  10367. ee.EncodeUint(uint64(v[bool(k2)]))
  10368. }
  10369. } else {
  10370. for k2, v2 := range v {
  10371. ee.EncodeBool(k2)
  10372. ee.EncodeUint(uint64(v2))
  10373. }
  10374. }
  10375. ee.EncodeEnd()
  10376. }
  10377. func (f *encFnInfo) fastpathEncMapBoolUint32R(rv reflect.Value) {
  10378. fastpathTV.EncMapBoolUint32V(rv.Interface().(map[bool]uint32), fastpathCheckNilFalse, f.e)
  10379. }
  10380. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, checkNil bool, e *Encoder) {
  10381. ee := e.e
  10382. if checkNil && v == nil {
  10383. ee.EncodeNil()
  10384. return
  10385. }
  10386. ee.EncodeMapStart(len(v))
  10387. if e.h.Canonical {
  10388. v2 := make([]bool, len(v))
  10389. var i int
  10390. for k, _ := range v {
  10391. v2[i] = bool(k)
  10392. i++
  10393. }
  10394. sort.Sort(boolSlice(v2))
  10395. for _, k2 := range v2 {
  10396. ee.EncodeBool(bool(k2))
  10397. ee.EncodeUint(uint64(v[bool(k2)]))
  10398. }
  10399. } else {
  10400. for k2, v2 := range v {
  10401. ee.EncodeBool(k2)
  10402. ee.EncodeUint(uint64(v2))
  10403. }
  10404. }
  10405. ee.EncodeEnd()
  10406. }
  10407. func (f *encFnInfo) fastpathEncMapBoolUint64R(rv reflect.Value) {
  10408. fastpathTV.EncMapBoolUint64V(rv.Interface().(map[bool]uint64), fastpathCheckNilFalse, f.e)
  10409. }
  10410. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, checkNil bool, e *Encoder) {
  10411. ee := e.e
  10412. if checkNil && v == nil {
  10413. ee.EncodeNil()
  10414. return
  10415. }
  10416. ee.EncodeMapStart(len(v))
  10417. if e.h.Canonical {
  10418. v2 := make([]bool, len(v))
  10419. var i int
  10420. for k, _ := range v {
  10421. v2[i] = bool(k)
  10422. i++
  10423. }
  10424. sort.Sort(boolSlice(v2))
  10425. for _, k2 := range v2 {
  10426. ee.EncodeBool(bool(k2))
  10427. ee.EncodeUint(uint64(v[bool(k2)]))
  10428. }
  10429. } else {
  10430. for k2, v2 := range v {
  10431. ee.EncodeBool(k2)
  10432. ee.EncodeUint(uint64(v2))
  10433. }
  10434. }
  10435. ee.EncodeEnd()
  10436. }
  10437. func (f *encFnInfo) fastpathEncMapBoolUintptrR(rv reflect.Value) {
  10438. fastpathTV.EncMapBoolUintptrV(rv.Interface().(map[bool]uintptr), fastpathCheckNilFalse, f.e)
  10439. }
  10440. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, checkNil bool, e *Encoder) {
  10441. ee := e.e
  10442. if checkNil && v == nil {
  10443. ee.EncodeNil()
  10444. return
  10445. }
  10446. ee.EncodeMapStart(len(v))
  10447. if e.h.Canonical {
  10448. v2 := make([]bool, len(v))
  10449. var i int
  10450. for k, _ := range v {
  10451. v2[i] = bool(k)
  10452. i++
  10453. }
  10454. sort.Sort(boolSlice(v2))
  10455. for _, k2 := range v2 {
  10456. ee.EncodeBool(bool(k2))
  10457. e.encode(v[bool(k2)])
  10458. }
  10459. } else {
  10460. for k2, v2 := range v {
  10461. ee.EncodeBool(k2)
  10462. e.encode(v2)
  10463. }
  10464. }
  10465. ee.EncodeEnd()
  10466. }
  10467. func (f *encFnInfo) fastpathEncMapBoolIntR(rv reflect.Value) {
  10468. fastpathTV.EncMapBoolIntV(rv.Interface().(map[bool]int), fastpathCheckNilFalse, f.e)
  10469. }
  10470. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, checkNil bool, e *Encoder) {
  10471. ee := e.e
  10472. if checkNil && v == nil {
  10473. ee.EncodeNil()
  10474. return
  10475. }
  10476. ee.EncodeMapStart(len(v))
  10477. if e.h.Canonical {
  10478. v2 := make([]bool, len(v))
  10479. var i int
  10480. for k, _ := range v {
  10481. v2[i] = bool(k)
  10482. i++
  10483. }
  10484. sort.Sort(boolSlice(v2))
  10485. for _, k2 := range v2 {
  10486. ee.EncodeBool(bool(k2))
  10487. ee.EncodeInt(int64(v[bool(k2)]))
  10488. }
  10489. } else {
  10490. for k2, v2 := range v {
  10491. ee.EncodeBool(k2)
  10492. ee.EncodeInt(int64(v2))
  10493. }
  10494. }
  10495. ee.EncodeEnd()
  10496. }
  10497. func (f *encFnInfo) fastpathEncMapBoolInt8R(rv reflect.Value) {
  10498. fastpathTV.EncMapBoolInt8V(rv.Interface().(map[bool]int8), fastpathCheckNilFalse, f.e)
  10499. }
  10500. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, checkNil bool, e *Encoder) {
  10501. ee := e.e
  10502. if checkNil && v == nil {
  10503. ee.EncodeNil()
  10504. return
  10505. }
  10506. ee.EncodeMapStart(len(v))
  10507. if e.h.Canonical {
  10508. v2 := make([]bool, len(v))
  10509. var i int
  10510. for k, _ := range v {
  10511. v2[i] = bool(k)
  10512. i++
  10513. }
  10514. sort.Sort(boolSlice(v2))
  10515. for _, k2 := range v2 {
  10516. ee.EncodeBool(bool(k2))
  10517. ee.EncodeInt(int64(v[bool(k2)]))
  10518. }
  10519. } else {
  10520. for k2, v2 := range v {
  10521. ee.EncodeBool(k2)
  10522. ee.EncodeInt(int64(v2))
  10523. }
  10524. }
  10525. ee.EncodeEnd()
  10526. }
  10527. func (f *encFnInfo) fastpathEncMapBoolInt16R(rv reflect.Value) {
  10528. fastpathTV.EncMapBoolInt16V(rv.Interface().(map[bool]int16), fastpathCheckNilFalse, f.e)
  10529. }
  10530. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, checkNil bool, e *Encoder) {
  10531. ee := e.e
  10532. if checkNil && v == nil {
  10533. ee.EncodeNil()
  10534. return
  10535. }
  10536. ee.EncodeMapStart(len(v))
  10537. if e.h.Canonical {
  10538. v2 := make([]bool, len(v))
  10539. var i int
  10540. for k, _ := range v {
  10541. v2[i] = bool(k)
  10542. i++
  10543. }
  10544. sort.Sort(boolSlice(v2))
  10545. for _, k2 := range v2 {
  10546. ee.EncodeBool(bool(k2))
  10547. ee.EncodeInt(int64(v[bool(k2)]))
  10548. }
  10549. } else {
  10550. for k2, v2 := range v {
  10551. ee.EncodeBool(k2)
  10552. ee.EncodeInt(int64(v2))
  10553. }
  10554. }
  10555. ee.EncodeEnd()
  10556. }
  10557. func (f *encFnInfo) fastpathEncMapBoolInt32R(rv reflect.Value) {
  10558. fastpathTV.EncMapBoolInt32V(rv.Interface().(map[bool]int32), fastpathCheckNilFalse, f.e)
  10559. }
  10560. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, checkNil bool, e *Encoder) {
  10561. ee := e.e
  10562. if checkNil && v == nil {
  10563. ee.EncodeNil()
  10564. return
  10565. }
  10566. ee.EncodeMapStart(len(v))
  10567. if e.h.Canonical {
  10568. v2 := make([]bool, len(v))
  10569. var i int
  10570. for k, _ := range v {
  10571. v2[i] = bool(k)
  10572. i++
  10573. }
  10574. sort.Sort(boolSlice(v2))
  10575. for _, k2 := range v2 {
  10576. ee.EncodeBool(bool(k2))
  10577. ee.EncodeInt(int64(v[bool(k2)]))
  10578. }
  10579. } else {
  10580. for k2, v2 := range v {
  10581. ee.EncodeBool(k2)
  10582. ee.EncodeInt(int64(v2))
  10583. }
  10584. }
  10585. ee.EncodeEnd()
  10586. }
  10587. func (f *encFnInfo) fastpathEncMapBoolInt64R(rv reflect.Value) {
  10588. fastpathTV.EncMapBoolInt64V(rv.Interface().(map[bool]int64), fastpathCheckNilFalse, f.e)
  10589. }
  10590. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, checkNil bool, e *Encoder) {
  10591. ee := e.e
  10592. if checkNil && v == nil {
  10593. ee.EncodeNil()
  10594. return
  10595. }
  10596. ee.EncodeMapStart(len(v))
  10597. if e.h.Canonical {
  10598. v2 := make([]bool, len(v))
  10599. var i int
  10600. for k, _ := range v {
  10601. v2[i] = bool(k)
  10602. i++
  10603. }
  10604. sort.Sort(boolSlice(v2))
  10605. for _, k2 := range v2 {
  10606. ee.EncodeBool(bool(k2))
  10607. ee.EncodeInt(int64(v[bool(k2)]))
  10608. }
  10609. } else {
  10610. for k2, v2 := range v {
  10611. ee.EncodeBool(k2)
  10612. ee.EncodeInt(int64(v2))
  10613. }
  10614. }
  10615. ee.EncodeEnd()
  10616. }
  10617. func (f *encFnInfo) fastpathEncMapBoolFloat32R(rv reflect.Value) {
  10618. fastpathTV.EncMapBoolFloat32V(rv.Interface().(map[bool]float32), fastpathCheckNilFalse, f.e)
  10619. }
  10620. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, checkNil bool, e *Encoder) {
  10621. ee := e.e
  10622. if checkNil && v == nil {
  10623. ee.EncodeNil()
  10624. return
  10625. }
  10626. ee.EncodeMapStart(len(v))
  10627. if e.h.Canonical {
  10628. v2 := make([]bool, len(v))
  10629. var i int
  10630. for k, _ := range v {
  10631. v2[i] = bool(k)
  10632. i++
  10633. }
  10634. sort.Sort(boolSlice(v2))
  10635. for _, k2 := range v2 {
  10636. ee.EncodeBool(bool(k2))
  10637. ee.EncodeFloat32(v[bool(k2)])
  10638. }
  10639. } else {
  10640. for k2, v2 := range v {
  10641. ee.EncodeBool(k2)
  10642. ee.EncodeFloat32(v2)
  10643. }
  10644. }
  10645. ee.EncodeEnd()
  10646. }
  10647. func (f *encFnInfo) fastpathEncMapBoolFloat64R(rv reflect.Value) {
  10648. fastpathTV.EncMapBoolFloat64V(rv.Interface().(map[bool]float64), fastpathCheckNilFalse, f.e)
  10649. }
  10650. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, checkNil bool, e *Encoder) {
  10651. ee := e.e
  10652. if checkNil && v == nil {
  10653. ee.EncodeNil()
  10654. return
  10655. }
  10656. ee.EncodeMapStart(len(v))
  10657. if e.h.Canonical {
  10658. v2 := make([]bool, len(v))
  10659. var i int
  10660. for k, _ := range v {
  10661. v2[i] = bool(k)
  10662. i++
  10663. }
  10664. sort.Sort(boolSlice(v2))
  10665. for _, k2 := range v2 {
  10666. ee.EncodeBool(bool(k2))
  10667. ee.EncodeFloat64(v[bool(k2)])
  10668. }
  10669. } else {
  10670. for k2, v2 := range v {
  10671. ee.EncodeBool(k2)
  10672. ee.EncodeFloat64(v2)
  10673. }
  10674. }
  10675. ee.EncodeEnd()
  10676. }
  10677. func (f *encFnInfo) fastpathEncMapBoolBoolR(rv reflect.Value) {
  10678. fastpathTV.EncMapBoolBoolV(rv.Interface().(map[bool]bool), fastpathCheckNilFalse, f.e)
  10679. }
  10680. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, checkNil bool, e *Encoder) {
  10681. ee := e.e
  10682. if checkNil && v == nil {
  10683. ee.EncodeNil()
  10684. return
  10685. }
  10686. ee.EncodeMapStart(len(v))
  10687. if e.h.Canonical {
  10688. v2 := make([]bool, len(v))
  10689. var i int
  10690. for k, _ := range v {
  10691. v2[i] = bool(k)
  10692. i++
  10693. }
  10694. sort.Sort(boolSlice(v2))
  10695. for _, k2 := range v2 {
  10696. ee.EncodeBool(bool(k2))
  10697. ee.EncodeBool(v[bool(k2)])
  10698. }
  10699. } else {
  10700. for k2, v2 := range v {
  10701. ee.EncodeBool(k2)
  10702. ee.EncodeBool(v2)
  10703. }
  10704. }
  10705. ee.EncodeEnd()
  10706. }
  10707. // -- decode
  10708. // -- -- fast path type switch
  10709. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  10710. switch v := iv.(type) {
  10711. case []interface{}:
  10712. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, d)
  10713. case *[]interface{}:
  10714. v2, changed2 := fastpathTV.DecSliceIntfV(*v, fastpathCheckNilFalse, true, d)
  10715. if changed2 {
  10716. *v = v2
  10717. }
  10718. case map[interface{}]interface{}:
  10719. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, d)
  10720. case *map[interface{}]interface{}:
  10721. v2, changed2 := fastpathTV.DecMapIntfIntfV(*v, fastpathCheckNilFalse, true, d)
  10722. if changed2 {
  10723. *v = v2
  10724. }
  10725. case map[interface{}]string:
  10726. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, d)
  10727. case *map[interface{}]string:
  10728. v2, changed2 := fastpathTV.DecMapIntfStringV(*v, fastpathCheckNilFalse, true, d)
  10729. if changed2 {
  10730. *v = v2
  10731. }
  10732. case map[interface{}]uint:
  10733. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, d)
  10734. case *map[interface{}]uint:
  10735. v2, changed2 := fastpathTV.DecMapIntfUintV(*v, fastpathCheckNilFalse, true, d)
  10736. if changed2 {
  10737. *v = v2
  10738. }
  10739. case map[interface{}]uint8:
  10740. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, d)
  10741. case *map[interface{}]uint8:
  10742. v2, changed2 := fastpathTV.DecMapIntfUint8V(*v, fastpathCheckNilFalse, true, d)
  10743. if changed2 {
  10744. *v = v2
  10745. }
  10746. case map[interface{}]uint16:
  10747. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, d)
  10748. case *map[interface{}]uint16:
  10749. v2, changed2 := fastpathTV.DecMapIntfUint16V(*v, fastpathCheckNilFalse, true, d)
  10750. if changed2 {
  10751. *v = v2
  10752. }
  10753. case map[interface{}]uint32:
  10754. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, d)
  10755. case *map[interface{}]uint32:
  10756. v2, changed2 := fastpathTV.DecMapIntfUint32V(*v, fastpathCheckNilFalse, true, d)
  10757. if changed2 {
  10758. *v = v2
  10759. }
  10760. case map[interface{}]uint64:
  10761. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, d)
  10762. case *map[interface{}]uint64:
  10763. v2, changed2 := fastpathTV.DecMapIntfUint64V(*v, fastpathCheckNilFalse, true, d)
  10764. if changed2 {
  10765. *v = v2
  10766. }
  10767. case map[interface{}]uintptr:
  10768. fastpathTV.DecMapIntfUintptrV(v, fastpathCheckNilFalse, false, d)
  10769. case *map[interface{}]uintptr:
  10770. v2, changed2 := fastpathTV.DecMapIntfUintptrV(*v, fastpathCheckNilFalse, true, d)
  10771. if changed2 {
  10772. *v = v2
  10773. }
  10774. case map[interface{}]int:
  10775. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, d)
  10776. case *map[interface{}]int:
  10777. v2, changed2 := fastpathTV.DecMapIntfIntV(*v, fastpathCheckNilFalse, true, d)
  10778. if changed2 {
  10779. *v = v2
  10780. }
  10781. case map[interface{}]int8:
  10782. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, d)
  10783. case *map[interface{}]int8:
  10784. v2, changed2 := fastpathTV.DecMapIntfInt8V(*v, fastpathCheckNilFalse, true, d)
  10785. if changed2 {
  10786. *v = v2
  10787. }
  10788. case map[interface{}]int16:
  10789. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, d)
  10790. case *map[interface{}]int16:
  10791. v2, changed2 := fastpathTV.DecMapIntfInt16V(*v, fastpathCheckNilFalse, true, d)
  10792. if changed2 {
  10793. *v = v2
  10794. }
  10795. case map[interface{}]int32:
  10796. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, d)
  10797. case *map[interface{}]int32:
  10798. v2, changed2 := fastpathTV.DecMapIntfInt32V(*v, fastpathCheckNilFalse, true, d)
  10799. if changed2 {
  10800. *v = v2
  10801. }
  10802. case map[interface{}]int64:
  10803. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, d)
  10804. case *map[interface{}]int64:
  10805. v2, changed2 := fastpathTV.DecMapIntfInt64V(*v, fastpathCheckNilFalse, true, d)
  10806. if changed2 {
  10807. *v = v2
  10808. }
  10809. case map[interface{}]float32:
  10810. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, d)
  10811. case *map[interface{}]float32:
  10812. v2, changed2 := fastpathTV.DecMapIntfFloat32V(*v, fastpathCheckNilFalse, true, d)
  10813. if changed2 {
  10814. *v = v2
  10815. }
  10816. case map[interface{}]float64:
  10817. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, d)
  10818. case *map[interface{}]float64:
  10819. v2, changed2 := fastpathTV.DecMapIntfFloat64V(*v, fastpathCheckNilFalse, true, d)
  10820. if changed2 {
  10821. *v = v2
  10822. }
  10823. case map[interface{}]bool:
  10824. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, d)
  10825. case *map[interface{}]bool:
  10826. v2, changed2 := fastpathTV.DecMapIntfBoolV(*v, fastpathCheckNilFalse, true, d)
  10827. if changed2 {
  10828. *v = v2
  10829. }
  10830. case []string:
  10831. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, d)
  10832. case *[]string:
  10833. v2, changed2 := fastpathTV.DecSliceStringV(*v, fastpathCheckNilFalse, true, d)
  10834. if changed2 {
  10835. *v = v2
  10836. }
  10837. case map[string]interface{}:
  10838. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, d)
  10839. case *map[string]interface{}:
  10840. v2, changed2 := fastpathTV.DecMapStringIntfV(*v, fastpathCheckNilFalse, true, d)
  10841. if changed2 {
  10842. *v = v2
  10843. }
  10844. case map[string]string:
  10845. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, d)
  10846. case *map[string]string:
  10847. v2, changed2 := fastpathTV.DecMapStringStringV(*v, fastpathCheckNilFalse, true, d)
  10848. if changed2 {
  10849. *v = v2
  10850. }
  10851. case map[string]uint:
  10852. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, d)
  10853. case *map[string]uint:
  10854. v2, changed2 := fastpathTV.DecMapStringUintV(*v, fastpathCheckNilFalse, true, d)
  10855. if changed2 {
  10856. *v = v2
  10857. }
  10858. case map[string]uint8:
  10859. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, d)
  10860. case *map[string]uint8:
  10861. v2, changed2 := fastpathTV.DecMapStringUint8V(*v, fastpathCheckNilFalse, true, d)
  10862. if changed2 {
  10863. *v = v2
  10864. }
  10865. case map[string]uint16:
  10866. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, d)
  10867. case *map[string]uint16:
  10868. v2, changed2 := fastpathTV.DecMapStringUint16V(*v, fastpathCheckNilFalse, true, d)
  10869. if changed2 {
  10870. *v = v2
  10871. }
  10872. case map[string]uint32:
  10873. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, d)
  10874. case *map[string]uint32:
  10875. v2, changed2 := fastpathTV.DecMapStringUint32V(*v, fastpathCheckNilFalse, true, d)
  10876. if changed2 {
  10877. *v = v2
  10878. }
  10879. case map[string]uint64:
  10880. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, d)
  10881. case *map[string]uint64:
  10882. v2, changed2 := fastpathTV.DecMapStringUint64V(*v, fastpathCheckNilFalse, true, d)
  10883. if changed2 {
  10884. *v = v2
  10885. }
  10886. case map[string]uintptr:
  10887. fastpathTV.DecMapStringUintptrV(v, fastpathCheckNilFalse, false, d)
  10888. case *map[string]uintptr:
  10889. v2, changed2 := fastpathTV.DecMapStringUintptrV(*v, fastpathCheckNilFalse, true, d)
  10890. if changed2 {
  10891. *v = v2
  10892. }
  10893. case map[string]int:
  10894. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, d)
  10895. case *map[string]int:
  10896. v2, changed2 := fastpathTV.DecMapStringIntV(*v, fastpathCheckNilFalse, true, d)
  10897. if changed2 {
  10898. *v = v2
  10899. }
  10900. case map[string]int8:
  10901. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, d)
  10902. case *map[string]int8:
  10903. v2, changed2 := fastpathTV.DecMapStringInt8V(*v, fastpathCheckNilFalse, true, d)
  10904. if changed2 {
  10905. *v = v2
  10906. }
  10907. case map[string]int16:
  10908. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, d)
  10909. case *map[string]int16:
  10910. v2, changed2 := fastpathTV.DecMapStringInt16V(*v, fastpathCheckNilFalse, true, d)
  10911. if changed2 {
  10912. *v = v2
  10913. }
  10914. case map[string]int32:
  10915. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, d)
  10916. case *map[string]int32:
  10917. v2, changed2 := fastpathTV.DecMapStringInt32V(*v, fastpathCheckNilFalse, true, d)
  10918. if changed2 {
  10919. *v = v2
  10920. }
  10921. case map[string]int64:
  10922. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, d)
  10923. case *map[string]int64:
  10924. v2, changed2 := fastpathTV.DecMapStringInt64V(*v, fastpathCheckNilFalse, true, d)
  10925. if changed2 {
  10926. *v = v2
  10927. }
  10928. case map[string]float32:
  10929. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, d)
  10930. case *map[string]float32:
  10931. v2, changed2 := fastpathTV.DecMapStringFloat32V(*v, fastpathCheckNilFalse, true, d)
  10932. if changed2 {
  10933. *v = v2
  10934. }
  10935. case map[string]float64:
  10936. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, d)
  10937. case *map[string]float64:
  10938. v2, changed2 := fastpathTV.DecMapStringFloat64V(*v, fastpathCheckNilFalse, true, d)
  10939. if changed2 {
  10940. *v = v2
  10941. }
  10942. case map[string]bool:
  10943. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, d)
  10944. case *map[string]bool:
  10945. v2, changed2 := fastpathTV.DecMapStringBoolV(*v, fastpathCheckNilFalse, true, d)
  10946. if changed2 {
  10947. *v = v2
  10948. }
  10949. case []float32:
  10950. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, d)
  10951. case *[]float32:
  10952. v2, changed2 := fastpathTV.DecSliceFloat32V(*v, fastpathCheckNilFalse, true, d)
  10953. if changed2 {
  10954. *v = v2
  10955. }
  10956. case map[float32]interface{}:
  10957. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, d)
  10958. case *map[float32]interface{}:
  10959. v2, changed2 := fastpathTV.DecMapFloat32IntfV(*v, fastpathCheckNilFalse, true, d)
  10960. if changed2 {
  10961. *v = v2
  10962. }
  10963. case map[float32]string:
  10964. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, d)
  10965. case *map[float32]string:
  10966. v2, changed2 := fastpathTV.DecMapFloat32StringV(*v, fastpathCheckNilFalse, true, d)
  10967. if changed2 {
  10968. *v = v2
  10969. }
  10970. case map[float32]uint:
  10971. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, d)
  10972. case *map[float32]uint:
  10973. v2, changed2 := fastpathTV.DecMapFloat32UintV(*v, fastpathCheckNilFalse, true, d)
  10974. if changed2 {
  10975. *v = v2
  10976. }
  10977. case map[float32]uint8:
  10978. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, d)
  10979. case *map[float32]uint8:
  10980. v2, changed2 := fastpathTV.DecMapFloat32Uint8V(*v, fastpathCheckNilFalse, true, d)
  10981. if changed2 {
  10982. *v = v2
  10983. }
  10984. case map[float32]uint16:
  10985. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, d)
  10986. case *map[float32]uint16:
  10987. v2, changed2 := fastpathTV.DecMapFloat32Uint16V(*v, fastpathCheckNilFalse, true, d)
  10988. if changed2 {
  10989. *v = v2
  10990. }
  10991. case map[float32]uint32:
  10992. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, d)
  10993. case *map[float32]uint32:
  10994. v2, changed2 := fastpathTV.DecMapFloat32Uint32V(*v, fastpathCheckNilFalse, true, d)
  10995. if changed2 {
  10996. *v = v2
  10997. }
  10998. case map[float32]uint64:
  10999. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, d)
  11000. case *map[float32]uint64:
  11001. v2, changed2 := fastpathTV.DecMapFloat32Uint64V(*v, fastpathCheckNilFalse, true, d)
  11002. if changed2 {
  11003. *v = v2
  11004. }
  11005. case map[float32]uintptr:
  11006. fastpathTV.DecMapFloat32UintptrV(v, fastpathCheckNilFalse, false, d)
  11007. case *map[float32]uintptr:
  11008. v2, changed2 := fastpathTV.DecMapFloat32UintptrV(*v, fastpathCheckNilFalse, true, d)
  11009. if changed2 {
  11010. *v = v2
  11011. }
  11012. case map[float32]int:
  11013. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, d)
  11014. case *map[float32]int:
  11015. v2, changed2 := fastpathTV.DecMapFloat32IntV(*v, fastpathCheckNilFalse, true, d)
  11016. if changed2 {
  11017. *v = v2
  11018. }
  11019. case map[float32]int8:
  11020. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, d)
  11021. case *map[float32]int8:
  11022. v2, changed2 := fastpathTV.DecMapFloat32Int8V(*v, fastpathCheckNilFalse, true, d)
  11023. if changed2 {
  11024. *v = v2
  11025. }
  11026. case map[float32]int16:
  11027. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, d)
  11028. case *map[float32]int16:
  11029. v2, changed2 := fastpathTV.DecMapFloat32Int16V(*v, fastpathCheckNilFalse, true, d)
  11030. if changed2 {
  11031. *v = v2
  11032. }
  11033. case map[float32]int32:
  11034. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, d)
  11035. case *map[float32]int32:
  11036. v2, changed2 := fastpathTV.DecMapFloat32Int32V(*v, fastpathCheckNilFalse, true, d)
  11037. if changed2 {
  11038. *v = v2
  11039. }
  11040. case map[float32]int64:
  11041. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, d)
  11042. case *map[float32]int64:
  11043. v2, changed2 := fastpathTV.DecMapFloat32Int64V(*v, fastpathCheckNilFalse, true, d)
  11044. if changed2 {
  11045. *v = v2
  11046. }
  11047. case map[float32]float32:
  11048. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, d)
  11049. case *map[float32]float32:
  11050. v2, changed2 := fastpathTV.DecMapFloat32Float32V(*v, fastpathCheckNilFalse, true, d)
  11051. if changed2 {
  11052. *v = v2
  11053. }
  11054. case map[float32]float64:
  11055. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, d)
  11056. case *map[float32]float64:
  11057. v2, changed2 := fastpathTV.DecMapFloat32Float64V(*v, fastpathCheckNilFalse, true, d)
  11058. if changed2 {
  11059. *v = v2
  11060. }
  11061. case map[float32]bool:
  11062. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, d)
  11063. case *map[float32]bool:
  11064. v2, changed2 := fastpathTV.DecMapFloat32BoolV(*v, fastpathCheckNilFalse, true, d)
  11065. if changed2 {
  11066. *v = v2
  11067. }
  11068. case []float64:
  11069. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, d)
  11070. case *[]float64:
  11071. v2, changed2 := fastpathTV.DecSliceFloat64V(*v, fastpathCheckNilFalse, true, d)
  11072. if changed2 {
  11073. *v = v2
  11074. }
  11075. case map[float64]interface{}:
  11076. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, d)
  11077. case *map[float64]interface{}:
  11078. v2, changed2 := fastpathTV.DecMapFloat64IntfV(*v, fastpathCheckNilFalse, true, d)
  11079. if changed2 {
  11080. *v = v2
  11081. }
  11082. case map[float64]string:
  11083. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, d)
  11084. case *map[float64]string:
  11085. v2, changed2 := fastpathTV.DecMapFloat64StringV(*v, fastpathCheckNilFalse, true, d)
  11086. if changed2 {
  11087. *v = v2
  11088. }
  11089. case map[float64]uint:
  11090. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, d)
  11091. case *map[float64]uint:
  11092. v2, changed2 := fastpathTV.DecMapFloat64UintV(*v, fastpathCheckNilFalse, true, d)
  11093. if changed2 {
  11094. *v = v2
  11095. }
  11096. case map[float64]uint8:
  11097. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, d)
  11098. case *map[float64]uint8:
  11099. v2, changed2 := fastpathTV.DecMapFloat64Uint8V(*v, fastpathCheckNilFalse, true, d)
  11100. if changed2 {
  11101. *v = v2
  11102. }
  11103. case map[float64]uint16:
  11104. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, d)
  11105. case *map[float64]uint16:
  11106. v2, changed2 := fastpathTV.DecMapFloat64Uint16V(*v, fastpathCheckNilFalse, true, d)
  11107. if changed2 {
  11108. *v = v2
  11109. }
  11110. case map[float64]uint32:
  11111. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, d)
  11112. case *map[float64]uint32:
  11113. v2, changed2 := fastpathTV.DecMapFloat64Uint32V(*v, fastpathCheckNilFalse, true, d)
  11114. if changed2 {
  11115. *v = v2
  11116. }
  11117. case map[float64]uint64:
  11118. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, d)
  11119. case *map[float64]uint64:
  11120. v2, changed2 := fastpathTV.DecMapFloat64Uint64V(*v, fastpathCheckNilFalse, true, d)
  11121. if changed2 {
  11122. *v = v2
  11123. }
  11124. case map[float64]uintptr:
  11125. fastpathTV.DecMapFloat64UintptrV(v, fastpathCheckNilFalse, false, d)
  11126. case *map[float64]uintptr:
  11127. v2, changed2 := fastpathTV.DecMapFloat64UintptrV(*v, fastpathCheckNilFalse, true, d)
  11128. if changed2 {
  11129. *v = v2
  11130. }
  11131. case map[float64]int:
  11132. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, d)
  11133. case *map[float64]int:
  11134. v2, changed2 := fastpathTV.DecMapFloat64IntV(*v, fastpathCheckNilFalse, true, d)
  11135. if changed2 {
  11136. *v = v2
  11137. }
  11138. case map[float64]int8:
  11139. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, d)
  11140. case *map[float64]int8:
  11141. v2, changed2 := fastpathTV.DecMapFloat64Int8V(*v, fastpathCheckNilFalse, true, d)
  11142. if changed2 {
  11143. *v = v2
  11144. }
  11145. case map[float64]int16:
  11146. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, d)
  11147. case *map[float64]int16:
  11148. v2, changed2 := fastpathTV.DecMapFloat64Int16V(*v, fastpathCheckNilFalse, true, d)
  11149. if changed2 {
  11150. *v = v2
  11151. }
  11152. case map[float64]int32:
  11153. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, d)
  11154. case *map[float64]int32:
  11155. v2, changed2 := fastpathTV.DecMapFloat64Int32V(*v, fastpathCheckNilFalse, true, d)
  11156. if changed2 {
  11157. *v = v2
  11158. }
  11159. case map[float64]int64:
  11160. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, d)
  11161. case *map[float64]int64:
  11162. v2, changed2 := fastpathTV.DecMapFloat64Int64V(*v, fastpathCheckNilFalse, true, d)
  11163. if changed2 {
  11164. *v = v2
  11165. }
  11166. case map[float64]float32:
  11167. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, d)
  11168. case *map[float64]float32:
  11169. v2, changed2 := fastpathTV.DecMapFloat64Float32V(*v, fastpathCheckNilFalse, true, d)
  11170. if changed2 {
  11171. *v = v2
  11172. }
  11173. case map[float64]float64:
  11174. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, d)
  11175. case *map[float64]float64:
  11176. v2, changed2 := fastpathTV.DecMapFloat64Float64V(*v, fastpathCheckNilFalse, true, d)
  11177. if changed2 {
  11178. *v = v2
  11179. }
  11180. case map[float64]bool:
  11181. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, d)
  11182. case *map[float64]bool:
  11183. v2, changed2 := fastpathTV.DecMapFloat64BoolV(*v, fastpathCheckNilFalse, true, d)
  11184. if changed2 {
  11185. *v = v2
  11186. }
  11187. case []uint:
  11188. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, d)
  11189. case *[]uint:
  11190. v2, changed2 := fastpathTV.DecSliceUintV(*v, fastpathCheckNilFalse, true, d)
  11191. if changed2 {
  11192. *v = v2
  11193. }
  11194. case map[uint]interface{}:
  11195. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, d)
  11196. case *map[uint]interface{}:
  11197. v2, changed2 := fastpathTV.DecMapUintIntfV(*v, fastpathCheckNilFalse, true, d)
  11198. if changed2 {
  11199. *v = v2
  11200. }
  11201. case map[uint]string:
  11202. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, d)
  11203. case *map[uint]string:
  11204. v2, changed2 := fastpathTV.DecMapUintStringV(*v, fastpathCheckNilFalse, true, d)
  11205. if changed2 {
  11206. *v = v2
  11207. }
  11208. case map[uint]uint:
  11209. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, d)
  11210. case *map[uint]uint:
  11211. v2, changed2 := fastpathTV.DecMapUintUintV(*v, fastpathCheckNilFalse, true, d)
  11212. if changed2 {
  11213. *v = v2
  11214. }
  11215. case map[uint]uint8:
  11216. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, d)
  11217. case *map[uint]uint8:
  11218. v2, changed2 := fastpathTV.DecMapUintUint8V(*v, fastpathCheckNilFalse, true, d)
  11219. if changed2 {
  11220. *v = v2
  11221. }
  11222. case map[uint]uint16:
  11223. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, d)
  11224. case *map[uint]uint16:
  11225. v2, changed2 := fastpathTV.DecMapUintUint16V(*v, fastpathCheckNilFalse, true, d)
  11226. if changed2 {
  11227. *v = v2
  11228. }
  11229. case map[uint]uint32:
  11230. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, d)
  11231. case *map[uint]uint32:
  11232. v2, changed2 := fastpathTV.DecMapUintUint32V(*v, fastpathCheckNilFalse, true, d)
  11233. if changed2 {
  11234. *v = v2
  11235. }
  11236. case map[uint]uint64:
  11237. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, d)
  11238. case *map[uint]uint64:
  11239. v2, changed2 := fastpathTV.DecMapUintUint64V(*v, fastpathCheckNilFalse, true, d)
  11240. if changed2 {
  11241. *v = v2
  11242. }
  11243. case map[uint]uintptr:
  11244. fastpathTV.DecMapUintUintptrV(v, fastpathCheckNilFalse, false, d)
  11245. case *map[uint]uintptr:
  11246. v2, changed2 := fastpathTV.DecMapUintUintptrV(*v, fastpathCheckNilFalse, true, d)
  11247. if changed2 {
  11248. *v = v2
  11249. }
  11250. case map[uint]int:
  11251. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, d)
  11252. case *map[uint]int:
  11253. v2, changed2 := fastpathTV.DecMapUintIntV(*v, fastpathCheckNilFalse, true, d)
  11254. if changed2 {
  11255. *v = v2
  11256. }
  11257. case map[uint]int8:
  11258. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, d)
  11259. case *map[uint]int8:
  11260. v2, changed2 := fastpathTV.DecMapUintInt8V(*v, fastpathCheckNilFalse, true, d)
  11261. if changed2 {
  11262. *v = v2
  11263. }
  11264. case map[uint]int16:
  11265. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, d)
  11266. case *map[uint]int16:
  11267. v2, changed2 := fastpathTV.DecMapUintInt16V(*v, fastpathCheckNilFalse, true, d)
  11268. if changed2 {
  11269. *v = v2
  11270. }
  11271. case map[uint]int32:
  11272. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, d)
  11273. case *map[uint]int32:
  11274. v2, changed2 := fastpathTV.DecMapUintInt32V(*v, fastpathCheckNilFalse, true, d)
  11275. if changed2 {
  11276. *v = v2
  11277. }
  11278. case map[uint]int64:
  11279. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, d)
  11280. case *map[uint]int64:
  11281. v2, changed2 := fastpathTV.DecMapUintInt64V(*v, fastpathCheckNilFalse, true, d)
  11282. if changed2 {
  11283. *v = v2
  11284. }
  11285. case map[uint]float32:
  11286. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, d)
  11287. case *map[uint]float32:
  11288. v2, changed2 := fastpathTV.DecMapUintFloat32V(*v, fastpathCheckNilFalse, true, d)
  11289. if changed2 {
  11290. *v = v2
  11291. }
  11292. case map[uint]float64:
  11293. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, d)
  11294. case *map[uint]float64:
  11295. v2, changed2 := fastpathTV.DecMapUintFloat64V(*v, fastpathCheckNilFalse, true, d)
  11296. if changed2 {
  11297. *v = v2
  11298. }
  11299. case map[uint]bool:
  11300. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, d)
  11301. case *map[uint]bool:
  11302. v2, changed2 := fastpathTV.DecMapUintBoolV(*v, fastpathCheckNilFalse, true, d)
  11303. if changed2 {
  11304. *v = v2
  11305. }
  11306. case map[uint8]interface{}:
  11307. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, d)
  11308. case *map[uint8]interface{}:
  11309. v2, changed2 := fastpathTV.DecMapUint8IntfV(*v, fastpathCheckNilFalse, true, d)
  11310. if changed2 {
  11311. *v = v2
  11312. }
  11313. case map[uint8]string:
  11314. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, d)
  11315. case *map[uint8]string:
  11316. v2, changed2 := fastpathTV.DecMapUint8StringV(*v, fastpathCheckNilFalse, true, d)
  11317. if changed2 {
  11318. *v = v2
  11319. }
  11320. case map[uint8]uint:
  11321. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, d)
  11322. case *map[uint8]uint:
  11323. v2, changed2 := fastpathTV.DecMapUint8UintV(*v, fastpathCheckNilFalse, true, d)
  11324. if changed2 {
  11325. *v = v2
  11326. }
  11327. case map[uint8]uint8:
  11328. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, d)
  11329. case *map[uint8]uint8:
  11330. v2, changed2 := fastpathTV.DecMapUint8Uint8V(*v, fastpathCheckNilFalse, true, d)
  11331. if changed2 {
  11332. *v = v2
  11333. }
  11334. case map[uint8]uint16:
  11335. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, d)
  11336. case *map[uint8]uint16:
  11337. v2, changed2 := fastpathTV.DecMapUint8Uint16V(*v, fastpathCheckNilFalse, true, d)
  11338. if changed2 {
  11339. *v = v2
  11340. }
  11341. case map[uint8]uint32:
  11342. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, d)
  11343. case *map[uint8]uint32:
  11344. v2, changed2 := fastpathTV.DecMapUint8Uint32V(*v, fastpathCheckNilFalse, true, d)
  11345. if changed2 {
  11346. *v = v2
  11347. }
  11348. case map[uint8]uint64:
  11349. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, d)
  11350. case *map[uint8]uint64:
  11351. v2, changed2 := fastpathTV.DecMapUint8Uint64V(*v, fastpathCheckNilFalse, true, d)
  11352. if changed2 {
  11353. *v = v2
  11354. }
  11355. case map[uint8]uintptr:
  11356. fastpathTV.DecMapUint8UintptrV(v, fastpathCheckNilFalse, false, d)
  11357. case *map[uint8]uintptr:
  11358. v2, changed2 := fastpathTV.DecMapUint8UintptrV(*v, fastpathCheckNilFalse, true, d)
  11359. if changed2 {
  11360. *v = v2
  11361. }
  11362. case map[uint8]int:
  11363. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, d)
  11364. case *map[uint8]int:
  11365. v2, changed2 := fastpathTV.DecMapUint8IntV(*v, fastpathCheckNilFalse, true, d)
  11366. if changed2 {
  11367. *v = v2
  11368. }
  11369. case map[uint8]int8:
  11370. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, d)
  11371. case *map[uint8]int8:
  11372. v2, changed2 := fastpathTV.DecMapUint8Int8V(*v, fastpathCheckNilFalse, true, d)
  11373. if changed2 {
  11374. *v = v2
  11375. }
  11376. case map[uint8]int16:
  11377. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, d)
  11378. case *map[uint8]int16:
  11379. v2, changed2 := fastpathTV.DecMapUint8Int16V(*v, fastpathCheckNilFalse, true, d)
  11380. if changed2 {
  11381. *v = v2
  11382. }
  11383. case map[uint8]int32:
  11384. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, d)
  11385. case *map[uint8]int32:
  11386. v2, changed2 := fastpathTV.DecMapUint8Int32V(*v, fastpathCheckNilFalse, true, d)
  11387. if changed2 {
  11388. *v = v2
  11389. }
  11390. case map[uint8]int64:
  11391. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, d)
  11392. case *map[uint8]int64:
  11393. v2, changed2 := fastpathTV.DecMapUint8Int64V(*v, fastpathCheckNilFalse, true, d)
  11394. if changed2 {
  11395. *v = v2
  11396. }
  11397. case map[uint8]float32:
  11398. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, d)
  11399. case *map[uint8]float32:
  11400. v2, changed2 := fastpathTV.DecMapUint8Float32V(*v, fastpathCheckNilFalse, true, d)
  11401. if changed2 {
  11402. *v = v2
  11403. }
  11404. case map[uint8]float64:
  11405. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, d)
  11406. case *map[uint8]float64:
  11407. v2, changed2 := fastpathTV.DecMapUint8Float64V(*v, fastpathCheckNilFalse, true, d)
  11408. if changed2 {
  11409. *v = v2
  11410. }
  11411. case map[uint8]bool:
  11412. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, d)
  11413. case *map[uint8]bool:
  11414. v2, changed2 := fastpathTV.DecMapUint8BoolV(*v, fastpathCheckNilFalse, true, d)
  11415. if changed2 {
  11416. *v = v2
  11417. }
  11418. case []uint16:
  11419. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, d)
  11420. case *[]uint16:
  11421. v2, changed2 := fastpathTV.DecSliceUint16V(*v, fastpathCheckNilFalse, true, d)
  11422. if changed2 {
  11423. *v = v2
  11424. }
  11425. case map[uint16]interface{}:
  11426. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, d)
  11427. case *map[uint16]interface{}:
  11428. v2, changed2 := fastpathTV.DecMapUint16IntfV(*v, fastpathCheckNilFalse, true, d)
  11429. if changed2 {
  11430. *v = v2
  11431. }
  11432. case map[uint16]string:
  11433. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, d)
  11434. case *map[uint16]string:
  11435. v2, changed2 := fastpathTV.DecMapUint16StringV(*v, fastpathCheckNilFalse, true, d)
  11436. if changed2 {
  11437. *v = v2
  11438. }
  11439. case map[uint16]uint:
  11440. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, d)
  11441. case *map[uint16]uint:
  11442. v2, changed2 := fastpathTV.DecMapUint16UintV(*v, fastpathCheckNilFalse, true, d)
  11443. if changed2 {
  11444. *v = v2
  11445. }
  11446. case map[uint16]uint8:
  11447. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, d)
  11448. case *map[uint16]uint8:
  11449. v2, changed2 := fastpathTV.DecMapUint16Uint8V(*v, fastpathCheckNilFalse, true, d)
  11450. if changed2 {
  11451. *v = v2
  11452. }
  11453. case map[uint16]uint16:
  11454. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, d)
  11455. case *map[uint16]uint16:
  11456. v2, changed2 := fastpathTV.DecMapUint16Uint16V(*v, fastpathCheckNilFalse, true, d)
  11457. if changed2 {
  11458. *v = v2
  11459. }
  11460. case map[uint16]uint32:
  11461. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, d)
  11462. case *map[uint16]uint32:
  11463. v2, changed2 := fastpathTV.DecMapUint16Uint32V(*v, fastpathCheckNilFalse, true, d)
  11464. if changed2 {
  11465. *v = v2
  11466. }
  11467. case map[uint16]uint64:
  11468. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, d)
  11469. case *map[uint16]uint64:
  11470. v2, changed2 := fastpathTV.DecMapUint16Uint64V(*v, fastpathCheckNilFalse, true, d)
  11471. if changed2 {
  11472. *v = v2
  11473. }
  11474. case map[uint16]uintptr:
  11475. fastpathTV.DecMapUint16UintptrV(v, fastpathCheckNilFalse, false, d)
  11476. case *map[uint16]uintptr:
  11477. v2, changed2 := fastpathTV.DecMapUint16UintptrV(*v, fastpathCheckNilFalse, true, d)
  11478. if changed2 {
  11479. *v = v2
  11480. }
  11481. case map[uint16]int:
  11482. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, d)
  11483. case *map[uint16]int:
  11484. v2, changed2 := fastpathTV.DecMapUint16IntV(*v, fastpathCheckNilFalse, true, d)
  11485. if changed2 {
  11486. *v = v2
  11487. }
  11488. case map[uint16]int8:
  11489. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, d)
  11490. case *map[uint16]int8:
  11491. v2, changed2 := fastpathTV.DecMapUint16Int8V(*v, fastpathCheckNilFalse, true, d)
  11492. if changed2 {
  11493. *v = v2
  11494. }
  11495. case map[uint16]int16:
  11496. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, d)
  11497. case *map[uint16]int16:
  11498. v2, changed2 := fastpathTV.DecMapUint16Int16V(*v, fastpathCheckNilFalse, true, d)
  11499. if changed2 {
  11500. *v = v2
  11501. }
  11502. case map[uint16]int32:
  11503. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, d)
  11504. case *map[uint16]int32:
  11505. v2, changed2 := fastpathTV.DecMapUint16Int32V(*v, fastpathCheckNilFalse, true, d)
  11506. if changed2 {
  11507. *v = v2
  11508. }
  11509. case map[uint16]int64:
  11510. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, d)
  11511. case *map[uint16]int64:
  11512. v2, changed2 := fastpathTV.DecMapUint16Int64V(*v, fastpathCheckNilFalse, true, d)
  11513. if changed2 {
  11514. *v = v2
  11515. }
  11516. case map[uint16]float32:
  11517. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, d)
  11518. case *map[uint16]float32:
  11519. v2, changed2 := fastpathTV.DecMapUint16Float32V(*v, fastpathCheckNilFalse, true, d)
  11520. if changed2 {
  11521. *v = v2
  11522. }
  11523. case map[uint16]float64:
  11524. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, d)
  11525. case *map[uint16]float64:
  11526. v2, changed2 := fastpathTV.DecMapUint16Float64V(*v, fastpathCheckNilFalse, true, d)
  11527. if changed2 {
  11528. *v = v2
  11529. }
  11530. case map[uint16]bool:
  11531. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, d)
  11532. case *map[uint16]bool:
  11533. v2, changed2 := fastpathTV.DecMapUint16BoolV(*v, fastpathCheckNilFalse, true, d)
  11534. if changed2 {
  11535. *v = v2
  11536. }
  11537. case []uint32:
  11538. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, d)
  11539. case *[]uint32:
  11540. v2, changed2 := fastpathTV.DecSliceUint32V(*v, fastpathCheckNilFalse, true, d)
  11541. if changed2 {
  11542. *v = v2
  11543. }
  11544. case map[uint32]interface{}:
  11545. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, d)
  11546. case *map[uint32]interface{}:
  11547. v2, changed2 := fastpathTV.DecMapUint32IntfV(*v, fastpathCheckNilFalse, true, d)
  11548. if changed2 {
  11549. *v = v2
  11550. }
  11551. case map[uint32]string:
  11552. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, d)
  11553. case *map[uint32]string:
  11554. v2, changed2 := fastpathTV.DecMapUint32StringV(*v, fastpathCheckNilFalse, true, d)
  11555. if changed2 {
  11556. *v = v2
  11557. }
  11558. case map[uint32]uint:
  11559. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, d)
  11560. case *map[uint32]uint:
  11561. v2, changed2 := fastpathTV.DecMapUint32UintV(*v, fastpathCheckNilFalse, true, d)
  11562. if changed2 {
  11563. *v = v2
  11564. }
  11565. case map[uint32]uint8:
  11566. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, d)
  11567. case *map[uint32]uint8:
  11568. v2, changed2 := fastpathTV.DecMapUint32Uint8V(*v, fastpathCheckNilFalse, true, d)
  11569. if changed2 {
  11570. *v = v2
  11571. }
  11572. case map[uint32]uint16:
  11573. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, d)
  11574. case *map[uint32]uint16:
  11575. v2, changed2 := fastpathTV.DecMapUint32Uint16V(*v, fastpathCheckNilFalse, true, d)
  11576. if changed2 {
  11577. *v = v2
  11578. }
  11579. case map[uint32]uint32:
  11580. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, d)
  11581. case *map[uint32]uint32:
  11582. v2, changed2 := fastpathTV.DecMapUint32Uint32V(*v, fastpathCheckNilFalse, true, d)
  11583. if changed2 {
  11584. *v = v2
  11585. }
  11586. case map[uint32]uint64:
  11587. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, d)
  11588. case *map[uint32]uint64:
  11589. v2, changed2 := fastpathTV.DecMapUint32Uint64V(*v, fastpathCheckNilFalse, true, d)
  11590. if changed2 {
  11591. *v = v2
  11592. }
  11593. case map[uint32]uintptr:
  11594. fastpathTV.DecMapUint32UintptrV(v, fastpathCheckNilFalse, false, d)
  11595. case *map[uint32]uintptr:
  11596. v2, changed2 := fastpathTV.DecMapUint32UintptrV(*v, fastpathCheckNilFalse, true, d)
  11597. if changed2 {
  11598. *v = v2
  11599. }
  11600. case map[uint32]int:
  11601. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, d)
  11602. case *map[uint32]int:
  11603. v2, changed2 := fastpathTV.DecMapUint32IntV(*v, fastpathCheckNilFalse, true, d)
  11604. if changed2 {
  11605. *v = v2
  11606. }
  11607. case map[uint32]int8:
  11608. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, d)
  11609. case *map[uint32]int8:
  11610. v2, changed2 := fastpathTV.DecMapUint32Int8V(*v, fastpathCheckNilFalse, true, d)
  11611. if changed2 {
  11612. *v = v2
  11613. }
  11614. case map[uint32]int16:
  11615. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, d)
  11616. case *map[uint32]int16:
  11617. v2, changed2 := fastpathTV.DecMapUint32Int16V(*v, fastpathCheckNilFalse, true, d)
  11618. if changed2 {
  11619. *v = v2
  11620. }
  11621. case map[uint32]int32:
  11622. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, d)
  11623. case *map[uint32]int32:
  11624. v2, changed2 := fastpathTV.DecMapUint32Int32V(*v, fastpathCheckNilFalse, true, d)
  11625. if changed2 {
  11626. *v = v2
  11627. }
  11628. case map[uint32]int64:
  11629. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, d)
  11630. case *map[uint32]int64:
  11631. v2, changed2 := fastpathTV.DecMapUint32Int64V(*v, fastpathCheckNilFalse, true, d)
  11632. if changed2 {
  11633. *v = v2
  11634. }
  11635. case map[uint32]float32:
  11636. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, d)
  11637. case *map[uint32]float32:
  11638. v2, changed2 := fastpathTV.DecMapUint32Float32V(*v, fastpathCheckNilFalse, true, d)
  11639. if changed2 {
  11640. *v = v2
  11641. }
  11642. case map[uint32]float64:
  11643. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, d)
  11644. case *map[uint32]float64:
  11645. v2, changed2 := fastpathTV.DecMapUint32Float64V(*v, fastpathCheckNilFalse, true, d)
  11646. if changed2 {
  11647. *v = v2
  11648. }
  11649. case map[uint32]bool:
  11650. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, d)
  11651. case *map[uint32]bool:
  11652. v2, changed2 := fastpathTV.DecMapUint32BoolV(*v, fastpathCheckNilFalse, true, d)
  11653. if changed2 {
  11654. *v = v2
  11655. }
  11656. case []uint64:
  11657. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, d)
  11658. case *[]uint64:
  11659. v2, changed2 := fastpathTV.DecSliceUint64V(*v, fastpathCheckNilFalse, true, d)
  11660. if changed2 {
  11661. *v = v2
  11662. }
  11663. case map[uint64]interface{}:
  11664. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, d)
  11665. case *map[uint64]interface{}:
  11666. v2, changed2 := fastpathTV.DecMapUint64IntfV(*v, fastpathCheckNilFalse, true, d)
  11667. if changed2 {
  11668. *v = v2
  11669. }
  11670. case map[uint64]string:
  11671. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, d)
  11672. case *map[uint64]string:
  11673. v2, changed2 := fastpathTV.DecMapUint64StringV(*v, fastpathCheckNilFalse, true, d)
  11674. if changed2 {
  11675. *v = v2
  11676. }
  11677. case map[uint64]uint:
  11678. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, d)
  11679. case *map[uint64]uint:
  11680. v2, changed2 := fastpathTV.DecMapUint64UintV(*v, fastpathCheckNilFalse, true, d)
  11681. if changed2 {
  11682. *v = v2
  11683. }
  11684. case map[uint64]uint8:
  11685. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, d)
  11686. case *map[uint64]uint8:
  11687. v2, changed2 := fastpathTV.DecMapUint64Uint8V(*v, fastpathCheckNilFalse, true, d)
  11688. if changed2 {
  11689. *v = v2
  11690. }
  11691. case map[uint64]uint16:
  11692. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, d)
  11693. case *map[uint64]uint16:
  11694. v2, changed2 := fastpathTV.DecMapUint64Uint16V(*v, fastpathCheckNilFalse, true, d)
  11695. if changed2 {
  11696. *v = v2
  11697. }
  11698. case map[uint64]uint32:
  11699. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, d)
  11700. case *map[uint64]uint32:
  11701. v2, changed2 := fastpathTV.DecMapUint64Uint32V(*v, fastpathCheckNilFalse, true, d)
  11702. if changed2 {
  11703. *v = v2
  11704. }
  11705. case map[uint64]uint64:
  11706. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, d)
  11707. case *map[uint64]uint64:
  11708. v2, changed2 := fastpathTV.DecMapUint64Uint64V(*v, fastpathCheckNilFalse, true, d)
  11709. if changed2 {
  11710. *v = v2
  11711. }
  11712. case map[uint64]uintptr:
  11713. fastpathTV.DecMapUint64UintptrV(v, fastpathCheckNilFalse, false, d)
  11714. case *map[uint64]uintptr:
  11715. v2, changed2 := fastpathTV.DecMapUint64UintptrV(*v, fastpathCheckNilFalse, true, d)
  11716. if changed2 {
  11717. *v = v2
  11718. }
  11719. case map[uint64]int:
  11720. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, d)
  11721. case *map[uint64]int:
  11722. v2, changed2 := fastpathTV.DecMapUint64IntV(*v, fastpathCheckNilFalse, true, d)
  11723. if changed2 {
  11724. *v = v2
  11725. }
  11726. case map[uint64]int8:
  11727. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, d)
  11728. case *map[uint64]int8:
  11729. v2, changed2 := fastpathTV.DecMapUint64Int8V(*v, fastpathCheckNilFalse, true, d)
  11730. if changed2 {
  11731. *v = v2
  11732. }
  11733. case map[uint64]int16:
  11734. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, d)
  11735. case *map[uint64]int16:
  11736. v2, changed2 := fastpathTV.DecMapUint64Int16V(*v, fastpathCheckNilFalse, true, d)
  11737. if changed2 {
  11738. *v = v2
  11739. }
  11740. case map[uint64]int32:
  11741. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, d)
  11742. case *map[uint64]int32:
  11743. v2, changed2 := fastpathTV.DecMapUint64Int32V(*v, fastpathCheckNilFalse, true, d)
  11744. if changed2 {
  11745. *v = v2
  11746. }
  11747. case map[uint64]int64:
  11748. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, d)
  11749. case *map[uint64]int64:
  11750. v2, changed2 := fastpathTV.DecMapUint64Int64V(*v, fastpathCheckNilFalse, true, d)
  11751. if changed2 {
  11752. *v = v2
  11753. }
  11754. case map[uint64]float32:
  11755. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, d)
  11756. case *map[uint64]float32:
  11757. v2, changed2 := fastpathTV.DecMapUint64Float32V(*v, fastpathCheckNilFalse, true, d)
  11758. if changed2 {
  11759. *v = v2
  11760. }
  11761. case map[uint64]float64:
  11762. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, d)
  11763. case *map[uint64]float64:
  11764. v2, changed2 := fastpathTV.DecMapUint64Float64V(*v, fastpathCheckNilFalse, true, d)
  11765. if changed2 {
  11766. *v = v2
  11767. }
  11768. case map[uint64]bool:
  11769. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, d)
  11770. case *map[uint64]bool:
  11771. v2, changed2 := fastpathTV.DecMapUint64BoolV(*v, fastpathCheckNilFalse, true, d)
  11772. if changed2 {
  11773. *v = v2
  11774. }
  11775. case []uintptr:
  11776. fastpathTV.DecSliceUintptrV(v, fastpathCheckNilFalse, false, d)
  11777. case *[]uintptr:
  11778. v2, changed2 := fastpathTV.DecSliceUintptrV(*v, fastpathCheckNilFalse, true, d)
  11779. if changed2 {
  11780. *v = v2
  11781. }
  11782. case map[uintptr]interface{}:
  11783. fastpathTV.DecMapUintptrIntfV(v, fastpathCheckNilFalse, false, d)
  11784. case *map[uintptr]interface{}:
  11785. v2, changed2 := fastpathTV.DecMapUintptrIntfV(*v, fastpathCheckNilFalse, true, d)
  11786. if changed2 {
  11787. *v = v2
  11788. }
  11789. case map[uintptr]string:
  11790. fastpathTV.DecMapUintptrStringV(v, fastpathCheckNilFalse, false, d)
  11791. case *map[uintptr]string:
  11792. v2, changed2 := fastpathTV.DecMapUintptrStringV(*v, fastpathCheckNilFalse, true, d)
  11793. if changed2 {
  11794. *v = v2
  11795. }
  11796. case map[uintptr]uint:
  11797. fastpathTV.DecMapUintptrUintV(v, fastpathCheckNilFalse, false, d)
  11798. case *map[uintptr]uint:
  11799. v2, changed2 := fastpathTV.DecMapUintptrUintV(*v, fastpathCheckNilFalse, true, d)
  11800. if changed2 {
  11801. *v = v2
  11802. }
  11803. case map[uintptr]uint8:
  11804. fastpathTV.DecMapUintptrUint8V(v, fastpathCheckNilFalse, false, d)
  11805. case *map[uintptr]uint8:
  11806. v2, changed2 := fastpathTV.DecMapUintptrUint8V(*v, fastpathCheckNilFalse, true, d)
  11807. if changed2 {
  11808. *v = v2
  11809. }
  11810. case map[uintptr]uint16:
  11811. fastpathTV.DecMapUintptrUint16V(v, fastpathCheckNilFalse, false, d)
  11812. case *map[uintptr]uint16:
  11813. v2, changed2 := fastpathTV.DecMapUintptrUint16V(*v, fastpathCheckNilFalse, true, d)
  11814. if changed2 {
  11815. *v = v2
  11816. }
  11817. case map[uintptr]uint32:
  11818. fastpathTV.DecMapUintptrUint32V(v, fastpathCheckNilFalse, false, d)
  11819. case *map[uintptr]uint32:
  11820. v2, changed2 := fastpathTV.DecMapUintptrUint32V(*v, fastpathCheckNilFalse, true, d)
  11821. if changed2 {
  11822. *v = v2
  11823. }
  11824. case map[uintptr]uint64:
  11825. fastpathTV.DecMapUintptrUint64V(v, fastpathCheckNilFalse, false, d)
  11826. case *map[uintptr]uint64:
  11827. v2, changed2 := fastpathTV.DecMapUintptrUint64V(*v, fastpathCheckNilFalse, true, d)
  11828. if changed2 {
  11829. *v = v2
  11830. }
  11831. case map[uintptr]uintptr:
  11832. fastpathTV.DecMapUintptrUintptrV(v, fastpathCheckNilFalse, false, d)
  11833. case *map[uintptr]uintptr:
  11834. v2, changed2 := fastpathTV.DecMapUintptrUintptrV(*v, fastpathCheckNilFalse, true, d)
  11835. if changed2 {
  11836. *v = v2
  11837. }
  11838. case map[uintptr]int:
  11839. fastpathTV.DecMapUintptrIntV(v, fastpathCheckNilFalse, false, d)
  11840. case *map[uintptr]int:
  11841. v2, changed2 := fastpathTV.DecMapUintptrIntV(*v, fastpathCheckNilFalse, true, d)
  11842. if changed2 {
  11843. *v = v2
  11844. }
  11845. case map[uintptr]int8:
  11846. fastpathTV.DecMapUintptrInt8V(v, fastpathCheckNilFalse, false, d)
  11847. case *map[uintptr]int8:
  11848. v2, changed2 := fastpathTV.DecMapUintptrInt8V(*v, fastpathCheckNilFalse, true, d)
  11849. if changed2 {
  11850. *v = v2
  11851. }
  11852. case map[uintptr]int16:
  11853. fastpathTV.DecMapUintptrInt16V(v, fastpathCheckNilFalse, false, d)
  11854. case *map[uintptr]int16:
  11855. v2, changed2 := fastpathTV.DecMapUintptrInt16V(*v, fastpathCheckNilFalse, true, d)
  11856. if changed2 {
  11857. *v = v2
  11858. }
  11859. case map[uintptr]int32:
  11860. fastpathTV.DecMapUintptrInt32V(v, fastpathCheckNilFalse, false, d)
  11861. case *map[uintptr]int32:
  11862. v2, changed2 := fastpathTV.DecMapUintptrInt32V(*v, fastpathCheckNilFalse, true, d)
  11863. if changed2 {
  11864. *v = v2
  11865. }
  11866. case map[uintptr]int64:
  11867. fastpathTV.DecMapUintptrInt64V(v, fastpathCheckNilFalse, false, d)
  11868. case *map[uintptr]int64:
  11869. v2, changed2 := fastpathTV.DecMapUintptrInt64V(*v, fastpathCheckNilFalse, true, d)
  11870. if changed2 {
  11871. *v = v2
  11872. }
  11873. case map[uintptr]float32:
  11874. fastpathTV.DecMapUintptrFloat32V(v, fastpathCheckNilFalse, false, d)
  11875. case *map[uintptr]float32:
  11876. v2, changed2 := fastpathTV.DecMapUintptrFloat32V(*v, fastpathCheckNilFalse, true, d)
  11877. if changed2 {
  11878. *v = v2
  11879. }
  11880. case map[uintptr]float64:
  11881. fastpathTV.DecMapUintptrFloat64V(v, fastpathCheckNilFalse, false, d)
  11882. case *map[uintptr]float64:
  11883. v2, changed2 := fastpathTV.DecMapUintptrFloat64V(*v, fastpathCheckNilFalse, true, d)
  11884. if changed2 {
  11885. *v = v2
  11886. }
  11887. case map[uintptr]bool:
  11888. fastpathTV.DecMapUintptrBoolV(v, fastpathCheckNilFalse, false, d)
  11889. case *map[uintptr]bool:
  11890. v2, changed2 := fastpathTV.DecMapUintptrBoolV(*v, fastpathCheckNilFalse, true, d)
  11891. if changed2 {
  11892. *v = v2
  11893. }
  11894. case []int:
  11895. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, d)
  11896. case *[]int:
  11897. v2, changed2 := fastpathTV.DecSliceIntV(*v, fastpathCheckNilFalse, true, d)
  11898. if changed2 {
  11899. *v = v2
  11900. }
  11901. case map[int]interface{}:
  11902. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, d)
  11903. case *map[int]interface{}:
  11904. v2, changed2 := fastpathTV.DecMapIntIntfV(*v, fastpathCheckNilFalse, true, d)
  11905. if changed2 {
  11906. *v = v2
  11907. }
  11908. case map[int]string:
  11909. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, d)
  11910. case *map[int]string:
  11911. v2, changed2 := fastpathTV.DecMapIntStringV(*v, fastpathCheckNilFalse, true, d)
  11912. if changed2 {
  11913. *v = v2
  11914. }
  11915. case map[int]uint:
  11916. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, d)
  11917. case *map[int]uint:
  11918. v2, changed2 := fastpathTV.DecMapIntUintV(*v, fastpathCheckNilFalse, true, d)
  11919. if changed2 {
  11920. *v = v2
  11921. }
  11922. case map[int]uint8:
  11923. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, d)
  11924. case *map[int]uint8:
  11925. v2, changed2 := fastpathTV.DecMapIntUint8V(*v, fastpathCheckNilFalse, true, d)
  11926. if changed2 {
  11927. *v = v2
  11928. }
  11929. case map[int]uint16:
  11930. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, d)
  11931. case *map[int]uint16:
  11932. v2, changed2 := fastpathTV.DecMapIntUint16V(*v, fastpathCheckNilFalse, true, d)
  11933. if changed2 {
  11934. *v = v2
  11935. }
  11936. case map[int]uint32:
  11937. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, d)
  11938. case *map[int]uint32:
  11939. v2, changed2 := fastpathTV.DecMapIntUint32V(*v, fastpathCheckNilFalse, true, d)
  11940. if changed2 {
  11941. *v = v2
  11942. }
  11943. case map[int]uint64:
  11944. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, d)
  11945. case *map[int]uint64:
  11946. v2, changed2 := fastpathTV.DecMapIntUint64V(*v, fastpathCheckNilFalse, true, d)
  11947. if changed2 {
  11948. *v = v2
  11949. }
  11950. case map[int]uintptr:
  11951. fastpathTV.DecMapIntUintptrV(v, fastpathCheckNilFalse, false, d)
  11952. case *map[int]uintptr:
  11953. v2, changed2 := fastpathTV.DecMapIntUintptrV(*v, fastpathCheckNilFalse, true, d)
  11954. if changed2 {
  11955. *v = v2
  11956. }
  11957. case map[int]int:
  11958. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, d)
  11959. case *map[int]int:
  11960. v2, changed2 := fastpathTV.DecMapIntIntV(*v, fastpathCheckNilFalse, true, d)
  11961. if changed2 {
  11962. *v = v2
  11963. }
  11964. case map[int]int8:
  11965. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, d)
  11966. case *map[int]int8:
  11967. v2, changed2 := fastpathTV.DecMapIntInt8V(*v, fastpathCheckNilFalse, true, d)
  11968. if changed2 {
  11969. *v = v2
  11970. }
  11971. case map[int]int16:
  11972. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, d)
  11973. case *map[int]int16:
  11974. v2, changed2 := fastpathTV.DecMapIntInt16V(*v, fastpathCheckNilFalse, true, d)
  11975. if changed2 {
  11976. *v = v2
  11977. }
  11978. case map[int]int32:
  11979. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, d)
  11980. case *map[int]int32:
  11981. v2, changed2 := fastpathTV.DecMapIntInt32V(*v, fastpathCheckNilFalse, true, d)
  11982. if changed2 {
  11983. *v = v2
  11984. }
  11985. case map[int]int64:
  11986. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, d)
  11987. case *map[int]int64:
  11988. v2, changed2 := fastpathTV.DecMapIntInt64V(*v, fastpathCheckNilFalse, true, d)
  11989. if changed2 {
  11990. *v = v2
  11991. }
  11992. case map[int]float32:
  11993. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, d)
  11994. case *map[int]float32:
  11995. v2, changed2 := fastpathTV.DecMapIntFloat32V(*v, fastpathCheckNilFalse, true, d)
  11996. if changed2 {
  11997. *v = v2
  11998. }
  11999. case map[int]float64:
  12000. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, d)
  12001. case *map[int]float64:
  12002. v2, changed2 := fastpathTV.DecMapIntFloat64V(*v, fastpathCheckNilFalse, true, d)
  12003. if changed2 {
  12004. *v = v2
  12005. }
  12006. case map[int]bool:
  12007. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, d)
  12008. case *map[int]bool:
  12009. v2, changed2 := fastpathTV.DecMapIntBoolV(*v, fastpathCheckNilFalse, true, d)
  12010. if changed2 {
  12011. *v = v2
  12012. }
  12013. case []int8:
  12014. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, d)
  12015. case *[]int8:
  12016. v2, changed2 := fastpathTV.DecSliceInt8V(*v, fastpathCheckNilFalse, true, d)
  12017. if changed2 {
  12018. *v = v2
  12019. }
  12020. case map[int8]interface{}:
  12021. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, d)
  12022. case *map[int8]interface{}:
  12023. v2, changed2 := fastpathTV.DecMapInt8IntfV(*v, fastpathCheckNilFalse, true, d)
  12024. if changed2 {
  12025. *v = v2
  12026. }
  12027. case map[int8]string:
  12028. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, d)
  12029. case *map[int8]string:
  12030. v2, changed2 := fastpathTV.DecMapInt8StringV(*v, fastpathCheckNilFalse, true, d)
  12031. if changed2 {
  12032. *v = v2
  12033. }
  12034. case map[int8]uint:
  12035. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, d)
  12036. case *map[int8]uint:
  12037. v2, changed2 := fastpathTV.DecMapInt8UintV(*v, fastpathCheckNilFalse, true, d)
  12038. if changed2 {
  12039. *v = v2
  12040. }
  12041. case map[int8]uint8:
  12042. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, d)
  12043. case *map[int8]uint8:
  12044. v2, changed2 := fastpathTV.DecMapInt8Uint8V(*v, fastpathCheckNilFalse, true, d)
  12045. if changed2 {
  12046. *v = v2
  12047. }
  12048. case map[int8]uint16:
  12049. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, d)
  12050. case *map[int8]uint16:
  12051. v2, changed2 := fastpathTV.DecMapInt8Uint16V(*v, fastpathCheckNilFalse, true, d)
  12052. if changed2 {
  12053. *v = v2
  12054. }
  12055. case map[int8]uint32:
  12056. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, d)
  12057. case *map[int8]uint32:
  12058. v2, changed2 := fastpathTV.DecMapInt8Uint32V(*v, fastpathCheckNilFalse, true, d)
  12059. if changed2 {
  12060. *v = v2
  12061. }
  12062. case map[int8]uint64:
  12063. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, d)
  12064. case *map[int8]uint64:
  12065. v2, changed2 := fastpathTV.DecMapInt8Uint64V(*v, fastpathCheckNilFalse, true, d)
  12066. if changed2 {
  12067. *v = v2
  12068. }
  12069. case map[int8]uintptr:
  12070. fastpathTV.DecMapInt8UintptrV(v, fastpathCheckNilFalse, false, d)
  12071. case *map[int8]uintptr:
  12072. v2, changed2 := fastpathTV.DecMapInt8UintptrV(*v, fastpathCheckNilFalse, true, d)
  12073. if changed2 {
  12074. *v = v2
  12075. }
  12076. case map[int8]int:
  12077. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, d)
  12078. case *map[int8]int:
  12079. v2, changed2 := fastpathTV.DecMapInt8IntV(*v, fastpathCheckNilFalse, true, d)
  12080. if changed2 {
  12081. *v = v2
  12082. }
  12083. case map[int8]int8:
  12084. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, d)
  12085. case *map[int8]int8:
  12086. v2, changed2 := fastpathTV.DecMapInt8Int8V(*v, fastpathCheckNilFalse, true, d)
  12087. if changed2 {
  12088. *v = v2
  12089. }
  12090. case map[int8]int16:
  12091. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, d)
  12092. case *map[int8]int16:
  12093. v2, changed2 := fastpathTV.DecMapInt8Int16V(*v, fastpathCheckNilFalse, true, d)
  12094. if changed2 {
  12095. *v = v2
  12096. }
  12097. case map[int8]int32:
  12098. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, d)
  12099. case *map[int8]int32:
  12100. v2, changed2 := fastpathTV.DecMapInt8Int32V(*v, fastpathCheckNilFalse, true, d)
  12101. if changed2 {
  12102. *v = v2
  12103. }
  12104. case map[int8]int64:
  12105. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, d)
  12106. case *map[int8]int64:
  12107. v2, changed2 := fastpathTV.DecMapInt8Int64V(*v, fastpathCheckNilFalse, true, d)
  12108. if changed2 {
  12109. *v = v2
  12110. }
  12111. case map[int8]float32:
  12112. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, d)
  12113. case *map[int8]float32:
  12114. v2, changed2 := fastpathTV.DecMapInt8Float32V(*v, fastpathCheckNilFalse, true, d)
  12115. if changed2 {
  12116. *v = v2
  12117. }
  12118. case map[int8]float64:
  12119. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, d)
  12120. case *map[int8]float64:
  12121. v2, changed2 := fastpathTV.DecMapInt8Float64V(*v, fastpathCheckNilFalse, true, d)
  12122. if changed2 {
  12123. *v = v2
  12124. }
  12125. case map[int8]bool:
  12126. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, d)
  12127. case *map[int8]bool:
  12128. v2, changed2 := fastpathTV.DecMapInt8BoolV(*v, fastpathCheckNilFalse, true, d)
  12129. if changed2 {
  12130. *v = v2
  12131. }
  12132. case []int16:
  12133. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, d)
  12134. case *[]int16:
  12135. v2, changed2 := fastpathTV.DecSliceInt16V(*v, fastpathCheckNilFalse, true, d)
  12136. if changed2 {
  12137. *v = v2
  12138. }
  12139. case map[int16]interface{}:
  12140. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, d)
  12141. case *map[int16]interface{}:
  12142. v2, changed2 := fastpathTV.DecMapInt16IntfV(*v, fastpathCheckNilFalse, true, d)
  12143. if changed2 {
  12144. *v = v2
  12145. }
  12146. case map[int16]string:
  12147. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, d)
  12148. case *map[int16]string:
  12149. v2, changed2 := fastpathTV.DecMapInt16StringV(*v, fastpathCheckNilFalse, true, d)
  12150. if changed2 {
  12151. *v = v2
  12152. }
  12153. case map[int16]uint:
  12154. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, d)
  12155. case *map[int16]uint:
  12156. v2, changed2 := fastpathTV.DecMapInt16UintV(*v, fastpathCheckNilFalse, true, d)
  12157. if changed2 {
  12158. *v = v2
  12159. }
  12160. case map[int16]uint8:
  12161. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, d)
  12162. case *map[int16]uint8:
  12163. v2, changed2 := fastpathTV.DecMapInt16Uint8V(*v, fastpathCheckNilFalse, true, d)
  12164. if changed2 {
  12165. *v = v2
  12166. }
  12167. case map[int16]uint16:
  12168. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, d)
  12169. case *map[int16]uint16:
  12170. v2, changed2 := fastpathTV.DecMapInt16Uint16V(*v, fastpathCheckNilFalse, true, d)
  12171. if changed2 {
  12172. *v = v2
  12173. }
  12174. case map[int16]uint32:
  12175. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, d)
  12176. case *map[int16]uint32:
  12177. v2, changed2 := fastpathTV.DecMapInt16Uint32V(*v, fastpathCheckNilFalse, true, d)
  12178. if changed2 {
  12179. *v = v2
  12180. }
  12181. case map[int16]uint64:
  12182. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, d)
  12183. case *map[int16]uint64:
  12184. v2, changed2 := fastpathTV.DecMapInt16Uint64V(*v, fastpathCheckNilFalse, true, d)
  12185. if changed2 {
  12186. *v = v2
  12187. }
  12188. case map[int16]uintptr:
  12189. fastpathTV.DecMapInt16UintptrV(v, fastpathCheckNilFalse, false, d)
  12190. case *map[int16]uintptr:
  12191. v2, changed2 := fastpathTV.DecMapInt16UintptrV(*v, fastpathCheckNilFalse, true, d)
  12192. if changed2 {
  12193. *v = v2
  12194. }
  12195. case map[int16]int:
  12196. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, d)
  12197. case *map[int16]int:
  12198. v2, changed2 := fastpathTV.DecMapInt16IntV(*v, fastpathCheckNilFalse, true, d)
  12199. if changed2 {
  12200. *v = v2
  12201. }
  12202. case map[int16]int8:
  12203. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, d)
  12204. case *map[int16]int8:
  12205. v2, changed2 := fastpathTV.DecMapInt16Int8V(*v, fastpathCheckNilFalse, true, d)
  12206. if changed2 {
  12207. *v = v2
  12208. }
  12209. case map[int16]int16:
  12210. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, d)
  12211. case *map[int16]int16:
  12212. v2, changed2 := fastpathTV.DecMapInt16Int16V(*v, fastpathCheckNilFalse, true, d)
  12213. if changed2 {
  12214. *v = v2
  12215. }
  12216. case map[int16]int32:
  12217. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, d)
  12218. case *map[int16]int32:
  12219. v2, changed2 := fastpathTV.DecMapInt16Int32V(*v, fastpathCheckNilFalse, true, d)
  12220. if changed2 {
  12221. *v = v2
  12222. }
  12223. case map[int16]int64:
  12224. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, d)
  12225. case *map[int16]int64:
  12226. v2, changed2 := fastpathTV.DecMapInt16Int64V(*v, fastpathCheckNilFalse, true, d)
  12227. if changed2 {
  12228. *v = v2
  12229. }
  12230. case map[int16]float32:
  12231. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, d)
  12232. case *map[int16]float32:
  12233. v2, changed2 := fastpathTV.DecMapInt16Float32V(*v, fastpathCheckNilFalse, true, d)
  12234. if changed2 {
  12235. *v = v2
  12236. }
  12237. case map[int16]float64:
  12238. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, d)
  12239. case *map[int16]float64:
  12240. v2, changed2 := fastpathTV.DecMapInt16Float64V(*v, fastpathCheckNilFalse, true, d)
  12241. if changed2 {
  12242. *v = v2
  12243. }
  12244. case map[int16]bool:
  12245. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, d)
  12246. case *map[int16]bool:
  12247. v2, changed2 := fastpathTV.DecMapInt16BoolV(*v, fastpathCheckNilFalse, true, d)
  12248. if changed2 {
  12249. *v = v2
  12250. }
  12251. case []int32:
  12252. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, d)
  12253. case *[]int32:
  12254. v2, changed2 := fastpathTV.DecSliceInt32V(*v, fastpathCheckNilFalse, true, d)
  12255. if changed2 {
  12256. *v = v2
  12257. }
  12258. case map[int32]interface{}:
  12259. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, d)
  12260. case *map[int32]interface{}:
  12261. v2, changed2 := fastpathTV.DecMapInt32IntfV(*v, fastpathCheckNilFalse, true, d)
  12262. if changed2 {
  12263. *v = v2
  12264. }
  12265. case map[int32]string:
  12266. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, d)
  12267. case *map[int32]string:
  12268. v2, changed2 := fastpathTV.DecMapInt32StringV(*v, fastpathCheckNilFalse, true, d)
  12269. if changed2 {
  12270. *v = v2
  12271. }
  12272. case map[int32]uint:
  12273. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, d)
  12274. case *map[int32]uint:
  12275. v2, changed2 := fastpathTV.DecMapInt32UintV(*v, fastpathCheckNilFalse, true, d)
  12276. if changed2 {
  12277. *v = v2
  12278. }
  12279. case map[int32]uint8:
  12280. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, d)
  12281. case *map[int32]uint8:
  12282. v2, changed2 := fastpathTV.DecMapInt32Uint8V(*v, fastpathCheckNilFalse, true, d)
  12283. if changed2 {
  12284. *v = v2
  12285. }
  12286. case map[int32]uint16:
  12287. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, d)
  12288. case *map[int32]uint16:
  12289. v2, changed2 := fastpathTV.DecMapInt32Uint16V(*v, fastpathCheckNilFalse, true, d)
  12290. if changed2 {
  12291. *v = v2
  12292. }
  12293. case map[int32]uint32:
  12294. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, d)
  12295. case *map[int32]uint32:
  12296. v2, changed2 := fastpathTV.DecMapInt32Uint32V(*v, fastpathCheckNilFalse, true, d)
  12297. if changed2 {
  12298. *v = v2
  12299. }
  12300. case map[int32]uint64:
  12301. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, d)
  12302. case *map[int32]uint64:
  12303. v2, changed2 := fastpathTV.DecMapInt32Uint64V(*v, fastpathCheckNilFalse, true, d)
  12304. if changed2 {
  12305. *v = v2
  12306. }
  12307. case map[int32]uintptr:
  12308. fastpathTV.DecMapInt32UintptrV(v, fastpathCheckNilFalse, false, d)
  12309. case *map[int32]uintptr:
  12310. v2, changed2 := fastpathTV.DecMapInt32UintptrV(*v, fastpathCheckNilFalse, true, d)
  12311. if changed2 {
  12312. *v = v2
  12313. }
  12314. case map[int32]int:
  12315. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, d)
  12316. case *map[int32]int:
  12317. v2, changed2 := fastpathTV.DecMapInt32IntV(*v, fastpathCheckNilFalse, true, d)
  12318. if changed2 {
  12319. *v = v2
  12320. }
  12321. case map[int32]int8:
  12322. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, d)
  12323. case *map[int32]int8:
  12324. v2, changed2 := fastpathTV.DecMapInt32Int8V(*v, fastpathCheckNilFalse, true, d)
  12325. if changed2 {
  12326. *v = v2
  12327. }
  12328. case map[int32]int16:
  12329. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, d)
  12330. case *map[int32]int16:
  12331. v2, changed2 := fastpathTV.DecMapInt32Int16V(*v, fastpathCheckNilFalse, true, d)
  12332. if changed2 {
  12333. *v = v2
  12334. }
  12335. case map[int32]int32:
  12336. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, d)
  12337. case *map[int32]int32:
  12338. v2, changed2 := fastpathTV.DecMapInt32Int32V(*v, fastpathCheckNilFalse, true, d)
  12339. if changed2 {
  12340. *v = v2
  12341. }
  12342. case map[int32]int64:
  12343. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, d)
  12344. case *map[int32]int64:
  12345. v2, changed2 := fastpathTV.DecMapInt32Int64V(*v, fastpathCheckNilFalse, true, d)
  12346. if changed2 {
  12347. *v = v2
  12348. }
  12349. case map[int32]float32:
  12350. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, d)
  12351. case *map[int32]float32:
  12352. v2, changed2 := fastpathTV.DecMapInt32Float32V(*v, fastpathCheckNilFalse, true, d)
  12353. if changed2 {
  12354. *v = v2
  12355. }
  12356. case map[int32]float64:
  12357. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, d)
  12358. case *map[int32]float64:
  12359. v2, changed2 := fastpathTV.DecMapInt32Float64V(*v, fastpathCheckNilFalse, true, d)
  12360. if changed2 {
  12361. *v = v2
  12362. }
  12363. case map[int32]bool:
  12364. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, d)
  12365. case *map[int32]bool:
  12366. v2, changed2 := fastpathTV.DecMapInt32BoolV(*v, fastpathCheckNilFalse, true, d)
  12367. if changed2 {
  12368. *v = v2
  12369. }
  12370. case []int64:
  12371. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, d)
  12372. case *[]int64:
  12373. v2, changed2 := fastpathTV.DecSliceInt64V(*v, fastpathCheckNilFalse, true, d)
  12374. if changed2 {
  12375. *v = v2
  12376. }
  12377. case map[int64]interface{}:
  12378. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, d)
  12379. case *map[int64]interface{}:
  12380. v2, changed2 := fastpathTV.DecMapInt64IntfV(*v, fastpathCheckNilFalse, true, d)
  12381. if changed2 {
  12382. *v = v2
  12383. }
  12384. case map[int64]string:
  12385. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, d)
  12386. case *map[int64]string:
  12387. v2, changed2 := fastpathTV.DecMapInt64StringV(*v, fastpathCheckNilFalse, true, d)
  12388. if changed2 {
  12389. *v = v2
  12390. }
  12391. case map[int64]uint:
  12392. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, d)
  12393. case *map[int64]uint:
  12394. v2, changed2 := fastpathTV.DecMapInt64UintV(*v, fastpathCheckNilFalse, true, d)
  12395. if changed2 {
  12396. *v = v2
  12397. }
  12398. case map[int64]uint8:
  12399. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, d)
  12400. case *map[int64]uint8:
  12401. v2, changed2 := fastpathTV.DecMapInt64Uint8V(*v, fastpathCheckNilFalse, true, d)
  12402. if changed2 {
  12403. *v = v2
  12404. }
  12405. case map[int64]uint16:
  12406. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, d)
  12407. case *map[int64]uint16:
  12408. v2, changed2 := fastpathTV.DecMapInt64Uint16V(*v, fastpathCheckNilFalse, true, d)
  12409. if changed2 {
  12410. *v = v2
  12411. }
  12412. case map[int64]uint32:
  12413. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, d)
  12414. case *map[int64]uint32:
  12415. v2, changed2 := fastpathTV.DecMapInt64Uint32V(*v, fastpathCheckNilFalse, true, d)
  12416. if changed2 {
  12417. *v = v2
  12418. }
  12419. case map[int64]uint64:
  12420. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, d)
  12421. case *map[int64]uint64:
  12422. v2, changed2 := fastpathTV.DecMapInt64Uint64V(*v, fastpathCheckNilFalse, true, d)
  12423. if changed2 {
  12424. *v = v2
  12425. }
  12426. case map[int64]uintptr:
  12427. fastpathTV.DecMapInt64UintptrV(v, fastpathCheckNilFalse, false, d)
  12428. case *map[int64]uintptr:
  12429. v2, changed2 := fastpathTV.DecMapInt64UintptrV(*v, fastpathCheckNilFalse, true, d)
  12430. if changed2 {
  12431. *v = v2
  12432. }
  12433. case map[int64]int:
  12434. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, d)
  12435. case *map[int64]int:
  12436. v2, changed2 := fastpathTV.DecMapInt64IntV(*v, fastpathCheckNilFalse, true, d)
  12437. if changed2 {
  12438. *v = v2
  12439. }
  12440. case map[int64]int8:
  12441. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, d)
  12442. case *map[int64]int8:
  12443. v2, changed2 := fastpathTV.DecMapInt64Int8V(*v, fastpathCheckNilFalse, true, d)
  12444. if changed2 {
  12445. *v = v2
  12446. }
  12447. case map[int64]int16:
  12448. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, d)
  12449. case *map[int64]int16:
  12450. v2, changed2 := fastpathTV.DecMapInt64Int16V(*v, fastpathCheckNilFalse, true, d)
  12451. if changed2 {
  12452. *v = v2
  12453. }
  12454. case map[int64]int32:
  12455. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, d)
  12456. case *map[int64]int32:
  12457. v2, changed2 := fastpathTV.DecMapInt64Int32V(*v, fastpathCheckNilFalse, true, d)
  12458. if changed2 {
  12459. *v = v2
  12460. }
  12461. case map[int64]int64:
  12462. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, d)
  12463. case *map[int64]int64:
  12464. v2, changed2 := fastpathTV.DecMapInt64Int64V(*v, fastpathCheckNilFalse, true, d)
  12465. if changed2 {
  12466. *v = v2
  12467. }
  12468. case map[int64]float32:
  12469. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, d)
  12470. case *map[int64]float32:
  12471. v2, changed2 := fastpathTV.DecMapInt64Float32V(*v, fastpathCheckNilFalse, true, d)
  12472. if changed2 {
  12473. *v = v2
  12474. }
  12475. case map[int64]float64:
  12476. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, d)
  12477. case *map[int64]float64:
  12478. v2, changed2 := fastpathTV.DecMapInt64Float64V(*v, fastpathCheckNilFalse, true, d)
  12479. if changed2 {
  12480. *v = v2
  12481. }
  12482. case map[int64]bool:
  12483. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, d)
  12484. case *map[int64]bool:
  12485. v2, changed2 := fastpathTV.DecMapInt64BoolV(*v, fastpathCheckNilFalse, true, d)
  12486. if changed2 {
  12487. *v = v2
  12488. }
  12489. case []bool:
  12490. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, d)
  12491. case *[]bool:
  12492. v2, changed2 := fastpathTV.DecSliceBoolV(*v, fastpathCheckNilFalse, true, d)
  12493. if changed2 {
  12494. *v = v2
  12495. }
  12496. case map[bool]interface{}:
  12497. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, d)
  12498. case *map[bool]interface{}:
  12499. v2, changed2 := fastpathTV.DecMapBoolIntfV(*v, fastpathCheckNilFalse, true, d)
  12500. if changed2 {
  12501. *v = v2
  12502. }
  12503. case map[bool]string:
  12504. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, d)
  12505. case *map[bool]string:
  12506. v2, changed2 := fastpathTV.DecMapBoolStringV(*v, fastpathCheckNilFalse, true, d)
  12507. if changed2 {
  12508. *v = v2
  12509. }
  12510. case map[bool]uint:
  12511. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, d)
  12512. case *map[bool]uint:
  12513. v2, changed2 := fastpathTV.DecMapBoolUintV(*v, fastpathCheckNilFalse, true, d)
  12514. if changed2 {
  12515. *v = v2
  12516. }
  12517. case map[bool]uint8:
  12518. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, d)
  12519. case *map[bool]uint8:
  12520. v2, changed2 := fastpathTV.DecMapBoolUint8V(*v, fastpathCheckNilFalse, true, d)
  12521. if changed2 {
  12522. *v = v2
  12523. }
  12524. case map[bool]uint16:
  12525. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, d)
  12526. case *map[bool]uint16:
  12527. v2, changed2 := fastpathTV.DecMapBoolUint16V(*v, fastpathCheckNilFalse, true, d)
  12528. if changed2 {
  12529. *v = v2
  12530. }
  12531. case map[bool]uint32:
  12532. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, d)
  12533. case *map[bool]uint32:
  12534. v2, changed2 := fastpathTV.DecMapBoolUint32V(*v, fastpathCheckNilFalse, true, d)
  12535. if changed2 {
  12536. *v = v2
  12537. }
  12538. case map[bool]uint64:
  12539. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, d)
  12540. case *map[bool]uint64:
  12541. v2, changed2 := fastpathTV.DecMapBoolUint64V(*v, fastpathCheckNilFalse, true, d)
  12542. if changed2 {
  12543. *v = v2
  12544. }
  12545. case map[bool]uintptr:
  12546. fastpathTV.DecMapBoolUintptrV(v, fastpathCheckNilFalse, false, d)
  12547. case *map[bool]uintptr:
  12548. v2, changed2 := fastpathTV.DecMapBoolUintptrV(*v, fastpathCheckNilFalse, true, d)
  12549. if changed2 {
  12550. *v = v2
  12551. }
  12552. case map[bool]int:
  12553. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, d)
  12554. case *map[bool]int:
  12555. v2, changed2 := fastpathTV.DecMapBoolIntV(*v, fastpathCheckNilFalse, true, d)
  12556. if changed2 {
  12557. *v = v2
  12558. }
  12559. case map[bool]int8:
  12560. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, d)
  12561. case *map[bool]int8:
  12562. v2, changed2 := fastpathTV.DecMapBoolInt8V(*v, fastpathCheckNilFalse, true, d)
  12563. if changed2 {
  12564. *v = v2
  12565. }
  12566. case map[bool]int16:
  12567. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, d)
  12568. case *map[bool]int16:
  12569. v2, changed2 := fastpathTV.DecMapBoolInt16V(*v, fastpathCheckNilFalse, true, d)
  12570. if changed2 {
  12571. *v = v2
  12572. }
  12573. case map[bool]int32:
  12574. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, d)
  12575. case *map[bool]int32:
  12576. v2, changed2 := fastpathTV.DecMapBoolInt32V(*v, fastpathCheckNilFalse, true, d)
  12577. if changed2 {
  12578. *v = v2
  12579. }
  12580. case map[bool]int64:
  12581. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, d)
  12582. case *map[bool]int64:
  12583. v2, changed2 := fastpathTV.DecMapBoolInt64V(*v, fastpathCheckNilFalse, true, d)
  12584. if changed2 {
  12585. *v = v2
  12586. }
  12587. case map[bool]float32:
  12588. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, d)
  12589. case *map[bool]float32:
  12590. v2, changed2 := fastpathTV.DecMapBoolFloat32V(*v, fastpathCheckNilFalse, true, d)
  12591. if changed2 {
  12592. *v = v2
  12593. }
  12594. case map[bool]float64:
  12595. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, d)
  12596. case *map[bool]float64:
  12597. v2, changed2 := fastpathTV.DecMapBoolFloat64V(*v, fastpathCheckNilFalse, true, d)
  12598. if changed2 {
  12599. *v = v2
  12600. }
  12601. case map[bool]bool:
  12602. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, d)
  12603. case *map[bool]bool:
  12604. v2, changed2 := fastpathTV.DecMapBoolBoolV(*v, fastpathCheckNilFalse, true, d)
  12605. if changed2 {
  12606. *v = v2
  12607. }
  12608. default:
  12609. return false
  12610. }
  12611. return true
  12612. }
  12613. // -- -- fast path functions
  12614. func (f *decFnInfo) fastpathDecSliceIntfR(rv reflect.Value) {
  12615. array := f.seq == seqTypeArray
  12616. if !array && rv.CanAddr() {
  12617. vp := rv.Addr().Interface().(*[]interface{})
  12618. v, changed := fastpathTV.DecSliceIntfV(*vp, fastpathCheckNilFalse, !array, f.d)
  12619. if changed {
  12620. *vp = v
  12621. }
  12622. } else {
  12623. v := rv.Interface().([]interface{})
  12624. fastpathTV.DecSliceIntfV(v, fastpathCheckNilFalse, false, f.d)
  12625. }
  12626. }
  12627. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, checkNil bool, d *Decoder) {
  12628. v, changed := f.DecSliceIntfV(*vp, checkNil, true, d)
  12629. if changed {
  12630. *vp = v
  12631. }
  12632. }
  12633. func (_ fastpathT) DecSliceIntfV(v []interface{}, checkNil bool, canChange bool,
  12634. d *Decoder) (_ []interface{}, changed bool) {
  12635. dd := d.d
  12636. if checkNil && dd.TryDecodeAsNil() {
  12637. if v != nil {
  12638. changed = true
  12639. }
  12640. return nil, changed
  12641. }
  12642. slh, containerLenS := d.decSliceHelperStart()
  12643. x2read := containerLenS
  12644. var xtrunc bool
  12645. if canChange && v == nil {
  12646. var xlen int
  12647. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 16); xtrunc {
  12648. x2read = xlen
  12649. }
  12650. v = make([]interface{}, xlen)
  12651. changed = true
  12652. }
  12653. if containerLenS == 0 {
  12654. if canChange && len(v) != 0 {
  12655. v = v[:0]
  12656. changed = true
  12657. }
  12658. return v, changed
  12659. }
  12660. if containerLenS > 0 {
  12661. if containerLenS > cap(v) {
  12662. if canChange {
  12663. var xlen int
  12664. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 16); xtrunc {
  12665. x2read = xlen
  12666. }
  12667. v = make([]interface{}, xlen)
  12668. changed = true
  12669. } else {
  12670. d.arrayCannotExpand(len(v), containerLenS)
  12671. x2read = len(v)
  12672. }
  12673. } else if containerLenS != len(v) {
  12674. v = v[:containerLenS]
  12675. changed = true
  12676. }
  12677. j := 0
  12678. for ; j < x2read; j++ {
  12679. d.decode(&v[j])
  12680. }
  12681. if xtrunc {
  12682. for ; j < containerLenS; j++ {
  12683. v = append(v, nil)
  12684. d.decode(&v[j])
  12685. }
  12686. } else if !canChange {
  12687. for ; j < containerLenS; j++ {
  12688. d.swallow()
  12689. }
  12690. }
  12691. } else {
  12692. j := 0
  12693. for ; !dd.CheckBreak(); j++ {
  12694. if j >= len(v) {
  12695. if canChange {
  12696. v = append(v, nil)
  12697. changed = true
  12698. } else {
  12699. d.arrayCannotExpand(len(v), j+1)
  12700. }
  12701. }
  12702. if j < len(v) {
  12703. d.decode(&v[j])
  12704. } else {
  12705. d.swallow()
  12706. }
  12707. }
  12708. slh.End()
  12709. }
  12710. return v, changed
  12711. }
  12712. func (f *decFnInfo) fastpathDecSliceStringR(rv reflect.Value) {
  12713. array := f.seq == seqTypeArray
  12714. if !array && rv.CanAddr() {
  12715. vp := rv.Addr().Interface().(*[]string)
  12716. v, changed := fastpathTV.DecSliceStringV(*vp, fastpathCheckNilFalse, !array, f.d)
  12717. if changed {
  12718. *vp = v
  12719. }
  12720. } else {
  12721. v := rv.Interface().([]string)
  12722. fastpathTV.DecSliceStringV(v, fastpathCheckNilFalse, false, f.d)
  12723. }
  12724. }
  12725. func (f fastpathT) DecSliceStringX(vp *[]string, checkNil bool, d *Decoder) {
  12726. v, changed := f.DecSliceStringV(*vp, checkNil, true, d)
  12727. if changed {
  12728. *vp = v
  12729. }
  12730. }
  12731. func (_ fastpathT) DecSliceStringV(v []string, checkNil bool, canChange bool,
  12732. d *Decoder) (_ []string, changed bool) {
  12733. dd := d.d
  12734. if checkNil && dd.TryDecodeAsNil() {
  12735. if v != nil {
  12736. changed = true
  12737. }
  12738. return nil, changed
  12739. }
  12740. slh, containerLenS := d.decSliceHelperStart()
  12741. x2read := containerLenS
  12742. var xtrunc bool
  12743. if canChange && v == nil {
  12744. var xlen int
  12745. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 16); xtrunc {
  12746. x2read = xlen
  12747. }
  12748. v = make([]string, xlen)
  12749. changed = true
  12750. }
  12751. if containerLenS == 0 {
  12752. if canChange && len(v) != 0 {
  12753. v = v[:0]
  12754. changed = true
  12755. }
  12756. return v, changed
  12757. }
  12758. if containerLenS > 0 {
  12759. if containerLenS > cap(v) {
  12760. if canChange {
  12761. var xlen int
  12762. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 16); xtrunc {
  12763. x2read = xlen
  12764. }
  12765. v = make([]string, xlen)
  12766. changed = true
  12767. } else {
  12768. d.arrayCannotExpand(len(v), containerLenS)
  12769. x2read = len(v)
  12770. }
  12771. } else if containerLenS != len(v) {
  12772. v = v[:containerLenS]
  12773. changed = true
  12774. }
  12775. j := 0
  12776. for ; j < x2read; j++ {
  12777. v[j] = dd.DecodeString()
  12778. }
  12779. if xtrunc {
  12780. for ; j < containerLenS; j++ {
  12781. v = append(v, "")
  12782. v[j] = dd.DecodeString()
  12783. }
  12784. } else if !canChange {
  12785. for ; j < containerLenS; j++ {
  12786. d.swallow()
  12787. }
  12788. }
  12789. } else {
  12790. j := 0
  12791. for ; !dd.CheckBreak(); j++ {
  12792. if j >= len(v) {
  12793. if canChange {
  12794. v = append(v, "")
  12795. changed = true
  12796. } else {
  12797. d.arrayCannotExpand(len(v), j+1)
  12798. }
  12799. }
  12800. if j < len(v) {
  12801. v[j] = dd.DecodeString()
  12802. } else {
  12803. d.swallow()
  12804. }
  12805. }
  12806. slh.End()
  12807. }
  12808. return v, changed
  12809. }
  12810. func (f *decFnInfo) fastpathDecSliceFloat32R(rv reflect.Value) {
  12811. array := f.seq == seqTypeArray
  12812. if !array && rv.CanAddr() {
  12813. vp := rv.Addr().Interface().(*[]float32)
  12814. v, changed := fastpathTV.DecSliceFloat32V(*vp, fastpathCheckNilFalse, !array, f.d)
  12815. if changed {
  12816. *vp = v
  12817. }
  12818. } else {
  12819. v := rv.Interface().([]float32)
  12820. fastpathTV.DecSliceFloat32V(v, fastpathCheckNilFalse, false, f.d)
  12821. }
  12822. }
  12823. func (f fastpathT) DecSliceFloat32X(vp *[]float32, checkNil bool, d *Decoder) {
  12824. v, changed := f.DecSliceFloat32V(*vp, checkNil, true, d)
  12825. if changed {
  12826. *vp = v
  12827. }
  12828. }
  12829. func (_ fastpathT) DecSliceFloat32V(v []float32, checkNil bool, canChange bool,
  12830. d *Decoder) (_ []float32, changed bool) {
  12831. dd := d.d
  12832. if checkNil && dd.TryDecodeAsNil() {
  12833. if v != nil {
  12834. changed = true
  12835. }
  12836. return nil, changed
  12837. }
  12838. slh, containerLenS := d.decSliceHelperStart()
  12839. x2read := containerLenS
  12840. var xtrunc bool
  12841. if canChange && v == nil {
  12842. var xlen int
  12843. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4); xtrunc {
  12844. x2read = xlen
  12845. }
  12846. v = make([]float32, xlen)
  12847. changed = true
  12848. }
  12849. if containerLenS == 0 {
  12850. if canChange && len(v) != 0 {
  12851. v = v[:0]
  12852. changed = true
  12853. }
  12854. return v, changed
  12855. }
  12856. if containerLenS > 0 {
  12857. if containerLenS > cap(v) {
  12858. if canChange {
  12859. var xlen int
  12860. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4); xtrunc {
  12861. x2read = xlen
  12862. }
  12863. v = make([]float32, xlen)
  12864. changed = true
  12865. } else {
  12866. d.arrayCannotExpand(len(v), containerLenS)
  12867. x2read = len(v)
  12868. }
  12869. } else if containerLenS != len(v) {
  12870. v = v[:containerLenS]
  12871. changed = true
  12872. }
  12873. j := 0
  12874. for ; j < x2read; j++ {
  12875. v[j] = float32(dd.DecodeFloat(true))
  12876. }
  12877. if xtrunc {
  12878. for ; j < containerLenS; j++ {
  12879. v = append(v, 0)
  12880. v[j] = float32(dd.DecodeFloat(true))
  12881. }
  12882. } else if !canChange {
  12883. for ; j < containerLenS; j++ {
  12884. d.swallow()
  12885. }
  12886. }
  12887. } else {
  12888. j := 0
  12889. for ; !dd.CheckBreak(); j++ {
  12890. if j >= len(v) {
  12891. if canChange {
  12892. v = append(v, 0)
  12893. changed = true
  12894. } else {
  12895. d.arrayCannotExpand(len(v), j+1)
  12896. }
  12897. }
  12898. if j < len(v) {
  12899. v[j] = float32(dd.DecodeFloat(true))
  12900. } else {
  12901. d.swallow()
  12902. }
  12903. }
  12904. slh.End()
  12905. }
  12906. return v, changed
  12907. }
  12908. func (f *decFnInfo) fastpathDecSliceFloat64R(rv reflect.Value) {
  12909. array := f.seq == seqTypeArray
  12910. if !array && rv.CanAddr() {
  12911. vp := rv.Addr().Interface().(*[]float64)
  12912. v, changed := fastpathTV.DecSliceFloat64V(*vp, fastpathCheckNilFalse, !array, f.d)
  12913. if changed {
  12914. *vp = v
  12915. }
  12916. } else {
  12917. v := rv.Interface().([]float64)
  12918. fastpathTV.DecSliceFloat64V(v, fastpathCheckNilFalse, false, f.d)
  12919. }
  12920. }
  12921. func (f fastpathT) DecSliceFloat64X(vp *[]float64, checkNil bool, d *Decoder) {
  12922. v, changed := f.DecSliceFloat64V(*vp, checkNil, true, d)
  12923. if changed {
  12924. *vp = v
  12925. }
  12926. }
  12927. func (_ fastpathT) DecSliceFloat64V(v []float64, checkNil bool, canChange bool,
  12928. d *Decoder) (_ []float64, changed bool) {
  12929. dd := d.d
  12930. if checkNil && dd.TryDecodeAsNil() {
  12931. if v != nil {
  12932. changed = true
  12933. }
  12934. return nil, changed
  12935. }
  12936. slh, containerLenS := d.decSliceHelperStart()
  12937. x2read := containerLenS
  12938. var xtrunc bool
  12939. if canChange && v == nil {
  12940. var xlen int
  12941. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  12942. x2read = xlen
  12943. }
  12944. v = make([]float64, xlen)
  12945. changed = true
  12946. }
  12947. if containerLenS == 0 {
  12948. if canChange && len(v) != 0 {
  12949. v = v[:0]
  12950. changed = true
  12951. }
  12952. return v, changed
  12953. }
  12954. if containerLenS > 0 {
  12955. if containerLenS > cap(v) {
  12956. if canChange {
  12957. var xlen int
  12958. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  12959. x2read = xlen
  12960. }
  12961. v = make([]float64, xlen)
  12962. changed = true
  12963. } else {
  12964. d.arrayCannotExpand(len(v), containerLenS)
  12965. x2read = len(v)
  12966. }
  12967. } else if containerLenS != len(v) {
  12968. v = v[:containerLenS]
  12969. changed = true
  12970. }
  12971. j := 0
  12972. for ; j < x2read; j++ {
  12973. v[j] = dd.DecodeFloat(false)
  12974. }
  12975. if xtrunc {
  12976. for ; j < containerLenS; j++ {
  12977. v = append(v, 0)
  12978. v[j] = dd.DecodeFloat(false)
  12979. }
  12980. } else if !canChange {
  12981. for ; j < containerLenS; j++ {
  12982. d.swallow()
  12983. }
  12984. }
  12985. } else {
  12986. j := 0
  12987. for ; !dd.CheckBreak(); j++ {
  12988. if j >= len(v) {
  12989. if canChange {
  12990. v = append(v, 0)
  12991. changed = true
  12992. } else {
  12993. d.arrayCannotExpand(len(v), j+1)
  12994. }
  12995. }
  12996. if j < len(v) {
  12997. v[j] = dd.DecodeFloat(false)
  12998. } else {
  12999. d.swallow()
  13000. }
  13001. }
  13002. slh.End()
  13003. }
  13004. return v, changed
  13005. }
  13006. func (f *decFnInfo) fastpathDecSliceUintR(rv reflect.Value) {
  13007. array := f.seq == seqTypeArray
  13008. if !array && rv.CanAddr() {
  13009. vp := rv.Addr().Interface().(*[]uint)
  13010. v, changed := fastpathTV.DecSliceUintV(*vp, fastpathCheckNilFalse, !array, f.d)
  13011. if changed {
  13012. *vp = v
  13013. }
  13014. } else {
  13015. v := rv.Interface().([]uint)
  13016. fastpathTV.DecSliceUintV(v, fastpathCheckNilFalse, false, f.d)
  13017. }
  13018. }
  13019. func (f fastpathT) DecSliceUintX(vp *[]uint, checkNil bool, d *Decoder) {
  13020. v, changed := f.DecSliceUintV(*vp, checkNil, true, d)
  13021. if changed {
  13022. *vp = v
  13023. }
  13024. }
  13025. func (_ fastpathT) DecSliceUintV(v []uint, checkNil bool, canChange bool,
  13026. d *Decoder) (_ []uint, changed bool) {
  13027. dd := d.d
  13028. if checkNil && dd.TryDecodeAsNil() {
  13029. if v != nil {
  13030. changed = true
  13031. }
  13032. return nil, changed
  13033. }
  13034. slh, containerLenS := d.decSliceHelperStart()
  13035. x2read := containerLenS
  13036. var xtrunc bool
  13037. if canChange && v == nil {
  13038. var xlen int
  13039. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  13040. x2read = xlen
  13041. }
  13042. v = make([]uint, xlen)
  13043. changed = true
  13044. }
  13045. if containerLenS == 0 {
  13046. if canChange && len(v) != 0 {
  13047. v = v[:0]
  13048. changed = true
  13049. }
  13050. return v, changed
  13051. }
  13052. if containerLenS > 0 {
  13053. if containerLenS > cap(v) {
  13054. if canChange {
  13055. var xlen int
  13056. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  13057. x2read = xlen
  13058. }
  13059. v = make([]uint, xlen)
  13060. changed = true
  13061. } else {
  13062. d.arrayCannotExpand(len(v), containerLenS)
  13063. x2read = len(v)
  13064. }
  13065. } else if containerLenS != len(v) {
  13066. v = v[:containerLenS]
  13067. changed = true
  13068. }
  13069. j := 0
  13070. for ; j < x2read; j++ {
  13071. v[j] = uint(dd.DecodeUint(uintBitsize))
  13072. }
  13073. if xtrunc {
  13074. for ; j < containerLenS; j++ {
  13075. v = append(v, 0)
  13076. v[j] = uint(dd.DecodeUint(uintBitsize))
  13077. }
  13078. } else if !canChange {
  13079. for ; j < containerLenS; j++ {
  13080. d.swallow()
  13081. }
  13082. }
  13083. } else {
  13084. j := 0
  13085. for ; !dd.CheckBreak(); j++ {
  13086. if j >= len(v) {
  13087. if canChange {
  13088. v = append(v, 0)
  13089. changed = true
  13090. } else {
  13091. d.arrayCannotExpand(len(v), j+1)
  13092. }
  13093. }
  13094. if j < len(v) {
  13095. v[j] = uint(dd.DecodeUint(uintBitsize))
  13096. } else {
  13097. d.swallow()
  13098. }
  13099. }
  13100. slh.End()
  13101. }
  13102. return v, changed
  13103. }
  13104. func (f *decFnInfo) fastpathDecSliceUint16R(rv reflect.Value) {
  13105. array := f.seq == seqTypeArray
  13106. if !array && rv.CanAddr() {
  13107. vp := rv.Addr().Interface().(*[]uint16)
  13108. v, changed := fastpathTV.DecSliceUint16V(*vp, fastpathCheckNilFalse, !array, f.d)
  13109. if changed {
  13110. *vp = v
  13111. }
  13112. } else {
  13113. v := rv.Interface().([]uint16)
  13114. fastpathTV.DecSliceUint16V(v, fastpathCheckNilFalse, false, f.d)
  13115. }
  13116. }
  13117. func (f fastpathT) DecSliceUint16X(vp *[]uint16, checkNil bool, d *Decoder) {
  13118. v, changed := f.DecSliceUint16V(*vp, checkNil, true, d)
  13119. if changed {
  13120. *vp = v
  13121. }
  13122. }
  13123. func (_ fastpathT) DecSliceUint16V(v []uint16, checkNil bool, canChange bool,
  13124. d *Decoder) (_ []uint16, changed bool) {
  13125. dd := d.d
  13126. if checkNil && dd.TryDecodeAsNil() {
  13127. if v != nil {
  13128. changed = true
  13129. }
  13130. return nil, changed
  13131. }
  13132. slh, containerLenS := d.decSliceHelperStart()
  13133. x2read := containerLenS
  13134. var xtrunc bool
  13135. if canChange && v == nil {
  13136. var xlen int
  13137. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 2); xtrunc {
  13138. x2read = xlen
  13139. }
  13140. v = make([]uint16, xlen)
  13141. changed = true
  13142. }
  13143. if containerLenS == 0 {
  13144. if canChange && len(v) != 0 {
  13145. v = v[:0]
  13146. changed = true
  13147. }
  13148. return v, changed
  13149. }
  13150. if containerLenS > 0 {
  13151. if containerLenS > cap(v) {
  13152. if canChange {
  13153. var xlen int
  13154. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 2); xtrunc {
  13155. x2read = xlen
  13156. }
  13157. v = make([]uint16, xlen)
  13158. changed = true
  13159. } else {
  13160. d.arrayCannotExpand(len(v), containerLenS)
  13161. x2read = len(v)
  13162. }
  13163. } else if containerLenS != len(v) {
  13164. v = v[:containerLenS]
  13165. changed = true
  13166. }
  13167. j := 0
  13168. for ; j < x2read; j++ {
  13169. v[j] = uint16(dd.DecodeUint(16))
  13170. }
  13171. if xtrunc {
  13172. for ; j < containerLenS; j++ {
  13173. v = append(v, 0)
  13174. v[j] = uint16(dd.DecodeUint(16))
  13175. }
  13176. } else if !canChange {
  13177. for ; j < containerLenS; j++ {
  13178. d.swallow()
  13179. }
  13180. }
  13181. } else {
  13182. j := 0
  13183. for ; !dd.CheckBreak(); j++ {
  13184. if j >= len(v) {
  13185. if canChange {
  13186. v = append(v, 0)
  13187. changed = true
  13188. } else {
  13189. d.arrayCannotExpand(len(v), j+1)
  13190. }
  13191. }
  13192. if j < len(v) {
  13193. v[j] = uint16(dd.DecodeUint(16))
  13194. } else {
  13195. d.swallow()
  13196. }
  13197. }
  13198. slh.End()
  13199. }
  13200. return v, changed
  13201. }
  13202. func (f *decFnInfo) fastpathDecSliceUint32R(rv reflect.Value) {
  13203. array := f.seq == seqTypeArray
  13204. if !array && rv.CanAddr() {
  13205. vp := rv.Addr().Interface().(*[]uint32)
  13206. v, changed := fastpathTV.DecSliceUint32V(*vp, fastpathCheckNilFalse, !array, f.d)
  13207. if changed {
  13208. *vp = v
  13209. }
  13210. } else {
  13211. v := rv.Interface().([]uint32)
  13212. fastpathTV.DecSliceUint32V(v, fastpathCheckNilFalse, false, f.d)
  13213. }
  13214. }
  13215. func (f fastpathT) DecSliceUint32X(vp *[]uint32, checkNil bool, d *Decoder) {
  13216. v, changed := f.DecSliceUint32V(*vp, checkNil, true, d)
  13217. if changed {
  13218. *vp = v
  13219. }
  13220. }
  13221. func (_ fastpathT) DecSliceUint32V(v []uint32, checkNil bool, canChange bool,
  13222. d *Decoder) (_ []uint32, changed bool) {
  13223. dd := d.d
  13224. if checkNil && dd.TryDecodeAsNil() {
  13225. if v != nil {
  13226. changed = true
  13227. }
  13228. return nil, changed
  13229. }
  13230. slh, containerLenS := d.decSliceHelperStart()
  13231. x2read := containerLenS
  13232. var xtrunc bool
  13233. if canChange && v == nil {
  13234. var xlen int
  13235. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4); xtrunc {
  13236. x2read = xlen
  13237. }
  13238. v = make([]uint32, xlen)
  13239. changed = true
  13240. }
  13241. if containerLenS == 0 {
  13242. if canChange && len(v) != 0 {
  13243. v = v[:0]
  13244. changed = true
  13245. }
  13246. return v, changed
  13247. }
  13248. if containerLenS > 0 {
  13249. if containerLenS > cap(v) {
  13250. if canChange {
  13251. var xlen int
  13252. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4); xtrunc {
  13253. x2read = xlen
  13254. }
  13255. v = make([]uint32, xlen)
  13256. changed = true
  13257. } else {
  13258. d.arrayCannotExpand(len(v), containerLenS)
  13259. x2read = len(v)
  13260. }
  13261. } else if containerLenS != len(v) {
  13262. v = v[:containerLenS]
  13263. changed = true
  13264. }
  13265. j := 0
  13266. for ; j < x2read; j++ {
  13267. v[j] = uint32(dd.DecodeUint(32))
  13268. }
  13269. if xtrunc {
  13270. for ; j < containerLenS; j++ {
  13271. v = append(v, 0)
  13272. v[j] = uint32(dd.DecodeUint(32))
  13273. }
  13274. } else if !canChange {
  13275. for ; j < containerLenS; j++ {
  13276. d.swallow()
  13277. }
  13278. }
  13279. } else {
  13280. j := 0
  13281. for ; !dd.CheckBreak(); j++ {
  13282. if j >= len(v) {
  13283. if canChange {
  13284. v = append(v, 0)
  13285. changed = true
  13286. } else {
  13287. d.arrayCannotExpand(len(v), j+1)
  13288. }
  13289. }
  13290. if j < len(v) {
  13291. v[j] = uint32(dd.DecodeUint(32))
  13292. } else {
  13293. d.swallow()
  13294. }
  13295. }
  13296. slh.End()
  13297. }
  13298. return v, changed
  13299. }
  13300. func (f *decFnInfo) fastpathDecSliceUint64R(rv reflect.Value) {
  13301. array := f.seq == seqTypeArray
  13302. if !array && rv.CanAddr() {
  13303. vp := rv.Addr().Interface().(*[]uint64)
  13304. v, changed := fastpathTV.DecSliceUint64V(*vp, fastpathCheckNilFalse, !array, f.d)
  13305. if changed {
  13306. *vp = v
  13307. }
  13308. } else {
  13309. v := rv.Interface().([]uint64)
  13310. fastpathTV.DecSliceUint64V(v, fastpathCheckNilFalse, false, f.d)
  13311. }
  13312. }
  13313. func (f fastpathT) DecSliceUint64X(vp *[]uint64, checkNil bool, d *Decoder) {
  13314. v, changed := f.DecSliceUint64V(*vp, checkNil, true, d)
  13315. if changed {
  13316. *vp = v
  13317. }
  13318. }
  13319. func (_ fastpathT) DecSliceUint64V(v []uint64, checkNil bool, canChange bool,
  13320. d *Decoder) (_ []uint64, changed bool) {
  13321. dd := d.d
  13322. if checkNil && dd.TryDecodeAsNil() {
  13323. if v != nil {
  13324. changed = true
  13325. }
  13326. return nil, changed
  13327. }
  13328. slh, containerLenS := d.decSliceHelperStart()
  13329. x2read := containerLenS
  13330. var xtrunc bool
  13331. if canChange && v == nil {
  13332. var xlen int
  13333. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  13334. x2read = xlen
  13335. }
  13336. v = make([]uint64, xlen)
  13337. changed = true
  13338. }
  13339. if containerLenS == 0 {
  13340. if canChange && len(v) != 0 {
  13341. v = v[:0]
  13342. changed = true
  13343. }
  13344. return v, changed
  13345. }
  13346. if containerLenS > 0 {
  13347. if containerLenS > cap(v) {
  13348. if canChange {
  13349. var xlen int
  13350. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  13351. x2read = xlen
  13352. }
  13353. v = make([]uint64, xlen)
  13354. changed = true
  13355. } else {
  13356. d.arrayCannotExpand(len(v), containerLenS)
  13357. x2read = len(v)
  13358. }
  13359. } else if containerLenS != len(v) {
  13360. v = v[:containerLenS]
  13361. changed = true
  13362. }
  13363. j := 0
  13364. for ; j < x2read; j++ {
  13365. v[j] = dd.DecodeUint(64)
  13366. }
  13367. if xtrunc {
  13368. for ; j < containerLenS; j++ {
  13369. v = append(v, 0)
  13370. v[j] = dd.DecodeUint(64)
  13371. }
  13372. } else if !canChange {
  13373. for ; j < containerLenS; j++ {
  13374. d.swallow()
  13375. }
  13376. }
  13377. } else {
  13378. j := 0
  13379. for ; !dd.CheckBreak(); j++ {
  13380. if j >= len(v) {
  13381. if canChange {
  13382. v = append(v, 0)
  13383. changed = true
  13384. } else {
  13385. d.arrayCannotExpand(len(v), j+1)
  13386. }
  13387. }
  13388. if j < len(v) {
  13389. v[j] = dd.DecodeUint(64)
  13390. } else {
  13391. d.swallow()
  13392. }
  13393. }
  13394. slh.End()
  13395. }
  13396. return v, changed
  13397. }
  13398. func (f *decFnInfo) fastpathDecSliceUintptrR(rv reflect.Value) {
  13399. array := f.seq == seqTypeArray
  13400. if !array && rv.CanAddr() {
  13401. vp := rv.Addr().Interface().(*[]uintptr)
  13402. v, changed := fastpathTV.DecSliceUintptrV(*vp, fastpathCheckNilFalse, !array, f.d)
  13403. if changed {
  13404. *vp = v
  13405. }
  13406. } else {
  13407. v := rv.Interface().([]uintptr)
  13408. fastpathTV.DecSliceUintptrV(v, fastpathCheckNilFalse, false, f.d)
  13409. }
  13410. }
  13411. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, checkNil bool, d *Decoder) {
  13412. v, changed := f.DecSliceUintptrV(*vp, checkNil, true, d)
  13413. if changed {
  13414. *vp = v
  13415. }
  13416. }
  13417. func (_ fastpathT) DecSliceUintptrV(v []uintptr, checkNil bool, canChange bool,
  13418. d *Decoder) (_ []uintptr, changed bool) {
  13419. dd := d.d
  13420. if checkNil && dd.TryDecodeAsNil() {
  13421. if v != nil {
  13422. changed = true
  13423. }
  13424. return nil, changed
  13425. }
  13426. slh, containerLenS := d.decSliceHelperStart()
  13427. x2read := containerLenS
  13428. var xtrunc bool
  13429. if canChange && v == nil {
  13430. var xlen int
  13431. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  13432. x2read = xlen
  13433. }
  13434. v = make([]uintptr, xlen)
  13435. changed = true
  13436. }
  13437. if containerLenS == 0 {
  13438. if canChange && len(v) != 0 {
  13439. v = v[:0]
  13440. changed = true
  13441. }
  13442. return v, changed
  13443. }
  13444. if containerLenS > 0 {
  13445. if containerLenS > cap(v) {
  13446. if canChange {
  13447. var xlen int
  13448. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  13449. x2read = xlen
  13450. }
  13451. v = make([]uintptr, xlen)
  13452. changed = true
  13453. } else {
  13454. d.arrayCannotExpand(len(v), containerLenS)
  13455. x2read = len(v)
  13456. }
  13457. } else if containerLenS != len(v) {
  13458. v = v[:containerLenS]
  13459. changed = true
  13460. }
  13461. j := 0
  13462. for ; j < x2read; j++ {
  13463. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  13464. }
  13465. if xtrunc {
  13466. for ; j < containerLenS; j++ {
  13467. v = append(v, 0)
  13468. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  13469. }
  13470. } else if !canChange {
  13471. for ; j < containerLenS; j++ {
  13472. d.swallow()
  13473. }
  13474. }
  13475. } else {
  13476. j := 0
  13477. for ; !dd.CheckBreak(); j++ {
  13478. if j >= len(v) {
  13479. if canChange {
  13480. v = append(v, 0)
  13481. changed = true
  13482. } else {
  13483. d.arrayCannotExpand(len(v), j+1)
  13484. }
  13485. }
  13486. if j < len(v) {
  13487. v[j] = uintptr(dd.DecodeUint(uintBitsize))
  13488. } else {
  13489. d.swallow()
  13490. }
  13491. }
  13492. slh.End()
  13493. }
  13494. return v, changed
  13495. }
  13496. func (f *decFnInfo) fastpathDecSliceIntR(rv reflect.Value) {
  13497. array := f.seq == seqTypeArray
  13498. if !array && rv.CanAddr() {
  13499. vp := rv.Addr().Interface().(*[]int)
  13500. v, changed := fastpathTV.DecSliceIntV(*vp, fastpathCheckNilFalse, !array, f.d)
  13501. if changed {
  13502. *vp = v
  13503. }
  13504. } else {
  13505. v := rv.Interface().([]int)
  13506. fastpathTV.DecSliceIntV(v, fastpathCheckNilFalse, false, f.d)
  13507. }
  13508. }
  13509. func (f fastpathT) DecSliceIntX(vp *[]int, checkNil bool, d *Decoder) {
  13510. v, changed := f.DecSliceIntV(*vp, checkNil, true, d)
  13511. if changed {
  13512. *vp = v
  13513. }
  13514. }
  13515. func (_ fastpathT) DecSliceIntV(v []int, checkNil bool, canChange bool,
  13516. d *Decoder) (_ []int, changed bool) {
  13517. dd := d.d
  13518. if checkNil && dd.TryDecodeAsNil() {
  13519. if v != nil {
  13520. changed = true
  13521. }
  13522. return nil, changed
  13523. }
  13524. slh, containerLenS := d.decSliceHelperStart()
  13525. x2read := containerLenS
  13526. var xtrunc bool
  13527. if canChange && v == nil {
  13528. var xlen int
  13529. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  13530. x2read = xlen
  13531. }
  13532. v = make([]int, xlen)
  13533. changed = true
  13534. }
  13535. if containerLenS == 0 {
  13536. if canChange && len(v) != 0 {
  13537. v = v[:0]
  13538. changed = true
  13539. }
  13540. return v, changed
  13541. }
  13542. if containerLenS > 0 {
  13543. if containerLenS > cap(v) {
  13544. if canChange {
  13545. var xlen int
  13546. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  13547. x2read = xlen
  13548. }
  13549. v = make([]int, xlen)
  13550. changed = true
  13551. } else {
  13552. d.arrayCannotExpand(len(v), containerLenS)
  13553. x2read = len(v)
  13554. }
  13555. } else if containerLenS != len(v) {
  13556. v = v[:containerLenS]
  13557. changed = true
  13558. }
  13559. j := 0
  13560. for ; j < x2read; j++ {
  13561. v[j] = int(dd.DecodeInt(intBitsize))
  13562. }
  13563. if xtrunc {
  13564. for ; j < containerLenS; j++ {
  13565. v = append(v, 0)
  13566. v[j] = int(dd.DecodeInt(intBitsize))
  13567. }
  13568. } else if !canChange {
  13569. for ; j < containerLenS; j++ {
  13570. d.swallow()
  13571. }
  13572. }
  13573. } else {
  13574. j := 0
  13575. for ; !dd.CheckBreak(); j++ {
  13576. if j >= len(v) {
  13577. if canChange {
  13578. v = append(v, 0)
  13579. changed = true
  13580. } else {
  13581. d.arrayCannotExpand(len(v), j+1)
  13582. }
  13583. }
  13584. if j < len(v) {
  13585. v[j] = int(dd.DecodeInt(intBitsize))
  13586. } else {
  13587. d.swallow()
  13588. }
  13589. }
  13590. slh.End()
  13591. }
  13592. return v, changed
  13593. }
  13594. func (f *decFnInfo) fastpathDecSliceInt8R(rv reflect.Value) {
  13595. array := f.seq == seqTypeArray
  13596. if !array && rv.CanAddr() {
  13597. vp := rv.Addr().Interface().(*[]int8)
  13598. v, changed := fastpathTV.DecSliceInt8V(*vp, fastpathCheckNilFalse, !array, f.d)
  13599. if changed {
  13600. *vp = v
  13601. }
  13602. } else {
  13603. v := rv.Interface().([]int8)
  13604. fastpathTV.DecSliceInt8V(v, fastpathCheckNilFalse, false, f.d)
  13605. }
  13606. }
  13607. func (f fastpathT) DecSliceInt8X(vp *[]int8, checkNil bool, d *Decoder) {
  13608. v, changed := f.DecSliceInt8V(*vp, checkNil, true, d)
  13609. if changed {
  13610. *vp = v
  13611. }
  13612. }
  13613. func (_ fastpathT) DecSliceInt8V(v []int8, checkNil bool, canChange bool,
  13614. d *Decoder) (_ []int8, changed bool) {
  13615. dd := d.d
  13616. if checkNil && dd.TryDecodeAsNil() {
  13617. if v != nil {
  13618. changed = true
  13619. }
  13620. return nil, changed
  13621. }
  13622. slh, containerLenS := d.decSliceHelperStart()
  13623. x2read := containerLenS
  13624. var xtrunc bool
  13625. if canChange && v == nil {
  13626. var xlen int
  13627. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 1); xtrunc {
  13628. x2read = xlen
  13629. }
  13630. v = make([]int8, xlen)
  13631. changed = true
  13632. }
  13633. if containerLenS == 0 {
  13634. if canChange && len(v) != 0 {
  13635. v = v[:0]
  13636. changed = true
  13637. }
  13638. return v, changed
  13639. }
  13640. if containerLenS > 0 {
  13641. if containerLenS > cap(v) {
  13642. if canChange {
  13643. var xlen int
  13644. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 1); xtrunc {
  13645. x2read = xlen
  13646. }
  13647. v = make([]int8, xlen)
  13648. changed = true
  13649. } else {
  13650. d.arrayCannotExpand(len(v), containerLenS)
  13651. x2read = len(v)
  13652. }
  13653. } else if containerLenS != len(v) {
  13654. v = v[:containerLenS]
  13655. changed = true
  13656. }
  13657. j := 0
  13658. for ; j < x2read; j++ {
  13659. v[j] = int8(dd.DecodeInt(8))
  13660. }
  13661. if xtrunc {
  13662. for ; j < containerLenS; j++ {
  13663. v = append(v, 0)
  13664. v[j] = int8(dd.DecodeInt(8))
  13665. }
  13666. } else if !canChange {
  13667. for ; j < containerLenS; j++ {
  13668. d.swallow()
  13669. }
  13670. }
  13671. } else {
  13672. j := 0
  13673. for ; !dd.CheckBreak(); j++ {
  13674. if j >= len(v) {
  13675. if canChange {
  13676. v = append(v, 0)
  13677. changed = true
  13678. } else {
  13679. d.arrayCannotExpand(len(v), j+1)
  13680. }
  13681. }
  13682. if j < len(v) {
  13683. v[j] = int8(dd.DecodeInt(8))
  13684. } else {
  13685. d.swallow()
  13686. }
  13687. }
  13688. slh.End()
  13689. }
  13690. return v, changed
  13691. }
  13692. func (f *decFnInfo) fastpathDecSliceInt16R(rv reflect.Value) {
  13693. array := f.seq == seqTypeArray
  13694. if !array && rv.CanAddr() {
  13695. vp := rv.Addr().Interface().(*[]int16)
  13696. v, changed := fastpathTV.DecSliceInt16V(*vp, fastpathCheckNilFalse, !array, f.d)
  13697. if changed {
  13698. *vp = v
  13699. }
  13700. } else {
  13701. v := rv.Interface().([]int16)
  13702. fastpathTV.DecSliceInt16V(v, fastpathCheckNilFalse, false, f.d)
  13703. }
  13704. }
  13705. func (f fastpathT) DecSliceInt16X(vp *[]int16, checkNil bool, d *Decoder) {
  13706. v, changed := f.DecSliceInt16V(*vp, checkNil, true, d)
  13707. if changed {
  13708. *vp = v
  13709. }
  13710. }
  13711. func (_ fastpathT) DecSliceInt16V(v []int16, checkNil bool, canChange bool,
  13712. d *Decoder) (_ []int16, changed bool) {
  13713. dd := d.d
  13714. if checkNil && dd.TryDecodeAsNil() {
  13715. if v != nil {
  13716. changed = true
  13717. }
  13718. return nil, changed
  13719. }
  13720. slh, containerLenS := d.decSliceHelperStart()
  13721. x2read := containerLenS
  13722. var xtrunc bool
  13723. if canChange && v == nil {
  13724. var xlen int
  13725. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 2); xtrunc {
  13726. x2read = xlen
  13727. }
  13728. v = make([]int16, xlen)
  13729. changed = true
  13730. }
  13731. if containerLenS == 0 {
  13732. if canChange && len(v) != 0 {
  13733. v = v[:0]
  13734. changed = true
  13735. }
  13736. return v, changed
  13737. }
  13738. if containerLenS > 0 {
  13739. if containerLenS > cap(v) {
  13740. if canChange {
  13741. var xlen int
  13742. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 2); xtrunc {
  13743. x2read = xlen
  13744. }
  13745. v = make([]int16, xlen)
  13746. changed = true
  13747. } else {
  13748. d.arrayCannotExpand(len(v), containerLenS)
  13749. x2read = len(v)
  13750. }
  13751. } else if containerLenS != len(v) {
  13752. v = v[:containerLenS]
  13753. changed = true
  13754. }
  13755. j := 0
  13756. for ; j < x2read; j++ {
  13757. v[j] = int16(dd.DecodeInt(16))
  13758. }
  13759. if xtrunc {
  13760. for ; j < containerLenS; j++ {
  13761. v = append(v, 0)
  13762. v[j] = int16(dd.DecodeInt(16))
  13763. }
  13764. } else if !canChange {
  13765. for ; j < containerLenS; j++ {
  13766. d.swallow()
  13767. }
  13768. }
  13769. } else {
  13770. j := 0
  13771. for ; !dd.CheckBreak(); j++ {
  13772. if j >= len(v) {
  13773. if canChange {
  13774. v = append(v, 0)
  13775. changed = true
  13776. } else {
  13777. d.arrayCannotExpand(len(v), j+1)
  13778. }
  13779. }
  13780. if j < len(v) {
  13781. v[j] = int16(dd.DecodeInt(16))
  13782. } else {
  13783. d.swallow()
  13784. }
  13785. }
  13786. slh.End()
  13787. }
  13788. return v, changed
  13789. }
  13790. func (f *decFnInfo) fastpathDecSliceInt32R(rv reflect.Value) {
  13791. array := f.seq == seqTypeArray
  13792. if !array && rv.CanAddr() {
  13793. vp := rv.Addr().Interface().(*[]int32)
  13794. v, changed := fastpathTV.DecSliceInt32V(*vp, fastpathCheckNilFalse, !array, f.d)
  13795. if changed {
  13796. *vp = v
  13797. }
  13798. } else {
  13799. v := rv.Interface().([]int32)
  13800. fastpathTV.DecSliceInt32V(v, fastpathCheckNilFalse, false, f.d)
  13801. }
  13802. }
  13803. func (f fastpathT) DecSliceInt32X(vp *[]int32, checkNil bool, d *Decoder) {
  13804. v, changed := f.DecSliceInt32V(*vp, checkNil, true, d)
  13805. if changed {
  13806. *vp = v
  13807. }
  13808. }
  13809. func (_ fastpathT) DecSliceInt32V(v []int32, checkNil bool, canChange bool,
  13810. d *Decoder) (_ []int32, changed bool) {
  13811. dd := d.d
  13812. if checkNil && dd.TryDecodeAsNil() {
  13813. if v != nil {
  13814. changed = true
  13815. }
  13816. return nil, changed
  13817. }
  13818. slh, containerLenS := d.decSliceHelperStart()
  13819. x2read := containerLenS
  13820. var xtrunc bool
  13821. if canChange && v == nil {
  13822. var xlen int
  13823. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4); xtrunc {
  13824. x2read = xlen
  13825. }
  13826. v = make([]int32, xlen)
  13827. changed = true
  13828. }
  13829. if containerLenS == 0 {
  13830. if canChange && len(v) != 0 {
  13831. v = v[:0]
  13832. changed = true
  13833. }
  13834. return v, changed
  13835. }
  13836. if containerLenS > 0 {
  13837. if containerLenS > cap(v) {
  13838. if canChange {
  13839. var xlen int
  13840. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 4); xtrunc {
  13841. x2read = xlen
  13842. }
  13843. v = make([]int32, xlen)
  13844. changed = true
  13845. } else {
  13846. d.arrayCannotExpand(len(v), containerLenS)
  13847. x2read = len(v)
  13848. }
  13849. } else if containerLenS != len(v) {
  13850. v = v[:containerLenS]
  13851. changed = true
  13852. }
  13853. j := 0
  13854. for ; j < x2read; j++ {
  13855. v[j] = int32(dd.DecodeInt(32))
  13856. }
  13857. if xtrunc {
  13858. for ; j < containerLenS; j++ {
  13859. v = append(v, 0)
  13860. v[j] = int32(dd.DecodeInt(32))
  13861. }
  13862. } else if !canChange {
  13863. for ; j < containerLenS; j++ {
  13864. d.swallow()
  13865. }
  13866. }
  13867. } else {
  13868. j := 0
  13869. for ; !dd.CheckBreak(); j++ {
  13870. if j >= len(v) {
  13871. if canChange {
  13872. v = append(v, 0)
  13873. changed = true
  13874. } else {
  13875. d.arrayCannotExpand(len(v), j+1)
  13876. }
  13877. }
  13878. if j < len(v) {
  13879. v[j] = int32(dd.DecodeInt(32))
  13880. } else {
  13881. d.swallow()
  13882. }
  13883. }
  13884. slh.End()
  13885. }
  13886. return v, changed
  13887. }
  13888. func (f *decFnInfo) fastpathDecSliceInt64R(rv reflect.Value) {
  13889. array := f.seq == seqTypeArray
  13890. if !array && rv.CanAddr() {
  13891. vp := rv.Addr().Interface().(*[]int64)
  13892. v, changed := fastpathTV.DecSliceInt64V(*vp, fastpathCheckNilFalse, !array, f.d)
  13893. if changed {
  13894. *vp = v
  13895. }
  13896. } else {
  13897. v := rv.Interface().([]int64)
  13898. fastpathTV.DecSliceInt64V(v, fastpathCheckNilFalse, false, f.d)
  13899. }
  13900. }
  13901. func (f fastpathT) DecSliceInt64X(vp *[]int64, checkNil bool, d *Decoder) {
  13902. v, changed := f.DecSliceInt64V(*vp, checkNil, true, d)
  13903. if changed {
  13904. *vp = v
  13905. }
  13906. }
  13907. func (_ fastpathT) DecSliceInt64V(v []int64, checkNil bool, canChange bool,
  13908. d *Decoder) (_ []int64, changed bool) {
  13909. dd := d.d
  13910. if checkNil && dd.TryDecodeAsNil() {
  13911. if v != nil {
  13912. changed = true
  13913. }
  13914. return nil, changed
  13915. }
  13916. slh, containerLenS := d.decSliceHelperStart()
  13917. x2read := containerLenS
  13918. var xtrunc bool
  13919. if canChange && v == nil {
  13920. var xlen int
  13921. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  13922. x2read = xlen
  13923. }
  13924. v = make([]int64, xlen)
  13925. changed = true
  13926. }
  13927. if containerLenS == 0 {
  13928. if canChange && len(v) != 0 {
  13929. v = v[:0]
  13930. changed = true
  13931. }
  13932. return v, changed
  13933. }
  13934. if containerLenS > 0 {
  13935. if containerLenS > cap(v) {
  13936. if canChange {
  13937. var xlen int
  13938. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 8); xtrunc {
  13939. x2read = xlen
  13940. }
  13941. v = make([]int64, xlen)
  13942. changed = true
  13943. } else {
  13944. d.arrayCannotExpand(len(v), containerLenS)
  13945. x2read = len(v)
  13946. }
  13947. } else if containerLenS != len(v) {
  13948. v = v[:containerLenS]
  13949. changed = true
  13950. }
  13951. j := 0
  13952. for ; j < x2read; j++ {
  13953. v[j] = dd.DecodeInt(64)
  13954. }
  13955. if xtrunc {
  13956. for ; j < containerLenS; j++ {
  13957. v = append(v, 0)
  13958. v[j] = dd.DecodeInt(64)
  13959. }
  13960. } else if !canChange {
  13961. for ; j < containerLenS; j++ {
  13962. d.swallow()
  13963. }
  13964. }
  13965. } else {
  13966. j := 0
  13967. for ; !dd.CheckBreak(); j++ {
  13968. if j >= len(v) {
  13969. if canChange {
  13970. v = append(v, 0)
  13971. changed = true
  13972. } else {
  13973. d.arrayCannotExpand(len(v), j+1)
  13974. }
  13975. }
  13976. if j < len(v) {
  13977. v[j] = dd.DecodeInt(64)
  13978. } else {
  13979. d.swallow()
  13980. }
  13981. }
  13982. slh.End()
  13983. }
  13984. return v, changed
  13985. }
  13986. func (f *decFnInfo) fastpathDecSliceBoolR(rv reflect.Value) {
  13987. array := f.seq == seqTypeArray
  13988. if !array && rv.CanAddr() {
  13989. vp := rv.Addr().Interface().(*[]bool)
  13990. v, changed := fastpathTV.DecSliceBoolV(*vp, fastpathCheckNilFalse, !array, f.d)
  13991. if changed {
  13992. *vp = v
  13993. }
  13994. } else {
  13995. v := rv.Interface().([]bool)
  13996. fastpathTV.DecSliceBoolV(v, fastpathCheckNilFalse, false, f.d)
  13997. }
  13998. }
  13999. func (f fastpathT) DecSliceBoolX(vp *[]bool, checkNil bool, d *Decoder) {
  14000. v, changed := f.DecSliceBoolV(*vp, checkNil, true, d)
  14001. if changed {
  14002. *vp = v
  14003. }
  14004. }
  14005. func (_ fastpathT) DecSliceBoolV(v []bool, checkNil bool, canChange bool,
  14006. d *Decoder) (_ []bool, changed bool) {
  14007. dd := d.d
  14008. if checkNil && dd.TryDecodeAsNil() {
  14009. if v != nil {
  14010. changed = true
  14011. }
  14012. return nil, changed
  14013. }
  14014. slh, containerLenS := d.decSliceHelperStart()
  14015. x2read := containerLenS
  14016. var xtrunc bool
  14017. if canChange && v == nil {
  14018. var xlen int
  14019. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 1); xtrunc {
  14020. x2read = xlen
  14021. }
  14022. v = make([]bool, xlen)
  14023. changed = true
  14024. }
  14025. if containerLenS == 0 {
  14026. if canChange && len(v) != 0 {
  14027. v = v[:0]
  14028. changed = true
  14029. }
  14030. return v, changed
  14031. }
  14032. if containerLenS > 0 {
  14033. if containerLenS > cap(v) {
  14034. if canChange {
  14035. var xlen int
  14036. if xlen, xtrunc = decInferLen(containerLenS, d.h.MaxInitLen, 1); xtrunc {
  14037. x2read = xlen
  14038. }
  14039. v = make([]bool, xlen)
  14040. changed = true
  14041. } else {
  14042. d.arrayCannotExpand(len(v), containerLenS)
  14043. x2read = len(v)
  14044. }
  14045. } else if containerLenS != len(v) {
  14046. v = v[:containerLenS]
  14047. changed = true
  14048. }
  14049. j := 0
  14050. for ; j < x2read; j++ {
  14051. v[j] = dd.DecodeBool()
  14052. }
  14053. if xtrunc {
  14054. for ; j < containerLenS; j++ {
  14055. v = append(v, false)
  14056. v[j] = dd.DecodeBool()
  14057. }
  14058. } else if !canChange {
  14059. for ; j < containerLenS; j++ {
  14060. d.swallow()
  14061. }
  14062. }
  14063. } else {
  14064. j := 0
  14065. for ; !dd.CheckBreak(); j++ {
  14066. if j >= len(v) {
  14067. if canChange {
  14068. v = append(v, false)
  14069. changed = true
  14070. } else {
  14071. d.arrayCannotExpand(len(v), j+1)
  14072. }
  14073. }
  14074. if j < len(v) {
  14075. v[j] = dd.DecodeBool()
  14076. } else {
  14077. d.swallow()
  14078. }
  14079. }
  14080. slh.End()
  14081. }
  14082. return v, changed
  14083. }
  14084. func (f *decFnInfo) fastpathDecMapIntfIntfR(rv reflect.Value) {
  14085. if rv.CanAddr() {
  14086. vp := rv.Addr().Interface().(*map[interface{}]interface{})
  14087. v, changed := fastpathTV.DecMapIntfIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  14088. if changed {
  14089. *vp = v
  14090. }
  14091. } else {
  14092. v := rv.Interface().(map[interface{}]interface{})
  14093. fastpathTV.DecMapIntfIntfV(v, fastpathCheckNilFalse, false, f.d)
  14094. }
  14095. }
  14096. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, checkNil bool, d *Decoder) {
  14097. v, changed := f.DecMapIntfIntfV(*vp, checkNil, true, d)
  14098. if changed {
  14099. *vp = v
  14100. }
  14101. }
  14102. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, checkNil bool, canChange bool,
  14103. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  14104. dd := d.d
  14105. if checkNil && dd.TryDecodeAsNil() {
  14106. if v != nil {
  14107. changed = true
  14108. }
  14109. return nil, changed
  14110. }
  14111. containerLen := dd.ReadMapStart()
  14112. if canChange && v == nil {
  14113. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  14114. v = make(map[interface{}]interface{}, xlen)
  14115. changed = true
  14116. }
  14117. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  14118. var mk interface{}
  14119. var mv interface{}
  14120. if containerLen > 0 {
  14121. for j := 0; j < containerLen; j++ {
  14122. mk = nil
  14123. d.decode(&mk)
  14124. if bv, bok := mk.([]byte); bok {
  14125. mk = d.string(bv)
  14126. }
  14127. if mapGet {
  14128. mv = v[mk]
  14129. } else {
  14130. mv = nil
  14131. }
  14132. d.decode(&mv)
  14133. if v != nil {
  14134. v[mk] = mv
  14135. }
  14136. }
  14137. } else if containerLen < 0 {
  14138. for j := 0; !dd.CheckBreak(); j++ {
  14139. mk = nil
  14140. d.decode(&mk)
  14141. if bv, bok := mk.([]byte); bok {
  14142. mk = d.string(bv)
  14143. }
  14144. if mapGet {
  14145. mv = v[mk]
  14146. } else {
  14147. mv = nil
  14148. }
  14149. d.decode(&mv)
  14150. if v != nil {
  14151. v[mk] = mv
  14152. }
  14153. }
  14154. dd.ReadEnd()
  14155. }
  14156. return v, changed
  14157. }
  14158. func (f *decFnInfo) fastpathDecMapIntfStringR(rv reflect.Value) {
  14159. if rv.CanAddr() {
  14160. vp := rv.Addr().Interface().(*map[interface{}]string)
  14161. v, changed := fastpathTV.DecMapIntfStringV(*vp, fastpathCheckNilFalse, true, f.d)
  14162. if changed {
  14163. *vp = v
  14164. }
  14165. } else {
  14166. v := rv.Interface().(map[interface{}]string)
  14167. fastpathTV.DecMapIntfStringV(v, fastpathCheckNilFalse, false, f.d)
  14168. }
  14169. }
  14170. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, checkNil bool, d *Decoder) {
  14171. v, changed := f.DecMapIntfStringV(*vp, checkNil, true, d)
  14172. if changed {
  14173. *vp = v
  14174. }
  14175. }
  14176. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, checkNil bool, canChange bool,
  14177. d *Decoder) (_ map[interface{}]string, changed bool) {
  14178. dd := d.d
  14179. if checkNil && dd.TryDecodeAsNil() {
  14180. if v != nil {
  14181. changed = true
  14182. }
  14183. return nil, changed
  14184. }
  14185. containerLen := dd.ReadMapStart()
  14186. if canChange && v == nil {
  14187. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  14188. v = make(map[interface{}]string, xlen)
  14189. changed = true
  14190. }
  14191. var mk interface{}
  14192. var mv string
  14193. if containerLen > 0 {
  14194. for j := 0; j < containerLen; j++ {
  14195. mk = nil
  14196. d.decode(&mk)
  14197. if bv, bok := mk.([]byte); bok {
  14198. mk = d.string(bv)
  14199. }
  14200. mv = dd.DecodeString()
  14201. if v != nil {
  14202. v[mk] = mv
  14203. }
  14204. }
  14205. } else if containerLen < 0 {
  14206. for j := 0; !dd.CheckBreak(); j++ {
  14207. mk = nil
  14208. d.decode(&mk)
  14209. if bv, bok := mk.([]byte); bok {
  14210. mk = d.string(bv)
  14211. }
  14212. mv = dd.DecodeString()
  14213. if v != nil {
  14214. v[mk] = mv
  14215. }
  14216. }
  14217. dd.ReadEnd()
  14218. }
  14219. return v, changed
  14220. }
  14221. func (f *decFnInfo) fastpathDecMapIntfUintR(rv reflect.Value) {
  14222. if rv.CanAddr() {
  14223. vp := rv.Addr().Interface().(*map[interface{}]uint)
  14224. v, changed := fastpathTV.DecMapIntfUintV(*vp, fastpathCheckNilFalse, true, f.d)
  14225. if changed {
  14226. *vp = v
  14227. }
  14228. } else {
  14229. v := rv.Interface().(map[interface{}]uint)
  14230. fastpathTV.DecMapIntfUintV(v, fastpathCheckNilFalse, false, f.d)
  14231. }
  14232. }
  14233. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, checkNil bool, d *Decoder) {
  14234. v, changed := f.DecMapIntfUintV(*vp, checkNil, true, d)
  14235. if changed {
  14236. *vp = v
  14237. }
  14238. }
  14239. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, checkNil bool, canChange bool,
  14240. d *Decoder) (_ map[interface{}]uint, changed bool) {
  14241. dd := d.d
  14242. if checkNil && dd.TryDecodeAsNil() {
  14243. if v != nil {
  14244. changed = true
  14245. }
  14246. return nil, changed
  14247. }
  14248. containerLen := dd.ReadMapStart()
  14249. if canChange && v == nil {
  14250. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  14251. v = make(map[interface{}]uint, xlen)
  14252. changed = true
  14253. }
  14254. var mk interface{}
  14255. var mv uint
  14256. if containerLen > 0 {
  14257. for j := 0; j < containerLen; j++ {
  14258. mk = nil
  14259. d.decode(&mk)
  14260. if bv, bok := mk.([]byte); bok {
  14261. mk = d.string(bv)
  14262. }
  14263. mv = uint(dd.DecodeUint(uintBitsize))
  14264. if v != nil {
  14265. v[mk] = mv
  14266. }
  14267. }
  14268. } else if containerLen < 0 {
  14269. for j := 0; !dd.CheckBreak(); j++ {
  14270. mk = nil
  14271. d.decode(&mk)
  14272. if bv, bok := mk.([]byte); bok {
  14273. mk = d.string(bv)
  14274. }
  14275. mv = uint(dd.DecodeUint(uintBitsize))
  14276. if v != nil {
  14277. v[mk] = mv
  14278. }
  14279. }
  14280. dd.ReadEnd()
  14281. }
  14282. return v, changed
  14283. }
  14284. func (f *decFnInfo) fastpathDecMapIntfUint8R(rv reflect.Value) {
  14285. if rv.CanAddr() {
  14286. vp := rv.Addr().Interface().(*map[interface{}]uint8)
  14287. v, changed := fastpathTV.DecMapIntfUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  14288. if changed {
  14289. *vp = v
  14290. }
  14291. } else {
  14292. v := rv.Interface().(map[interface{}]uint8)
  14293. fastpathTV.DecMapIntfUint8V(v, fastpathCheckNilFalse, false, f.d)
  14294. }
  14295. }
  14296. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, checkNil bool, d *Decoder) {
  14297. v, changed := f.DecMapIntfUint8V(*vp, checkNil, true, d)
  14298. if changed {
  14299. *vp = v
  14300. }
  14301. }
  14302. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, checkNil bool, canChange bool,
  14303. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  14304. dd := d.d
  14305. if checkNil && dd.TryDecodeAsNil() {
  14306. if v != nil {
  14307. changed = true
  14308. }
  14309. return nil, changed
  14310. }
  14311. containerLen := dd.ReadMapStart()
  14312. if canChange && v == nil {
  14313. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  14314. v = make(map[interface{}]uint8, xlen)
  14315. changed = true
  14316. }
  14317. var mk interface{}
  14318. var mv uint8
  14319. if containerLen > 0 {
  14320. for j := 0; j < containerLen; j++ {
  14321. mk = nil
  14322. d.decode(&mk)
  14323. if bv, bok := mk.([]byte); bok {
  14324. mk = d.string(bv)
  14325. }
  14326. mv = uint8(dd.DecodeUint(8))
  14327. if v != nil {
  14328. v[mk] = mv
  14329. }
  14330. }
  14331. } else if containerLen < 0 {
  14332. for j := 0; !dd.CheckBreak(); j++ {
  14333. mk = nil
  14334. d.decode(&mk)
  14335. if bv, bok := mk.([]byte); bok {
  14336. mk = d.string(bv)
  14337. }
  14338. mv = uint8(dd.DecodeUint(8))
  14339. if v != nil {
  14340. v[mk] = mv
  14341. }
  14342. }
  14343. dd.ReadEnd()
  14344. }
  14345. return v, changed
  14346. }
  14347. func (f *decFnInfo) fastpathDecMapIntfUint16R(rv reflect.Value) {
  14348. if rv.CanAddr() {
  14349. vp := rv.Addr().Interface().(*map[interface{}]uint16)
  14350. v, changed := fastpathTV.DecMapIntfUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  14351. if changed {
  14352. *vp = v
  14353. }
  14354. } else {
  14355. v := rv.Interface().(map[interface{}]uint16)
  14356. fastpathTV.DecMapIntfUint16V(v, fastpathCheckNilFalse, false, f.d)
  14357. }
  14358. }
  14359. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, checkNil bool, d *Decoder) {
  14360. v, changed := f.DecMapIntfUint16V(*vp, checkNil, true, d)
  14361. if changed {
  14362. *vp = v
  14363. }
  14364. }
  14365. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, checkNil bool, canChange bool,
  14366. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  14367. dd := d.d
  14368. if checkNil && dd.TryDecodeAsNil() {
  14369. if v != nil {
  14370. changed = true
  14371. }
  14372. return nil, changed
  14373. }
  14374. containerLen := dd.ReadMapStart()
  14375. if canChange && v == nil {
  14376. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  14377. v = make(map[interface{}]uint16, xlen)
  14378. changed = true
  14379. }
  14380. var mk interface{}
  14381. var mv uint16
  14382. if containerLen > 0 {
  14383. for j := 0; j < containerLen; j++ {
  14384. mk = nil
  14385. d.decode(&mk)
  14386. if bv, bok := mk.([]byte); bok {
  14387. mk = d.string(bv)
  14388. }
  14389. mv = uint16(dd.DecodeUint(16))
  14390. if v != nil {
  14391. v[mk] = mv
  14392. }
  14393. }
  14394. } else if containerLen < 0 {
  14395. for j := 0; !dd.CheckBreak(); j++ {
  14396. mk = nil
  14397. d.decode(&mk)
  14398. if bv, bok := mk.([]byte); bok {
  14399. mk = d.string(bv)
  14400. }
  14401. mv = uint16(dd.DecodeUint(16))
  14402. if v != nil {
  14403. v[mk] = mv
  14404. }
  14405. }
  14406. dd.ReadEnd()
  14407. }
  14408. return v, changed
  14409. }
  14410. func (f *decFnInfo) fastpathDecMapIntfUint32R(rv reflect.Value) {
  14411. if rv.CanAddr() {
  14412. vp := rv.Addr().Interface().(*map[interface{}]uint32)
  14413. v, changed := fastpathTV.DecMapIntfUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  14414. if changed {
  14415. *vp = v
  14416. }
  14417. } else {
  14418. v := rv.Interface().(map[interface{}]uint32)
  14419. fastpathTV.DecMapIntfUint32V(v, fastpathCheckNilFalse, false, f.d)
  14420. }
  14421. }
  14422. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, checkNil bool, d *Decoder) {
  14423. v, changed := f.DecMapIntfUint32V(*vp, checkNil, true, d)
  14424. if changed {
  14425. *vp = v
  14426. }
  14427. }
  14428. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, checkNil bool, canChange bool,
  14429. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  14430. dd := d.d
  14431. if checkNil && dd.TryDecodeAsNil() {
  14432. if v != nil {
  14433. changed = true
  14434. }
  14435. return nil, changed
  14436. }
  14437. containerLen := dd.ReadMapStart()
  14438. if canChange && v == nil {
  14439. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  14440. v = make(map[interface{}]uint32, xlen)
  14441. changed = true
  14442. }
  14443. var mk interface{}
  14444. var mv uint32
  14445. if containerLen > 0 {
  14446. for j := 0; j < containerLen; j++ {
  14447. mk = nil
  14448. d.decode(&mk)
  14449. if bv, bok := mk.([]byte); bok {
  14450. mk = d.string(bv)
  14451. }
  14452. mv = uint32(dd.DecodeUint(32))
  14453. if v != nil {
  14454. v[mk] = mv
  14455. }
  14456. }
  14457. } else if containerLen < 0 {
  14458. for j := 0; !dd.CheckBreak(); j++ {
  14459. mk = nil
  14460. d.decode(&mk)
  14461. if bv, bok := mk.([]byte); bok {
  14462. mk = d.string(bv)
  14463. }
  14464. mv = uint32(dd.DecodeUint(32))
  14465. if v != nil {
  14466. v[mk] = mv
  14467. }
  14468. }
  14469. dd.ReadEnd()
  14470. }
  14471. return v, changed
  14472. }
  14473. func (f *decFnInfo) fastpathDecMapIntfUint64R(rv reflect.Value) {
  14474. if rv.CanAddr() {
  14475. vp := rv.Addr().Interface().(*map[interface{}]uint64)
  14476. v, changed := fastpathTV.DecMapIntfUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  14477. if changed {
  14478. *vp = v
  14479. }
  14480. } else {
  14481. v := rv.Interface().(map[interface{}]uint64)
  14482. fastpathTV.DecMapIntfUint64V(v, fastpathCheckNilFalse, false, f.d)
  14483. }
  14484. }
  14485. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, checkNil bool, d *Decoder) {
  14486. v, changed := f.DecMapIntfUint64V(*vp, checkNil, true, d)
  14487. if changed {
  14488. *vp = v
  14489. }
  14490. }
  14491. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, checkNil bool, canChange bool,
  14492. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  14493. dd := d.d
  14494. if checkNil && dd.TryDecodeAsNil() {
  14495. if v != nil {
  14496. changed = true
  14497. }
  14498. return nil, changed
  14499. }
  14500. containerLen := dd.ReadMapStart()
  14501. if canChange && v == nil {
  14502. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  14503. v = make(map[interface{}]uint64, xlen)
  14504. changed = true
  14505. }
  14506. var mk interface{}
  14507. var mv uint64
  14508. if containerLen > 0 {
  14509. for j := 0; j < containerLen; j++ {
  14510. mk = nil
  14511. d.decode(&mk)
  14512. if bv, bok := mk.([]byte); bok {
  14513. mk = d.string(bv)
  14514. }
  14515. mv = dd.DecodeUint(64)
  14516. if v != nil {
  14517. v[mk] = mv
  14518. }
  14519. }
  14520. } else if containerLen < 0 {
  14521. for j := 0; !dd.CheckBreak(); j++ {
  14522. mk = nil
  14523. d.decode(&mk)
  14524. if bv, bok := mk.([]byte); bok {
  14525. mk = d.string(bv)
  14526. }
  14527. mv = dd.DecodeUint(64)
  14528. if v != nil {
  14529. v[mk] = mv
  14530. }
  14531. }
  14532. dd.ReadEnd()
  14533. }
  14534. return v, changed
  14535. }
  14536. func (f *decFnInfo) fastpathDecMapIntfUintptrR(rv reflect.Value) {
  14537. if rv.CanAddr() {
  14538. vp := rv.Addr().Interface().(*map[interface{}]uintptr)
  14539. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  14540. if changed {
  14541. *vp = v
  14542. }
  14543. } else {
  14544. v := rv.Interface().(map[interface{}]uintptr)
  14545. fastpathTV.DecMapIntfUintptrV(v, fastpathCheckNilFalse, false, f.d)
  14546. }
  14547. }
  14548. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, checkNil bool, d *Decoder) {
  14549. v, changed := f.DecMapIntfUintptrV(*vp, checkNil, true, d)
  14550. if changed {
  14551. *vp = v
  14552. }
  14553. }
  14554. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, checkNil bool, canChange bool,
  14555. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  14556. dd := d.d
  14557. if checkNil && dd.TryDecodeAsNil() {
  14558. if v != nil {
  14559. changed = true
  14560. }
  14561. return nil, changed
  14562. }
  14563. containerLen := dd.ReadMapStart()
  14564. if canChange && v == nil {
  14565. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  14566. v = make(map[interface{}]uintptr, xlen)
  14567. changed = true
  14568. }
  14569. var mk interface{}
  14570. var mv uintptr
  14571. if containerLen > 0 {
  14572. for j := 0; j < containerLen; j++ {
  14573. mk = nil
  14574. d.decode(&mk)
  14575. if bv, bok := mk.([]byte); bok {
  14576. mk = d.string(bv)
  14577. }
  14578. mv = uintptr(dd.DecodeUint(uintBitsize))
  14579. if v != nil {
  14580. v[mk] = mv
  14581. }
  14582. }
  14583. } else if containerLen < 0 {
  14584. for j := 0; !dd.CheckBreak(); j++ {
  14585. mk = nil
  14586. d.decode(&mk)
  14587. if bv, bok := mk.([]byte); bok {
  14588. mk = d.string(bv)
  14589. }
  14590. mv = uintptr(dd.DecodeUint(uintBitsize))
  14591. if v != nil {
  14592. v[mk] = mv
  14593. }
  14594. }
  14595. dd.ReadEnd()
  14596. }
  14597. return v, changed
  14598. }
  14599. func (f *decFnInfo) fastpathDecMapIntfIntR(rv reflect.Value) {
  14600. if rv.CanAddr() {
  14601. vp := rv.Addr().Interface().(*map[interface{}]int)
  14602. v, changed := fastpathTV.DecMapIntfIntV(*vp, fastpathCheckNilFalse, true, f.d)
  14603. if changed {
  14604. *vp = v
  14605. }
  14606. } else {
  14607. v := rv.Interface().(map[interface{}]int)
  14608. fastpathTV.DecMapIntfIntV(v, fastpathCheckNilFalse, false, f.d)
  14609. }
  14610. }
  14611. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, checkNil bool, d *Decoder) {
  14612. v, changed := f.DecMapIntfIntV(*vp, checkNil, true, d)
  14613. if changed {
  14614. *vp = v
  14615. }
  14616. }
  14617. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, checkNil bool, canChange bool,
  14618. d *Decoder) (_ map[interface{}]int, changed bool) {
  14619. dd := d.d
  14620. if checkNil && dd.TryDecodeAsNil() {
  14621. if v != nil {
  14622. changed = true
  14623. }
  14624. return nil, changed
  14625. }
  14626. containerLen := dd.ReadMapStart()
  14627. if canChange && v == nil {
  14628. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  14629. v = make(map[interface{}]int, xlen)
  14630. changed = true
  14631. }
  14632. var mk interface{}
  14633. var mv int
  14634. if containerLen > 0 {
  14635. for j := 0; j < containerLen; j++ {
  14636. mk = nil
  14637. d.decode(&mk)
  14638. if bv, bok := mk.([]byte); bok {
  14639. mk = d.string(bv)
  14640. }
  14641. mv = int(dd.DecodeInt(intBitsize))
  14642. if v != nil {
  14643. v[mk] = mv
  14644. }
  14645. }
  14646. } else if containerLen < 0 {
  14647. for j := 0; !dd.CheckBreak(); j++ {
  14648. mk = nil
  14649. d.decode(&mk)
  14650. if bv, bok := mk.([]byte); bok {
  14651. mk = d.string(bv)
  14652. }
  14653. mv = int(dd.DecodeInt(intBitsize))
  14654. if v != nil {
  14655. v[mk] = mv
  14656. }
  14657. }
  14658. dd.ReadEnd()
  14659. }
  14660. return v, changed
  14661. }
  14662. func (f *decFnInfo) fastpathDecMapIntfInt8R(rv reflect.Value) {
  14663. if rv.CanAddr() {
  14664. vp := rv.Addr().Interface().(*map[interface{}]int8)
  14665. v, changed := fastpathTV.DecMapIntfInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  14666. if changed {
  14667. *vp = v
  14668. }
  14669. } else {
  14670. v := rv.Interface().(map[interface{}]int8)
  14671. fastpathTV.DecMapIntfInt8V(v, fastpathCheckNilFalse, false, f.d)
  14672. }
  14673. }
  14674. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, checkNil bool, d *Decoder) {
  14675. v, changed := f.DecMapIntfInt8V(*vp, checkNil, true, d)
  14676. if changed {
  14677. *vp = v
  14678. }
  14679. }
  14680. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, checkNil bool, canChange bool,
  14681. d *Decoder) (_ map[interface{}]int8, changed bool) {
  14682. dd := d.d
  14683. if checkNil && dd.TryDecodeAsNil() {
  14684. if v != nil {
  14685. changed = true
  14686. }
  14687. return nil, changed
  14688. }
  14689. containerLen := dd.ReadMapStart()
  14690. if canChange && v == nil {
  14691. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  14692. v = make(map[interface{}]int8, xlen)
  14693. changed = true
  14694. }
  14695. var mk interface{}
  14696. var mv int8
  14697. if containerLen > 0 {
  14698. for j := 0; j < containerLen; j++ {
  14699. mk = nil
  14700. d.decode(&mk)
  14701. if bv, bok := mk.([]byte); bok {
  14702. mk = d.string(bv)
  14703. }
  14704. mv = int8(dd.DecodeInt(8))
  14705. if v != nil {
  14706. v[mk] = mv
  14707. }
  14708. }
  14709. } else if containerLen < 0 {
  14710. for j := 0; !dd.CheckBreak(); j++ {
  14711. mk = nil
  14712. d.decode(&mk)
  14713. if bv, bok := mk.([]byte); bok {
  14714. mk = d.string(bv)
  14715. }
  14716. mv = int8(dd.DecodeInt(8))
  14717. if v != nil {
  14718. v[mk] = mv
  14719. }
  14720. }
  14721. dd.ReadEnd()
  14722. }
  14723. return v, changed
  14724. }
  14725. func (f *decFnInfo) fastpathDecMapIntfInt16R(rv reflect.Value) {
  14726. if rv.CanAddr() {
  14727. vp := rv.Addr().Interface().(*map[interface{}]int16)
  14728. v, changed := fastpathTV.DecMapIntfInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  14729. if changed {
  14730. *vp = v
  14731. }
  14732. } else {
  14733. v := rv.Interface().(map[interface{}]int16)
  14734. fastpathTV.DecMapIntfInt16V(v, fastpathCheckNilFalse, false, f.d)
  14735. }
  14736. }
  14737. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, checkNil bool, d *Decoder) {
  14738. v, changed := f.DecMapIntfInt16V(*vp, checkNil, true, d)
  14739. if changed {
  14740. *vp = v
  14741. }
  14742. }
  14743. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, checkNil bool, canChange bool,
  14744. d *Decoder) (_ map[interface{}]int16, changed bool) {
  14745. dd := d.d
  14746. if checkNil && dd.TryDecodeAsNil() {
  14747. if v != nil {
  14748. changed = true
  14749. }
  14750. return nil, changed
  14751. }
  14752. containerLen := dd.ReadMapStart()
  14753. if canChange && v == nil {
  14754. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  14755. v = make(map[interface{}]int16, xlen)
  14756. changed = true
  14757. }
  14758. var mk interface{}
  14759. var mv int16
  14760. if containerLen > 0 {
  14761. for j := 0; j < containerLen; j++ {
  14762. mk = nil
  14763. d.decode(&mk)
  14764. if bv, bok := mk.([]byte); bok {
  14765. mk = d.string(bv)
  14766. }
  14767. mv = int16(dd.DecodeInt(16))
  14768. if v != nil {
  14769. v[mk] = mv
  14770. }
  14771. }
  14772. } else if containerLen < 0 {
  14773. for j := 0; !dd.CheckBreak(); j++ {
  14774. mk = nil
  14775. d.decode(&mk)
  14776. if bv, bok := mk.([]byte); bok {
  14777. mk = d.string(bv)
  14778. }
  14779. mv = int16(dd.DecodeInt(16))
  14780. if v != nil {
  14781. v[mk] = mv
  14782. }
  14783. }
  14784. dd.ReadEnd()
  14785. }
  14786. return v, changed
  14787. }
  14788. func (f *decFnInfo) fastpathDecMapIntfInt32R(rv reflect.Value) {
  14789. if rv.CanAddr() {
  14790. vp := rv.Addr().Interface().(*map[interface{}]int32)
  14791. v, changed := fastpathTV.DecMapIntfInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  14792. if changed {
  14793. *vp = v
  14794. }
  14795. } else {
  14796. v := rv.Interface().(map[interface{}]int32)
  14797. fastpathTV.DecMapIntfInt32V(v, fastpathCheckNilFalse, false, f.d)
  14798. }
  14799. }
  14800. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, checkNil bool, d *Decoder) {
  14801. v, changed := f.DecMapIntfInt32V(*vp, checkNil, true, d)
  14802. if changed {
  14803. *vp = v
  14804. }
  14805. }
  14806. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, checkNil bool, canChange bool,
  14807. d *Decoder) (_ map[interface{}]int32, changed bool) {
  14808. dd := d.d
  14809. if checkNil && dd.TryDecodeAsNil() {
  14810. if v != nil {
  14811. changed = true
  14812. }
  14813. return nil, changed
  14814. }
  14815. containerLen := dd.ReadMapStart()
  14816. if canChange && v == nil {
  14817. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  14818. v = make(map[interface{}]int32, xlen)
  14819. changed = true
  14820. }
  14821. var mk interface{}
  14822. var mv int32
  14823. if containerLen > 0 {
  14824. for j := 0; j < containerLen; j++ {
  14825. mk = nil
  14826. d.decode(&mk)
  14827. if bv, bok := mk.([]byte); bok {
  14828. mk = d.string(bv)
  14829. }
  14830. mv = int32(dd.DecodeInt(32))
  14831. if v != nil {
  14832. v[mk] = mv
  14833. }
  14834. }
  14835. } else if containerLen < 0 {
  14836. for j := 0; !dd.CheckBreak(); j++ {
  14837. mk = nil
  14838. d.decode(&mk)
  14839. if bv, bok := mk.([]byte); bok {
  14840. mk = d.string(bv)
  14841. }
  14842. mv = int32(dd.DecodeInt(32))
  14843. if v != nil {
  14844. v[mk] = mv
  14845. }
  14846. }
  14847. dd.ReadEnd()
  14848. }
  14849. return v, changed
  14850. }
  14851. func (f *decFnInfo) fastpathDecMapIntfInt64R(rv reflect.Value) {
  14852. if rv.CanAddr() {
  14853. vp := rv.Addr().Interface().(*map[interface{}]int64)
  14854. v, changed := fastpathTV.DecMapIntfInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  14855. if changed {
  14856. *vp = v
  14857. }
  14858. } else {
  14859. v := rv.Interface().(map[interface{}]int64)
  14860. fastpathTV.DecMapIntfInt64V(v, fastpathCheckNilFalse, false, f.d)
  14861. }
  14862. }
  14863. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, checkNil bool, d *Decoder) {
  14864. v, changed := f.DecMapIntfInt64V(*vp, checkNil, true, d)
  14865. if changed {
  14866. *vp = v
  14867. }
  14868. }
  14869. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, checkNil bool, canChange bool,
  14870. d *Decoder) (_ map[interface{}]int64, changed bool) {
  14871. dd := d.d
  14872. if checkNil && dd.TryDecodeAsNil() {
  14873. if v != nil {
  14874. changed = true
  14875. }
  14876. return nil, changed
  14877. }
  14878. containerLen := dd.ReadMapStart()
  14879. if canChange && v == nil {
  14880. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  14881. v = make(map[interface{}]int64, xlen)
  14882. changed = true
  14883. }
  14884. var mk interface{}
  14885. var mv int64
  14886. if containerLen > 0 {
  14887. for j := 0; j < containerLen; j++ {
  14888. mk = nil
  14889. d.decode(&mk)
  14890. if bv, bok := mk.([]byte); bok {
  14891. mk = d.string(bv)
  14892. }
  14893. mv = dd.DecodeInt(64)
  14894. if v != nil {
  14895. v[mk] = mv
  14896. }
  14897. }
  14898. } else if containerLen < 0 {
  14899. for j := 0; !dd.CheckBreak(); j++ {
  14900. mk = nil
  14901. d.decode(&mk)
  14902. if bv, bok := mk.([]byte); bok {
  14903. mk = d.string(bv)
  14904. }
  14905. mv = dd.DecodeInt(64)
  14906. if v != nil {
  14907. v[mk] = mv
  14908. }
  14909. }
  14910. dd.ReadEnd()
  14911. }
  14912. return v, changed
  14913. }
  14914. func (f *decFnInfo) fastpathDecMapIntfFloat32R(rv reflect.Value) {
  14915. if rv.CanAddr() {
  14916. vp := rv.Addr().Interface().(*map[interface{}]float32)
  14917. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  14918. if changed {
  14919. *vp = v
  14920. }
  14921. } else {
  14922. v := rv.Interface().(map[interface{}]float32)
  14923. fastpathTV.DecMapIntfFloat32V(v, fastpathCheckNilFalse, false, f.d)
  14924. }
  14925. }
  14926. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, checkNil bool, d *Decoder) {
  14927. v, changed := f.DecMapIntfFloat32V(*vp, checkNil, true, d)
  14928. if changed {
  14929. *vp = v
  14930. }
  14931. }
  14932. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, checkNil bool, canChange bool,
  14933. d *Decoder) (_ map[interface{}]float32, changed bool) {
  14934. dd := d.d
  14935. if checkNil && dd.TryDecodeAsNil() {
  14936. if v != nil {
  14937. changed = true
  14938. }
  14939. return nil, changed
  14940. }
  14941. containerLen := dd.ReadMapStart()
  14942. if canChange && v == nil {
  14943. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  14944. v = make(map[interface{}]float32, xlen)
  14945. changed = true
  14946. }
  14947. var mk interface{}
  14948. var mv float32
  14949. if containerLen > 0 {
  14950. for j := 0; j < containerLen; j++ {
  14951. mk = nil
  14952. d.decode(&mk)
  14953. if bv, bok := mk.([]byte); bok {
  14954. mk = d.string(bv)
  14955. }
  14956. mv = float32(dd.DecodeFloat(true))
  14957. if v != nil {
  14958. v[mk] = mv
  14959. }
  14960. }
  14961. } else if containerLen < 0 {
  14962. for j := 0; !dd.CheckBreak(); j++ {
  14963. mk = nil
  14964. d.decode(&mk)
  14965. if bv, bok := mk.([]byte); bok {
  14966. mk = d.string(bv)
  14967. }
  14968. mv = float32(dd.DecodeFloat(true))
  14969. if v != nil {
  14970. v[mk] = mv
  14971. }
  14972. }
  14973. dd.ReadEnd()
  14974. }
  14975. return v, changed
  14976. }
  14977. func (f *decFnInfo) fastpathDecMapIntfFloat64R(rv reflect.Value) {
  14978. if rv.CanAddr() {
  14979. vp := rv.Addr().Interface().(*map[interface{}]float64)
  14980. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  14981. if changed {
  14982. *vp = v
  14983. }
  14984. } else {
  14985. v := rv.Interface().(map[interface{}]float64)
  14986. fastpathTV.DecMapIntfFloat64V(v, fastpathCheckNilFalse, false, f.d)
  14987. }
  14988. }
  14989. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, checkNil bool, d *Decoder) {
  14990. v, changed := f.DecMapIntfFloat64V(*vp, checkNil, true, d)
  14991. if changed {
  14992. *vp = v
  14993. }
  14994. }
  14995. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, checkNil bool, canChange bool,
  14996. d *Decoder) (_ map[interface{}]float64, changed bool) {
  14997. dd := d.d
  14998. if checkNil && dd.TryDecodeAsNil() {
  14999. if v != nil {
  15000. changed = true
  15001. }
  15002. return nil, changed
  15003. }
  15004. containerLen := dd.ReadMapStart()
  15005. if canChange && v == nil {
  15006. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15007. v = make(map[interface{}]float64, xlen)
  15008. changed = true
  15009. }
  15010. var mk interface{}
  15011. var mv float64
  15012. if containerLen > 0 {
  15013. for j := 0; j < containerLen; j++ {
  15014. mk = nil
  15015. d.decode(&mk)
  15016. if bv, bok := mk.([]byte); bok {
  15017. mk = d.string(bv)
  15018. }
  15019. mv = dd.DecodeFloat(false)
  15020. if v != nil {
  15021. v[mk] = mv
  15022. }
  15023. }
  15024. } else if containerLen < 0 {
  15025. for j := 0; !dd.CheckBreak(); j++ {
  15026. mk = nil
  15027. d.decode(&mk)
  15028. if bv, bok := mk.([]byte); bok {
  15029. mk = d.string(bv)
  15030. }
  15031. mv = dd.DecodeFloat(false)
  15032. if v != nil {
  15033. v[mk] = mv
  15034. }
  15035. }
  15036. dd.ReadEnd()
  15037. }
  15038. return v, changed
  15039. }
  15040. func (f *decFnInfo) fastpathDecMapIntfBoolR(rv reflect.Value) {
  15041. if rv.CanAddr() {
  15042. vp := rv.Addr().Interface().(*map[interface{}]bool)
  15043. v, changed := fastpathTV.DecMapIntfBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  15044. if changed {
  15045. *vp = v
  15046. }
  15047. } else {
  15048. v := rv.Interface().(map[interface{}]bool)
  15049. fastpathTV.DecMapIntfBoolV(v, fastpathCheckNilFalse, false, f.d)
  15050. }
  15051. }
  15052. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, checkNil bool, d *Decoder) {
  15053. v, changed := f.DecMapIntfBoolV(*vp, checkNil, true, d)
  15054. if changed {
  15055. *vp = v
  15056. }
  15057. }
  15058. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, checkNil bool, canChange bool,
  15059. d *Decoder) (_ map[interface{}]bool, changed bool) {
  15060. dd := d.d
  15061. if checkNil && dd.TryDecodeAsNil() {
  15062. if v != nil {
  15063. changed = true
  15064. }
  15065. return nil, changed
  15066. }
  15067. containerLen := dd.ReadMapStart()
  15068. if canChange && v == nil {
  15069. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  15070. v = make(map[interface{}]bool, xlen)
  15071. changed = true
  15072. }
  15073. var mk interface{}
  15074. var mv bool
  15075. if containerLen > 0 {
  15076. for j := 0; j < containerLen; j++ {
  15077. mk = nil
  15078. d.decode(&mk)
  15079. if bv, bok := mk.([]byte); bok {
  15080. mk = d.string(bv)
  15081. }
  15082. mv = dd.DecodeBool()
  15083. if v != nil {
  15084. v[mk] = mv
  15085. }
  15086. }
  15087. } else if containerLen < 0 {
  15088. for j := 0; !dd.CheckBreak(); j++ {
  15089. mk = nil
  15090. d.decode(&mk)
  15091. if bv, bok := mk.([]byte); bok {
  15092. mk = d.string(bv)
  15093. }
  15094. mv = dd.DecodeBool()
  15095. if v != nil {
  15096. v[mk] = mv
  15097. }
  15098. }
  15099. dd.ReadEnd()
  15100. }
  15101. return v, changed
  15102. }
  15103. func (f *decFnInfo) fastpathDecMapStringIntfR(rv reflect.Value) {
  15104. if rv.CanAddr() {
  15105. vp := rv.Addr().Interface().(*map[string]interface{})
  15106. v, changed := fastpathTV.DecMapStringIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  15107. if changed {
  15108. *vp = v
  15109. }
  15110. } else {
  15111. v := rv.Interface().(map[string]interface{})
  15112. fastpathTV.DecMapStringIntfV(v, fastpathCheckNilFalse, false, f.d)
  15113. }
  15114. }
  15115. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, checkNil bool, d *Decoder) {
  15116. v, changed := f.DecMapStringIntfV(*vp, checkNil, true, d)
  15117. if changed {
  15118. *vp = v
  15119. }
  15120. }
  15121. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, checkNil bool, canChange bool,
  15122. d *Decoder) (_ map[string]interface{}, changed bool) {
  15123. dd := d.d
  15124. if checkNil && dd.TryDecodeAsNil() {
  15125. if v != nil {
  15126. changed = true
  15127. }
  15128. return nil, changed
  15129. }
  15130. containerLen := dd.ReadMapStart()
  15131. if canChange && v == nil {
  15132. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  15133. v = make(map[string]interface{}, xlen)
  15134. changed = true
  15135. }
  15136. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  15137. var mk string
  15138. var mv interface{}
  15139. if containerLen > 0 {
  15140. for j := 0; j < containerLen; j++ {
  15141. mk = dd.DecodeString()
  15142. if mapGet {
  15143. mv = v[mk]
  15144. } else {
  15145. mv = nil
  15146. }
  15147. d.decode(&mv)
  15148. if v != nil {
  15149. v[mk] = mv
  15150. }
  15151. }
  15152. } else if containerLen < 0 {
  15153. for j := 0; !dd.CheckBreak(); j++ {
  15154. mk = dd.DecodeString()
  15155. if mapGet {
  15156. mv = v[mk]
  15157. } else {
  15158. mv = nil
  15159. }
  15160. d.decode(&mv)
  15161. if v != nil {
  15162. v[mk] = mv
  15163. }
  15164. }
  15165. dd.ReadEnd()
  15166. }
  15167. return v, changed
  15168. }
  15169. func (f *decFnInfo) fastpathDecMapStringStringR(rv reflect.Value) {
  15170. if rv.CanAddr() {
  15171. vp := rv.Addr().Interface().(*map[string]string)
  15172. v, changed := fastpathTV.DecMapStringStringV(*vp, fastpathCheckNilFalse, true, f.d)
  15173. if changed {
  15174. *vp = v
  15175. }
  15176. } else {
  15177. v := rv.Interface().(map[string]string)
  15178. fastpathTV.DecMapStringStringV(v, fastpathCheckNilFalse, false, f.d)
  15179. }
  15180. }
  15181. func (f fastpathT) DecMapStringStringX(vp *map[string]string, checkNil bool, d *Decoder) {
  15182. v, changed := f.DecMapStringStringV(*vp, checkNil, true, d)
  15183. if changed {
  15184. *vp = v
  15185. }
  15186. }
  15187. func (_ fastpathT) DecMapStringStringV(v map[string]string, checkNil bool, canChange bool,
  15188. d *Decoder) (_ map[string]string, changed bool) {
  15189. dd := d.d
  15190. if checkNil && dd.TryDecodeAsNil() {
  15191. if v != nil {
  15192. changed = true
  15193. }
  15194. return nil, changed
  15195. }
  15196. containerLen := dd.ReadMapStart()
  15197. if canChange && v == nil {
  15198. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 32)
  15199. v = make(map[string]string, xlen)
  15200. changed = true
  15201. }
  15202. var mk string
  15203. var mv string
  15204. if containerLen > 0 {
  15205. for j := 0; j < containerLen; j++ {
  15206. mk = dd.DecodeString()
  15207. mv = dd.DecodeString()
  15208. if v != nil {
  15209. v[mk] = mv
  15210. }
  15211. }
  15212. } else if containerLen < 0 {
  15213. for j := 0; !dd.CheckBreak(); j++ {
  15214. mk = dd.DecodeString()
  15215. mv = dd.DecodeString()
  15216. if v != nil {
  15217. v[mk] = mv
  15218. }
  15219. }
  15220. dd.ReadEnd()
  15221. }
  15222. return v, changed
  15223. }
  15224. func (f *decFnInfo) fastpathDecMapStringUintR(rv reflect.Value) {
  15225. if rv.CanAddr() {
  15226. vp := rv.Addr().Interface().(*map[string]uint)
  15227. v, changed := fastpathTV.DecMapStringUintV(*vp, fastpathCheckNilFalse, true, f.d)
  15228. if changed {
  15229. *vp = v
  15230. }
  15231. } else {
  15232. v := rv.Interface().(map[string]uint)
  15233. fastpathTV.DecMapStringUintV(v, fastpathCheckNilFalse, false, f.d)
  15234. }
  15235. }
  15236. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, checkNil bool, d *Decoder) {
  15237. v, changed := f.DecMapStringUintV(*vp, checkNil, true, d)
  15238. if changed {
  15239. *vp = v
  15240. }
  15241. }
  15242. func (_ fastpathT) DecMapStringUintV(v map[string]uint, checkNil bool, canChange bool,
  15243. d *Decoder) (_ map[string]uint, changed bool) {
  15244. dd := d.d
  15245. if checkNil && dd.TryDecodeAsNil() {
  15246. if v != nil {
  15247. changed = true
  15248. }
  15249. return nil, changed
  15250. }
  15251. containerLen := dd.ReadMapStart()
  15252. if canChange && v == nil {
  15253. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15254. v = make(map[string]uint, xlen)
  15255. changed = true
  15256. }
  15257. var mk string
  15258. var mv uint
  15259. if containerLen > 0 {
  15260. for j := 0; j < containerLen; j++ {
  15261. mk = dd.DecodeString()
  15262. mv = uint(dd.DecodeUint(uintBitsize))
  15263. if v != nil {
  15264. v[mk] = mv
  15265. }
  15266. }
  15267. } else if containerLen < 0 {
  15268. for j := 0; !dd.CheckBreak(); j++ {
  15269. mk = dd.DecodeString()
  15270. mv = uint(dd.DecodeUint(uintBitsize))
  15271. if v != nil {
  15272. v[mk] = mv
  15273. }
  15274. }
  15275. dd.ReadEnd()
  15276. }
  15277. return v, changed
  15278. }
  15279. func (f *decFnInfo) fastpathDecMapStringUint8R(rv reflect.Value) {
  15280. if rv.CanAddr() {
  15281. vp := rv.Addr().Interface().(*map[string]uint8)
  15282. v, changed := fastpathTV.DecMapStringUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  15283. if changed {
  15284. *vp = v
  15285. }
  15286. } else {
  15287. v := rv.Interface().(map[string]uint8)
  15288. fastpathTV.DecMapStringUint8V(v, fastpathCheckNilFalse, false, f.d)
  15289. }
  15290. }
  15291. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, checkNil bool, d *Decoder) {
  15292. v, changed := f.DecMapStringUint8V(*vp, checkNil, true, d)
  15293. if changed {
  15294. *vp = v
  15295. }
  15296. }
  15297. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, checkNil bool, canChange bool,
  15298. d *Decoder) (_ map[string]uint8, changed bool) {
  15299. dd := d.d
  15300. if checkNil && dd.TryDecodeAsNil() {
  15301. if v != nil {
  15302. changed = true
  15303. }
  15304. return nil, changed
  15305. }
  15306. containerLen := dd.ReadMapStart()
  15307. if canChange && v == nil {
  15308. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  15309. v = make(map[string]uint8, xlen)
  15310. changed = true
  15311. }
  15312. var mk string
  15313. var mv uint8
  15314. if containerLen > 0 {
  15315. for j := 0; j < containerLen; j++ {
  15316. mk = dd.DecodeString()
  15317. mv = uint8(dd.DecodeUint(8))
  15318. if v != nil {
  15319. v[mk] = mv
  15320. }
  15321. }
  15322. } else if containerLen < 0 {
  15323. for j := 0; !dd.CheckBreak(); j++ {
  15324. mk = dd.DecodeString()
  15325. mv = uint8(dd.DecodeUint(8))
  15326. if v != nil {
  15327. v[mk] = mv
  15328. }
  15329. }
  15330. dd.ReadEnd()
  15331. }
  15332. return v, changed
  15333. }
  15334. func (f *decFnInfo) fastpathDecMapStringUint16R(rv reflect.Value) {
  15335. if rv.CanAddr() {
  15336. vp := rv.Addr().Interface().(*map[string]uint16)
  15337. v, changed := fastpathTV.DecMapStringUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  15338. if changed {
  15339. *vp = v
  15340. }
  15341. } else {
  15342. v := rv.Interface().(map[string]uint16)
  15343. fastpathTV.DecMapStringUint16V(v, fastpathCheckNilFalse, false, f.d)
  15344. }
  15345. }
  15346. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, checkNil bool, d *Decoder) {
  15347. v, changed := f.DecMapStringUint16V(*vp, checkNil, true, d)
  15348. if changed {
  15349. *vp = v
  15350. }
  15351. }
  15352. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, checkNil bool, canChange bool,
  15353. d *Decoder) (_ map[string]uint16, changed bool) {
  15354. dd := d.d
  15355. if checkNil && dd.TryDecodeAsNil() {
  15356. if v != nil {
  15357. changed = true
  15358. }
  15359. return nil, changed
  15360. }
  15361. containerLen := dd.ReadMapStart()
  15362. if canChange && v == nil {
  15363. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  15364. v = make(map[string]uint16, xlen)
  15365. changed = true
  15366. }
  15367. var mk string
  15368. var mv uint16
  15369. if containerLen > 0 {
  15370. for j := 0; j < containerLen; j++ {
  15371. mk = dd.DecodeString()
  15372. mv = uint16(dd.DecodeUint(16))
  15373. if v != nil {
  15374. v[mk] = mv
  15375. }
  15376. }
  15377. } else if containerLen < 0 {
  15378. for j := 0; !dd.CheckBreak(); j++ {
  15379. mk = dd.DecodeString()
  15380. mv = uint16(dd.DecodeUint(16))
  15381. if v != nil {
  15382. v[mk] = mv
  15383. }
  15384. }
  15385. dd.ReadEnd()
  15386. }
  15387. return v, changed
  15388. }
  15389. func (f *decFnInfo) fastpathDecMapStringUint32R(rv reflect.Value) {
  15390. if rv.CanAddr() {
  15391. vp := rv.Addr().Interface().(*map[string]uint32)
  15392. v, changed := fastpathTV.DecMapStringUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  15393. if changed {
  15394. *vp = v
  15395. }
  15396. } else {
  15397. v := rv.Interface().(map[string]uint32)
  15398. fastpathTV.DecMapStringUint32V(v, fastpathCheckNilFalse, false, f.d)
  15399. }
  15400. }
  15401. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, checkNil bool, d *Decoder) {
  15402. v, changed := f.DecMapStringUint32V(*vp, checkNil, true, d)
  15403. if changed {
  15404. *vp = v
  15405. }
  15406. }
  15407. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, checkNil bool, canChange bool,
  15408. d *Decoder) (_ map[string]uint32, changed bool) {
  15409. dd := d.d
  15410. if checkNil && dd.TryDecodeAsNil() {
  15411. if v != nil {
  15412. changed = true
  15413. }
  15414. return nil, changed
  15415. }
  15416. containerLen := dd.ReadMapStart()
  15417. if canChange && v == nil {
  15418. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  15419. v = make(map[string]uint32, xlen)
  15420. changed = true
  15421. }
  15422. var mk string
  15423. var mv uint32
  15424. if containerLen > 0 {
  15425. for j := 0; j < containerLen; j++ {
  15426. mk = dd.DecodeString()
  15427. mv = uint32(dd.DecodeUint(32))
  15428. if v != nil {
  15429. v[mk] = mv
  15430. }
  15431. }
  15432. } else if containerLen < 0 {
  15433. for j := 0; !dd.CheckBreak(); j++ {
  15434. mk = dd.DecodeString()
  15435. mv = uint32(dd.DecodeUint(32))
  15436. if v != nil {
  15437. v[mk] = mv
  15438. }
  15439. }
  15440. dd.ReadEnd()
  15441. }
  15442. return v, changed
  15443. }
  15444. func (f *decFnInfo) fastpathDecMapStringUint64R(rv reflect.Value) {
  15445. if rv.CanAddr() {
  15446. vp := rv.Addr().Interface().(*map[string]uint64)
  15447. v, changed := fastpathTV.DecMapStringUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  15448. if changed {
  15449. *vp = v
  15450. }
  15451. } else {
  15452. v := rv.Interface().(map[string]uint64)
  15453. fastpathTV.DecMapStringUint64V(v, fastpathCheckNilFalse, false, f.d)
  15454. }
  15455. }
  15456. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, checkNil bool, d *Decoder) {
  15457. v, changed := f.DecMapStringUint64V(*vp, checkNil, true, d)
  15458. if changed {
  15459. *vp = v
  15460. }
  15461. }
  15462. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, checkNil bool, canChange bool,
  15463. d *Decoder) (_ map[string]uint64, changed bool) {
  15464. dd := d.d
  15465. if checkNil && dd.TryDecodeAsNil() {
  15466. if v != nil {
  15467. changed = true
  15468. }
  15469. return nil, changed
  15470. }
  15471. containerLen := dd.ReadMapStart()
  15472. if canChange && v == nil {
  15473. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15474. v = make(map[string]uint64, xlen)
  15475. changed = true
  15476. }
  15477. var mk string
  15478. var mv uint64
  15479. if containerLen > 0 {
  15480. for j := 0; j < containerLen; j++ {
  15481. mk = dd.DecodeString()
  15482. mv = dd.DecodeUint(64)
  15483. if v != nil {
  15484. v[mk] = mv
  15485. }
  15486. }
  15487. } else if containerLen < 0 {
  15488. for j := 0; !dd.CheckBreak(); j++ {
  15489. mk = dd.DecodeString()
  15490. mv = dd.DecodeUint(64)
  15491. if v != nil {
  15492. v[mk] = mv
  15493. }
  15494. }
  15495. dd.ReadEnd()
  15496. }
  15497. return v, changed
  15498. }
  15499. func (f *decFnInfo) fastpathDecMapStringUintptrR(rv reflect.Value) {
  15500. if rv.CanAddr() {
  15501. vp := rv.Addr().Interface().(*map[string]uintptr)
  15502. v, changed := fastpathTV.DecMapStringUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  15503. if changed {
  15504. *vp = v
  15505. }
  15506. } else {
  15507. v := rv.Interface().(map[string]uintptr)
  15508. fastpathTV.DecMapStringUintptrV(v, fastpathCheckNilFalse, false, f.d)
  15509. }
  15510. }
  15511. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, checkNil bool, d *Decoder) {
  15512. v, changed := f.DecMapStringUintptrV(*vp, checkNil, true, d)
  15513. if changed {
  15514. *vp = v
  15515. }
  15516. }
  15517. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, checkNil bool, canChange bool,
  15518. d *Decoder) (_ map[string]uintptr, changed bool) {
  15519. dd := d.d
  15520. if checkNil && dd.TryDecodeAsNil() {
  15521. if v != nil {
  15522. changed = true
  15523. }
  15524. return nil, changed
  15525. }
  15526. containerLen := dd.ReadMapStart()
  15527. if canChange && v == nil {
  15528. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15529. v = make(map[string]uintptr, xlen)
  15530. changed = true
  15531. }
  15532. var mk string
  15533. var mv uintptr
  15534. if containerLen > 0 {
  15535. for j := 0; j < containerLen; j++ {
  15536. mk = dd.DecodeString()
  15537. mv = uintptr(dd.DecodeUint(uintBitsize))
  15538. if v != nil {
  15539. v[mk] = mv
  15540. }
  15541. }
  15542. } else if containerLen < 0 {
  15543. for j := 0; !dd.CheckBreak(); j++ {
  15544. mk = dd.DecodeString()
  15545. mv = uintptr(dd.DecodeUint(uintBitsize))
  15546. if v != nil {
  15547. v[mk] = mv
  15548. }
  15549. }
  15550. dd.ReadEnd()
  15551. }
  15552. return v, changed
  15553. }
  15554. func (f *decFnInfo) fastpathDecMapStringIntR(rv reflect.Value) {
  15555. if rv.CanAddr() {
  15556. vp := rv.Addr().Interface().(*map[string]int)
  15557. v, changed := fastpathTV.DecMapStringIntV(*vp, fastpathCheckNilFalse, true, f.d)
  15558. if changed {
  15559. *vp = v
  15560. }
  15561. } else {
  15562. v := rv.Interface().(map[string]int)
  15563. fastpathTV.DecMapStringIntV(v, fastpathCheckNilFalse, false, f.d)
  15564. }
  15565. }
  15566. func (f fastpathT) DecMapStringIntX(vp *map[string]int, checkNil bool, d *Decoder) {
  15567. v, changed := f.DecMapStringIntV(*vp, checkNil, true, d)
  15568. if changed {
  15569. *vp = v
  15570. }
  15571. }
  15572. func (_ fastpathT) DecMapStringIntV(v map[string]int, checkNil bool, canChange bool,
  15573. d *Decoder) (_ map[string]int, changed bool) {
  15574. dd := d.d
  15575. if checkNil && dd.TryDecodeAsNil() {
  15576. if v != nil {
  15577. changed = true
  15578. }
  15579. return nil, changed
  15580. }
  15581. containerLen := dd.ReadMapStart()
  15582. if canChange && v == nil {
  15583. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15584. v = make(map[string]int, xlen)
  15585. changed = true
  15586. }
  15587. var mk string
  15588. var mv int
  15589. if containerLen > 0 {
  15590. for j := 0; j < containerLen; j++ {
  15591. mk = dd.DecodeString()
  15592. mv = int(dd.DecodeInt(intBitsize))
  15593. if v != nil {
  15594. v[mk] = mv
  15595. }
  15596. }
  15597. } else if containerLen < 0 {
  15598. for j := 0; !dd.CheckBreak(); j++ {
  15599. mk = dd.DecodeString()
  15600. mv = int(dd.DecodeInt(intBitsize))
  15601. if v != nil {
  15602. v[mk] = mv
  15603. }
  15604. }
  15605. dd.ReadEnd()
  15606. }
  15607. return v, changed
  15608. }
  15609. func (f *decFnInfo) fastpathDecMapStringInt8R(rv reflect.Value) {
  15610. if rv.CanAddr() {
  15611. vp := rv.Addr().Interface().(*map[string]int8)
  15612. v, changed := fastpathTV.DecMapStringInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  15613. if changed {
  15614. *vp = v
  15615. }
  15616. } else {
  15617. v := rv.Interface().(map[string]int8)
  15618. fastpathTV.DecMapStringInt8V(v, fastpathCheckNilFalse, false, f.d)
  15619. }
  15620. }
  15621. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, checkNil bool, d *Decoder) {
  15622. v, changed := f.DecMapStringInt8V(*vp, checkNil, true, d)
  15623. if changed {
  15624. *vp = v
  15625. }
  15626. }
  15627. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, checkNil bool, canChange bool,
  15628. d *Decoder) (_ map[string]int8, changed bool) {
  15629. dd := d.d
  15630. if checkNil && dd.TryDecodeAsNil() {
  15631. if v != nil {
  15632. changed = true
  15633. }
  15634. return nil, changed
  15635. }
  15636. containerLen := dd.ReadMapStart()
  15637. if canChange && v == nil {
  15638. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  15639. v = make(map[string]int8, xlen)
  15640. changed = true
  15641. }
  15642. var mk string
  15643. var mv int8
  15644. if containerLen > 0 {
  15645. for j := 0; j < containerLen; j++ {
  15646. mk = dd.DecodeString()
  15647. mv = int8(dd.DecodeInt(8))
  15648. if v != nil {
  15649. v[mk] = mv
  15650. }
  15651. }
  15652. } else if containerLen < 0 {
  15653. for j := 0; !dd.CheckBreak(); j++ {
  15654. mk = dd.DecodeString()
  15655. mv = int8(dd.DecodeInt(8))
  15656. if v != nil {
  15657. v[mk] = mv
  15658. }
  15659. }
  15660. dd.ReadEnd()
  15661. }
  15662. return v, changed
  15663. }
  15664. func (f *decFnInfo) fastpathDecMapStringInt16R(rv reflect.Value) {
  15665. if rv.CanAddr() {
  15666. vp := rv.Addr().Interface().(*map[string]int16)
  15667. v, changed := fastpathTV.DecMapStringInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  15668. if changed {
  15669. *vp = v
  15670. }
  15671. } else {
  15672. v := rv.Interface().(map[string]int16)
  15673. fastpathTV.DecMapStringInt16V(v, fastpathCheckNilFalse, false, f.d)
  15674. }
  15675. }
  15676. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, checkNil bool, d *Decoder) {
  15677. v, changed := f.DecMapStringInt16V(*vp, checkNil, true, d)
  15678. if changed {
  15679. *vp = v
  15680. }
  15681. }
  15682. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, checkNil bool, canChange bool,
  15683. d *Decoder) (_ map[string]int16, changed bool) {
  15684. dd := d.d
  15685. if checkNil && dd.TryDecodeAsNil() {
  15686. if v != nil {
  15687. changed = true
  15688. }
  15689. return nil, changed
  15690. }
  15691. containerLen := dd.ReadMapStart()
  15692. if canChange && v == nil {
  15693. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  15694. v = make(map[string]int16, xlen)
  15695. changed = true
  15696. }
  15697. var mk string
  15698. var mv int16
  15699. if containerLen > 0 {
  15700. for j := 0; j < containerLen; j++ {
  15701. mk = dd.DecodeString()
  15702. mv = int16(dd.DecodeInt(16))
  15703. if v != nil {
  15704. v[mk] = mv
  15705. }
  15706. }
  15707. } else if containerLen < 0 {
  15708. for j := 0; !dd.CheckBreak(); j++ {
  15709. mk = dd.DecodeString()
  15710. mv = int16(dd.DecodeInt(16))
  15711. if v != nil {
  15712. v[mk] = mv
  15713. }
  15714. }
  15715. dd.ReadEnd()
  15716. }
  15717. return v, changed
  15718. }
  15719. func (f *decFnInfo) fastpathDecMapStringInt32R(rv reflect.Value) {
  15720. if rv.CanAddr() {
  15721. vp := rv.Addr().Interface().(*map[string]int32)
  15722. v, changed := fastpathTV.DecMapStringInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  15723. if changed {
  15724. *vp = v
  15725. }
  15726. } else {
  15727. v := rv.Interface().(map[string]int32)
  15728. fastpathTV.DecMapStringInt32V(v, fastpathCheckNilFalse, false, f.d)
  15729. }
  15730. }
  15731. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, checkNil bool, d *Decoder) {
  15732. v, changed := f.DecMapStringInt32V(*vp, checkNil, true, d)
  15733. if changed {
  15734. *vp = v
  15735. }
  15736. }
  15737. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, checkNil bool, canChange bool,
  15738. d *Decoder) (_ map[string]int32, changed bool) {
  15739. dd := d.d
  15740. if checkNil && dd.TryDecodeAsNil() {
  15741. if v != nil {
  15742. changed = true
  15743. }
  15744. return nil, changed
  15745. }
  15746. containerLen := dd.ReadMapStart()
  15747. if canChange && v == nil {
  15748. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  15749. v = make(map[string]int32, xlen)
  15750. changed = true
  15751. }
  15752. var mk string
  15753. var mv int32
  15754. if containerLen > 0 {
  15755. for j := 0; j < containerLen; j++ {
  15756. mk = dd.DecodeString()
  15757. mv = int32(dd.DecodeInt(32))
  15758. if v != nil {
  15759. v[mk] = mv
  15760. }
  15761. }
  15762. } else if containerLen < 0 {
  15763. for j := 0; !dd.CheckBreak(); j++ {
  15764. mk = dd.DecodeString()
  15765. mv = int32(dd.DecodeInt(32))
  15766. if v != nil {
  15767. v[mk] = mv
  15768. }
  15769. }
  15770. dd.ReadEnd()
  15771. }
  15772. return v, changed
  15773. }
  15774. func (f *decFnInfo) fastpathDecMapStringInt64R(rv reflect.Value) {
  15775. if rv.CanAddr() {
  15776. vp := rv.Addr().Interface().(*map[string]int64)
  15777. v, changed := fastpathTV.DecMapStringInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  15778. if changed {
  15779. *vp = v
  15780. }
  15781. } else {
  15782. v := rv.Interface().(map[string]int64)
  15783. fastpathTV.DecMapStringInt64V(v, fastpathCheckNilFalse, false, f.d)
  15784. }
  15785. }
  15786. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, checkNil bool, d *Decoder) {
  15787. v, changed := f.DecMapStringInt64V(*vp, checkNil, true, d)
  15788. if changed {
  15789. *vp = v
  15790. }
  15791. }
  15792. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, checkNil bool, canChange bool,
  15793. d *Decoder) (_ map[string]int64, changed bool) {
  15794. dd := d.d
  15795. if checkNil && dd.TryDecodeAsNil() {
  15796. if v != nil {
  15797. changed = true
  15798. }
  15799. return nil, changed
  15800. }
  15801. containerLen := dd.ReadMapStart()
  15802. if canChange && v == nil {
  15803. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15804. v = make(map[string]int64, xlen)
  15805. changed = true
  15806. }
  15807. var mk string
  15808. var mv int64
  15809. if containerLen > 0 {
  15810. for j := 0; j < containerLen; j++ {
  15811. mk = dd.DecodeString()
  15812. mv = dd.DecodeInt(64)
  15813. if v != nil {
  15814. v[mk] = mv
  15815. }
  15816. }
  15817. } else if containerLen < 0 {
  15818. for j := 0; !dd.CheckBreak(); j++ {
  15819. mk = dd.DecodeString()
  15820. mv = dd.DecodeInt(64)
  15821. if v != nil {
  15822. v[mk] = mv
  15823. }
  15824. }
  15825. dd.ReadEnd()
  15826. }
  15827. return v, changed
  15828. }
  15829. func (f *decFnInfo) fastpathDecMapStringFloat32R(rv reflect.Value) {
  15830. if rv.CanAddr() {
  15831. vp := rv.Addr().Interface().(*map[string]float32)
  15832. v, changed := fastpathTV.DecMapStringFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  15833. if changed {
  15834. *vp = v
  15835. }
  15836. } else {
  15837. v := rv.Interface().(map[string]float32)
  15838. fastpathTV.DecMapStringFloat32V(v, fastpathCheckNilFalse, false, f.d)
  15839. }
  15840. }
  15841. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, checkNil bool, d *Decoder) {
  15842. v, changed := f.DecMapStringFloat32V(*vp, checkNil, true, d)
  15843. if changed {
  15844. *vp = v
  15845. }
  15846. }
  15847. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, checkNil bool, canChange bool,
  15848. d *Decoder) (_ map[string]float32, changed bool) {
  15849. dd := d.d
  15850. if checkNil && dd.TryDecodeAsNil() {
  15851. if v != nil {
  15852. changed = true
  15853. }
  15854. return nil, changed
  15855. }
  15856. containerLen := dd.ReadMapStart()
  15857. if canChange && v == nil {
  15858. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  15859. v = make(map[string]float32, xlen)
  15860. changed = true
  15861. }
  15862. var mk string
  15863. var mv float32
  15864. if containerLen > 0 {
  15865. for j := 0; j < containerLen; j++ {
  15866. mk = dd.DecodeString()
  15867. mv = float32(dd.DecodeFloat(true))
  15868. if v != nil {
  15869. v[mk] = mv
  15870. }
  15871. }
  15872. } else if containerLen < 0 {
  15873. for j := 0; !dd.CheckBreak(); j++ {
  15874. mk = dd.DecodeString()
  15875. mv = float32(dd.DecodeFloat(true))
  15876. if v != nil {
  15877. v[mk] = mv
  15878. }
  15879. }
  15880. dd.ReadEnd()
  15881. }
  15882. return v, changed
  15883. }
  15884. func (f *decFnInfo) fastpathDecMapStringFloat64R(rv reflect.Value) {
  15885. if rv.CanAddr() {
  15886. vp := rv.Addr().Interface().(*map[string]float64)
  15887. v, changed := fastpathTV.DecMapStringFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  15888. if changed {
  15889. *vp = v
  15890. }
  15891. } else {
  15892. v := rv.Interface().(map[string]float64)
  15893. fastpathTV.DecMapStringFloat64V(v, fastpathCheckNilFalse, false, f.d)
  15894. }
  15895. }
  15896. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, checkNil bool, d *Decoder) {
  15897. v, changed := f.DecMapStringFloat64V(*vp, checkNil, true, d)
  15898. if changed {
  15899. *vp = v
  15900. }
  15901. }
  15902. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, checkNil bool, canChange bool,
  15903. d *Decoder) (_ map[string]float64, changed bool) {
  15904. dd := d.d
  15905. if checkNil && dd.TryDecodeAsNil() {
  15906. if v != nil {
  15907. changed = true
  15908. }
  15909. return nil, changed
  15910. }
  15911. containerLen := dd.ReadMapStart()
  15912. if canChange && v == nil {
  15913. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  15914. v = make(map[string]float64, xlen)
  15915. changed = true
  15916. }
  15917. var mk string
  15918. var mv float64
  15919. if containerLen > 0 {
  15920. for j := 0; j < containerLen; j++ {
  15921. mk = dd.DecodeString()
  15922. mv = dd.DecodeFloat(false)
  15923. if v != nil {
  15924. v[mk] = mv
  15925. }
  15926. }
  15927. } else if containerLen < 0 {
  15928. for j := 0; !dd.CheckBreak(); j++ {
  15929. mk = dd.DecodeString()
  15930. mv = dd.DecodeFloat(false)
  15931. if v != nil {
  15932. v[mk] = mv
  15933. }
  15934. }
  15935. dd.ReadEnd()
  15936. }
  15937. return v, changed
  15938. }
  15939. func (f *decFnInfo) fastpathDecMapStringBoolR(rv reflect.Value) {
  15940. if rv.CanAddr() {
  15941. vp := rv.Addr().Interface().(*map[string]bool)
  15942. v, changed := fastpathTV.DecMapStringBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  15943. if changed {
  15944. *vp = v
  15945. }
  15946. } else {
  15947. v := rv.Interface().(map[string]bool)
  15948. fastpathTV.DecMapStringBoolV(v, fastpathCheckNilFalse, false, f.d)
  15949. }
  15950. }
  15951. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, checkNil bool, d *Decoder) {
  15952. v, changed := f.DecMapStringBoolV(*vp, checkNil, true, d)
  15953. if changed {
  15954. *vp = v
  15955. }
  15956. }
  15957. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, checkNil bool, canChange bool,
  15958. d *Decoder) (_ map[string]bool, changed bool) {
  15959. dd := d.d
  15960. if checkNil && dd.TryDecodeAsNil() {
  15961. if v != nil {
  15962. changed = true
  15963. }
  15964. return nil, changed
  15965. }
  15966. containerLen := dd.ReadMapStart()
  15967. if canChange && v == nil {
  15968. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  15969. v = make(map[string]bool, xlen)
  15970. changed = true
  15971. }
  15972. var mk string
  15973. var mv bool
  15974. if containerLen > 0 {
  15975. for j := 0; j < containerLen; j++ {
  15976. mk = dd.DecodeString()
  15977. mv = dd.DecodeBool()
  15978. if v != nil {
  15979. v[mk] = mv
  15980. }
  15981. }
  15982. } else if containerLen < 0 {
  15983. for j := 0; !dd.CheckBreak(); j++ {
  15984. mk = dd.DecodeString()
  15985. mv = dd.DecodeBool()
  15986. if v != nil {
  15987. v[mk] = mv
  15988. }
  15989. }
  15990. dd.ReadEnd()
  15991. }
  15992. return v, changed
  15993. }
  15994. func (f *decFnInfo) fastpathDecMapFloat32IntfR(rv reflect.Value) {
  15995. if rv.CanAddr() {
  15996. vp := rv.Addr().Interface().(*map[float32]interface{})
  15997. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  15998. if changed {
  15999. *vp = v
  16000. }
  16001. } else {
  16002. v := rv.Interface().(map[float32]interface{})
  16003. fastpathTV.DecMapFloat32IntfV(v, fastpathCheckNilFalse, false, f.d)
  16004. }
  16005. }
  16006. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, checkNil bool, d *Decoder) {
  16007. v, changed := f.DecMapFloat32IntfV(*vp, checkNil, true, d)
  16008. if changed {
  16009. *vp = v
  16010. }
  16011. }
  16012. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, checkNil bool, canChange bool,
  16013. d *Decoder) (_ map[float32]interface{}, changed bool) {
  16014. dd := d.d
  16015. if checkNil && dd.TryDecodeAsNil() {
  16016. if v != nil {
  16017. changed = true
  16018. }
  16019. return nil, changed
  16020. }
  16021. containerLen := dd.ReadMapStart()
  16022. if canChange && v == nil {
  16023. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  16024. v = make(map[float32]interface{}, xlen)
  16025. changed = true
  16026. }
  16027. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  16028. var mk float32
  16029. var mv interface{}
  16030. if containerLen > 0 {
  16031. for j := 0; j < containerLen; j++ {
  16032. mk = float32(dd.DecodeFloat(true))
  16033. if mapGet {
  16034. mv = v[mk]
  16035. } else {
  16036. mv = nil
  16037. }
  16038. d.decode(&mv)
  16039. if v != nil {
  16040. v[mk] = mv
  16041. }
  16042. }
  16043. } else if containerLen < 0 {
  16044. for j := 0; !dd.CheckBreak(); j++ {
  16045. mk = float32(dd.DecodeFloat(true))
  16046. if mapGet {
  16047. mv = v[mk]
  16048. } else {
  16049. mv = nil
  16050. }
  16051. d.decode(&mv)
  16052. if v != nil {
  16053. v[mk] = mv
  16054. }
  16055. }
  16056. dd.ReadEnd()
  16057. }
  16058. return v, changed
  16059. }
  16060. func (f *decFnInfo) fastpathDecMapFloat32StringR(rv reflect.Value) {
  16061. if rv.CanAddr() {
  16062. vp := rv.Addr().Interface().(*map[float32]string)
  16063. v, changed := fastpathTV.DecMapFloat32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  16064. if changed {
  16065. *vp = v
  16066. }
  16067. } else {
  16068. v := rv.Interface().(map[float32]string)
  16069. fastpathTV.DecMapFloat32StringV(v, fastpathCheckNilFalse, false, f.d)
  16070. }
  16071. }
  16072. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, checkNil bool, d *Decoder) {
  16073. v, changed := f.DecMapFloat32StringV(*vp, checkNil, true, d)
  16074. if changed {
  16075. *vp = v
  16076. }
  16077. }
  16078. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, checkNil bool, canChange bool,
  16079. d *Decoder) (_ map[float32]string, changed bool) {
  16080. dd := d.d
  16081. if checkNil && dd.TryDecodeAsNil() {
  16082. if v != nil {
  16083. changed = true
  16084. }
  16085. return nil, changed
  16086. }
  16087. containerLen := dd.ReadMapStart()
  16088. if canChange && v == nil {
  16089. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  16090. v = make(map[float32]string, xlen)
  16091. changed = true
  16092. }
  16093. var mk float32
  16094. var mv string
  16095. if containerLen > 0 {
  16096. for j := 0; j < containerLen; j++ {
  16097. mk = float32(dd.DecodeFloat(true))
  16098. mv = dd.DecodeString()
  16099. if v != nil {
  16100. v[mk] = mv
  16101. }
  16102. }
  16103. } else if containerLen < 0 {
  16104. for j := 0; !dd.CheckBreak(); j++ {
  16105. mk = float32(dd.DecodeFloat(true))
  16106. mv = dd.DecodeString()
  16107. if v != nil {
  16108. v[mk] = mv
  16109. }
  16110. }
  16111. dd.ReadEnd()
  16112. }
  16113. return v, changed
  16114. }
  16115. func (f *decFnInfo) fastpathDecMapFloat32UintR(rv reflect.Value) {
  16116. if rv.CanAddr() {
  16117. vp := rv.Addr().Interface().(*map[float32]uint)
  16118. v, changed := fastpathTV.DecMapFloat32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  16119. if changed {
  16120. *vp = v
  16121. }
  16122. } else {
  16123. v := rv.Interface().(map[float32]uint)
  16124. fastpathTV.DecMapFloat32UintV(v, fastpathCheckNilFalse, false, f.d)
  16125. }
  16126. }
  16127. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, checkNil bool, d *Decoder) {
  16128. v, changed := f.DecMapFloat32UintV(*vp, checkNil, true, d)
  16129. if changed {
  16130. *vp = v
  16131. }
  16132. }
  16133. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, checkNil bool, canChange bool,
  16134. d *Decoder) (_ map[float32]uint, changed bool) {
  16135. dd := d.d
  16136. if checkNil && dd.TryDecodeAsNil() {
  16137. if v != nil {
  16138. changed = true
  16139. }
  16140. return nil, changed
  16141. }
  16142. containerLen := dd.ReadMapStart()
  16143. if canChange && v == nil {
  16144. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  16145. v = make(map[float32]uint, xlen)
  16146. changed = true
  16147. }
  16148. var mk float32
  16149. var mv uint
  16150. if containerLen > 0 {
  16151. for j := 0; j < containerLen; j++ {
  16152. mk = float32(dd.DecodeFloat(true))
  16153. mv = uint(dd.DecodeUint(uintBitsize))
  16154. if v != nil {
  16155. v[mk] = mv
  16156. }
  16157. }
  16158. } else if containerLen < 0 {
  16159. for j := 0; !dd.CheckBreak(); j++ {
  16160. mk = float32(dd.DecodeFloat(true))
  16161. mv = uint(dd.DecodeUint(uintBitsize))
  16162. if v != nil {
  16163. v[mk] = mv
  16164. }
  16165. }
  16166. dd.ReadEnd()
  16167. }
  16168. return v, changed
  16169. }
  16170. func (f *decFnInfo) fastpathDecMapFloat32Uint8R(rv reflect.Value) {
  16171. if rv.CanAddr() {
  16172. vp := rv.Addr().Interface().(*map[float32]uint8)
  16173. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  16174. if changed {
  16175. *vp = v
  16176. }
  16177. } else {
  16178. v := rv.Interface().(map[float32]uint8)
  16179. fastpathTV.DecMapFloat32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  16180. }
  16181. }
  16182. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, checkNil bool, d *Decoder) {
  16183. v, changed := f.DecMapFloat32Uint8V(*vp, checkNil, true, d)
  16184. if changed {
  16185. *vp = v
  16186. }
  16187. }
  16188. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, checkNil bool, canChange bool,
  16189. d *Decoder) (_ map[float32]uint8, changed bool) {
  16190. dd := d.d
  16191. if checkNil && dd.TryDecodeAsNil() {
  16192. if v != nil {
  16193. changed = true
  16194. }
  16195. return nil, changed
  16196. }
  16197. containerLen := dd.ReadMapStart()
  16198. if canChange && v == nil {
  16199. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  16200. v = make(map[float32]uint8, xlen)
  16201. changed = true
  16202. }
  16203. var mk float32
  16204. var mv uint8
  16205. if containerLen > 0 {
  16206. for j := 0; j < containerLen; j++ {
  16207. mk = float32(dd.DecodeFloat(true))
  16208. mv = uint8(dd.DecodeUint(8))
  16209. if v != nil {
  16210. v[mk] = mv
  16211. }
  16212. }
  16213. } else if containerLen < 0 {
  16214. for j := 0; !dd.CheckBreak(); j++ {
  16215. mk = float32(dd.DecodeFloat(true))
  16216. mv = uint8(dd.DecodeUint(8))
  16217. if v != nil {
  16218. v[mk] = mv
  16219. }
  16220. }
  16221. dd.ReadEnd()
  16222. }
  16223. return v, changed
  16224. }
  16225. func (f *decFnInfo) fastpathDecMapFloat32Uint16R(rv reflect.Value) {
  16226. if rv.CanAddr() {
  16227. vp := rv.Addr().Interface().(*map[float32]uint16)
  16228. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  16229. if changed {
  16230. *vp = v
  16231. }
  16232. } else {
  16233. v := rv.Interface().(map[float32]uint16)
  16234. fastpathTV.DecMapFloat32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  16235. }
  16236. }
  16237. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, checkNil bool, d *Decoder) {
  16238. v, changed := f.DecMapFloat32Uint16V(*vp, checkNil, true, d)
  16239. if changed {
  16240. *vp = v
  16241. }
  16242. }
  16243. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, checkNil bool, canChange bool,
  16244. d *Decoder) (_ map[float32]uint16, changed bool) {
  16245. dd := d.d
  16246. if checkNil && dd.TryDecodeAsNil() {
  16247. if v != nil {
  16248. changed = true
  16249. }
  16250. return nil, changed
  16251. }
  16252. containerLen := dd.ReadMapStart()
  16253. if canChange && v == nil {
  16254. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  16255. v = make(map[float32]uint16, xlen)
  16256. changed = true
  16257. }
  16258. var mk float32
  16259. var mv uint16
  16260. if containerLen > 0 {
  16261. for j := 0; j < containerLen; j++ {
  16262. mk = float32(dd.DecodeFloat(true))
  16263. mv = uint16(dd.DecodeUint(16))
  16264. if v != nil {
  16265. v[mk] = mv
  16266. }
  16267. }
  16268. } else if containerLen < 0 {
  16269. for j := 0; !dd.CheckBreak(); j++ {
  16270. mk = float32(dd.DecodeFloat(true))
  16271. mv = uint16(dd.DecodeUint(16))
  16272. if v != nil {
  16273. v[mk] = mv
  16274. }
  16275. }
  16276. dd.ReadEnd()
  16277. }
  16278. return v, changed
  16279. }
  16280. func (f *decFnInfo) fastpathDecMapFloat32Uint32R(rv reflect.Value) {
  16281. if rv.CanAddr() {
  16282. vp := rv.Addr().Interface().(*map[float32]uint32)
  16283. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  16284. if changed {
  16285. *vp = v
  16286. }
  16287. } else {
  16288. v := rv.Interface().(map[float32]uint32)
  16289. fastpathTV.DecMapFloat32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  16290. }
  16291. }
  16292. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, checkNil bool, d *Decoder) {
  16293. v, changed := f.DecMapFloat32Uint32V(*vp, checkNil, true, d)
  16294. if changed {
  16295. *vp = v
  16296. }
  16297. }
  16298. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, checkNil bool, canChange bool,
  16299. d *Decoder) (_ map[float32]uint32, changed bool) {
  16300. dd := d.d
  16301. if checkNil && dd.TryDecodeAsNil() {
  16302. if v != nil {
  16303. changed = true
  16304. }
  16305. return nil, changed
  16306. }
  16307. containerLen := dd.ReadMapStart()
  16308. if canChange && v == nil {
  16309. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  16310. v = make(map[float32]uint32, xlen)
  16311. changed = true
  16312. }
  16313. var mk float32
  16314. var mv uint32
  16315. if containerLen > 0 {
  16316. for j := 0; j < containerLen; j++ {
  16317. mk = float32(dd.DecodeFloat(true))
  16318. mv = uint32(dd.DecodeUint(32))
  16319. if v != nil {
  16320. v[mk] = mv
  16321. }
  16322. }
  16323. } else if containerLen < 0 {
  16324. for j := 0; !dd.CheckBreak(); j++ {
  16325. mk = float32(dd.DecodeFloat(true))
  16326. mv = uint32(dd.DecodeUint(32))
  16327. if v != nil {
  16328. v[mk] = mv
  16329. }
  16330. }
  16331. dd.ReadEnd()
  16332. }
  16333. return v, changed
  16334. }
  16335. func (f *decFnInfo) fastpathDecMapFloat32Uint64R(rv reflect.Value) {
  16336. if rv.CanAddr() {
  16337. vp := rv.Addr().Interface().(*map[float32]uint64)
  16338. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  16339. if changed {
  16340. *vp = v
  16341. }
  16342. } else {
  16343. v := rv.Interface().(map[float32]uint64)
  16344. fastpathTV.DecMapFloat32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  16345. }
  16346. }
  16347. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, checkNil bool, d *Decoder) {
  16348. v, changed := f.DecMapFloat32Uint64V(*vp, checkNil, true, d)
  16349. if changed {
  16350. *vp = v
  16351. }
  16352. }
  16353. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, checkNil bool, canChange bool,
  16354. d *Decoder) (_ map[float32]uint64, changed bool) {
  16355. dd := d.d
  16356. if checkNil && dd.TryDecodeAsNil() {
  16357. if v != nil {
  16358. changed = true
  16359. }
  16360. return nil, changed
  16361. }
  16362. containerLen := dd.ReadMapStart()
  16363. if canChange && v == nil {
  16364. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  16365. v = make(map[float32]uint64, xlen)
  16366. changed = true
  16367. }
  16368. var mk float32
  16369. var mv uint64
  16370. if containerLen > 0 {
  16371. for j := 0; j < containerLen; j++ {
  16372. mk = float32(dd.DecodeFloat(true))
  16373. mv = dd.DecodeUint(64)
  16374. if v != nil {
  16375. v[mk] = mv
  16376. }
  16377. }
  16378. } else if containerLen < 0 {
  16379. for j := 0; !dd.CheckBreak(); j++ {
  16380. mk = float32(dd.DecodeFloat(true))
  16381. mv = dd.DecodeUint(64)
  16382. if v != nil {
  16383. v[mk] = mv
  16384. }
  16385. }
  16386. dd.ReadEnd()
  16387. }
  16388. return v, changed
  16389. }
  16390. func (f *decFnInfo) fastpathDecMapFloat32UintptrR(rv reflect.Value) {
  16391. if rv.CanAddr() {
  16392. vp := rv.Addr().Interface().(*map[float32]uintptr)
  16393. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  16394. if changed {
  16395. *vp = v
  16396. }
  16397. } else {
  16398. v := rv.Interface().(map[float32]uintptr)
  16399. fastpathTV.DecMapFloat32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  16400. }
  16401. }
  16402. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, checkNil bool, d *Decoder) {
  16403. v, changed := f.DecMapFloat32UintptrV(*vp, checkNil, true, d)
  16404. if changed {
  16405. *vp = v
  16406. }
  16407. }
  16408. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, checkNil bool, canChange bool,
  16409. d *Decoder) (_ map[float32]uintptr, changed bool) {
  16410. dd := d.d
  16411. if checkNil && dd.TryDecodeAsNil() {
  16412. if v != nil {
  16413. changed = true
  16414. }
  16415. return nil, changed
  16416. }
  16417. containerLen := dd.ReadMapStart()
  16418. if canChange && v == nil {
  16419. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  16420. v = make(map[float32]uintptr, xlen)
  16421. changed = true
  16422. }
  16423. var mk float32
  16424. var mv uintptr
  16425. if containerLen > 0 {
  16426. for j := 0; j < containerLen; j++ {
  16427. mk = float32(dd.DecodeFloat(true))
  16428. mv = uintptr(dd.DecodeUint(uintBitsize))
  16429. if v != nil {
  16430. v[mk] = mv
  16431. }
  16432. }
  16433. } else if containerLen < 0 {
  16434. for j := 0; !dd.CheckBreak(); j++ {
  16435. mk = float32(dd.DecodeFloat(true))
  16436. mv = uintptr(dd.DecodeUint(uintBitsize))
  16437. if v != nil {
  16438. v[mk] = mv
  16439. }
  16440. }
  16441. dd.ReadEnd()
  16442. }
  16443. return v, changed
  16444. }
  16445. func (f *decFnInfo) fastpathDecMapFloat32IntR(rv reflect.Value) {
  16446. if rv.CanAddr() {
  16447. vp := rv.Addr().Interface().(*map[float32]int)
  16448. v, changed := fastpathTV.DecMapFloat32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  16449. if changed {
  16450. *vp = v
  16451. }
  16452. } else {
  16453. v := rv.Interface().(map[float32]int)
  16454. fastpathTV.DecMapFloat32IntV(v, fastpathCheckNilFalse, false, f.d)
  16455. }
  16456. }
  16457. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, checkNil bool, d *Decoder) {
  16458. v, changed := f.DecMapFloat32IntV(*vp, checkNil, true, d)
  16459. if changed {
  16460. *vp = v
  16461. }
  16462. }
  16463. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, checkNil bool, canChange bool,
  16464. d *Decoder) (_ map[float32]int, changed bool) {
  16465. dd := d.d
  16466. if checkNil && dd.TryDecodeAsNil() {
  16467. if v != nil {
  16468. changed = true
  16469. }
  16470. return nil, changed
  16471. }
  16472. containerLen := dd.ReadMapStart()
  16473. if canChange && v == nil {
  16474. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  16475. v = make(map[float32]int, xlen)
  16476. changed = true
  16477. }
  16478. var mk float32
  16479. var mv int
  16480. if containerLen > 0 {
  16481. for j := 0; j < containerLen; j++ {
  16482. mk = float32(dd.DecodeFloat(true))
  16483. mv = int(dd.DecodeInt(intBitsize))
  16484. if v != nil {
  16485. v[mk] = mv
  16486. }
  16487. }
  16488. } else if containerLen < 0 {
  16489. for j := 0; !dd.CheckBreak(); j++ {
  16490. mk = float32(dd.DecodeFloat(true))
  16491. mv = int(dd.DecodeInt(intBitsize))
  16492. if v != nil {
  16493. v[mk] = mv
  16494. }
  16495. }
  16496. dd.ReadEnd()
  16497. }
  16498. return v, changed
  16499. }
  16500. func (f *decFnInfo) fastpathDecMapFloat32Int8R(rv reflect.Value) {
  16501. if rv.CanAddr() {
  16502. vp := rv.Addr().Interface().(*map[float32]int8)
  16503. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  16504. if changed {
  16505. *vp = v
  16506. }
  16507. } else {
  16508. v := rv.Interface().(map[float32]int8)
  16509. fastpathTV.DecMapFloat32Int8V(v, fastpathCheckNilFalse, false, f.d)
  16510. }
  16511. }
  16512. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, checkNil bool, d *Decoder) {
  16513. v, changed := f.DecMapFloat32Int8V(*vp, checkNil, true, d)
  16514. if changed {
  16515. *vp = v
  16516. }
  16517. }
  16518. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, checkNil bool, canChange bool,
  16519. d *Decoder) (_ map[float32]int8, changed bool) {
  16520. dd := d.d
  16521. if checkNil && dd.TryDecodeAsNil() {
  16522. if v != nil {
  16523. changed = true
  16524. }
  16525. return nil, changed
  16526. }
  16527. containerLen := dd.ReadMapStart()
  16528. if canChange && v == nil {
  16529. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  16530. v = make(map[float32]int8, xlen)
  16531. changed = true
  16532. }
  16533. var mk float32
  16534. var mv int8
  16535. if containerLen > 0 {
  16536. for j := 0; j < containerLen; j++ {
  16537. mk = float32(dd.DecodeFloat(true))
  16538. mv = int8(dd.DecodeInt(8))
  16539. if v != nil {
  16540. v[mk] = mv
  16541. }
  16542. }
  16543. } else if containerLen < 0 {
  16544. for j := 0; !dd.CheckBreak(); j++ {
  16545. mk = float32(dd.DecodeFloat(true))
  16546. mv = int8(dd.DecodeInt(8))
  16547. if v != nil {
  16548. v[mk] = mv
  16549. }
  16550. }
  16551. dd.ReadEnd()
  16552. }
  16553. return v, changed
  16554. }
  16555. func (f *decFnInfo) fastpathDecMapFloat32Int16R(rv reflect.Value) {
  16556. if rv.CanAddr() {
  16557. vp := rv.Addr().Interface().(*map[float32]int16)
  16558. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  16559. if changed {
  16560. *vp = v
  16561. }
  16562. } else {
  16563. v := rv.Interface().(map[float32]int16)
  16564. fastpathTV.DecMapFloat32Int16V(v, fastpathCheckNilFalse, false, f.d)
  16565. }
  16566. }
  16567. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, checkNil bool, d *Decoder) {
  16568. v, changed := f.DecMapFloat32Int16V(*vp, checkNil, true, d)
  16569. if changed {
  16570. *vp = v
  16571. }
  16572. }
  16573. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, checkNil bool, canChange bool,
  16574. d *Decoder) (_ map[float32]int16, changed bool) {
  16575. dd := d.d
  16576. if checkNil && dd.TryDecodeAsNil() {
  16577. if v != nil {
  16578. changed = true
  16579. }
  16580. return nil, changed
  16581. }
  16582. containerLen := dd.ReadMapStart()
  16583. if canChange && v == nil {
  16584. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  16585. v = make(map[float32]int16, xlen)
  16586. changed = true
  16587. }
  16588. var mk float32
  16589. var mv int16
  16590. if containerLen > 0 {
  16591. for j := 0; j < containerLen; j++ {
  16592. mk = float32(dd.DecodeFloat(true))
  16593. mv = int16(dd.DecodeInt(16))
  16594. if v != nil {
  16595. v[mk] = mv
  16596. }
  16597. }
  16598. } else if containerLen < 0 {
  16599. for j := 0; !dd.CheckBreak(); j++ {
  16600. mk = float32(dd.DecodeFloat(true))
  16601. mv = int16(dd.DecodeInt(16))
  16602. if v != nil {
  16603. v[mk] = mv
  16604. }
  16605. }
  16606. dd.ReadEnd()
  16607. }
  16608. return v, changed
  16609. }
  16610. func (f *decFnInfo) fastpathDecMapFloat32Int32R(rv reflect.Value) {
  16611. if rv.CanAddr() {
  16612. vp := rv.Addr().Interface().(*map[float32]int32)
  16613. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  16614. if changed {
  16615. *vp = v
  16616. }
  16617. } else {
  16618. v := rv.Interface().(map[float32]int32)
  16619. fastpathTV.DecMapFloat32Int32V(v, fastpathCheckNilFalse, false, f.d)
  16620. }
  16621. }
  16622. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, checkNil bool, d *Decoder) {
  16623. v, changed := f.DecMapFloat32Int32V(*vp, checkNil, true, d)
  16624. if changed {
  16625. *vp = v
  16626. }
  16627. }
  16628. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, checkNil bool, canChange bool,
  16629. d *Decoder) (_ map[float32]int32, changed bool) {
  16630. dd := d.d
  16631. if checkNil && dd.TryDecodeAsNil() {
  16632. if v != nil {
  16633. changed = true
  16634. }
  16635. return nil, changed
  16636. }
  16637. containerLen := dd.ReadMapStart()
  16638. if canChange && v == nil {
  16639. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  16640. v = make(map[float32]int32, xlen)
  16641. changed = true
  16642. }
  16643. var mk float32
  16644. var mv int32
  16645. if containerLen > 0 {
  16646. for j := 0; j < containerLen; j++ {
  16647. mk = float32(dd.DecodeFloat(true))
  16648. mv = int32(dd.DecodeInt(32))
  16649. if v != nil {
  16650. v[mk] = mv
  16651. }
  16652. }
  16653. } else if containerLen < 0 {
  16654. for j := 0; !dd.CheckBreak(); j++ {
  16655. mk = float32(dd.DecodeFloat(true))
  16656. mv = int32(dd.DecodeInt(32))
  16657. if v != nil {
  16658. v[mk] = mv
  16659. }
  16660. }
  16661. dd.ReadEnd()
  16662. }
  16663. return v, changed
  16664. }
  16665. func (f *decFnInfo) fastpathDecMapFloat32Int64R(rv reflect.Value) {
  16666. if rv.CanAddr() {
  16667. vp := rv.Addr().Interface().(*map[float32]int64)
  16668. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  16669. if changed {
  16670. *vp = v
  16671. }
  16672. } else {
  16673. v := rv.Interface().(map[float32]int64)
  16674. fastpathTV.DecMapFloat32Int64V(v, fastpathCheckNilFalse, false, f.d)
  16675. }
  16676. }
  16677. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, checkNil bool, d *Decoder) {
  16678. v, changed := f.DecMapFloat32Int64V(*vp, checkNil, true, d)
  16679. if changed {
  16680. *vp = v
  16681. }
  16682. }
  16683. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, checkNil bool, canChange bool,
  16684. d *Decoder) (_ map[float32]int64, changed bool) {
  16685. dd := d.d
  16686. if checkNil && dd.TryDecodeAsNil() {
  16687. if v != nil {
  16688. changed = true
  16689. }
  16690. return nil, changed
  16691. }
  16692. containerLen := dd.ReadMapStart()
  16693. if canChange && v == nil {
  16694. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  16695. v = make(map[float32]int64, xlen)
  16696. changed = true
  16697. }
  16698. var mk float32
  16699. var mv int64
  16700. if containerLen > 0 {
  16701. for j := 0; j < containerLen; j++ {
  16702. mk = float32(dd.DecodeFloat(true))
  16703. mv = dd.DecodeInt(64)
  16704. if v != nil {
  16705. v[mk] = mv
  16706. }
  16707. }
  16708. } else if containerLen < 0 {
  16709. for j := 0; !dd.CheckBreak(); j++ {
  16710. mk = float32(dd.DecodeFloat(true))
  16711. mv = dd.DecodeInt(64)
  16712. if v != nil {
  16713. v[mk] = mv
  16714. }
  16715. }
  16716. dd.ReadEnd()
  16717. }
  16718. return v, changed
  16719. }
  16720. func (f *decFnInfo) fastpathDecMapFloat32Float32R(rv reflect.Value) {
  16721. if rv.CanAddr() {
  16722. vp := rv.Addr().Interface().(*map[float32]float32)
  16723. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  16724. if changed {
  16725. *vp = v
  16726. }
  16727. } else {
  16728. v := rv.Interface().(map[float32]float32)
  16729. fastpathTV.DecMapFloat32Float32V(v, fastpathCheckNilFalse, false, f.d)
  16730. }
  16731. }
  16732. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, checkNil bool, d *Decoder) {
  16733. v, changed := f.DecMapFloat32Float32V(*vp, checkNil, true, d)
  16734. if changed {
  16735. *vp = v
  16736. }
  16737. }
  16738. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, checkNil bool, canChange bool,
  16739. d *Decoder) (_ map[float32]float32, changed bool) {
  16740. dd := d.d
  16741. if checkNil && dd.TryDecodeAsNil() {
  16742. if v != nil {
  16743. changed = true
  16744. }
  16745. return nil, changed
  16746. }
  16747. containerLen := dd.ReadMapStart()
  16748. if canChange && v == nil {
  16749. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  16750. v = make(map[float32]float32, xlen)
  16751. changed = true
  16752. }
  16753. var mk float32
  16754. var mv float32
  16755. if containerLen > 0 {
  16756. for j := 0; j < containerLen; j++ {
  16757. mk = float32(dd.DecodeFloat(true))
  16758. mv = float32(dd.DecodeFloat(true))
  16759. if v != nil {
  16760. v[mk] = mv
  16761. }
  16762. }
  16763. } else if containerLen < 0 {
  16764. for j := 0; !dd.CheckBreak(); j++ {
  16765. mk = float32(dd.DecodeFloat(true))
  16766. mv = float32(dd.DecodeFloat(true))
  16767. if v != nil {
  16768. v[mk] = mv
  16769. }
  16770. }
  16771. dd.ReadEnd()
  16772. }
  16773. return v, changed
  16774. }
  16775. func (f *decFnInfo) fastpathDecMapFloat32Float64R(rv reflect.Value) {
  16776. if rv.CanAddr() {
  16777. vp := rv.Addr().Interface().(*map[float32]float64)
  16778. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  16779. if changed {
  16780. *vp = v
  16781. }
  16782. } else {
  16783. v := rv.Interface().(map[float32]float64)
  16784. fastpathTV.DecMapFloat32Float64V(v, fastpathCheckNilFalse, false, f.d)
  16785. }
  16786. }
  16787. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, checkNil bool, d *Decoder) {
  16788. v, changed := f.DecMapFloat32Float64V(*vp, checkNil, true, d)
  16789. if changed {
  16790. *vp = v
  16791. }
  16792. }
  16793. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, checkNil bool, canChange bool,
  16794. d *Decoder) (_ map[float32]float64, changed bool) {
  16795. dd := d.d
  16796. if checkNil && dd.TryDecodeAsNil() {
  16797. if v != nil {
  16798. changed = true
  16799. }
  16800. return nil, changed
  16801. }
  16802. containerLen := dd.ReadMapStart()
  16803. if canChange && v == nil {
  16804. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  16805. v = make(map[float32]float64, xlen)
  16806. changed = true
  16807. }
  16808. var mk float32
  16809. var mv float64
  16810. if containerLen > 0 {
  16811. for j := 0; j < containerLen; j++ {
  16812. mk = float32(dd.DecodeFloat(true))
  16813. mv = dd.DecodeFloat(false)
  16814. if v != nil {
  16815. v[mk] = mv
  16816. }
  16817. }
  16818. } else if containerLen < 0 {
  16819. for j := 0; !dd.CheckBreak(); j++ {
  16820. mk = float32(dd.DecodeFloat(true))
  16821. mv = dd.DecodeFloat(false)
  16822. if v != nil {
  16823. v[mk] = mv
  16824. }
  16825. }
  16826. dd.ReadEnd()
  16827. }
  16828. return v, changed
  16829. }
  16830. func (f *decFnInfo) fastpathDecMapFloat32BoolR(rv reflect.Value) {
  16831. if rv.CanAddr() {
  16832. vp := rv.Addr().Interface().(*map[float32]bool)
  16833. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  16834. if changed {
  16835. *vp = v
  16836. }
  16837. } else {
  16838. v := rv.Interface().(map[float32]bool)
  16839. fastpathTV.DecMapFloat32BoolV(v, fastpathCheckNilFalse, false, f.d)
  16840. }
  16841. }
  16842. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, checkNil bool, d *Decoder) {
  16843. v, changed := f.DecMapFloat32BoolV(*vp, checkNil, true, d)
  16844. if changed {
  16845. *vp = v
  16846. }
  16847. }
  16848. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, checkNil bool, canChange bool,
  16849. d *Decoder) (_ map[float32]bool, changed bool) {
  16850. dd := d.d
  16851. if checkNil && dd.TryDecodeAsNil() {
  16852. if v != nil {
  16853. changed = true
  16854. }
  16855. return nil, changed
  16856. }
  16857. containerLen := dd.ReadMapStart()
  16858. if canChange && v == nil {
  16859. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  16860. v = make(map[float32]bool, xlen)
  16861. changed = true
  16862. }
  16863. var mk float32
  16864. var mv bool
  16865. if containerLen > 0 {
  16866. for j := 0; j < containerLen; j++ {
  16867. mk = float32(dd.DecodeFloat(true))
  16868. mv = dd.DecodeBool()
  16869. if v != nil {
  16870. v[mk] = mv
  16871. }
  16872. }
  16873. } else if containerLen < 0 {
  16874. for j := 0; !dd.CheckBreak(); j++ {
  16875. mk = float32(dd.DecodeFloat(true))
  16876. mv = dd.DecodeBool()
  16877. if v != nil {
  16878. v[mk] = mv
  16879. }
  16880. }
  16881. dd.ReadEnd()
  16882. }
  16883. return v, changed
  16884. }
  16885. func (f *decFnInfo) fastpathDecMapFloat64IntfR(rv reflect.Value) {
  16886. if rv.CanAddr() {
  16887. vp := rv.Addr().Interface().(*map[float64]interface{})
  16888. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  16889. if changed {
  16890. *vp = v
  16891. }
  16892. } else {
  16893. v := rv.Interface().(map[float64]interface{})
  16894. fastpathTV.DecMapFloat64IntfV(v, fastpathCheckNilFalse, false, f.d)
  16895. }
  16896. }
  16897. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, checkNil bool, d *Decoder) {
  16898. v, changed := f.DecMapFloat64IntfV(*vp, checkNil, true, d)
  16899. if changed {
  16900. *vp = v
  16901. }
  16902. }
  16903. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, checkNil bool, canChange bool,
  16904. d *Decoder) (_ map[float64]interface{}, changed bool) {
  16905. dd := d.d
  16906. if checkNil && dd.TryDecodeAsNil() {
  16907. if v != nil {
  16908. changed = true
  16909. }
  16910. return nil, changed
  16911. }
  16912. containerLen := dd.ReadMapStart()
  16913. if canChange && v == nil {
  16914. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16915. v = make(map[float64]interface{}, xlen)
  16916. changed = true
  16917. }
  16918. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  16919. var mk float64
  16920. var mv interface{}
  16921. if containerLen > 0 {
  16922. for j := 0; j < containerLen; j++ {
  16923. mk = dd.DecodeFloat(false)
  16924. if mapGet {
  16925. mv = v[mk]
  16926. } else {
  16927. mv = nil
  16928. }
  16929. d.decode(&mv)
  16930. if v != nil {
  16931. v[mk] = mv
  16932. }
  16933. }
  16934. } else if containerLen < 0 {
  16935. for j := 0; !dd.CheckBreak(); j++ {
  16936. mk = dd.DecodeFloat(false)
  16937. if mapGet {
  16938. mv = v[mk]
  16939. } else {
  16940. mv = nil
  16941. }
  16942. d.decode(&mv)
  16943. if v != nil {
  16944. v[mk] = mv
  16945. }
  16946. }
  16947. dd.ReadEnd()
  16948. }
  16949. return v, changed
  16950. }
  16951. func (f *decFnInfo) fastpathDecMapFloat64StringR(rv reflect.Value) {
  16952. if rv.CanAddr() {
  16953. vp := rv.Addr().Interface().(*map[float64]string)
  16954. v, changed := fastpathTV.DecMapFloat64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  16955. if changed {
  16956. *vp = v
  16957. }
  16958. } else {
  16959. v := rv.Interface().(map[float64]string)
  16960. fastpathTV.DecMapFloat64StringV(v, fastpathCheckNilFalse, false, f.d)
  16961. }
  16962. }
  16963. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, checkNil bool, d *Decoder) {
  16964. v, changed := f.DecMapFloat64StringV(*vp, checkNil, true, d)
  16965. if changed {
  16966. *vp = v
  16967. }
  16968. }
  16969. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, checkNil bool, canChange bool,
  16970. d *Decoder) (_ map[float64]string, changed bool) {
  16971. dd := d.d
  16972. if checkNil && dd.TryDecodeAsNil() {
  16973. if v != nil {
  16974. changed = true
  16975. }
  16976. return nil, changed
  16977. }
  16978. containerLen := dd.ReadMapStart()
  16979. if canChange && v == nil {
  16980. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  16981. v = make(map[float64]string, xlen)
  16982. changed = true
  16983. }
  16984. var mk float64
  16985. var mv string
  16986. if containerLen > 0 {
  16987. for j := 0; j < containerLen; j++ {
  16988. mk = dd.DecodeFloat(false)
  16989. mv = dd.DecodeString()
  16990. if v != nil {
  16991. v[mk] = mv
  16992. }
  16993. }
  16994. } else if containerLen < 0 {
  16995. for j := 0; !dd.CheckBreak(); j++ {
  16996. mk = dd.DecodeFloat(false)
  16997. mv = dd.DecodeString()
  16998. if v != nil {
  16999. v[mk] = mv
  17000. }
  17001. }
  17002. dd.ReadEnd()
  17003. }
  17004. return v, changed
  17005. }
  17006. func (f *decFnInfo) fastpathDecMapFloat64UintR(rv reflect.Value) {
  17007. if rv.CanAddr() {
  17008. vp := rv.Addr().Interface().(*map[float64]uint)
  17009. v, changed := fastpathTV.DecMapFloat64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  17010. if changed {
  17011. *vp = v
  17012. }
  17013. } else {
  17014. v := rv.Interface().(map[float64]uint)
  17015. fastpathTV.DecMapFloat64UintV(v, fastpathCheckNilFalse, false, f.d)
  17016. }
  17017. }
  17018. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, checkNil bool, d *Decoder) {
  17019. v, changed := f.DecMapFloat64UintV(*vp, checkNil, true, d)
  17020. if changed {
  17021. *vp = v
  17022. }
  17023. }
  17024. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, checkNil bool, canChange bool,
  17025. d *Decoder) (_ map[float64]uint, changed bool) {
  17026. dd := d.d
  17027. if checkNil && dd.TryDecodeAsNil() {
  17028. if v != nil {
  17029. changed = true
  17030. }
  17031. return nil, changed
  17032. }
  17033. containerLen := dd.ReadMapStart()
  17034. if canChange && v == nil {
  17035. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  17036. v = make(map[float64]uint, xlen)
  17037. changed = true
  17038. }
  17039. var mk float64
  17040. var mv uint
  17041. if containerLen > 0 {
  17042. for j := 0; j < containerLen; j++ {
  17043. mk = dd.DecodeFloat(false)
  17044. mv = uint(dd.DecodeUint(uintBitsize))
  17045. if v != nil {
  17046. v[mk] = mv
  17047. }
  17048. }
  17049. } else if containerLen < 0 {
  17050. for j := 0; !dd.CheckBreak(); j++ {
  17051. mk = dd.DecodeFloat(false)
  17052. mv = uint(dd.DecodeUint(uintBitsize))
  17053. if v != nil {
  17054. v[mk] = mv
  17055. }
  17056. }
  17057. dd.ReadEnd()
  17058. }
  17059. return v, changed
  17060. }
  17061. func (f *decFnInfo) fastpathDecMapFloat64Uint8R(rv reflect.Value) {
  17062. if rv.CanAddr() {
  17063. vp := rv.Addr().Interface().(*map[float64]uint8)
  17064. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  17065. if changed {
  17066. *vp = v
  17067. }
  17068. } else {
  17069. v := rv.Interface().(map[float64]uint8)
  17070. fastpathTV.DecMapFloat64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  17071. }
  17072. }
  17073. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, checkNil bool, d *Decoder) {
  17074. v, changed := f.DecMapFloat64Uint8V(*vp, checkNil, true, d)
  17075. if changed {
  17076. *vp = v
  17077. }
  17078. }
  17079. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, checkNil bool, canChange bool,
  17080. d *Decoder) (_ map[float64]uint8, changed bool) {
  17081. dd := d.d
  17082. if checkNil && dd.TryDecodeAsNil() {
  17083. if v != nil {
  17084. changed = true
  17085. }
  17086. return nil, changed
  17087. }
  17088. containerLen := dd.ReadMapStart()
  17089. if canChange && v == nil {
  17090. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  17091. v = make(map[float64]uint8, xlen)
  17092. changed = true
  17093. }
  17094. var mk float64
  17095. var mv uint8
  17096. if containerLen > 0 {
  17097. for j := 0; j < containerLen; j++ {
  17098. mk = dd.DecodeFloat(false)
  17099. mv = uint8(dd.DecodeUint(8))
  17100. if v != nil {
  17101. v[mk] = mv
  17102. }
  17103. }
  17104. } else if containerLen < 0 {
  17105. for j := 0; !dd.CheckBreak(); j++ {
  17106. mk = dd.DecodeFloat(false)
  17107. mv = uint8(dd.DecodeUint(8))
  17108. if v != nil {
  17109. v[mk] = mv
  17110. }
  17111. }
  17112. dd.ReadEnd()
  17113. }
  17114. return v, changed
  17115. }
  17116. func (f *decFnInfo) fastpathDecMapFloat64Uint16R(rv reflect.Value) {
  17117. if rv.CanAddr() {
  17118. vp := rv.Addr().Interface().(*map[float64]uint16)
  17119. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  17120. if changed {
  17121. *vp = v
  17122. }
  17123. } else {
  17124. v := rv.Interface().(map[float64]uint16)
  17125. fastpathTV.DecMapFloat64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  17126. }
  17127. }
  17128. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, checkNil bool, d *Decoder) {
  17129. v, changed := f.DecMapFloat64Uint16V(*vp, checkNil, true, d)
  17130. if changed {
  17131. *vp = v
  17132. }
  17133. }
  17134. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, checkNil bool, canChange bool,
  17135. d *Decoder) (_ map[float64]uint16, changed bool) {
  17136. dd := d.d
  17137. if checkNil && dd.TryDecodeAsNil() {
  17138. if v != nil {
  17139. changed = true
  17140. }
  17141. return nil, changed
  17142. }
  17143. containerLen := dd.ReadMapStart()
  17144. if canChange && v == nil {
  17145. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  17146. v = make(map[float64]uint16, xlen)
  17147. changed = true
  17148. }
  17149. var mk float64
  17150. var mv uint16
  17151. if containerLen > 0 {
  17152. for j := 0; j < containerLen; j++ {
  17153. mk = dd.DecodeFloat(false)
  17154. mv = uint16(dd.DecodeUint(16))
  17155. if v != nil {
  17156. v[mk] = mv
  17157. }
  17158. }
  17159. } else if containerLen < 0 {
  17160. for j := 0; !dd.CheckBreak(); j++ {
  17161. mk = dd.DecodeFloat(false)
  17162. mv = uint16(dd.DecodeUint(16))
  17163. if v != nil {
  17164. v[mk] = mv
  17165. }
  17166. }
  17167. dd.ReadEnd()
  17168. }
  17169. return v, changed
  17170. }
  17171. func (f *decFnInfo) fastpathDecMapFloat64Uint32R(rv reflect.Value) {
  17172. if rv.CanAddr() {
  17173. vp := rv.Addr().Interface().(*map[float64]uint32)
  17174. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  17175. if changed {
  17176. *vp = v
  17177. }
  17178. } else {
  17179. v := rv.Interface().(map[float64]uint32)
  17180. fastpathTV.DecMapFloat64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  17181. }
  17182. }
  17183. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, checkNil bool, d *Decoder) {
  17184. v, changed := f.DecMapFloat64Uint32V(*vp, checkNil, true, d)
  17185. if changed {
  17186. *vp = v
  17187. }
  17188. }
  17189. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, checkNil bool, canChange bool,
  17190. d *Decoder) (_ map[float64]uint32, changed bool) {
  17191. dd := d.d
  17192. if checkNil && dd.TryDecodeAsNil() {
  17193. if v != nil {
  17194. changed = true
  17195. }
  17196. return nil, changed
  17197. }
  17198. containerLen := dd.ReadMapStart()
  17199. if canChange && v == nil {
  17200. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  17201. v = make(map[float64]uint32, xlen)
  17202. changed = true
  17203. }
  17204. var mk float64
  17205. var mv uint32
  17206. if containerLen > 0 {
  17207. for j := 0; j < containerLen; j++ {
  17208. mk = dd.DecodeFloat(false)
  17209. mv = uint32(dd.DecodeUint(32))
  17210. if v != nil {
  17211. v[mk] = mv
  17212. }
  17213. }
  17214. } else if containerLen < 0 {
  17215. for j := 0; !dd.CheckBreak(); j++ {
  17216. mk = dd.DecodeFloat(false)
  17217. mv = uint32(dd.DecodeUint(32))
  17218. if v != nil {
  17219. v[mk] = mv
  17220. }
  17221. }
  17222. dd.ReadEnd()
  17223. }
  17224. return v, changed
  17225. }
  17226. func (f *decFnInfo) fastpathDecMapFloat64Uint64R(rv reflect.Value) {
  17227. if rv.CanAddr() {
  17228. vp := rv.Addr().Interface().(*map[float64]uint64)
  17229. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  17230. if changed {
  17231. *vp = v
  17232. }
  17233. } else {
  17234. v := rv.Interface().(map[float64]uint64)
  17235. fastpathTV.DecMapFloat64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  17236. }
  17237. }
  17238. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, checkNil bool, d *Decoder) {
  17239. v, changed := f.DecMapFloat64Uint64V(*vp, checkNil, true, d)
  17240. if changed {
  17241. *vp = v
  17242. }
  17243. }
  17244. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, checkNil bool, canChange bool,
  17245. d *Decoder) (_ map[float64]uint64, changed bool) {
  17246. dd := d.d
  17247. if checkNil && dd.TryDecodeAsNil() {
  17248. if v != nil {
  17249. changed = true
  17250. }
  17251. return nil, changed
  17252. }
  17253. containerLen := dd.ReadMapStart()
  17254. if canChange && v == nil {
  17255. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  17256. v = make(map[float64]uint64, xlen)
  17257. changed = true
  17258. }
  17259. var mk float64
  17260. var mv uint64
  17261. if containerLen > 0 {
  17262. for j := 0; j < containerLen; j++ {
  17263. mk = dd.DecodeFloat(false)
  17264. mv = dd.DecodeUint(64)
  17265. if v != nil {
  17266. v[mk] = mv
  17267. }
  17268. }
  17269. } else if containerLen < 0 {
  17270. for j := 0; !dd.CheckBreak(); j++ {
  17271. mk = dd.DecodeFloat(false)
  17272. mv = dd.DecodeUint(64)
  17273. if v != nil {
  17274. v[mk] = mv
  17275. }
  17276. }
  17277. dd.ReadEnd()
  17278. }
  17279. return v, changed
  17280. }
  17281. func (f *decFnInfo) fastpathDecMapFloat64UintptrR(rv reflect.Value) {
  17282. if rv.CanAddr() {
  17283. vp := rv.Addr().Interface().(*map[float64]uintptr)
  17284. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  17285. if changed {
  17286. *vp = v
  17287. }
  17288. } else {
  17289. v := rv.Interface().(map[float64]uintptr)
  17290. fastpathTV.DecMapFloat64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  17291. }
  17292. }
  17293. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, checkNil bool, d *Decoder) {
  17294. v, changed := f.DecMapFloat64UintptrV(*vp, checkNil, true, d)
  17295. if changed {
  17296. *vp = v
  17297. }
  17298. }
  17299. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, checkNil bool, canChange bool,
  17300. d *Decoder) (_ map[float64]uintptr, changed bool) {
  17301. dd := d.d
  17302. if checkNil && dd.TryDecodeAsNil() {
  17303. if v != nil {
  17304. changed = true
  17305. }
  17306. return nil, changed
  17307. }
  17308. containerLen := dd.ReadMapStart()
  17309. if canChange && v == nil {
  17310. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  17311. v = make(map[float64]uintptr, xlen)
  17312. changed = true
  17313. }
  17314. var mk float64
  17315. var mv uintptr
  17316. if containerLen > 0 {
  17317. for j := 0; j < containerLen; j++ {
  17318. mk = dd.DecodeFloat(false)
  17319. mv = uintptr(dd.DecodeUint(uintBitsize))
  17320. if v != nil {
  17321. v[mk] = mv
  17322. }
  17323. }
  17324. } else if containerLen < 0 {
  17325. for j := 0; !dd.CheckBreak(); j++ {
  17326. mk = dd.DecodeFloat(false)
  17327. mv = uintptr(dd.DecodeUint(uintBitsize))
  17328. if v != nil {
  17329. v[mk] = mv
  17330. }
  17331. }
  17332. dd.ReadEnd()
  17333. }
  17334. return v, changed
  17335. }
  17336. func (f *decFnInfo) fastpathDecMapFloat64IntR(rv reflect.Value) {
  17337. if rv.CanAddr() {
  17338. vp := rv.Addr().Interface().(*map[float64]int)
  17339. v, changed := fastpathTV.DecMapFloat64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  17340. if changed {
  17341. *vp = v
  17342. }
  17343. } else {
  17344. v := rv.Interface().(map[float64]int)
  17345. fastpathTV.DecMapFloat64IntV(v, fastpathCheckNilFalse, false, f.d)
  17346. }
  17347. }
  17348. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, checkNil bool, d *Decoder) {
  17349. v, changed := f.DecMapFloat64IntV(*vp, checkNil, true, d)
  17350. if changed {
  17351. *vp = v
  17352. }
  17353. }
  17354. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, checkNil bool, canChange bool,
  17355. d *Decoder) (_ map[float64]int, changed bool) {
  17356. dd := d.d
  17357. if checkNil && dd.TryDecodeAsNil() {
  17358. if v != nil {
  17359. changed = true
  17360. }
  17361. return nil, changed
  17362. }
  17363. containerLen := dd.ReadMapStart()
  17364. if canChange && v == nil {
  17365. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  17366. v = make(map[float64]int, xlen)
  17367. changed = true
  17368. }
  17369. var mk float64
  17370. var mv int
  17371. if containerLen > 0 {
  17372. for j := 0; j < containerLen; j++ {
  17373. mk = dd.DecodeFloat(false)
  17374. mv = int(dd.DecodeInt(intBitsize))
  17375. if v != nil {
  17376. v[mk] = mv
  17377. }
  17378. }
  17379. } else if containerLen < 0 {
  17380. for j := 0; !dd.CheckBreak(); j++ {
  17381. mk = dd.DecodeFloat(false)
  17382. mv = int(dd.DecodeInt(intBitsize))
  17383. if v != nil {
  17384. v[mk] = mv
  17385. }
  17386. }
  17387. dd.ReadEnd()
  17388. }
  17389. return v, changed
  17390. }
  17391. func (f *decFnInfo) fastpathDecMapFloat64Int8R(rv reflect.Value) {
  17392. if rv.CanAddr() {
  17393. vp := rv.Addr().Interface().(*map[float64]int8)
  17394. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  17395. if changed {
  17396. *vp = v
  17397. }
  17398. } else {
  17399. v := rv.Interface().(map[float64]int8)
  17400. fastpathTV.DecMapFloat64Int8V(v, fastpathCheckNilFalse, false, f.d)
  17401. }
  17402. }
  17403. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, checkNil bool, d *Decoder) {
  17404. v, changed := f.DecMapFloat64Int8V(*vp, checkNil, true, d)
  17405. if changed {
  17406. *vp = v
  17407. }
  17408. }
  17409. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, checkNil bool, canChange bool,
  17410. d *Decoder) (_ map[float64]int8, changed bool) {
  17411. dd := d.d
  17412. if checkNil && dd.TryDecodeAsNil() {
  17413. if v != nil {
  17414. changed = true
  17415. }
  17416. return nil, changed
  17417. }
  17418. containerLen := dd.ReadMapStart()
  17419. if canChange && v == nil {
  17420. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  17421. v = make(map[float64]int8, xlen)
  17422. changed = true
  17423. }
  17424. var mk float64
  17425. var mv int8
  17426. if containerLen > 0 {
  17427. for j := 0; j < containerLen; j++ {
  17428. mk = dd.DecodeFloat(false)
  17429. mv = int8(dd.DecodeInt(8))
  17430. if v != nil {
  17431. v[mk] = mv
  17432. }
  17433. }
  17434. } else if containerLen < 0 {
  17435. for j := 0; !dd.CheckBreak(); j++ {
  17436. mk = dd.DecodeFloat(false)
  17437. mv = int8(dd.DecodeInt(8))
  17438. if v != nil {
  17439. v[mk] = mv
  17440. }
  17441. }
  17442. dd.ReadEnd()
  17443. }
  17444. return v, changed
  17445. }
  17446. func (f *decFnInfo) fastpathDecMapFloat64Int16R(rv reflect.Value) {
  17447. if rv.CanAddr() {
  17448. vp := rv.Addr().Interface().(*map[float64]int16)
  17449. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  17450. if changed {
  17451. *vp = v
  17452. }
  17453. } else {
  17454. v := rv.Interface().(map[float64]int16)
  17455. fastpathTV.DecMapFloat64Int16V(v, fastpathCheckNilFalse, false, f.d)
  17456. }
  17457. }
  17458. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, checkNil bool, d *Decoder) {
  17459. v, changed := f.DecMapFloat64Int16V(*vp, checkNil, true, d)
  17460. if changed {
  17461. *vp = v
  17462. }
  17463. }
  17464. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, checkNil bool, canChange bool,
  17465. d *Decoder) (_ map[float64]int16, changed bool) {
  17466. dd := d.d
  17467. if checkNil && dd.TryDecodeAsNil() {
  17468. if v != nil {
  17469. changed = true
  17470. }
  17471. return nil, changed
  17472. }
  17473. containerLen := dd.ReadMapStart()
  17474. if canChange && v == nil {
  17475. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  17476. v = make(map[float64]int16, xlen)
  17477. changed = true
  17478. }
  17479. var mk float64
  17480. var mv int16
  17481. if containerLen > 0 {
  17482. for j := 0; j < containerLen; j++ {
  17483. mk = dd.DecodeFloat(false)
  17484. mv = int16(dd.DecodeInt(16))
  17485. if v != nil {
  17486. v[mk] = mv
  17487. }
  17488. }
  17489. } else if containerLen < 0 {
  17490. for j := 0; !dd.CheckBreak(); j++ {
  17491. mk = dd.DecodeFloat(false)
  17492. mv = int16(dd.DecodeInt(16))
  17493. if v != nil {
  17494. v[mk] = mv
  17495. }
  17496. }
  17497. dd.ReadEnd()
  17498. }
  17499. return v, changed
  17500. }
  17501. func (f *decFnInfo) fastpathDecMapFloat64Int32R(rv reflect.Value) {
  17502. if rv.CanAddr() {
  17503. vp := rv.Addr().Interface().(*map[float64]int32)
  17504. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  17505. if changed {
  17506. *vp = v
  17507. }
  17508. } else {
  17509. v := rv.Interface().(map[float64]int32)
  17510. fastpathTV.DecMapFloat64Int32V(v, fastpathCheckNilFalse, false, f.d)
  17511. }
  17512. }
  17513. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, checkNil bool, d *Decoder) {
  17514. v, changed := f.DecMapFloat64Int32V(*vp, checkNil, true, d)
  17515. if changed {
  17516. *vp = v
  17517. }
  17518. }
  17519. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, checkNil bool, canChange bool,
  17520. d *Decoder) (_ map[float64]int32, changed bool) {
  17521. dd := d.d
  17522. if checkNil && dd.TryDecodeAsNil() {
  17523. if v != nil {
  17524. changed = true
  17525. }
  17526. return nil, changed
  17527. }
  17528. containerLen := dd.ReadMapStart()
  17529. if canChange && v == nil {
  17530. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  17531. v = make(map[float64]int32, xlen)
  17532. changed = true
  17533. }
  17534. var mk float64
  17535. var mv int32
  17536. if containerLen > 0 {
  17537. for j := 0; j < containerLen; j++ {
  17538. mk = dd.DecodeFloat(false)
  17539. mv = int32(dd.DecodeInt(32))
  17540. if v != nil {
  17541. v[mk] = mv
  17542. }
  17543. }
  17544. } else if containerLen < 0 {
  17545. for j := 0; !dd.CheckBreak(); j++ {
  17546. mk = dd.DecodeFloat(false)
  17547. mv = int32(dd.DecodeInt(32))
  17548. if v != nil {
  17549. v[mk] = mv
  17550. }
  17551. }
  17552. dd.ReadEnd()
  17553. }
  17554. return v, changed
  17555. }
  17556. func (f *decFnInfo) fastpathDecMapFloat64Int64R(rv reflect.Value) {
  17557. if rv.CanAddr() {
  17558. vp := rv.Addr().Interface().(*map[float64]int64)
  17559. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  17560. if changed {
  17561. *vp = v
  17562. }
  17563. } else {
  17564. v := rv.Interface().(map[float64]int64)
  17565. fastpathTV.DecMapFloat64Int64V(v, fastpathCheckNilFalse, false, f.d)
  17566. }
  17567. }
  17568. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, checkNil bool, d *Decoder) {
  17569. v, changed := f.DecMapFloat64Int64V(*vp, checkNil, true, d)
  17570. if changed {
  17571. *vp = v
  17572. }
  17573. }
  17574. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, checkNil bool, canChange bool,
  17575. d *Decoder) (_ map[float64]int64, changed bool) {
  17576. dd := d.d
  17577. if checkNil && dd.TryDecodeAsNil() {
  17578. if v != nil {
  17579. changed = true
  17580. }
  17581. return nil, changed
  17582. }
  17583. containerLen := dd.ReadMapStart()
  17584. if canChange && v == nil {
  17585. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  17586. v = make(map[float64]int64, xlen)
  17587. changed = true
  17588. }
  17589. var mk float64
  17590. var mv int64
  17591. if containerLen > 0 {
  17592. for j := 0; j < containerLen; j++ {
  17593. mk = dd.DecodeFloat(false)
  17594. mv = dd.DecodeInt(64)
  17595. if v != nil {
  17596. v[mk] = mv
  17597. }
  17598. }
  17599. } else if containerLen < 0 {
  17600. for j := 0; !dd.CheckBreak(); j++ {
  17601. mk = dd.DecodeFloat(false)
  17602. mv = dd.DecodeInt(64)
  17603. if v != nil {
  17604. v[mk] = mv
  17605. }
  17606. }
  17607. dd.ReadEnd()
  17608. }
  17609. return v, changed
  17610. }
  17611. func (f *decFnInfo) fastpathDecMapFloat64Float32R(rv reflect.Value) {
  17612. if rv.CanAddr() {
  17613. vp := rv.Addr().Interface().(*map[float64]float32)
  17614. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  17615. if changed {
  17616. *vp = v
  17617. }
  17618. } else {
  17619. v := rv.Interface().(map[float64]float32)
  17620. fastpathTV.DecMapFloat64Float32V(v, fastpathCheckNilFalse, false, f.d)
  17621. }
  17622. }
  17623. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, checkNil bool, d *Decoder) {
  17624. v, changed := f.DecMapFloat64Float32V(*vp, checkNil, true, d)
  17625. if changed {
  17626. *vp = v
  17627. }
  17628. }
  17629. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, checkNil bool, canChange bool,
  17630. d *Decoder) (_ map[float64]float32, changed bool) {
  17631. dd := d.d
  17632. if checkNil && dd.TryDecodeAsNil() {
  17633. if v != nil {
  17634. changed = true
  17635. }
  17636. return nil, changed
  17637. }
  17638. containerLen := dd.ReadMapStart()
  17639. if canChange && v == nil {
  17640. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  17641. v = make(map[float64]float32, xlen)
  17642. changed = true
  17643. }
  17644. var mk float64
  17645. var mv float32
  17646. if containerLen > 0 {
  17647. for j := 0; j < containerLen; j++ {
  17648. mk = dd.DecodeFloat(false)
  17649. mv = float32(dd.DecodeFloat(true))
  17650. if v != nil {
  17651. v[mk] = mv
  17652. }
  17653. }
  17654. } else if containerLen < 0 {
  17655. for j := 0; !dd.CheckBreak(); j++ {
  17656. mk = dd.DecodeFloat(false)
  17657. mv = float32(dd.DecodeFloat(true))
  17658. if v != nil {
  17659. v[mk] = mv
  17660. }
  17661. }
  17662. dd.ReadEnd()
  17663. }
  17664. return v, changed
  17665. }
  17666. func (f *decFnInfo) fastpathDecMapFloat64Float64R(rv reflect.Value) {
  17667. if rv.CanAddr() {
  17668. vp := rv.Addr().Interface().(*map[float64]float64)
  17669. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  17670. if changed {
  17671. *vp = v
  17672. }
  17673. } else {
  17674. v := rv.Interface().(map[float64]float64)
  17675. fastpathTV.DecMapFloat64Float64V(v, fastpathCheckNilFalse, false, f.d)
  17676. }
  17677. }
  17678. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, checkNil bool, d *Decoder) {
  17679. v, changed := f.DecMapFloat64Float64V(*vp, checkNil, true, d)
  17680. if changed {
  17681. *vp = v
  17682. }
  17683. }
  17684. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, checkNil bool, canChange bool,
  17685. d *Decoder) (_ map[float64]float64, changed bool) {
  17686. dd := d.d
  17687. if checkNil && dd.TryDecodeAsNil() {
  17688. if v != nil {
  17689. changed = true
  17690. }
  17691. return nil, changed
  17692. }
  17693. containerLen := dd.ReadMapStart()
  17694. if canChange && v == nil {
  17695. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  17696. v = make(map[float64]float64, xlen)
  17697. changed = true
  17698. }
  17699. var mk float64
  17700. var mv float64
  17701. if containerLen > 0 {
  17702. for j := 0; j < containerLen; j++ {
  17703. mk = dd.DecodeFloat(false)
  17704. mv = dd.DecodeFloat(false)
  17705. if v != nil {
  17706. v[mk] = mv
  17707. }
  17708. }
  17709. } else if containerLen < 0 {
  17710. for j := 0; !dd.CheckBreak(); j++ {
  17711. mk = dd.DecodeFloat(false)
  17712. mv = dd.DecodeFloat(false)
  17713. if v != nil {
  17714. v[mk] = mv
  17715. }
  17716. }
  17717. dd.ReadEnd()
  17718. }
  17719. return v, changed
  17720. }
  17721. func (f *decFnInfo) fastpathDecMapFloat64BoolR(rv reflect.Value) {
  17722. if rv.CanAddr() {
  17723. vp := rv.Addr().Interface().(*map[float64]bool)
  17724. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  17725. if changed {
  17726. *vp = v
  17727. }
  17728. } else {
  17729. v := rv.Interface().(map[float64]bool)
  17730. fastpathTV.DecMapFloat64BoolV(v, fastpathCheckNilFalse, false, f.d)
  17731. }
  17732. }
  17733. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, checkNil bool, d *Decoder) {
  17734. v, changed := f.DecMapFloat64BoolV(*vp, checkNil, true, d)
  17735. if changed {
  17736. *vp = v
  17737. }
  17738. }
  17739. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, checkNil bool, canChange bool,
  17740. d *Decoder) (_ map[float64]bool, changed bool) {
  17741. dd := d.d
  17742. if checkNil && dd.TryDecodeAsNil() {
  17743. if v != nil {
  17744. changed = true
  17745. }
  17746. return nil, changed
  17747. }
  17748. containerLen := dd.ReadMapStart()
  17749. if canChange && v == nil {
  17750. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  17751. v = make(map[float64]bool, xlen)
  17752. changed = true
  17753. }
  17754. var mk float64
  17755. var mv bool
  17756. if containerLen > 0 {
  17757. for j := 0; j < containerLen; j++ {
  17758. mk = dd.DecodeFloat(false)
  17759. mv = dd.DecodeBool()
  17760. if v != nil {
  17761. v[mk] = mv
  17762. }
  17763. }
  17764. } else if containerLen < 0 {
  17765. for j := 0; !dd.CheckBreak(); j++ {
  17766. mk = dd.DecodeFloat(false)
  17767. mv = dd.DecodeBool()
  17768. if v != nil {
  17769. v[mk] = mv
  17770. }
  17771. }
  17772. dd.ReadEnd()
  17773. }
  17774. return v, changed
  17775. }
  17776. func (f *decFnInfo) fastpathDecMapUintIntfR(rv reflect.Value) {
  17777. if rv.CanAddr() {
  17778. vp := rv.Addr().Interface().(*map[uint]interface{})
  17779. v, changed := fastpathTV.DecMapUintIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  17780. if changed {
  17781. *vp = v
  17782. }
  17783. } else {
  17784. v := rv.Interface().(map[uint]interface{})
  17785. fastpathTV.DecMapUintIntfV(v, fastpathCheckNilFalse, false, f.d)
  17786. }
  17787. }
  17788. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, checkNil bool, d *Decoder) {
  17789. v, changed := f.DecMapUintIntfV(*vp, checkNil, true, d)
  17790. if changed {
  17791. *vp = v
  17792. }
  17793. }
  17794. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, checkNil bool, canChange bool,
  17795. d *Decoder) (_ map[uint]interface{}, changed bool) {
  17796. dd := d.d
  17797. if checkNil && dd.TryDecodeAsNil() {
  17798. if v != nil {
  17799. changed = true
  17800. }
  17801. return nil, changed
  17802. }
  17803. containerLen := dd.ReadMapStart()
  17804. if canChange && v == nil {
  17805. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17806. v = make(map[uint]interface{}, xlen)
  17807. changed = true
  17808. }
  17809. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  17810. var mk uint
  17811. var mv interface{}
  17812. if containerLen > 0 {
  17813. for j := 0; j < containerLen; j++ {
  17814. mk = uint(dd.DecodeUint(uintBitsize))
  17815. if mapGet {
  17816. mv = v[mk]
  17817. } else {
  17818. mv = nil
  17819. }
  17820. d.decode(&mv)
  17821. if v != nil {
  17822. v[mk] = mv
  17823. }
  17824. }
  17825. } else if containerLen < 0 {
  17826. for j := 0; !dd.CheckBreak(); j++ {
  17827. mk = uint(dd.DecodeUint(uintBitsize))
  17828. if mapGet {
  17829. mv = v[mk]
  17830. } else {
  17831. mv = nil
  17832. }
  17833. d.decode(&mv)
  17834. if v != nil {
  17835. v[mk] = mv
  17836. }
  17837. }
  17838. dd.ReadEnd()
  17839. }
  17840. return v, changed
  17841. }
  17842. func (f *decFnInfo) fastpathDecMapUintStringR(rv reflect.Value) {
  17843. if rv.CanAddr() {
  17844. vp := rv.Addr().Interface().(*map[uint]string)
  17845. v, changed := fastpathTV.DecMapUintStringV(*vp, fastpathCheckNilFalse, true, f.d)
  17846. if changed {
  17847. *vp = v
  17848. }
  17849. } else {
  17850. v := rv.Interface().(map[uint]string)
  17851. fastpathTV.DecMapUintStringV(v, fastpathCheckNilFalse, false, f.d)
  17852. }
  17853. }
  17854. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, checkNil bool, d *Decoder) {
  17855. v, changed := f.DecMapUintStringV(*vp, checkNil, true, d)
  17856. if changed {
  17857. *vp = v
  17858. }
  17859. }
  17860. func (_ fastpathT) DecMapUintStringV(v map[uint]string, checkNil bool, canChange bool,
  17861. d *Decoder) (_ map[uint]string, changed bool) {
  17862. dd := d.d
  17863. if checkNil && dd.TryDecodeAsNil() {
  17864. if v != nil {
  17865. changed = true
  17866. }
  17867. return nil, changed
  17868. }
  17869. containerLen := dd.ReadMapStart()
  17870. if canChange && v == nil {
  17871. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  17872. v = make(map[uint]string, xlen)
  17873. changed = true
  17874. }
  17875. var mk uint
  17876. var mv string
  17877. if containerLen > 0 {
  17878. for j := 0; j < containerLen; j++ {
  17879. mk = uint(dd.DecodeUint(uintBitsize))
  17880. mv = dd.DecodeString()
  17881. if v != nil {
  17882. v[mk] = mv
  17883. }
  17884. }
  17885. } else if containerLen < 0 {
  17886. for j := 0; !dd.CheckBreak(); j++ {
  17887. mk = uint(dd.DecodeUint(uintBitsize))
  17888. mv = dd.DecodeString()
  17889. if v != nil {
  17890. v[mk] = mv
  17891. }
  17892. }
  17893. dd.ReadEnd()
  17894. }
  17895. return v, changed
  17896. }
  17897. func (f *decFnInfo) fastpathDecMapUintUintR(rv reflect.Value) {
  17898. if rv.CanAddr() {
  17899. vp := rv.Addr().Interface().(*map[uint]uint)
  17900. v, changed := fastpathTV.DecMapUintUintV(*vp, fastpathCheckNilFalse, true, f.d)
  17901. if changed {
  17902. *vp = v
  17903. }
  17904. } else {
  17905. v := rv.Interface().(map[uint]uint)
  17906. fastpathTV.DecMapUintUintV(v, fastpathCheckNilFalse, false, f.d)
  17907. }
  17908. }
  17909. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, checkNil bool, d *Decoder) {
  17910. v, changed := f.DecMapUintUintV(*vp, checkNil, true, d)
  17911. if changed {
  17912. *vp = v
  17913. }
  17914. }
  17915. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, checkNil bool, canChange bool,
  17916. d *Decoder) (_ map[uint]uint, changed bool) {
  17917. dd := d.d
  17918. if checkNil && dd.TryDecodeAsNil() {
  17919. if v != nil {
  17920. changed = true
  17921. }
  17922. return nil, changed
  17923. }
  17924. containerLen := dd.ReadMapStart()
  17925. if canChange && v == nil {
  17926. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  17927. v = make(map[uint]uint, xlen)
  17928. changed = true
  17929. }
  17930. var mk uint
  17931. var mv uint
  17932. if containerLen > 0 {
  17933. for j := 0; j < containerLen; j++ {
  17934. mk = uint(dd.DecodeUint(uintBitsize))
  17935. mv = uint(dd.DecodeUint(uintBitsize))
  17936. if v != nil {
  17937. v[mk] = mv
  17938. }
  17939. }
  17940. } else if containerLen < 0 {
  17941. for j := 0; !dd.CheckBreak(); j++ {
  17942. mk = uint(dd.DecodeUint(uintBitsize))
  17943. mv = uint(dd.DecodeUint(uintBitsize))
  17944. if v != nil {
  17945. v[mk] = mv
  17946. }
  17947. }
  17948. dd.ReadEnd()
  17949. }
  17950. return v, changed
  17951. }
  17952. func (f *decFnInfo) fastpathDecMapUintUint8R(rv reflect.Value) {
  17953. if rv.CanAddr() {
  17954. vp := rv.Addr().Interface().(*map[uint]uint8)
  17955. v, changed := fastpathTV.DecMapUintUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  17956. if changed {
  17957. *vp = v
  17958. }
  17959. } else {
  17960. v := rv.Interface().(map[uint]uint8)
  17961. fastpathTV.DecMapUintUint8V(v, fastpathCheckNilFalse, false, f.d)
  17962. }
  17963. }
  17964. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, checkNil bool, d *Decoder) {
  17965. v, changed := f.DecMapUintUint8V(*vp, checkNil, true, d)
  17966. if changed {
  17967. *vp = v
  17968. }
  17969. }
  17970. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, checkNil bool, canChange bool,
  17971. d *Decoder) (_ map[uint]uint8, changed bool) {
  17972. dd := d.d
  17973. if checkNil && dd.TryDecodeAsNil() {
  17974. if v != nil {
  17975. changed = true
  17976. }
  17977. return nil, changed
  17978. }
  17979. containerLen := dd.ReadMapStart()
  17980. if canChange && v == nil {
  17981. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  17982. v = make(map[uint]uint8, xlen)
  17983. changed = true
  17984. }
  17985. var mk uint
  17986. var mv uint8
  17987. if containerLen > 0 {
  17988. for j := 0; j < containerLen; j++ {
  17989. mk = uint(dd.DecodeUint(uintBitsize))
  17990. mv = uint8(dd.DecodeUint(8))
  17991. if v != nil {
  17992. v[mk] = mv
  17993. }
  17994. }
  17995. } else if containerLen < 0 {
  17996. for j := 0; !dd.CheckBreak(); j++ {
  17997. mk = uint(dd.DecodeUint(uintBitsize))
  17998. mv = uint8(dd.DecodeUint(8))
  17999. if v != nil {
  18000. v[mk] = mv
  18001. }
  18002. }
  18003. dd.ReadEnd()
  18004. }
  18005. return v, changed
  18006. }
  18007. func (f *decFnInfo) fastpathDecMapUintUint16R(rv reflect.Value) {
  18008. if rv.CanAddr() {
  18009. vp := rv.Addr().Interface().(*map[uint]uint16)
  18010. v, changed := fastpathTV.DecMapUintUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  18011. if changed {
  18012. *vp = v
  18013. }
  18014. } else {
  18015. v := rv.Interface().(map[uint]uint16)
  18016. fastpathTV.DecMapUintUint16V(v, fastpathCheckNilFalse, false, f.d)
  18017. }
  18018. }
  18019. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, checkNil bool, d *Decoder) {
  18020. v, changed := f.DecMapUintUint16V(*vp, checkNil, true, d)
  18021. if changed {
  18022. *vp = v
  18023. }
  18024. }
  18025. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, checkNil bool, canChange bool,
  18026. d *Decoder) (_ map[uint]uint16, changed bool) {
  18027. dd := d.d
  18028. if checkNil && dd.TryDecodeAsNil() {
  18029. if v != nil {
  18030. changed = true
  18031. }
  18032. return nil, changed
  18033. }
  18034. containerLen := dd.ReadMapStart()
  18035. if canChange && v == nil {
  18036. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  18037. v = make(map[uint]uint16, xlen)
  18038. changed = true
  18039. }
  18040. var mk uint
  18041. var mv uint16
  18042. if containerLen > 0 {
  18043. for j := 0; j < containerLen; j++ {
  18044. mk = uint(dd.DecodeUint(uintBitsize))
  18045. mv = uint16(dd.DecodeUint(16))
  18046. if v != nil {
  18047. v[mk] = mv
  18048. }
  18049. }
  18050. } else if containerLen < 0 {
  18051. for j := 0; !dd.CheckBreak(); j++ {
  18052. mk = uint(dd.DecodeUint(uintBitsize))
  18053. mv = uint16(dd.DecodeUint(16))
  18054. if v != nil {
  18055. v[mk] = mv
  18056. }
  18057. }
  18058. dd.ReadEnd()
  18059. }
  18060. return v, changed
  18061. }
  18062. func (f *decFnInfo) fastpathDecMapUintUint32R(rv reflect.Value) {
  18063. if rv.CanAddr() {
  18064. vp := rv.Addr().Interface().(*map[uint]uint32)
  18065. v, changed := fastpathTV.DecMapUintUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  18066. if changed {
  18067. *vp = v
  18068. }
  18069. } else {
  18070. v := rv.Interface().(map[uint]uint32)
  18071. fastpathTV.DecMapUintUint32V(v, fastpathCheckNilFalse, false, f.d)
  18072. }
  18073. }
  18074. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, checkNil bool, d *Decoder) {
  18075. v, changed := f.DecMapUintUint32V(*vp, checkNil, true, d)
  18076. if changed {
  18077. *vp = v
  18078. }
  18079. }
  18080. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, checkNil bool, canChange bool,
  18081. d *Decoder) (_ map[uint]uint32, changed bool) {
  18082. dd := d.d
  18083. if checkNil && dd.TryDecodeAsNil() {
  18084. if v != nil {
  18085. changed = true
  18086. }
  18087. return nil, changed
  18088. }
  18089. containerLen := dd.ReadMapStart()
  18090. if canChange && v == nil {
  18091. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18092. v = make(map[uint]uint32, xlen)
  18093. changed = true
  18094. }
  18095. var mk uint
  18096. var mv uint32
  18097. if containerLen > 0 {
  18098. for j := 0; j < containerLen; j++ {
  18099. mk = uint(dd.DecodeUint(uintBitsize))
  18100. mv = uint32(dd.DecodeUint(32))
  18101. if v != nil {
  18102. v[mk] = mv
  18103. }
  18104. }
  18105. } else if containerLen < 0 {
  18106. for j := 0; !dd.CheckBreak(); j++ {
  18107. mk = uint(dd.DecodeUint(uintBitsize))
  18108. mv = uint32(dd.DecodeUint(32))
  18109. if v != nil {
  18110. v[mk] = mv
  18111. }
  18112. }
  18113. dd.ReadEnd()
  18114. }
  18115. return v, changed
  18116. }
  18117. func (f *decFnInfo) fastpathDecMapUintUint64R(rv reflect.Value) {
  18118. if rv.CanAddr() {
  18119. vp := rv.Addr().Interface().(*map[uint]uint64)
  18120. v, changed := fastpathTV.DecMapUintUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  18121. if changed {
  18122. *vp = v
  18123. }
  18124. } else {
  18125. v := rv.Interface().(map[uint]uint64)
  18126. fastpathTV.DecMapUintUint64V(v, fastpathCheckNilFalse, false, f.d)
  18127. }
  18128. }
  18129. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, checkNil bool, d *Decoder) {
  18130. v, changed := f.DecMapUintUint64V(*vp, checkNil, true, d)
  18131. if changed {
  18132. *vp = v
  18133. }
  18134. }
  18135. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, checkNil bool, canChange bool,
  18136. d *Decoder) (_ map[uint]uint64, changed bool) {
  18137. dd := d.d
  18138. if checkNil && dd.TryDecodeAsNil() {
  18139. if v != nil {
  18140. changed = true
  18141. }
  18142. return nil, changed
  18143. }
  18144. containerLen := dd.ReadMapStart()
  18145. if canChange && v == nil {
  18146. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  18147. v = make(map[uint]uint64, xlen)
  18148. changed = true
  18149. }
  18150. var mk uint
  18151. var mv uint64
  18152. if containerLen > 0 {
  18153. for j := 0; j < containerLen; j++ {
  18154. mk = uint(dd.DecodeUint(uintBitsize))
  18155. mv = dd.DecodeUint(64)
  18156. if v != nil {
  18157. v[mk] = mv
  18158. }
  18159. }
  18160. } else if containerLen < 0 {
  18161. for j := 0; !dd.CheckBreak(); j++ {
  18162. mk = uint(dd.DecodeUint(uintBitsize))
  18163. mv = dd.DecodeUint(64)
  18164. if v != nil {
  18165. v[mk] = mv
  18166. }
  18167. }
  18168. dd.ReadEnd()
  18169. }
  18170. return v, changed
  18171. }
  18172. func (f *decFnInfo) fastpathDecMapUintUintptrR(rv reflect.Value) {
  18173. if rv.CanAddr() {
  18174. vp := rv.Addr().Interface().(*map[uint]uintptr)
  18175. v, changed := fastpathTV.DecMapUintUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  18176. if changed {
  18177. *vp = v
  18178. }
  18179. } else {
  18180. v := rv.Interface().(map[uint]uintptr)
  18181. fastpathTV.DecMapUintUintptrV(v, fastpathCheckNilFalse, false, f.d)
  18182. }
  18183. }
  18184. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, checkNil bool, d *Decoder) {
  18185. v, changed := f.DecMapUintUintptrV(*vp, checkNil, true, d)
  18186. if changed {
  18187. *vp = v
  18188. }
  18189. }
  18190. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, checkNil bool, canChange bool,
  18191. d *Decoder) (_ map[uint]uintptr, changed bool) {
  18192. dd := d.d
  18193. if checkNil && dd.TryDecodeAsNil() {
  18194. if v != nil {
  18195. changed = true
  18196. }
  18197. return nil, changed
  18198. }
  18199. containerLen := dd.ReadMapStart()
  18200. if canChange && v == nil {
  18201. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  18202. v = make(map[uint]uintptr, xlen)
  18203. changed = true
  18204. }
  18205. var mk uint
  18206. var mv uintptr
  18207. if containerLen > 0 {
  18208. for j := 0; j < containerLen; j++ {
  18209. mk = uint(dd.DecodeUint(uintBitsize))
  18210. mv = uintptr(dd.DecodeUint(uintBitsize))
  18211. if v != nil {
  18212. v[mk] = mv
  18213. }
  18214. }
  18215. } else if containerLen < 0 {
  18216. for j := 0; !dd.CheckBreak(); j++ {
  18217. mk = uint(dd.DecodeUint(uintBitsize))
  18218. mv = uintptr(dd.DecodeUint(uintBitsize))
  18219. if v != nil {
  18220. v[mk] = mv
  18221. }
  18222. }
  18223. dd.ReadEnd()
  18224. }
  18225. return v, changed
  18226. }
  18227. func (f *decFnInfo) fastpathDecMapUintIntR(rv reflect.Value) {
  18228. if rv.CanAddr() {
  18229. vp := rv.Addr().Interface().(*map[uint]int)
  18230. v, changed := fastpathTV.DecMapUintIntV(*vp, fastpathCheckNilFalse, true, f.d)
  18231. if changed {
  18232. *vp = v
  18233. }
  18234. } else {
  18235. v := rv.Interface().(map[uint]int)
  18236. fastpathTV.DecMapUintIntV(v, fastpathCheckNilFalse, false, f.d)
  18237. }
  18238. }
  18239. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, checkNil bool, d *Decoder) {
  18240. v, changed := f.DecMapUintIntV(*vp, checkNil, true, d)
  18241. if changed {
  18242. *vp = v
  18243. }
  18244. }
  18245. func (_ fastpathT) DecMapUintIntV(v map[uint]int, checkNil bool, canChange bool,
  18246. d *Decoder) (_ map[uint]int, changed bool) {
  18247. dd := d.d
  18248. if checkNil && dd.TryDecodeAsNil() {
  18249. if v != nil {
  18250. changed = true
  18251. }
  18252. return nil, changed
  18253. }
  18254. containerLen := dd.ReadMapStart()
  18255. if canChange && v == nil {
  18256. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  18257. v = make(map[uint]int, xlen)
  18258. changed = true
  18259. }
  18260. var mk uint
  18261. var mv int
  18262. if containerLen > 0 {
  18263. for j := 0; j < containerLen; j++ {
  18264. mk = uint(dd.DecodeUint(uintBitsize))
  18265. mv = int(dd.DecodeInt(intBitsize))
  18266. if v != nil {
  18267. v[mk] = mv
  18268. }
  18269. }
  18270. } else if containerLen < 0 {
  18271. for j := 0; !dd.CheckBreak(); j++ {
  18272. mk = uint(dd.DecodeUint(uintBitsize))
  18273. mv = int(dd.DecodeInt(intBitsize))
  18274. if v != nil {
  18275. v[mk] = mv
  18276. }
  18277. }
  18278. dd.ReadEnd()
  18279. }
  18280. return v, changed
  18281. }
  18282. func (f *decFnInfo) fastpathDecMapUintInt8R(rv reflect.Value) {
  18283. if rv.CanAddr() {
  18284. vp := rv.Addr().Interface().(*map[uint]int8)
  18285. v, changed := fastpathTV.DecMapUintInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  18286. if changed {
  18287. *vp = v
  18288. }
  18289. } else {
  18290. v := rv.Interface().(map[uint]int8)
  18291. fastpathTV.DecMapUintInt8V(v, fastpathCheckNilFalse, false, f.d)
  18292. }
  18293. }
  18294. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, checkNil bool, d *Decoder) {
  18295. v, changed := f.DecMapUintInt8V(*vp, checkNil, true, d)
  18296. if changed {
  18297. *vp = v
  18298. }
  18299. }
  18300. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, checkNil bool, canChange bool,
  18301. d *Decoder) (_ map[uint]int8, changed bool) {
  18302. dd := d.d
  18303. if checkNil && dd.TryDecodeAsNil() {
  18304. if v != nil {
  18305. changed = true
  18306. }
  18307. return nil, changed
  18308. }
  18309. containerLen := dd.ReadMapStart()
  18310. if canChange && v == nil {
  18311. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  18312. v = make(map[uint]int8, xlen)
  18313. changed = true
  18314. }
  18315. var mk uint
  18316. var mv int8
  18317. if containerLen > 0 {
  18318. for j := 0; j < containerLen; j++ {
  18319. mk = uint(dd.DecodeUint(uintBitsize))
  18320. mv = int8(dd.DecodeInt(8))
  18321. if v != nil {
  18322. v[mk] = mv
  18323. }
  18324. }
  18325. } else if containerLen < 0 {
  18326. for j := 0; !dd.CheckBreak(); j++ {
  18327. mk = uint(dd.DecodeUint(uintBitsize))
  18328. mv = int8(dd.DecodeInt(8))
  18329. if v != nil {
  18330. v[mk] = mv
  18331. }
  18332. }
  18333. dd.ReadEnd()
  18334. }
  18335. return v, changed
  18336. }
  18337. func (f *decFnInfo) fastpathDecMapUintInt16R(rv reflect.Value) {
  18338. if rv.CanAddr() {
  18339. vp := rv.Addr().Interface().(*map[uint]int16)
  18340. v, changed := fastpathTV.DecMapUintInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  18341. if changed {
  18342. *vp = v
  18343. }
  18344. } else {
  18345. v := rv.Interface().(map[uint]int16)
  18346. fastpathTV.DecMapUintInt16V(v, fastpathCheckNilFalse, false, f.d)
  18347. }
  18348. }
  18349. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, checkNil bool, d *Decoder) {
  18350. v, changed := f.DecMapUintInt16V(*vp, checkNil, true, d)
  18351. if changed {
  18352. *vp = v
  18353. }
  18354. }
  18355. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, checkNil bool, canChange bool,
  18356. d *Decoder) (_ map[uint]int16, changed bool) {
  18357. dd := d.d
  18358. if checkNil && dd.TryDecodeAsNil() {
  18359. if v != nil {
  18360. changed = true
  18361. }
  18362. return nil, changed
  18363. }
  18364. containerLen := dd.ReadMapStart()
  18365. if canChange && v == nil {
  18366. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  18367. v = make(map[uint]int16, xlen)
  18368. changed = true
  18369. }
  18370. var mk uint
  18371. var mv int16
  18372. if containerLen > 0 {
  18373. for j := 0; j < containerLen; j++ {
  18374. mk = uint(dd.DecodeUint(uintBitsize))
  18375. mv = int16(dd.DecodeInt(16))
  18376. if v != nil {
  18377. v[mk] = mv
  18378. }
  18379. }
  18380. } else if containerLen < 0 {
  18381. for j := 0; !dd.CheckBreak(); j++ {
  18382. mk = uint(dd.DecodeUint(uintBitsize))
  18383. mv = int16(dd.DecodeInt(16))
  18384. if v != nil {
  18385. v[mk] = mv
  18386. }
  18387. }
  18388. dd.ReadEnd()
  18389. }
  18390. return v, changed
  18391. }
  18392. func (f *decFnInfo) fastpathDecMapUintInt32R(rv reflect.Value) {
  18393. if rv.CanAddr() {
  18394. vp := rv.Addr().Interface().(*map[uint]int32)
  18395. v, changed := fastpathTV.DecMapUintInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  18396. if changed {
  18397. *vp = v
  18398. }
  18399. } else {
  18400. v := rv.Interface().(map[uint]int32)
  18401. fastpathTV.DecMapUintInt32V(v, fastpathCheckNilFalse, false, f.d)
  18402. }
  18403. }
  18404. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, checkNil bool, d *Decoder) {
  18405. v, changed := f.DecMapUintInt32V(*vp, checkNil, true, d)
  18406. if changed {
  18407. *vp = v
  18408. }
  18409. }
  18410. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, checkNil bool, canChange bool,
  18411. d *Decoder) (_ map[uint]int32, changed bool) {
  18412. dd := d.d
  18413. if checkNil && dd.TryDecodeAsNil() {
  18414. if v != nil {
  18415. changed = true
  18416. }
  18417. return nil, changed
  18418. }
  18419. containerLen := dd.ReadMapStart()
  18420. if canChange && v == nil {
  18421. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18422. v = make(map[uint]int32, xlen)
  18423. changed = true
  18424. }
  18425. var mk uint
  18426. var mv int32
  18427. if containerLen > 0 {
  18428. for j := 0; j < containerLen; j++ {
  18429. mk = uint(dd.DecodeUint(uintBitsize))
  18430. mv = int32(dd.DecodeInt(32))
  18431. if v != nil {
  18432. v[mk] = mv
  18433. }
  18434. }
  18435. } else if containerLen < 0 {
  18436. for j := 0; !dd.CheckBreak(); j++ {
  18437. mk = uint(dd.DecodeUint(uintBitsize))
  18438. mv = int32(dd.DecodeInt(32))
  18439. if v != nil {
  18440. v[mk] = mv
  18441. }
  18442. }
  18443. dd.ReadEnd()
  18444. }
  18445. return v, changed
  18446. }
  18447. func (f *decFnInfo) fastpathDecMapUintInt64R(rv reflect.Value) {
  18448. if rv.CanAddr() {
  18449. vp := rv.Addr().Interface().(*map[uint]int64)
  18450. v, changed := fastpathTV.DecMapUintInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  18451. if changed {
  18452. *vp = v
  18453. }
  18454. } else {
  18455. v := rv.Interface().(map[uint]int64)
  18456. fastpathTV.DecMapUintInt64V(v, fastpathCheckNilFalse, false, f.d)
  18457. }
  18458. }
  18459. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, checkNil bool, d *Decoder) {
  18460. v, changed := f.DecMapUintInt64V(*vp, checkNil, true, d)
  18461. if changed {
  18462. *vp = v
  18463. }
  18464. }
  18465. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, checkNil bool, canChange bool,
  18466. d *Decoder) (_ map[uint]int64, changed bool) {
  18467. dd := d.d
  18468. if checkNil && dd.TryDecodeAsNil() {
  18469. if v != nil {
  18470. changed = true
  18471. }
  18472. return nil, changed
  18473. }
  18474. containerLen := dd.ReadMapStart()
  18475. if canChange && v == nil {
  18476. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  18477. v = make(map[uint]int64, xlen)
  18478. changed = true
  18479. }
  18480. var mk uint
  18481. var mv int64
  18482. if containerLen > 0 {
  18483. for j := 0; j < containerLen; j++ {
  18484. mk = uint(dd.DecodeUint(uintBitsize))
  18485. mv = dd.DecodeInt(64)
  18486. if v != nil {
  18487. v[mk] = mv
  18488. }
  18489. }
  18490. } else if containerLen < 0 {
  18491. for j := 0; !dd.CheckBreak(); j++ {
  18492. mk = uint(dd.DecodeUint(uintBitsize))
  18493. mv = dd.DecodeInt(64)
  18494. if v != nil {
  18495. v[mk] = mv
  18496. }
  18497. }
  18498. dd.ReadEnd()
  18499. }
  18500. return v, changed
  18501. }
  18502. func (f *decFnInfo) fastpathDecMapUintFloat32R(rv reflect.Value) {
  18503. if rv.CanAddr() {
  18504. vp := rv.Addr().Interface().(*map[uint]float32)
  18505. v, changed := fastpathTV.DecMapUintFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  18506. if changed {
  18507. *vp = v
  18508. }
  18509. } else {
  18510. v := rv.Interface().(map[uint]float32)
  18511. fastpathTV.DecMapUintFloat32V(v, fastpathCheckNilFalse, false, f.d)
  18512. }
  18513. }
  18514. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, checkNil bool, d *Decoder) {
  18515. v, changed := f.DecMapUintFloat32V(*vp, checkNil, true, d)
  18516. if changed {
  18517. *vp = v
  18518. }
  18519. }
  18520. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, checkNil bool, canChange bool,
  18521. d *Decoder) (_ map[uint]float32, changed bool) {
  18522. dd := d.d
  18523. if checkNil && dd.TryDecodeAsNil() {
  18524. if v != nil {
  18525. changed = true
  18526. }
  18527. return nil, changed
  18528. }
  18529. containerLen := dd.ReadMapStart()
  18530. if canChange && v == nil {
  18531. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  18532. v = make(map[uint]float32, xlen)
  18533. changed = true
  18534. }
  18535. var mk uint
  18536. var mv float32
  18537. if containerLen > 0 {
  18538. for j := 0; j < containerLen; j++ {
  18539. mk = uint(dd.DecodeUint(uintBitsize))
  18540. mv = float32(dd.DecodeFloat(true))
  18541. if v != nil {
  18542. v[mk] = mv
  18543. }
  18544. }
  18545. } else if containerLen < 0 {
  18546. for j := 0; !dd.CheckBreak(); j++ {
  18547. mk = uint(dd.DecodeUint(uintBitsize))
  18548. mv = float32(dd.DecodeFloat(true))
  18549. if v != nil {
  18550. v[mk] = mv
  18551. }
  18552. }
  18553. dd.ReadEnd()
  18554. }
  18555. return v, changed
  18556. }
  18557. func (f *decFnInfo) fastpathDecMapUintFloat64R(rv reflect.Value) {
  18558. if rv.CanAddr() {
  18559. vp := rv.Addr().Interface().(*map[uint]float64)
  18560. v, changed := fastpathTV.DecMapUintFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  18561. if changed {
  18562. *vp = v
  18563. }
  18564. } else {
  18565. v := rv.Interface().(map[uint]float64)
  18566. fastpathTV.DecMapUintFloat64V(v, fastpathCheckNilFalse, false, f.d)
  18567. }
  18568. }
  18569. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, checkNil bool, d *Decoder) {
  18570. v, changed := f.DecMapUintFloat64V(*vp, checkNil, true, d)
  18571. if changed {
  18572. *vp = v
  18573. }
  18574. }
  18575. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, checkNil bool, canChange bool,
  18576. d *Decoder) (_ map[uint]float64, changed bool) {
  18577. dd := d.d
  18578. if checkNil && dd.TryDecodeAsNil() {
  18579. if v != nil {
  18580. changed = true
  18581. }
  18582. return nil, changed
  18583. }
  18584. containerLen := dd.ReadMapStart()
  18585. if canChange && v == nil {
  18586. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  18587. v = make(map[uint]float64, xlen)
  18588. changed = true
  18589. }
  18590. var mk uint
  18591. var mv float64
  18592. if containerLen > 0 {
  18593. for j := 0; j < containerLen; j++ {
  18594. mk = uint(dd.DecodeUint(uintBitsize))
  18595. mv = dd.DecodeFloat(false)
  18596. if v != nil {
  18597. v[mk] = mv
  18598. }
  18599. }
  18600. } else if containerLen < 0 {
  18601. for j := 0; !dd.CheckBreak(); j++ {
  18602. mk = uint(dd.DecodeUint(uintBitsize))
  18603. mv = dd.DecodeFloat(false)
  18604. if v != nil {
  18605. v[mk] = mv
  18606. }
  18607. }
  18608. dd.ReadEnd()
  18609. }
  18610. return v, changed
  18611. }
  18612. func (f *decFnInfo) fastpathDecMapUintBoolR(rv reflect.Value) {
  18613. if rv.CanAddr() {
  18614. vp := rv.Addr().Interface().(*map[uint]bool)
  18615. v, changed := fastpathTV.DecMapUintBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  18616. if changed {
  18617. *vp = v
  18618. }
  18619. } else {
  18620. v := rv.Interface().(map[uint]bool)
  18621. fastpathTV.DecMapUintBoolV(v, fastpathCheckNilFalse, false, f.d)
  18622. }
  18623. }
  18624. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, checkNil bool, d *Decoder) {
  18625. v, changed := f.DecMapUintBoolV(*vp, checkNil, true, d)
  18626. if changed {
  18627. *vp = v
  18628. }
  18629. }
  18630. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, checkNil bool, canChange bool,
  18631. d *Decoder) (_ map[uint]bool, changed bool) {
  18632. dd := d.d
  18633. if checkNil && dd.TryDecodeAsNil() {
  18634. if v != nil {
  18635. changed = true
  18636. }
  18637. return nil, changed
  18638. }
  18639. containerLen := dd.ReadMapStart()
  18640. if canChange && v == nil {
  18641. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  18642. v = make(map[uint]bool, xlen)
  18643. changed = true
  18644. }
  18645. var mk uint
  18646. var mv bool
  18647. if containerLen > 0 {
  18648. for j := 0; j < containerLen; j++ {
  18649. mk = uint(dd.DecodeUint(uintBitsize))
  18650. mv = dd.DecodeBool()
  18651. if v != nil {
  18652. v[mk] = mv
  18653. }
  18654. }
  18655. } else if containerLen < 0 {
  18656. for j := 0; !dd.CheckBreak(); j++ {
  18657. mk = uint(dd.DecodeUint(uintBitsize))
  18658. mv = dd.DecodeBool()
  18659. if v != nil {
  18660. v[mk] = mv
  18661. }
  18662. }
  18663. dd.ReadEnd()
  18664. }
  18665. return v, changed
  18666. }
  18667. func (f *decFnInfo) fastpathDecMapUint8IntfR(rv reflect.Value) {
  18668. if rv.CanAddr() {
  18669. vp := rv.Addr().Interface().(*map[uint8]interface{})
  18670. v, changed := fastpathTV.DecMapUint8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  18671. if changed {
  18672. *vp = v
  18673. }
  18674. } else {
  18675. v := rv.Interface().(map[uint8]interface{})
  18676. fastpathTV.DecMapUint8IntfV(v, fastpathCheckNilFalse, false, f.d)
  18677. }
  18678. }
  18679. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, checkNil bool, d *Decoder) {
  18680. v, changed := f.DecMapUint8IntfV(*vp, checkNil, true, d)
  18681. if changed {
  18682. *vp = v
  18683. }
  18684. }
  18685. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, checkNil bool, canChange bool,
  18686. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  18687. dd := d.d
  18688. if checkNil && dd.TryDecodeAsNil() {
  18689. if v != nil {
  18690. changed = true
  18691. }
  18692. return nil, changed
  18693. }
  18694. containerLen := dd.ReadMapStart()
  18695. if canChange && v == nil {
  18696. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18697. v = make(map[uint8]interface{}, xlen)
  18698. changed = true
  18699. }
  18700. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  18701. var mk uint8
  18702. var mv interface{}
  18703. if containerLen > 0 {
  18704. for j := 0; j < containerLen; j++ {
  18705. mk = uint8(dd.DecodeUint(8))
  18706. if mapGet {
  18707. mv = v[mk]
  18708. } else {
  18709. mv = nil
  18710. }
  18711. d.decode(&mv)
  18712. if v != nil {
  18713. v[mk] = mv
  18714. }
  18715. }
  18716. } else if containerLen < 0 {
  18717. for j := 0; !dd.CheckBreak(); j++ {
  18718. mk = uint8(dd.DecodeUint(8))
  18719. if mapGet {
  18720. mv = v[mk]
  18721. } else {
  18722. mv = nil
  18723. }
  18724. d.decode(&mv)
  18725. if v != nil {
  18726. v[mk] = mv
  18727. }
  18728. }
  18729. dd.ReadEnd()
  18730. }
  18731. return v, changed
  18732. }
  18733. func (f *decFnInfo) fastpathDecMapUint8StringR(rv reflect.Value) {
  18734. if rv.CanAddr() {
  18735. vp := rv.Addr().Interface().(*map[uint8]string)
  18736. v, changed := fastpathTV.DecMapUint8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  18737. if changed {
  18738. *vp = v
  18739. }
  18740. } else {
  18741. v := rv.Interface().(map[uint8]string)
  18742. fastpathTV.DecMapUint8StringV(v, fastpathCheckNilFalse, false, f.d)
  18743. }
  18744. }
  18745. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, checkNil bool, d *Decoder) {
  18746. v, changed := f.DecMapUint8StringV(*vp, checkNil, true, d)
  18747. if changed {
  18748. *vp = v
  18749. }
  18750. }
  18751. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, checkNil bool, canChange bool,
  18752. d *Decoder) (_ map[uint8]string, changed bool) {
  18753. dd := d.d
  18754. if checkNil && dd.TryDecodeAsNil() {
  18755. if v != nil {
  18756. changed = true
  18757. }
  18758. return nil, changed
  18759. }
  18760. containerLen := dd.ReadMapStart()
  18761. if canChange && v == nil {
  18762. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  18763. v = make(map[uint8]string, xlen)
  18764. changed = true
  18765. }
  18766. var mk uint8
  18767. var mv string
  18768. if containerLen > 0 {
  18769. for j := 0; j < containerLen; j++ {
  18770. mk = uint8(dd.DecodeUint(8))
  18771. mv = dd.DecodeString()
  18772. if v != nil {
  18773. v[mk] = mv
  18774. }
  18775. }
  18776. } else if containerLen < 0 {
  18777. for j := 0; !dd.CheckBreak(); j++ {
  18778. mk = uint8(dd.DecodeUint(8))
  18779. mv = dd.DecodeString()
  18780. if v != nil {
  18781. v[mk] = mv
  18782. }
  18783. }
  18784. dd.ReadEnd()
  18785. }
  18786. return v, changed
  18787. }
  18788. func (f *decFnInfo) fastpathDecMapUint8UintR(rv reflect.Value) {
  18789. if rv.CanAddr() {
  18790. vp := rv.Addr().Interface().(*map[uint8]uint)
  18791. v, changed := fastpathTV.DecMapUint8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  18792. if changed {
  18793. *vp = v
  18794. }
  18795. } else {
  18796. v := rv.Interface().(map[uint8]uint)
  18797. fastpathTV.DecMapUint8UintV(v, fastpathCheckNilFalse, false, f.d)
  18798. }
  18799. }
  18800. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, checkNil bool, d *Decoder) {
  18801. v, changed := f.DecMapUint8UintV(*vp, checkNil, true, d)
  18802. if changed {
  18803. *vp = v
  18804. }
  18805. }
  18806. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, checkNil bool, canChange bool,
  18807. d *Decoder) (_ map[uint8]uint, changed bool) {
  18808. dd := d.d
  18809. if checkNil && dd.TryDecodeAsNil() {
  18810. if v != nil {
  18811. changed = true
  18812. }
  18813. return nil, changed
  18814. }
  18815. containerLen := dd.ReadMapStart()
  18816. if canChange && v == nil {
  18817. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  18818. v = make(map[uint8]uint, xlen)
  18819. changed = true
  18820. }
  18821. var mk uint8
  18822. var mv uint
  18823. if containerLen > 0 {
  18824. for j := 0; j < containerLen; j++ {
  18825. mk = uint8(dd.DecodeUint(8))
  18826. mv = uint(dd.DecodeUint(uintBitsize))
  18827. if v != nil {
  18828. v[mk] = mv
  18829. }
  18830. }
  18831. } else if containerLen < 0 {
  18832. for j := 0; !dd.CheckBreak(); j++ {
  18833. mk = uint8(dd.DecodeUint(8))
  18834. mv = uint(dd.DecodeUint(uintBitsize))
  18835. if v != nil {
  18836. v[mk] = mv
  18837. }
  18838. }
  18839. dd.ReadEnd()
  18840. }
  18841. return v, changed
  18842. }
  18843. func (f *decFnInfo) fastpathDecMapUint8Uint8R(rv reflect.Value) {
  18844. if rv.CanAddr() {
  18845. vp := rv.Addr().Interface().(*map[uint8]uint8)
  18846. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  18847. if changed {
  18848. *vp = v
  18849. }
  18850. } else {
  18851. v := rv.Interface().(map[uint8]uint8)
  18852. fastpathTV.DecMapUint8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  18853. }
  18854. }
  18855. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, checkNil bool, d *Decoder) {
  18856. v, changed := f.DecMapUint8Uint8V(*vp, checkNil, true, d)
  18857. if changed {
  18858. *vp = v
  18859. }
  18860. }
  18861. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, checkNil bool, canChange bool,
  18862. d *Decoder) (_ map[uint8]uint8, changed bool) {
  18863. dd := d.d
  18864. if checkNil && dd.TryDecodeAsNil() {
  18865. if v != nil {
  18866. changed = true
  18867. }
  18868. return nil, changed
  18869. }
  18870. containerLen := dd.ReadMapStart()
  18871. if canChange && v == nil {
  18872. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  18873. v = make(map[uint8]uint8, xlen)
  18874. changed = true
  18875. }
  18876. var mk uint8
  18877. var mv uint8
  18878. if containerLen > 0 {
  18879. for j := 0; j < containerLen; j++ {
  18880. mk = uint8(dd.DecodeUint(8))
  18881. mv = uint8(dd.DecodeUint(8))
  18882. if v != nil {
  18883. v[mk] = mv
  18884. }
  18885. }
  18886. } else if containerLen < 0 {
  18887. for j := 0; !dd.CheckBreak(); j++ {
  18888. mk = uint8(dd.DecodeUint(8))
  18889. mv = uint8(dd.DecodeUint(8))
  18890. if v != nil {
  18891. v[mk] = mv
  18892. }
  18893. }
  18894. dd.ReadEnd()
  18895. }
  18896. return v, changed
  18897. }
  18898. func (f *decFnInfo) fastpathDecMapUint8Uint16R(rv reflect.Value) {
  18899. if rv.CanAddr() {
  18900. vp := rv.Addr().Interface().(*map[uint8]uint16)
  18901. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  18902. if changed {
  18903. *vp = v
  18904. }
  18905. } else {
  18906. v := rv.Interface().(map[uint8]uint16)
  18907. fastpathTV.DecMapUint8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  18908. }
  18909. }
  18910. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, checkNil bool, d *Decoder) {
  18911. v, changed := f.DecMapUint8Uint16V(*vp, checkNil, true, d)
  18912. if changed {
  18913. *vp = v
  18914. }
  18915. }
  18916. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, checkNil bool, canChange bool,
  18917. d *Decoder) (_ map[uint8]uint16, changed bool) {
  18918. dd := d.d
  18919. if checkNil && dd.TryDecodeAsNil() {
  18920. if v != nil {
  18921. changed = true
  18922. }
  18923. return nil, changed
  18924. }
  18925. containerLen := dd.ReadMapStart()
  18926. if canChange && v == nil {
  18927. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  18928. v = make(map[uint8]uint16, xlen)
  18929. changed = true
  18930. }
  18931. var mk uint8
  18932. var mv uint16
  18933. if containerLen > 0 {
  18934. for j := 0; j < containerLen; j++ {
  18935. mk = uint8(dd.DecodeUint(8))
  18936. mv = uint16(dd.DecodeUint(16))
  18937. if v != nil {
  18938. v[mk] = mv
  18939. }
  18940. }
  18941. } else if containerLen < 0 {
  18942. for j := 0; !dd.CheckBreak(); j++ {
  18943. mk = uint8(dd.DecodeUint(8))
  18944. mv = uint16(dd.DecodeUint(16))
  18945. if v != nil {
  18946. v[mk] = mv
  18947. }
  18948. }
  18949. dd.ReadEnd()
  18950. }
  18951. return v, changed
  18952. }
  18953. func (f *decFnInfo) fastpathDecMapUint8Uint32R(rv reflect.Value) {
  18954. if rv.CanAddr() {
  18955. vp := rv.Addr().Interface().(*map[uint8]uint32)
  18956. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  18957. if changed {
  18958. *vp = v
  18959. }
  18960. } else {
  18961. v := rv.Interface().(map[uint8]uint32)
  18962. fastpathTV.DecMapUint8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  18963. }
  18964. }
  18965. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, checkNil bool, d *Decoder) {
  18966. v, changed := f.DecMapUint8Uint32V(*vp, checkNil, true, d)
  18967. if changed {
  18968. *vp = v
  18969. }
  18970. }
  18971. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, checkNil bool, canChange bool,
  18972. d *Decoder) (_ map[uint8]uint32, changed bool) {
  18973. dd := d.d
  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. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  18983. v = make(map[uint8]uint32, xlen)
  18984. changed = true
  18985. }
  18986. var mk uint8
  18987. var mv uint32
  18988. if containerLen > 0 {
  18989. for j := 0; j < containerLen; j++ {
  18990. mk = uint8(dd.DecodeUint(8))
  18991. mv = uint32(dd.DecodeUint(32))
  18992. if v != nil {
  18993. v[mk] = mv
  18994. }
  18995. }
  18996. } else if containerLen < 0 {
  18997. for j := 0; !dd.CheckBreak(); j++ {
  18998. mk = uint8(dd.DecodeUint(8))
  18999. mv = uint32(dd.DecodeUint(32))
  19000. if v != nil {
  19001. v[mk] = mv
  19002. }
  19003. }
  19004. dd.ReadEnd()
  19005. }
  19006. return v, changed
  19007. }
  19008. func (f *decFnInfo) fastpathDecMapUint8Uint64R(rv reflect.Value) {
  19009. if rv.CanAddr() {
  19010. vp := rv.Addr().Interface().(*map[uint8]uint64)
  19011. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  19012. if changed {
  19013. *vp = v
  19014. }
  19015. } else {
  19016. v := rv.Interface().(map[uint8]uint64)
  19017. fastpathTV.DecMapUint8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  19018. }
  19019. }
  19020. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, checkNil bool, d *Decoder) {
  19021. v, changed := f.DecMapUint8Uint64V(*vp, checkNil, true, d)
  19022. if changed {
  19023. *vp = v
  19024. }
  19025. }
  19026. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, checkNil bool, canChange bool,
  19027. d *Decoder) (_ map[uint8]uint64, changed bool) {
  19028. dd := d.d
  19029. if checkNil && dd.TryDecodeAsNil() {
  19030. if v != nil {
  19031. changed = true
  19032. }
  19033. return nil, changed
  19034. }
  19035. containerLen := dd.ReadMapStart()
  19036. if canChange && v == nil {
  19037. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19038. v = make(map[uint8]uint64, xlen)
  19039. changed = true
  19040. }
  19041. var mk uint8
  19042. var mv uint64
  19043. if containerLen > 0 {
  19044. for j := 0; j < containerLen; j++ {
  19045. mk = uint8(dd.DecodeUint(8))
  19046. mv = dd.DecodeUint(64)
  19047. if v != nil {
  19048. v[mk] = mv
  19049. }
  19050. }
  19051. } else if containerLen < 0 {
  19052. for j := 0; !dd.CheckBreak(); j++ {
  19053. mk = uint8(dd.DecodeUint(8))
  19054. mv = dd.DecodeUint(64)
  19055. if v != nil {
  19056. v[mk] = mv
  19057. }
  19058. }
  19059. dd.ReadEnd()
  19060. }
  19061. return v, changed
  19062. }
  19063. func (f *decFnInfo) fastpathDecMapUint8UintptrR(rv reflect.Value) {
  19064. if rv.CanAddr() {
  19065. vp := rv.Addr().Interface().(*map[uint8]uintptr)
  19066. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  19067. if changed {
  19068. *vp = v
  19069. }
  19070. } else {
  19071. v := rv.Interface().(map[uint8]uintptr)
  19072. fastpathTV.DecMapUint8UintptrV(v, fastpathCheckNilFalse, false, f.d)
  19073. }
  19074. }
  19075. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, checkNil bool, d *Decoder) {
  19076. v, changed := f.DecMapUint8UintptrV(*vp, checkNil, true, d)
  19077. if changed {
  19078. *vp = v
  19079. }
  19080. }
  19081. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, checkNil bool, canChange bool,
  19082. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  19083. dd := d.d
  19084. if checkNil && dd.TryDecodeAsNil() {
  19085. if v != nil {
  19086. changed = true
  19087. }
  19088. return nil, changed
  19089. }
  19090. containerLen := dd.ReadMapStart()
  19091. if canChange && v == nil {
  19092. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19093. v = make(map[uint8]uintptr, xlen)
  19094. changed = true
  19095. }
  19096. var mk uint8
  19097. var mv uintptr
  19098. if containerLen > 0 {
  19099. for j := 0; j < containerLen; j++ {
  19100. mk = uint8(dd.DecodeUint(8))
  19101. mv = uintptr(dd.DecodeUint(uintBitsize))
  19102. if v != nil {
  19103. v[mk] = mv
  19104. }
  19105. }
  19106. } else if containerLen < 0 {
  19107. for j := 0; !dd.CheckBreak(); j++ {
  19108. mk = uint8(dd.DecodeUint(8))
  19109. mv = uintptr(dd.DecodeUint(uintBitsize))
  19110. if v != nil {
  19111. v[mk] = mv
  19112. }
  19113. }
  19114. dd.ReadEnd()
  19115. }
  19116. return v, changed
  19117. }
  19118. func (f *decFnInfo) fastpathDecMapUint8IntR(rv reflect.Value) {
  19119. if rv.CanAddr() {
  19120. vp := rv.Addr().Interface().(*map[uint8]int)
  19121. v, changed := fastpathTV.DecMapUint8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  19122. if changed {
  19123. *vp = v
  19124. }
  19125. } else {
  19126. v := rv.Interface().(map[uint8]int)
  19127. fastpathTV.DecMapUint8IntV(v, fastpathCheckNilFalse, false, f.d)
  19128. }
  19129. }
  19130. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, checkNil bool, d *Decoder) {
  19131. v, changed := f.DecMapUint8IntV(*vp, checkNil, true, d)
  19132. if changed {
  19133. *vp = v
  19134. }
  19135. }
  19136. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, checkNil bool, canChange bool,
  19137. d *Decoder) (_ map[uint8]int, changed bool) {
  19138. dd := d.d
  19139. if checkNil && dd.TryDecodeAsNil() {
  19140. if v != nil {
  19141. changed = true
  19142. }
  19143. return nil, changed
  19144. }
  19145. containerLen := dd.ReadMapStart()
  19146. if canChange && v == nil {
  19147. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19148. v = make(map[uint8]int, xlen)
  19149. changed = true
  19150. }
  19151. var mk uint8
  19152. var mv int
  19153. if containerLen > 0 {
  19154. for j := 0; j < containerLen; j++ {
  19155. mk = uint8(dd.DecodeUint(8))
  19156. mv = int(dd.DecodeInt(intBitsize))
  19157. if v != nil {
  19158. v[mk] = mv
  19159. }
  19160. }
  19161. } else if containerLen < 0 {
  19162. for j := 0; !dd.CheckBreak(); j++ {
  19163. mk = uint8(dd.DecodeUint(8))
  19164. mv = int(dd.DecodeInt(intBitsize))
  19165. if v != nil {
  19166. v[mk] = mv
  19167. }
  19168. }
  19169. dd.ReadEnd()
  19170. }
  19171. return v, changed
  19172. }
  19173. func (f *decFnInfo) fastpathDecMapUint8Int8R(rv reflect.Value) {
  19174. if rv.CanAddr() {
  19175. vp := rv.Addr().Interface().(*map[uint8]int8)
  19176. v, changed := fastpathTV.DecMapUint8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  19177. if changed {
  19178. *vp = v
  19179. }
  19180. } else {
  19181. v := rv.Interface().(map[uint8]int8)
  19182. fastpathTV.DecMapUint8Int8V(v, fastpathCheckNilFalse, false, f.d)
  19183. }
  19184. }
  19185. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, checkNil bool, d *Decoder) {
  19186. v, changed := f.DecMapUint8Int8V(*vp, checkNil, true, d)
  19187. if changed {
  19188. *vp = v
  19189. }
  19190. }
  19191. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, checkNil bool, canChange bool,
  19192. d *Decoder) (_ map[uint8]int8, changed bool) {
  19193. dd := d.d
  19194. if checkNil && dd.TryDecodeAsNil() {
  19195. if v != nil {
  19196. changed = true
  19197. }
  19198. return nil, changed
  19199. }
  19200. containerLen := dd.ReadMapStart()
  19201. if canChange && v == nil {
  19202. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  19203. v = make(map[uint8]int8, xlen)
  19204. changed = true
  19205. }
  19206. var mk uint8
  19207. var mv int8
  19208. if containerLen > 0 {
  19209. for j := 0; j < containerLen; j++ {
  19210. mk = uint8(dd.DecodeUint(8))
  19211. mv = int8(dd.DecodeInt(8))
  19212. if v != nil {
  19213. v[mk] = mv
  19214. }
  19215. }
  19216. } else if containerLen < 0 {
  19217. for j := 0; !dd.CheckBreak(); j++ {
  19218. mk = uint8(dd.DecodeUint(8))
  19219. mv = int8(dd.DecodeInt(8))
  19220. if v != nil {
  19221. v[mk] = mv
  19222. }
  19223. }
  19224. dd.ReadEnd()
  19225. }
  19226. return v, changed
  19227. }
  19228. func (f *decFnInfo) fastpathDecMapUint8Int16R(rv reflect.Value) {
  19229. if rv.CanAddr() {
  19230. vp := rv.Addr().Interface().(*map[uint8]int16)
  19231. v, changed := fastpathTV.DecMapUint8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  19232. if changed {
  19233. *vp = v
  19234. }
  19235. } else {
  19236. v := rv.Interface().(map[uint8]int16)
  19237. fastpathTV.DecMapUint8Int16V(v, fastpathCheckNilFalse, false, f.d)
  19238. }
  19239. }
  19240. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, checkNil bool, d *Decoder) {
  19241. v, changed := f.DecMapUint8Int16V(*vp, checkNil, true, d)
  19242. if changed {
  19243. *vp = v
  19244. }
  19245. }
  19246. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, checkNil bool, canChange bool,
  19247. d *Decoder) (_ map[uint8]int16, changed bool) {
  19248. dd := d.d
  19249. if checkNil && dd.TryDecodeAsNil() {
  19250. if v != nil {
  19251. changed = true
  19252. }
  19253. return nil, changed
  19254. }
  19255. containerLen := dd.ReadMapStart()
  19256. if canChange && v == nil {
  19257. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  19258. v = make(map[uint8]int16, xlen)
  19259. changed = true
  19260. }
  19261. var mk uint8
  19262. var mv int16
  19263. if containerLen > 0 {
  19264. for j := 0; j < containerLen; j++ {
  19265. mk = uint8(dd.DecodeUint(8))
  19266. mv = int16(dd.DecodeInt(16))
  19267. if v != nil {
  19268. v[mk] = mv
  19269. }
  19270. }
  19271. } else if containerLen < 0 {
  19272. for j := 0; !dd.CheckBreak(); j++ {
  19273. mk = uint8(dd.DecodeUint(8))
  19274. mv = int16(dd.DecodeInt(16))
  19275. if v != nil {
  19276. v[mk] = mv
  19277. }
  19278. }
  19279. dd.ReadEnd()
  19280. }
  19281. return v, changed
  19282. }
  19283. func (f *decFnInfo) fastpathDecMapUint8Int32R(rv reflect.Value) {
  19284. if rv.CanAddr() {
  19285. vp := rv.Addr().Interface().(*map[uint8]int32)
  19286. v, changed := fastpathTV.DecMapUint8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  19287. if changed {
  19288. *vp = v
  19289. }
  19290. } else {
  19291. v := rv.Interface().(map[uint8]int32)
  19292. fastpathTV.DecMapUint8Int32V(v, fastpathCheckNilFalse, false, f.d)
  19293. }
  19294. }
  19295. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, checkNil bool, d *Decoder) {
  19296. v, changed := f.DecMapUint8Int32V(*vp, checkNil, true, d)
  19297. if changed {
  19298. *vp = v
  19299. }
  19300. }
  19301. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, checkNil bool, canChange bool,
  19302. d *Decoder) (_ map[uint8]int32, changed bool) {
  19303. dd := d.d
  19304. if checkNil && dd.TryDecodeAsNil() {
  19305. if v != nil {
  19306. changed = true
  19307. }
  19308. return nil, changed
  19309. }
  19310. containerLen := dd.ReadMapStart()
  19311. if canChange && v == nil {
  19312. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  19313. v = make(map[uint8]int32, xlen)
  19314. changed = true
  19315. }
  19316. var mk uint8
  19317. var mv int32
  19318. if containerLen > 0 {
  19319. for j := 0; j < containerLen; j++ {
  19320. mk = uint8(dd.DecodeUint(8))
  19321. mv = int32(dd.DecodeInt(32))
  19322. if v != nil {
  19323. v[mk] = mv
  19324. }
  19325. }
  19326. } else if containerLen < 0 {
  19327. for j := 0; !dd.CheckBreak(); j++ {
  19328. mk = uint8(dd.DecodeUint(8))
  19329. mv = int32(dd.DecodeInt(32))
  19330. if v != nil {
  19331. v[mk] = mv
  19332. }
  19333. }
  19334. dd.ReadEnd()
  19335. }
  19336. return v, changed
  19337. }
  19338. func (f *decFnInfo) fastpathDecMapUint8Int64R(rv reflect.Value) {
  19339. if rv.CanAddr() {
  19340. vp := rv.Addr().Interface().(*map[uint8]int64)
  19341. v, changed := fastpathTV.DecMapUint8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  19342. if changed {
  19343. *vp = v
  19344. }
  19345. } else {
  19346. v := rv.Interface().(map[uint8]int64)
  19347. fastpathTV.DecMapUint8Int64V(v, fastpathCheckNilFalse, false, f.d)
  19348. }
  19349. }
  19350. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, checkNil bool, d *Decoder) {
  19351. v, changed := f.DecMapUint8Int64V(*vp, checkNil, true, d)
  19352. if changed {
  19353. *vp = v
  19354. }
  19355. }
  19356. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, checkNil bool, canChange bool,
  19357. d *Decoder) (_ map[uint8]int64, changed bool) {
  19358. dd := d.d
  19359. if checkNil && dd.TryDecodeAsNil() {
  19360. if v != nil {
  19361. changed = true
  19362. }
  19363. return nil, changed
  19364. }
  19365. containerLen := dd.ReadMapStart()
  19366. if canChange && v == nil {
  19367. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19368. v = make(map[uint8]int64, xlen)
  19369. changed = true
  19370. }
  19371. var mk uint8
  19372. var mv int64
  19373. if containerLen > 0 {
  19374. for j := 0; j < containerLen; j++ {
  19375. mk = uint8(dd.DecodeUint(8))
  19376. mv = dd.DecodeInt(64)
  19377. if v != nil {
  19378. v[mk] = mv
  19379. }
  19380. }
  19381. } else if containerLen < 0 {
  19382. for j := 0; !dd.CheckBreak(); j++ {
  19383. mk = uint8(dd.DecodeUint(8))
  19384. mv = dd.DecodeInt(64)
  19385. if v != nil {
  19386. v[mk] = mv
  19387. }
  19388. }
  19389. dd.ReadEnd()
  19390. }
  19391. return v, changed
  19392. }
  19393. func (f *decFnInfo) fastpathDecMapUint8Float32R(rv reflect.Value) {
  19394. if rv.CanAddr() {
  19395. vp := rv.Addr().Interface().(*map[uint8]float32)
  19396. v, changed := fastpathTV.DecMapUint8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  19397. if changed {
  19398. *vp = v
  19399. }
  19400. } else {
  19401. v := rv.Interface().(map[uint8]float32)
  19402. fastpathTV.DecMapUint8Float32V(v, fastpathCheckNilFalse, false, f.d)
  19403. }
  19404. }
  19405. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, checkNil bool, d *Decoder) {
  19406. v, changed := f.DecMapUint8Float32V(*vp, checkNil, true, d)
  19407. if changed {
  19408. *vp = v
  19409. }
  19410. }
  19411. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, checkNil bool, canChange bool,
  19412. d *Decoder) (_ map[uint8]float32, changed bool) {
  19413. dd := d.d
  19414. if checkNil && dd.TryDecodeAsNil() {
  19415. if v != nil {
  19416. changed = true
  19417. }
  19418. return nil, changed
  19419. }
  19420. containerLen := dd.ReadMapStart()
  19421. if canChange && v == nil {
  19422. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  19423. v = make(map[uint8]float32, xlen)
  19424. changed = true
  19425. }
  19426. var mk uint8
  19427. var mv float32
  19428. if containerLen > 0 {
  19429. for j := 0; j < containerLen; j++ {
  19430. mk = uint8(dd.DecodeUint(8))
  19431. mv = float32(dd.DecodeFloat(true))
  19432. if v != nil {
  19433. v[mk] = mv
  19434. }
  19435. }
  19436. } else if containerLen < 0 {
  19437. for j := 0; !dd.CheckBreak(); j++ {
  19438. mk = uint8(dd.DecodeUint(8))
  19439. mv = float32(dd.DecodeFloat(true))
  19440. if v != nil {
  19441. v[mk] = mv
  19442. }
  19443. }
  19444. dd.ReadEnd()
  19445. }
  19446. return v, changed
  19447. }
  19448. func (f *decFnInfo) fastpathDecMapUint8Float64R(rv reflect.Value) {
  19449. if rv.CanAddr() {
  19450. vp := rv.Addr().Interface().(*map[uint8]float64)
  19451. v, changed := fastpathTV.DecMapUint8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  19452. if changed {
  19453. *vp = v
  19454. }
  19455. } else {
  19456. v := rv.Interface().(map[uint8]float64)
  19457. fastpathTV.DecMapUint8Float64V(v, fastpathCheckNilFalse, false, f.d)
  19458. }
  19459. }
  19460. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, checkNil bool, d *Decoder) {
  19461. v, changed := f.DecMapUint8Float64V(*vp, checkNil, true, d)
  19462. if changed {
  19463. *vp = v
  19464. }
  19465. }
  19466. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, checkNil bool, canChange bool,
  19467. d *Decoder) (_ map[uint8]float64, changed bool) {
  19468. dd := d.d
  19469. if checkNil && dd.TryDecodeAsNil() {
  19470. if v != nil {
  19471. changed = true
  19472. }
  19473. return nil, changed
  19474. }
  19475. containerLen := dd.ReadMapStart()
  19476. if canChange && v == nil {
  19477. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  19478. v = make(map[uint8]float64, xlen)
  19479. changed = true
  19480. }
  19481. var mk uint8
  19482. var mv float64
  19483. if containerLen > 0 {
  19484. for j := 0; j < containerLen; j++ {
  19485. mk = uint8(dd.DecodeUint(8))
  19486. mv = dd.DecodeFloat(false)
  19487. if v != nil {
  19488. v[mk] = mv
  19489. }
  19490. }
  19491. } else if containerLen < 0 {
  19492. for j := 0; !dd.CheckBreak(); j++ {
  19493. mk = uint8(dd.DecodeUint(8))
  19494. mv = dd.DecodeFloat(false)
  19495. if v != nil {
  19496. v[mk] = mv
  19497. }
  19498. }
  19499. dd.ReadEnd()
  19500. }
  19501. return v, changed
  19502. }
  19503. func (f *decFnInfo) fastpathDecMapUint8BoolR(rv reflect.Value) {
  19504. if rv.CanAddr() {
  19505. vp := rv.Addr().Interface().(*map[uint8]bool)
  19506. v, changed := fastpathTV.DecMapUint8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  19507. if changed {
  19508. *vp = v
  19509. }
  19510. } else {
  19511. v := rv.Interface().(map[uint8]bool)
  19512. fastpathTV.DecMapUint8BoolV(v, fastpathCheckNilFalse, false, f.d)
  19513. }
  19514. }
  19515. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, checkNil bool, d *Decoder) {
  19516. v, changed := f.DecMapUint8BoolV(*vp, checkNil, true, d)
  19517. if changed {
  19518. *vp = v
  19519. }
  19520. }
  19521. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, checkNil bool, canChange bool,
  19522. d *Decoder) (_ map[uint8]bool, changed bool) {
  19523. dd := d.d
  19524. if checkNil && dd.TryDecodeAsNil() {
  19525. if v != nil {
  19526. changed = true
  19527. }
  19528. return nil, changed
  19529. }
  19530. containerLen := dd.ReadMapStart()
  19531. if canChange && v == nil {
  19532. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  19533. v = make(map[uint8]bool, xlen)
  19534. changed = true
  19535. }
  19536. var mk uint8
  19537. var mv bool
  19538. if containerLen > 0 {
  19539. for j := 0; j < containerLen; j++ {
  19540. mk = uint8(dd.DecodeUint(8))
  19541. mv = dd.DecodeBool()
  19542. if v != nil {
  19543. v[mk] = mv
  19544. }
  19545. }
  19546. } else if containerLen < 0 {
  19547. for j := 0; !dd.CheckBreak(); j++ {
  19548. mk = uint8(dd.DecodeUint(8))
  19549. mv = dd.DecodeBool()
  19550. if v != nil {
  19551. v[mk] = mv
  19552. }
  19553. }
  19554. dd.ReadEnd()
  19555. }
  19556. return v, changed
  19557. }
  19558. func (f *decFnInfo) fastpathDecMapUint16IntfR(rv reflect.Value) {
  19559. if rv.CanAddr() {
  19560. vp := rv.Addr().Interface().(*map[uint16]interface{})
  19561. v, changed := fastpathTV.DecMapUint16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  19562. if changed {
  19563. *vp = v
  19564. }
  19565. } else {
  19566. v := rv.Interface().(map[uint16]interface{})
  19567. fastpathTV.DecMapUint16IntfV(v, fastpathCheckNilFalse, false, f.d)
  19568. }
  19569. }
  19570. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, checkNil bool, d *Decoder) {
  19571. v, changed := f.DecMapUint16IntfV(*vp, checkNil, true, d)
  19572. if changed {
  19573. *vp = v
  19574. }
  19575. }
  19576. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, checkNil bool, canChange bool,
  19577. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  19578. dd := d.d
  19579. if checkNil && dd.TryDecodeAsNil() {
  19580. if v != nil {
  19581. changed = true
  19582. }
  19583. return nil, changed
  19584. }
  19585. containerLen := dd.ReadMapStart()
  19586. if canChange && v == nil {
  19587. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19588. v = make(map[uint16]interface{}, xlen)
  19589. changed = true
  19590. }
  19591. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  19592. var mk uint16
  19593. var mv interface{}
  19594. if containerLen > 0 {
  19595. for j := 0; j < containerLen; j++ {
  19596. mk = uint16(dd.DecodeUint(16))
  19597. if mapGet {
  19598. mv = v[mk]
  19599. } else {
  19600. mv = nil
  19601. }
  19602. d.decode(&mv)
  19603. if v != nil {
  19604. v[mk] = mv
  19605. }
  19606. }
  19607. } else if containerLen < 0 {
  19608. for j := 0; !dd.CheckBreak(); j++ {
  19609. mk = uint16(dd.DecodeUint(16))
  19610. if mapGet {
  19611. mv = v[mk]
  19612. } else {
  19613. mv = nil
  19614. }
  19615. d.decode(&mv)
  19616. if v != nil {
  19617. v[mk] = mv
  19618. }
  19619. }
  19620. dd.ReadEnd()
  19621. }
  19622. return v, changed
  19623. }
  19624. func (f *decFnInfo) fastpathDecMapUint16StringR(rv reflect.Value) {
  19625. if rv.CanAddr() {
  19626. vp := rv.Addr().Interface().(*map[uint16]string)
  19627. v, changed := fastpathTV.DecMapUint16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  19628. if changed {
  19629. *vp = v
  19630. }
  19631. } else {
  19632. v := rv.Interface().(map[uint16]string)
  19633. fastpathTV.DecMapUint16StringV(v, fastpathCheckNilFalse, false, f.d)
  19634. }
  19635. }
  19636. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, checkNil bool, d *Decoder) {
  19637. v, changed := f.DecMapUint16StringV(*vp, checkNil, true, d)
  19638. if changed {
  19639. *vp = v
  19640. }
  19641. }
  19642. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, checkNil bool, canChange bool,
  19643. d *Decoder) (_ map[uint16]string, changed bool) {
  19644. dd := d.d
  19645. if checkNil && dd.TryDecodeAsNil() {
  19646. if v != nil {
  19647. changed = true
  19648. }
  19649. return nil, changed
  19650. }
  19651. containerLen := dd.ReadMapStart()
  19652. if canChange && v == nil {
  19653. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19654. v = make(map[uint16]string, xlen)
  19655. changed = true
  19656. }
  19657. var mk uint16
  19658. var mv string
  19659. if containerLen > 0 {
  19660. for j := 0; j < containerLen; j++ {
  19661. mk = uint16(dd.DecodeUint(16))
  19662. mv = dd.DecodeString()
  19663. if v != nil {
  19664. v[mk] = mv
  19665. }
  19666. }
  19667. } else if containerLen < 0 {
  19668. for j := 0; !dd.CheckBreak(); j++ {
  19669. mk = uint16(dd.DecodeUint(16))
  19670. mv = dd.DecodeString()
  19671. if v != nil {
  19672. v[mk] = mv
  19673. }
  19674. }
  19675. dd.ReadEnd()
  19676. }
  19677. return v, changed
  19678. }
  19679. func (f *decFnInfo) fastpathDecMapUint16UintR(rv reflect.Value) {
  19680. if rv.CanAddr() {
  19681. vp := rv.Addr().Interface().(*map[uint16]uint)
  19682. v, changed := fastpathTV.DecMapUint16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  19683. if changed {
  19684. *vp = v
  19685. }
  19686. } else {
  19687. v := rv.Interface().(map[uint16]uint)
  19688. fastpathTV.DecMapUint16UintV(v, fastpathCheckNilFalse, false, f.d)
  19689. }
  19690. }
  19691. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, checkNil bool, d *Decoder) {
  19692. v, changed := f.DecMapUint16UintV(*vp, checkNil, true, d)
  19693. if changed {
  19694. *vp = v
  19695. }
  19696. }
  19697. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, checkNil bool, canChange bool,
  19698. d *Decoder) (_ map[uint16]uint, changed bool) {
  19699. dd := d.d
  19700. if checkNil && dd.TryDecodeAsNil() {
  19701. if v != nil {
  19702. changed = true
  19703. }
  19704. return nil, changed
  19705. }
  19706. containerLen := dd.ReadMapStart()
  19707. if canChange && v == nil {
  19708. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  19709. v = make(map[uint16]uint, xlen)
  19710. changed = true
  19711. }
  19712. var mk uint16
  19713. var mv uint
  19714. if containerLen > 0 {
  19715. for j := 0; j < containerLen; j++ {
  19716. mk = uint16(dd.DecodeUint(16))
  19717. mv = uint(dd.DecodeUint(uintBitsize))
  19718. if v != nil {
  19719. v[mk] = mv
  19720. }
  19721. }
  19722. } else if containerLen < 0 {
  19723. for j := 0; !dd.CheckBreak(); j++ {
  19724. mk = uint16(dd.DecodeUint(16))
  19725. mv = uint(dd.DecodeUint(uintBitsize))
  19726. if v != nil {
  19727. v[mk] = mv
  19728. }
  19729. }
  19730. dd.ReadEnd()
  19731. }
  19732. return v, changed
  19733. }
  19734. func (f *decFnInfo) fastpathDecMapUint16Uint8R(rv reflect.Value) {
  19735. if rv.CanAddr() {
  19736. vp := rv.Addr().Interface().(*map[uint16]uint8)
  19737. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  19738. if changed {
  19739. *vp = v
  19740. }
  19741. } else {
  19742. v := rv.Interface().(map[uint16]uint8)
  19743. fastpathTV.DecMapUint16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  19744. }
  19745. }
  19746. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, checkNil bool, d *Decoder) {
  19747. v, changed := f.DecMapUint16Uint8V(*vp, checkNil, true, d)
  19748. if changed {
  19749. *vp = v
  19750. }
  19751. }
  19752. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, checkNil bool, canChange bool,
  19753. d *Decoder) (_ map[uint16]uint8, changed bool) {
  19754. dd := d.d
  19755. if checkNil && dd.TryDecodeAsNil() {
  19756. if v != nil {
  19757. changed = true
  19758. }
  19759. return nil, changed
  19760. }
  19761. containerLen := dd.ReadMapStart()
  19762. if canChange && v == nil {
  19763. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  19764. v = make(map[uint16]uint8, xlen)
  19765. changed = true
  19766. }
  19767. var mk uint16
  19768. var mv uint8
  19769. if containerLen > 0 {
  19770. for j := 0; j < containerLen; j++ {
  19771. mk = uint16(dd.DecodeUint(16))
  19772. mv = uint8(dd.DecodeUint(8))
  19773. if v != nil {
  19774. v[mk] = mv
  19775. }
  19776. }
  19777. } else if containerLen < 0 {
  19778. for j := 0; !dd.CheckBreak(); j++ {
  19779. mk = uint16(dd.DecodeUint(16))
  19780. mv = uint8(dd.DecodeUint(8))
  19781. if v != nil {
  19782. v[mk] = mv
  19783. }
  19784. }
  19785. dd.ReadEnd()
  19786. }
  19787. return v, changed
  19788. }
  19789. func (f *decFnInfo) fastpathDecMapUint16Uint16R(rv reflect.Value) {
  19790. if rv.CanAddr() {
  19791. vp := rv.Addr().Interface().(*map[uint16]uint16)
  19792. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  19793. if changed {
  19794. *vp = v
  19795. }
  19796. } else {
  19797. v := rv.Interface().(map[uint16]uint16)
  19798. fastpathTV.DecMapUint16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  19799. }
  19800. }
  19801. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, checkNil bool, d *Decoder) {
  19802. v, changed := f.DecMapUint16Uint16V(*vp, checkNil, true, d)
  19803. if changed {
  19804. *vp = v
  19805. }
  19806. }
  19807. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, checkNil bool, canChange bool,
  19808. d *Decoder) (_ map[uint16]uint16, changed bool) {
  19809. dd := d.d
  19810. if checkNil && dd.TryDecodeAsNil() {
  19811. if v != nil {
  19812. changed = true
  19813. }
  19814. return nil, changed
  19815. }
  19816. containerLen := dd.ReadMapStart()
  19817. if canChange && v == nil {
  19818. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  19819. v = make(map[uint16]uint16, xlen)
  19820. changed = true
  19821. }
  19822. var mk uint16
  19823. var mv uint16
  19824. if containerLen > 0 {
  19825. for j := 0; j < containerLen; j++ {
  19826. mk = uint16(dd.DecodeUint(16))
  19827. mv = uint16(dd.DecodeUint(16))
  19828. if v != nil {
  19829. v[mk] = mv
  19830. }
  19831. }
  19832. } else if containerLen < 0 {
  19833. for j := 0; !dd.CheckBreak(); j++ {
  19834. mk = uint16(dd.DecodeUint(16))
  19835. mv = uint16(dd.DecodeUint(16))
  19836. if v != nil {
  19837. v[mk] = mv
  19838. }
  19839. }
  19840. dd.ReadEnd()
  19841. }
  19842. return v, changed
  19843. }
  19844. func (f *decFnInfo) fastpathDecMapUint16Uint32R(rv reflect.Value) {
  19845. if rv.CanAddr() {
  19846. vp := rv.Addr().Interface().(*map[uint16]uint32)
  19847. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  19848. if changed {
  19849. *vp = v
  19850. }
  19851. } else {
  19852. v := rv.Interface().(map[uint16]uint32)
  19853. fastpathTV.DecMapUint16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  19854. }
  19855. }
  19856. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, checkNil bool, d *Decoder) {
  19857. v, changed := f.DecMapUint16Uint32V(*vp, checkNil, true, d)
  19858. if changed {
  19859. *vp = v
  19860. }
  19861. }
  19862. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, checkNil bool, canChange bool,
  19863. d *Decoder) (_ map[uint16]uint32, changed bool) {
  19864. dd := d.d
  19865. if checkNil && dd.TryDecodeAsNil() {
  19866. if v != nil {
  19867. changed = true
  19868. }
  19869. return nil, changed
  19870. }
  19871. containerLen := dd.ReadMapStart()
  19872. if canChange && v == nil {
  19873. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  19874. v = make(map[uint16]uint32, xlen)
  19875. changed = true
  19876. }
  19877. var mk uint16
  19878. var mv uint32
  19879. if containerLen > 0 {
  19880. for j := 0; j < containerLen; j++ {
  19881. mk = uint16(dd.DecodeUint(16))
  19882. mv = uint32(dd.DecodeUint(32))
  19883. if v != nil {
  19884. v[mk] = mv
  19885. }
  19886. }
  19887. } else if containerLen < 0 {
  19888. for j := 0; !dd.CheckBreak(); j++ {
  19889. mk = uint16(dd.DecodeUint(16))
  19890. mv = uint32(dd.DecodeUint(32))
  19891. if v != nil {
  19892. v[mk] = mv
  19893. }
  19894. }
  19895. dd.ReadEnd()
  19896. }
  19897. return v, changed
  19898. }
  19899. func (f *decFnInfo) fastpathDecMapUint16Uint64R(rv reflect.Value) {
  19900. if rv.CanAddr() {
  19901. vp := rv.Addr().Interface().(*map[uint16]uint64)
  19902. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  19903. if changed {
  19904. *vp = v
  19905. }
  19906. } else {
  19907. v := rv.Interface().(map[uint16]uint64)
  19908. fastpathTV.DecMapUint16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  19909. }
  19910. }
  19911. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, checkNil bool, d *Decoder) {
  19912. v, changed := f.DecMapUint16Uint64V(*vp, checkNil, true, d)
  19913. if changed {
  19914. *vp = v
  19915. }
  19916. }
  19917. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, checkNil bool, canChange bool,
  19918. d *Decoder) (_ map[uint16]uint64, changed bool) {
  19919. dd := d.d
  19920. if checkNil && dd.TryDecodeAsNil() {
  19921. if v != nil {
  19922. changed = true
  19923. }
  19924. return nil, changed
  19925. }
  19926. containerLen := dd.ReadMapStart()
  19927. if canChange && v == nil {
  19928. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  19929. v = make(map[uint16]uint64, xlen)
  19930. changed = true
  19931. }
  19932. var mk uint16
  19933. var mv uint64
  19934. if containerLen > 0 {
  19935. for j := 0; j < containerLen; j++ {
  19936. mk = uint16(dd.DecodeUint(16))
  19937. mv = dd.DecodeUint(64)
  19938. if v != nil {
  19939. v[mk] = mv
  19940. }
  19941. }
  19942. } else if containerLen < 0 {
  19943. for j := 0; !dd.CheckBreak(); j++ {
  19944. mk = uint16(dd.DecodeUint(16))
  19945. mv = dd.DecodeUint(64)
  19946. if v != nil {
  19947. v[mk] = mv
  19948. }
  19949. }
  19950. dd.ReadEnd()
  19951. }
  19952. return v, changed
  19953. }
  19954. func (f *decFnInfo) fastpathDecMapUint16UintptrR(rv reflect.Value) {
  19955. if rv.CanAddr() {
  19956. vp := rv.Addr().Interface().(*map[uint16]uintptr)
  19957. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  19958. if changed {
  19959. *vp = v
  19960. }
  19961. } else {
  19962. v := rv.Interface().(map[uint16]uintptr)
  19963. fastpathTV.DecMapUint16UintptrV(v, fastpathCheckNilFalse, false, f.d)
  19964. }
  19965. }
  19966. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, checkNil bool, d *Decoder) {
  19967. v, changed := f.DecMapUint16UintptrV(*vp, checkNil, true, d)
  19968. if changed {
  19969. *vp = v
  19970. }
  19971. }
  19972. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, checkNil bool, canChange bool,
  19973. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  19974. dd := d.d
  19975. if checkNil && dd.TryDecodeAsNil() {
  19976. if v != nil {
  19977. changed = true
  19978. }
  19979. return nil, changed
  19980. }
  19981. containerLen := dd.ReadMapStart()
  19982. if canChange && v == nil {
  19983. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  19984. v = make(map[uint16]uintptr, xlen)
  19985. changed = true
  19986. }
  19987. var mk uint16
  19988. var mv uintptr
  19989. if containerLen > 0 {
  19990. for j := 0; j < containerLen; j++ {
  19991. mk = uint16(dd.DecodeUint(16))
  19992. mv = uintptr(dd.DecodeUint(uintBitsize))
  19993. if v != nil {
  19994. v[mk] = mv
  19995. }
  19996. }
  19997. } else if containerLen < 0 {
  19998. for j := 0; !dd.CheckBreak(); j++ {
  19999. mk = uint16(dd.DecodeUint(16))
  20000. mv = uintptr(dd.DecodeUint(uintBitsize))
  20001. if v != nil {
  20002. v[mk] = mv
  20003. }
  20004. }
  20005. dd.ReadEnd()
  20006. }
  20007. return v, changed
  20008. }
  20009. func (f *decFnInfo) fastpathDecMapUint16IntR(rv reflect.Value) {
  20010. if rv.CanAddr() {
  20011. vp := rv.Addr().Interface().(*map[uint16]int)
  20012. v, changed := fastpathTV.DecMapUint16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  20013. if changed {
  20014. *vp = v
  20015. }
  20016. } else {
  20017. v := rv.Interface().(map[uint16]int)
  20018. fastpathTV.DecMapUint16IntV(v, fastpathCheckNilFalse, false, f.d)
  20019. }
  20020. }
  20021. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, checkNil bool, d *Decoder) {
  20022. v, changed := f.DecMapUint16IntV(*vp, checkNil, true, d)
  20023. if changed {
  20024. *vp = v
  20025. }
  20026. }
  20027. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, checkNil bool, canChange bool,
  20028. d *Decoder) (_ map[uint16]int, changed bool) {
  20029. dd := d.d
  20030. if checkNil && dd.TryDecodeAsNil() {
  20031. if v != nil {
  20032. changed = true
  20033. }
  20034. return nil, changed
  20035. }
  20036. containerLen := dd.ReadMapStart()
  20037. if canChange && v == nil {
  20038. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20039. v = make(map[uint16]int, xlen)
  20040. changed = true
  20041. }
  20042. var mk uint16
  20043. var mv int
  20044. if containerLen > 0 {
  20045. for j := 0; j < containerLen; j++ {
  20046. mk = uint16(dd.DecodeUint(16))
  20047. mv = int(dd.DecodeInt(intBitsize))
  20048. if v != nil {
  20049. v[mk] = mv
  20050. }
  20051. }
  20052. } else if containerLen < 0 {
  20053. for j := 0; !dd.CheckBreak(); j++ {
  20054. mk = uint16(dd.DecodeUint(16))
  20055. mv = int(dd.DecodeInt(intBitsize))
  20056. if v != nil {
  20057. v[mk] = mv
  20058. }
  20059. }
  20060. dd.ReadEnd()
  20061. }
  20062. return v, changed
  20063. }
  20064. func (f *decFnInfo) fastpathDecMapUint16Int8R(rv reflect.Value) {
  20065. if rv.CanAddr() {
  20066. vp := rv.Addr().Interface().(*map[uint16]int8)
  20067. v, changed := fastpathTV.DecMapUint16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  20068. if changed {
  20069. *vp = v
  20070. }
  20071. } else {
  20072. v := rv.Interface().(map[uint16]int8)
  20073. fastpathTV.DecMapUint16Int8V(v, fastpathCheckNilFalse, false, f.d)
  20074. }
  20075. }
  20076. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, checkNil bool, d *Decoder) {
  20077. v, changed := f.DecMapUint16Int8V(*vp, checkNil, true, d)
  20078. if changed {
  20079. *vp = v
  20080. }
  20081. }
  20082. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, checkNil bool, canChange bool,
  20083. d *Decoder) (_ map[uint16]int8, changed bool) {
  20084. dd := d.d
  20085. if checkNil && dd.TryDecodeAsNil() {
  20086. if v != nil {
  20087. changed = true
  20088. }
  20089. return nil, changed
  20090. }
  20091. containerLen := dd.ReadMapStart()
  20092. if canChange && v == nil {
  20093. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  20094. v = make(map[uint16]int8, xlen)
  20095. changed = true
  20096. }
  20097. var mk uint16
  20098. var mv int8
  20099. if containerLen > 0 {
  20100. for j := 0; j < containerLen; j++ {
  20101. mk = uint16(dd.DecodeUint(16))
  20102. mv = int8(dd.DecodeInt(8))
  20103. if v != nil {
  20104. v[mk] = mv
  20105. }
  20106. }
  20107. } else if containerLen < 0 {
  20108. for j := 0; !dd.CheckBreak(); j++ {
  20109. mk = uint16(dd.DecodeUint(16))
  20110. mv = int8(dd.DecodeInt(8))
  20111. if v != nil {
  20112. v[mk] = mv
  20113. }
  20114. }
  20115. dd.ReadEnd()
  20116. }
  20117. return v, changed
  20118. }
  20119. func (f *decFnInfo) fastpathDecMapUint16Int16R(rv reflect.Value) {
  20120. if rv.CanAddr() {
  20121. vp := rv.Addr().Interface().(*map[uint16]int16)
  20122. v, changed := fastpathTV.DecMapUint16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  20123. if changed {
  20124. *vp = v
  20125. }
  20126. } else {
  20127. v := rv.Interface().(map[uint16]int16)
  20128. fastpathTV.DecMapUint16Int16V(v, fastpathCheckNilFalse, false, f.d)
  20129. }
  20130. }
  20131. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, checkNil bool, d *Decoder) {
  20132. v, changed := f.DecMapUint16Int16V(*vp, checkNil, true, d)
  20133. if changed {
  20134. *vp = v
  20135. }
  20136. }
  20137. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, checkNil bool, canChange bool,
  20138. d *Decoder) (_ map[uint16]int16, changed bool) {
  20139. dd := d.d
  20140. if checkNil && dd.TryDecodeAsNil() {
  20141. if v != nil {
  20142. changed = true
  20143. }
  20144. return nil, changed
  20145. }
  20146. containerLen := dd.ReadMapStart()
  20147. if canChange && v == nil {
  20148. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  20149. v = make(map[uint16]int16, xlen)
  20150. changed = true
  20151. }
  20152. var mk uint16
  20153. var mv int16
  20154. if containerLen > 0 {
  20155. for j := 0; j < containerLen; j++ {
  20156. mk = uint16(dd.DecodeUint(16))
  20157. mv = int16(dd.DecodeInt(16))
  20158. if v != nil {
  20159. v[mk] = mv
  20160. }
  20161. }
  20162. } else if containerLen < 0 {
  20163. for j := 0; !dd.CheckBreak(); j++ {
  20164. mk = uint16(dd.DecodeUint(16))
  20165. mv = int16(dd.DecodeInt(16))
  20166. if v != nil {
  20167. v[mk] = mv
  20168. }
  20169. }
  20170. dd.ReadEnd()
  20171. }
  20172. return v, changed
  20173. }
  20174. func (f *decFnInfo) fastpathDecMapUint16Int32R(rv reflect.Value) {
  20175. if rv.CanAddr() {
  20176. vp := rv.Addr().Interface().(*map[uint16]int32)
  20177. v, changed := fastpathTV.DecMapUint16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  20178. if changed {
  20179. *vp = v
  20180. }
  20181. } else {
  20182. v := rv.Interface().(map[uint16]int32)
  20183. fastpathTV.DecMapUint16Int32V(v, fastpathCheckNilFalse, false, f.d)
  20184. }
  20185. }
  20186. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, checkNil bool, d *Decoder) {
  20187. v, changed := f.DecMapUint16Int32V(*vp, checkNil, true, d)
  20188. if changed {
  20189. *vp = v
  20190. }
  20191. }
  20192. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, checkNil bool, canChange bool,
  20193. d *Decoder) (_ map[uint16]int32, changed bool) {
  20194. dd := d.d
  20195. if checkNil && dd.TryDecodeAsNil() {
  20196. if v != nil {
  20197. changed = true
  20198. }
  20199. return nil, changed
  20200. }
  20201. containerLen := dd.ReadMapStart()
  20202. if canChange && v == nil {
  20203. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  20204. v = make(map[uint16]int32, xlen)
  20205. changed = true
  20206. }
  20207. var mk uint16
  20208. var mv int32
  20209. if containerLen > 0 {
  20210. for j := 0; j < containerLen; j++ {
  20211. mk = uint16(dd.DecodeUint(16))
  20212. mv = int32(dd.DecodeInt(32))
  20213. if v != nil {
  20214. v[mk] = mv
  20215. }
  20216. }
  20217. } else if containerLen < 0 {
  20218. for j := 0; !dd.CheckBreak(); j++ {
  20219. mk = uint16(dd.DecodeUint(16))
  20220. mv = int32(dd.DecodeInt(32))
  20221. if v != nil {
  20222. v[mk] = mv
  20223. }
  20224. }
  20225. dd.ReadEnd()
  20226. }
  20227. return v, changed
  20228. }
  20229. func (f *decFnInfo) fastpathDecMapUint16Int64R(rv reflect.Value) {
  20230. if rv.CanAddr() {
  20231. vp := rv.Addr().Interface().(*map[uint16]int64)
  20232. v, changed := fastpathTV.DecMapUint16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  20233. if changed {
  20234. *vp = v
  20235. }
  20236. } else {
  20237. v := rv.Interface().(map[uint16]int64)
  20238. fastpathTV.DecMapUint16Int64V(v, fastpathCheckNilFalse, false, f.d)
  20239. }
  20240. }
  20241. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, checkNil bool, d *Decoder) {
  20242. v, changed := f.DecMapUint16Int64V(*vp, checkNil, true, d)
  20243. if changed {
  20244. *vp = v
  20245. }
  20246. }
  20247. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, checkNil bool, canChange bool,
  20248. d *Decoder) (_ map[uint16]int64, changed bool) {
  20249. dd := d.d
  20250. if checkNil && dd.TryDecodeAsNil() {
  20251. if v != nil {
  20252. changed = true
  20253. }
  20254. return nil, changed
  20255. }
  20256. containerLen := dd.ReadMapStart()
  20257. if canChange && v == nil {
  20258. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20259. v = make(map[uint16]int64, xlen)
  20260. changed = true
  20261. }
  20262. var mk uint16
  20263. var mv int64
  20264. if containerLen > 0 {
  20265. for j := 0; j < containerLen; j++ {
  20266. mk = uint16(dd.DecodeUint(16))
  20267. mv = dd.DecodeInt(64)
  20268. if v != nil {
  20269. v[mk] = mv
  20270. }
  20271. }
  20272. } else if containerLen < 0 {
  20273. for j := 0; !dd.CheckBreak(); j++ {
  20274. mk = uint16(dd.DecodeUint(16))
  20275. mv = dd.DecodeInt(64)
  20276. if v != nil {
  20277. v[mk] = mv
  20278. }
  20279. }
  20280. dd.ReadEnd()
  20281. }
  20282. return v, changed
  20283. }
  20284. func (f *decFnInfo) fastpathDecMapUint16Float32R(rv reflect.Value) {
  20285. if rv.CanAddr() {
  20286. vp := rv.Addr().Interface().(*map[uint16]float32)
  20287. v, changed := fastpathTV.DecMapUint16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  20288. if changed {
  20289. *vp = v
  20290. }
  20291. } else {
  20292. v := rv.Interface().(map[uint16]float32)
  20293. fastpathTV.DecMapUint16Float32V(v, fastpathCheckNilFalse, false, f.d)
  20294. }
  20295. }
  20296. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, checkNil bool, d *Decoder) {
  20297. v, changed := f.DecMapUint16Float32V(*vp, checkNil, true, d)
  20298. if changed {
  20299. *vp = v
  20300. }
  20301. }
  20302. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, checkNil bool, canChange bool,
  20303. d *Decoder) (_ map[uint16]float32, changed bool) {
  20304. dd := d.d
  20305. if checkNil && dd.TryDecodeAsNil() {
  20306. if v != nil {
  20307. changed = true
  20308. }
  20309. return nil, changed
  20310. }
  20311. containerLen := dd.ReadMapStart()
  20312. if canChange && v == nil {
  20313. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  20314. v = make(map[uint16]float32, xlen)
  20315. changed = true
  20316. }
  20317. var mk uint16
  20318. var mv float32
  20319. if containerLen > 0 {
  20320. for j := 0; j < containerLen; j++ {
  20321. mk = uint16(dd.DecodeUint(16))
  20322. mv = float32(dd.DecodeFloat(true))
  20323. if v != nil {
  20324. v[mk] = mv
  20325. }
  20326. }
  20327. } else if containerLen < 0 {
  20328. for j := 0; !dd.CheckBreak(); j++ {
  20329. mk = uint16(dd.DecodeUint(16))
  20330. mv = float32(dd.DecodeFloat(true))
  20331. if v != nil {
  20332. v[mk] = mv
  20333. }
  20334. }
  20335. dd.ReadEnd()
  20336. }
  20337. return v, changed
  20338. }
  20339. func (f *decFnInfo) fastpathDecMapUint16Float64R(rv reflect.Value) {
  20340. if rv.CanAddr() {
  20341. vp := rv.Addr().Interface().(*map[uint16]float64)
  20342. v, changed := fastpathTV.DecMapUint16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  20343. if changed {
  20344. *vp = v
  20345. }
  20346. } else {
  20347. v := rv.Interface().(map[uint16]float64)
  20348. fastpathTV.DecMapUint16Float64V(v, fastpathCheckNilFalse, false, f.d)
  20349. }
  20350. }
  20351. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, checkNil bool, d *Decoder) {
  20352. v, changed := f.DecMapUint16Float64V(*vp, checkNil, true, d)
  20353. if changed {
  20354. *vp = v
  20355. }
  20356. }
  20357. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, checkNil bool, canChange bool,
  20358. d *Decoder) (_ map[uint16]float64, changed bool) {
  20359. dd := d.d
  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. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  20369. v = make(map[uint16]float64, xlen)
  20370. changed = true
  20371. }
  20372. var mk uint16
  20373. var mv float64
  20374. if containerLen > 0 {
  20375. for j := 0; j < containerLen; j++ {
  20376. mk = uint16(dd.DecodeUint(16))
  20377. mv = dd.DecodeFloat(false)
  20378. if v != nil {
  20379. v[mk] = mv
  20380. }
  20381. }
  20382. } else if containerLen < 0 {
  20383. for j := 0; !dd.CheckBreak(); j++ {
  20384. mk = uint16(dd.DecodeUint(16))
  20385. mv = dd.DecodeFloat(false)
  20386. if v != nil {
  20387. v[mk] = mv
  20388. }
  20389. }
  20390. dd.ReadEnd()
  20391. }
  20392. return v, changed
  20393. }
  20394. func (f *decFnInfo) fastpathDecMapUint16BoolR(rv reflect.Value) {
  20395. if rv.CanAddr() {
  20396. vp := rv.Addr().Interface().(*map[uint16]bool)
  20397. v, changed := fastpathTV.DecMapUint16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  20398. if changed {
  20399. *vp = v
  20400. }
  20401. } else {
  20402. v := rv.Interface().(map[uint16]bool)
  20403. fastpathTV.DecMapUint16BoolV(v, fastpathCheckNilFalse, false, f.d)
  20404. }
  20405. }
  20406. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, checkNil bool, d *Decoder) {
  20407. v, changed := f.DecMapUint16BoolV(*vp, checkNil, true, d)
  20408. if changed {
  20409. *vp = v
  20410. }
  20411. }
  20412. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, checkNil bool, canChange bool,
  20413. d *Decoder) (_ map[uint16]bool, changed bool) {
  20414. dd := d.d
  20415. if checkNil && dd.TryDecodeAsNil() {
  20416. if v != nil {
  20417. changed = true
  20418. }
  20419. return nil, changed
  20420. }
  20421. containerLen := dd.ReadMapStart()
  20422. if canChange && v == nil {
  20423. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  20424. v = make(map[uint16]bool, xlen)
  20425. changed = true
  20426. }
  20427. var mk uint16
  20428. var mv bool
  20429. if containerLen > 0 {
  20430. for j := 0; j < containerLen; j++ {
  20431. mk = uint16(dd.DecodeUint(16))
  20432. mv = dd.DecodeBool()
  20433. if v != nil {
  20434. v[mk] = mv
  20435. }
  20436. }
  20437. } else if containerLen < 0 {
  20438. for j := 0; !dd.CheckBreak(); j++ {
  20439. mk = uint16(dd.DecodeUint(16))
  20440. mv = dd.DecodeBool()
  20441. if v != nil {
  20442. v[mk] = mv
  20443. }
  20444. }
  20445. dd.ReadEnd()
  20446. }
  20447. return v, changed
  20448. }
  20449. func (f *decFnInfo) fastpathDecMapUint32IntfR(rv reflect.Value) {
  20450. if rv.CanAddr() {
  20451. vp := rv.Addr().Interface().(*map[uint32]interface{})
  20452. v, changed := fastpathTV.DecMapUint32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  20453. if changed {
  20454. *vp = v
  20455. }
  20456. } else {
  20457. v := rv.Interface().(map[uint32]interface{})
  20458. fastpathTV.DecMapUint32IntfV(v, fastpathCheckNilFalse, false, f.d)
  20459. }
  20460. }
  20461. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, checkNil bool, d *Decoder) {
  20462. v, changed := f.DecMapUint32IntfV(*vp, checkNil, true, d)
  20463. if changed {
  20464. *vp = v
  20465. }
  20466. }
  20467. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, checkNil bool, canChange bool,
  20468. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  20469. dd := d.d
  20470. if checkNil && dd.TryDecodeAsNil() {
  20471. if v != nil {
  20472. changed = true
  20473. }
  20474. return nil, changed
  20475. }
  20476. containerLen := dd.ReadMapStart()
  20477. if canChange && v == nil {
  20478. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20479. v = make(map[uint32]interface{}, xlen)
  20480. changed = true
  20481. }
  20482. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  20483. var mk uint32
  20484. var mv interface{}
  20485. if containerLen > 0 {
  20486. for j := 0; j < containerLen; j++ {
  20487. mk = uint32(dd.DecodeUint(32))
  20488. if mapGet {
  20489. mv = v[mk]
  20490. } else {
  20491. mv = nil
  20492. }
  20493. d.decode(&mv)
  20494. if v != nil {
  20495. v[mk] = mv
  20496. }
  20497. }
  20498. } else if containerLen < 0 {
  20499. for j := 0; !dd.CheckBreak(); j++ {
  20500. mk = uint32(dd.DecodeUint(32))
  20501. if mapGet {
  20502. mv = v[mk]
  20503. } else {
  20504. mv = nil
  20505. }
  20506. d.decode(&mv)
  20507. if v != nil {
  20508. v[mk] = mv
  20509. }
  20510. }
  20511. dd.ReadEnd()
  20512. }
  20513. return v, changed
  20514. }
  20515. func (f *decFnInfo) fastpathDecMapUint32StringR(rv reflect.Value) {
  20516. if rv.CanAddr() {
  20517. vp := rv.Addr().Interface().(*map[uint32]string)
  20518. v, changed := fastpathTV.DecMapUint32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  20519. if changed {
  20520. *vp = v
  20521. }
  20522. } else {
  20523. v := rv.Interface().(map[uint32]string)
  20524. fastpathTV.DecMapUint32StringV(v, fastpathCheckNilFalse, false, f.d)
  20525. }
  20526. }
  20527. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, checkNil bool, d *Decoder) {
  20528. v, changed := f.DecMapUint32StringV(*vp, checkNil, true, d)
  20529. if changed {
  20530. *vp = v
  20531. }
  20532. }
  20533. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, checkNil bool, canChange bool,
  20534. d *Decoder) (_ map[uint32]string, changed bool) {
  20535. dd := d.d
  20536. if checkNil && dd.TryDecodeAsNil() {
  20537. if v != nil {
  20538. changed = true
  20539. }
  20540. return nil, changed
  20541. }
  20542. containerLen := dd.ReadMapStart()
  20543. if canChange && v == nil {
  20544. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20545. v = make(map[uint32]string, xlen)
  20546. changed = true
  20547. }
  20548. var mk uint32
  20549. var mv string
  20550. if containerLen > 0 {
  20551. for j := 0; j < containerLen; j++ {
  20552. mk = uint32(dd.DecodeUint(32))
  20553. mv = dd.DecodeString()
  20554. if v != nil {
  20555. v[mk] = mv
  20556. }
  20557. }
  20558. } else if containerLen < 0 {
  20559. for j := 0; !dd.CheckBreak(); j++ {
  20560. mk = uint32(dd.DecodeUint(32))
  20561. mv = dd.DecodeString()
  20562. if v != nil {
  20563. v[mk] = mv
  20564. }
  20565. }
  20566. dd.ReadEnd()
  20567. }
  20568. return v, changed
  20569. }
  20570. func (f *decFnInfo) fastpathDecMapUint32UintR(rv reflect.Value) {
  20571. if rv.CanAddr() {
  20572. vp := rv.Addr().Interface().(*map[uint32]uint)
  20573. v, changed := fastpathTV.DecMapUint32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  20574. if changed {
  20575. *vp = v
  20576. }
  20577. } else {
  20578. v := rv.Interface().(map[uint32]uint)
  20579. fastpathTV.DecMapUint32UintV(v, fastpathCheckNilFalse, false, f.d)
  20580. }
  20581. }
  20582. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, checkNil bool, d *Decoder) {
  20583. v, changed := f.DecMapUint32UintV(*vp, checkNil, true, d)
  20584. if changed {
  20585. *vp = v
  20586. }
  20587. }
  20588. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, checkNil bool, canChange bool,
  20589. d *Decoder) (_ map[uint32]uint, changed bool) {
  20590. dd := d.d
  20591. if checkNil && dd.TryDecodeAsNil() {
  20592. if v != nil {
  20593. changed = true
  20594. }
  20595. return nil, changed
  20596. }
  20597. containerLen := dd.ReadMapStart()
  20598. if canChange && v == nil {
  20599. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20600. v = make(map[uint32]uint, xlen)
  20601. changed = true
  20602. }
  20603. var mk uint32
  20604. var mv uint
  20605. if containerLen > 0 {
  20606. for j := 0; j < containerLen; j++ {
  20607. mk = uint32(dd.DecodeUint(32))
  20608. mv = uint(dd.DecodeUint(uintBitsize))
  20609. if v != nil {
  20610. v[mk] = mv
  20611. }
  20612. }
  20613. } else if containerLen < 0 {
  20614. for j := 0; !dd.CheckBreak(); j++ {
  20615. mk = uint32(dd.DecodeUint(32))
  20616. mv = uint(dd.DecodeUint(uintBitsize))
  20617. if v != nil {
  20618. v[mk] = mv
  20619. }
  20620. }
  20621. dd.ReadEnd()
  20622. }
  20623. return v, changed
  20624. }
  20625. func (f *decFnInfo) fastpathDecMapUint32Uint8R(rv reflect.Value) {
  20626. if rv.CanAddr() {
  20627. vp := rv.Addr().Interface().(*map[uint32]uint8)
  20628. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  20629. if changed {
  20630. *vp = v
  20631. }
  20632. } else {
  20633. v := rv.Interface().(map[uint32]uint8)
  20634. fastpathTV.DecMapUint32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  20635. }
  20636. }
  20637. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, checkNil bool, d *Decoder) {
  20638. v, changed := f.DecMapUint32Uint8V(*vp, checkNil, true, d)
  20639. if changed {
  20640. *vp = v
  20641. }
  20642. }
  20643. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, checkNil bool, canChange bool,
  20644. d *Decoder) (_ map[uint32]uint8, changed bool) {
  20645. dd := d.d
  20646. if checkNil && dd.TryDecodeAsNil() {
  20647. if v != nil {
  20648. changed = true
  20649. }
  20650. return nil, changed
  20651. }
  20652. containerLen := dd.ReadMapStart()
  20653. if canChange && v == nil {
  20654. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  20655. v = make(map[uint32]uint8, xlen)
  20656. changed = true
  20657. }
  20658. var mk uint32
  20659. var mv uint8
  20660. if containerLen > 0 {
  20661. for j := 0; j < containerLen; j++ {
  20662. mk = uint32(dd.DecodeUint(32))
  20663. mv = uint8(dd.DecodeUint(8))
  20664. if v != nil {
  20665. v[mk] = mv
  20666. }
  20667. }
  20668. } else if containerLen < 0 {
  20669. for j := 0; !dd.CheckBreak(); j++ {
  20670. mk = uint32(dd.DecodeUint(32))
  20671. mv = uint8(dd.DecodeUint(8))
  20672. if v != nil {
  20673. v[mk] = mv
  20674. }
  20675. }
  20676. dd.ReadEnd()
  20677. }
  20678. return v, changed
  20679. }
  20680. func (f *decFnInfo) fastpathDecMapUint32Uint16R(rv reflect.Value) {
  20681. if rv.CanAddr() {
  20682. vp := rv.Addr().Interface().(*map[uint32]uint16)
  20683. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  20684. if changed {
  20685. *vp = v
  20686. }
  20687. } else {
  20688. v := rv.Interface().(map[uint32]uint16)
  20689. fastpathTV.DecMapUint32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  20690. }
  20691. }
  20692. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, checkNil bool, d *Decoder) {
  20693. v, changed := f.DecMapUint32Uint16V(*vp, checkNil, true, d)
  20694. if changed {
  20695. *vp = v
  20696. }
  20697. }
  20698. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, checkNil bool, canChange bool,
  20699. d *Decoder) (_ map[uint32]uint16, changed bool) {
  20700. dd := d.d
  20701. if checkNil && dd.TryDecodeAsNil() {
  20702. if v != nil {
  20703. changed = true
  20704. }
  20705. return nil, changed
  20706. }
  20707. containerLen := dd.ReadMapStart()
  20708. if canChange && v == nil {
  20709. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  20710. v = make(map[uint32]uint16, xlen)
  20711. changed = true
  20712. }
  20713. var mk uint32
  20714. var mv uint16
  20715. if containerLen > 0 {
  20716. for j := 0; j < containerLen; j++ {
  20717. mk = uint32(dd.DecodeUint(32))
  20718. mv = uint16(dd.DecodeUint(16))
  20719. if v != nil {
  20720. v[mk] = mv
  20721. }
  20722. }
  20723. } else if containerLen < 0 {
  20724. for j := 0; !dd.CheckBreak(); j++ {
  20725. mk = uint32(dd.DecodeUint(32))
  20726. mv = uint16(dd.DecodeUint(16))
  20727. if v != nil {
  20728. v[mk] = mv
  20729. }
  20730. }
  20731. dd.ReadEnd()
  20732. }
  20733. return v, changed
  20734. }
  20735. func (f *decFnInfo) fastpathDecMapUint32Uint32R(rv reflect.Value) {
  20736. if rv.CanAddr() {
  20737. vp := rv.Addr().Interface().(*map[uint32]uint32)
  20738. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  20739. if changed {
  20740. *vp = v
  20741. }
  20742. } else {
  20743. v := rv.Interface().(map[uint32]uint32)
  20744. fastpathTV.DecMapUint32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  20745. }
  20746. }
  20747. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, checkNil bool, d *Decoder) {
  20748. v, changed := f.DecMapUint32Uint32V(*vp, checkNil, true, d)
  20749. if changed {
  20750. *vp = v
  20751. }
  20752. }
  20753. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, checkNil bool, canChange bool,
  20754. d *Decoder) (_ map[uint32]uint32, changed bool) {
  20755. dd := d.d
  20756. if checkNil && dd.TryDecodeAsNil() {
  20757. if v != nil {
  20758. changed = true
  20759. }
  20760. return nil, changed
  20761. }
  20762. containerLen := dd.ReadMapStart()
  20763. if canChange && v == nil {
  20764. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  20765. v = make(map[uint32]uint32, xlen)
  20766. changed = true
  20767. }
  20768. var mk uint32
  20769. var mv uint32
  20770. if containerLen > 0 {
  20771. for j := 0; j < containerLen; j++ {
  20772. mk = uint32(dd.DecodeUint(32))
  20773. mv = uint32(dd.DecodeUint(32))
  20774. if v != nil {
  20775. v[mk] = mv
  20776. }
  20777. }
  20778. } else if containerLen < 0 {
  20779. for j := 0; !dd.CheckBreak(); j++ {
  20780. mk = uint32(dd.DecodeUint(32))
  20781. mv = uint32(dd.DecodeUint(32))
  20782. if v != nil {
  20783. v[mk] = mv
  20784. }
  20785. }
  20786. dd.ReadEnd()
  20787. }
  20788. return v, changed
  20789. }
  20790. func (f *decFnInfo) fastpathDecMapUint32Uint64R(rv reflect.Value) {
  20791. if rv.CanAddr() {
  20792. vp := rv.Addr().Interface().(*map[uint32]uint64)
  20793. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  20794. if changed {
  20795. *vp = v
  20796. }
  20797. } else {
  20798. v := rv.Interface().(map[uint32]uint64)
  20799. fastpathTV.DecMapUint32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  20800. }
  20801. }
  20802. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, checkNil bool, d *Decoder) {
  20803. v, changed := f.DecMapUint32Uint64V(*vp, checkNil, true, d)
  20804. if changed {
  20805. *vp = v
  20806. }
  20807. }
  20808. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, checkNil bool, canChange bool,
  20809. d *Decoder) (_ map[uint32]uint64, changed bool) {
  20810. dd := d.d
  20811. if checkNil && dd.TryDecodeAsNil() {
  20812. if v != nil {
  20813. changed = true
  20814. }
  20815. return nil, changed
  20816. }
  20817. containerLen := dd.ReadMapStart()
  20818. if canChange && v == nil {
  20819. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20820. v = make(map[uint32]uint64, xlen)
  20821. changed = true
  20822. }
  20823. var mk uint32
  20824. var mv uint64
  20825. if containerLen > 0 {
  20826. for j := 0; j < containerLen; j++ {
  20827. mk = uint32(dd.DecodeUint(32))
  20828. mv = dd.DecodeUint(64)
  20829. if v != nil {
  20830. v[mk] = mv
  20831. }
  20832. }
  20833. } else if containerLen < 0 {
  20834. for j := 0; !dd.CheckBreak(); j++ {
  20835. mk = uint32(dd.DecodeUint(32))
  20836. mv = dd.DecodeUint(64)
  20837. if v != nil {
  20838. v[mk] = mv
  20839. }
  20840. }
  20841. dd.ReadEnd()
  20842. }
  20843. return v, changed
  20844. }
  20845. func (f *decFnInfo) fastpathDecMapUint32UintptrR(rv reflect.Value) {
  20846. if rv.CanAddr() {
  20847. vp := rv.Addr().Interface().(*map[uint32]uintptr)
  20848. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  20849. if changed {
  20850. *vp = v
  20851. }
  20852. } else {
  20853. v := rv.Interface().(map[uint32]uintptr)
  20854. fastpathTV.DecMapUint32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  20855. }
  20856. }
  20857. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, checkNil bool, d *Decoder) {
  20858. v, changed := f.DecMapUint32UintptrV(*vp, checkNil, true, d)
  20859. if changed {
  20860. *vp = v
  20861. }
  20862. }
  20863. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, checkNil bool, canChange bool,
  20864. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  20865. dd := d.d
  20866. if checkNil && dd.TryDecodeAsNil() {
  20867. if v != nil {
  20868. changed = true
  20869. }
  20870. return nil, changed
  20871. }
  20872. containerLen := dd.ReadMapStart()
  20873. if canChange && v == nil {
  20874. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20875. v = make(map[uint32]uintptr, xlen)
  20876. changed = true
  20877. }
  20878. var mk uint32
  20879. var mv uintptr
  20880. if containerLen > 0 {
  20881. for j := 0; j < containerLen; j++ {
  20882. mk = uint32(dd.DecodeUint(32))
  20883. mv = uintptr(dd.DecodeUint(uintBitsize))
  20884. if v != nil {
  20885. v[mk] = mv
  20886. }
  20887. }
  20888. } else if containerLen < 0 {
  20889. for j := 0; !dd.CheckBreak(); j++ {
  20890. mk = uint32(dd.DecodeUint(32))
  20891. mv = uintptr(dd.DecodeUint(uintBitsize))
  20892. if v != nil {
  20893. v[mk] = mv
  20894. }
  20895. }
  20896. dd.ReadEnd()
  20897. }
  20898. return v, changed
  20899. }
  20900. func (f *decFnInfo) fastpathDecMapUint32IntR(rv reflect.Value) {
  20901. if rv.CanAddr() {
  20902. vp := rv.Addr().Interface().(*map[uint32]int)
  20903. v, changed := fastpathTV.DecMapUint32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  20904. if changed {
  20905. *vp = v
  20906. }
  20907. } else {
  20908. v := rv.Interface().(map[uint32]int)
  20909. fastpathTV.DecMapUint32IntV(v, fastpathCheckNilFalse, false, f.d)
  20910. }
  20911. }
  20912. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, checkNil bool, d *Decoder) {
  20913. v, changed := f.DecMapUint32IntV(*vp, checkNil, true, d)
  20914. if changed {
  20915. *vp = v
  20916. }
  20917. }
  20918. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, checkNil bool, canChange bool,
  20919. d *Decoder) (_ map[uint32]int, changed bool) {
  20920. dd := d.d
  20921. if checkNil && dd.TryDecodeAsNil() {
  20922. if v != nil {
  20923. changed = true
  20924. }
  20925. return nil, changed
  20926. }
  20927. containerLen := dd.ReadMapStart()
  20928. if canChange && v == nil {
  20929. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  20930. v = make(map[uint32]int, xlen)
  20931. changed = true
  20932. }
  20933. var mk uint32
  20934. var mv int
  20935. if containerLen > 0 {
  20936. for j := 0; j < containerLen; j++ {
  20937. mk = uint32(dd.DecodeUint(32))
  20938. mv = int(dd.DecodeInt(intBitsize))
  20939. if v != nil {
  20940. v[mk] = mv
  20941. }
  20942. }
  20943. } else if containerLen < 0 {
  20944. for j := 0; !dd.CheckBreak(); j++ {
  20945. mk = uint32(dd.DecodeUint(32))
  20946. mv = int(dd.DecodeInt(intBitsize))
  20947. if v != nil {
  20948. v[mk] = mv
  20949. }
  20950. }
  20951. dd.ReadEnd()
  20952. }
  20953. return v, changed
  20954. }
  20955. func (f *decFnInfo) fastpathDecMapUint32Int8R(rv reflect.Value) {
  20956. if rv.CanAddr() {
  20957. vp := rv.Addr().Interface().(*map[uint32]int8)
  20958. v, changed := fastpathTV.DecMapUint32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  20959. if changed {
  20960. *vp = v
  20961. }
  20962. } else {
  20963. v := rv.Interface().(map[uint32]int8)
  20964. fastpathTV.DecMapUint32Int8V(v, fastpathCheckNilFalse, false, f.d)
  20965. }
  20966. }
  20967. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, checkNil bool, d *Decoder) {
  20968. v, changed := f.DecMapUint32Int8V(*vp, checkNil, true, d)
  20969. if changed {
  20970. *vp = v
  20971. }
  20972. }
  20973. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, checkNil bool, canChange bool,
  20974. d *Decoder) (_ map[uint32]int8, changed bool) {
  20975. dd := d.d
  20976. if checkNil && dd.TryDecodeAsNil() {
  20977. if v != nil {
  20978. changed = true
  20979. }
  20980. return nil, changed
  20981. }
  20982. containerLen := dd.ReadMapStart()
  20983. if canChange && v == nil {
  20984. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  20985. v = make(map[uint32]int8, xlen)
  20986. changed = true
  20987. }
  20988. var mk uint32
  20989. var mv int8
  20990. if containerLen > 0 {
  20991. for j := 0; j < containerLen; j++ {
  20992. mk = uint32(dd.DecodeUint(32))
  20993. mv = int8(dd.DecodeInt(8))
  20994. if v != nil {
  20995. v[mk] = mv
  20996. }
  20997. }
  20998. } else if containerLen < 0 {
  20999. for j := 0; !dd.CheckBreak(); j++ {
  21000. mk = uint32(dd.DecodeUint(32))
  21001. mv = int8(dd.DecodeInt(8))
  21002. if v != nil {
  21003. v[mk] = mv
  21004. }
  21005. }
  21006. dd.ReadEnd()
  21007. }
  21008. return v, changed
  21009. }
  21010. func (f *decFnInfo) fastpathDecMapUint32Int16R(rv reflect.Value) {
  21011. if rv.CanAddr() {
  21012. vp := rv.Addr().Interface().(*map[uint32]int16)
  21013. v, changed := fastpathTV.DecMapUint32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  21014. if changed {
  21015. *vp = v
  21016. }
  21017. } else {
  21018. v := rv.Interface().(map[uint32]int16)
  21019. fastpathTV.DecMapUint32Int16V(v, fastpathCheckNilFalse, false, f.d)
  21020. }
  21021. }
  21022. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, checkNil bool, d *Decoder) {
  21023. v, changed := f.DecMapUint32Int16V(*vp, checkNil, true, d)
  21024. if changed {
  21025. *vp = v
  21026. }
  21027. }
  21028. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, checkNil bool, canChange bool,
  21029. d *Decoder) (_ map[uint32]int16, changed bool) {
  21030. dd := d.d
  21031. if checkNil && dd.TryDecodeAsNil() {
  21032. if v != nil {
  21033. changed = true
  21034. }
  21035. return nil, changed
  21036. }
  21037. containerLen := dd.ReadMapStart()
  21038. if canChange && v == nil {
  21039. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21040. v = make(map[uint32]int16, xlen)
  21041. changed = true
  21042. }
  21043. var mk uint32
  21044. var mv int16
  21045. if containerLen > 0 {
  21046. for j := 0; j < containerLen; j++ {
  21047. mk = uint32(dd.DecodeUint(32))
  21048. mv = int16(dd.DecodeInt(16))
  21049. if v != nil {
  21050. v[mk] = mv
  21051. }
  21052. }
  21053. } else if containerLen < 0 {
  21054. for j := 0; !dd.CheckBreak(); j++ {
  21055. mk = uint32(dd.DecodeUint(32))
  21056. mv = int16(dd.DecodeInt(16))
  21057. if v != nil {
  21058. v[mk] = mv
  21059. }
  21060. }
  21061. dd.ReadEnd()
  21062. }
  21063. return v, changed
  21064. }
  21065. func (f *decFnInfo) fastpathDecMapUint32Int32R(rv reflect.Value) {
  21066. if rv.CanAddr() {
  21067. vp := rv.Addr().Interface().(*map[uint32]int32)
  21068. v, changed := fastpathTV.DecMapUint32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  21069. if changed {
  21070. *vp = v
  21071. }
  21072. } else {
  21073. v := rv.Interface().(map[uint32]int32)
  21074. fastpathTV.DecMapUint32Int32V(v, fastpathCheckNilFalse, false, f.d)
  21075. }
  21076. }
  21077. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, checkNil bool, d *Decoder) {
  21078. v, changed := f.DecMapUint32Int32V(*vp, checkNil, true, d)
  21079. if changed {
  21080. *vp = v
  21081. }
  21082. }
  21083. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, checkNil bool, canChange bool,
  21084. d *Decoder) (_ map[uint32]int32, changed bool) {
  21085. dd := d.d
  21086. if checkNil && dd.TryDecodeAsNil() {
  21087. if v != nil {
  21088. changed = true
  21089. }
  21090. return nil, changed
  21091. }
  21092. containerLen := dd.ReadMapStart()
  21093. if canChange && v == nil {
  21094. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21095. v = make(map[uint32]int32, xlen)
  21096. changed = true
  21097. }
  21098. var mk uint32
  21099. var mv int32
  21100. if containerLen > 0 {
  21101. for j := 0; j < containerLen; j++ {
  21102. mk = uint32(dd.DecodeUint(32))
  21103. mv = int32(dd.DecodeInt(32))
  21104. if v != nil {
  21105. v[mk] = mv
  21106. }
  21107. }
  21108. } else if containerLen < 0 {
  21109. for j := 0; !dd.CheckBreak(); j++ {
  21110. mk = uint32(dd.DecodeUint(32))
  21111. mv = int32(dd.DecodeInt(32))
  21112. if v != nil {
  21113. v[mk] = mv
  21114. }
  21115. }
  21116. dd.ReadEnd()
  21117. }
  21118. return v, changed
  21119. }
  21120. func (f *decFnInfo) fastpathDecMapUint32Int64R(rv reflect.Value) {
  21121. if rv.CanAddr() {
  21122. vp := rv.Addr().Interface().(*map[uint32]int64)
  21123. v, changed := fastpathTV.DecMapUint32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  21124. if changed {
  21125. *vp = v
  21126. }
  21127. } else {
  21128. v := rv.Interface().(map[uint32]int64)
  21129. fastpathTV.DecMapUint32Int64V(v, fastpathCheckNilFalse, false, f.d)
  21130. }
  21131. }
  21132. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, checkNil bool, d *Decoder) {
  21133. v, changed := f.DecMapUint32Int64V(*vp, checkNil, true, d)
  21134. if changed {
  21135. *vp = v
  21136. }
  21137. }
  21138. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, checkNil bool, canChange bool,
  21139. d *Decoder) (_ map[uint32]int64, changed bool) {
  21140. dd := d.d
  21141. if checkNil && dd.TryDecodeAsNil() {
  21142. if v != nil {
  21143. changed = true
  21144. }
  21145. return nil, changed
  21146. }
  21147. containerLen := dd.ReadMapStart()
  21148. if canChange && v == nil {
  21149. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21150. v = make(map[uint32]int64, xlen)
  21151. changed = true
  21152. }
  21153. var mk uint32
  21154. var mv int64
  21155. if containerLen > 0 {
  21156. for j := 0; j < containerLen; j++ {
  21157. mk = uint32(dd.DecodeUint(32))
  21158. mv = dd.DecodeInt(64)
  21159. if v != nil {
  21160. v[mk] = mv
  21161. }
  21162. }
  21163. } else if containerLen < 0 {
  21164. for j := 0; !dd.CheckBreak(); j++ {
  21165. mk = uint32(dd.DecodeUint(32))
  21166. mv = dd.DecodeInt(64)
  21167. if v != nil {
  21168. v[mk] = mv
  21169. }
  21170. }
  21171. dd.ReadEnd()
  21172. }
  21173. return v, changed
  21174. }
  21175. func (f *decFnInfo) fastpathDecMapUint32Float32R(rv reflect.Value) {
  21176. if rv.CanAddr() {
  21177. vp := rv.Addr().Interface().(*map[uint32]float32)
  21178. v, changed := fastpathTV.DecMapUint32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  21179. if changed {
  21180. *vp = v
  21181. }
  21182. } else {
  21183. v := rv.Interface().(map[uint32]float32)
  21184. fastpathTV.DecMapUint32Float32V(v, fastpathCheckNilFalse, false, f.d)
  21185. }
  21186. }
  21187. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, checkNil bool, d *Decoder) {
  21188. v, changed := f.DecMapUint32Float32V(*vp, checkNil, true, d)
  21189. if changed {
  21190. *vp = v
  21191. }
  21192. }
  21193. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, checkNil bool, canChange bool,
  21194. d *Decoder) (_ map[uint32]float32, changed bool) {
  21195. dd := d.d
  21196. if checkNil && dd.TryDecodeAsNil() {
  21197. if v != nil {
  21198. changed = true
  21199. }
  21200. return nil, changed
  21201. }
  21202. containerLen := dd.ReadMapStart()
  21203. if canChange && v == nil {
  21204. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21205. v = make(map[uint32]float32, xlen)
  21206. changed = true
  21207. }
  21208. var mk uint32
  21209. var mv float32
  21210. if containerLen > 0 {
  21211. for j := 0; j < containerLen; j++ {
  21212. mk = uint32(dd.DecodeUint(32))
  21213. mv = float32(dd.DecodeFloat(true))
  21214. if v != nil {
  21215. v[mk] = mv
  21216. }
  21217. }
  21218. } else if containerLen < 0 {
  21219. for j := 0; !dd.CheckBreak(); j++ {
  21220. mk = uint32(dd.DecodeUint(32))
  21221. mv = float32(dd.DecodeFloat(true))
  21222. if v != nil {
  21223. v[mk] = mv
  21224. }
  21225. }
  21226. dd.ReadEnd()
  21227. }
  21228. return v, changed
  21229. }
  21230. func (f *decFnInfo) fastpathDecMapUint32Float64R(rv reflect.Value) {
  21231. if rv.CanAddr() {
  21232. vp := rv.Addr().Interface().(*map[uint32]float64)
  21233. v, changed := fastpathTV.DecMapUint32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  21234. if changed {
  21235. *vp = v
  21236. }
  21237. } else {
  21238. v := rv.Interface().(map[uint32]float64)
  21239. fastpathTV.DecMapUint32Float64V(v, fastpathCheckNilFalse, false, f.d)
  21240. }
  21241. }
  21242. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, checkNil bool, d *Decoder) {
  21243. v, changed := f.DecMapUint32Float64V(*vp, checkNil, true, d)
  21244. if changed {
  21245. *vp = v
  21246. }
  21247. }
  21248. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, checkNil bool, canChange bool,
  21249. d *Decoder) (_ map[uint32]float64, changed bool) {
  21250. dd := d.d
  21251. if checkNil && dd.TryDecodeAsNil() {
  21252. if v != nil {
  21253. changed = true
  21254. }
  21255. return nil, changed
  21256. }
  21257. containerLen := dd.ReadMapStart()
  21258. if canChange && v == nil {
  21259. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21260. v = make(map[uint32]float64, xlen)
  21261. changed = true
  21262. }
  21263. var mk uint32
  21264. var mv float64
  21265. if containerLen > 0 {
  21266. for j := 0; j < containerLen; j++ {
  21267. mk = uint32(dd.DecodeUint(32))
  21268. mv = dd.DecodeFloat(false)
  21269. if v != nil {
  21270. v[mk] = mv
  21271. }
  21272. }
  21273. } else if containerLen < 0 {
  21274. for j := 0; !dd.CheckBreak(); j++ {
  21275. mk = uint32(dd.DecodeUint(32))
  21276. mv = dd.DecodeFloat(false)
  21277. if v != nil {
  21278. v[mk] = mv
  21279. }
  21280. }
  21281. dd.ReadEnd()
  21282. }
  21283. return v, changed
  21284. }
  21285. func (f *decFnInfo) fastpathDecMapUint32BoolR(rv reflect.Value) {
  21286. if rv.CanAddr() {
  21287. vp := rv.Addr().Interface().(*map[uint32]bool)
  21288. v, changed := fastpathTV.DecMapUint32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  21289. if changed {
  21290. *vp = v
  21291. }
  21292. } else {
  21293. v := rv.Interface().(map[uint32]bool)
  21294. fastpathTV.DecMapUint32BoolV(v, fastpathCheckNilFalse, false, f.d)
  21295. }
  21296. }
  21297. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, checkNil bool, d *Decoder) {
  21298. v, changed := f.DecMapUint32BoolV(*vp, checkNil, true, d)
  21299. if changed {
  21300. *vp = v
  21301. }
  21302. }
  21303. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, checkNil bool, canChange bool,
  21304. d *Decoder) (_ map[uint32]bool, changed bool) {
  21305. dd := d.d
  21306. if checkNil && dd.TryDecodeAsNil() {
  21307. if v != nil {
  21308. changed = true
  21309. }
  21310. return nil, changed
  21311. }
  21312. containerLen := dd.ReadMapStart()
  21313. if canChange && v == nil {
  21314. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21315. v = make(map[uint32]bool, xlen)
  21316. changed = true
  21317. }
  21318. var mk uint32
  21319. var mv bool
  21320. if containerLen > 0 {
  21321. for j := 0; j < containerLen; j++ {
  21322. mk = uint32(dd.DecodeUint(32))
  21323. mv = dd.DecodeBool()
  21324. if v != nil {
  21325. v[mk] = mv
  21326. }
  21327. }
  21328. } else if containerLen < 0 {
  21329. for j := 0; !dd.CheckBreak(); j++ {
  21330. mk = uint32(dd.DecodeUint(32))
  21331. mv = dd.DecodeBool()
  21332. if v != nil {
  21333. v[mk] = mv
  21334. }
  21335. }
  21336. dd.ReadEnd()
  21337. }
  21338. return v, changed
  21339. }
  21340. func (f *decFnInfo) fastpathDecMapUint64IntfR(rv reflect.Value) {
  21341. if rv.CanAddr() {
  21342. vp := rv.Addr().Interface().(*map[uint64]interface{})
  21343. v, changed := fastpathTV.DecMapUint64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  21344. if changed {
  21345. *vp = v
  21346. }
  21347. } else {
  21348. v := rv.Interface().(map[uint64]interface{})
  21349. fastpathTV.DecMapUint64IntfV(v, fastpathCheckNilFalse, false, f.d)
  21350. }
  21351. }
  21352. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, checkNil bool, d *Decoder) {
  21353. v, changed := f.DecMapUint64IntfV(*vp, checkNil, true, d)
  21354. if changed {
  21355. *vp = v
  21356. }
  21357. }
  21358. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, checkNil bool, canChange bool,
  21359. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  21360. dd := d.d
  21361. if checkNil && dd.TryDecodeAsNil() {
  21362. if v != nil {
  21363. changed = true
  21364. }
  21365. return nil, changed
  21366. }
  21367. containerLen := dd.ReadMapStart()
  21368. if canChange && v == nil {
  21369. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21370. v = make(map[uint64]interface{}, xlen)
  21371. changed = true
  21372. }
  21373. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  21374. var mk uint64
  21375. var mv interface{}
  21376. if containerLen > 0 {
  21377. for j := 0; j < containerLen; j++ {
  21378. mk = dd.DecodeUint(64)
  21379. if mapGet {
  21380. mv = v[mk]
  21381. } else {
  21382. mv = nil
  21383. }
  21384. d.decode(&mv)
  21385. if v != nil {
  21386. v[mk] = mv
  21387. }
  21388. }
  21389. } else if containerLen < 0 {
  21390. for j := 0; !dd.CheckBreak(); j++ {
  21391. mk = dd.DecodeUint(64)
  21392. if mapGet {
  21393. mv = v[mk]
  21394. } else {
  21395. mv = nil
  21396. }
  21397. d.decode(&mv)
  21398. if v != nil {
  21399. v[mk] = mv
  21400. }
  21401. }
  21402. dd.ReadEnd()
  21403. }
  21404. return v, changed
  21405. }
  21406. func (f *decFnInfo) fastpathDecMapUint64StringR(rv reflect.Value) {
  21407. if rv.CanAddr() {
  21408. vp := rv.Addr().Interface().(*map[uint64]string)
  21409. v, changed := fastpathTV.DecMapUint64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  21410. if changed {
  21411. *vp = v
  21412. }
  21413. } else {
  21414. v := rv.Interface().(map[uint64]string)
  21415. fastpathTV.DecMapUint64StringV(v, fastpathCheckNilFalse, false, f.d)
  21416. }
  21417. }
  21418. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, checkNil bool, d *Decoder) {
  21419. v, changed := f.DecMapUint64StringV(*vp, checkNil, true, d)
  21420. if changed {
  21421. *vp = v
  21422. }
  21423. }
  21424. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, checkNil bool, canChange bool,
  21425. d *Decoder) (_ map[uint64]string, changed bool) {
  21426. dd := d.d
  21427. if checkNil && dd.TryDecodeAsNil() {
  21428. if v != nil {
  21429. changed = true
  21430. }
  21431. return nil, changed
  21432. }
  21433. containerLen := dd.ReadMapStart()
  21434. if canChange && v == nil {
  21435. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21436. v = make(map[uint64]string, xlen)
  21437. changed = true
  21438. }
  21439. var mk uint64
  21440. var mv string
  21441. if containerLen > 0 {
  21442. for j := 0; j < containerLen; j++ {
  21443. mk = dd.DecodeUint(64)
  21444. mv = dd.DecodeString()
  21445. if v != nil {
  21446. v[mk] = mv
  21447. }
  21448. }
  21449. } else if containerLen < 0 {
  21450. for j := 0; !dd.CheckBreak(); j++ {
  21451. mk = dd.DecodeUint(64)
  21452. mv = dd.DecodeString()
  21453. if v != nil {
  21454. v[mk] = mv
  21455. }
  21456. }
  21457. dd.ReadEnd()
  21458. }
  21459. return v, changed
  21460. }
  21461. func (f *decFnInfo) fastpathDecMapUint64UintR(rv reflect.Value) {
  21462. if rv.CanAddr() {
  21463. vp := rv.Addr().Interface().(*map[uint64]uint)
  21464. v, changed := fastpathTV.DecMapUint64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  21465. if changed {
  21466. *vp = v
  21467. }
  21468. } else {
  21469. v := rv.Interface().(map[uint64]uint)
  21470. fastpathTV.DecMapUint64UintV(v, fastpathCheckNilFalse, false, f.d)
  21471. }
  21472. }
  21473. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, checkNil bool, d *Decoder) {
  21474. v, changed := f.DecMapUint64UintV(*vp, checkNil, true, d)
  21475. if changed {
  21476. *vp = v
  21477. }
  21478. }
  21479. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, checkNil bool, canChange bool,
  21480. d *Decoder) (_ map[uint64]uint, changed bool) {
  21481. dd := d.d
  21482. if checkNil && dd.TryDecodeAsNil() {
  21483. if v != nil {
  21484. changed = true
  21485. }
  21486. return nil, changed
  21487. }
  21488. containerLen := dd.ReadMapStart()
  21489. if canChange && v == nil {
  21490. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21491. v = make(map[uint64]uint, xlen)
  21492. changed = true
  21493. }
  21494. var mk uint64
  21495. var mv uint
  21496. if containerLen > 0 {
  21497. for j := 0; j < containerLen; j++ {
  21498. mk = dd.DecodeUint(64)
  21499. mv = uint(dd.DecodeUint(uintBitsize))
  21500. if v != nil {
  21501. v[mk] = mv
  21502. }
  21503. }
  21504. } else if containerLen < 0 {
  21505. for j := 0; !dd.CheckBreak(); j++ {
  21506. mk = dd.DecodeUint(64)
  21507. mv = uint(dd.DecodeUint(uintBitsize))
  21508. if v != nil {
  21509. v[mk] = mv
  21510. }
  21511. }
  21512. dd.ReadEnd()
  21513. }
  21514. return v, changed
  21515. }
  21516. func (f *decFnInfo) fastpathDecMapUint64Uint8R(rv reflect.Value) {
  21517. if rv.CanAddr() {
  21518. vp := rv.Addr().Interface().(*map[uint64]uint8)
  21519. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  21520. if changed {
  21521. *vp = v
  21522. }
  21523. } else {
  21524. v := rv.Interface().(map[uint64]uint8)
  21525. fastpathTV.DecMapUint64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  21526. }
  21527. }
  21528. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, checkNil bool, d *Decoder) {
  21529. v, changed := f.DecMapUint64Uint8V(*vp, checkNil, true, d)
  21530. if changed {
  21531. *vp = v
  21532. }
  21533. }
  21534. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, checkNil bool, canChange bool,
  21535. d *Decoder) (_ map[uint64]uint8, changed bool) {
  21536. dd := d.d
  21537. if checkNil && dd.TryDecodeAsNil() {
  21538. if v != nil {
  21539. changed = true
  21540. }
  21541. return nil, changed
  21542. }
  21543. containerLen := dd.ReadMapStart()
  21544. if canChange && v == nil {
  21545. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21546. v = make(map[uint64]uint8, xlen)
  21547. changed = true
  21548. }
  21549. var mk uint64
  21550. var mv uint8
  21551. if containerLen > 0 {
  21552. for j := 0; j < containerLen; j++ {
  21553. mk = dd.DecodeUint(64)
  21554. mv = uint8(dd.DecodeUint(8))
  21555. if v != nil {
  21556. v[mk] = mv
  21557. }
  21558. }
  21559. } else if containerLen < 0 {
  21560. for j := 0; !dd.CheckBreak(); j++ {
  21561. mk = dd.DecodeUint(64)
  21562. mv = uint8(dd.DecodeUint(8))
  21563. if v != nil {
  21564. v[mk] = mv
  21565. }
  21566. }
  21567. dd.ReadEnd()
  21568. }
  21569. return v, changed
  21570. }
  21571. func (f *decFnInfo) fastpathDecMapUint64Uint16R(rv reflect.Value) {
  21572. if rv.CanAddr() {
  21573. vp := rv.Addr().Interface().(*map[uint64]uint16)
  21574. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  21575. if changed {
  21576. *vp = v
  21577. }
  21578. } else {
  21579. v := rv.Interface().(map[uint64]uint16)
  21580. fastpathTV.DecMapUint64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  21581. }
  21582. }
  21583. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, checkNil bool, d *Decoder) {
  21584. v, changed := f.DecMapUint64Uint16V(*vp, checkNil, true, d)
  21585. if changed {
  21586. *vp = v
  21587. }
  21588. }
  21589. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, checkNil bool, canChange bool,
  21590. d *Decoder) (_ map[uint64]uint16, changed bool) {
  21591. dd := d.d
  21592. if checkNil && dd.TryDecodeAsNil() {
  21593. if v != nil {
  21594. changed = true
  21595. }
  21596. return nil, changed
  21597. }
  21598. containerLen := dd.ReadMapStart()
  21599. if canChange && v == nil {
  21600. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21601. v = make(map[uint64]uint16, xlen)
  21602. changed = true
  21603. }
  21604. var mk uint64
  21605. var mv uint16
  21606. if containerLen > 0 {
  21607. for j := 0; j < containerLen; j++ {
  21608. mk = dd.DecodeUint(64)
  21609. mv = uint16(dd.DecodeUint(16))
  21610. if v != nil {
  21611. v[mk] = mv
  21612. }
  21613. }
  21614. } else if containerLen < 0 {
  21615. for j := 0; !dd.CheckBreak(); j++ {
  21616. mk = dd.DecodeUint(64)
  21617. mv = uint16(dd.DecodeUint(16))
  21618. if v != nil {
  21619. v[mk] = mv
  21620. }
  21621. }
  21622. dd.ReadEnd()
  21623. }
  21624. return v, changed
  21625. }
  21626. func (f *decFnInfo) fastpathDecMapUint64Uint32R(rv reflect.Value) {
  21627. if rv.CanAddr() {
  21628. vp := rv.Addr().Interface().(*map[uint64]uint32)
  21629. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  21630. if changed {
  21631. *vp = v
  21632. }
  21633. } else {
  21634. v := rv.Interface().(map[uint64]uint32)
  21635. fastpathTV.DecMapUint64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  21636. }
  21637. }
  21638. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, checkNil bool, d *Decoder) {
  21639. v, changed := f.DecMapUint64Uint32V(*vp, checkNil, true, d)
  21640. if changed {
  21641. *vp = v
  21642. }
  21643. }
  21644. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, checkNil bool, canChange bool,
  21645. d *Decoder) (_ map[uint64]uint32, changed bool) {
  21646. dd := d.d
  21647. if checkNil && dd.TryDecodeAsNil() {
  21648. if v != nil {
  21649. changed = true
  21650. }
  21651. return nil, changed
  21652. }
  21653. containerLen := dd.ReadMapStart()
  21654. if canChange && v == nil {
  21655. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21656. v = make(map[uint64]uint32, xlen)
  21657. changed = true
  21658. }
  21659. var mk uint64
  21660. var mv uint32
  21661. if containerLen > 0 {
  21662. for j := 0; j < containerLen; j++ {
  21663. mk = dd.DecodeUint(64)
  21664. mv = uint32(dd.DecodeUint(32))
  21665. if v != nil {
  21666. v[mk] = mv
  21667. }
  21668. }
  21669. } else if containerLen < 0 {
  21670. for j := 0; !dd.CheckBreak(); j++ {
  21671. mk = dd.DecodeUint(64)
  21672. mv = uint32(dd.DecodeUint(32))
  21673. if v != nil {
  21674. v[mk] = mv
  21675. }
  21676. }
  21677. dd.ReadEnd()
  21678. }
  21679. return v, changed
  21680. }
  21681. func (f *decFnInfo) fastpathDecMapUint64Uint64R(rv reflect.Value) {
  21682. if rv.CanAddr() {
  21683. vp := rv.Addr().Interface().(*map[uint64]uint64)
  21684. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  21685. if changed {
  21686. *vp = v
  21687. }
  21688. } else {
  21689. v := rv.Interface().(map[uint64]uint64)
  21690. fastpathTV.DecMapUint64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  21691. }
  21692. }
  21693. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, checkNil bool, d *Decoder) {
  21694. v, changed := f.DecMapUint64Uint64V(*vp, checkNil, true, d)
  21695. if changed {
  21696. *vp = v
  21697. }
  21698. }
  21699. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, checkNil bool, canChange bool,
  21700. d *Decoder) (_ map[uint64]uint64, changed bool) {
  21701. dd := d.d
  21702. if checkNil && dd.TryDecodeAsNil() {
  21703. if v != nil {
  21704. changed = true
  21705. }
  21706. return nil, changed
  21707. }
  21708. containerLen := dd.ReadMapStart()
  21709. if canChange && v == nil {
  21710. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21711. v = make(map[uint64]uint64, xlen)
  21712. changed = true
  21713. }
  21714. var mk uint64
  21715. var mv uint64
  21716. if containerLen > 0 {
  21717. for j := 0; j < containerLen; j++ {
  21718. mk = dd.DecodeUint(64)
  21719. mv = dd.DecodeUint(64)
  21720. if v != nil {
  21721. v[mk] = mv
  21722. }
  21723. }
  21724. } else if containerLen < 0 {
  21725. for j := 0; !dd.CheckBreak(); j++ {
  21726. mk = dd.DecodeUint(64)
  21727. mv = dd.DecodeUint(64)
  21728. if v != nil {
  21729. v[mk] = mv
  21730. }
  21731. }
  21732. dd.ReadEnd()
  21733. }
  21734. return v, changed
  21735. }
  21736. func (f *decFnInfo) fastpathDecMapUint64UintptrR(rv reflect.Value) {
  21737. if rv.CanAddr() {
  21738. vp := rv.Addr().Interface().(*map[uint64]uintptr)
  21739. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  21740. if changed {
  21741. *vp = v
  21742. }
  21743. } else {
  21744. v := rv.Interface().(map[uint64]uintptr)
  21745. fastpathTV.DecMapUint64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  21746. }
  21747. }
  21748. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, checkNil bool, d *Decoder) {
  21749. v, changed := f.DecMapUint64UintptrV(*vp, checkNil, true, d)
  21750. if changed {
  21751. *vp = v
  21752. }
  21753. }
  21754. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, checkNil bool, canChange bool,
  21755. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  21756. dd := d.d
  21757. if checkNil && dd.TryDecodeAsNil() {
  21758. if v != nil {
  21759. changed = true
  21760. }
  21761. return nil, changed
  21762. }
  21763. containerLen := dd.ReadMapStart()
  21764. if canChange && v == nil {
  21765. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21766. v = make(map[uint64]uintptr, xlen)
  21767. changed = true
  21768. }
  21769. var mk uint64
  21770. var mv uintptr
  21771. if containerLen > 0 {
  21772. for j := 0; j < containerLen; j++ {
  21773. mk = dd.DecodeUint(64)
  21774. mv = uintptr(dd.DecodeUint(uintBitsize))
  21775. if v != nil {
  21776. v[mk] = mv
  21777. }
  21778. }
  21779. } else if containerLen < 0 {
  21780. for j := 0; !dd.CheckBreak(); j++ {
  21781. mk = dd.DecodeUint(64)
  21782. mv = uintptr(dd.DecodeUint(uintBitsize))
  21783. if v != nil {
  21784. v[mk] = mv
  21785. }
  21786. }
  21787. dd.ReadEnd()
  21788. }
  21789. return v, changed
  21790. }
  21791. func (f *decFnInfo) fastpathDecMapUint64IntR(rv reflect.Value) {
  21792. if rv.CanAddr() {
  21793. vp := rv.Addr().Interface().(*map[uint64]int)
  21794. v, changed := fastpathTV.DecMapUint64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  21795. if changed {
  21796. *vp = v
  21797. }
  21798. } else {
  21799. v := rv.Interface().(map[uint64]int)
  21800. fastpathTV.DecMapUint64IntV(v, fastpathCheckNilFalse, false, f.d)
  21801. }
  21802. }
  21803. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, checkNil bool, d *Decoder) {
  21804. v, changed := f.DecMapUint64IntV(*vp, checkNil, true, d)
  21805. if changed {
  21806. *vp = v
  21807. }
  21808. }
  21809. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, checkNil bool, canChange bool,
  21810. d *Decoder) (_ map[uint64]int, changed bool) {
  21811. dd := d.d
  21812. if checkNil && dd.TryDecodeAsNil() {
  21813. if v != nil {
  21814. changed = true
  21815. }
  21816. return nil, changed
  21817. }
  21818. containerLen := dd.ReadMapStart()
  21819. if canChange && v == nil {
  21820. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  21821. v = make(map[uint64]int, xlen)
  21822. changed = true
  21823. }
  21824. var mk uint64
  21825. var mv int
  21826. if containerLen > 0 {
  21827. for j := 0; j < containerLen; j++ {
  21828. mk = dd.DecodeUint(64)
  21829. mv = int(dd.DecodeInt(intBitsize))
  21830. if v != nil {
  21831. v[mk] = mv
  21832. }
  21833. }
  21834. } else if containerLen < 0 {
  21835. for j := 0; !dd.CheckBreak(); j++ {
  21836. mk = dd.DecodeUint(64)
  21837. mv = int(dd.DecodeInt(intBitsize))
  21838. if v != nil {
  21839. v[mk] = mv
  21840. }
  21841. }
  21842. dd.ReadEnd()
  21843. }
  21844. return v, changed
  21845. }
  21846. func (f *decFnInfo) fastpathDecMapUint64Int8R(rv reflect.Value) {
  21847. if rv.CanAddr() {
  21848. vp := rv.Addr().Interface().(*map[uint64]int8)
  21849. v, changed := fastpathTV.DecMapUint64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  21850. if changed {
  21851. *vp = v
  21852. }
  21853. } else {
  21854. v := rv.Interface().(map[uint64]int8)
  21855. fastpathTV.DecMapUint64Int8V(v, fastpathCheckNilFalse, false, f.d)
  21856. }
  21857. }
  21858. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, checkNil bool, d *Decoder) {
  21859. v, changed := f.DecMapUint64Int8V(*vp, checkNil, true, d)
  21860. if changed {
  21861. *vp = v
  21862. }
  21863. }
  21864. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, checkNil bool, canChange bool,
  21865. d *Decoder) (_ map[uint64]int8, changed bool) {
  21866. dd := d.d
  21867. if checkNil && dd.TryDecodeAsNil() {
  21868. if v != nil {
  21869. changed = true
  21870. }
  21871. return nil, changed
  21872. }
  21873. containerLen := dd.ReadMapStart()
  21874. if canChange && v == nil {
  21875. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  21876. v = make(map[uint64]int8, xlen)
  21877. changed = true
  21878. }
  21879. var mk uint64
  21880. var mv int8
  21881. if containerLen > 0 {
  21882. for j := 0; j < containerLen; j++ {
  21883. mk = dd.DecodeUint(64)
  21884. mv = int8(dd.DecodeInt(8))
  21885. if v != nil {
  21886. v[mk] = mv
  21887. }
  21888. }
  21889. } else if containerLen < 0 {
  21890. for j := 0; !dd.CheckBreak(); j++ {
  21891. mk = dd.DecodeUint(64)
  21892. mv = int8(dd.DecodeInt(8))
  21893. if v != nil {
  21894. v[mk] = mv
  21895. }
  21896. }
  21897. dd.ReadEnd()
  21898. }
  21899. return v, changed
  21900. }
  21901. func (f *decFnInfo) fastpathDecMapUint64Int16R(rv reflect.Value) {
  21902. if rv.CanAddr() {
  21903. vp := rv.Addr().Interface().(*map[uint64]int16)
  21904. v, changed := fastpathTV.DecMapUint64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  21905. if changed {
  21906. *vp = v
  21907. }
  21908. } else {
  21909. v := rv.Interface().(map[uint64]int16)
  21910. fastpathTV.DecMapUint64Int16V(v, fastpathCheckNilFalse, false, f.d)
  21911. }
  21912. }
  21913. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, checkNil bool, d *Decoder) {
  21914. v, changed := f.DecMapUint64Int16V(*vp, checkNil, true, d)
  21915. if changed {
  21916. *vp = v
  21917. }
  21918. }
  21919. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, checkNil bool, canChange bool,
  21920. d *Decoder) (_ map[uint64]int16, changed bool) {
  21921. dd := d.d
  21922. if checkNil && dd.TryDecodeAsNil() {
  21923. if v != nil {
  21924. changed = true
  21925. }
  21926. return nil, changed
  21927. }
  21928. containerLen := dd.ReadMapStart()
  21929. if canChange && v == nil {
  21930. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  21931. v = make(map[uint64]int16, xlen)
  21932. changed = true
  21933. }
  21934. var mk uint64
  21935. var mv int16
  21936. if containerLen > 0 {
  21937. for j := 0; j < containerLen; j++ {
  21938. mk = dd.DecodeUint(64)
  21939. mv = int16(dd.DecodeInt(16))
  21940. if v != nil {
  21941. v[mk] = mv
  21942. }
  21943. }
  21944. } else if containerLen < 0 {
  21945. for j := 0; !dd.CheckBreak(); j++ {
  21946. mk = dd.DecodeUint(64)
  21947. mv = int16(dd.DecodeInt(16))
  21948. if v != nil {
  21949. v[mk] = mv
  21950. }
  21951. }
  21952. dd.ReadEnd()
  21953. }
  21954. return v, changed
  21955. }
  21956. func (f *decFnInfo) fastpathDecMapUint64Int32R(rv reflect.Value) {
  21957. if rv.CanAddr() {
  21958. vp := rv.Addr().Interface().(*map[uint64]int32)
  21959. v, changed := fastpathTV.DecMapUint64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  21960. if changed {
  21961. *vp = v
  21962. }
  21963. } else {
  21964. v := rv.Interface().(map[uint64]int32)
  21965. fastpathTV.DecMapUint64Int32V(v, fastpathCheckNilFalse, false, f.d)
  21966. }
  21967. }
  21968. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, checkNil bool, d *Decoder) {
  21969. v, changed := f.DecMapUint64Int32V(*vp, checkNil, true, d)
  21970. if changed {
  21971. *vp = v
  21972. }
  21973. }
  21974. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, checkNil bool, canChange bool,
  21975. d *Decoder) (_ map[uint64]int32, changed bool) {
  21976. dd := d.d
  21977. if checkNil && dd.TryDecodeAsNil() {
  21978. if v != nil {
  21979. changed = true
  21980. }
  21981. return nil, changed
  21982. }
  21983. containerLen := dd.ReadMapStart()
  21984. if canChange && v == nil {
  21985. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21986. v = make(map[uint64]int32, xlen)
  21987. changed = true
  21988. }
  21989. var mk uint64
  21990. var mv int32
  21991. if containerLen > 0 {
  21992. for j := 0; j < containerLen; j++ {
  21993. mk = dd.DecodeUint(64)
  21994. mv = int32(dd.DecodeInt(32))
  21995. if v != nil {
  21996. v[mk] = mv
  21997. }
  21998. }
  21999. } else if containerLen < 0 {
  22000. for j := 0; !dd.CheckBreak(); j++ {
  22001. mk = dd.DecodeUint(64)
  22002. mv = int32(dd.DecodeInt(32))
  22003. if v != nil {
  22004. v[mk] = mv
  22005. }
  22006. }
  22007. dd.ReadEnd()
  22008. }
  22009. return v, changed
  22010. }
  22011. func (f *decFnInfo) fastpathDecMapUint64Int64R(rv reflect.Value) {
  22012. if rv.CanAddr() {
  22013. vp := rv.Addr().Interface().(*map[uint64]int64)
  22014. v, changed := fastpathTV.DecMapUint64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  22015. if changed {
  22016. *vp = v
  22017. }
  22018. } else {
  22019. v := rv.Interface().(map[uint64]int64)
  22020. fastpathTV.DecMapUint64Int64V(v, fastpathCheckNilFalse, false, f.d)
  22021. }
  22022. }
  22023. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, checkNil bool, d *Decoder) {
  22024. v, changed := f.DecMapUint64Int64V(*vp, checkNil, true, d)
  22025. if changed {
  22026. *vp = v
  22027. }
  22028. }
  22029. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, checkNil bool, canChange bool,
  22030. d *Decoder) (_ map[uint64]int64, changed bool) {
  22031. dd := d.d
  22032. if checkNil && dd.TryDecodeAsNil() {
  22033. if v != nil {
  22034. changed = true
  22035. }
  22036. return nil, changed
  22037. }
  22038. containerLen := dd.ReadMapStart()
  22039. if canChange && v == nil {
  22040. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22041. v = make(map[uint64]int64, xlen)
  22042. changed = true
  22043. }
  22044. var mk uint64
  22045. var mv int64
  22046. if containerLen > 0 {
  22047. for j := 0; j < containerLen; j++ {
  22048. mk = dd.DecodeUint(64)
  22049. mv = dd.DecodeInt(64)
  22050. if v != nil {
  22051. v[mk] = mv
  22052. }
  22053. }
  22054. } else if containerLen < 0 {
  22055. for j := 0; !dd.CheckBreak(); j++ {
  22056. mk = dd.DecodeUint(64)
  22057. mv = dd.DecodeInt(64)
  22058. if v != nil {
  22059. v[mk] = mv
  22060. }
  22061. }
  22062. dd.ReadEnd()
  22063. }
  22064. return v, changed
  22065. }
  22066. func (f *decFnInfo) fastpathDecMapUint64Float32R(rv reflect.Value) {
  22067. if rv.CanAddr() {
  22068. vp := rv.Addr().Interface().(*map[uint64]float32)
  22069. v, changed := fastpathTV.DecMapUint64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  22070. if changed {
  22071. *vp = v
  22072. }
  22073. } else {
  22074. v := rv.Interface().(map[uint64]float32)
  22075. fastpathTV.DecMapUint64Float32V(v, fastpathCheckNilFalse, false, f.d)
  22076. }
  22077. }
  22078. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, checkNil bool, d *Decoder) {
  22079. v, changed := f.DecMapUint64Float32V(*vp, checkNil, true, d)
  22080. if changed {
  22081. *vp = v
  22082. }
  22083. }
  22084. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, checkNil bool, canChange bool,
  22085. d *Decoder) (_ map[uint64]float32, changed bool) {
  22086. dd := d.d
  22087. if checkNil && dd.TryDecodeAsNil() {
  22088. if v != nil {
  22089. changed = true
  22090. }
  22091. return nil, changed
  22092. }
  22093. containerLen := dd.ReadMapStart()
  22094. if canChange && v == nil {
  22095. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22096. v = make(map[uint64]float32, xlen)
  22097. changed = true
  22098. }
  22099. var mk uint64
  22100. var mv float32
  22101. if containerLen > 0 {
  22102. for j := 0; j < containerLen; j++ {
  22103. mk = dd.DecodeUint(64)
  22104. mv = float32(dd.DecodeFloat(true))
  22105. if v != nil {
  22106. v[mk] = mv
  22107. }
  22108. }
  22109. } else if containerLen < 0 {
  22110. for j := 0; !dd.CheckBreak(); j++ {
  22111. mk = dd.DecodeUint(64)
  22112. mv = float32(dd.DecodeFloat(true))
  22113. if v != nil {
  22114. v[mk] = mv
  22115. }
  22116. }
  22117. dd.ReadEnd()
  22118. }
  22119. return v, changed
  22120. }
  22121. func (f *decFnInfo) fastpathDecMapUint64Float64R(rv reflect.Value) {
  22122. if rv.CanAddr() {
  22123. vp := rv.Addr().Interface().(*map[uint64]float64)
  22124. v, changed := fastpathTV.DecMapUint64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  22125. if changed {
  22126. *vp = v
  22127. }
  22128. } else {
  22129. v := rv.Interface().(map[uint64]float64)
  22130. fastpathTV.DecMapUint64Float64V(v, fastpathCheckNilFalse, false, f.d)
  22131. }
  22132. }
  22133. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, checkNil bool, d *Decoder) {
  22134. v, changed := f.DecMapUint64Float64V(*vp, checkNil, true, d)
  22135. if changed {
  22136. *vp = v
  22137. }
  22138. }
  22139. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, checkNil bool, canChange bool,
  22140. d *Decoder) (_ map[uint64]float64, changed bool) {
  22141. dd := d.d
  22142. if checkNil && dd.TryDecodeAsNil() {
  22143. if v != nil {
  22144. changed = true
  22145. }
  22146. return nil, changed
  22147. }
  22148. containerLen := dd.ReadMapStart()
  22149. if canChange && v == nil {
  22150. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22151. v = make(map[uint64]float64, xlen)
  22152. changed = true
  22153. }
  22154. var mk uint64
  22155. var mv float64
  22156. if containerLen > 0 {
  22157. for j := 0; j < containerLen; j++ {
  22158. mk = dd.DecodeUint(64)
  22159. mv = dd.DecodeFloat(false)
  22160. if v != nil {
  22161. v[mk] = mv
  22162. }
  22163. }
  22164. } else if containerLen < 0 {
  22165. for j := 0; !dd.CheckBreak(); j++ {
  22166. mk = dd.DecodeUint(64)
  22167. mv = dd.DecodeFloat(false)
  22168. if v != nil {
  22169. v[mk] = mv
  22170. }
  22171. }
  22172. dd.ReadEnd()
  22173. }
  22174. return v, changed
  22175. }
  22176. func (f *decFnInfo) fastpathDecMapUint64BoolR(rv reflect.Value) {
  22177. if rv.CanAddr() {
  22178. vp := rv.Addr().Interface().(*map[uint64]bool)
  22179. v, changed := fastpathTV.DecMapUint64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  22180. if changed {
  22181. *vp = v
  22182. }
  22183. } else {
  22184. v := rv.Interface().(map[uint64]bool)
  22185. fastpathTV.DecMapUint64BoolV(v, fastpathCheckNilFalse, false, f.d)
  22186. }
  22187. }
  22188. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, checkNil bool, d *Decoder) {
  22189. v, changed := f.DecMapUint64BoolV(*vp, checkNil, true, d)
  22190. if changed {
  22191. *vp = v
  22192. }
  22193. }
  22194. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, checkNil bool, canChange bool,
  22195. d *Decoder) (_ map[uint64]bool, changed bool) {
  22196. dd := d.d
  22197. if checkNil && dd.TryDecodeAsNil() {
  22198. if v != nil {
  22199. changed = true
  22200. }
  22201. return nil, changed
  22202. }
  22203. containerLen := dd.ReadMapStart()
  22204. if canChange && v == nil {
  22205. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22206. v = make(map[uint64]bool, xlen)
  22207. changed = true
  22208. }
  22209. var mk uint64
  22210. var mv bool
  22211. if containerLen > 0 {
  22212. for j := 0; j < containerLen; j++ {
  22213. mk = dd.DecodeUint(64)
  22214. mv = dd.DecodeBool()
  22215. if v != nil {
  22216. v[mk] = mv
  22217. }
  22218. }
  22219. } else if containerLen < 0 {
  22220. for j := 0; !dd.CheckBreak(); j++ {
  22221. mk = dd.DecodeUint(64)
  22222. mv = dd.DecodeBool()
  22223. if v != nil {
  22224. v[mk] = mv
  22225. }
  22226. }
  22227. dd.ReadEnd()
  22228. }
  22229. return v, changed
  22230. }
  22231. func (f *decFnInfo) fastpathDecMapUintptrIntfR(rv reflect.Value) {
  22232. if rv.CanAddr() {
  22233. vp := rv.Addr().Interface().(*map[uintptr]interface{})
  22234. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  22235. if changed {
  22236. *vp = v
  22237. }
  22238. } else {
  22239. v := rv.Interface().(map[uintptr]interface{})
  22240. fastpathTV.DecMapUintptrIntfV(v, fastpathCheckNilFalse, false, f.d)
  22241. }
  22242. }
  22243. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, checkNil bool, d *Decoder) {
  22244. v, changed := f.DecMapUintptrIntfV(*vp, checkNil, true, d)
  22245. if changed {
  22246. *vp = v
  22247. }
  22248. }
  22249. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, checkNil bool, canChange bool,
  22250. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  22251. dd := d.d
  22252. if checkNil && dd.TryDecodeAsNil() {
  22253. if v != nil {
  22254. changed = true
  22255. }
  22256. return nil, changed
  22257. }
  22258. containerLen := dd.ReadMapStart()
  22259. if canChange && v == nil {
  22260. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22261. v = make(map[uintptr]interface{}, xlen)
  22262. changed = true
  22263. }
  22264. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  22265. var mk uintptr
  22266. var mv interface{}
  22267. if containerLen > 0 {
  22268. for j := 0; j < containerLen; j++ {
  22269. mk = uintptr(dd.DecodeUint(uintBitsize))
  22270. if mapGet {
  22271. mv = v[mk]
  22272. } else {
  22273. mv = nil
  22274. }
  22275. d.decode(&mv)
  22276. if v != nil {
  22277. v[mk] = mv
  22278. }
  22279. }
  22280. } else if containerLen < 0 {
  22281. for j := 0; !dd.CheckBreak(); j++ {
  22282. mk = uintptr(dd.DecodeUint(uintBitsize))
  22283. if mapGet {
  22284. mv = v[mk]
  22285. } else {
  22286. mv = nil
  22287. }
  22288. d.decode(&mv)
  22289. if v != nil {
  22290. v[mk] = mv
  22291. }
  22292. }
  22293. dd.ReadEnd()
  22294. }
  22295. return v, changed
  22296. }
  22297. func (f *decFnInfo) fastpathDecMapUintptrStringR(rv reflect.Value) {
  22298. if rv.CanAddr() {
  22299. vp := rv.Addr().Interface().(*map[uintptr]string)
  22300. v, changed := fastpathTV.DecMapUintptrStringV(*vp, fastpathCheckNilFalse, true, f.d)
  22301. if changed {
  22302. *vp = v
  22303. }
  22304. } else {
  22305. v := rv.Interface().(map[uintptr]string)
  22306. fastpathTV.DecMapUintptrStringV(v, fastpathCheckNilFalse, false, f.d)
  22307. }
  22308. }
  22309. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, checkNil bool, d *Decoder) {
  22310. v, changed := f.DecMapUintptrStringV(*vp, checkNil, true, d)
  22311. if changed {
  22312. *vp = v
  22313. }
  22314. }
  22315. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, checkNil bool, canChange bool,
  22316. d *Decoder) (_ map[uintptr]string, changed bool) {
  22317. dd := d.d
  22318. if checkNil && dd.TryDecodeAsNil() {
  22319. if v != nil {
  22320. changed = true
  22321. }
  22322. return nil, changed
  22323. }
  22324. containerLen := dd.ReadMapStart()
  22325. if canChange && v == nil {
  22326. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22327. v = make(map[uintptr]string, xlen)
  22328. changed = true
  22329. }
  22330. var mk uintptr
  22331. var mv string
  22332. if containerLen > 0 {
  22333. for j := 0; j < containerLen; j++ {
  22334. mk = uintptr(dd.DecodeUint(uintBitsize))
  22335. mv = dd.DecodeString()
  22336. if v != nil {
  22337. v[mk] = mv
  22338. }
  22339. }
  22340. } else if containerLen < 0 {
  22341. for j := 0; !dd.CheckBreak(); j++ {
  22342. mk = uintptr(dd.DecodeUint(uintBitsize))
  22343. mv = dd.DecodeString()
  22344. if v != nil {
  22345. v[mk] = mv
  22346. }
  22347. }
  22348. dd.ReadEnd()
  22349. }
  22350. return v, changed
  22351. }
  22352. func (f *decFnInfo) fastpathDecMapUintptrUintR(rv reflect.Value) {
  22353. if rv.CanAddr() {
  22354. vp := rv.Addr().Interface().(*map[uintptr]uint)
  22355. v, changed := fastpathTV.DecMapUintptrUintV(*vp, fastpathCheckNilFalse, true, f.d)
  22356. if changed {
  22357. *vp = v
  22358. }
  22359. } else {
  22360. v := rv.Interface().(map[uintptr]uint)
  22361. fastpathTV.DecMapUintptrUintV(v, fastpathCheckNilFalse, false, f.d)
  22362. }
  22363. }
  22364. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, checkNil bool, d *Decoder) {
  22365. v, changed := f.DecMapUintptrUintV(*vp, checkNil, true, d)
  22366. if changed {
  22367. *vp = v
  22368. }
  22369. }
  22370. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, checkNil bool, canChange bool,
  22371. d *Decoder) (_ map[uintptr]uint, changed bool) {
  22372. dd := d.d
  22373. if checkNil && dd.TryDecodeAsNil() {
  22374. if v != nil {
  22375. changed = true
  22376. }
  22377. return nil, changed
  22378. }
  22379. containerLen := dd.ReadMapStart()
  22380. if canChange && v == nil {
  22381. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22382. v = make(map[uintptr]uint, xlen)
  22383. changed = true
  22384. }
  22385. var mk uintptr
  22386. var mv uint
  22387. if containerLen > 0 {
  22388. for j := 0; j < containerLen; j++ {
  22389. mk = uintptr(dd.DecodeUint(uintBitsize))
  22390. mv = uint(dd.DecodeUint(uintBitsize))
  22391. if v != nil {
  22392. v[mk] = mv
  22393. }
  22394. }
  22395. } else if containerLen < 0 {
  22396. for j := 0; !dd.CheckBreak(); j++ {
  22397. mk = uintptr(dd.DecodeUint(uintBitsize))
  22398. mv = uint(dd.DecodeUint(uintBitsize))
  22399. if v != nil {
  22400. v[mk] = mv
  22401. }
  22402. }
  22403. dd.ReadEnd()
  22404. }
  22405. return v, changed
  22406. }
  22407. func (f *decFnInfo) fastpathDecMapUintptrUint8R(rv reflect.Value) {
  22408. if rv.CanAddr() {
  22409. vp := rv.Addr().Interface().(*map[uintptr]uint8)
  22410. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  22411. if changed {
  22412. *vp = v
  22413. }
  22414. } else {
  22415. v := rv.Interface().(map[uintptr]uint8)
  22416. fastpathTV.DecMapUintptrUint8V(v, fastpathCheckNilFalse, false, f.d)
  22417. }
  22418. }
  22419. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, checkNil bool, d *Decoder) {
  22420. v, changed := f.DecMapUintptrUint8V(*vp, checkNil, true, d)
  22421. if changed {
  22422. *vp = v
  22423. }
  22424. }
  22425. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, checkNil bool, canChange bool,
  22426. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  22427. dd := d.d
  22428. if checkNil && dd.TryDecodeAsNil() {
  22429. if v != nil {
  22430. changed = true
  22431. }
  22432. return nil, changed
  22433. }
  22434. containerLen := dd.ReadMapStart()
  22435. if canChange && v == nil {
  22436. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22437. v = make(map[uintptr]uint8, xlen)
  22438. changed = true
  22439. }
  22440. var mk uintptr
  22441. var mv uint8
  22442. if containerLen > 0 {
  22443. for j := 0; j < containerLen; j++ {
  22444. mk = uintptr(dd.DecodeUint(uintBitsize))
  22445. mv = uint8(dd.DecodeUint(8))
  22446. if v != nil {
  22447. v[mk] = mv
  22448. }
  22449. }
  22450. } else if containerLen < 0 {
  22451. for j := 0; !dd.CheckBreak(); j++ {
  22452. mk = uintptr(dd.DecodeUint(uintBitsize))
  22453. mv = uint8(dd.DecodeUint(8))
  22454. if v != nil {
  22455. v[mk] = mv
  22456. }
  22457. }
  22458. dd.ReadEnd()
  22459. }
  22460. return v, changed
  22461. }
  22462. func (f *decFnInfo) fastpathDecMapUintptrUint16R(rv reflect.Value) {
  22463. if rv.CanAddr() {
  22464. vp := rv.Addr().Interface().(*map[uintptr]uint16)
  22465. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  22466. if changed {
  22467. *vp = v
  22468. }
  22469. } else {
  22470. v := rv.Interface().(map[uintptr]uint16)
  22471. fastpathTV.DecMapUintptrUint16V(v, fastpathCheckNilFalse, false, f.d)
  22472. }
  22473. }
  22474. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, checkNil bool, d *Decoder) {
  22475. v, changed := f.DecMapUintptrUint16V(*vp, checkNil, true, d)
  22476. if changed {
  22477. *vp = v
  22478. }
  22479. }
  22480. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, checkNil bool, canChange bool,
  22481. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  22482. dd := d.d
  22483. if checkNil && dd.TryDecodeAsNil() {
  22484. if v != nil {
  22485. changed = true
  22486. }
  22487. return nil, changed
  22488. }
  22489. containerLen := dd.ReadMapStart()
  22490. if canChange && v == nil {
  22491. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22492. v = make(map[uintptr]uint16, xlen)
  22493. changed = true
  22494. }
  22495. var mk uintptr
  22496. var mv uint16
  22497. if containerLen > 0 {
  22498. for j := 0; j < containerLen; j++ {
  22499. mk = uintptr(dd.DecodeUint(uintBitsize))
  22500. mv = uint16(dd.DecodeUint(16))
  22501. if v != nil {
  22502. v[mk] = mv
  22503. }
  22504. }
  22505. } else if containerLen < 0 {
  22506. for j := 0; !dd.CheckBreak(); j++ {
  22507. mk = uintptr(dd.DecodeUint(uintBitsize))
  22508. mv = uint16(dd.DecodeUint(16))
  22509. if v != nil {
  22510. v[mk] = mv
  22511. }
  22512. }
  22513. dd.ReadEnd()
  22514. }
  22515. return v, changed
  22516. }
  22517. func (f *decFnInfo) fastpathDecMapUintptrUint32R(rv reflect.Value) {
  22518. if rv.CanAddr() {
  22519. vp := rv.Addr().Interface().(*map[uintptr]uint32)
  22520. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  22521. if changed {
  22522. *vp = v
  22523. }
  22524. } else {
  22525. v := rv.Interface().(map[uintptr]uint32)
  22526. fastpathTV.DecMapUintptrUint32V(v, fastpathCheckNilFalse, false, f.d)
  22527. }
  22528. }
  22529. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, checkNil bool, d *Decoder) {
  22530. v, changed := f.DecMapUintptrUint32V(*vp, checkNil, true, d)
  22531. if changed {
  22532. *vp = v
  22533. }
  22534. }
  22535. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, checkNil bool, canChange bool,
  22536. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  22537. dd := d.d
  22538. if checkNil && dd.TryDecodeAsNil() {
  22539. if v != nil {
  22540. changed = true
  22541. }
  22542. return nil, changed
  22543. }
  22544. containerLen := dd.ReadMapStart()
  22545. if canChange && v == nil {
  22546. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22547. v = make(map[uintptr]uint32, xlen)
  22548. changed = true
  22549. }
  22550. var mk uintptr
  22551. var mv uint32
  22552. if containerLen > 0 {
  22553. for j := 0; j < containerLen; j++ {
  22554. mk = uintptr(dd.DecodeUint(uintBitsize))
  22555. mv = uint32(dd.DecodeUint(32))
  22556. if v != nil {
  22557. v[mk] = mv
  22558. }
  22559. }
  22560. } else if containerLen < 0 {
  22561. for j := 0; !dd.CheckBreak(); j++ {
  22562. mk = uintptr(dd.DecodeUint(uintBitsize))
  22563. mv = uint32(dd.DecodeUint(32))
  22564. if v != nil {
  22565. v[mk] = mv
  22566. }
  22567. }
  22568. dd.ReadEnd()
  22569. }
  22570. return v, changed
  22571. }
  22572. func (f *decFnInfo) fastpathDecMapUintptrUint64R(rv reflect.Value) {
  22573. if rv.CanAddr() {
  22574. vp := rv.Addr().Interface().(*map[uintptr]uint64)
  22575. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  22576. if changed {
  22577. *vp = v
  22578. }
  22579. } else {
  22580. v := rv.Interface().(map[uintptr]uint64)
  22581. fastpathTV.DecMapUintptrUint64V(v, fastpathCheckNilFalse, false, f.d)
  22582. }
  22583. }
  22584. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, checkNil bool, d *Decoder) {
  22585. v, changed := f.DecMapUintptrUint64V(*vp, checkNil, true, d)
  22586. if changed {
  22587. *vp = v
  22588. }
  22589. }
  22590. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, checkNil bool, canChange bool,
  22591. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  22592. dd := d.d
  22593. if checkNil && dd.TryDecodeAsNil() {
  22594. if v != nil {
  22595. changed = true
  22596. }
  22597. return nil, changed
  22598. }
  22599. containerLen := dd.ReadMapStart()
  22600. if canChange && v == nil {
  22601. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22602. v = make(map[uintptr]uint64, xlen)
  22603. changed = true
  22604. }
  22605. var mk uintptr
  22606. var mv uint64
  22607. if containerLen > 0 {
  22608. for j := 0; j < containerLen; j++ {
  22609. mk = uintptr(dd.DecodeUint(uintBitsize))
  22610. mv = dd.DecodeUint(64)
  22611. if v != nil {
  22612. v[mk] = mv
  22613. }
  22614. }
  22615. } else if containerLen < 0 {
  22616. for j := 0; !dd.CheckBreak(); j++ {
  22617. mk = uintptr(dd.DecodeUint(uintBitsize))
  22618. mv = dd.DecodeUint(64)
  22619. if v != nil {
  22620. v[mk] = mv
  22621. }
  22622. }
  22623. dd.ReadEnd()
  22624. }
  22625. return v, changed
  22626. }
  22627. func (f *decFnInfo) fastpathDecMapUintptrUintptrR(rv reflect.Value) {
  22628. if rv.CanAddr() {
  22629. vp := rv.Addr().Interface().(*map[uintptr]uintptr)
  22630. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  22631. if changed {
  22632. *vp = v
  22633. }
  22634. } else {
  22635. v := rv.Interface().(map[uintptr]uintptr)
  22636. fastpathTV.DecMapUintptrUintptrV(v, fastpathCheckNilFalse, false, f.d)
  22637. }
  22638. }
  22639. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, checkNil bool, d *Decoder) {
  22640. v, changed := f.DecMapUintptrUintptrV(*vp, checkNil, true, d)
  22641. if changed {
  22642. *vp = v
  22643. }
  22644. }
  22645. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, checkNil bool, canChange bool,
  22646. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  22647. dd := d.d
  22648. if checkNil && dd.TryDecodeAsNil() {
  22649. if v != nil {
  22650. changed = true
  22651. }
  22652. return nil, changed
  22653. }
  22654. containerLen := dd.ReadMapStart()
  22655. if canChange && v == nil {
  22656. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22657. v = make(map[uintptr]uintptr, xlen)
  22658. changed = true
  22659. }
  22660. var mk uintptr
  22661. var mv uintptr
  22662. if containerLen > 0 {
  22663. for j := 0; j < containerLen; j++ {
  22664. mk = uintptr(dd.DecodeUint(uintBitsize))
  22665. mv = uintptr(dd.DecodeUint(uintBitsize))
  22666. if v != nil {
  22667. v[mk] = mv
  22668. }
  22669. }
  22670. } else if containerLen < 0 {
  22671. for j := 0; !dd.CheckBreak(); j++ {
  22672. mk = uintptr(dd.DecodeUint(uintBitsize))
  22673. mv = uintptr(dd.DecodeUint(uintBitsize))
  22674. if v != nil {
  22675. v[mk] = mv
  22676. }
  22677. }
  22678. dd.ReadEnd()
  22679. }
  22680. return v, changed
  22681. }
  22682. func (f *decFnInfo) fastpathDecMapUintptrIntR(rv reflect.Value) {
  22683. if rv.CanAddr() {
  22684. vp := rv.Addr().Interface().(*map[uintptr]int)
  22685. v, changed := fastpathTV.DecMapUintptrIntV(*vp, fastpathCheckNilFalse, true, f.d)
  22686. if changed {
  22687. *vp = v
  22688. }
  22689. } else {
  22690. v := rv.Interface().(map[uintptr]int)
  22691. fastpathTV.DecMapUintptrIntV(v, fastpathCheckNilFalse, false, f.d)
  22692. }
  22693. }
  22694. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, checkNil bool, d *Decoder) {
  22695. v, changed := f.DecMapUintptrIntV(*vp, checkNil, true, d)
  22696. if changed {
  22697. *vp = v
  22698. }
  22699. }
  22700. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, checkNil bool, canChange bool,
  22701. d *Decoder) (_ map[uintptr]int, changed bool) {
  22702. dd := d.d
  22703. if checkNil && dd.TryDecodeAsNil() {
  22704. if v != nil {
  22705. changed = true
  22706. }
  22707. return nil, changed
  22708. }
  22709. containerLen := dd.ReadMapStart()
  22710. if canChange && v == nil {
  22711. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22712. v = make(map[uintptr]int, xlen)
  22713. changed = true
  22714. }
  22715. var mk uintptr
  22716. var mv int
  22717. if containerLen > 0 {
  22718. for j := 0; j < containerLen; j++ {
  22719. mk = uintptr(dd.DecodeUint(uintBitsize))
  22720. mv = int(dd.DecodeInt(intBitsize))
  22721. if v != nil {
  22722. v[mk] = mv
  22723. }
  22724. }
  22725. } else if containerLen < 0 {
  22726. for j := 0; !dd.CheckBreak(); j++ {
  22727. mk = uintptr(dd.DecodeUint(uintBitsize))
  22728. mv = int(dd.DecodeInt(intBitsize))
  22729. if v != nil {
  22730. v[mk] = mv
  22731. }
  22732. }
  22733. dd.ReadEnd()
  22734. }
  22735. return v, changed
  22736. }
  22737. func (f *decFnInfo) fastpathDecMapUintptrInt8R(rv reflect.Value) {
  22738. if rv.CanAddr() {
  22739. vp := rv.Addr().Interface().(*map[uintptr]int8)
  22740. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  22741. if changed {
  22742. *vp = v
  22743. }
  22744. } else {
  22745. v := rv.Interface().(map[uintptr]int8)
  22746. fastpathTV.DecMapUintptrInt8V(v, fastpathCheckNilFalse, false, f.d)
  22747. }
  22748. }
  22749. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, checkNil bool, d *Decoder) {
  22750. v, changed := f.DecMapUintptrInt8V(*vp, checkNil, true, d)
  22751. if changed {
  22752. *vp = v
  22753. }
  22754. }
  22755. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, checkNil bool, canChange bool,
  22756. d *Decoder) (_ map[uintptr]int8, changed bool) {
  22757. dd := d.d
  22758. if checkNil && dd.TryDecodeAsNil() {
  22759. if v != nil {
  22760. changed = true
  22761. }
  22762. return nil, changed
  22763. }
  22764. containerLen := dd.ReadMapStart()
  22765. if canChange && v == nil {
  22766. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22767. v = make(map[uintptr]int8, xlen)
  22768. changed = true
  22769. }
  22770. var mk uintptr
  22771. var mv int8
  22772. if containerLen > 0 {
  22773. for j := 0; j < containerLen; j++ {
  22774. mk = uintptr(dd.DecodeUint(uintBitsize))
  22775. mv = int8(dd.DecodeInt(8))
  22776. if v != nil {
  22777. v[mk] = mv
  22778. }
  22779. }
  22780. } else if containerLen < 0 {
  22781. for j := 0; !dd.CheckBreak(); j++ {
  22782. mk = uintptr(dd.DecodeUint(uintBitsize))
  22783. mv = int8(dd.DecodeInt(8))
  22784. if v != nil {
  22785. v[mk] = mv
  22786. }
  22787. }
  22788. dd.ReadEnd()
  22789. }
  22790. return v, changed
  22791. }
  22792. func (f *decFnInfo) fastpathDecMapUintptrInt16R(rv reflect.Value) {
  22793. if rv.CanAddr() {
  22794. vp := rv.Addr().Interface().(*map[uintptr]int16)
  22795. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  22796. if changed {
  22797. *vp = v
  22798. }
  22799. } else {
  22800. v := rv.Interface().(map[uintptr]int16)
  22801. fastpathTV.DecMapUintptrInt16V(v, fastpathCheckNilFalse, false, f.d)
  22802. }
  22803. }
  22804. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, checkNil bool, d *Decoder) {
  22805. v, changed := f.DecMapUintptrInt16V(*vp, checkNil, true, d)
  22806. if changed {
  22807. *vp = v
  22808. }
  22809. }
  22810. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, checkNil bool, canChange bool,
  22811. d *Decoder) (_ map[uintptr]int16, changed bool) {
  22812. dd := d.d
  22813. if checkNil && dd.TryDecodeAsNil() {
  22814. if v != nil {
  22815. changed = true
  22816. }
  22817. return nil, changed
  22818. }
  22819. containerLen := dd.ReadMapStart()
  22820. if canChange && v == nil {
  22821. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22822. v = make(map[uintptr]int16, xlen)
  22823. changed = true
  22824. }
  22825. var mk uintptr
  22826. var mv int16
  22827. if containerLen > 0 {
  22828. for j := 0; j < containerLen; j++ {
  22829. mk = uintptr(dd.DecodeUint(uintBitsize))
  22830. mv = int16(dd.DecodeInt(16))
  22831. if v != nil {
  22832. v[mk] = mv
  22833. }
  22834. }
  22835. } else if containerLen < 0 {
  22836. for j := 0; !dd.CheckBreak(); j++ {
  22837. mk = uintptr(dd.DecodeUint(uintBitsize))
  22838. mv = int16(dd.DecodeInt(16))
  22839. if v != nil {
  22840. v[mk] = mv
  22841. }
  22842. }
  22843. dd.ReadEnd()
  22844. }
  22845. return v, changed
  22846. }
  22847. func (f *decFnInfo) fastpathDecMapUintptrInt32R(rv reflect.Value) {
  22848. if rv.CanAddr() {
  22849. vp := rv.Addr().Interface().(*map[uintptr]int32)
  22850. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  22851. if changed {
  22852. *vp = v
  22853. }
  22854. } else {
  22855. v := rv.Interface().(map[uintptr]int32)
  22856. fastpathTV.DecMapUintptrInt32V(v, fastpathCheckNilFalse, false, f.d)
  22857. }
  22858. }
  22859. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, checkNil bool, d *Decoder) {
  22860. v, changed := f.DecMapUintptrInt32V(*vp, checkNil, true, d)
  22861. if changed {
  22862. *vp = v
  22863. }
  22864. }
  22865. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, checkNil bool, canChange bool,
  22866. d *Decoder) (_ map[uintptr]int32, changed bool) {
  22867. dd := d.d
  22868. if checkNil && dd.TryDecodeAsNil() {
  22869. if v != nil {
  22870. changed = true
  22871. }
  22872. return nil, changed
  22873. }
  22874. containerLen := dd.ReadMapStart()
  22875. if canChange && v == nil {
  22876. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22877. v = make(map[uintptr]int32, xlen)
  22878. changed = true
  22879. }
  22880. var mk uintptr
  22881. var mv int32
  22882. if containerLen > 0 {
  22883. for j := 0; j < containerLen; j++ {
  22884. mk = uintptr(dd.DecodeUint(uintBitsize))
  22885. mv = int32(dd.DecodeInt(32))
  22886. if v != nil {
  22887. v[mk] = mv
  22888. }
  22889. }
  22890. } else if containerLen < 0 {
  22891. for j := 0; !dd.CheckBreak(); j++ {
  22892. mk = uintptr(dd.DecodeUint(uintBitsize))
  22893. mv = int32(dd.DecodeInt(32))
  22894. if v != nil {
  22895. v[mk] = mv
  22896. }
  22897. }
  22898. dd.ReadEnd()
  22899. }
  22900. return v, changed
  22901. }
  22902. func (f *decFnInfo) fastpathDecMapUintptrInt64R(rv reflect.Value) {
  22903. if rv.CanAddr() {
  22904. vp := rv.Addr().Interface().(*map[uintptr]int64)
  22905. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  22906. if changed {
  22907. *vp = v
  22908. }
  22909. } else {
  22910. v := rv.Interface().(map[uintptr]int64)
  22911. fastpathTV.DecMapUintptrInt64V(v, fastpathCheckNilFalse, false, f.d)
  22912. }
  22913. }
  22914. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, checkNil bool, d *Decoder) {
  22915. v, changed := f.DecMapUintptrInt64V(*vp, checkNil, true, d)
  22916. if changed {
  22917. *vp = v
  22918. }
  22919. }
  22920. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, checkNil bool, canChange bool,
  22921. d *Decoder) (_ map[uintptr]int64, changed bool) {
  22922. dd := d.d
  22923. if checkNil && dd.TryDecodeAsNil() {
  22924. if v != nil {
  22925. changed = true
  22926. }
  22927. return nil, changed
  22928. }
  22929. containerLen := dd.ReadMapStart()
  22930. if canChange && v == nil {
  22931. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22932. v = make(map[uintptr]int64, xlen)
  22933. changed = true
  22934. }
  22935. var mk uintptr
  22936. var mv int64
  22937. if containerLen > 0 {
  22938. for j := 0; j < containerLen; j++ {
  22939. mk = uintptr(dd.DecodeUint(uintBitsize))
  22940. mv = dd.DecodeInt(64)
  22941. if v != nil {
  22942. v[mk] = mv
  22943. }
  22944. }
  22945. } else if containerLen < 0 {
  22946. for j := 0; !dd.CheckBreak(); j++ {
  22947. mk = uintptr(dd.DecodeUint(uintBitsize))
  22948. mv = dd.DecodeInt(64)
  22949. if v != nil {
  22950. v[mk] = mv
  22951. }
  22952. }
  22953. dd.ReadEnd()
  22954. }
  22955. return v, changed
  22956. }
  22957. func (f *decFnInfo) fastpathDecMapUintptrFloat32R(rv reflect.Value) {
  22958. if rv.CanAddr() {
  22959. vp := rv.Addr().Interface().(*map[uintptr]float32)
  22960. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  22961. if changed {
  22962. *vp = v
  22963. }
  22964. } else {
  22965. v := rv.Interface().(map[uintptr]float32)
  22966. fastpathTV.DecMapUintptrFloat32V(v, fastpathCheckNilFalse, false, f.d)
  22967. }
  22968. }
  22969. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, checkNil bool, d *Decoder) {
  22970. v, changed := f.DecMapUintptrFloat32V(*vp, checkNil, true, d)
  22971. if changed {
  22972. *vp = v
  22973. }
  22974. }
  22975. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, checkNil bool, canChange bool,
  22976. d *Decoder) (_ map[uintptr]float32, changed bool) {
  22977. dd := d.d
  22978. if checkNil && dd.TryDecodeAsNil() {
  22979. if v != nil {
  22980. changed = true
  22981. }
  22982. return nil, changed
  22983. }
  22984. containerLen := dd.ReadMapStart()
  22985. if canChange && v == nil {
  22986. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22987. v = make(map[uintptr]float32, xlen)
  22988. changed = true
  22989. }
  22990. var mk uintptr
  22991. var mv float32
  22992. if containerLen > 0 {
  22993. for j := 0; j < containerLen; j++ {
  22994. mk = uintptr(dd.DecodeUint(uintBitsize))
  22995. mv = float32(dd.DecodeFloat(true))
  22996. if v != nil {
  22997. v[mk] = mv
  22998. }
  22999. }
  23000. } else if containerLen < 0 {
  23001. for j := 0; !dd.CheckBreak(); j++ {
  23002. mk = uintptr(dd.DecodeUint(uintBitsize))
  23003. mv = float32(dd.DecodeFloat(true))
  23004. if v != nil {
  23005. v[mk] = mv
  23006. }
  23007. }
  23008. dd.ReadEnd()
  23009. }
  23010. return v, changed
  23011. }
  23012. func (f *decFnInfo) fastpathDecMapUintptrFloat64R(rv reflect.Value) {
  23013. if rv.CanAddr() {
  23014. vp := rv.Addr().Interface().(*map[uintptr]float64)
  23015. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  23016. if changed {
  23017. *vp = v
  23018. }
  23019. } else {
  23020. v := rv.Interface().(map[uintptr]float64)
  23021. fastpathTV.DecMapUintptrFloat64V(v, fastpathCheckNilFalse, false, f.d)
  23022. }
  23023. }
  23024. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, checkNil bool, d *Decoder) {
  23025. v, changed := f.DecMapUintptrFloat64V(*vp, checkNil, true, d)
  23026. if changed {
  23027. *vp = v
  23028. }
  23029. }
  23030. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, checkNil bool, canChange bool,
  23031. d *Decoder) (_ map[uintptr]float64, changed bool) {
  23032. dd := d.d
  23033. if checkNil && dd.TryDecodeAsNil() {
  23034. if v != nil {
  23035. changed = true
  23036. }
  23037. return nil, changed
  23038. }
  23039. containerLen := dd.ReadMapStart()
  23040. if canChange && v == nil {
  23041. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23042. v = make(map[uintptr]float64, xlen)
  23043. changed = true
  23044. }
  23045. var mk uintptr
  23046. var mv float64
  23047. if containerLen > 0 {
  23048. for j := 0; j < containerLen; j++ {
  23049. mk = uintptr(dd.DecodeUint(uintBitsize))
  23050. mv = dd.DecodeFloat(false)
  23051. if v != nil {
  23052. v[mk] = mv
  23053. }
  23054. }
  23055. } else if containerLen < 0 {
  23056. for j := 0; !dd.CheckBreak(); j++ {
  23057. mk = uintptr(dd.DecodeUint(uintBitsize))
  23058. mv = dd.DecodeFloat(false)
  23059. if v != nil {
  23060. v[mk] = mv
  23061. }
  23062. }
  23063. dd.ReadEnd()
  23064. }
  23065. return v, changed
  23066. }
  23067. func (f *decFnInfo) fastpathDecMapUintptrBoolR(rv reflect.Value) {
  23068. if rv.CanAddr() {
  23069. vp := rv.Addr().Interface().(*map[uintptr]bool)
  23070. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  23071. if changed {
  23072. *vp = v
  23073. }
  23074. } else {
  23075. v := rv.Interface().(map[uintptr]bool)
  23076. fastpathTV.DecMapUintptrBoolV(v, fastpathCheckNilFalse, false, f.d)
  23077. }
  23078. }
  23079. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, checkNil bool, d *Decoder) {
  23080. v, changed := f.DecMapUintptrBoolV(*vp, checkNil, true, d)
  23081. if changed {
  23082. *vp = v
  23083. }
  23084. }
  23085. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, checkNil bool, canChange bool,
  23086. d *Decoder) (_ map[uintptr]bool, changed bool) {
  23087. dd := d.d
  23088. if checkNil && dd.TryDecodeAsNil() {
  23089. if v != nil {
  23090. changed = true
  23091. }
  23092. return nil, changed
  23093. }
  23094. containerLen := dd.ReadMapStart()
  23095. if canChange && v == nil {
  23096. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23097. v = make(map[uintptr]bool, xlen)
  23098. changed = true
  23099. }
  23100. var mk uintptr
  23101. var mv bool
  23102. if containerLen > 0 {
  23103. for j := 0; j < containerLen; j++ {
  23104. mk = uintptr(dd.DecodeUint(uintBitsize))
  23105. mv = dd.DecodeBool()
  23106. if v != nil {
  23107. v[mk] = mv
  23108. }
  23109. }
  23110. } else if containerLen < 0 {
  23111. for j := 0; !dd.CheckBreak(); j++ {
  23112. mk = uintptr(dd.DecodeUint(uintBitsize))
  23113. mv = dd.DecodeBool()
  23114. if v != nil {
  23115. v[mk] = mv
  23116. }
  23117. }
  23118. dd.ReadEnd()
  23119. }
  23120. return v, changed
  23121. }
  23122. func (f *decFnInfo) fastpathDecMapIntIntfR(rv reflect.Value) {
  23123. if rv.CanAddr() {
  23124. vp := rv.Addr().Interface().(*map[int]interface{})
  23125. v, changed := fastpathTV.DecMapIntIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  23126. if changed {
  23127. *vp = v
  23128. }
  23129. } else {
  23130. v := rv.Interface().(map[int]interface{})
  23131. fastpathTV.DecMapIntIntfV(v, fastpathCheckNilFalse, false, f.d)
  23132. }
  23133. }
  23134. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, checkNil bool, d *Decoder) {
  23135. v, changed := f.DecMapIntIntfV(*vp, checkNil, true, d)
  23136. if changed {
  23137. *vp = v
  23138. }
  23139. }
  23140. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, checkNil bool, canChange bool,
  23141. d *Decoder) (_ map[int]interface{}, changed bool) {
  23142. dd := d.d
  23143. if checkNil && dd.TryDecodeAsNil() {
  23144. if v != nil {
  23145. changed = true
  23146. }
  23147. return nil, changed
  23148. }
  23149. containerLen := dd.ReadMapStart()
  23150. if canChange && v == nil {
  23151. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23152. v = make(map[int]interface{}, xlen)
  23153. changed = true
  23154. }
  23155. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  23156. var mk int
  23157. var mv interface{}
  23158. if containerLen > 0 {
  23159. for j := 0; j < containerLen; j++ {
  23160. mk = int(dd.DecodeInt(intBitsize))
  23161. if mapGet {
  23162. mv = v[mk]
  23163. } else {
  23164. mv = nil
  23165. }
  23166. d.decode(&mv)
  23167. if v != nil {
  23168. v[mk] = mv
  23169. }
  23170. }
  23171. } else if containerLen < 0 {
  23172. for j := 0; !dd.CheckBreak(); j++ {
  23173. mk = int(dd.DecodeInt(intBitsize))
  23174. if mapGet {
  23175. mv = v[mk]
  23176. } else {
  23177. mv = nil
  23178. }
  23179. d.decode(&mv)
  23180. if v != nil {
  23181. v[mk] = mv
  23182. }
  23183. }
  23184. dd.ReadEnd()
  23185. }
  23186. return v, changed
  23187. }
  23188. func (f *decFnInfo) fastpathDecMapIntStringR(rv reflect.Value) {
  23189. if rv.CanAddr() {
  23190. vp := rv.Addr().Interface().(*map[int]string)
  23191. v, changed := fastpathTV.DecMapIntStringV(*vp, fastpathCheckNilFalse, true, f.d)
  23192. if changed {
  23193. *vp = v
  23194. }
  23195. } else {
  23196. v := rv.Interface().(map[int]string)
  23197. fastpathTV.DecMapIntStringV(v, fastpathCheckNilFalse, false, f.d)
  23198. }
  23199. }
  23200. func (f fastpathT) DecMapIntStringX(vp *map[int]string, checkNil bool, d *Decoder) {
  23201. v, changed := f.DecMapIntStringV(*vp, checkNil, true, d)
  23202. if changed {
  23203. *vp = v
  23204. }
  23205. }
  23206. func (_ fastpathT) DecMapIntStringV(v map[int]string, checkNil bool, canChange bool,
  23207. d *Decoder) (_ map[int]string, changed bool) {
  23208. dd := d.d
  23209. if checkNil && dd.TryDecodeAsNil() {
  23210. if v != nil {
  23211. changed = true
  23212. }
  23213. return nil, changed
  23214. }
  23215. containerLen := dd.ReadMapStart()
  23216. if canChange && v == nil {
  23217. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  23218. v = make(map[int]string, xlen)
  23219. changed = true
  23220. }
  23221. var mk int
  23222. var mv string
  23223. if containerLen > 0 {
  23224. for j := 0; j < containerLen; j++ {
  23225. mk = int(dd.DecodeInt(intBitsize))
  23226. mv = dd.DecodeString()
  23227. if v != nil {
  23228. v[mk] = mv
  23229. }
  23230. }
  23231. } else if containerLen < 0 {
  23232. for j := 0; !dd.CheckBreak(); j++ {
  23233. mk = int(dd.DecodeInt(intBitsize))
  23234. mv = dd.DecodeString()
  23235. if v != nil {
  23236. v[mk] = mv
  23237. }
  23238. }
  23239. dd.ReadEnd()
  23240. }
  23241. return v, changed
  23242. }
  23243. func (f *decFnInfo) fastpathDecMapIntUintR(rv reflect.Value) {
  23244. if rv.CanAddr() {
  23245. vp := rv.Addr().Interface().(*map[int]uint)
  23246. v, changed := fastpathTV.DecMapIntUintV(*vp, fastpathCheckNilFalse, true, f.d)
  23247. if changed {
  23248. *vp = v
  23249. }
  23250. } else {
  23251. v := rv.Interface().(map[int]uint)
  23252. fastpathTV.DecMapIntUintV(v, fastpathCheckNilFalse, false, f.d)
  23253. }
  23254. }
  23255. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, checkNil bool, d *Decoder) {
  23256. v, changed := f.DecMapIntUintV(*vp, checkNil, true, d)
  23257. if changed {
  23258. *vp = v
  23259. }
  23260. }
  23261. func (_ fastpathT) DecMapIntUintV(v map[int]uint, checkNil bool, canChange bool,
  23262. d *Decoder) (_ map[int]uint, changed bool) {
  23263. dd := d.d
  23264. if checkNil && dd.TryDecodeAsNil() {
  23265. if v != nil {
  23266. changed = true
  23267. }
  23268. return nil, changed
  23269. }
  23270. containerLen := dd.ReadMapStart()
  23271. if canChange && v == nil {
  23272. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23273. v = make(map[int]uint, xlen)
  23274. changed = true
  23275. }
  23276. var mk int
  23277. var mv uint
  23278. if containerLen > 0 {
  23279. for j := 0; j < containerLen; j++ {
  23280. mk = int(dd.DecodeInt(intBitsize))
  23281. mv = uint(dd.DecodeUint(uintBitsize))
  23282. if v != nil {
  23283. v[mk] = mv
  23284. }
  23285. }
  23286. } else if containerLen < 0 {
  23287. for j := 0; !dd.CheckBreak(); j++ {
  23288. mk = int(dd.DecodeInt(intBitsize))
  23289. mv = uint(dd.DecodeUint(uintBitsize))
  23290. if v != nil {
  23291. v[mk] = mv
  23292. }
  23293. }
  23294. dd.ReadEnd()
  23295. }
  23296. return v, changed
  23297. }
  23298. func (f *decFnInfo) fastpathDecMapIntUint8R(rv reflect.Value) {
  23299. if rv.CanAddr() {
  23300. vp := rv.Addr().Interface().(*map[int]uint8)
  23301. v, changed := fastpathTV.DecMapIntUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  23302. if changed {
  23303. *vp = v
  23304. }
  23305. } else {
  23306. v := rv.Interface().(map[int]uint8)
  23307. fastpathTV.DecMapIntUint8V(v, fastpathCheckNilFalse, false, f.d)
  23308. }
  23309. }
  23310. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, checkNil bool, d *Decoder) {
  23311. v, changed := f.DecMapIntUint8V(*vp, checkNil, true, d)
  23312. if changed {
  23313. *vp = v
  23314. }
  23315. }
  23316. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, checkNil bool, canChange bool,
  23317. d *Decoder) (_ map[int]uint8, changed bool) {
  23318. dd := d.d
  23319. if checkNil && dd.TryDecodeAsNil() {
  23320. if v != nil {
  23321. changed = true
  23322. }
  23323. return nil, changed
  23324. }
  23325. containerLen := dd.ReadMapStart()
  23326. if canChange && v == nil {
  23327. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23328. v = make(map[int]uint8, xlen)
  23329. changed = true
  23330. }
  23331. var mk int
  23332. var mv uint8
  23333. if containerLen > 0 {
  23334. for j := 0; j < containerLen; j++ {
  23335. mk = int(dd.DecodeInt(intBitsize))
  23336. mv = uint8(dd.DecodeUint(8))
  23337. if v != nil {
  23338. v[mk] = mv
  23339. }
  23340. }
  23341. } else if containerLen < 0 {
  23342. for j := 0; !dd.CheckBreak(); j++ {
  23343. mk = int(dd.DecodeInt(intBitsize))
  23344. mv = uint8(dd.DecodeUint(8))
  23345. if v != nil {
  23346. v[mk] = mv
  23347. }
  23348. }
  23349. dd.ReadEnd()
  23350. }
  23351. return v, changed
  23352. }
  23353. func (f *decFnInfo) fastpathDecMapIntUint16R(rv reflect.Value) {
  23354. if rv.CanAddr() {
  23355. vp := rv.Addr().Interface().(*map[int]uint16)
  23356. v, changed := fastpathTV.DecMapIntUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  23357. if changed {
  23358. *vp = v
  23359. }
  23360. } else {
  23361. v := rv.Interface().(map[int]uint16)
  23362. fastpathTV.DecMapIntUint16V(v, fastpathCheckNilFalse, false, f.d)
  23363. }
  23364. }
  23365. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, checkNil bool, d *Decoder) {
  23366. v, changed := f.DecMapIntUint16V(*vp, checkNil, true, d)
  23367. if changed {
  23368. *vp = v
  23369. }
  23370. }
  23371. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, checkNil bool, canChange bool,
  23372. d *Decoder) (_ map[int]uint16, changed bool) {
  23373. dd := d.d
  23374. if checkNil && dd.TryDecodeAsNil() {
  23375. if v != nil {
  23376. changed = true
  23377. }
  23378. return nil, changed
  23379. }
  23380. containerLen := dd.ReadMapStart()
  23381. if canChange && v == nil {
  23382. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23383. v = make(map[int]uint16, xlen)
  23384. changed = true
  23385. }
  23386. var mk int
  23387. var mv uint16
  23388. if containerLen > 0 {
  23389. for j := 0; j < containerLen; j++ {
  23390. mk = int(dd.DecodeInt(intBitsize))
  23391. mv = uint16(dd.DecodeUint(16))
  23392. if v != nil {
  23393. v[mk] = mv
  23394. }
  23395. }
  23396. } else if containerLen < 0 {
  23397. for j := 0; !dd.CheckBreak(); j++ {
  23398. mk = int(dd.DecodeInt(intBitsize))
  23399. mv = uint16(dd.DecodeUint(16))
  23400. if v != nil {
  23401. v[mk] = mv
  23402. }
  23403. }
  23404. dd.ReadEnd()
  23405. }
  23406. return v, changed
  23407. }
  23408. func (f *decFnInfo) fastpathDecMapIntUint32R(rv reflect.Value) {
  23409. if rv.CanAddr() {
  23410. vp := rv.Addr().Interface().(*map[int]uint32)
  23411. v, changed := fastpathTV.DecMapIntUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  23412. if changed {
  23413. *vp = v
  23414. }
  23415. } else {
  23416. v := rv.Interface().(map[int]uint32)
  23417. fastpathTV.DecMapIntUint32V(v, fastpathCheckNilFalse, false, f.d)
  23418. }
  23419. }
  23420. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, checkNil bool, d *Decoder) {
  23421. v, changed := f.DecMapIntUint32V(*vp, checkNil, true, d)
  23422. if changed {
  23423. *vp = v
  23424. }
  23425. }
  23426. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, checkNil bool, canChange bool,
  23427. d *Decoder) (_ map[int]uint32, changed bool) {
  23428. dd := d.d
  23429. if checkNil && dd.TryDecodeAsNil() {
  23430. if v != nil {
  23431. changed = true
  23432. }
  23433. return nil, changed
  23434. }
  23435. containerLen := dd.ReadMapStart()
  23436. if canChange && v == nil {
  23437. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23438. v = make(map[int]uint32, xlen)
  23439. changed = true
  23440. }
  23441. var mk int
  23442. var mv uint32
  23443. if containerLen > 0 {
  23444. for j := 0; j < containerLen; j++ {
  23445. mk = int(dd.DecodeInt(intBitsize))
  23446. mv = uint32(dd.DecodeUint(32))
  23447. if v != nil {
  23448. v[mk] = mv
  23449. }
  23450. }
  23451. } else if containerLen < 0 {
  23452. for j := 0; !dd.CheckBreak(); j++ {
  23453. mk = int(dd.DecodeInt(intBitsize))
  23454. mv = uint32(dd.DecodeUint(32))
  23455. if v != nil {
  23456. v[mk] = mv
  23457. }
  23458. }
  23459. dd.ReadEnd()
  23460. }
  23461. return v, changed
  23462. }
  23463. func (f *decFnInfo) fastpathDecMapIntUint64R(rv reflect.Value) {
  23464. if rv.CanAddr() {
  23465. vp := rv.Addr().Interface().(*map[int]uint64)
  23466. v, changed := fastpathTV.DecMapIntUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  23467. if changed {
  23468. *vp = v
  23469. }
  23470. } else {
  23471. v := rv.Interface().(map[int]uint64)
  23472. fastpathTV.DecMapIntUint64V(v, fastpathCheckNilFalse, false, f.d)
  23473. }
  23474. }
  23475. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, checkNil bool, d *Decoder) {
  23476. v, changed := f.DecMapIntUint64V(*vp, checkNil, true, d)
  23477. if changed {
  23478. *vp = v
  23479. }
  23480. }
  23481. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, checkNil bool, canChange bool,
  23482. d *Decoder) (_ map[int]uint64, changed bool) {
  23483. dd := d.d
  23484. if checkNil && dd.TryDecodeAsNil() {
  23485. if v != nil {
  23486. changed = true
  23487. }
  23488. return nil, changed
  23489. }
  23490. containerLen := dd.ReadMapStart()
  23491. if canChange && v == nil {
  23492. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23493. v = make(map[int]uint64, xlen)
  23494. changed = true
  23495. }
  23496. var mk int
  23497. var mv uint64
  23498. if containerLen > 0 {
  23499. for j := 0; j < containerLen; j++ {
  23500. mk = int(dd.DecodeInt(intBitsize))
  23501. mv = dd.DecodeUint(64)
  23502. if v != nil {
  23503. v[mk] = mv
  23504. }
  23505. }
  23506. } else if containerLen < 0 {
  23507. for j := 0; !dd.CheckBreak(); j++ {
  23508. mk = int(dd.DecodeInt(intBitsize))
  23509. mv = dd.DecodeUint(64)
  23510. if v != nil {
  23511. v[mk] = mv
  23512. }
  23513. }
  23514. dd.ReadEnd()
  23515. }
  23516. return v, changed
  23517. }
  23518. func (f *decFnInfo) fastpathDecMapIntUintptrR(rv reflect.Value) {
  23519. if rv.CanAddr() {
  23520. vp := rv.Addr().Interface().(*map[int]uintptr)
  23521. v, changed := fastpathTV.DecMapIntUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  23522. if changed {
  23523. *vp = v
  23524. }
  23525. } else {
  23526. v := rv.Interface().(map[int]uintptr)
  23527. fastpathTV.DecMapIntUintptrV(v, fastpathCheckNilFalse, false, f.d)
  23528. }
  23529. }
  23530. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, checkNil bool, d *Decoder) {
  23531. v, changed := f.DecMapIntUintptrV(*vp, checkNil, true, d)
  23532. if changed {
  23533. *vp = v
  23534. }
  23535. }
  23536. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, checkNil bool, canChange bool,
  23537. d *Decoder) (_ map[int]uintptr, changed bool) {
  23538. dd := d.d
  23539. if checkNil && dd.TryDecodeAsNil() {
  23540. if v != nil {
  23541. changed = true
  23542. }
  23543. return nil, changed
  23544. }
  23545. containerLen := dd.ReadMapStart()
  23546. if canChange && v == nil {
  23547. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23548. v = make(map[int]uintptr, xlen)
  23549. changed = true
  23550. }
  23551. var mk int
  23552. var mv uintptr
  23553. if containerLen > 0 {
  23554. for j := 0; j < containerLen; j++ {
  23555. mk = int(dd.DecodeInt(intBitsize))
  23556. mv = uintptr(dd.DecodeUint(uintBitsize))
  23557. if v != nil {
  23558. v[mk] = mv
  23559. }
  23560. }
  23561. } else if containerLen < 0 {
  23562. for j := 0; !dd.CheckBreak(); j++ {
  23563. mk = int(dd.DecodeInt(intBitsize))
  23564. mv = uintptr(dd.DecodeUint(uintBitsize))
  23565. if v != nil {
  23566. v[mk] = mv
  23567. }
  23568. }
  23569. dd.ReadEnd()
  23570. }
  23571. return v, changed
  23572. }
  23573. func (f *decFnInfo) fastpathDecMapIntIntR(rv reflect.Value) {
  23574. if rv.CanAddr() {
  23575. vp := rv.Addr().Interface().(*map[int]int)
  23576. v, changed := fastpathTV.DecMapIntIntV(*vp, fastpathCheckNilFalse, true, f.d)
  23577. if changed {
  23578. *vp = v
  23579. }
  23580. } else {
  23581. v := rv.Interface().(map[int]int)
  23582. fastpathTV.DecMapIntIntV(v, fastpathCheckNilFalse, false, f.d)
  23583. }
  23584. }
  23585. func (f fastpathT) DecMapIntIntX(vp *map[int]int, checkNil bool, d *Decoder) {
  23586. v, changed := f.DecMapIntIntV(*vp, checkNil, true, d)
  23587. if changed {
  23588. *vp = v
  23589. }
  23590. }
  23591. func (_ fastpathT) DecMapIntIntV(v map[int]int, checkNil bool, canChange bool,
  23592. d *Decoder) (_ map[int]int, changed bool) {
  23593. dd := d.d
  23594. if checkNil && dd.TryDecodeAsNil() {
  23595. if v != nil {
  23596. changed = true
  23597. }
  23598. return nil, changed
  23599. }
  23600. containerLen := dd.ReadMapStart()
  23601. if canChange && v == nil {
  23602. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23603. v = make(map[int]int, xlen)
  23604. changed = true
  23605. }
  23606. var mk int
  23607. var mv int
  23608. if containerLen > 0 {
  23609. for j := 0; j < containerLen; j++ {
  23610. mk = int(dd.DecodeInt(intBitsize))
  23611. mv = int(dd.DecodeInt(intBitsize))
  23612. if v != nil {
  23613. v[mk] = mv
  23614. }
  23615. }
  23616. } else if containerLen < 0 {
  23617. for j := 0; !dd.CheckBreak(); j++ {
  23618. mk = int(dd.DecodeInt(intBitsize))
  23619. mv = int(dd.DecodeInt(intBitsize))
  23620. if v != nil {
  23621. v[mk] = mv
  23622. }
  23623. }
  23624. dd.ReadEnd()
  23625. }
  23626. return v, changed
  23627. }
  23628. func (f *decFnInfo) fastpathDecMapIntInt8R(rv reflect.Value) {
  23629. if rv.CanAddr() {
  23630. vp := rv.Addr().Interface().(*map[int]int8)
  23631. v, changed := fastpathTV.DecMapIntInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  23632. if changed {
  23633. *vp = v
  23634. }
  23635. } else {
  23636. v := rv.Interface().(map[int]int8)
  23637. fastpathTV.DecMapIntInt8V(v, fastpathCheckNilFalse, false, f.d)
  23638. }
  23639. }
  23640. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, checkNil bool, d *Decoder) {
  23641. v, changed := f.DecMapIntInt8V(*vp, checkNil, true, d)
  23642. if changed {
  23643. *vp = v
  23644. }
  23645. }
  23646. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, checkNil bool, canChange bool,
  23647. d *Decoder) (_ map[int]int8, changed bool) {
  23648. dd := d.d
  23649. if checkNil && dd.TryDecodeAsNil() {
  23650. if v != nil {
  23651. changed = true
  23652. }
  23653. return nil, changed
  23654. }
  23655. containerLen := dd.ReadMapStart()
  23656. if canChange && v == nil {
  23657. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23658. v = make(map[int]int8, xlen)
  23659. changed = true
  23660. }
  23661. var mk int
  23662. var mv int8
  23663. if containerLen > 0 {
  23664. for j := 0; j < containerLen; j++ {
  23665. mk = int(dd.DecodeInt(intBitsize))
  23666. mv = int8(dd.DecodeInt(8))
  23667. if v != nil {
  23668. v[mk] = mv
  23669. }
  23670. }
  23671. } else if containerLen < 0 {
  23672. for j := 0; !dd.CheckBreak(); j++ {
  23673. mk = int(dd.DecodeInt(intBitsize))
  23674. mv = int8(dd.DecodeInt(8))
  23675. if v != nil {
  23676. v[mk] = mv
  23677. }
  23678. }
  23679. dd.ReadEnd()
  23680. }
  23681. return v, changed
  23682. }
  23683. func (f *decFnInfo) fastpathDecMapIntInt16R(rv reflect.Value) {
  23684. if rv.CanAddr() {
  23685. vp := rv.Addr().Interface().(*map[int]int16)
  23686. v, changed := fastpathTV.DecMapIntInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  23687. if changed {
  23688. *vp = v
  23689. }
  23690. } else {
  23691. v := rv.Interface().(map[int]int16)
  23692. fastpathTV.DecMapIntInt16V(v, fastpathCheckNilFalse, false, f.d)
  23693. }
  23694. }
  23695. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, checkNil bool, d *Decoder) {
  23696. v, changed := f.DecMapIntInt16V(*vp, checkNil, true, d)
  23697. if changed {
  23698. *vp = v
  23699. }
  23700. }
  23701. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, checkNil bool, canChange bool,
  23702. d *Decoder) (_ map[int]int16, changed bool) {
  23703. dd := d.d
  23704. if checkNil && dd.TryDecodeAsNil() {
  23705. if v != nil {
  23706. changed = true
  23707. }
  23708. return nil, changed
  23709. }
  23710. containerLen := dd.ReadMapStart()
  23711. if canChange && v == nil {
  23712. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23713. v = make(map[int]int16, xlen)
  23714. changed = true
  23715. }
  23716. var mk int
  23717. var mv int16
  23718. if containerLen > 0 {
  23719. for j := 0; j < containerLen; j++ {
  23720. mk = int(dd.DecodeInt(intBitsize))
  23721. mv = int16(dd.DecodeInt(16))
  23722. if v != nil {
  23723. v[mk] = mv
  23724. }
  23725. }
  23726. } else if containerLen < 0 {
  23727. for j := 0; !dd.CheckBreak(); j++ {
  23728. mk = int(dd.DecodeInt(intBitsize))
  23729. mv = int16(dd.DecodeInt(16))
  23730. if v != nil {
  23731. v[mk] = mv
  23732. }
  23733. }
  23734. dd.ReadEnd()
  23735. }
  23736. return v, changed
  23737. }
  23738. func (f *decFnInfo) fastpathDecMapIntInt32R(rv reflect.Value) {
  23739. if rv.CanAddr() {
  23740. vp := rv.Addr().Interface().(*map[int]int32)
  23741. v, changed := fastpathTV.DecMapIntInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  23742. if changed {
  23743. *vp = v
  23744. }
  23745. } else {
  23746. v := rv.Interface().(map[int]int32)
  23747. fastpathTV.DecMapIntInt32V(v, fastpathCheckNilFalse, false, f.d)
  23748. }
  23749. }
  23750. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, checkNil bool, d *Decoder) {
  23751. v, changed := f.DecMapIntInt32V(*vp, checkNil, true, d)
  23752. if changed {
  23753. *vp = v
  23754. }
  23755. }
  23756. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, checkNil bool, canChange bool,
  23757. d *Decoder) (_ map[int]int32, changed bool) {
  23758. dd := d.d
  23759. if checkNil && dd.TryDecodeAsNil() {
  23760. if v != nil {
  23761. changed = true
  23762. }
  23763. return nil, changed
  23764. }
  23765. containerLen := dd.ReadMapStart()
  23766. if canChange && v == nil {
  23767. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23768. v = make(map[int]int32, xlen)
  23769. changed = true
  23770. }
  23771. var mk int
  23772. var mv int32
  23773. if containerLen > 0 {
  23774. for j := 0; j < containerLen; j++ {
  23775. mk = int(dd.DecodeInt(intBitsize))
  23776. mv = int32(dd.DecodeInt(32))
  23777. if v != nil {
  23778. v[mk] = mv
  23779. }
  23780. }
  23781. } else if containerLen < 0 {
  23782. for j := 0; !dd.CheckBreak(); j++ {
  23783. mk = int(dd.DecodeInt(intBitsize))
  23784. mv = int32(dd.DecodeInt(32))
  23785. if v != nil {
  23786. v[mk] = mv
  23787. }
  23788. }
  23789. dd.ReadEnd()
  23790. }
  23791. return v, changed
  23792. }
  23793. func (f *decFnInfo) fastpathDecMapIntInt64R(rv reflect.Value) {
  23794. if rv.CanAddr() {
  23795. vp := rv.Addr().Interface().(*map[int]int64)
  23796. v, changed := fastpathTV.DecMapIntInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  23797. if changed {
  23798. *vp = v
  23799. }
  23800. } else {
  23801. v := rv.Interface().(map[int]int64)
  23802. fastpathTV.DecMapIntInt64V(v, fastpathCheckNilFalse, false, f.d)
  23803. }
  23804. }
  23805. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, checkNil bool, d *Decoder) {
  23806. v, changed := f.DecMapIntInt64V(*vp, checkNil, true, d)
  23807. if changed {
  23808. *vp = v
  23809. }
  23810. }
  23811. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, checkNil bool, canChange bool,
  23812. d *Decoder) (_ map[int]int64, changed bool) {
  23813. dd := d.d
  23814. if checkNil && dd.TryDecodeAsNil() {
  23815. if v != nil {
  23816. changed = true
  23817. }
  23818. return nil, changed
  23819. }
  23820. containerLen := dd.ReadMapStart()
  23821. if canChange && v == nil {
  23822. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23823. v = make(map[int]int64, xlen)
  23824. changed = true
  23825. }
  23826. var mk int
  23827. var mv int64
  23828. if containerLen > 0 {
  23829. for j := 0; j < containerLen; j++ {
  23830. mk = int(dd.DecodeInt(intBitsize))
  23831. mv = dd.DecodeInt(64)
  23832. if v != nil {
  23833. v[mk] = mv
  23834. }
  23835. }
  23836. } else if containerLen < 0 {
  23837. for j := 0; !dd.CheckBreak(); j++ {
  23838. mk = int(dd.DecodeInt(intBitsize))
  23839. mv = dd.DecodeInt(64)
  23840. if v != nil {
  23841. v[mk] = mv
  23842. }
  23843. }
  23844. dd.ReadEnd()
  23845. }
  23846. return v, changed
  23847. }
  23848. func (f *decFnInfo) fastpathDecMapIntFloat32R(rv reflect.Value) {
  23849. if rv.CanAddr() {
  23850. vp := rv.Addr().Interface().(*map[int]float32)
  23851. v, changed := fastpathTV.DecMapIntFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  23852. if changed {
  23853. *vp = v
  23854. }
  23855. } else {
  23856. v := rv.Interface().(map[int]float32)
  23857. fastpathTV.DecMapIntFloat32V(v, fastpathCheckNilFalse, false, f.d)
  23858. }
  23859. }
  23860. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, checkNil bool, d *Decoder) {
  23861. v, changed := f.DecMapIntFloat32V(*vp, checkNil, true, d)
  23862. if changed {
  23863. *vp = v
  23864. }
  23865. }
  23866. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, checkNil bool, canChange bool,
  23867. d *Decoder) (_ map[int]float32, changed bool) {
  23868. dd := d.d
  23869. if checkNil && dd.TryDecodeAsNil() {
  23870. if v != nil {
  23871. changed = true
  23872. }
  23873. return nil, changed
  23874. }
  23875. containerLen := dd.ReadMapStart()
  23876. if canChange && v == nil {
  23877. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23878. v = make(map[int]float32, xlen)
  23879. changed = true
  23880. }
  23881. var mk int
  23882. var mv float32
  23883. if containerLen > 0 {
  23884. for j := 0; j < containerLen; j++ {
  23885. mk = int(dd.DecodeInt(intBitsize))
  23886. mv = float32(dd.DecodeFloat(true))
  23887. if v != nil {
  23888. v[mk] = mv
  23889. }
  23890. }
  23891. } else if containerLen < 0 {
  23892. for j := 0; !dd.CheckBreak(); j++ {
  23893. mk = int(dd.DecodeInt(intBitsize))
  23894. mv = float32(dd.DecodeFloat(true))
  23895. if v != nil {
  23896. v[mk] = mv
  23897. }
  23898. }
  23899. dd.ReadEnd()
  23900. }
  23901. return v, changed
  23902. }
  23903. func (f *decFnInfo) fastpathDecMapIntFloat64R(rv reflect.Value) {
  23904. if rv.CanAddr() {
  23905. vp := rv.Addr().Interface().(*map[int]float64)
  23906. v, changed := fastpathTV.DecMapIntFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  23907. if changed {
  23908. *vp = v
  23909. }
  23910. } else {
  23911. v := rv.Interface().(map[int]float64)
  23912. fastpathTV.DecMapIntFloat64V(v, fastpathCheckNilFalse, false, f.d)
  23913. }
  23914. }
  23915. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, checkNil bool, d *Decoder) {
  23916. v, changed := f.DecMapIntFloat64V(*vp, checkNil, true, d)
  23917. if changed {
  23918. *vp = v
  23919. }
  23920. }
  23921. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, checkNil bool, canChange bool,
  23922. d *Decoder) (_ map[int]float64, changed bool) {
  23923. dd := d.d
  23924. if checkNil && dd.TryDecodeAsNil() {
  23925. if v != nil {
  23926. changed = true
  23927. }
  23928. return nil, changed
  23929. }
  23930. containerLen := dd.ReadMapStart()
  23931. if canChange && v == nil {
  23932. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23933. v = make(map[int]float64, xlen)
  23934. changed = true
  23935. }
  23936. var mk int
  23937. var mv float64
  23938. if containerLen > 0 {
  23939. for j := 0; j < containerLen; j++ {
  23940. mk = int(dd.DecodeInt(intBitsize))
  23941. mv = dd.DecodeFloat(false)
  23942. if v != nil {
  23943. v[mk] = mv
  23944. }
  23945. }
  23946. } else if containerLen < 0 {
  23947. for j := 0; !dd.CheckBreak(); j++ {
  23948. mk = int(dd.DecodeInt(intBitsize))
  23949. mv = dd.DecodeFloat(false)
  23950. if v != nil {
  23951. v[mk] = mv
  23952. }
  23953. }
  23954. dd.ReadEnd()
  23955. }
  23956. return v, changed
  23957. }
  23958. func (f *decFnInfo) fastpathDecMapIntBoolR(rv reflect.Value) {
  23959. if rv.CanAddr() {
  23960. vp := rv.Addr().Interface().(*map[int]bool)
  23961. v, changed := fastpathTV.DecMapIntBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  23962. if changed {
  23963. *vp = v
  23964. }
  23965. } else {
  23966. v := rv.Interface().(map[int]bool)
  23967. fastpathTV.DecMapIntBoolV(v, fastpathCheckNilFalse, false, f.d)
  23968. }
  23969. }
  23970. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, checkNil bool, d *Decoder) {
  23971. v, changed := f.DecMapIntBoolV(*vp, checkNil, true, d)
  23972. if changed {
  23973. *vp = v
  23974. }
  23975. }
  23976. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, checkNil bool, canChange bool,
  23977. d *Decoder) (_ map[int]bool, changed bool) {
  23978. dd := d.d
  23979. if checkNil && dd.TryDecodeAsNil() {
  23980. if v != nil {
  23981. changed = true
  23982. }
  23983. return nil, changed
  23984. }
  23985. containerLen := dd.ReadMapStart()
  23986. if canChange && v == nil {
  23987. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23988. v = make(map[int]bool, xlen)
  23989. changed = true
  23990. }
  23991. var mk int
  23992. var mv bool
  23993. if containerLen > 0 {
  23994. for j := 0; j < containerLen; j++ {
  23995. mk = int(dd.DecodeInt(intBitsize))
  23996. mv = dd.DecodeBool()
  23997. if v != nil {
  23998. v[mk] = mv
  23999. }
  24000. }
  24001. } else if containerLen < 0 {
  24002. for j := 0; !dd.CheckBreak(); j++ {
  24003. mk = int(dd.DecodeInt(intBitsize))
  24004. mv = dd.DecodeBool()
  24005. if v != nil {
  24006. v[mk] = mv
  24007. }
  24008. }
  24009. dd.ReadEnd()
  24010. }
  24011. return v, changed
  24012. }
  24013. func (f *decFnInfo) fastpathDecMapInt8IntfR(rv reflect.Value) {
  24014. if rv.CanAddr() {
  24015. vp := rv.Addr().Interface().(*map[int8]interface{})
  24016. v, changed := fastpathTV.DecMapInt8IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  24017. if changed {
  24018. *vp = v
  24019. }
  24020. } else {
  24021. v := rv.Interface().(map[int8]interface{})
  24022. fastpathTV.DecMapInt8IntfV(v, fastpathCheckNilFalse, false, f.d)
  24023. }
  24024. }
  24025. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, checkNil bool, d *Decoder) {
  24026. v, changed := f.DecMapInt8IntfV(*vp, checkNil, true, d)
  24027. if changed {
  24028. *vp = v
  24029. }
  24030. }
  24031. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, checkNil bool, canChange bool,
  24032. d *Decoder) (_ map[int8]interface{}, changed bool) {
  24033. dd := d.d
  24034. if checkNil && dd.TryDecodeAsNil() {
  24035. if v != nil {
  24036. changed = true
  24037. }
  24038. return nil, changed
  24039. }
  24040. containerLen := dd.ReadMapStart()
  24041. if canChange && v == nil {
  24042. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  24043. v = make(map[int8]interface{}, xlen)
  24044. changed = true
  24045. }
  24046. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  24047. var mk int8
  24048. var mv interface{}
  24049. if containerLen > 0 {
  24050. for j := 0; j < containerLen; j++ {
  24051. mk = int8(dd.DecodeInt(8))
  24052. if mapGet {
  24053. mv = v[mk]
  24054. } else {
  24055. mv = nil
  24056. }
  24057. d.decode(&mv)
  24058. if v != nil {
  24059. v[mk] = mv
  24060. }
  24061. }
  24062. } else if containerLen < 0 {
  24063. for j := 0; !dd.CheckBreak(); j++ {
  24064. mk = int8(dd.DecodeInt(8))
  24065. if mapGet {
  24066. mv = v[mk]
  24067. } else {
  24068. mv = nil
  24069. }
  24070. d.decode(&mv)
  24071. if v != nil {
  24072. v[mk] = mv
  24073. }
  24074. }
  24075. dd.ReadEnd()
  24076. }
  24077. return v, changed
  24078. }
  24079. func (f *decFnInfo) fastpathDecMapInt8StringR(rv reflect.Value) {
  24080. if rv.CanAddr() {
  24081. vp := rv.Addr().Interface().(*map[int8]string)
  24082. v, changed := fastpathTV.DecMapInt8StringV(*vp, fastpathCheckNilFalse, true, f.d)
  24083. if changed {
  24084. *vp = v
  24085. }
  24086. } else {
  24087. v := rv.Interface().(map[int8]string)
  24088. fastpathTV.DecMapInt8StringV(v, fastpathCheckNilFalse, false, f.d)
  24089. }
  24090. }
  24091. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, checkNil bool, d *Decoder) {
  24092. v, changed := f.DecMapInt8StringV(*vp, checkNil, true, d)
  24093. if changed {
  24094. *vp = v
  24095. }
  24096. }
  24097. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, checkNil bool, canChange bool,
  24098. d *Decoder) (_ map[int8]string, changed bool) {
  24099. dd := d.d
  24100. if checkNil && dd.TryDecodeAsNil() {
  24101. if v != nil {
  24102. changed = true
  24103. }
  24104. return nil, changed
  24105. }
  24106. containerLen := dd.ReadMapStart()
  24107. if canChange && v == nil {
  24108. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  24109. v = make(map[int8]string, xlen)
  24110. changed = true
  24111. }
  24112. var mk int8
  24113. var mv string
  24114. if containerLen > 0 {
  24115. for j := 0; j < containerLen; j++ {
  24116. mk = int8(dd.DecodeInt(8))
  24117. mv = dd.DecodeString()
  24118. if v != nil {
  24119. v[mk] = mv
  24120. }
  24121. }
  24122. } else if containerLen < 0 {
  24123. for j := 0; !dd.CheckBreak(); j++ {
  24124. mk = int8(dd.DecodeInt(8))
  24125. mv = dd.DecodeString()
  24126. if v != nil {
  24127. v[mk] = mv
  24128. }
  24129. }
  24130. dd.ReadEnd()
  24131. }
  24132. return v, changed
  24133. }
  24134. func (f *decFnInfo) fastpathDecMapInt8UintR(rv reflect.Value) {
  24135. if rv.CanAddr() {
  24136. vp := rv.Addr().Interface().(*map[int8]uint)
  24137. v, changed := fastpathTV.DecMapInt8UintV(*vp, fastpathCheckNilFalse, true, f.d)
  24138. if changed {
  24139. *vp = v
  24140. }
  24141. } else {
  24142. v := rv.Interface().(map[int8]uint)
  24143. fastpathTV.DecMapInt8UintV(v, fastpathCheckNilFalse, false, f.d)
  24144. }
  24145. }
  24146. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, checkNil bool, d *Decoder) {
  24147. v, changed := f.DecMapInt8UintV(*vp, checkNil, true, d)
  24148. if changed {
  24149. *vp = v
  24150. }
  24151. }
  24152. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, checkNil bool, canChange bool,
  24153. d *Decoder) (_ map[int8]uint, changed bool) {
  24154. dd := d.d
  24155. if checkNil && dd.TryDecodeAsNil() {
  24156. if v != nil {
  24157. changed = true
  24158. }
  24159. return nil, changed
  24160. }
  24161. containerLen := dd.ReadMapStart()
  24162. if canChange && v == nil {
  24163. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24164. v = make(map[int8]uint, xlen)
  24165. changed = true
  24166. }
  24167. var mk int8
  24168. var mv uint
  24169. if containerLen > 0 {
  24170. for j := 0; j < containerLen; j++ {
  24171. mk = int8(dd.DecodeInt(8))
  24172. mv = uint(dd.DecodeUint(uintBitsize))
  24173. if v != nil {
  24174. v[mk] = mv
  24175. }
  24176. }
  24177. } else if containerLen < 0 {
  24178. for j := 0; !dd.CheckBreak(); j++ {
  24179. mk = int8(dd.DecodeInt(8))
  24180. mv = uint(dd.DecodeUint(uintBitsize))
  24181. if v != nil {
  24182. v[mk] = mv
  24183. }
  24184. }
  24185. dd.ReadEnd()
  24186. }
  24187. return v, changed
  24188. }
  24189. func (f *decFnInfo) fastpathDecMapInt8Uint8R(rv reflect.Value) {
  24190. if rv.CanAddr() {
  24191. vp := rv.Addr().Interface().(*map[int8]uint8)
  24192. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  24193. if changed {
  24194. *vp = v
  24195. }
  24196. } else {
  24197. v := rv.Interface().(map[int8]uint8)
  24198. fastpathTV.DecMapInt8Uint8V(v, fastpathCheckNilFalse, false, f.d)
  24199. }
  24200. }
  24201. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, checkNil bool, d *Decoder) {
  24202. v, changed := f.DecMapInt8Uint8V(*vp, checkNil, true, d)
  24203. if changed {
  24204. *vp = v
  24205. }
  24206. }
  24207. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, checkNil bool, canChange bool,
  24208. d *Decoder) (_ map[int8]uint8, changed bool) {
  24209. dd := d.d
  24210. if checkNil && dd.TryDecodeAsNil() {
  24211. if v != nil {
  24212. changed = true
  24213. }
  24214. return nil, changed
  24215. }
  24216. containerLen := dd.ReadMapStart()
  24217. if canChange && v == nil {
  24218. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24219. v = make(map[int8]uint8, xlen)
  24220. changed = true
  24221. }
  24222. var mk int8
  24223. var mv uint8
  24224. if containerLen > 0 {
  24225. for j := 0; j < containerLen; j++ {
  24226. mk = int8(dd.DecodeInt(8))
  24227. mv = uint8(dd.DecodeUint(8))
  24228. if v != nil {
  24229. v[mk] = mv
  24230. }
  24231. }
  24232. } else if containerLen < 0 {
  24233. for j := 0; !dd.CheckBreak(); j++ {
  24234. mk = int8(dd.DecodeInt(8))
  24235. mv = uint8(dd.DecodeUint(8))
  24236. if v != nil {
  24237. v[mk] = mv
  24238. }
  24239. }
  24240. dd.ReadEnd()
  24241. }
  24242. return v, changed
  24243. }
  24244. func (f *decFnInfo) fastpathDecMapInt8Uint16R(rv reflect.Value) {
  24245. if rv.CanAddr() {
  24246. vp := rv.Addr().Interface().(*map[int8]uint16)
  24247. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  24248. if changed {
  24249. *vp = v
  24250. }
  24251. } else {
  24252. v := rv.Interface().(map[int8]uint16)
  24253. fastpathTV.DecMapInt8Uint16V(v, fastpathCheckNilFalse, false, f.d)
  24254. }
  24255. }
  24256. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, checkNil bool, d *Decoder) {
  24257. v, changed := f.DecMapInt8Uint16V(*vp, checkNil, true, d)
  24258. if changed {
  24259. *vp = v
  24260. }
  24261. }
  24262. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, checkNil bool, canChange bool,
  24263. d *Decoder) (_ map[int8]uint16, changed bool) {
  24264. dd := d.d
  24265. if checkNil && dd.TryDecodeAsNil() {
  24266. if v != nil {
  24267. changed = true
  24268. }
  24269. return nil, changed
  24270. }
  24271. containerLen := dd.ReadMapStart()
  24272. if canChange && v == nil {
  24273. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24274. v = make(map[int8]uint16, xlen)
  24275. changed = true
  24276. }
  24277. var mk int8
  24278. var mv uint16
  24279. if containerLen > 0 {
  24280. for j := 0; j < containerLen; j++ {
  24281. mk = int8(dd.DecodeInt(8))
  24282. mv = uint16(dd.DecodeUint(16))
  24283. if v != nil {
  24284. v[mk] = mv
  24285. }
  24286. }
  24287. } else if containerLen < 0 {
  24288. for j := 0; !dd.CheckBreak(); j++ {
  24289. mk = int8(dd.DecodeInt(8))
  24290. mv = uint16(dd.DecodeUint(16))
  24291. if v != nil {
  24292. v[mk] = mv
  24293. }
  24294. }
  24295. dd.ReadEnd()
  24296. }
  24297. return v, changed
  24298. }
  24299. func (f *decFnInfo) fastpathDecMapInt8Uint32R(rv reflect.Value) {
  24300. if rv.CanAddr() {
  24301. vp := rv.Addr().Interface().(*map[int8]uint32)
  24302. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  24303. if changed {
  24304. *vp = v
  24305. }
  24306. } else {
  24307. v := rv.Interface().(map[int8]uint32)
  24308. fastpathTV.DecMapInt8Uint32V(v, fastpathCheckNilFalse, false, f.d)
  24309. }
  24310. }
  24311. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, checkNil bool, d *Decoder) {
  24312. v, changed := f.DecMapInt8Uint32V(*vp, checkNil, true, d)
  24313. if changed {
  24314. *vp = v
  24315. }
  24316. }
  24317. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, checkNil bool, canChange bool,
  24318. d *Decoder) (_ map[int8]uint32, changed bool) {
  24319. dd := d.d
  24320. if checkNil && dd.TryDecodeAsNil() {
  24321. if v != nil {
  24322. changed = true
  24323. }
  24324. return nil, changed
  24325. }
  24326. containerLen := dd.ReadMapStart()
  24327. if canChange && v == nil {
  24328. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24329. v = make(map[int8]uint32, xlen)
  24330. changed = true
  24331. }
  24332. var mk int8
  24333. var mv uint32
  24334. if containerLen > 0 {
  24335. for j := 0; j < containerLen; j++ {
  24336. mk = int8(dd.DecodeInt(8))
  24337. mv = uint32(dd.DecodeUint(32))
  24338. if v != nil {
  24339. v[mk] = mv
  24340. }
  24341. }
  24342. } else if containerLen < 0 {
  24343. for j := 0; !dd.CheckBreak(); j++ {
  24344. mk = int8(dd.DecodeInt(8))
  24345. mv = uint32(dd.DecodeUint(32))
  24346. if v != nil {
  24347. v[mk] = mv
  24348. }
  24349. }
  24350. dd.ReadEnd()
  24351. }
  24352. return v, changed
  24353. }
  24354. func (f *decFnInfo) fastpathDecMapInt8Uint64R(rv reflect.Value) {
  24355. if rv.CanAddr() {
  24356. vp := rv.Addr().Interface().(*map[int8]uint64)
  24357. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  24358. if changed {
  24359. *vp = v
  24360. }
  24361. } else {
  24362. v := rv.Interface().(map[int8]uint64)
  24363. fastpathTV.DecMapInt8Uint64V(v, fastpathCheckNilFalse, false, f.d)
  24364. }
  24365. }
  24366. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, checkNil bool, d *Decoder) {
  24367. v, changed := f.DecMapInt8Uint64V(*vp, checkNil, true, d)
  24368. if changed {
  24369. *vp = v
  24370. }
  24371. }
  24372. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, checkNil bool, canChange bool,
  24373. d *Decoder) (_ map[int8]uint64, changed bool) {
  24374. dd := d.d
  24375. if checkNil && dd.TryDecodeAsNil() {
  24376. if v != nil {
  24377. changed = true
  24378. }
  24379. return nil, changed
  24380. }
  24381. containerLen := dd.ReadMapStart()
  24382. if canChange && v == nil {
  24383. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24384. v = make(map[int8]uint64, xlen)
  24385. changed = true
  24386. }
  24387. var mk int8
  24388. var mv uint64
  24389. if containerLen > 0 {
  24390. for j := 0; j < containerLen; j++ {
  24391. mk = int8(dd.DecodeInt(8))
  24392. mv = dd.DecodeUint(64)
  24393. if v != nil {
  24394. v[mk] = mv
  24395. }
  24396. }
  24397. } else if containerLen < 0 {
  24398. for j := 0; !dd.CheckBreak(); j++ {
  24399. mk = int8(dd.DecodeInt(8))
  24400. mv = dd.DecodeUint(64)
  24401. if v != nil {
  24402. v[mk] = mv
  24403. }
  24404. }
  24405. dd.ReadEnd()
  24406. }
  24407. return v, changed
  24408. }
  24409. func (f *decFnInfo) fastpathDecMapInt8UintptrR(rv reflect.Value) {
  24410. if rv.CanAddr() {
  24411. vp := rv.Addr().Interface().(*map[int8]uintptr)
  24412. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  24413. if changed {
  24414. *vp = v
  24415. }
  24416. } else {
  24417. v := rv.Interface().(map[int8]uintptr)
  24418. fastpathTV.DecMapInt8UintptrV(v, fastpathCheckNilFalse, false, f.d)
  24419. }
  24420. }
  24421. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, checkNil bool, d *Decoder) {
  24422. v, changed := f.DecMapInt8UintptrV(*vp, checkNil, true, d)
  24423. if changed {
  24424. *vp = v
  24425. }
  24426. }
  24427. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, checkNil bool, canChange bool,
  24428. d *Decoder) (_ map[int8]uintptr, changed bool) {
  24429. dd := d.d
  24430. if checkNil && dd.TryDecodeAsNil() {
  24431. if v != nil {
  24432. changed = true
  24433. }
  24434. return nil, changed
  24435. }
  24436. containerLen := dd.ReadMapStart()
  24437. if canChange && v == nil {
  24438. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24439. v = make(map[int8]uintptr, xlen)
  24440. changed = true
  24441. }
  24442. var mk int8
  24443. var mv uintptr
  24444. if containerLen > 0 {
  24445. for j := 0; j < containerLen; j++ {
  24446. mk = int8(dd.DecodeInt(8))
  24447. mv = uintptr(dd.DecodeUint(uintBitsize))
  24448. if v != nil {
  24449. v[mk] = mv
  24450. }
  24451. }
  24452. } else if containerLen < 0 {
  24453. for j := 0; !dd.CheckBreak(); j++ {
  24454. mk = int8(dd.DecodeInt(8))
  24455. mv = uintptr(dd.DecodeUint(uintBitsize))
  24456. if v != nil {
  24457. v[mk] = mv
  24458. }
  24459. }
  24460. dd.ReadEnd()
  24461. }
  24462. return v, changed
  24463. }
  24464. func (f *decFnInfo) fastpathDecMapInt8IntR(rv reflect.Value) {
  24465. if rv.CanAddr() {
  24466. vp := rv.Addr().Interface().(*map[int8]int)
  24467. v, changed := fastpathTV.DecMapInt8IntV(*vp, fastpathCheckNilFalse, true, f.d)
  24468. if changed {
  24469. *vp = v
  24470. }
  24471. } else {
  24472. v := rv.Interface().(map[int8]int)
  24473. fastpathTV.DecMapInt8IntV(v, fastpathCheckNilFalse, false, f.d)
  24474. }
  24475. }
  24476. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, checkNil bool, d *Decoder) {
  24477. v, changed := f.DecMapInt8IntV(*vp, checkNil, true, d)
  24478. if changed {
  24479. *vp = v
  24480. }
  24481. }
  24482. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, checkNil bool, canChange bool,
  24483. d *Decoder) (_ map[int8]int, changed bool) {
  24484. dd := d.d
  24485. if checkNil && dd.TryDecodeAsNil() {
  24486. if v != nil {
  24487. changed = true
  24488. }
  24489. return nil, changed
  24490. }
  24491. containerLen := dd.ReadMapStart()
  24492. if canChange && v == nil {
  24493. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24494. v = make(map[int8]int, xlen)
  24495. changed = true
  24496. }
  24497. var mk int8
  24498. var mv int
  24499. if containerLen > 0 {
  24500. for j := 0; j < containerLen; j++ {
  24501. mk = int8(dd.DecodeInt(8))
  24502. mv = int(dd.DecodeInt(intBitsize))
  24503. if v != nil {
  24504. v[mk] = mv
  24505. }
  24506. }
  24507. } else if containerLen < 0 {
  24508. for j := 0; !dd.CheckBreak(); j++ {
  24509. mk = int8(dd.DecodeInt(8))
  24510. mv = int(dd.DecodeInt(intBitsize))
  24511. if v != nil {
  24512. v[mk] = mv
  24513. }
  24514. }
  24515. dd.ReadEnd()
  24516. }
  24517. return v, changed
  24518. }
  24519. func (f *decFnInfo) fastpathDecMapInt8Int8R(rv reflect.Value) {
  24520. if rv.CanAddr() {
  24521. vp := rv.Addr().Interface().(*map[int8]int8)
  24522. v, changed := fastpathTV.DecMapInt8Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  24523. if changed {
  24524. *vp = v
  24525. }
  24526. } else {
  24527. v := rv.Interface().(map[int8]int8)
  24528. fastpathTV.DecMapInt8Int8V(v, fastpathCheckNilFalse, false, f.d)
  24529. }
  24530. }
  24531. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, checkNil bool, d *Decoder) {
  24532. v, changed := f.DecMapInt8Int8V(*vp, checkNil, true, d)
  24533. if changed {
  24534. *vp = v
  24535. }
  24536. }
  24537. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, checkNil bool, canChange bool,
  24538. d *Decoder) (_ map[int8]int8, changed bool) {
  24539. dd := d.d
  24540. if checkNil && dd.TryDecodeAsNil() {
  24541. if v != nil {
  24542. changed = true
  24543. }
  24544. return nil, changed
  24545. }
  24546. containerLen := dd.ReadMapStart()
  24547. if canChange && v == nil {
  24548. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24549. v = make(map[int8]int8, xlen)
  24550. changed = true
  24551. }
  24552. var mk int8
  24553. var mv int8
  24554. if containerLen > 0 {
  24555. for j := 0; j < containerLen; j++ {
  24556. mk = int8(dd.DecodeInt(8))
  24557. mv = int8(dd.DecodeInt(8))
  24558. if v != nil {
  24559. v[mk] = mv
  24560. }
  24561. }
  24562. } else if containerLen < 0 {
  24563. for j := 0; !dd.CheckBreak(); j++ {
  24564. mk = int8(dd.DecodeInt(8))
  24565. mv = int8(dd.DecodeInt(8))
  24566. if v != nil {
  24567. v[mk] = mv
  24568. }
  24569. }
  24570. dd.ReadEnd()
  24571. }
  24572. return v, changed
  24573. }
  24574. func (f *decFnInfo) fastpathDecMapInt8Int16R(rv reflect.Value) {
  24575. if rv.CanAddr() {
  24576. vp := rv.Addr().Interface().(*map[int8]int16)
  24577. v, changed := fastpathTV.DecMapInt8Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  24578. if changed {
  24579. *vp = v
  24580. }
  24581. } else {
  24582. v := rv.Interface().(map[int8]int16)
  24583. fastpathTV.DecMapInt8Int16V(v, fastpathCheckNilFalse, false, f.d)
  24584. }
  24585. }
  24586. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, checkNil bool, d *Decoder) {
  24587. v, changed := f.DecMapInt8Int16V(*vp, checkNil, true, d)
  24588. if changed {
  24589. *vp = v
  24590. }
  24591. }
  24592. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, checkNil bool, canChange bool,
  24593. d *Decoder) (_ map[int8]int16, changed bool) {
  24594. dd := d.d
  24595. if checkNil && dd.TryDecodeAsNil() {
  24596. if v != nil {
  24597. changed = true
  24598. }
  24599. return nil, changed
  24600. }
  24601. containerLen := dd.ReadMapStart()
  24602. if canChange && v == nil {
  24603. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24604. v = make(map[int8]int16, xlen)
  24605. changed = true
  24606. }
  24607. var mk int8
  24608. var mv int16
  24609. if containerLen > 0 {
  24610. for j := 0; j < containerLen; j++ {
  24611. mk = int8(dd.DecodeInt(8))
  24612. mv = int16(dd.DecodeInt(16))
  24613. if v != nil {
  24614. v[mk] = mv
  24615. }
  24616. }
  24617. } else if containerLen < 0 {
  24618. for j := 0; !dd.CheckBreak(); j++ {
  24619. mk = int8(dd.DecodeInt(8))
  24620. mv = int16(dd.DecodeInt(16))
  24621. if v != nil {
  24622. v[mk] = mv
  24623. }
  24624. }
  24625. dd.ReadEnd()
  24626. }
  24627. return v, changed
  24628. }
  24629. func (f *decFnInfo) fastpathDecMapInt8Int32R(rv reflect.Value) {
  24630. if rv.CanAddr() {
  24631. vp := rv.Addr().Interface().(*map[int8]int32)
  24632. v, changed := fastpathTV.DecMapInt8Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  24633. if changed {
  24634. *vp = v
  24635. }
  24636. } else {
  24637. v := rv.Interface().(map[int8]int32)
  24638. fastpathTV.DecMapInt8Int32V(v, fastpathCheckNilFalse, false, f.d)
  24639. }
  24640. }
  24641. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, checkNil bool, d *Decoder) {
  24642. v, changed := f.DecMapInt8Int32V(*vp, checkNil, true, d)
  24643. if changed {
  24644. *vp = v
  24645. }
  24646. }
  24647. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, checkNil bool, canChange bool,
  24648. d *Decoder) (_ map[int8]int32, changed bool) {
  24649. dd := d.d
  24650. if checkNil && dd.TryDecodeAsNil() {
  24651. if v != nil {
  24652. changed = true
  24653. }
  24654. return nil, changed
  24655. }
  24656. containerLen := dd.ReadMapStart()
  24657. if canChange && v == nil {
  24658. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24659. v = make(map[int8]int32, xlen)
  24660. changed = true
  24661. }
  24662. var mk int8
  24663. var mv int32
  24664. if containerLen > 0 {
  24665. for j := 0; j < containerLen; j++ {
  24666. mk = int8(dd.DecodeInt(8))
  24667. mv = int32(dd.DecodeInt(32))
  24668. if v != nil {
  24669. v[mk] = mv
  24670. }
  24671. }
  24672. } else if containerLen < 0 {
  24673. for j := 0; !dd.CheckBreak(); j++ {
  24674. mk = int8(dd.DecodeInt(8))
  24675. mv = int32(dd.DecodeInt(32))
  24676. if v != nil {
  24677. v[mk] = mv
  24678. }
  24679. }
  24680. dd.ReadEnd()
  24681. }
  24682. return v, changed
  24683. }
  24684. func (f *decFnInfo) fastpathDecMapInt8Int64R(rv reflect.Value) {
  24685. if rv.CanAddr() {
  24686. vp := rv.Addr().Interface().(*map[int8]int64)
  24687. v, changed := fastpathTV.DecMapInt8Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  24688. if changed {
  24689. *vp = v
  24690. }
  24691. } else {
  24692. v := rv.Interface().(map[int8]int64)
  24693. fastpathTV.DecMapInt8Int64V(v, fastpathCheckNilFalse, false, f.d)
  24694. }
  24695. }
  24696. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, checkNil bool, d *Decoder) {
  24697. v, changed := f.DecMapInt8Int64V(*vp, checkNil, true, d)
  24698. if changed {
  24699. *vp = v
  24700. }
  24701. }
  24702. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, checkNil bool, canChange bool,
  24703. d *Decoder) (_ map[int8]int64, changed bool) {
  24704. dd := d.d
  24705. if checkNil && dd.TryDecodeAsNil() {
  24706. if v != nil {
  24707. changed = true
  24708. }
  24709. return nil, changed
  24710. }
  24711. containerLen := dd.ReadMapStart()
  24712. if canChange && v == nil {
  24713. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24714. v = make(map[int8]int64, xlen)
  24715. changed = true
  24716. }
  24717. var mk int8
  24718. var mv int64
  24719. if containerLen > 0 {
  24720. for j := 0; j < containerLen; j++ {
  24721. mk = int8(dd.DecodeInt(8))
  24722. mv = dd.DecodeInt(64)
  24723. if v != nil {
  24724. v[mk] = mv
  24725. }
  24726. }
  24727. } else if containerLen < 0 {
  24728. for j := 0; !dd.CheckBreak(); j++ {
  24729. mk = int8(dd.DecodeInt(8))
  24730. mv = dd.DecodeInt(64)
  24731. if v != nil {
  24732. v[mk] = mv
  24733. }
  24734. }
  24735. dd.ReadEnd()
  24736. }
  24737. return v, changed
  24738. }
  24739. func (f *decFnInfo) fastpathDecMapInt8Float32R(rv reflect.Value) {
  24740. if rv.CanAddr() {
  24741. vp := rv.Addr().Interface().(*map[int8]float32)
  24742. v, changed := fastpathTV.DecMapInt8Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  24743. if changed {
  24744. *vp = v
  24745. }
  24746. } else {
  24747. v := rv.Interface().(map[int8]float32)
  24748. fastpathTV.DecMapInt8Float32V(v, fastpathCheckNilFalse, false, f.d)
  24749. }
  24750. }
  24751. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, checkNil bool, d *Decoder) {
  24752. v, changed := f.DecMapInt8Float32V(*vp, checkNil, true, d)
  24753. if changed {
  24754. *vp = v
  24755. }
  24756. }
  24757. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, checkNil bool, canChange bool,
  24758. d *Decoder) (_ map[int8]float32, changed bool) {
  24759. dd := d.d
  24760. if checkNil && dd.TryDecodeAsNil() {
  24761. if v != nil {
  24762. changed = true
  24763. }
  24764. return nil, changed
  24765. }
  24766. containerLen := dd.ReadMapStart()
  24767. if canChange && v == nil {
  24768. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24769. v = make(map[int8]float32, xlen)
  24770. changed = true
  24771. }
  24772. var mk int8
  24773. var mv float32
  24774. if containerLen > 0 {
  24775. for j := 0; j < containerLen; j++ {
  24776. mk = int8(dd.DecodeInt(8))
  24777. mv = float32(dd.DecodeFloat(true))
  24778. if v != nil {
  24779. v[mk] = mv
  24780. }
  24781. }
  24782. } else if containerLen < 0 {
  24783. for j := 0; !dd.CheckBreak(); j++ {
  24784. mk = int8(dd.DecodeInt(8))
  24785. mv = float32(dd.DecodeFloat(true))
  24786. if v != nil {
  24787. v[mk] = mv
  24788. }
  24789. }
  24790. dd.ReadEnd()
  24791. }
  24792. return v, changed
  24793. }
  24794. func (f *decFnInfo) fastpathDecMapInt8Float64R(rv reflect.Value) {
  24795. if rv.CanAddr() {
  24796. vp := rv.Addr().Interface().(*map[int8]float64)
  24797. v, changed := fastpathTV.DecMapInt8Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  24798. if changed {
  24799. *vp = v
  24800. }
  24801. } else {
  24802. v := rv.Interface().(map[int8]float64)
  24803. fastpathTV.DecMapInt8Float64V(v, fastpathCheckNilFalse, false, f.d)
  24804. }
  24805. }
  24806. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, checkNil bool, d *Decoder) {
  24807. v, changed := f.DecMapInt8Float64V(*vp, checkNil, true, d)
  24808. if changed {
  24809. *vp = v
  24810. }
  24811. }
  24812. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, checkNil bool, canChange bool,
  24813. d *Decoder) (_ map[int8]float64, changed bool) {
  24814. dd := d.d
  24815. if checkNil && dd.TryDecodeAsNil() {
  24816. if v != nil {
  24817. changed = true
  24818. }
  24819. return nil, changed
  24820. }
  24821. containerLen := dd.ReadMapStart()
  24822. if canChange && v == nil {
  24823. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24824. v = make(map[int8]float64, xlen)
  24825. changed = true
  24826. }
  24827. var mk int8
  24828. var mv float64
  24829. if containerLen > 0 {
  24830. for j := 0; j < containerLen; j++ {
  24831. mk = int8(dd.DecodeInt(8))
  24832. mv = dd.DecodeFloat(false)
  24833. if v != nil {
  24834. v[mk] = mv
  24835. }
  24836. }
  24837. } else if containerLen < 0 {
  24838. for j := 0; !dd.CheckBreak(); j++ {
  24839. mk = int8(dd.DecodeInt(8))
  24840. mv = dd.DecodeFloat(false)
  24841. if v != nil {
  24842. v[mk] = mv
  24843. }
  24844. }
  24845. dd.ReadEnd()
  24846. }
  24847. return v, changed
  24848. }
  24849. func (f *decFnInfo) fastpathDecMapInt8BoolR(rv reflect.Value) {
  24850. if rv.CanAddr() {
  24851. vp := rv.Addr().Interface().(*map[int8]bool)
  24852. v, changed := fastpathTV.DecMapInt8BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  24853. if changed {
  24854. *vp = v
  24855. }
  24856. } else {
  24857. v := rv.Interface().(map[int8]bool)
  24858. fastpathTV.DecMapInt8BoolV(v, fastpathCheckNilFalse, false, f.d)
  24859. }
  24860. }
  24861. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, checkNil bool, d *Decoder) {
  24862. v, changed := f.DecMapInt8BoolV(*vp, checkNil, true, d)
  24863. if changed {
  24864. *vp = v
  24865. }
  24866. }
  24867. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, checkNil bool, canChange bool,
  24868. d *Decoder) (_ map[int8]bool, changed bool) {
  24869. dd := d.d
  24870. if checkNil && dd.TryDecodeAsNil() {
  24871. if v != nil {
  24872. changed = true
  24873. }
  24874. return nil, changed
  24875. }
  24876. containerLen := dd.ReadMapStart()
  24877. if canChange && v == nil {
  24878. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24879. v = make(map[int8]bool, xlen)
  24880. changed = true
  24881. }
  24882. var mk int8
  24883. var mv bool
  24884. if containerLen > 0 {
  24885. for j := 0; j < containerLen; j++ {
  24886. mk = int8(dd.DecodeInt(8))
  24887. mv = dd.DecodeBool()
  24888. if v != nil {
  24889. v[mk] = mv
  24890. }
  24891. }
  24892. } else if containerLen < 0 {
  24893. for j := 0; !dd.CheckBreak(); j++ {
  24894. mk = int8(dd.DecodeInt(8))
  24895. mv = dd.DecodeBool()
  24896. if v != nil {
  24897. v[mk] = mv
  24898. }
  24899. }
  24900. dd.ReadEnd()
  24901. }
  24902. return v, changed
  24903. }
  24904. func (f *decFnInfo) fastpathDecMapInt16IntfR(rv reflect.Value) {
  24905. if rv.CanAddr() {
  24906. vp := rv.Addr().Interface().(*map[int16]interface{})
  24907. v, changed := fastpathTV.DecMapInt16IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  24908. if changed {
  24909. *vp = v
  24910. }
  24911. } else {
  24912. v := rv.Interface().(map[int16]interface{})
  24913. fastpathTV.DecMapInt16IntfV(v, fastpathCheckNilFalse, false, f.d)
  24914. }
  24915. }
  24916. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, checkNil bool, d *Decoder) {
  24917. v, changed := f.DecMapInt16IntfV(*vp, checkNil, true, d)
  24918. if changed {
  24919. *vp = v
  24920. }
  24921. }
  24922. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, checkNil bool, canChange bool,
  24923. d *Decoder) (_ map[int16]interface{}, changed bool) {
  24924. dd := d.d
  24925. if checkNil && dd.TryDecodeAsNil() {
  24926. if v != nil {
  24927. changed = true
  24928. }
  24929. return nil, changed
  24930. }
  24931. containerLen := dd.ReadMapStart()
  24932. if canChange && v == nil {
  24933. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24934. v = make(map[int16]interface{}, xlen)
  24935. changed = true
  24936. }
  24937. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  24938. var mk int16
  24939. var mv interface{}
  24940. if containerLen > 0 {
  24941. for j := 0; j < containerLen; j++ {
  24942. mk = int16(dd.DecodeInt(16))
  24943. if mapGet {
  24944. mv = v[mk]
  24945. } else {
  24946. mv = nil
  24947. }
  24948. d.decode(&mv)
  24949. if v != nil {
  24950. v[mk] = mv
  24951. }
  24952. }
  24953. } else if containerLen < 0 {
  24954. for j := 0; !dd.CheckBreak(); j++ {
  24955. mk = int16(dd.DecodeInt(16))
  24956. if mapGet {
  24957. mv = v[mk]
  24958. } else {
  24959. mv = nil
  24960. }
  24961. d.decode(&mv)
  24962. if v != nil {
  24963. v[mk] = mv
  24964. }
  24965. }
  24966. dd.ReadEnd()
  24967. }
  24968. return v, changed
  24969. }
  24970. func (f *decFnInfo) fastpathDecMapInt16StringR(rv reflect.Value) {
  24971. if rv.CanAddr() {
  24972. vp := rv.Addr().Interface().(*map[int16]string)
  24973. v, changed := fastpathTV.DecMapInt16StringV(*vp, fastpathCheckNilFalse, true, f.d)
  24974. if changed {
  24975. *vp = v
  24976. }
  24977. } else {
  24978. v := rv.Interface().(map[int16]string)
  24979. fastpathTV.DecMapInt16StringV(v, fastpathCheckNilFalse, false, f.d)
  24980. }
  24981. }
  24982. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, checkNil bool, d *Decoder) {
  24983. v, changed := f.DecMapInt16StringV(*vp, checkNil, true, d)
  24984. if changed {
  24985. *vp = v
  24986. }
  24987. }
  24988. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, checkNil bool, canChange bool,
  24989. d *Decoder) (_ map[int16]string, changed bool) {
  24990. dd := d.d
  24991. if checkNil && dd.TryDecodeAsNil() {
  24992. if v != nil {
  24993. changed = true
  24994. }
  24995. return nil, changed
  24996. }
  24997. containerLen := dd.ReadMapStart()
  24998. if canChange && v == nil {
  24999. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 18)
  25000. v = make(map[int16]string, xlen)
  25001. changed = true
  25002. }
  25003. var mk int16
  25004. var mv string
  25005. if containerLen > 0 {
  25006. for j := 0; j < containerLen; j++ {
  25007. mk = int16(dd.DecodeInt(16))
  25008. mv = dd.DecodeString()
  25009. if v != nil {
  25010. v[mk] = mv
  25011. }
  25012. }
  25013. } else if containerLen < 0 {
  25014. for j := 0; !dd.CheckBreak(); j++ {
  25015. mk = int16(dd.DecodeInt(16))
  25016. mv = dd.DecodeString()
  25017. if v != nil {
  25018. v[mk] = mv
  25019. }
  25020. }
  25021. dd.ReadEnd()
  25022. }
  25023. return v, changed
  25024. }
  25025. func (f *decFnInfo) fastpathDecMapInt16UintR(rv reflect.Value) {
  25026. if rv.CanAddr() {
  25027. vp := rv.Addr().Interface().(*map[int16]uint)
  25028. v, changed := fastpathTV.DecMapInt16UintV(*vp, fastpathCheckNilFalse, true, f.d)
  25029. if changed {
  25030. *vp = v
  25031. }
  25032. } else {
  25033. v := rv.Interface().(map[int16]uint)
  25034. fastpathTV.DecMapInt16UintV(v, fastpathCheckNilFalse, false, f.d)
  25035. }
  25036. }
  25037. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, checkNil bool, d *Decoder) {
  25038. v, changed := f.DecMapInt16UintV(*vp, checkNil, true, d)
  25039. if changed {
  25040. *vp = v
  25041. }
  25042. }
  25043. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, checkNil bool, canChange bool,
  25044. d *Decoder) (_ map[int16]uint, changed bool) {
  25045. dd := d.d
  25046. if checkNil && dd.TryDecodeAsNil() {
  25047. if v != nil {
  25048. changed = true
  25049. }
  25050. return nil, changed
  25051. }
  25052. containerLen := dd.ReadMapStart()
  25053. if canChange && v == nil {
  25054. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25055. v = make(map[int16]uint, xlen)
  25056. changed = true
  25057. }
  25058. var mk int16
  25059. var mv uint
  25060. if containerLen > 0 {
  25061. for j := 0; j < containerLen; j++ {
  25062. mk = int16(dd.DecodeInt(16))
  25063. mv = uint(dd.DecodeUint(uintBitsize))
  25064. if v != nil {
  25065. v[mk] = mv
  25066. }
  25067. }
  25068. } else if containerLen < 0 {
  25069. for j := 0; !dd.CheckBreak(); j++ {
  25070. mk = int16(dd.DecodeInt(16))
  25071. mv = uint(dd.DecodeUint(uintBitsize))
  25072. if v != nil {
  25073. v[mk] = mv
  25074. }
  25075. }
  25076. dd.ReadEnd()
  25077. }
  25078. return v, changed
  25079. }
  25080. func (f *decFnInfo) fastpathDecMapInt16Uint8R(rv reflect.Value) {
  25081. if rv.CanAddr() {
  25082. vp := rv.Addr().Interface().(*map[int16]uint8)
  25083. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  25084. if changed {
  25085. *vp = v
  25086. }
  25087. } else {
  25088. v := rv.Interface().(map[int16]uint8)
  25089. fastpathTV.DecMapInt16Uint8V(v, fastpathCheckNilFalse, false, f.d)
  25090. }
  25091. }
  25092. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, checkNil bool, d *Decoder) {
  25093. v, changed := f.DecMapInt16Uint8V(*vp, checkNil, true, d)
  25094. if changed {
  25095. *vp = v
  25096. }
  25097. }
  25098. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, checkNil bool, canChange bool,
  25099. d *Decoder) (_ map[int16]uint8, changed bool) {
  25100. dd := d.d
  25101. if checkNil && dd.TryDecodeAsNil() {
  25102. if v != nil {
  25103. changed = true
  25104. }
  25105. return nil, changed
  25106. }
  25107. containerLen := dd.ReadMapStart()
  25108. if canChange && v == nil {
  25109. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25110. v = make(map[int16]uint8, xlen)
  25111. changed = true
  25112. }
  25113. var mk int16
  25114. var mv uint8
  25115. if containerLen > 0 {
  25116. for j := 0; j < containerLen; j++ {
  25117. mk = int16(dd.DecodeInt(16))
  25118. mv = uint8(dd.DecodeUint(8))
  25119. if v != nil {
  25120. v[mk] = mv
  25121. }
  25122. }
  25123. } else if containerLen < 0 {
  25124. for j := 0; !dd.CheckBreak(); j++ {
  25125. mk = int16(dd.DecodeInt(16))
  25126. mv = uint8(dd.DecodeUint(8))
  25127. if v != nil {
  25128. v[mk] = mv
  25129. }
  25130. }
  25131. dd.ReadEnd()
  25132. }
  25133. return v, changed
  25134. }
  25135. func (f *decFnInfo) fastpathDecMapInt16Uint16R(rv reflect.Value) {
  25136. if rv.CanAddr() {
  25137. vp := rv.Addr().Interface().(*map[int16]uint16)
  25138. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  25139. if changed {
  25140. *vp = v
  25141. }
  25142. } else {
  25143. v := rv.Interface().(map[int16]uint16)
  25144. fastpathTV.DecMapInt16Uint16V(v, fastpathCheckNilFalse, false, f.d)
  25145. }
  25146. }
  25147. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, checkNil bool, d *Decoder) {
  25148. v, changed := f.DecMapInt16Uint16V(*vp, checkNil, true, d)
  25149. if changed {
  25150. *vp = v
  25151. }
  25152. }
  25153. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, checkNil bool, canChange bool,
  25154. d *Decoder) (_ map[int16]uint16, changed bool) {
  25155. dd := d.d
  25156. if checkNil && dd.TryDecodeAsNil() {
  25157. if v != nil {
  25158. changed = true
  25159. }
  25160. return nil, changed
  25161. }
  25162. containerLen := dd.ReadMapStart()
  25163. if canChange && v == nil {
  25164. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25165. v = make(map[int16]uint16, xlen)
  25166. changed = true
  25167. }
  25168. var mk int16
  25169. var mv uint16
  25170. if containerLen > 0 {
  25171. for j := 0; j < containerLen; j++ {
  25172. mk = int16(dd.DecodeInt(16))
  25173. mv = uint16(dd.DecodeUint(16))
  25174. if v != nil {
  25175. v[mk] = mv
  25176. }
  25177. }
  25178. } else if containerLen < 0 {
  25179. for j := 0; !dd.CheckBreak(); j++ {
  25180. mk = int16(dd.DecodeInt(16))
  25181. mv = uint16(dd.DecodeUint(16))
  25182. if v != nil {
  25183. v[mk] = mv
  25184. }
  25185. }
  25186. dd.ReadEnd()
  25187. }
  25188. return v, changed
  25189. }
  25190. func (f *decFnInfo) fastpathDecMapInt16Uint32R(rv reflect.Value) {
  25191. if rv.CanAddr() {
  25192. vp := rv.Addr().Interface().(*map[int16]uint32)
  25193. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  25194. if changed {
  25195. *vp = v
  25196. }
  25197. } else {
  25198. v := rv.Interface().(map[int16]uint32)
  25199. fastpathTV.DecMapInt16Uint32V(v, fastpathCheckNilFalse, false, f.d)
  25200. }
  25201. }
  25202. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, checkNil bool, d *Decoder) {
  25203. v, changed := f.DecMapInt16Uint32V(*vp, checkNil, true, d)
  25204. if changed {
  25205. *vp = v
  25206. }
  25207. }
  25208. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, checkNil bool, canChange bool,
  25209. d *Decoder) (_ map[int16]uint32, changed bool) {
  25210. dd := d.d
  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. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25220. v = make(map[int16]uint32, xlen)
  25221. changed = true
  25222. }
  25223. var mk int16
  25224. var mv uint32
  25225. if containerLen > 0 {
  25226. for j := 0; j < containerLen; j++ {
  25227. mk = int16(dd.DecodeInt(16))
  25228. mv = uint32(dd.DecodeUint(32))
  25229. if v != nil {
  25230. v[mk] = mv
  25231. }
  25232. }
  25233. } else if containerLen < 0 {
  25234. for j := 0; !dd.CheckBreak(); j++ {
  25235. mk = int16(dd.DecodeInt(16))
  25236. mv = uint32(dd.DecodeUint(32))
  25237. if v != nil {
  25238. v[mk] = mv
  25239. }
  25240. }
  25241. dd.ReadEnd()
  25242. }
  25243. return v, changed
  25244. }
  25245. func (f *decFnInfo) fastpathDecMapInt16Uint64R(rv reflect.Value) {
  25246. if rv.CanAddr() {
  25247. vp := rv.Addr().Interface().(*map[int16]uint64)
  25248. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  25249. if changed {
  25250. *vp = v
  25251. }
  25252. } else {
  25253. v := rv.Interface().(map[int16]uint64)
  25254. fastpathTV.DecMapInt16Uint64V(v, fastpathCheckNilFalse, false, f.d)
  25255. }
  25256. }
  25257. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, checkNil bool, d *Decoder) {
  25258. v, changed := f.DecMapInt16Uint64V(*vp, checkNil, true, d)
  25259. if changed {
  25260. *vp = v
  25261. }
  25262. }
  25263. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, checkNil bool, canChange bool,
  25264. d *Decoder) (_ map[int16]uint64, changed bool) {
  25265. dd := d.d
  25266. if checkNil && dd.TryDecodeAsNil() {
  25267. if v != nil {
  25268. changed = true
  25269. }
  25270. return nil, changed
  25271. }
  25272. containerLen := dd.ReadMapStart()
  25273. if canChange && v == nil {
  25274. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25275. v = make(map[int16]uint64, xlen)
  25276. changed = true
  25277. }
  25278. var mk int16
  25279. var mv uint64
  25280. if containerLen > 0 {
  25281. for j := 0; j < containerLen; j++ {
  25282. mk = int16(dd.DecodeInt(16))
  25283. mv = dd.DecodeUint(64)
  25284. if v != nil {
  25285. v[mk] = mv
  25286. }
  25287. }
  25288. } else if containerLen < 0 {
  25289. for j := 0; !dd.CheckBreak(); j++ {
  25290. mk = int16(dd.DecodeInt(16))
  25291. mv = dd.DecodeUint(64)
  25292. if v != nil {
  25293. v[mk] = mv
  25294. }
  25295. }
  25296. dd.ReadEnd()
  25297. }
  25298. return v, changed
  25299. }
  25300. func (f *decFnInfo) fastpathDecMapInt16UintptrR(rv reflect.Value) {
  25301. if rv.CanAddr() {
  25302. vp := rv.Addr().Interface().(*map[int16]uintptr)
  25303. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  25304. if changed {
  25305. *vp = v
  25306. }
  25307. } else {
  25308. v := rv.Interface().(map[int16]uintptr)
  25309. fastpathTV.DecMapInt16UintptrV(v, fastpathCheckNilFalse, false, f.d)
  25310. }
  25311. }
  25312. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, checkNil bool, d *Decoder) {
  25313. v, changed := f.DecMapInt16UintptrV(*vp, checkNil, true, d)
  25314. if changed {
  25315. *vp = v
  25316. }
  25317. }
  25318. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, checkNil bool, canChange bool,
  25319. d *Decoder) (_ map[int16]uintptr, changed bool) {
  25320. dd := d.d
  25321. if checkNil && dd.TryDecodeAsNil() {
  25322. if v != nil {
  25323. changed = true
  25324. }
  25325. return nil, changed
  25326. }
  25327. containerLen := dd.ReadMapStart()
  25328. if canChange && v == nil {
  25329. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25330. v = make(map[int16]uintptr, xlen)
  25331. changed = true
  25332. }
  25333. var mk int16
  25334. var mv uintptr
  25335. if containerLen > 0 {
  25336. for j := 0; j < containerLen; j++ {
  25337. mk = int16(dd.DecodeInt(16))
  25338. mv = uintptr(dd.DecodeUint(uintBitsize))
  25339. if v != nil {
  25340. v[mk] = mv
  25341. }
  25342. }
  25343. } else if containerLen < 0 {
  25344. for j := 0; !dd.CheckBreak(); j++ {
  25345. mk = int16(dd.DecodeInt(16))
  25346. mv = uintptr(dd.DecodeUint(uintBitsize))
  25347. if v != nil {
  25348. v[mk] = mv
  25349. }
  25350. }
  25351. dd.ReadEnd()
  25352. }
  25353. return v, changed
  25354. }
  25355. func (f *decFnInfo) fastpathDecMapInt16IntR(rv reflect.Value) {
  25356. if rv.CanAddr() {
  25357. vp := rv.Addr().Interface().(*map[int16]int)
  25358. v, changed := fastpathTV.DecMapInt16IntV(*vp, fastpathCheckNilFalse, true, f.d)
  25359. if changed {
  25360. *vp = v
  25361. }
  25362. } else {
  25363. v := rv.Interface().(map[int16]int)
  25364. fastpathTV.DecMapInt16IntV(v, fastpathCheckNilFalse, false, f.d)
  25365. }
  25366. }
  25367. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, checkNil bool, d *Decoder) {
  25368. v, changed := f.DecMapInt16IntV(*vp, checkNil, true, d)
  25369. if changed {
  25370. *vp = v
  25371. }
  25372. }
  25373. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, checkNil bool, canChange bool,
  25374. d *Decoder) (_ map[int16]int, changed bool) {
  25375. dd := d.d
  25376. if checkNil && dd.TryDecodeAsNil() {
  25377. if v != nil {
  25378. changed = true
  25379. }
  25380. return nil, changed
  25381. }
  25382. containerLen := dd.ReadMapStart()
  25383. if canChange && v == nil {
  25384. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25385. v = make(map[int16]int, xlen)
  25386. changed = true
  25387. }
  25388. var mk int16
  25389. var mv int
  25390. if containerLen > 0 {
  25391. for j := 0; j < containerLen; j++ {
  25392. mk = int16(dd.DecodeInt(16))
  25393. mv = int(dd.DecodeInt(intBitsize))
  25394. if v != nil {
  25395. v[mk] = mv
  25396. }
  25397. }
  25398. } else if containerLen < 0 {
  25399. for j := 0; !dd.CheckBreak(); j++ {
  25400. mk = int16(dd.DecodeInt(16))
  25401. mv = int(dd.DecodeInt(intBitsize))
  25402. if v != nil {
  25403. v[mk] = mv
  25404. }
  25405. }
  25406. dd.ReadEnd()
  25407. }
  25408. return v, changed
  25409. }
  25410. func (f *decFnInfo) fastpathDecMapInt16Int8R(rv reflect.Value) {
  25411. if rv.CanAddr() {
  25412. vp := rv.Addr().Interface().(*map[int16]int8)
  25413. v, changed := fastpathTV.DecMapInt16Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  25414. if changed {
  25415. *vp = v
  25416. }
  25417. } else {
  25418. v := rv.Interface().(map[int16]int8)
  25419. fastpathTV.DecMapInt16Int8V(v, fastpathCheckNilFalse, false, f.d)
  25420. }
  25421. }
  25422. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, checkNil bool, d *Decoder) {
  25423. v, changed := f.DecMapInt16Int8V(*vp, checkNil, true, d)
  25424. if changed {
  25425. *vp = v
  25426. }
  25427. }
  25428. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, checkNil bool, canChange bool,
  25429. d *Decoder) (_ map[int16]int8, changed bool) {
  25430. dd := d.d
  25431. if checkNil && dd.TryDecodeAsNil() {
  25432. if v != nil {
  25433. changed = true
  25434. }
  25435. return nil, changed
  25436. }
  25437. containerLen := dd.ReadMapStart()
  25438. if canChange && v == nil {
  25439. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25440. v = make(map[int16]int8, xlen)
  25441. changed = true
  25442. }
  25443. var mk int16
  25444. var mv int8
  25445. if containerLen > 0 {
  25446. for j := 0; j < containerLen; j++ {
  25447. mk = int16(dd.DecodeInt(16))
  25448. mv = int8(dd.DecodeInt(8))
  25449. if v != nil {
  25450. v[mk] = mv
  25451. }
  25452. }
  25453. } else if containerLen < 0 {
  25454. for j := 0; !dd.CheckBreak(); j++ {
  25455. mk = int16(dd.DecodeInt(16))
  25456. mv = int8(dd.DecodeInt(8))
  25457. if v != nil {
  25458. v[mk] = mv
  25459. }
  25460. }
  25461. dd.ReadEnd()
  25462. }
  25463. return v, changed
  25464. }
  25465. func (f *decFnInfo) fastpathDecMapInt16Int16R(rv reflect.Value) {
  25466. if rv.CanAddr() {
  25467. vp := rv.Addr().Interface().(*map[int16]int16)
  25468. v, changed := fastpathTV.DecMapInt16Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  25469. if changed {
  25470. *vp = v
  25471. }
  25472. } else {
  25473. v := rv.Interface().(map[int16]int16)
  25474. fastpathTV.DecMapInt16Int16V(v, fastpathCheckNilFalse, false, f.d)
  25475. }
  25476. }
  25477. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, checkNil bool, d *Decoder) {
  25478. v, changed := f.DecMapInt16Int16V(*vp, checkNil, true, d)
  25479. if changed {
  25480. *vp = v
  25481. }
  25482. }
  25483. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, checkNil bool, canChange bool,
  25484. d *Decoder) (_ map[int16]int16, changed bool) {
  25485. dd := d.d
  25486. if checkNil && dd.TryDecodeAsNil() {
  25487. if v != nil {
  25488. changed = true
  25489. }
  25490. return nil, changed
  25491. }
  25492. containerLen := dd.ReadMapStart()
  25493. if canChange && v == nil {
  25494. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25495. v = make(map[int16]int16, xlen)
  25496. changed = true
  25497. }
  25498. var mk int16
  25499. var mv int16
  25500. if containerLen > 0 {
  25501. for j := 0; j < containerLen; j++ {
  25502. mk = int16(dd.DecodeInt(16))
  25503. mv = int16(dd.DecodeInt(16))
  25504. if v != nil {
  25505. v[mk] = mv
  25506. }
  25507. }
  25508. } else if containerLen < 0 {
  25509. for j := 0; !dd.CheckBreak(); j++ {
  25510. mk = int16(dd.DecodeInt(16))
  25511. mv = int16(dd.DecodeInt(16))
  25512. if v != nil {
  25513. v[mk] = mv
  25514. }
  25515. }
  25516. dd.ReadEnd()
  25517. }
  25518. return v, changed
  25519. }
  25520. func (f *decFnInfo) fastpathDecMapInt16Int32R(rv reflect.Value) {
  25521. if rv.CanAddr() {
  25522. vp := rv.Addr().Interface().(*map[int16]int32)
  25523. v, changed := fastpathTV.DecMapInt16Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  25524. if changed {
  25525. *vp = v
  25526. }
  25527. } else {
  25528. v := rv.Interface().(map[int16]int32)
  25529. fastpathTV.DecMapInt16Int32V(v, fastpathCheckNilFalse, false, f.d)
  25530. }
  25531. }
  25532. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, checkNil bool, d *Decoder) {
  25533. v, changed := f.DecMapInt16Int32V(*vp, checkNil, true, d)
  25534. if changed {
  25535. *vp = v
  25536. }
  25537. }
  25538. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, checkNil bool, canChange bool,
  25539. d *Decoder) (_ map[int16]int32, changed bool) {
  25540. dd := d.d
  25541. if checkNil && dd.TryDecodeAsNil() {
  25542. if v != nil {
  25543. changed = true
  25544. }
  25545. return nil, changed
  25546. }
  25547. containerLen := dd.ReadMapStart()
  25548. if canChange && v == nil {
  25549. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25550. v = make(map[int16]int32, xlen)
  25551. changed = true
  25552. }
  25553. var mk int16
  25554. var mv int32
  25555. if containerLen > 0 {
  25556. for j := 0; j < containerLen; j++ {
  25557. mk = int16(dd.DecodeInt(16))
  25558. mv = int32(dd.DecodeInt(32))
  25559. if v != nil {
  25560. v[mk] = mv
  25561. }
  25562. }
  25563. } else if containerLen < 0 {
  25564. for j := 0; !dd.CheckBreak(); j++ {
  25565. mk = int16(dd.DecodeInt(16))
  25566. mv = int32(dd.DecodeInt(32))
  25567. if v != nil {
  25568. v[mk] = mv
  25569. }
  25570. }
  25571. dd.ReadEnd()
  25572. }
  25573. return v, changed
  25574. }
  25575. func (f *decFnInfo) fastpathDecMapInt16Int64R(rv reflect.Value) {
  25576. if rv.CanAddr() {
  25577. vp := rv.Addr().Interface().(*map[int16]int64)
  25578. v, changed := fastpathTV.DecMapInt16Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  25579. if changed {
  25580. *vp = v
  25581. }
  25582. } else {
  25583. v := rv.Interface().(map[int16]int64)
  25584. fastpathTV.DecMapInt16Int64V(v, fastpathCheckNilFalse, false, f.d)
  25585. }
  25586. }
  25587. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, checkNil bool, d *Decoder) {
  25588. v, changed := f.DecMapInt16Int64V(*vp, checkNil, true, d)
  25589. if changed {
  25590. *vp = v
  25591. }
  25592. }
  25593. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, checkNil bool, canChange bool,
  25594. d *Decoder) (_ map[int16]int64, changed bool) {
  25595. dd := d.d
  25596. if checkNil && dd.TryDecodeAsNil() {
  25597. if v != nil {
  25598. changed = true
  25599. }
  25600. return nil, changed
  25601. }
  25602. containerLen := dd.ReadMapStart()
  25603. if canChange && v == nil {
  25604. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25605. v = make(map[int16]int64, xlen)
  25606. changed = true
  25607. }
  25608. var mk int16
  25609. var mv int64
  25610. if containerLen > 0 {
  25611. for j := 0; j < containerLen; j++ {
  25612. mk = int16(dd.DecodeInt(16))
  25613. mv = dd.DecodeInt(64)
  25614. if v != nil {
  25615. v[mk] = mv
  25616. }
  25617. }
  25618. } else if containerLen < 0 {
  25619. for j := 0; !dd.CheckBreak(); j++ {
  25620. mk = int16(dd.DecodeInt(16))
  25621. mv = dd.DecodeInt(64)
  25622. if v != nil {
  25623. v[mk] = mv
  25624. }
  25625. }
  25626. dd.ReadEnd()
  25627. }
  25628. return v, changed
  25629. }
  25630. func (f *decFnInfo) fastpathDecMapInt16Float32R(rv reflect.Value) {
  25631. if rv.CanAddr() {
  25632. vp := rv.Addr().Interface().(*map[int16]float32)
  25633. v, changed := fastpathTV.DecMapInt16Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  25634. if changed {
  25635. *vp = v
  25636. }
  25637. } else {
  25638. v := rv.Interface().(map[int16]float32)
  25639. fastpathTV.DecMapInt16Float32V(v, fastpathCheckNilFalse, false, f.d)
  25640. }
  25641. }
  25642. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, checkNil bool, d *Decoder) {
  25643. v, changed := f.DecMapInt16Float32V(*vp, checkNil, true, d)
  25644. if changed {
  25645. *vp = v
  25646. }
  25647. }
  25648. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, checkNil bool, canChange bool,
  25649. d *Decoder) (_ map[int16]float32, changed bool) {
  25650. dd := d.d
  25651. if checkNil && dd.TryDecodeAsNil() {
  25652. if v != nil {
  25653. changed = true
  25654. }
  25655. return nil, changed
  25656. }
  25657. containerLen := dd.ReadMapStart()
  25658. if canChange && v == nil {
  25659. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25660. v = make(map[int16]float32, xlen)
  25661. changed = true
  25662. }
  25663. var mk int16
  25664. var mv float32
  25665. if containerLen > 0 {
  25666. for j := 0; j < containerLen; j++ {
  25667. mk = int16(dd.DecodeInt(16))
  25668. mv = float32(dd.DecodeFloat(true))
  25669. if v != nil {
  25670. v[mk] = mv
  25671. }
  25672. }
  25673. } else if containerLen < 0 {
  25674. for j := 0; !dd.CheckBreak(); j++ {
  25675. mk = int16(dd.DecodeInt(16))
  25676. mv = float32(dd.DecodeFloat(true))
  25677. if v != nil {
  25678. v[mk] = mv
  25679. }
  25680. }
  25681. dd.ReadEnd()
  25682. }
  25683. return v, changed
  25684. }
  25685. func (f *decFnInfo) fastpathDecMapInt16Float64R(rv reflect.Value) {
  25686. if rv.CanAddr() {
  25687. vp := rv.Addr().Interface().(*map[int16]float64)
  25688. v, changed := fastpathTV.DecMapInt16Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  25689. if changed {
  25690. *vp = v
  25691. }
  25692. } else {
  25693. v := rv.Interface().(map[int16]float64)
  25694. fastpathTV.DecMapInt16Float64V(v, fastpathCheckNilFalse, false, f.d)
  25695. }
  25696. }
  25697. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, checkNil bool, d *Decoder) {
  25698. v, changed := f.DecMapInt16Float64V(*vp, checkNil, true, d)
  25699. if changed {
  25700. *vp = v
  25701. }
  25702. }
  25703. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, checkNil bool, canChange bool,
  25704. d *Decoder) (_ map[int16]float64, changed bool) {
  25705. dd := d.d
  25706. if checkNil && dd.TryDecodeAsNil() {
  25707. if v != nil {
  25708. changed = true
  25709. }
  25710. return nil, changed
  25711. }
  25712. containerLen := dd.ReadMapStart()
  25713. if canChange && v == nil {
  25714. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25715. v = make(map[int16]float64, xlen)
  25716. changed = true
  25717. }
  25718. var mk int16
  25719. var mv float64
  25720. if containerLen > 0 {
  25721. for j := 0; j < containerLen; j++ {
  25722. mk = int16(dd.DecodeInt(16))
  25723. mv = dd.DecodeFloat(false)
  25724. if v != nil {
  25725. v[mk] = mv
  25726. }
  25727. }
  25728. } else if containerLen < 0 {
  25729. for j := 0; !dd.CheckBreak(); j++ {
  25730. mk = int16(dd.DecodeInt(16))
  25731. mv = dd.DecodeFloat(false)
  25732. if v != nil {
  25733. v[mk] = mv
  25734. }
  25735. }
  25736. dd.ReadEnd()
  25737. }
  25738. return v, changed
  25739. }
  25740. func (f *decFnInfo) fastpathDecMapInt16BoolR(rv reflect.Value) {
  25741. if rv.CanAddr() {
  25742. vp := rv.Addr().Interface().(*map[int16]bool)
  25743. v, changed := fastpathTV.DecMapInt16BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  25744. if changed {
  25745. *vp = v
  25746. }
  25747. } else {
  25748. v := rv.Interface().(map[int16]bool)
  25749. fastpathTV.DecMapInt16BoolV(v, fastpathCheckNilFalse, false, f.d)
  25750. }
  25751. }
  25752. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, checkNil bool, d *Decoder) {
  25753. v, changed := f.DecMapInt16BoolV(*vp, checkNil, true, d)
  25754. if changed {
  25755. *vp = v
  25756. }
  25757. }
  25758. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, checkNil bool, canChange bool,
  25759. d *Decoder) (_ map[int16]bool, changed bool) {
  25760. dd := d.d
  25761. if checkNil && dd.TryDecodeAsNil() {
  25762. if v != nil {
  25763. changed = true
  25764. }
  25765. return nil, changed
  25766. }
  25767. containerLen := dd.ReadMapStart()
  25768. if canChange && v == nil {
  25769. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25770. v = make(map[int16]bool, xlen)
  25771. changed = true
  25772. }
  25773. var mk int16
  25774. var mv bool
  25775. if containerLen > 0 {
  25776. for j := 0; j < containerLen; j++ {
  25777. mk = int16(dd.DecodeInt(16))
  25778. mv = dd.DecodeBool()
  25779. if v != nil {
  25780. v[mk] = mv
  25781. }
  25782. }
  25783. } else if containerLen < 0 {
  25784. for j := 0; !dd.CheckBreak(); j++ {
  25785. mk = int16(dd.DecodeInt(16))
  25786. mv = dd.DecodeBool()
  25787. if v != nil {
  25788. v[mk] = mv
  25789. }
  25790. }
  25791. dd.ReadEnd()
  25792. }
  25793. return v, changed
  25794. }
  25795. func (f *decFnInfo) fastpathDecMapInt32IntfR(rv reflect.Value) {
  25796. if rv.CanAddr() {
  25797. vp := rv.Addr().Interface().(*map[int32]interface{})
  25798. v, changed := fastpathTV.DecMapInt32IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  25799. if changed {
  25800. *vp = v
  25801. }
  25802. } else {
  25803. v := rv.Interface().(map[int32]interface{})
  25804. fastpathTV.DecMapInt32IntfV(v, fastpathCheckNilFalse, false, f.d)
  25805. }
  25806. }
  25807. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, checkNil bool, d *Decoder) {
  25808. v, changed := f.DecMapInt32IntfV(*vp, checkNil, true, d)
  25809. if changed {
  25810. *vp = v
  25811. }
  25812. }
  25813. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, checkNil bool, canChange bool,
  25814. d *Decoder) (_ map[int32]interface{}, changed bool) {
  25815. dd := d.d
  25816. if checkNil && dd.TryDecodeAsNil() {
  25817. if v != nil {
  25818. changed = true
  25819. }
  25820. return nil, changed
  25821. }
  25822. containerLen := dd.ReadMapStart()
  25823. if canChange && v == nil {
  25824. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25825. v = make(map[int32]interface{}, xlen)
  25826. changed = true
  25827. }
  25828. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  25829. var mk int32
  25830. var mv interface{}
  25831. if containerLen > 0 {
  25832. for j := 0; j < containerLen; j++ {
  25833. mk = int32(dd.DecodeInt(32))
  25834. if mapGet {
  25835. mv = v[mk]
  25836. } else {
  25837. mv = nil
  25838. }
  25839. d.decode(&mv)
  25840. if v != nil {
  25841. v[mk] = mv
  25842. }
  25843. }
  25844. } else if containerLen < 0 {
  25845. for j := 0; !dd.CheckBreak(); j++ {
  25846. mk = int32(dd.DecodeInt(32))
  25847. if mapGet {
  25848. mv = v[mk]
  25849. } else {
  25850. mv = nil
  25851. }
  25852. d.decode(&mv)
  25853. if v != nil {
  25854. v[mk] = mv
  25855. }
  25856. }
  25857. dd.ReadEnd()
  25858. }
  25859. return v, changed
  25860. }
  25861. func (f *decFnInfo) fastpathDecMapInt32StringR(rv reflect.Value) {
  25862. if rv.CanAddr() {
  25863. vp := rv.Addr().Interface().(*map[int32]string)
  25864. v, changed := fastpathTV.DecMapInt32StringV(*vp, fastpathCheckNilFalse, true, f.d)
  25865. if changed {
  25866. *vp = v
  25867. }
  25868. } else {
  25869. v := rv.Interface().(map[int32]string)
  25870. fastpathTV.DecMapInt32StringV(v, fastpathCheckNilFalse, false, f.d)
  25871. }
  25872. }
  25873. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, checkNil bool, d *Decoder) {
  25874. v, changed := f.DecMapInt32StringV(*vp, checkNil, true, d)
  25875. if changed {
  25876. *vp = v
  25877. }
  25878. }
  25879. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, checkNil bool, canChange bool,
  25880. d *Decoder) (_ map[int32]string, changed bool) {
  25881. dd := d.d
  25882. if checkNil && dd.TryDecodeAsNil() {
  25883. if v != nil {
  25884. changed = true
  25885. }
  25886. return nil, changed
  25887. }
  25888. containerLen := dd.ReadMapStart()
  25889. if canChange && v == nil {
  25890. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25891. v = make(map[int32]string, xlen)
  25892. changed = true
  25893. }
  25894. var mk int32
  25895. var mv string
  25896. if containerLen > 0 {
  25897. for j := 0; j < containerLen; j++ {
  25898. mk = int32(dd.DecodeInt(32))
  25899. mv = dd.DecodeString()
  25900. if v != nil {
  25901. v[mk] = mv
  25902. }
  25903. }
  25904. } else if containerLen < 0 {
  25905. for j := 0; !dd.CheckBreak(); j++ {
  25906. mk = int32(dd.DecodeInt(32))
  25907. mv = dd.DecodeString()
  25908. if v != nil {
  25909. v[mk] = mv
  25910. }
  25911. }
  25912. dd.ReadEnd()
  25913. }
  25914. return v, changed
  25915. }
  25916. func (f *decFnInfo) fastpathDecMapInt32UintR(rv reflect.Value) {
  25917. if rv.CanAddr() {
  25918. vp := rv.Addr().Interface().(*map[int32]uint)
  25919. v, changed := fastpathTV.DecMapInt32UintV(*vp, fastpathCheckNilFalse, true, f.d)
  25920. if changed {
  25921. *vp = v
  25922. }
  25923. } else {
  25924. v := rv.Interface().(map[int32]uint)
  25925. fastpathTV.DecMapInt32UintV(v, fastpathCheckNilFalse, false, f.d)
  25926. }
  25927. }
  25928. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, checkNil bool, d *Decoder) {
  25929. v, changed := f.DecMapInt32UintV(*vp, checkNil, true, d)
  25930. if changed {
  25931. *vp = v
  25932. }
  25933. }
  25934. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, checkNil bool, canChange bool,
  25935. d *Decoder) (_ map[int32]uint, changed bool) {
  25936. dd := d.d
  25937. if checkNil && dd.TryDecodeAsNil() {
  25938. if v != nil {
  25939. changed = true
  25940. }
  25941. return nil, changed
  25942. }
  25943. containerLen := dd.ReadMapStart()
  25944. if canChange && v == nil {
  25945. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25946. v = make(map[int32]uint, xlen)
  25947. changed = true
  25948. }
  25949. var mk int32
  25950. var mv uint
  25951. if containerLen > 0 {
  25952. for j := 0; j < containerLen; j++ {
  25953. mk = int32(dd.DecodeInt(32))
  25954. mv = uint(dd.DecodeUint(uintBitsize))
  25955. if v != nil {
  25956. v[mk] = mv
  25957. }
  25958. }
  25959. } else if containerLen < 0 {
  25960. for j := 0; !dd.CheckBreak(); j++ {
  25961. mk = int32(dd.DecodeInt(32))
  25962. mv = uint(dd.DecodeUint(uintBitsize))
  25963. if v != nil {
  25964. v[mk] = mv
  25965. }
  25966. }
  25967. dd.ReadEnd()
  25968. }
  25969. return v, changed
  25970. }
  25971. func (f *decFnInfo) fastpathDecMapInt32Uint8R(rv reflect.Value) {
  25972. if rv.CanAddr() {
  25973. vp := rv.Addr().Interface().(*map[int32]uint8)
  25974. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  25975. if changed {
  25976. *vp = v
  25977. }
  25978. } else {
  25979. v := rv.Interface().(map[int32]uint8)
  25980. fastpathTV.DecMapInt32Uint8V(v, fastpathCheckNilFalse, false, f.d)
  25981. }
  25982. }
  25983. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, checkNil bool, d *Decoder) {
  25984. v, changed := f.DecMapInt32Uint8V(*vp, checkNil, true, d)
  25985. if changed {
  25986. *vp = v
  25987. }
  25988. }
  25989. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, checkNil bool, canChange bool,
  25990. d *Decoder) (_ map[int32]uint8, changed bool) {
  25991. dd := d.d
  25992. if checkNil && dd.TryDecodeAsNil() {
  25993. if v != nil {
  25994. changed = true
  25995. }
  25996. return nil, changed
  25997. }
  25998. containerLen := dd.ReadMapStart()
  25999. if canChange && v == nil {
  26000. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26001. v = make(map[int32]uint8, xlen)
  26002. changed = true
  26003. }
  26004. var mk int32
  26005. var mv uint8
  26006. if containerLen > 0 {
  26007. for j := 0; j < containerLen; j++ {
  26008. mk = int32(dd.DecodeInt(32))
  26009. mv = uint8(dd.DecodeUint(8))
  26010. if v != nil {
  26011. v[mk] = mv
  26012. }
  26013. }
  26014. } else if containerLen < 0 {
  26015. for j := 0; !dd.CheckBreak(); j++ {
  26016. mk = int32(dd.DecodeInt(32))
  26017. mv = uint8(dd.DecodeUint(8))
  26018. if v != nil {
  26019. v[mk] = mv
  26020. }
  26021. }
  26022. dd.ReadEnd()
  26023. }
  26024. return v, changed
  26025. }
  26026. func (f *decFnInfo) fastpathDecMapInt32Uint16R(rv reflect.Value) {
  26027. if rv.CanAddr() {
  26028. vp := rv.Addr().Interface().(*map[int32]uint16)
  26029. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  26030. if changed {
  26031. *vp = v
  26032. }
  26033. } else {
  26034. v := rv.Interface().(map[int32]uint16)
  26035. fastpathTV.DecMapInt32Uint16V(v, fastpathCheckNilFalse, false, f.d)
  26036. }
  26037. }
  26038. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, checkNil bool, d *Decoder) {
  26039. v, changed := f.DecMapInt32Uint16V(*vp, checkNil, true, d)
  26040. if changed {
  26041. *vp = v
  26042. }
  26043. }
  26044. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, checkNil bool, canChange bool,
  26045. d *Decoder) (_ map[int32]uint16, changed bool) {
  26046. dd := d.d
  26047. if checkNil && dd.TryDecodeAsNil() {
  26048. if v != nil {
  26049. changed = true
  26050. }
  26051. return nil, changed
  26052. }
  26053. containerLen := dd.ReadMapStart()
  26054. if canChange && v == nil {
  26055. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26056. v = make(map[int32]uint16, xlen)
  26057. changed = true
  26058. }
  26059. var mk int32
  26060. var mv uint16
  26061. if containerLen > 0 {
  26062. for j := 0; j < containerLen; j++ {
  26063. mk = int32(dd.DecodeInt(32))
  26064. mv = uint16(dd.DecodeUint(16))
  26065. if v != nil {
  26066. v[mk] = mv
  26067. }
  26068. }
  26069. } else if containerLen < 0 {
  26070. for j := 0; !dd.CheckBreak(); j++ {
  26071. mk = int32(dd.DecodeInt(32))
  26072. mv = uint16(dd.DecodeUint(16))
  26073. if v != nil {
  26074. v[mk] = mv
  26075. }
  26076. }
  26077. dd.ReadEnd()
  26078. }
  26079. return v, changed
  26080. }
  26081. func (f *decFnInfo) fastpathDecMapInt32Uint32R(rv reflect.Value) {
  26082. if rv.CanAddr() {
  26083. vp := rv.Addr().Interface().(*map[int32]uint32)
  26084. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  26085. if changed {
  26086. *vp = v
  26087. }
  26088. } else {
  26089. v := rv.Interface().(map[int32]uint32)
  26090. fastpathTV.DecMapInt32Uint32V(v, fastpathCheckNilFalse, false, f.d)
  26091. }
  26092. }
  26093. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, checkNil bool, d *Decoder) {
  26094. v, changed := f.DecMapInt32Uint32V(*vp, checkNil, true, d)
  26095. if changed {
  26096. *vp = v
  26097. }
  26098. }
  26099. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, checkNil bool, canChange bool,
  26100. d *Decoder) (_ map[int32]uint32, changed bool) {
  26101. dd := d.d
  26102. if checkNil && dd.TryDecodeAsNil() {
  26103. if v != nil {
  26104. changed = true
  26105. }
  26106. return nil, changed
  26107. }
  26108. containerLen := dd.ReadMapStart()
  26109. if canChange && v == nil {
  26110. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26111. v = make(map[int32]uint32, xlen)
  26112. changed = true
  26113. }
  26114. var mk int32
  26115. var mv uint32
  26116. if containerLen > 0 {
  26117. for j := 0; j < containerLen; j++ {
  26118. mk = int32(dd.DecodeInt(32))
  26119. mv = uint32(dd.DecodeUint(32))
  26120. if v != nil {
  26121. v[mk] = mv
  26122. }
  26123. }
  26124. } else if containerLen < 0 {
  26125. for j := 0; !dd.CheckBreak(); j++ {
  26126. mk = int32(dd.DecodeInt(32))
  26127. mv = uint32(dd.DecodeUint(32))
  26128. if v != nil {
  26129. v[mk] = mv
  26130. }
  26131. }
  26132. dd.ReadEnd()
  26133. }
  26134. return v, changed
  26135. }
  26136. func (f *decFnInfo) fastpathDecMapInt32Uint64R(rv reflect.Value) {
  26137. if rv.CanAddr() {
  26138. vp := rv.Addr().Interface().(*map[int32]uint64)
  26139. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  26140. if changed {
  26141. *vp = v
  26142. }
  26143. } else {
  26144. v := rv.Interface().(map[int32]uint64)
  26145. fastpathTV.DecMapInt32Uint64V(v, fastpathCheckNilFalse, false, f.d)
  26146. }
  26147. }
  26148. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, checkNil bool, d *Decoder) {
  26149. v, changed := f.DecMapInt32Uint64V(*vp, checkNil, true, d)
  26150. if changed {
  26151. *vp = v
  26152. }
  26153. }
  26154. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, checkNil bool, canChange bool,
  26155. d *Decoder) (_ map[int32]uint64, changed bool) {
  26156. dd := d.d
  26157. if checkNil && dd.TryDecodeAsNil() {
  26158. if v != nil {
  26159. changed = true
  26160. }
  26161. return nil, changed
  26162. }
  26163. containerLen := dd.ReadMapStart()
  26164. if canChange && v == nil {
  26165. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26166. v = make(map[int32]uint64, xlen)
  26167. changed = true
  26168. }
  26169. var mk int32
  26170. var mv uint64
  26171. if containerLen > 0 {
  26172. for j := 0; j < containerLen; j++ {
  26173. mk = int32(dd.DecodeInt(32))
  26174. mv = dd.DecodeUint(64)
  26175. if v != nil {
  26176. v[mk] = mv
  26177. }
  26178. }
  26179. } else if containerLen < 0 {
  26180. for j := 0; !dd.CheckBreak(); j++ {
  26181. mk = int32(dd.DecodeInt(32))
  26182. mv = dd.DecodeUint(64)
  26183. if v != nil {
  26184. v[mk] = mv
  26185. }
  26186. }
  26187. dd.ReadEnd()
  26188. }
  26189. return v, changed
  26190. }
  26191. func (f *decFnInfo) fastpathDecMapInt32UintptrR(rv reflect.Value) {
  26192. if rv.CanAddr() {
  26193. vp := rv.Addr().Interface().(*map[int32]uintptr)
  26194. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  26195. if changed {
  26196. *vp = v
  26197. }
  26198. } else {
  26199. v := rv.Interface().(map[int32]uintptr)
  26200. fastpathTV.DecMapInt32UintptrV(v, fastpathCheckNilFalse, false, f.d)
  26201. }
  26202. }
  26203. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, checkNil bool, d *Decoder) {
  26204. v, changed := f.DecMapInt32UintptrV(*vp, checkNil, true, d)
  26205. if changed {
  26206. *vp = v
  26207. }
  26208. }
  26209. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, checkNil bool, canChange bool,
  26210. d *Decoder) (_ map[int32]uintptr, changed bool) {
  26211. dd := d.d
  26212. if checkNil && dd.TryDecodeAsNil() {
  26213. if v != nil {
  26214. changed = true
  26215. }
  26216. return nil, changed
  26217. }
  26218. containerLen := dd.ReadMapStart()
  26219. if canChange && v == nil {
  26220. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26221. v = make(map[int32]uintptr, xlen)
  26222. changed = true
  26223. }
  26224. var mk int32
  26225. var mv uintptr
  26226. if containerLen > 0 {
  26227. for j := 0; j < containerLen; j++ {
  26228. mk = int32(dd.DecodeInt(32))
  26229. mv = uintptr(dd.DecodeUint(uintBitsize))
  26230. if v != nil {
  26231. v[mk] = mv
  26232. }
  26233. }
  26234. } else if containerLen < 0 {
  26235. for j := 0; !dd.CheckBreak(); j++ {
  26236. mk = int32(dd.DecodeInt(32))
  26237. mv = uintptr(dd.DecodeUint(uintBitsize))
  26238. if v != nil {
  26239. v[mk] = mv
  26240. }
  26241. }
  26242. dd.ReadEnd()
  26243. }
  26244. return v, changed
  26245. }
  26246. func (f *decFnInfo) fastpathDecMapInt32IntR(rv reflect.Value) {
  26247. if rv.CanAddr() {
  26248. vp := rv.Addr().Interface().(*map[int32]int)
  26249. v, changed := fastpathTV.DecMapInt32IntV(*vp, fastpathCheckNilFalse, true, f.d)
  26250. if changed {
  26251. *vp = v
  26252. }
  26253. } else {
  26254. v := rv.Interface().(map[int32]int)
  26255. fastpathTV.DecMapInt32IntV(v, fastpathCheckNilFalse, false, f.d)
  26256. }
  26257. }
  26258. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, checkNil bool, d *Decoder) {
  26259. v, changed := f.DecMapInt32IntV(*vp, checkNil, true, d)
  26260. if changed {
  26261. *vp = v
  26262. }
  26263. }
  26264. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, checkNil bool, canChange bool,
  26265. d *Decoder) (_ map[int32]int, changed bool) {
  26266. dd := d.d
  26267. if checkNil && dd.TryDecodeAsNil() {
  26268. if v != nil {
  26269. changed = true
  26270. }
  26271. return nil, changed
  26272. }
  26273. containerLen := dd.ReadMapStart()
  26274. if canChange && v == nil {
  26275. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26276. v = make(map[int32]int, xlen)
  26277. changed = true
  26278. }
  26279. var mk int32
  26280. var mv int
  26281. if containerLen > 0 {
  26282. for j := 0; j < containerLen; j++ {
  26283. mk = int32(dd.DecodeInt(32))
  26284. mv = int(dd.DecodeInt(intBitsize))
  26285. if v != nil {
  26286. v[mk] = mv
  26287. }
  26288. }
  26289. } else if containerLen < 0 {
  26290. for j := 0; !dd.CheckBreak(); j++ {
  26291. mk = int32(dd.DecodeInt(32))
  26292. mv = int(dd.DecodeInt(intBitsize))
  26293. if v != nil {
  26294. v[mk] = mv
  26295. }
  26296. }
  26297. dd.ReadEnd()
  26298. }
  26299. return v, changed
  26300. }
  26301. func (f *decFnInfo) fastpathDecMapInt32Int8R(rv reflect.Value) {
  26302. if rv.CanAddr() {
  26303. vp := rv.Addr().Interface().(*map[int32]int8)
  26304. v, changed := fastpathTV.DecMapInt32Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  26305. if changed {
  26306. *vp = v
  26307. }
  26308. } else {
  26309. v := rv.Interface().(map[int32]int8)
  26310. fastpathTV.DecMapInt32Int8V(v, fastpathCheckNilFalse, false, f.d)
  26311. }
  26312. }
  26313. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, checkNil bool, d *Decoder) {
  26314. v, changed := f.DecMapInt32Int8V(*vp, checkNil, true, d)
  26315. if changed {
  26316. *vp = v
  26317. }
  26318. }
  26319. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, checkNil bool, canChange bool,
  26320. d *Decoder) (_ map[int32]int8, changed bool) {
  26321. dd := d.d
  26322. if checkNil && dd.TryDecodeAsNil() {
  26323. if v != nil {
  26324. changed = true
  26325. }
  26326. return nil, changed
  26327. }
  26328. containerLen := dd.ReadMapStart()
  26329. if canChange && v == nil {
  26330. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26331. v = make(map[int32]int8, xlen)
  26332. changed = true
  26333. }
  26334. var mk int32
  26335. var mv int8
  26336. if containerLen > 0 {
  26337. for j := 0; j < containerLen; j++ {
  26338. mk = int32(dd.DecodeInt(32))
  26339. mv = int8(dd.DecodeInt(8))
  26340. if v != nil {
  26341. v[mk] = mv
  26342. }
  26343. }
  26344. } else if containerLen < 0 {
  26345. for j := 0; !dd.CheckBreak(); j++ {
  26346. mk = int32(dd.DecodeInt(32))
  26347. mv = int8(dd.DecodeInt(8))
  26348. if v != nil {
  26349. v[mk] = mv
  26350. }
  26351. }
  26352. dd.ReadEnd()
  26353. }
  26354. return v, changed
  26355. }
  26356. func (f *decFnInfo) fastpathDecMapInt32Int16R(rv reflect.Value) {
  26357. if rv.CanAddr() {
  26358. vp := rv.Addr().Interface().(*map[int32]int16)
  26359. v, changed := fastpathTV.DecMapInt32Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  26360. if changed {
  26361. *vp = v
  26362. }
  26363. } else {
  26364. v := rv.Interface().(map[int32]int16)
  26365. fastpathTV.DecMapInt32Int16V(v, fastpathCheckNilFalse, false, f.d)
  26366. }
  26367. }
  26368. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, checkNil bool, d *Decoder) {
  26369. v, changed := f.DecMapInt32Int16V(*vp, checkNil, true, d)
  26370. if changed {
  26371. *vp = v
  26372. }
  26373. }
  26374. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, checkNil bool, canChange bool,
  26375. d *Decoder) (_ map[int32]int16, changed bool) {
  26376. dd := d.d
  26377. if checkNil && dd.TryDecodeAsNil() {
  26378. if v != nil {
  26379. changed = true
  26380. }
  26381. return nil, changed
  26382. }
  26383. containerLen := dd.ReadMapStart()
  26384. if canChange && v == nil {
  26385. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26386. v = make(map[int32]int16, xlen)
  26387. changed = true
  26388. }
  26389. var mk int32
  26390. var mv int16
  26391. if containerLen > 0 {
  26392. for j := 0; j < containerLen; j++ {
  26393. mk = int32(dd.DecodeInt(32))
  26394. mv = int16(dd.DecodeInt(16))
  26395. if v != nil {
  26396. v[mk] = mv
  26397. }
  26398. }
  26399. } else if containerLen < 0 {
  26400. for j := 0; !dd.CheckBreak(); j++ {
  26401. mk = int32(dd.DecodeInt(32))
  26402. mv = int16(dd.DecodeInt(16))
  26403. if v != nil {
  26404. v[mk] = mv
  26405. }
  26406. }
  26407. dd.ReadEnd()
  26408. }
  26409. return v, changed
  26410. }
  26411. func (f *decFnInfo) fastpathDecMapInt32Int32R(rv reflect.Value) {
  26412. if rv.CanAddr() {
  26413. vp := rv.Addr().Interface().(*map[int32]int32)
  26414. v, changed := fastpathTV.DecMapInt32Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  26415. if changed {
  26416. *vp = v
  26417. }
  26418. } else {
  26419. v := rv.Interface().(map[int32]int32)
  26420. fastpathTV.DecMapInt32Int32V(v, fastpathCheckNilFalse, false, f.d)
  26421. }
  26422. }
  26423. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, checkNil bool, d *Decoder) {
  26424. v, changed := f.DecMapInt32Int32V(*vp, checkNil, true, d)
  26425. if changed {
  26426. *vp = v
  26427. }
  26428. }
  26429. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, checkNil bool, canChange bool,
  26430. d *Decoder) (_ map[int32]int32, changed bool) {
  26431. dd := d.d
  26432. if checkNil && dd.TryDecodeAsNil() {
  26433. if v != nil {
  26434. changed = true
  26435. }
  26436. return nil, changed
  26437. }
  26438. containerLen := dd.ReadMapStart()
  26439. if canChange && v == nil {
  26440. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26441. v = make(map[int32]int32, xlen)
  26442. changed = true
  26443. }
  26444. var mk int32
  26445. var mv int32
  26446. if containerLen > 0 {
  26447. for j := 0; j < containerLen; j++ {
  26448. mk = int32(dd.DecodeInt(32))
  26449. mv = int32(dd.DecodeInt(32))
  26450. if v != nil {
  26451. v[mk] = mv
  26452. }
  26453. }
  26454. } else if containerLen < 0 {
  26455. for j := 0; !dd.CheckBreak(); j++ {
  26456. mk = int32(dd.DecodeInt(32))
  26457. mv = int32(dd.DecodeInt(32))
  26458. if v != nil {
  26459. v[mk] = mv
  26460. }
  26461. }
  26462. dd.ReadEnd()
  26463. }
  26464. return v, changed
  26465. }
  26466. func (f *decFnInfo) fastpathDecMapInt32Int64R(rv reflect.Value) {
  26467. if rv.CanAddr() {
  26468. vp := rv.Addr().Interface().(*map[int32]int64)
  26469. v, changed := fastpathTV.DecMapInt32Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  26470. if changed {
  26471. *vp = v
  26472. }
  26473. } else {
  26474. v := rv.Interface().(map[int32]int64)
  26475. fastpathTV.DecMapInt32Int64V(v, fastpathCheckNilFalse, false, f.d)
  26476. }
  26477. }
  26478. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, checkNil bool, d *Decoder) {
  26479. v, changed := f.DecMapInt32Int64V(*vp, checkNil, true, d)
  26480. if changed {
  26481. *vp = v
  26482. }
  26483. }
  26484. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, checkNil bool, canChange bool,
  26485. d *Decoder) (_ map[int32]int64, changed bool) {
  26486. dd := d.d
  26487. if checkNil && dd.TryDecodeAsNil() {
  26488. if v != nil {
  26489. changed = true
  26490. }
  26491. return nil, changed
  26492. }
  26493. containerLen := dd.ReadMapStart()
  26494. if canChange && v == nil {
  26495. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26496. v = make(map[int32]int64, xlen)
  26497. changed = true
  26498. }
  26499. var mk int32
  26500. var mv int64
  26501. if containerLen > 0 {
  26502. for j := 0; j < containerLen; j++ {
  26503. mk = int32(dd.DecodeInt(32))
  26504. mv = dd.DecodeInt(64)
  26505. if v != nil {
  26506. v[mk] = mv
  26507. }
  26508. }
  26509. } else if containerLen < 0 {
  26510. for j := 0; !dd.CheckBreak(); j++ {
  26511. mk = int32(dd.DecodeInt(32))
  26512. mv = dd.DecodeInt(64)
  26513. if v != nil {
  26514. v[mk] = mv
  26515. }
  26516. }
  26517. dd.ReadEnd()
  26518. }
  26519. return v, changed
  26520. }
  26521. func (f *decFnInfo) fastpathDecMapInt32Float32R(rv reflect.Value) {
  26522. if rv.CanAddr() {
  26523. vp := rv.Addr().Interface().(*map[int32]float32)
  26524. v, changed := fastpathTV.DecMapInt32Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  26525. if changed {
  26526. *vp = v
  26527. }
  26528. } else {
  26529. v := rv.Interface().(map[int32]float32)
  26530. fastpathTV.DecMapInt32Float32V(v, fastpathCheckNilFalse, false, f.d)
  26531. }
  26532. }
  26533. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, checkNil bool, d *Decoder) {
  26534. v, changed := f.DecMapInt32Float32V(*vp, checkNil, true, d)
  26535. if changed {
  26536. *vp = v
  26537. }
  26538. }
  26539. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, checkNil bool, canChange bool,
  26540. d *Decoder) (_ map[int32]float32, changed bool) {
  26541. dd := d.d
  26542. if checkNil && dd.TryDecodeAsNil() {
  26543. if v != nil {
  26544. changed = true
  26545. }
  26546. return nil, changed
  26547. }
  26548. containerLen := dd.ReadMapStart()
  26549. if canChange && v == nil {
  26550. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26551. v = make(map[int32]float32, xlen)
  26552. changed = true
  26553. }
  26554. var mk int32
  26555. var mv float32
  26556. if containerLen > 0 {
  26557. for j := 0; j < containerLen; j++ {
  26558. mk = int32(dd.DecodeInt(32))
  26559. mv = float32(dd.DecodeFloat(true))
  26560. if v != nil {
  26561. v[mk] = mv
  26562. }
  26563. }
  26564. } else if containerLen < 0 {
  26565. for j := 0; !dd.CheckBreak(); j++ {
  26566. mk = int32(dd.DecodeInt(32))
  26567. mv = float32(dd.DecodeFloat(true))
  26568. if v != nil {
  26569. v[mk] = mv
  26570. }
  26571. }
  26572. dd.ReadEnd()
  26573. }
  26574. return v, changed
  26575. }
  26576. func (f *decFnInfo) fastpathDecMapInt32Float64R(rv reflect.Value) {
  26577. if rv.CanAddr() {
  26578. vp := rv.Addr().Interface().(*map[int32]float64)
  26579. v, changed := fastpathTV.DecMapInt32Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  26580. if changed {
  26581. *vp = v
  26582. }
  26583. } else {
  26584. v := rv.Interface().(map[int32]float64)
  26585. fastpathTV.DecMapInt32Float64V(v, fastpathCheckNilFalse, false, f.d)
  26586. }
  26587. }
  26588. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, checkNil bool, d *Decoder) {
  26589. v, changed := f.DecMapInt32Float64V(*vp, checkNil, true, d)
  26590. if changed {
  26591. *vp = v
  26592. }
  26593. }
  26594. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, checkNil bool, canChange bool,
  26595. d *Decoder) (_ map[int32]float64, changed bool) {
  26596. dd := d.d
  26597. if checkNil && dd.TryDecodeAsNil() {
  26598. if v != nil {
  26599. changed = true
  26600. }
  26601. return nil, changed
  26602. }
  26603. containerLen := dd.ReadMapStart()
  26604. if canChange && v == nil {
  26605. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26606. v = make(map[int32]float64, xlen)
  26607. changed = true
  26608. }
  26609. var mk int32
  26610. var mv float64
  26611. if containerLen > 0 {
  26612. for j := 0; j < containerLen; j++ {
  26613. mk = int32(dd.DecodeInt(32))
  26614. mv = dd.DecodeFloat(false)
  26615. if v != nil {
  26616. v[mk] = mv
  26617. }
  26618. }
  26619. } else if containerLen < 0 {
  26620. for j := 0; !dd.CheckBreak(); j++ {
  26621. mk = int32(dd.DecodeInt(32))
  26622. mv = dd.DecodeFloat(false)
  26623. if v != nil {
  26624. v[mk] = mv
  26625. }
  26626. }
  26627. dd.ReadEnd()
  26628. }
  26629. return v, changed
  26630. }
  26631. func (f *decFnInfo) fastpathDecMapInt32BoolR(rv reflect.Value) {
  26632. if rv.CanAddr() {
  26633. vp := rv.Addr().Interface().(*map[int32]bool)
  26634. v, changed := fastpathTV.DecMapInt32BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  26635. if changed {
  26636. *vp = v
  26637. }
  26638. } else {
  26639. v := rv.Interface().(map[int32]bool)
  26640. fastpathTV.DecMapInt32BoolV(v, fastpathCheckNilFalse, false, f.d)
  26641. }
  26642. }
  26643. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, checkNil bool, d *Decoder) {
  26644. v, changed := f.DecMapInt32BoolV(*vp, checkNil, true, d)
  26645. if changed {
  26646. *vp = v
  26647. }
  26648. }
  26649. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, checkNil bool, canChange bool,
  26650. d *Decoder) (_ map[int32]bool, changed bool) {
  26651. dd := d.d
  26652. if checkNil && dd.TryDecodeAsNil() {
  26653. if v != nil {
  26654. changed = true
  26655. }
  26656. return nil, changed
  26657. }
  26658. containerLen := dd.ReadMapStart()
  26659. if canChange && v == nil {
  26660. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26661. v = make(map[int32]bool, xlen)
  26662. changed = true
  26663. }
  26664. var mk int32
  26665. var mv bool
  26666. if containerLen > 0 {
  26667. for j := 0; j < containerLen; j++ {
  26668. mk = int32(dd.DecodeInt(32))
  26669. mv = dd.DecodeBool()
  26670. if v != nil {
  26671. v[mk] = mv
  26672. }
  26673. }
  26674. } else if containerLen < 0 {
  26675. for j := 0; !dd.CheckBreak(); j++ {
  26676. mk = int32(dd.DecodeInt(32))
  26677. mv = dd.DecodeBool()
  26678. if v != nil {
  26679. v[mk] = mv
  26680. }
  26681. }
  26682. dd.ReadEnd()
  26683. }
  26684. return v, changed
  26685. }
  26686. func (f *decFnInfo) fastpathDecMapInt64IntfR(rv reflect.Value) {
  26687. if rv.CanAddr() {
  26688. vp := rv.Addr().Interface().(*map[int64]interface{})
  26689. v, changed := fastpathTV.DecMapInt64IntfV(*vp, fastpathCheckNilFalse, true, f.d)
  26690. if changed {
  26691. *vp = v
  26692. }
  26693. } else {
  26694. v := rv.Interface().(map[int64]interface{})
  26695. fastpathTV.DecMapInt64IntfV(v, fastpathCheckNilFalse, false, f.d)
  26696. }
  26697. }
  26698. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, checkNil bool, d *Decoder) {
  26699. v, changed := f.DecMapInt64IntfV(*vp, checkNil, true, d)
  26700. if changed {
  26701. *vp = v
  26702. }
  26703. }
  26704. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, checkNil bool, canChange bool,
  26705. d *Decoder) (_ map[int64]interface{}, changed bool) {
  26706. dd := d.d
  26707. if checkNil && dd.TryDecodeAsNil() {
  26708. if v != nil {
  26709. changed = true
  26710. }
  26711. return nil, changed
  26712. }
  26713. containerLen := dd.ReadMapStart()
  26714. if canChange && v == nil {
  26715. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26716. v = make(map[int64]interface{}, xlen)
  26717. changed = true
  26718. }
  26719. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  26720. var mk int64
  26721. var mv interface{}
  26722. if containerLen > 0 {
  26723. for j := 0; j < containerLen; j++ {
  26724. mk = dd.DecodeInt(64)
  26725. if mapGet {
  26726. mv = v[mk]
  26727. } else {
  26728. mv = nil
  26729. }
  26730. d.decode(&mv)
  26731. if v != nil {
  26732. v[mk] = mv
  26733. }
  26734. }
  26735. } else if containerLen < 0 {
  26736. for j := 0; !dd.CheckBreak(); j++ {
  26737. mk = dd.DecodeInt(64)
  26738. if mapGet {
  26739. mv = v[mk]
  26740. } else {
  26741. mv = nil
  26742. }
  26743. d.decode(&mv)
  26744. if v != nil {
  26745. v[mk] = mv
  26746. }
  26747. }
  26748. dd.ReadEnd()
  26749. }
  26750. return v, changed
  26751. }
  26752. func (f *decFnInfo) fastpathDecMapInt64StringR(rv reflect.Value) {
  26753. if rv.CanAddr() {
  26754. vp := rv.Addr().Interface().(*map[int64]string)
  26755. v, changed := fastpathTV.DecMapInt64StringV(*vp, fastpathCheckNilFalse, true, f.d)
  26756. if changed {
  26757. *vp = v
  26758. }
  26759. } else {
  26760. v := rv.Interface().(map[int64]string)
  26761. fastpathTV.DecMapInt64StringV(v, fastpathCheckNilFalse, false, f.d)
  26762. }
  26763. }
  26764. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, checkNil bool, d *Decoder) {
  26765. v, changed := f.DecMapInt64StringV(*vp, checkNil, true, d)
  26766. if changed {
  26767. *vp = v
  26768. }
  26769. }
  26770. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, checkNil bool, canChange bool,
  26771. d *Decoder) (_ map[int64]string, changed bool) {
  26772. dd := d.d
  26773. if checkNil && dd.TryDecodeAsNil() {
  26774. if v != nil {
  26775. changed = true
  26776. }
  26777. return nil, changed
  26778. }
  26779. containerLen := dd.ReadMapStart()
  26780. if canChange && v == nil {
  26781. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26782. v = make(map[int64]string, xlen)
  26783. changed = true
  26784. }
  26785. var mk int64
  26786. var mv string
  26787. if containerLen > 0 {
  26788. for j := 0; j < containerLen; j++ {
  26789. mk = dd.DecodeInt(64)
  26790. mv = dd.DecodeString()
  26791. if v != nil {
  26792. v[mk] = mv
  26793. }
  26794. }
  26795. } else if containerLen < 0 {
  26796. for j := 0; !dd.CheckBreak(); j++ {
  26797. mk = dd.DecodeInt(64)
  26798. mv = dd.DecodeString()
  26799. if v != nil {
  26800. v[mk] = mv
  26801. }
  26802. }
  26803. dd.ReadEnd()
  26804. }
  26805. return v, changed
  26806. }
  26807. func (f *decFnInfo) fastpathDecMapInt64UintR(rv reflect.Value) {
  26808. if rv.CanAddr() {
  26809. vp := rv.Addr().Interface().(*map[int64]uint)
  26810. v, changed := fastpathTV.DecMapInt64UintV(*vp, fastpathCheckNilFalse, true, f.d)
  26811. if changed {
  26812. *vp = v
  26813. }
  26814. } else {
  26815. v := rv.Interface().(map[int64]uint)
  26816. fastpathTV.DecMapInt64UintV(v, fastpathCheckNilFalse, false, f.d)
  26817. }
  26818. }
  26819. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, checkNil bool, d *Decoder) {
  26820. v, changed := f.DecMapInt64UintV(*vp, checkNil, true, d)
  26821. if changed {
  26822. *vp = v
  26823. }
  26824. }
  26825. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, checkNil bool, canChange bool,
  26826. d *Decoder) (_ map[int64]uint, changed bool) {
  26827. dd := d.d
  26828. if checkNil && dd.TryDecodeAsNil() {
  26829. if v != nil {
  26830. changed = true
  26831. }
  26832. return nil, changed
  26833. }
  26834. containerLen := dd.ReadMapStart()
  26835. if canChange && v == nil {
  26836. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26837. v = make(map[int64]uint, xlen)
  26838. changed = true
  26839. }
  26840. var mk int64
  26841. var mv uint
  26842. if containerLen > 0 {
  26843. for j := 0; j < containerLen; j++ {
  26844. mk = dd.DecodeInt(64)
  26845. mv = uint(dd.DecodeUint(uintBitsize))
  26846. if v != nil {
  26847. v[mk] = mv
  26848. }
  26849. }
  26850. } else if containerLen < 0 {
  26851. for j := 0; !dd.CheckBreak(); j++ {
  26852. mk = dd.DecodeInt(64)
  26853. mv = uint(dd.DecodeUint(uintBitsize))
  26854. if v != nil {
  26855. v[mk] = mv
  26856. }
  26857. }
  26858. dd.ReadEnd()
  26859. }
  26860. return v, changed
  26861. }
  26862. func (f *decFnInfo) fastpathDecMapInt64Uint8R(rv reflect.Value) {
  26863. if rv.CanAddr() {
  26864. vp := rv.Addr().Interface().(*map[int64]uint8)
  26865. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, fastpathCheckNilFalse, true, f.d)
  26866. if changed {
  26867. *vp = v
  26868. }
  26869. } else {
  26870. v := rv.Interface().(map[int64]uint8)
  26871. fastpathTV.DecMapInt64Uint8V(v, fastpathCheckNilFalse, false, f.d)
  26872. }
  26873. }
  26874. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, checkNil bool, d *Decoder) {
  26875. v, changed := f.DecMapInt64Uint8V(*vp, checkNil, true, d)
  26876. if changed {
  26877. *vp = v
  26878. }
  26879. }
  26880. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, checkNil bool, canChange bool,
  26881. d *Decoder) (_ map[int64]uint8, changed bool) {
  26882. dd := d.d
  26883. if checkNil && dd.TryDecodeAsNil() {
  26884. if v != nil {
  26885. changed = true
  26886. }
  26887. return nil, changed
  26888. }
  26889. containerLen := dd.ReadMapStart()
  26890. if canChange && v == nil {
  26891. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26892. v = make(map[int64]uint8, xlen)
  26893. changed = true
  26894. }
  26895. var mk int64
  26896. var mv uint8
  26897. if containerLen > 0 {
  26898. for j := 0; j < containerLen; j++ {
  26899. mk = dd.DecodeInt(64)
  26900. mv = uint8(dd.DecodeUint(8))
  26901. if v != nil {
  26902. v[mk] = mv
  26903. }
  26904. }
  26905. } else if containerLen < 0 {
  26906. for j := 0; !dd.CheckBreak(); j++ {
  26907. mk = dd.DecodeInt(64)
  26908. mv = uint8(dd.DecodeUint(8))
  26909. if v != nil {
  26910. v[mk] = mv
  26911. }
  26912. }
  26913. dd.ReadEnd()
  26914. }
  26915. return v, changed
  26916. }
  26917. func (f *decFnInfo) fastpathDecMapInt64Uint16R(rv reflect.Value) {
  26918. if rv.CanAddr() {
  26919. vp := rv.Addr().Interface().(*map[int64]uint16)
  26920. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, fastpathCheckNilFalse, true, f.d)
  26921. if changed {
  26922. *vp = v
  26923. }
  26924. } else {
  26925. v := rv.Interface().(map[int64]uint16)
  26926. fastpathTV.DecMapInt64Uint16V(v, fastpathCheckNilFalse, false, f.d)
  26927. }
  26928. }
  26929. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, checkNil bool, d *Decoder) {
  26930. v, changed := f.DecMapInt64Uint16V(*vp, checkNil, true, d)
  26931. if changed {
  26932. *vp = v
  26933. }
  26934. }
  26935. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, checkNil bool, canChange bool,
  26936. d *Decoder) (_ map[int64]uint16, changed bool) {
  26937. dd := d.d
  26938. if checkNil && dd.TryDecodeAsNil() {
  26939. if v != nil {
  26940. changed = true
  26941. }
  26942. return nil, changed
  26943. }
  26944. containerLen := dd.ReadMapStart()
  26945. if canChange && v == nil {
  26946. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  26947. v = make(map[int64]uint16, xlen)
  26948. changed = true
  26949. }
  26950. var mk int64
  26951. var mv uint16
  26952. if containerLen > 0 {
  26953. for j := 0; j < containerLen; j++ {
  26954. mk = dd.DecodeInt(64)
  26955. mv = uint16(dd.DecodeUint(16))
  26956. if v != nil {
  26957. v[mk] = mv
  26958. }
  26959. }
  26960. } else if containerLen < 0 {
  26961. for j := 0; !dd.CheckBreak(); j++ {
  26962. mk = dd.DecodeInt(64)
  26963. mv = uint16(dd.DecodeUint(16))
  26964. if v != nil {
  26965. v[mk] = mv
  26966. }
  26967. }
  26968. dd.ReadEnd()
  26969. }
  26970. return v, changed
  26971. }
  26972. func (f *decFnInfo) fastpathDecMapInt64Uint32R(rv reflect.Value) {
  26973. if rv.CanAddr() {
  26974. vp := rv.Addr().Interface().(*map[int64]uint32)
  26975. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, fastpathCheckNilFalse, true, f.d)
  26976. if changed {
  26977. *vp = v
  26978. }
  26979. } else {
  26980. v := rv.Interface().(map[int64]uint32)
  26981. fastpathTV.DecMapInt64Uint32V(v, fastpathCheckNilFalse, false, f.d)
  26982. }
  26983. }
  26984. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, checkNil bool, d *Decoder) {
  26985. v, changed := f.DecMapInt64Uint32V(*vp, checkNil, true, d)
  26986. if changed {
  26987. *vp = v
  26988. }
  26989. }
  26990. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, checkNil bool, canChange bool,
  26991. d *Decoder) (_ map[int64]uint32, changed bool) {
  26992. dd := d.d
  26993. if checkNil && dd.TryDecodeAsNil() {
  26994. if v != nil {
  26995. changed = true
  26996. }
  26997. return nil, changed
  26998. }
  26999. containerLen := dd.ReadMapStart()
  27000. if canChange && v == nil {
  27001. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27002. v = make(map[int64]uint32, xlen)
  27003. changed = true
  27004. }
  27005. var mk int64
  27006. var mv uint32
  27007. if containerLen > 0 {
  27008. for j := 0; j < containerLen; j++ {
  27009. mk = dd.DecodeInt(64)
  27010. mv = uint32(dd.DecodeUint(32))
  27011. if v != nil {
  27012. v[mk] = mv
  27013. }
  27014. }
  27015. } else if containerLen < 0 {
  27016. for j := 0; !dd.CheckBreak(); j++ {
  27017. mk = dd.DecodeInt(64)
  27018. mv = uint32(dd.DecodeUint(32))
  27019. if v != nil {
  27020. v[mk] = mv
  27021. }
  27022. }
  27023. dd.ReadEnd()
  27024. }
  27025. return v, changed
  27026. }
  27027. func (f *decFnInfo) fastpathDecMapInt64Uint64R(rv reflect.Value) {
  27028. if rv.CanAddr() {
  27029. vp := rv.Addr().Interface().(*map[int64]uint64)
  27030. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, fastpathCheckNilFalse, true, f.d)
  27031. if changed {
  27032. *vp = v
  27033. }
  27034. } else {
  27035. v := rv.Interface().(map[int64]uint64)
  27036. fastpathTV.DecMapInt64Uint64V(v, fastpathCheckNilFalse, false, f.d)
  27037. }
  27038. }
  27039. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, checkNil bool, d *Decoder) {
  27040. v, changed := f.DecMapInt64Uint64V(*vp, checkNil, true, d)
  27041. if changed {
  27042. *vp = v
  27043. }
  27044. }
  27045. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, checkNil bool, canChange bool,
  27046. d *Decoder) (_ map[int64]uint64, changed bool) {
  27047. dd := d.d
  27048. if checkNil && dd.TryDecodeAsNil() {
  27049. if v != nil {
  27050. changed = true
  27051. }
  27052. return nil, changed
  27053. }
  27054. containerLen := dd.ReadMapStart()
  27055. if canChange && v == nil {
  27056. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27057. v = make(map[int64]uint64, xlen)
  27058. changed = true
  27059. }
  27060. var mk int64
  27061. var mv uint64
  27062. if containerLen > 0 {
  27063. for j := 0; j < containerLen; j++ {
  27064. mk = dd.DecodeInt(64)
  27065. mv = dd.DecodeUint(64)
  27066. if v != nil {
  27067. v[mk] = mv
  27068. }
  27069. }
  27070. } else if containerLen < 0 {
  27071. for j := 0; !dd.CheckBreak(); j++ {
  27072. mk = dd.DecodeInt(64)
  27073. mv = dd.DecodeUint(64)
  27074. if v != nil {
  27075. v[mk] = mv
  27076. }
  27077. }
  27078. dd.ReadEnd()
  27079. }
  27080. return v, changed
  27081. }
  27082. func (f *decFnInfo) fastpathDecMapInt64UintptrR(rv reflect.Value) {
  27083. if rv.CanAddr() {
  27084. vp := rv.Addr().Interface().(*map[int64]uintptr)
  27085. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  27086. if changed {
  27087. *vp = v
  27088. }
  27089. } else {
  27090. v := rv.Interface().(map[int64]uintptr)
  27091. fastpathTV.DecMapInt64UintptrV(v, fastpathCheckNilFalse, false, f.d)
  27092. }
  27093. }
  27094. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, checkNil bool, d *Decoder) {
  27095. v, changed := f.DecMapInt64UintptrV(*vp, checkNil, true, d)
  27096. if changed {
  27097. *vp = v
  27098. }
  27099. }
  27100. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, checkNil bool, canChange bool,
  27101. d *Decoder) (_ map[int64]uintptr, changed bool) {
  27102. dd := d.d
  27103. if checkNil && dd.TryDecodeAsNil() {
  27104. if v != nil {
  27105. changed = true
  27106. }
  27107. return nil, changed
  27108. }
  27109. containerLen := dd.ReadMapStart()
  27110. if canChange && v == nil {
  27111. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27112. v = make(map[int64]uintptr, xlen)
  27113. changed = true
  27114. }
  27115. var mk int64
  27116. var mv uintptr
  27117. if containerLen > 0 {
  27118. for j := 0; j < containerLen; j++ {
  27119. mk = dd.DecodeInt(64)
  27120. mv = uintptr(dd.DecodeUint(uintBitsize))
  27121. if v != nil {
  27122. v[mk] = mv
  27123. }
  27124. }
  27125. } else if containerLen < 0 {
  27126. for j := 0; !dd.CheckBreak(); j++ {
  27127. mk = dd.DecodeInt(64)
  27128. mv = uintptr(dd.DecodeUint(uintBitsize))
  27129. if v != nil {
  27130. v[mk] = mv
  27131. }
  27132. }
  27133. dd.ReadEnd()
  27134. }
  27135. return v, changed
  27136. }
  27137. func (f *decFnInfo) fastpathDecMapInt64IntR(rv reflect.Value) {
  27138. if rv.CanAddr() {
  27139. vp := rv.Addr().Interface().(*map[int64]int)
  27140. v, changed := fastpathTV.DecMapInt64IntV(*vp, fastpathCheckNilFalse, true, f.d)
  27141. if changed {
  27142. *vp = v
  27143. }
  27144. } else {
  27145. v := rv.Interface().(map[int64]int)
  27146. fastpathTV.DecMapInt64IntV(v, fastpathCheckNilFalse, false, f.d)
  27147. }
  27148. }
  27149. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, checkNil bool, d *Decoder) {
  27150. v, changed := f.DecMapInt64IntV(*vp, checkNil, true, d)
  27151. if changed {
  27152. *vp = v
  27153. }
  27154. }
  27155. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, checkNil bool, canChange bool,
  27156. d *Decoder) (_ map[int64]int, changed bool) {
  27157. dd := d.d
  27158. if checkNil && dd.TryDecodeAsNil() {
  27159. if v != nil {
  27160. changed = true
  27161. }
  27162. return nil, changed
  27163. }
  27164. containerLen := dd.ReadMapStart()
  27165. if canChange && v == nil {
  27166. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27167. v = make(map[int64]int, xlen)
  27168. changed = true
  27169. }
  27170. var mk int64
  27171. var mv int
  27172. if containerLen > 0 {
  27173. for j := 0; j < containerLen; j++ {
  27174. mk = dd.DecodeInt(64)
  27175. mv = int(dd.DecodeInt(intBitsize))
  27176. if v != nil {
  27177. v[mk] = mv
  27178. }
  27179. }
  27180. } else if containerLen < 0 {
  27181. for j := 0; !dd.CheckBreak(); j++ {
  27182. mk = dd.DecodeInt(64)
  27183. mv = int(dd.DecodeInt(intBitsize))
  27184. if v != nil {
  27185. v[mk] = mv
  27186. }
  27187. }
  27188. dd.ReadEnd()
  27189. }
  27190. return v, changed
  27191. }
  27192. func (f *decFnInfo) fastpathDecMapInt64Int8R(rv reflect.Value) {
  27193. if rv.CanAddr() {
  27194. vp := rv.Addr().Interface().(*map[int64]int8)
  27195. v, changed := fastpathTV.DecMapInt64Int8V(*vp, fastpathCheckNilFalse, true, f.d)
  27196. if changed {
  27197. *vp = v
  27198. }
  27199. } else {
  27200. v := rv.Interface().(map[int64]int8)
  27201. fastpathTV.DecMapInt64Int8V(v, fastpathCheckNilFalse, false, f.d)
  27202. }
  27203. }
  27204. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, checkNil bool, d *Decoder) {
  27205. v, changed := f.DecMapInt64Int8V(*vp, checkNil, true, d)
  27206. if changed {
  27207. *vp = v
  27208. }
  27209. }
  27210. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, checkNil bool, canChange bool,
  27211. d *Decoder) (_ map[int64]int8, changed bool) {
  27212. dd := d.d
  27213. if checkNil && dd.TryDecodeAsNil() {
  27214. if v != nil {
  27215. changed = true
  27216. }
  27217. return nil, changed
  27218. }
  27219. containerLen := dd.ReadMapStart()
  27220. if canChange && v == nil {
  27221. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27222. v = make(map[int64]int8, xlen)
  27223. changed = true
  27224. }
  27225. var mk int64
  27226. var mv int8
  27227. if containerLen > 0 {
  27228. for j := 0; j < containerLen; j++ {
  27229. mk = dd.DecodeInt(64)
  27230. mv = int8(dd.DecodeInt(8))
  27231. if v != nil {
  27232. v[mk] = mv
  27233. }
  27234. }
  27235. } else if containerLen < 0 {
  27236. for j := 0; !dd.CheckBreak(); j++ {
  27237. mk = dd.DecodeInt(64)
  27238. mv = int8(dd.DecodeInt(8))
  27239. if v != nil {
  27240. v[mk] = mv
  27241. }
  27242. }
  27243. dd.ReadEnd()
  27244. }
  27245. return v, changed
  27246. }
  27247. func (f *decFnInfo) fastpathDecMapInt64Int16R(rv reflect.Value) {
  27248. if rv.CanAddr() {
  27249. vp := rv.Addr().Interface().(*map[int64]int16)
  27250. v, changed := fastpathTV.DecMapInt64Int16V(*vp, fastpathCheckNilFalse, true, f.d)
  27251. if changed {
  27252. *vp = v
  27253. }
  27254. } else {
  27255. v := rv.Interface().(map[int64]int16)
  27256. fastpathTV.DecMapInt64Int16V(v, fastpathCheckNilFalse, false, f.d)
  27257. }
  27258. }
  27259. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, checkNil bool, d *Decoder) {
  27260. v, changed := f.DecMapInt64Int16V(*vp, checkNil, true, d)
  27261. if changed {
  27262. *vp = v
  27263. }
  27264. }
  27265. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, checkNil bool, canChange bool,
  27266. d *Decoder) (_ map[int64]int16, changed bool) {
  27267. dd := d.d
  27268. if checkNil && dd.TryDecodeAsNil() {
  27269. if v != nil {
  27270. changed = true
  27271. }
  27272. return nil, changed
  27273. }
  27274. containerLen := dd.ReadMapStart()
  27275. if canChange && v == nil {
  27276. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27277. v = make(map[int64]int16, xlen)
  27278. changed = true
  27279. }
  27280. var mk int64
  27281. var mv int16
  27282. if containerLen > 0 {
  27283. for j := 0; j < containerLen; j++ {
  27284. mk = dd.DecodeInt(64)
  27285. mv = int16(dd.DecodeInt(16))
  27286. if v != nil {
  27287. v[mk] = mv
  27288. }
  27289. }
  27290. } else if containerLen < 0 {
  27291. for j := 0; !dd.CheckBreak(); j++ {
  27292. mk = dd.DecodeInt(64)
  27293. mv = int16(dd.DecodeInt(16))
  27294. if v != nil {
  27295. v[mk] = mv
  27296. }
  27297. }
  27298. dd.ReadEnd()
  27299. }
  27300. return v, changed
  27301. }
  27302. func (f *decFnInfo) fastpathDecMapInt64Int32R(rv reflect.Value) {
  27303. if rv.CanAddr() {
  27304. vp := rv.Addr().Interface().(*map[int64]int32)
  27305. v, changed := fastpathTV.DecMapInt64Int32V(*vp, fastpathCheckNilFalse, true, f.d)
  27306. if changed {
  27307. *vp = v
  27308. }
  27309. } else {
  27310. v := rv.Interface().(map[int64]int32)
  27311. fastpathTV.DecMapInt64Int32V(v, fastpathCheckNilFalse, false, f.d)
  27312. }
  27313. }
  27314. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, checkNil bool, d *Decoder) {
  27315. v, changed := f.DecMapInt64Int32V(*vp, checkNil, true, d)
  27316. if changed {
  27317. *vp = v
  27318. }
  27319. }
  27320. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, checkNil bool, canChange bool,
  27321. d *Decoder) (_ map[int64]int32, changed bool) {
  27322. dd := d.d
  27323. if checkNil && dd.TryDecodeAsNil() {
  27324. if v != nil {
  27325. changed = true
  27326. }
  27327. return nil, changed
  27328. }
  27329. containerLen := dd.ReadMapStart()
  27330. if canChange && v == nil {
  27331. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27332. v = make(map[int64]int32, xlen)
  27333. changed = true
  27334. }
  27335. var mk int64
  27336. var mv int32
  27337. if containerLen > 0 {
  27338. for j := 0; j < containerLen; j++ {
  27339. mk = dd.DecodeInt(64)
  27340. mv = int32(dd.DecodeInt(32))
  27341. if v != nil {
  27342. v[mk] = mv
  27343. }
  27344. }
  27345. } else if containerLen < 0 {
  27346. for j := 0; !dd.CheckBreak(); j++ {
  27347. mk = dd.DecodeInt(64)
  27348. mv = int32(dd.DecodeInt(32))
  27349. if v != nil {
  27350. v[mk] = mv
  27351. }
  27352. }
  27353. dd.ReadEnd()
  27354. }
  27355. return v, changed
  27356. }
  27357. func (f *decFnInfo) fastpathDecMapInt64Int64R(rv reflect.Value) {
  27358. if rv.CanAddr() {
  27359. vp := rv.Addr().Interface().(*map[int64]int64)
  27360. v, changed := fastpathTV.DecMapInt64Int64V(*vp, fastpathCheckNilFalse, true, f.d)
  27361. if changed {
  27362. *vp = v
  27363. }
  27364. } else {
  27365. v := rv.Interface().(map[int64]int64)
  27366. fastpathTV.DecMapInt64Int64V(v, fastpathCheckNilFalse, false, f.d)
  27367. }
  27368. }
  27369. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, checkNil bool, d *Decoder) {
  27370. v, changed := f.DecMapInt64Int64V(*vp, checkNil, true, d)
  27371. if changed {
  27372. *vp = v
  27373. }
  27374. }
  27375. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, checkNil bool, canChange bool,
  27376. d *Decoder) (_ map[int64]int64, changed bool) {
  27377. dd := d.d
  27378. if checkNil && dd.TryDecodeAsNil() {
  27379. if v != nil {
  27380. changed = true
  27381. }
  27382. return nil, changed
  27383. }
  27384. containerLen := dd.ReadMapStart()
  27385. if canChange && v == nil {
  27386. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27387. v = make(map[int64]int64, xlen)
  27388. changed = true
  27389. }
  27390. var mk int64
  27391. var mv int64
  27392. if containerLen > 0 {
  27393. for j := 0; j < containerLen; j++ {
  27394. mk = dd.DecodeInt(64)
  27395. mv = dd.DecodeInt(64)
  27396. if v != nil {
  27397. v[mk] = mv
  27398. }
  27399. }
  27400. } else if containerLen < 0 {
  27401. for j := 0; !dd.CheckBreak(); j++ {
  27402. mk = dd.DecodeInt(64)
  27403. mv = dd.DecodeInt(64)
  27404. if v != nil {
  27405. v[mk] = mv
  27406. }
  27407. }
  27408. dd.ReadEnd()
  27409. }
  27410. return v, changed
  27411. }
  27412. func (f *decFnInfo) fastpathDecMapInt64Float32R(rv reflect.Value) {
  27413. if rv.CanAddr() {
  27414. vp := rv.Addr().Interface().(*map[int64]float32)
  27415. v, changed := fastpathTV.DecMapInt64Float32V(*vp, fastpathCheckNilFalse, true, f.d)
  27416. if changed {
  27417. *vp = v
  27418. }
  27419. } else {
  27420. v := rv.Interface().(map[int64]float32)
  27421. fastpathTV.DecMapInt64Float32V(v, fastpathCheckNilFalse, false, f.d)
  27422. }
  27423. }
  27424. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, checkNil bool, d *Decoder) {
  27425. v, changed := f.DecMapInt64Float32V(*vp, checkNil, true, d)
  27426. if changed {
  27427. *vp = v
  27428. }
  27429. }
  27430. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, checkNil bool, canChange bool,
  27431. d *Decoder) (_ map[int64]float32, changed bool) {
  27432. dd := d.d
  27433. if checkNil && dd.TryDecodeAsNil() {
  27434. if v != nil {
  27435. changed = true
  27436. }
  27437. return nil, changed
  27438. }
  27439. containerLen := dd.ReadMapStart()
  27440. if canChange && v == nil {
  27441. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27442. v = make(map[int64]float32, xlen)
  27443. changed = true
  27444. }
  27445. var mk int64
  27446. var mv float32
  27447. if containerLen > 0 {
  27448. for j := 0; j < containerLen; j++ {
  27449. mk = dd.DecodeInt(64)
  27450. mv = float32(dd.DecodeFloat(true))
  27451. if v != nil {
  27452. v[mk] = mv
  27453. }
  27454. }
  27455. } else if containerLen < 0 {
  27456. for j := 0; !dd.CheckBreak(); j++ {
  27457. mk = dd.DecodeInt(64)
  27458. mv = float32(dd.DecodeFloat(true))
  27459. if v != nil {
  27460. v[mk] = mv
  27461. }
  27462. }
  27463. dd.ReadEnd()
  27464. }
  27465. return v, changed
  27466. }
  27467. func (f *decFnInfo) fastpathDecMapInt64Float64R(rv reflect.Value) {
  27468. if rv.CanAddr() {
  27469. vp := rv.Addr().Interface().(*map[int64]float64)
  27470. v, changed := fastpathTV.DecMapInt64Float64V(*vp, fastpathCheckNilFalse, true, f.d)
  27471. if changed {
  27472. *vp = v
  27473. }
  27474. } else {
  27475. v := rv.Interface().(map[int64]float64)
  27476. fastpathTV.DecMapInt64Float64V(v, fastpathCheckNilFalse, false, f.d)
  27477. }
  27478. }
  27479. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, checkNil bool, d *Decoder) {
  27480. v, changed := f.DecMapInt64Float64V(*vp, checkNil, true, d)
  27481. if changed {
  27482. *vp = v
  27483. }
  27484. }
  27485. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, checkNil bool, canChange bool,
  27486. d *Decoder) (_ map[int64]float64, changed bool) {
  27487. dd := d.d
  27488. if checkNil && dd.TryDecodeAsNil() {
  27489. if v != nil {
  27490. changed = true
  27491. }
  27492. return nil, changed
  27493. }
  27494. containerLen := dd.ReadMapStart()
  27495. if canChange && v == nil {
  27496. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27497. v = make(map[int64]float64, xlen)
  27498. changed = true
  27499. }
  27500. var mk int64
  27501. var mv float64
  27502. if containerLen > 0 {
  27503. for j := 0; j < containerLen; j++ {
  27504. mk = dd.DecodeInt(64)
  27505. mv = dd.DecodeFloat(false)
  27506. if v != nil {
  27507. v[mk] = mv
  27508. }
  27509. }
  27510. } else if containerLen < 0 {
  27511. for j := 0; !dd.CheckBreak(); j++ {
  27512. mk = dd.DecodeInt(64)
  27513. mv = dd.DecodeFloat(false)
  27514. if v != nil {
  27515. v[mk] = mv
  27516. }
  27517. }
  27518. dd.ReadEnd()
  27519. }
  27520. return v, changed
  27521. }
  27522. func (f *decFnInfo) fastpathDecMapInt64BoolR(rv reflect.Value) {
  27523. if rv.CanAddr() {
  27524. vp := rv.Addr().Interface().(*map[int64]bool)
  27525. v, changed := fastpathTV.DecMapInt64BoolV(*vp, fastpathCheckNilFalse, true, f.d)
  27526. if changed {
  27527. *vp = v
  27528. }
  27529. } else {
  27530. v := rv.Interface().(map[int64]bool)
  27531. fastpathTV.DecMapInt64BoolV(v, fastpathCheckNilFalse, false, f.d)
  27532. }
  27533. }
  27534. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, checkNil bool, d *Decoder) {
  27535. v, changed := f.DecMapInt64BoolV(*vp, checkNil, true, d)
  27536. if changed {
  27537. *vp = v
  27538. }
  27539. }
  27540. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, checkNil bool, canChange bool,
  27541. d *Decoder) (_ map[int64]bool, changed bool) {
  27542. dd := d.d
  27543. if checkNil && dd.TryDecodeAsNil() {
  27544. if v != nil {
  27545. changed = true
  27546. }
  27547. return nil, changed
  27548. }
  27549. containerLen := dd.ReadMapStart()
  27550. if canChange && v == nil {
  27551. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27552. v = make(map[int64]bool, xlen)
  27553. changed = true
  27554. }
  27555. var mk int64
  27556. var mv bool
  27557. if containerLen > 0 {
  27558. for j := 0; j < containerLen; j++ {
  27559. mk = dd.DecodeInt(64)
  27560. mv = dd.DecodeBool()
  27561. if v != nil {
  27562. v[mk] = mv
  27563. }
  27564. }
  27565. } else if containerLen < 0 {
  27566. for j := 0; !dd.CheckBreak(); j++ {
  27567. mk = dd.DecodeInt(64)
  27568. mv = dd.DecodeBool()
  27569. if v != nil {
  27570. v[mk] = mv
  27571. }
  27572. }
  27573. dd.ReadEnd()
  27574. }
  27575. return v, changed
  27576. }
  27577. func (f *decFnInfo) fastpathDecMapBoolIntfR(rv reflect.Value) {
  27578. if rv.CanAddr() {
  27579. vp := rv.Addr().Interface().(*map[bool]interface{})
  27580. v, changed := fastpathTV.DecMapBoolIntfV(*vp, fastpathCheckNilFalse, true, f.d)
  27581. if changed {
  27582. *vp = v
  27583. }
  27584. } else {
  27585. v := rv.Interface().(map[bool]interface{})
  27586. fastpathTV.DecMapBoolIntfV(v, fastpathCheckNilFalse, false, f.d)
  27587. }
  27588. }
  27589. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, checkNil bool, d *Decoder) {
  27590. v, changed := f.DecMapBoolIntfV(*vp, checkNil, true, d)
  27591. if changed {
  27592. *vp = v
  27593. }
  27594. }
  27595. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, checkNil bool, canChange bool,
  27596. d *Decoder) (_ map[bool]interface{}, changed bool) {
  27597. dd := d.d
  27598. if checkNil && dd.TryDecodeAsNil() {
  27599. if v != nil {
  27600. changed = true
  27601. }
  27602. return nil, changed
  27603. }
  27604. containerLen := dd.ReadMapStart()
  27605. if canChange && v == nil {
  27606. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  27607. v = make(map[bool]interface{}, xlen)
  27608. changed = true
  27609. }
  27610. mapGet := !d.h.MapValueReset && !d.h.InterfaceReset
  27611. var mk bool
  27612. var mv interface{}
  27613. if containerLen > 0 {
  27614. for j := 0; j < containerLen; j++ {
  27615. mk = dd.DecodeBool()
  27616. if mapGet {
  27617. mv = v[mk]
  27618. } else {
  27619. mv = nil
  27620. }
  27621. d.decode(&mv)
  27622. if v != nil {
  27623. v[mk] = mv
  27624. }
  27625. }
  27626. } else if containerLen < 0 {
  27627. for j := 0; !dd.CheckBreak(); j++ {
  27628. mk = dd.DecodeBool()
  27629. if mapGet {
  27630. mv = v[mk]
  27631. } else {
  27632. mv = nil
  27633. }
  27634. d.decode(&mv)
  27635. if v != nil {
  27636. v[mk] = mv
  27637. }
  27638. }
  27639. dd.ReadEnd()
  27640. }
  27641. return v, changed
  27642. }
  27643. func (f *decFnInfo) fastpathDecMapBoolStringR(rv reflect.Value) {
  27644. if rv.CanAddr() {
  27645. vp := rv.Addr().Interface().(*map[bool]string)
  27646. v, changed := fastpathTV.DecMapBoolStringV(*vp, fastpathCheckNilFalse, true, f.d)
  27647. if changed {
  27648. *vp = v
  27649. }
  27650. } else {
  27651. v := rv.Interface().(map[bool]string)
  27652. fastpathTV.DecMapBoolStringV(v, fastpathCheckNilFalse, false, f.d)
  27653. }
  27654. }
  27655. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, checkNil bool, d *Decoder) {
  27656. v, changed := f.DecMapBoolStringV(*vp, checkNil, true, d)
  27657. if changed {
  27658. *vp = v
  27659. }
  27660. }
  27661. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, checkNil bool, canChange bool,
  27662. d *Decoder) (_ map[bool]string, changed bool) {
  27663. dd := d.d
  27664. if checkNil && dd.TryDecodeAsNil() {
  27665. if v != nil {
  27666. changed = true
  27667. }
  27668. return nil, changed
  27669. }
  27670. containerLen := dd.ReadMapStart()
  27671. if canChange && v == nil {
  27672. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 17)
  27673. v = make(map[bool]string, xlen)
  27674. changed = true
  27675. }
  27676. var mk bool
  27677. var mv string
  27678. if containerLen > 0 {
  27679. for j := 0; j < containerLen; j++ {
  27680. mk = dd.DecodeBool()
  27681. mv = dd.DecodeString()
  27682. if v != nil {
  27683. v[mk] = mv
  27684. }
  27685. }
  27686. } else if containerLen < 0 {
  27687. for j := 0; !dd.CheckBreak(); j++ {
  27688. mk = dd.DecodeBool()
  27689. mv = dd.DecodeString()
  27690. if v != nil {
  27691. v[mk] = mv
  27692. }
  27693. }
  27694. dd.ReadEnd()
  27695. }
  27696. return v, changed
  27697. }
  27698. func (f *decFnInfo) fastpathDecMapBoolUintR(rv reflect.Value) {
  27699. if rv.CanAddr() {
  27700. vp := rv.Addr().Interface().(*map[bool]uint)
  27701. v, changed := fastpathTV.DecMapBoolUintV(*vp, fastpathCheckNilFalse, true, f.d)
  27702. if changed {
  27703. *vp = v
  27704. }
  27705. } else {
  27706. v := rv.Interface().(map[bool]uint)
  27707. fastpathTV.DecMapBoolUintV(v, fastpathCheckNilFalse, false, f.d)
  27708. }
  27709. }
  27710. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, checkNil bool, d *Decoder) {
  27711. v, changed := f.DecMapBoolUintV(*vp, checkNil, true, d)
  27712. if changed {
  27713. *vp = v
  27714. }
  27715. }
  27716. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, checkNil bool, canChange bool,
  27717. d *Decoder) (_ map[bool]uint, changed bool) {
  27718. dd := d.d
  27719. if checkNil && dd.TryDecodeAsNil() {
  27720. if v != nil {
  27721. changed = true
  27722. }
  27723. return nil, changed
  27724. }
  27725. containerLen := dd.ReadMapStart()
  27726. if canChange && v == nil {
  27727. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27728. v = make(map[bool]uint, xlen)
  27729. changed = true
  27730. }
  27731. var mk bool
  27732. var mv uint
  27733. if containerLen > 0 {
  27734. for j := 0; j < containerLen; j++ {
  27735. mk = dd.DecodeBool()
  27736. mv = uint(dd.DecodeUint(uintBitsize))
  27737. if v != nil {
  27738. v[mk] = mv
  27739. }
  27740. }
  27741. } else if containerLen < 0 {
  27742. for j := 0; !dd.CheckBreak(); j++ {
  27743. mk = dd.DecodeBool()
  27744. mv = uint(dd.DecodeUint(uintBitsize))
  27745. if v != nil {
  27746. v[mk] = mv
  27747. }
  27748. }
  27749. dd.ReadEnd()
  27750. }
  27751. return v, changed
  27752. }
  27753. func (f *decFnInfo) fastpathDecMapBoolUint8R(rv reflect.Value) {
  27754. if rv.CanAddr() {
  27755. vp := rv.Addr().Interface().(*map[bool]uint8)
  27756. v, changed := fastpathTV.DecMapBoolUint8V(*vp, fastpathCheckNilFalse, true, f.d)
  27757. if changed {
  27758. *vp = v
  27759. }
  27760. } else {
  27761. v := rv.Interface().(map[bool]uint8)
  27762. fastpathTV.DecMapBoolUint8V(v, fastpathCheckNilFalse, false, f.d)
  27763. }
  27764. }
  27765. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, checkNil bool, d *Decoder) {
  27766. v, changed := f.DecMapBoolUint8V(*vp, checkNil, true, d)
  27767. if changed {
  27768. *vp = v
  27769. }
  27770. }
  27771. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, checkNil bool, canChange bool,
  27772. d *Decoder) (_ map[bool]uint8, changed bool) {
  27773. dd := d.d
  27774. if checkNil && dd.TryDecodeAsNil() {
  27775. if v != nil {
  27776. changed = true
  27777. }
  27778. return nil, changed
  27779. }
  27780. containerLen := dd.ReadMapStart()
  27781. if canChange && v == nil {
  27782. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  27783. v = make(map[bool]uint8, xlen)
  27784. changed = true
  27785. }
  27786. var mk bool
  27787. var mv uint8
  27788. if containerLen > 0 {
  27789. for j := 0; j < containerLen; j++ {
  27790. mk = dd.DecodeBool()
  27791. mv = uint8(dd.DecodeUint(8))
  27792. if v != nil {
  27793. v[mk] = mv
  27794. }
  27795. }
  27796. } else if containerLen < 0 {
  27797. for j := 0; !dd.CheckBreak(); j++ {
  27798. mk = dd.DecodeBool()
  27799. mv = uint8(dd.DecodeUint(8))
  27800. if v != nil {
  27801. v[mk] = mv
  27802. }
  27803. }
  27804. dd.ReadEnd()
  27805. }
  27806. return v, changed
  27807. }
  27808. func (f *decFnInfo) fastpathDecMapBoolUint16R(rv reflect.Value) {
  27809. if rv.CanAddr() {
  27810. vp := rv.Addr().Interface().(*map[bool]uint16)
  27811. v, changed := fastpathTV.DecMapBoolUint16V(*vp, fastpathCheckNilFalse, true, f.d)
  27812. if changed {
  27813. *vp = v
  27814. }
  27815. } else {
  27816. v := rv.Interface().(map[bool]uint16)
  27817. fastpathTV.DecMapBoolUint16V(v, fastpathCheckNilFalse, false, f.d)
  27818. }
  27819. }
  27820. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, checkNil bool, d *Decoder) {
  27821. v, changed := f.DecMapBoolUint16V(*vp, checkNil, true, d)
  27822. if changed {
  27823. *vp = v
  27824. }
  27825. }
  27826. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, checkNil bool, canChange bool,
  27827. d *Decoder) (_ map[bool]uint16, changed bool) {
  27828. dd := d.d
  27829. if checkNil && dd.TryDecodeAsNil() {
  27830. if v != nil {
  27831. changed = true
  27832. }
  27833. return nil, changed
  27834. }
  27835. containerLen := dd.ReadMapStart()
  27836. if canChange && v == nil {
  27837. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  27838. v = make(map[bool]uint16, xlen)
  27839. changed = true
  27840. }
  27841. var mk bool
  27842. var mv uint16
  27843. if containerLen > 0 {
  27844. for j := 0; j < containerLen; j++ {
  27845. mk = dd.DecodeBool()
  27846. mv = uint16(dd.DecodeUint(16))
  27847. if v != nil {
  27848. v[mk] = mv
  27849. }
  27850. }
  27851. } else if containerLen < 0 {
  27852. for j := 0; !dd.CheckBreak(); j++ {
  27853. mk = dd.DecodeBool()
  27854. mv = uint16(dd.DecodeUint(16))
  27855. if v != nil {
  27856. v[mk] = mv
  27857. }
  27858. }
  27859. dd.ReadEnd()
  27860. }
  27861. return v, changed
  27862. }
  27863. func (f *decFnInfo) fastpathDecMapBoolUint32R(rv reflect.Value) {
  27864. if rv.CanAddr() {
  27865. vp := rv.Addr().Interface().(*map[bool]uint32)
  27866. v, changed := fastpathTV.DecMapBoolUint32V(*vp, fastpathCheckNilFalse, true, f.d)
  27867. if changed {
  27868. *vp = v
  27869. }
  27870. } else {
  27871. v := rv.Interface().(map[bool]uint32)
  27872. fastpathTV.DecMapBoolUint32V(v, fastpathCheckNilFalse, false, f.d)
  27873. }
  27874. }
  27875. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, checkNil bool, d *Decoder) {
  27876. v, changed := f.DecMapBoolUint32V(*vp, checkNil, true, d)
  27877. if changed {
  27878. *vp = v
  27879. }
  27880. }
  27881. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, checkNil bool, canChange bool,
  27882. d *Decoder) (_ map[bool]uint32, changed bool) {
  27883. dd := d.d
  27884. if checkNil && dd.TryDecodeAsNil() {
  27885. if v != nil {
  27886. changed = true
  27887. }
  27888. return nil, changed
  27889. }
  27890. containerLen := dd.ReadMapStart()
  27891. if canChange && v == nil {
  27892. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  27893. v = make(map[bool]uint32, xlen)
  27894. changed = true
  27895. }
  27896. var mk bool
  27897. var mv uint32
  27898. if containerLen > 0 {
  27899. for j := 0; j < containerLen; j++ {
  27900. mk = dd.DecodeBool()
  27901. mv = uint32(dd.DecodeUint(32))
  27902. if v != nil {
  27903. v[mk] = mv
  27904. }
  27905. }
  27906. } else if containerLen < 0 {
  27907. for j := 0; !dd.CheckBreak(); j++ {
  27908. mk = dd.DecodeBool()
  27909. mv = uint32(dd.DecodeUint(32))
  27910. if v != nil {
  27911. v[mk] = mv
  27912. }
  27913. }
  27914. dd.ReadEnd()
  27915. }
  27916. return v, changed
  27917. }
  27918. func (f *decFnInfo) fastpathDecMapBoolUint64R(rv reflect.Value) {
  27919. if rv.CanAddr() {
  27920. vp := rv.Addr().Interface().(*map[bool]uint64)
  27921. v, changed := fastpathTV.DecMapBoolUint64V(*vp, fastpathCheckNilFalse, true, f.d)
  27922. if changed {
  27923. *vp = v
  27924. }
  27925. } else {
  27926. v := rv.Interface().(map[bool]uint64)
  27927. fastpathTV.DecMapBoolUint64V(v, fastpathCheckNilFalse, false, f.d)
  27928. }
  27929. }
  27930. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, checkNil bool, d *Decoder) {
  27931. v, changed := f.DecMapBoolUint64V(*vp, checkNil, true, d)
  27932. if changed {
  27933. *vp = v
  27934. }
  27935. }
  27936. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, checkNil bool, canChange bool,
  27937. d *Decoder) (_ map[bool]uint64, changed bool) {
  27938. dd := d.d
  27939. if checkNil && dd.TryDecodeAsNil() {
  27940. if v != nil {
  27941. changed = true
  27942. }
  27943. return nil, changed
  27944. }
  27945. containerLen := dd.ReadMapStart()
  27946. if canChange && v == nil {
  27947. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27948. v = make(map[bool]uint64, xlen)
  27949. changed = true
  27950. }
  27951. var mk bool
  27952. var mv uint64
  27953. if containerLen > 0 {
  27954. for j := 0; j < containerLen; j++ {
  27955. mk = dd.DecodeBool()
  27956. mv = dd.DecodeUint(64)
  27957. if v != nil {
  27958. v[mk] = mv
  27959. }
  27960. }
  27961. } else if containerLen < 0 {
  27962. for j := 0; !dd.CheckBreak(); j++ {
  27963. mk = dd.DecodeBool()
  27964. mv = dd.DecodeUint(64)
  27965. if v != nil {
  27966. v[mk] = mv
  27967. }
  27968. }
  27969. dd.ReadEnd()
  27970. }
  27971. return v, changed
  27972. }
  27973. func (f *decFnInfo) fastpathDecMapBoolUintptrR(rv reflect.Value) {
  27974. if rv.CanAddr() {
  27975. vp := rv.Addr().Interface().(*map[bool]uintptr)
  27976. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, fastpathCheckNilFalse, true, f.d)
  27977. if changed {
  27978. *vp = v
  27979. }
  27980. } else {
  27981. v := rv.Interface().(map[bool]uintptr)
  27982. fastpathTV.DecMapBoolUintptrV(v, fastpathCheckNilFalse, false, f.d)
  27983. }
  27984. }
  27985. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, checkNil bool, d *Decoder) {
  27986. v, changed := f.DecMapBoolUintptrV(*vp, checkNil, true, d)
  27987. if changed {
  27988. *vp = v
  27989. }
  27990. }
  27991. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, checkNil bool, canChange bool,
  27992. d *Decoder) (_ map[bool]uintptr, changed bool) {
  27993. dd := d.d
  27994. if checkNil && dd.TryDecodeAsNil() {
  27995. if v != nil {
  27996. changed = true
  27997. }
  27998. return nil, changed
  27999. }
  28000. containerLen := dd.ReadMapStart()
  28001. if canChange && v == nil {
  28002. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28003. v = make(map[bool]uintptr, xlen)
  28004. changed = true
  28005. }
  28006. var mk bool
  28007. var mv uintptr
  28008. if containerLen > 0 {
  28009. for j := 0; j < containerLen; j++ {
  28010. mk = dd.DecodeBool()
  28011. mv = uintptr(dd.DecodeUint(uintBitsize))
  28012. if v != nil {
  28013. v[mk] = mv
  28014. }
  28015. }
  28016. } else if containerLen < 0 {
  28017. for j := 0; !dd.CheckBreak(); j++ {
  28018. mk = dd.DecodeBool()
  28019. mv = uintptr(dd.DecodeUint(uintBitsize))
  28020. if v != nil {
  28021. v[mk] = mv
  28022. }
  28023. }
  28024. dd.ReadEnd()
  28025. }
  28026. return v, changed
  28027. }
  28028. func (f *decFnInfo) fastpathDecMapBoolIntR(rv reflect.Value) {
  28029. if rv.CanAddr() {
  28030. vp := rv.Addr().Interface().(*map[bool]int)
  28031. v, changed := fastpathTV.DecMapBoolIntV(*vp, fastpathCheckNilFalse, true, f.d)
  28032. if changed {
  28033. *vp = v
  28034. }
  28035. } else {
  28036. v := rv.Interface().(map[bool]int)
  28037. fastpathTV.DecMapBoolIntV(v, fastpathCheckNilFalse, false, f.d)
  28038. }
  28039. }
  28040. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, checkNil bool, d *Decoder) {
  28041. v, changed := f.DecMapBoolIntV(*vp, checkNil, true, d)
  28042. if changed {
  28043. *vp = v
  28044. }
  28045. }
  28046. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, checkNil bool, canChange bool,
  28047. d *Decoder) (_ map[bool]int, changed bool) {
  28048. dd := d.d
  28049. if checkNil && dd.TryDecodeAsNil() {
  28050. if v != nil {
  28051. changed = true
  28052. }
  28053. return nil, changed
  28054. }
  28055. containerLen := dd.ReadMapStart()
  28056. if canChange && v == nil {
  28057. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28058. v = make(map[bool]int, xlen)
  28059. changed = true
  28060. }
  28061. var mk bool
  28062. var mv int
  28063. if containerLen > 0 {
  28064. for j := 0; j < containerLen; j++ {
  28065. mk = dd.DecodeBool()
  28066. mv = int(dd.DecodeInt(intBitsize))
  28067. if v != nil {
  28068. v[mk] = mv
  28069. }
  28070. }
  28071. } else if containerLen < 0 {
  28072. for j := 0; !dd.CheckBreak(); j++ {
  28073. mk = dd.DecodeBool()
  28074. mv = int(dd.DecodeInt(intBitsize))
  28075. if v != nil {
  28076. v[mk] = mv
  28077. }
  28078. }
  28079. dd.ReadEnd()
  28080. }
  28081. return v, changed
  28082. }
  28083. func (f *decFnInfo) fastpathDecMapBoolInt8R(rv reflect.Value) {
  28084. if rv.CanAddr() {
  28085. vp := rv.Addr().Interface().(*map[bool]int8)
  28086. v, changed := fastpathTV.DecMapBoolInt8V(*vp, fastpathCheckNilFalse, true, f.d)
  28087. if changed {
  28088. *vp = v
  28089. }
  28090. } else {
  28091. v := rv.Interface().(map[bool]int8)
  28092. fastpathTV.DecMapBoolInt8V(v, fastpathCheckNilFalse, false, f.d)
  28093. }
  28094. }
  28095. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, checkNil bool, d *Decoder) {
  28096. v, changed := f.DecMapBoolInt8V(*vp, checkNil, true, d)
  28097. if changed {
  28098. *vp = v
  28099. }
  28100. }
  28101. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, checkNil bool, canChange bool,
  28102. d *Decoder) (_ map[bool]int8, changed bool) {
  28103. dd := d.d
  28104. if checkNil && dd.TryDecodeAsNil() {
  28105. if v != nil {
  28106. changed = true
  28107. }
  28108. return nil, changed
  28109. }
  28110. containerLen := dd.ReadMapStart()
  28111. if canChange && v == nil {
  28112. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  28113. v = make(map[bool]int8, xlen)
  28114. changed = true
  28115. }
  28116. var mk bool
  28117. var mv int8
  28118. if containerLen > 0 {
  28119. for j := 0; j < containerLen; j++ {
  28120. mk = dd.DecodeBool()
  28121. mv = int8(dd.DecodeInt(8))
  28122. if v != nil {
  28123. v[mk] = mv
  28124. }
  28125. }
  28126. } else if containerLen < 0 {
  28127. for j := 0; !dd.CheckBreak(); j++ {
  28128. mk = dd.DecodeBool()
  28129. mv = int8(dd.DecodeInt(8))
  28130. if v != nil {
  28131. v[mk] = mv
  28132. }
  28133. }
  28134. dd.ReadEnd()
  28135. }
  28136. return v, changed
  28137. }
  28138. func (f *decFnInfo) fastpathDecMapBoolInt16R(rv reflect.Value) {
  28139. if rv.CanAddr() {
  28140. vp := rv.Addr().Interface().(*map[bool]int16)
  28141. v, changed := fastpathTV.DecMapBoolInt16V(*vp, fastpathCheckNilFalse, true, f.d)
  28142. if changed {
  28143. *vp = v
  28144. }
  28145. } else {
  28146. v := rv.Interface().(map[bool]int16)
  28147. fastpathTV.DecMapBoolInt16V(v, fastpathCheckNilFalse, false, f.d)
  28148. }
  28149. }
  28150. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, checkNil bool, d *Decoder) {
  28151. v, changed := f.DecMapBoolInt16V(*vp, checkNil, true, d)
  28152. if changed {
  28153. *vp = v
  28154. }
  28155. }
  28156. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, checkNil bool, canChange bool,
  28157. d *Decoder) (_ map[bool]int16, changed bool) {
  28158. dd := d.d
  28159. if checkNil && dd.TryDecodeAsNil() {
  28160. if v != nil {
  28161. changed = true
  28162. }
  28163. return nil, changed
  28164. }
  28165. containerLen := dd.ReadMapStart()
  28166. if canChange && v == nil {
  28167. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 3)
  28168. v = make(map[bool]int16, xlen)
  28169. changed = true
  28170. }
  28171. var mk bool
  28172. var mv int16
  28173. if containerLen > 0 {
  28174. for j := 0; j < containerLen; j++ {
  28175. mk = dd.DecodeBool()
  28176. mv = int16(dd.DecodeInt(16))
  28177. if v != nil {
  28178. v[mk] = mv
  28179. }
  28180. }
  28181. } else if containerLen < 0 {
  28182. for j := 0; !dd.CheckBreak(); j++ {
  28183. mk = dd.DecodeBool()
  28184. mv = int16(dd.DecodeInt(16))
  28185. if v != nil {
  28186. v[mk] = mv
  28187. }
  28188. }
  28189. dd.ReadEnd()
  28190. }
  28191. return v, changed
  28192. }
  28193. func (f *decFnInfo) fastpathDecMapBoolInt32R(rv reflect.Value) {
  28194. if rv.CanAddr() {
  28195. vp := rv.Addr().Interface().(*map[bool]int32)
  28196. v, changed := fastpathTV.DecMapBoolInt32V(*vp, fastpathCheckNilFalse, true, f.d)
  28197. if changed {
  28198. *vp = v
  28199. }
  28200. } else {
  28201. v := rv.Interface().(map[bool]int32)
  28202. fastpathTV.DecMapBoolInt32V(v, fastpathCheckNilFalse, false, f.d)
  28203. }
  28204. }
  28205. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, checkNil bool, d *Decoder) {
  28206. v, changed := f.DecMapBoolInt32V(*vp, checkNil, true, d)
  28207. if changed {
  28208. *vp = v
  28209. }
  28210. }
  28211. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, checkNil bool, canChange bool,
  28212. d *Decoder) (_ map[bool]int32, changed bool) {
  28213. dd := d.d
  28214. if checkNil && dd.TryDecodeAsNil() {
  28215. if v != nil {
  28216. changed = true
  28217. }
  28218. return nil, changed
  28219. }
  28220. containerLen := dd.ReadMapStart()
  28221. if canChange && v == nil {
  28222. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28223. v = make(map[bool]int32, xlen)
  28224. changed = true
  28225. }
  28226. var mk bool
  28227. var mv int32
  28228. if containerLen > 0 {
  28229. for j := 0; j < containerLen; j++ {
  28230. mk = dd.DecodeBool()
  28231. mv = int32(dd.DecodeInt(32))
  28232. if v != nil {
  28233. v[mk] = mv
  28234. }
  28235. }
  28236. } else if containerLen < 0 {
  28237. for j := 0; !dd.CheckBreak(); j++ {
  28238. mk = dd.DecodeBool()
  28239. mv = int32(dd.DecodeInt(32))
  28240. if v != nil {
  28241. v[mk] = mv
  28242. }
  28243. }
  28244. dd.ReadEnd()
  28245. }
  28246. return v, changed
  28247. }
  28248. func (f *decFnInfo) fastpathDecMapBoolInt64R(rv reflect.Value) {
  28249. if rv.CanAddr() {
  28250. vp := rv.Addr().Interface().(*map[bool]int64)
  28251. v, changed := fastpathTV.DecMapBoolInt64V(*vp, fastpathCheckNilFalse, true, f.d)
  28252. if changed {
  28253. *vp = v
  28254. }
  28255. } else {
  28256. v := rv.Interface().(map[bool]int64)
  28257. fastpathTV.DecMapBoolInt64V(v, fastpathCheckNilFalse, false, f.d)
  28258. }
  28259. }
  28260. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, checkNil bool, d *Decoder) {
  28261. v, changed := f.DecMapBoolInt64V(*vp, checkNil, true, d)
  28262. if changed {
  28263. *vp = v
  28264. }
  28265. }
  28266. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, checkNil bool, canChange bool,
  28267. d *Decoder) (_ map[bool]int64, changed bool) {
  28268. dd := d.d
  28269. if checkNil && dd.TryDecodeAsNil() {
  28270. if v != nil {
  28271. changed = true
  28272. }
  28273. return nil, changed
  28274. }
  28275. containerLen := dd.ReadMapStart()
  28276. if canChange && v == nil {
  28277. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28278. v = make(map[bool]int64, xlen)
  28279. changed = true
  28280. }
  28281. var mk bool
  28282. var mv int64
  28283. if containerLen > 0 {
  28284. for j := 0; j < containerLen; j++ {
  28285. mk = dd.DecodeBool()
  28286. mv = dd.DecodeInt(64)
  28287. if v != nil {
  28288. v[mk] = mv
  28289. }
  28290. }
  28291. } else if containerLen < 0 {
  28292. for j := 0; !dd.CheckBreak(); j++ {
  28293. mk = dd.DecodeBool()
  28294. mv = dd.DecodeInt(64)
  28295. if v != nil {
  28296. v[mk] = mv
  28297. }
  28298. }
  28299. dd.ReadEnd()
  28300. }
  28301. return v, changed
  28302. }
  28303. func (f *decFnInfo) fastpathDecMapBoolFloat32R(rv reflect.Value) {
  28304. if rv.CanAddr() {
  28305. vp := rv.Addr().Interface().(*map[bool]float32)
  28306. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, fastpathCheckNilFalse, true, f.d)
  28307. if changed {
  28308. *vp = v
  28309. }
  28310. } else {
  28311. v := rv.Interface().(map[bool]float32)
  28312. fastpathTV.DecMapBoolFloat32V(v, fastpathCheckNilFalse, false, f.d)
  28313. }
  28314. }
  28315. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, checkNil bool, d *Decoder) {
  28316. v, changed := f.DecMapBoolFloat32V(*vp, checkNil, true, d)
  28317. if changed {
  28318. *vp = v
  28319. }
  28320. }
  28321. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, checkNil bool, canChange bool,
  28322. d *Decoder) (_ map[bool]float32, changed bool) {
  28323. dd := d.d
  28324. if checkNil && dd.TryDecodeAsNil() {
  28325. if v != nil {
  28326. changed = true
  28327. }
  28328. return nil, changed
  28329. }
  28330. containerLen := dd.ReadMapStart()
  28331. if canChange && v == nil {
  28332. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 5)
  28333. v = make(map[bool]float32, xlen)
  28334. changed = true
  28335. }
  28336. var mk bool
  28337. var mv float32
  28338. if containerLen > 0 {
  28339. for j := 0; j < containerLen; j++ {
  28340. mk = dd.DecodeBool()
  28341. mv = float32(dd.DecodeFloat(true))
  28342. if v != nil {
  28343. v[mk] = mv
  28344. }
  28345. }
  28346. } else if containerLen < 0 {
  28347. for j := 0; !dd.CheckBreak(); j++ {
  28348. mk = dd.DecodeBool()
  28349. mv = float32(dd.DecodeFloat(true))
  28350. if v != nil {
  28351. v[mk] = mv
  28352. }
  28353. }
  28354. dd.ReadEnd()
  28355. }
  28356. return v, changed
  28357. }
  28358. func (f *decFnInfo) fastpathDecMapBoolFloat64R(rv reflect.Value) {
  28359. if rv.CanAddr() {
  28360. vp := rv.Addr().Interface().(*map[bool]float64)
  28361. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, fastpathCheckNilFalse, true, f.d)
  28362. if changed {
  28363. *vp = v
  28364. }
  28365. } else {
  28366. v := rv.Interface().(map[bool]float64)
  28367. fastpathTV.DecMapBoolFloat64V(v, fastpathCheckNilFalse, false, f.d)
  28368. }
  28369. }
  28370. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, checkNil bool, d *Decoder) {
  28371. v, changed := f.DecMapBoolFloat64V(*vp, checkNil, true, d)
  28372. if changed {
  28373. *vp = v
  28374. }
  28375. }
  28376. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, checkNil bool, canChange bool,
  28377. d *Decoder) (_ map[bool]float64, changed bool) {
  28378. dd := d.d
  28379. if checkNil && dd.TryDecodeAsNil() {
  28380. if v != nil {
  28381. changed = true
  28382. }
  28383. return nil, changed
  28384. }
  28385. containerLen := dd.ReadMapStart()
  28386. if canChange && v == nil {
  28387. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28388. v = make(map[bool]float64, xlen)
  28389. changed = true
  28390. }
  28391. var mk bool
  28392. var mv float64
  28393. if containerLen > 0 {
  28394. for j := 0; j < containerLen; j++ {
  28395. mk = dd.DecodeBool()
  28396. mv = dd.DecodeFloat(false)
  28397. if v != nil {
  28398. v[mk] = mv
  28399. }
  28400. }
  28401. } else if containerLen < 0 {
  28402. for j := 0; !dd.CheckBreak(); j++ {
  28403. mk = dd.DecodeBool()
  28404. mv = dd.DecodeFloat(false)
  28405. if v != nil {
  28406. v[mk] = mv
  28407. }
  28408. }
  28409. dd.ReadEnd()
  28410. }
  28411. return v, changed
  28412. }
  28413. func (f *decFnInfo) fastpathDecMapBoolBoolR(rv reflect.Value) {
  28414. if rv.CanAddr() {
  28415. vp := rv.Addr().Interface().(*map[bool]bool)
  28416. v, changed := fastpathTV.DecMapBoolBoolV(*vp, fastpathCheckNilFalse, true, f.d)
  28417. if changed {
  28418. *vp = v
  28419. }
  28420. } else {
  28421. v := rv.Interface().(map[bool]bool)
  28422. fastpathTV.DecMapBoolBoolV(v, fastpathCheckNilFalse, false, f.d)
  28423. }
  28424. }
  28425. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, checkNil bool, d *Decoder) {
  28426. v, changed := f.DecMapBoolBoolV(*vp, checkNil, true, d)
  28427. if changed {
  28428. *vp = v
  28429. }
  28430. }
  28431. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, checkNil bool, canChange bool,
  28432. d *Decoder) (_ map[bool]bool, changed bool) {
  28433. dd := d.d
  28434. if checkNil && dd.TryDecodeAsNil() {
  28435. if v != nil {
  28436. changed = true
  28437. }
  28438. return nil, changed
  28439. }
  28440. containerLen := dd.ReadMapStart()
  28441. if canChange && v == nil {
  28442. xlen, _ := decInferLen(containerLen, d.h.MaxInitLen, 2)
  28443. v = make(map[bool]bool, xlen)
  28444. changed = true
  28445. }
  28446. var mk bool
  28447. var mv bool
  28448. if containerLen > 0 {
  28449. for j := 0; j < containerLen; j++ {
  28450. mk = dd.DecodeBool()
  28451. mv = dd.DecodeBool()
  28452. if v != nil {
  28453. v[mk] = mv
  28454. }
  28455. }
  28456. } else if containerLen < 0 {
  28457. for j := 0; !dd.CheckBreak(); j++ {
  28458. mk = dd.DecodeBool()
  28459. mv = dd.DecodeBool()
  28460. if v != nil {
  28461. v[mk] = mv
  28462. }
  28463. }
  28464. dd.ReadEnd()
  28465. }
  28466. return v, changed
  28467. }