fast-path.generated.go 807 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066
  1. // +build !notfastpath
  2. // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved.
  3. // Use of this source code is governed by a MIT license found in the LICENSE file.
  4. // Code generated from fast-path.go.tmpl - DO NOT EDIT.
  5. package codec
  6. // Fast path functions try to create a fast path encode or decode implementation
  7. // for common maps and slices.
  8. //
  9. // We define the functions and register then in this single file
  10. // so as not to pollute the encode.go and decode.go, and create a dependency in there.
  11. // This file can be omitted without causing a build failure.
  12. //
  13. // The advantage of fast paths is:
  14. // - Many calls bypass reflection altogether
  15. //
  16. // Currently support
  17. // - slice of all builtin types,
  18. // - map of all builtin types to string or interface value
  19. // - symmetrical maps of all builtin types (e.g. str-str, uint8-uint8)
  20. // This should provide adequate "typical" implementations.
  21. //
  22. // Note that fast track decode functions must handle values for which an address cannot be obtained.
  23. // For example:
  24. // m2 := map[string]int{}
  25. // p2 := []interface{}{m2}
  26. // // decoding into p2 will bomb if fast track functions do not treat like unaddressable.
  27. //
  28. import (
  29. "reflect"
  30. "sort"
  31. )
  32. const fastpathEnabled = true
  33. type fastpathT struct{}
  34. var fastpathTV fastpathT
  35. type fastpathE struct {
  36. rtid uintptr
  37. rt reflect.Type
  38. encfn func(*Encoder, *codecFnInfo, reflect.Value)
  39. decfn func(*Decoder, *codecFnInfo, reflect.Value)
  40. }
  41. type fastpathA [271]fastpathE
  42. func (x *fastpathA) index(rtid uintptr) int {
  43. // use binary search to grab the index (adapted from sort/search.go)
  44. h, i, j := 0, 0, 271 // len(x)
  45. for i < j {
  46. h = i + (j-i)/2
  47. if x[h].rtid < rtid {
  48. i = h + 1
  49. } else {
  50. j = h
  51. }
  52. }
  53. if i < 271 && x[i].rtid == rtid {
  54. return i
  55. }
  56. return -1
  57. }
  58. type fastpathAslice []fastpathE
  59. func (x fastpathAslice) Len() int { return len(x) }
  60. func (x fastpathAslice) Less(i, j int) bool { return x[i].rtid < x[j].rtid }
  61. func (x fastpathAslice) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
  62. var fastpathAV fastpathA
  63. // due to possible initialization loop error, make fastpath in an init()
  64. func init() {
  65. i := 0
  66. fn := func(v interface{},
  67. fe func(*Encoder, *codecFnInfo, reflect.Value),
  68. fd func(*Decoder, *codecFnInfo, reflect.Value)) (f fastpathE) {
  69. xrt := reflect.TypeOf(v)
  70. xptr := rt2id(xrt)
  71. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  72. i++
  73. return
  74. }
  75. fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
  76. fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
  77. fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
  78. fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
  79. fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
  80. fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
  81. fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
  82. fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
  83. fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
  84. fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
  85. fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
  86. fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
  87. fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
  88. fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
  89. fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
  90. fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
  91. fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
  92. fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
  93. fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
  94. fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
  95. fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
  96. fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
  97. fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
  98. fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
  99. fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
  100. fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
  101. fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
  102. fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
  103. fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
  104. fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
  105. fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
  106. fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
  107. fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
  108. fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
  109. fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
  110. fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
  111. fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
  112. fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
  113. fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
  114. fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
  115. fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
  116. fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
  117. fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
  118. fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
  119. fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
  120. fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
  121. fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
  122. fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
  123. fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
  124. fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
  125. fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
  126. fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
  127. fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
  128. fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
  129. fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
  130. fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
  131. fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
  132. fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
  133. fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
  134. fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
  135. fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
  136. fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
  137. fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
  138. fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
  139. fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
  140. fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
  141. fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
  142. fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
  143. fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
  144. fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
  145. fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
  146. fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
  147. fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
  148. fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
  149. fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
  150. fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
  151. fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
  152. fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
  153. fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
  154. fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
  155. fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
  156. fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
  157. fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
  158. fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
  159. fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
  160. fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
  161. fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
  162. fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
  163. fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
  164. fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
  165. fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
  166. fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
  167. fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
  168. fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
  169. fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
  170. fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
  171. fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
  172. fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
  173. fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
  174. fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
  175. fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
  176. fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
  177. fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
  178. fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
  179. fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
  180. fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
  181. fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
  182. fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
  183. fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
  184. fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
  185. fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
  186. fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
  187. fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
  188. fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
  189. fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
  190. fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
  191. fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
  192. fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
  193. fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
  194. fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
  195. fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
  196. fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
  197. fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
  198. fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
  199. fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
  200. fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
  201. fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
  202. fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
  203. fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
  204. fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
  205. fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
  206. fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
  207. fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
  208. fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
  209. fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
  210. fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
  211. fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
  212. fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
  213. fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
  214. fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
  215. fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
  216. fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
  217. fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
  218. fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
  219. fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
  220. fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
  221. fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
  222. fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
  223. fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
  224. fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
  225. fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
  226. fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
  227. fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
  228. fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
  229. fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
  230. fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
  231. fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
  232. fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
  233. fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
  234. fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
  235. fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
  236. fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
  237. fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
  238. fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
  239. fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
  240. fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
  241. fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
  242. fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
  243. fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
  244. fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
  245. fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
  246. fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
  247. fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
  248. fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
  249. fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
  250. fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
  251. fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
  252. fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
  253. fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
  254. fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
  255. fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
  256. fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
  257. fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
  258. fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
  259. fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
  260. fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
  261. fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
  262. fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
  263. fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
  264. fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
  265. fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
  266. fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
  267. fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
  268. fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
  269. fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
  270. fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
  271. fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
  272. fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
  273. fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
  274. fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
  275. fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
  276. fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
  277. fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
  278. fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
  279. fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
  280. fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
  281. fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
  282. fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
  283. fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
  284. fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
  285. fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
  286. fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
  287. fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
  288. fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
  289. fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
  290. fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
  291. fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
  292. fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
  293. fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
  294. fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
  295. fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
  296. fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
  297. fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
  298. fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
  299. fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
  300. fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
  301. fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
  302. fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
  303. fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
  304. fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
  305. fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
  306. fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
  307. fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
  308. fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
  309. fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
  310. fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
  311. fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
  312. fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
  313. fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
  314. fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
  315. fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
  316. fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
  317. fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
  318. fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
  319. fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
  320. fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
  321. fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
  322. fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
  323. fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
  324. fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
  325. fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
  326. fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
  327. fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
  328. fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
  329. fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
  330. fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
  331. fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
  332. fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
  333. fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
  334. fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
  335. fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
  336. fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
  337. fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
  338. fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
  339. fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
  340. fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
  341. fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
  342. fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
  343. fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
  344. fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
  345. fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
  346. sort.Sort(fastpathAslice(fastpathAV[:]))
  347. }
  348. // -- encode
  349. // -- -- fast path type switch
  350. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  351. switch v := iv.(type) {
  352. case []interface{}:
  353. fastpathTV.EncSliceIntfV(v, e)
  354. case *[]interface{}:
  355. fastpathTV.EncSliceIntfV(*v, e)
  356. case []string:
  357. fastpathTV.EncSliceStringV(v, e)
  358. case *[]string:
  359. fastpathTV.EncSliceStringV(*v, e)
  360. case []float32:
  361. fastpathTV.EncSliceFloat32V(v, e)
  362. case *[]float32:
  363. fastpathTV.EncSliceFloat32V(*v, e)
  364. case []float64:
  365. fastpathTV.EncSliceFloat64V(v, e)
  366. case *[]float64:
  367. fastpathTV.EncSliceFloat64V(*v, e)
  368. case []uint:
  369. fastpathTV.EncSliceUintV(v, e)
  370. case *[]uint:
  371. fastpathTV.EncSliceUintV(*v, e)
  372. case []uint16:
  373. fastpathTV.EncSliceUint16V(v, e)
  374. case *[]uint16:
  375. fastpathTV.EncSliceUint16V(*v, e)
  376. case []uint32:
  377. fastpathTV.EncSliceUint32V(v, e)
  378. case *[]uint32:
  379. fastpathTV.EncSliceUint32V(*v, e)
  380. case []uint64:
  381. fastpathTV.EncSliceUint64V(v, e)
  382. case *[]uint64:
  383. fastpathTV.EncSliceUint64V(*v, e)
  384. case []uintptr:
  385. fastpathTV.EncSliceUintptrV(v, e)
  386. case *[]uintptr:
  387. fastpathTV.EncSliceUintptrV(*v, e)
  388. case []int:
  389. fastpathTV.EncSliceIntV(v, e)
  390. case *[]int:
  391. fastpathTV.EncSliceIntV(*v, e)
  392. case []int8:
  393. fastpathTV.EncSliceInt8V(v, e)
  394. case *[]int8:
  395. fastpathTV.EncSliceInt8V(*v, e)
  396. case []int16:
  397. fastpathTV.EncSliceInt16V(v, e)
  398. case *[]int16:
  399. fastpathTV.EncSliceInt16V(*v, e)
  400. case []int32:
  401. fastpathTV.EncSliceInt32V(v, e)
  402. case *[]int32:
  403. fastpathTV.EncSliceInt32V(*v, e)
  404. case []int64:
  405. fastpathTV.EncSliceInt64V(v, e)
  406. case *[]int64:
  407. fastpathTV.EncSliceInt64V(*v, e)
  408. case []bool:
  409. fastpathTV.EncSliceBoolV(v, e)
  410. case *[]bool:
  411. fastpathTV.EncSliceBoolV(*v, e)
  412. case map[interface{}]interface{}:
  413. fastpathTV.EncMapIntfIntfV(v, e)
  414. case *map[interface{}]interface{}:
  415. fastpathTV.EncMapIntfIntfV(*v, e)
  416. case map[interface{}]string:
  417. fastpathTV.EncMapIntfStringV(v, e)
  418. case *map[interface{}]string:
  419. fastpathTV.EncMapIntfStringV(*v, e)
  420. case map[interface{}]uint:
  421. fastpathTV.EncMapIntfUintV(v, e)
  422. case *map[interface{}]uint:
  423. fastpathTV.EncMapIntfUintV(*v, e)
  424. case map[interface{}]uint8:
  425. fastpathTV.EncMapIntfUint8V(v, e)
  426. case *map[interface{}]uint8:
  427. fastpathTV.EncMapIntfUint8V(*v, e)
  428. case map[interface{}]uint16:
  429. fastpathTV.EncMapIntfUint16V(v, e)
  430. case *map[interface{}]uint16:
  431. fastpathTV.EncMapIntfUint16V(*v, e)
  432. case map[interface{}]uint32:
  433. fastpathTV.EncMapIntfUint32V(v, e)
  434. case *map[interface{}]uint32:
  435. fastpathTV.EncMapIntfUint32V(*v, e)
  436. case map[interface{}]uint64:
  437. fastpathTV.EncMapIntfUint64V(v, e)
  438. case *map[interface{}]uint64:
  439. fastpathTV.EncMapIntfUint64V(*v, e)
  440. case map[interface{}]uintptr:
  441. fastpathTV.EncMapIntfUintptrV(v, e)
  442. case *map[interface{}]uintptr:
  443. fastpathTV.EncMapIntfUintptrV(*v, e)
  444. case map[interface{}]int:
  445. fastpathTV.EncMapIntfIntV(v, e)
  446. case *map[interface{}]int:
  447. fastpathTV.EncMapIntfIntV(*v, e)
  448. case map[interface{}]int8:
  449. fastpathTV.EncMapIntfInt8V(v, e)
  450. case *map[interface{}]int8:
  451. fastpathTV.EncMapIntfInt8V(*v, e)
  452. case map[interface{}]int16:
  453. fastpathTV.EncMapIntfInt16V(v, e)
  454. case *map[interface{}]int16:
  455. fastpathTV.EncMapIntfInt16V(*v, e)
  456. case map[interface{}]int32:
  457. fastpathTV.EncMapIntfInt32V(v, e)
  458. case *map[interface{}]int32:
  459. fastpathTV.EncMapIntfInt32V(*v, e)
  460. case map[interface{}]int64:
  461. fastpathTV.EncMapIntfInt64V(v, e)
  462. case *map[interface{}]int64:
  463. fastpathTV.EncMapIntfInt64V(*v, e)
  464. case map[interface{}]float32:
  465. fastpathTV.EncMapIntfFloat32V(v, e)
  466. case *map[interface{}]float32:
  467. fastpathTV.EncMapIntfFloat32V(*v, e)
  468. case map[interface{}]float64:
  469. fastpathTV.EncMapIntfFloat64V(v, e)
  470. case *map[interface{}]float64:
  471. fastpathTV.EncMapIntfFloat64V(*v, e)
  472. case map[interface{}]bool:
  473. fastpathTV.EncMapIntfBoolV(v, e)
  474. case *map[interface{}]bool:
  475. fastpathTV.EncMapIntfBoolV(*v, e)
  476. case map[string]interface{}:
  477. fastpathTV.EncMapStringIntfV(v, e)
  478. case *map[string]interface{}:
  479. fastpathTV.EncMapStringIntfV(*v, e)
  480. case map[string]string:
  481. fastpathTV.EncMapStringStringV(v, e)
  482. case *map[string]string:
  483. fastpathTV.EncMapStringStringV(*v, e)
  484. case map[string]uint:
  485. fastpathTV.EncMapStringUintV(v, e)
  486. case *map[string]uint:
  487. fastpathTV.EncMapStringUintV(*v, e)
  488. case map[string]uint8:
  489. fastpathTV.EncMapStringUint8V(v, e)
  490. case *map[string]uint8:
  491. fastpathTV.EncMapStringUint8V(*v, e)
  492. case map[string]uint16:
  493. fastpathTV.EncMapStringUint16V(v, e)
  494. case *map[string]uint16:
  495. fastpathTV.EncMapStringUint16V(*v, e)
  496. case map[string]uint32:
  497. fastpathTV.EncMapStringUint32V(v, e)
  498. case *map[string]uint32:
  499. fastpathTV.EncMapStringUint32V(*v, e)
  500. case map[string]uint64:
  501. fastpathTV.EncMapStringUint64V(v, e)
  502. case *map[string]uint64:
  503. fastpathTV.EncMapStringUint64V(*v, e)
  504. case map[string]uintptr:
  505. fastpathTV.EncMapStringUintptrV(v, e)
  506. case *map[string]uintptr:
  507. fastpathTV.EncMapStringUintptrV(*v, e)
  508. case map[string]int:
  509. fastpathTV.EncMapStringIntV(v, e)
  510. case *map[string]int:
  511. fastpathTV.EncMapStringIntV(*v, e)
  512. case map[string]int8:
  513. fastpathTV.EncMapStringInt8V(v, e)
  514. case *map[string]int8:
  515. fastpathTV.EncMapStringInt8V(*v, e)
  516. case map[string]int16:
  517. fastpathTV.EncMapStringInt16V(v, e)
  518. case *map[string]int16:
  519. fastpathTV.EncMapStringInt16V(*v, e)
  520. case map[string]int32:
  521. fastpathTV.EncMapStringInt32V(v, e)
  522. case *map[string]int32:
  523. fastpathTV.EncMapStringInt32V(*v, e)
  524. case map[string]int64:
  525. fastpathTV.EncMapStringInt64V(v, e)
  526. case *map[string]int64:
  527. fastpathTV.EncMapStringInt64V(*v, e)
  528. case map[string]float32:
  529. fastpathTV.EncMapStringFloat32V(v, e)
  530. case *map[string]float32:
  531. fastpathTV.EncMapStringFloat32V(*v, e)
  532. case map[string]float64:
  533. fastpathTV.EncMapStringFloat64V(v, e)
  534. case *map[string]float64:
  535. fastpathTV.EncMapStringFloat64V(*v, e)
  536. case map[string]bool:
  537. fastpathTV.EncMapStringBoolV(v, e)
  538. case *map[string]bool:
  539. fastpathTV.EncMapStringBoolV(*v, e)
  540. case map[float32]interface{}:
  541. fastpathTV.EncMapFloat32IntfV(v, e)
  542. case *map[float32]interface{}:
  543. fastpathTV.EncMapFloat32IntfV(*v, e)
  544. case map[float32]string:
  545. fastpathTV.EncMapFloat32StringV(v, e)
  546. case *map[float32]string:
  547. fastpathTV.EncMapFloat32StringV(*v, e)
  548. case map[float32]uint:
  549. fastpathTV.EncMapFloat32UintV(v, e)
  550. case *map[float32]uint:
  551. fastpathTV.EncMapFloat32UintV(*v, e)
  552. case map[float32]uint8:
  553. fastpathTV.EncMapFloat32Uint8V(v, e)
  554. case *map[float32]uint8:
  555. fastpathTV.EncMapFloat32Uint8V(*v, e)
  556. case map[float32]uint16:
  557. fastpathTV.EncMapFloat32Uint16V(v, e)
  558. case *map[float32]uint16:
  559. fastpathTV.EncMapFloat32Uint16V(*v, e)
  560. case map[float32]uint32:
  561. fastpathTV.EncMapFloat32Uint32V(v, e)
  562. case *map[float32]uint32:
  563. fastpathTV.EncMapFloat32Uint32V(*v, e)
  564. case map[float32]uint64:
  565. fastpathTV.EncMapFloat32Uint64V(v, e)
  566. case *map[float32]uint64:
  567. fastpathTV.EncMapFloat32Uint64V(*v, e)
  568. case map[float32]uintptr:
  569. fastpathTV.EncMapFloat32UintptrV(v, e)
  570. case *map[float32]uintptr:
  571. fastpathTV.EncMapFloat32UintptrV(*v, e)
  572. case map[float32]int:
  573. fastpathTV.EncMapFloat32IntV(v, e)
  574. case *map[float32]int:
  575. fastpathTV.EncMapFloat32IntV(*v, e)
  576. case map[float32]int8:
  577. fastpathTV.EncMapFloat32Int8V(v, e)
  578. case *map[float32]int8:
  579. fastpathTV.EncMapFloat32Int8V(*v, e)
  580. case map[float32]int16:
  581. fastpathTV.EncMapFloat32Int16V(v, e)
  582. case *map[float32]int16:
  583. fastpathTV.EncMapFloat32Int16V(*v, e)
  584. case map[float32]int32:
  585. fastpathTV.EncMapFloat32Int32V(v, e)
  586. case *map[float32]int32:
  587. fastpathTV.EncMapFloat32Int32V(*v, e)
  588. case map[float32]int64:
  589. fastpathTV.EncMapFloat32Int64V(v, e)
  590. case *map[float32]int64:
  591. fastpathTV.EncMapFloat32Int64V(*v, e)
  592. case map[float32]float32:
  593. fastpathTV.EncMapFloat32Float32V(v, e)
  594. case *map[float32]float32:
  595. fastpathTV.EncMapFloat32Float32V(*v, e)
  596. case map[float32]float64:
  597. fastpathTV.EncMapFloat32Float64V(v, e)
  598. case *map[float32]float64:
  599. fastpathTV.EncMapFloat32Float64V(*v, e)
  600. case map[float32]bool:
  601. fastpathTV.EncMapFloat32BoolV(v, e)
  602. case *map[float32]bool:
  603. fastpathTV.EncMapFloat32BoolV(*v, e)
  604. case map[float64]interface{}:
  605. fastpathTV.EncMapFloat64IntfV(v, e)
  606. case *map[float64]interface{}:
  607. fastpathTV.EncMapFloat64IntfV(*v, e)
  608. case map[float64]string:
  609. fastpathTV.EncMapFloat64StringV(v, e)
  610. case *map[float64]string:
  611. fastpathTV.EncMapFloat64StringV(*v, e)
  612. case map[float64]uint:
  613. fastpathTV.EncMapFloat64UintV(v, e)
  614. case *map[float64]uint:
  615. fastpathTV.EncMapFloat64UintV(*v, e)
  616. case map[float64]uint8:
  617. fastpathTV.EncMapFloat64Uint8V(v, e)
  618. case *map[float64]uint8:
  619. fastpathTV.EncMapFloat64Uint8V(*v, e)
  620. case map[float64]uint16:
  621. fastpathTV.EncMapFloat64Uint16V(v, e)
  622. case *map[float64]uint16:
  623. fastpathTV.EncMapFloat64Uint16V(*v, e)
  624. case map[float64]uint32:
  625. fastpathTV.EncMapFloat64Uint32V(v, e)
  626. case *map[float64]uint32:
  627. fastpathTV.EncMapFloat64Uint32V(*v, e)
  628. case map[float64]uint64:
  629. fastpathTV.EncMapFloat64Uint64V(v, e)
  630. case *map[float64]uint64:
  631. fastpathTV.EncMapFloat64Uint64V(*v, e)
  632. case map[float64]uintptr:
  633. fastpathTV.EncMapFloat64UintptrV(v, e)
  634. case *map[float64]uintptr:
  635. fastpathTV.EncMapFloat64UintptrV(*v, e)
  636. case map[float64]int:
  637. fastpathTV.EncMapFloat64IntV(v, e)
  638. case *map[float64]int:
  639. fastpathTV.EncMapFloat64IntV(*v, e)
  640. case map[float64]int8:
  641. fastpathTV.EncMapFloat64Int8V(v, e)
  642. case *map[float64]int8:
  643. fastpathTV.EncMapFloat64Int8V(*v, e)
  644. case map[float64]int16:
  645. fastpathTV.EncMapFloat64Int16V(v, e)
  646. case *map[float64]int16:
  647. fastpathTV.EncMapFloat64Int16V(*v, e)
  648. case map[float64]int32:
  649. fastpathTV.EncMapFloat64Int32V(v, e)
  650. case *map[float64]int32:
  651. fastpathTV.EncMapFloat64Int32V(*v, e)
  652. case map[float64]int64:
  653. fastpathTV.EncMapFloat64Int64V(v, e)
  654. case *map[float64]int64:
  655. fastpathTV.EncMapFloat64Int64V(*v, e)
  656. case map[float64]float32:
  657. fastpathTV.EncMapFloat64Float32V(v, e)
  658. case *map[float64]float32:
  659. fastpathTV.EncMapFloat64Float32V(*v, e)
  660. case map[float64]float64:
  661. fastpathTV.EncMapFloat64Float64V(v, e)
  662. case *map[float64]float64:
  663. fastpathTV.EncMapFloat64Float64V(*v, e)
  664. case map[float64]bool:
  665. fastpathTV.EncMapFloat64BoolV(v, e)
  666. case *map[float64]bool:
  667. fastpathTV.EncMapFloat64BoolV(*v, e)
  668. case map[uint]interface{}:
  669. fastpathTV.EncMapUintIntfV(v, e)
  670. case *map[uint]interface{}:
  671. fastpathTV.EncMapUintIntfV(*v, e)
  672. case map[uint]string:
  673. fastpathTV.EncMapUintStringV(v, e)
  674. case *map[uint]string:
  675. fastpathTV.EncMapUintStringV(*v, e)
  676. case map[uint]uint:
  677. fastpathTV.EncMapUintUintV(v, e)
  678. case *map[uint]uint:
  679. fastpathTV.EncMapUintUintV(*v, e)
  680. case map[uint]uint8:
  681. fastpathTV.EncMapUintUint8V(v, e)
  682. case *map[uint]uint8:
  683. fastpathTV.EncMapUintUint8V(*v, e)
  684. case map[uint]uint16:
  685. fastpathTV.EncMapUintUint16V(v, e)
  686. case *map[uint]uint16:
  687. fastpathTV.EncMapUintUint16V(*v, e)
  688. case map[uint]uint32:
  689. fastpathTV.EncMapUintUint32V(v, e)
  690. case *map[uint]uint32:
  691. fastpathTV.EncMapUintUint32V(*v, e)
  692. case map[uint]uint64:
  693. fastpathTV.EncMapUintUint64V(v, e)
  694. case *map[uint]uint64:
  695. fastpathTV.EncMapUintUint64V(*v, e)
  696. case map[uint]uintptr:
  697. fastpathTV.EncMapUintUintptrV(v, e)
  698. case *map[uint]uintptr:
  699. fastpathTV.EncMapUintUintptrV(*v, e)
  700. case map[uint]int:
  701. fastpathTV.EncMapUintIntV(v, e)
  702. case *map[uint]int:
  703. fastpathTV.EncMapUintIntV(*v, e)
  704. case map[uint]int8:
  705. fastpathTV.EncMapUintInt8V(v, e)
  706. case *map[uint]int8:
  707. fastpathTV.EncMapUintInt8V(*v, e)
  708. case map[uint]int16:
  709. fastpathTV.EncMapUintInt16V(v, e)
  710. case *map[uint]int16:
  711. fastpathTV.EncMapUintInt16V(*v, e)
  712. case map[uint]int32:
  713. fastpathTV.EncMapUintInt32V(v, e)
  714. case *map[uint]int32:
  715. fastpathTV.EncMapUintInt32V(*v, e)
  716. case map[uint]int64:
  717. fastpathTV.EncMapUintInt64V(v, e)
  718. case *map[uint]int64:
  719. fastpathTV.EncMapUintInt64V(*v, e)
  720. case map[uint]float32:
  721. fastpathTV.EncMapUintFloat32V(v, e)
  722. case *map[uint]float32:
  723. fastpathTV.EncMapUintFloat32V(*v, e)
  724. case map[uint]float64:
  725. fastpathTV.EncMapUintFloat64V(v, e)
  726. case *map[uint]float64:
  727. fastpathTV.EncMapUintFloat64V(*v, e)
  728. case map[uint]bool:
  729. fastpathTV.EncMapUintBoolV(v, e)
  730. case *map[uint]bool:
  731. fastpathTV.EncMapUintBoolV(*v, e)
  732. case map[uint8]interface{}:
  733. fastpathTV.EncMapUint8IntfV(v, e)
  734. case *map[uint8]interface{}:
  735. fastpathTV.EncMapUint8IntfV(*v, e)
  736. case map[uint8]string:
  737. fastpathTV.EncMapUint8StringV(v, e)
  738. case *map[uint8]string:
  739. fastpathTV.EncMapUint8StringV(*v, e)
  740. case map[uint8]uint:
  741. fastpathTV.EncMapUint8UintV(v, e)
  742. case *map[uint8]uint:
  743. fastpathTV.EncMapUint8UintV(*v, e)
  744. case map[uint8]uint8:
  745. fastpathTV.EncMapUint8Uint8V(v, e)
  746. case *map[uint8]uint8:
  747. fastpathTV.EncMapUint8Uint8V(*v, e)
  748. case map[uint8]uint16:
  749. fastpathTV.EncMapUint8Uint16V(v, e)
  750. case *map[uint8]uint16:
  751. fastpathTV.EncMapUint8Uint16V(*v, e)
  752. case map[uint8]uint32:
  753. fastpathTV.EncMapUint8Uint32V(v, e)
  754. case *map[uint8]uint32:
  755. fastpathTV.EncMapUint8Uint32V(*v, e)
  756. case map[uint8]uint64:
  757. fastpathTV.EncMapUint8Uint64V(v, e)
  758. case *map[uint8]uint64:
  759. fastpathTV.EncMapUint8Uint64V(*v, e)
  760. case map[uint8]uintptr:
  761. fastpathTV.EncMapUint8UintptrV(v, e)
  762. case *map[uint8]uintptr:
  763. fastpathTV.EncMapUint8UintptrV(*v, e)
  764. case map[uint8]int:
  765. fastpathTV.EncMapUint8IntV(v, e)
  766. case *map[uint8]int:
  767. fastpathTV.EncMapUint8IntV(*v, e)
  768. case map[uint8]int8:
  769. fastpathTV.EncMapUint8Int8V(v, e)
  770. case *map[uint8]int8:
  771. fastpathTV.EncMapUint8Int8V(*v, e)
  772. case map[uint8]int16:
  773. fastpathTV.EncMapUint8Int16V(v, e)
  774. case *map[uint8]int16:
  775. fastpathTV.EncMapUint8Int16V(*v, e)
  776. case map[uint8]int32:
  777. fastpathTV.EncMapUint8Int32V(v, e)
  778. case *map[uint8]int32:
  779. fastpathTV.EncMapUint8Int32V(*v, e)
  780. case map[uint8]int64:
  781. fastpathTV.EncMapUint8Int64V(v, e)
  782. case *map[uint8]int64:
  783. fastpathTV.EncMapUint8Int64V(*v, e)
  784. case map[uint8]float32:
  785. fastpathTV.EncMapUint8Float32V(v, e)
  786. case *map[uint8]float32:
  787. fastpathTV.EncMapUint8Float32V(*v, e)
  788. case map[uint8]float64:
  789. fastpathTV.EncMapUint8Float64V(v, e)
  790. case *map[uint8]float64:
  791. fastpathTV.EncMapUint8Float64V(*v, e)
  792. case map[uint8]bool:
  793. fastpathTV.EncMapUint8BoolV(v, e)
  794. case *map[uint8]bool:
  795. fastpathTV.EncMapUint8BoolV(*v, e)
  796. case map[uint16]interface{}:
  797. fastpathTV.EncMapUint16IntfV(v, e)
  798. case *map[uint16]interface{}:
  799. fastpathTV.EncMapUint16IntfV(*v, e)
  800. case map[uint16]string:
  801. fastpathTV.EncMapUint16StringV(v, e)
  802. case *map[uint16]string:
  803. fastpathTV.EncMapUint16StringV(*v, e)
  804. case map[uint16]uint:
  805. fastpathTV.EncMapUint16UintV(v, e)
  806. case *map[uint16]uint:
  807. fastpathTV.EncMapUint16UintV(*v, e)
  808. case map[uint16]uint8:
  809. fastpathTV.EncMapUint16Uint8V(v, e)
  810. case *map[uint16]uint8:
  811. fastpathTV.EncMapUint16Uint8V(*v, e)
  812. case map[uint16]uint16:
  813. fastpathTV.EncMapUint16Uint16V(v, e)
  814. case *map[uint16]uint16:
  815. fastpathTV.EncMapUint16Uint16V(*v, e)
  816. case map[uint16]uint32:
  817. fastpathTV.EncMapUint16Uint32V(v, e)
  818. case *map[uint16]uint32:
  819. fastpathTV.EncMapUint16Uint32V(*v, e)
  820. case map[uint16]uint64:
  821. fastpathTV.EncMapUint16Uint64V(v, e)
  822. case *map[uint16]uint64:
  823. fastpathTV.EncMapUint16Uint64V(*v, e)
  824. case map[uint16]uintptr:
  825. fastpathTV.EncMapUint16UintptrV(v, e)
  826. case *map[uint16]uintptr:
  827. fastpathTV.EncMapUint16UintptrV(*v, e)
  828. case map[uint16]int:
  829. fastpathTV.EncMapUint16IntV(v, e)
  830. case *map[uint16]int:
  831. fastpathTV.EncMapUint16IntV(*v, e)
  832. case map[uint16]int8:
  833. fastpathTV.EncMapUint16Int8V(v, e)
  834. case *map[uint16]int8:
  835. fastpathTV.EncMapUint16Int8V(*v, e)
  836. case map[uint16]int16:
  837. fastpathTV.EncMapUint16Int16V(v, e)
  838. case *map[uint16]int16:
  839. fastpathTV.EncMapUint16Int16V(*v, e)
  840. case map[uint16]int32:
  841. fastpathTV.EncMapUint16Int32V(v, e)
  842. case *map[uint16]int32:
  843. fastpathTV.EncMapUint16Int32V(*v, e)
  844. case map[uint16]int64:
  845. fastpathTV.EncMapUint16Int64V(v, e)
  846. case *map[uint16]int64:
  847. fastpathTV.EncMapUint16Int64V(*v, e)
  848. case map[uint16]float32:
  849. fastpathTV.EncMapUint16Float32V(v, e)
  850. case *map[uint16]float32:
  851. fastpathTV.EncMapUint16Float32V(*v, e)
  852. case map[uint16]float64:
  853. fastpathTV.EncMapUint16Float64V(v, e)
  854. case *map[uint16]float64:
  855. fastpathTV.EncMapUint16Float64V(*v, e)
  856. case map[uint16]bool:
  857. fastpathTV.EncMapUint16BoolV(v, e)
  858. case *map[uint16]bool:
  859. fastpathTV.EncMapUint16BoolV(*v, e)
  860. case map[uint32]interface{}:
  861. fastpathTV.EncMapUint32IntfV(v, e)
  862. case *map[uint32]interface{}:
  863. fastpathTV.EncMapUint32IntfV(*v, e)
  864. case map[uint32]string:
  865. fastpathTV.EncMapUint32StringV(v, e)
  866. case *map[uint32]string:
  867. fastpathTV.EncMapUint32StringV(*v, e)
  868. case map[uint32]uint:
  869. fastpathTV.EncMapUint32UintV(v, e)
  870. case *map[uint32]uint:
  871. fastpathTV.EncMapUint32UintV(*v, e)
  872. case map[uint32]uint8:
  873. fastpathTV.EncMapUint32Uint8V(v, e)
  874. case *map[uint32]uint8:
  875. fastpathTV.EncMapUint32Uint8V(*v, e)
  876. case map[uint32]uint16:
  877. fastpathTV.EncMapUint32Uint16V(v, e)
  878. case *map[uint32]uint16:
  879. fastpathTV.EncMapUint32Uint16V(*v, e)
  880. case map[uint32]uint32:
  881. fastpathTV.EncMapUint32Uint32V(v, e)
  882. case *map[uint32]uint32:
  883. fastpathTV.EncMapUint32Uint32V(*v, e)
  884. case map[uint32]uint64:
  885. fastpathTV.EncMapUint32Uint64V(v, e)
  886. case *map[uint32]uint64:
  887. fastpathTV.EncMapUint32Uint64V(*v, e)
  888. case map[uint32]uintptr:
  889. fastpathTV.EncMapUint32UintptrV(v, e)
  890. case *map[uint32]uintptr:
  891. fastpathTV.EncMapUint32UintptrV(*v, e)
  892. case map[uint32]int:
  893. fastpathTV.EncMapUint32IntV(v, e)
  894. case *map[uint32]int:
  895. fastpathTV.EncMapUint32IntV(*v, e)
  896. case map[uint32]int8:
  897. fastpathTV.EncMapUint32Int8V(v, e)
  898. case *map[uint32]int8:
  899. fastpathTV.EncMapUint32Int8V(*v, e)
  900. case map[uint32]int16:
  901. fastpathTV.EncMapUint32Int16V(v, e)
  902. case *map[uint32]int16:
  903. fastpathTV.EncMapUint32Int16V(*v, e)
  904. case map[uint32]int32:
  905. fastpathTV.EncMapUint32Int32V(v, e)
  906. case *map[uint32]int32:
  907. fastpathTV.EncMapUint32Int32V(*v, e)
  908. case map[uint32]int64:
  909. fastpathTV.EncMapUint32Int64V(v, e)
  910. case *map[uint32]int64:
  911. fastpathTV.EncMapUint32Int64V(*v, e)
  912. case map[uint32]float32:
  913. fastpathTV.EncMapUint32Float32V(v, e)
  914. case *map[uint32]float32:
  915. fastpathTV.EncMapUint32Float32V(*v, e)
  916. case map[uint32]float64:
  917. fastpathTV.EncMapUint32Float64V(v, e)
  918. case *map[uint32]float64:
  919. fastpathTV.EncMapUint32Float64V(*v, e)
  920. case map[uint32]bool:
  921. fastpathTV.EncMapUint32BoolV(v, e)
  922. case *map[uint32]bool:
  923. fastpathTV.EncMapUint32BoolV(*v, e)
  924. case map[uint64]interface{}:
  925. fastpathTV.EncMapUint64IntfV(v, e)
  926. case *map[uint64]interface{}:
  927. fastpathTV.EncMapUint64IntfV(*v, e)
  928. case map[uint64]string:
  929. fastpathTV.EncMapUint64StringV(v, e)
  930. case *map[uint64]string:
  931. fastpathTV.EncMapUint64StringV(*v, e)
  932. case map[uint64]uint:
  933. fastpathTV.EncMapUint64UintV(v, e)
  934. case *map[uint64]uint:
  935. fastpathTV.EncMapUint64UintV(*v, e)
  936. case map[uint64]uint8:
  937. fastpathTV.EncMapUint64Uint8V(v, e)
  938. case *map[uint64]uint8:
  939. fastpathTV.EncMapUint64Uint8V(*v, e)
  940. case map[uint64]uint16:
  941. fastpathTV.EncMapUint64Uint16V(v, e)
  942. case *map[uint64]uint16:
  943. fastpathTV.EncMapUint64Uint16V(*v, e)
  944. case map[uint64]uint32:
  945. fastpathTV.EncMapUint64Uint32V(v, e)
  946. case *map[uint64]uint32:
  947. fastpathTV.EncMapUint64Uint32V(*v, e)
  948. case map[uint64]uint64:
  949. fastpathTV.EncMapUint64Uint64V(v, e)
  950. case *map[uint64]uint64:
  951. fastpathTV.EncMapUint64Uint64V(*v, e)
  952. case map[uint64]uintptr:
  953. fastpathTV.EncMapUint64UintptrV(v, e)
  954. case *map[uint64]uintptr:
  955. fastpathTV.EncMapUint64UintptrV(*v, e)
  956. case map[uint64]int:
  957. fastpathTV.EncMapUint64IntV(v, e)
  958. case *map[uint64]int:
  959. fastpathTV.EncMapUint64IntV(*v, e)
  960. case map[uint64]int8:
  961. fastpathTV.EncMapUint64Int8V(v, e)
  962. case *map[uint64]int8:
  963. fastpathTV.EncMapUint64Int8V(*v, e)
  964. case map[uint64]int16:
  965. fastpathTV.EncMapUint64Int16V(v, e)
  966. case *map[uint64]int16:
  967. fastpathTV.EncMapUint64Int16V(*v, e)
  968. case map[uint64]int32:
  969. fastpathTV.EncMapUint64Int32V(v, e)
  970. case *map[uint64]int32:
  971. fastpathTV.EncMapUint64Int32V(*v, e)
  972. case map[uint64]int64:
  973. fastpathTV.EncMapUint64Int64V(v, e)
  974. case *map[uint64]int64:
  975. fastpathTV.EncMapUint64Int64V(*v, e)
  976. case map[uint64]float32:
  977. fastpathTV.EncMapUint64Float32V(v, e)
  978. case *map[uint64]float32:
  979. fastpathTV.EncMapUint64Float32V(*v, e)
  980. case map[uint64]float64:
  981. fastpathTV.EncMapUint64Float64V(v, e)
  982. case *map[uint64]float64:
  983. fastpathTV.EncMapUint64Float64V(*v, e)
  984. case map[uint64]bool:
  985. fastpathTV.EncMapUint64BoolV(v, e)
  986. case *map[uint64]bool:
  987. fastpathTV.EncMapUint64BoolV(*v, e)
  988. case map[uintptr]interface{}:
  989. fastpathTV.EncMapUintptrIntfV(v, e)
  990. case *map[uintptr]interface{}:
  991. fastpathTV.EncMapUintptrIntfV(*v, e)
  992. case map[uintptr]string:
  993. fastpathTV.EncMapUintptrStringV(v, e)
  994. case *map[uintptr]string:
  995. fastpathTV.EncMapUintptrStringV(*v, e)
  996. case map[uintptr]uint:
  997. fastpathTV.EncMapUintptrUintV(v, e)
  998. case *map[uintptr]uint:
  999. fastpathTV.EncMapUintptrUintV(*v, e)
  1000. case map[uintptr]uint8:
  1001. fastpathTV.EncMapUintptrUint8V(v, e)
  1002. case *map[uintptr]uint8:
  1003. fastpathTV.EncMapUintptrUint8V(*v, e)
  1004. case map[uintptr]uint16:
  1005. fastpathTV.EncMapUintptrUint16V(v, e)
  1006. case *map[uintptr]uint16:
  1007. fastpathTV.EncMapUintptrUint16V(*v, e)
  1008. case map[uintptr]uint32:
  1009. fastpathTV.EncMapUintptrUint32V(v, e)
  1010. case *map[uintptr]uint32:
  1011. fastpathTV.EncMapUintptrUint32V(*v, e)
  1012. case map[uintptr]uint64:
  1013. fastpathTV.EncMapUintptrUint64V(v, e)
  1014. case *map[uintptr]uint64:
  1015. fastpathTV.EncMapUintptrUint64V(*v, e)
  1016. case map[uintptr]uintptr:
  1017. fastpathTV.EncMapUintptrUintptrV(v, e)
  1018. case *map[uintptr]uintptr:
  1019. fastpathTV.EncMapUintptrUintptrV(*v, e)
  1020. case map[uintptr]int:
  1021. fastpathTV.EncMapUintptrIntV(v, e)
  1022. case *map[uintptr]int:
  1023. fastpathTV.EncMapUintptrIntV(*v, e)
  1024. case map[uintptr]int8:
  1025. fastpathTV.EncMapUintptrInt8V(v, e)
  1026. case *map[uintptr]int8:
  1027. fastpathTV.EncMapUintptrInt8V(*v, e)
  1028. case map[uintptr]int16:
  1029. fastpathTV.EncMapUintptrInt16V(v, e)
  1030. case *map[uintptr]int16:
  1031. fastpathTV.EncMapUintptrInt16V(*v, e)
  1032. case map[uintptr]int32:
  1033. fastpathTV.EncMapUintptrInt32V(v, e)
  1034. case *map[uintptr]int32:
  1035. fastpathTV.EncMapUintptrInt32V(*v, e)
  1036. case map[uintptr]int64:
  1037. fastpathTV.EncMapUintptrInt64V(v, e)
  1038. case *map[uintptr]int64:
  1039. fastpathTV.EncMapUintptrInt64V(*v, e)
  1040. case map[uintptr]float32:
  1041. fastpathTV.EncMapUintptrFloat32V(v, e)
  1042. case *map[uintptr]float32:
  1043. fastpathTV.EncMapUintptrFloat32V(*v, e)
  1044. case map[uintptr]float64:
  1045. fastpathTV.EncMapUintptrFloat64V(v, e)
  1046. case *map[uintptr]float64:
  1047. fastpathTV.EncMapUintptrFloat64V(*v, e)
  1048. case map[uintptr]bool:
  1049. fastpathTV.EncMapUintptrBoolV(v, e)
  1050. case *map[uintptr]bool:
  1051. fastpathTV.EncMapUintptrBoolV(*v, e)
  1052. case map[int]interface{}:
  1053. fastpathTV.EncMapIntIntfV(v, e)
  1054. case *map[int]interface{}:
  1055. fastpathTV.EncMapIntIntfV(*v, e)
  1056. case map[int]string:
  1057. fastpathTV.EncMapIntStringV(v, e)
  1058. case *map[int]string:
  1059. fastpathTV.EncMapIntStringV(*v, e)
  1060. case map[int]uint:
  1061. fastpathTV.EncMapIntUintV(v, e)
  1062. case *map[int]uint:
  1063. fastpathTV.EncMapIntUintV(*v, e)
  1064. case map[int]uint8:
  1065. fastpathTV.EncMapIntUint8V(v, e)
  1066. case *map[int]uint8:
  1067. fastpathTV.EncMapIntUint8V(*v, e)
  1068. case map[int]uint16:
  1069. fastpathTV.EncMapIntUint16V(v, e)
  1070. case *map[int]uint16:
  1071. fastpathTV.EncMapIntUint16V(*v, e)
  1072. case map[int]uint32:
  1073. fastpathTV.EncMapIntUint32V(v, e)
  1074. case *map[int]uint32:
  1075. fastpathTV.EncMapIntUint32V(*v, e)
  1076. case map[int]uint64:
  1077. fastpathTV.EncMapIntUint64V(v, e)
  1078. case *map[int]uint64:
  1079. fastpathTV.EncMapIntUint64V(*v, e)
  1080. case map[int]uintptr:
  1081. fastpathTV.EncMapIntUintptrV(v, e)
  1082. case *map[int]uintptr:
  1083. fastpathTV.EncMapIntUintptrV(*v, e)
  1084. case map[int]int:
  1085. fastpathTV.EncMapIntIntV(v, e)
  1086. case *map[int]int:
  1087. fastpathTV.EncMapIntIntV(*v, e)
  1088. case map[int]int8:
  1089. fastpathTV.EncMapIntInt8V(v, e)
  1090. case *map[int]int8:
  1091. fastpathTV.EncMapIntInt8V(*v, e)
  1092. case map[int]int16:
  1093. fastpathTV.EncMapIntInt16V(v, e)
  1094. case *map[int]int16:
  1095. fastpathTV.EncMapIntInt16V(*v, e)
  1096. case map[int]int32:
  1097. fastpathTV.EncMapIntInt32V(v, e)
  1098. case *map[int]int32:
  1099. fastpathTV.EncMapIntInt32V(*v, e)
  1100. case map[int]int64:
  1101. fastpathTV.EncMapIntInt64V(v, e)
  1102. case *map[int]int64:
  1103. fastpathTV.EncMapIntInt64V(*v, e)
  1104. case map[int]float32:
  1105. fastpathTV.EncMapIntFloat32V(v, e)
  1106. case *map[int]float32:
  1107. fastpathTV.EncMapIntFloat32V(*v, e)
  1108. case map[int]float64:
  1109. fastpathTV.EncMapIntFloat64V(v, e)
  1110. case *map[int]float64:
  1111. fastpathTV.EncMapIntFloat64V(*v, e)
  1112. case map[int]bool:
  1113. fastpathTV.EncMapIntBoolV(v, e)
  1114. case *map[int]bool:
  1115. fastpathTV.EncMapIntBoolV(*v, e)
  1116. case map[int8]interface{}:
  1117. fastpathTV.EncMapInt8IntfV(v, e)
  1118. case *map[int8]interface{}:
  1119. fastpathTV.EncMapInt8IntfV(*v, e)
  1120. case map[int8]string:
  1121. fastpathTV.EncMapInt8StringV(v, e)
  1122. case *map[int8]string:
  1123. fastpathTV.EncMapInt8StringV(*v, e)
  1124. case map[int8]uint:
  1125. fastpathTV.EncMapInt8UintV(v, e)
  1126. case *map[int8]uint:
  1127. fastpathTV.EncMapInt8UintV(*v, e)
  1128. case map[int8]uint8:
  1129. fastpathTV.EncMapInt8Uint8V(v, e)
  1130. case *map[int8]uint8:
  1131. fastpathTV.EncMapInt8Uint8V(*v, e)
  1132. case map[int8]uint16:
  1133. fastpathTV.EncMapInt8Uint16V(v, e)
  1134. case *map[int8]uint16:
  1135. fastpathTV.EncMapInt8Uint16V(*v, e)
  1136. case map[int8]uint32:
  1137. fastpathTV.EncMapInt8Uint32V(v, e)
  1138. case *map[int8]uint32:
  1139. fastpathTV.EncMapInt8Uint32V(*v, e)
  1140. case map[int8]uint64:
  1141. fastpathTV.EncMapInt8Uint64V(v, e)
  1142. case *map[int8]uint64:
  1143. fastpathTV.EncMapInt8Uint64V(*v, e)
  1144. case map[int8]uintptr:
  1145. fastpathTV.EncMapInt8UintptrV(v, e)
  1146. case *map[int8]uintptr:
  1147. fastpathTV.EncMapInt8UintptrV(*v, e)
  1148. case map[int8]int:
  1149. fastpathTV.EncMapInt8IntV(v, e)
  1150. case *map[int8]int:
  1151. fastpathTV.EncMapInt8IntV(*v, e)
  1152. case map[int8]int8:
  1153. fastpathTV.EncMapInt8Int8V(v, e)
  1154. case *map[int8]int8:
  1155. fastpathTV.EncMapInt8Int8V(*v, e)
  1156. case map[int8]int16:
  1157. fastpathTV.EncMapInt8Int16V(v, e)
  1158. case *map[int8]int16:
  1159. fastpathTV.EncMapInt8Int16V(*v, e)
  1160. case map[int8]int32:
  1161. fastpathTV.EncMapInt8Int32V(v, e)
  1162. case *map[int8]int32:
  1163. fastpathTV.EncMapInt8Int32V(*v, e)
  1164. case map[int8]int64:
  1165. fastpathTV.EncMapInt8Int64V(v, e)
  1166. case *map[int8]int64:
  1167. fastpathTV.EncMapInt8Int64V(*v, e)
  1168. case map[int8]float32:
  1169. fastpathTV.EncMapInt8Float32V(v, e)
  1170. case *map[int8]float32:
  1171. fastpathTV.EncMapInt8Float32V(*v, e)
  1172. case map[int8]float64:
  1173. fastpathTV.EncMapInt8Float64V(v, e)
  1174. case *map[int8]float64:
  1175. fastpathTV.EncMapInt8Float64V(*v, e)
  1176. case map[int8]bool:
  1177. fastpathTV.EncMapInt8BoolV(v, e)
  1178. case *map[int8]bool:
  1179. fastpathTV.EncMapInt8BoolV(*v, e)
  1180. case map[int16]interface{}:
  1181. fastpathTV.EncMapInt16IntfV(v, e)
  1182. case *map[int16]interface{}:
  1183. fastpathTV.EncMapInt16IntfV(*v, e)
  1184. case map[int16]string:
  1185. fastpathTV.EncMapInt16StringV(v, e)
  1186. case *map[int16]string:
  1187. fastpathTV.EncMapInt16StringV(*v, e)
  1188. case map[int16]uint:
  1189. fastpathTV.EncMapInt16UintV(v, e)
  1190. case *map[int16]uint:
  1191. fastpathTV.EncMapInt16UintV(*v, e)
  1192. case map[int16]uint8:
  1193. fastpathTV.EncMapInt16Uint8V(v, e)
  1194. case *map[int16]uint8:
  1195. fastpathTV.EncMapInt16Uint8V(*v, e)
  1196. case map[int16]uint16:
  1197. fastpathTV.EncMapInt16Uint16V(v, e)
  1198. case *map[int16]uint16:
  1199. fastpathTV.EncMapInt16Uint16V(*v, e)
  1200. case map[int16]uint32:
  1201. fastpathTV.EncMapInt16Uint32V(v, e)
  1202. case *map[int16]uint32:
  1203. fastpathTV.EncMapInt16Uint32V(*v, e)
  1204. case map[int16]uint64:
  1205. fastpathTV.EncMapInt16Uint64V(v, e)
  1206. case *map[int16]uint64:
  1207. fastpathTV.EncMapInt16Uint64V(*v, e)
  1208. case map[int16]uintptr:
  1209. fastpathTV.EncMapInt16UintptrV(v, e)
  1210. case *map[int16]uintptr:
  1211. fastpathTV.EncMapInt16UintptrV(*v, e)
  1212. case map[int16]int:
  1213. fastpathTV.EncMapInt16IntV(v, e)
  1214. case *map[int16]int:
  1215. fastpathTV.EncMapInt16IntV(*v, e)
  1216. case map[int16]int8:
  1217. fastpathTV.EncMapInt16Int8V(v, e)
  1218. case *map[int16]int8:
  1219. fastpathTV.EncMapInt16Int8V(*v, e)
  1220. case map[int16]int16:
  1221. fastpathTV.EncMapInt16Int16V(v, e)
  1222. case *map[int16]int16:
  1223. fastpathTV.EncMapInt16Int16V(*v, e)
  1224. case map[int16]int32:
  1225. fastpathTV.EncMapInt16Int32V(v, e)
  1226. case *map[int16]int32:
  1227. fastpathTV.EncMapInt16Int32V(*v, e)
  1228. case map[int16]int64:
  1229. fastpathTV.EncMapInt16Int64V(v, e)
  1230. case *map[int16]int64:
  1231. fastpathTV.EncMapInt16Int64V(*v, e)
  1232. case map[int16]float32:
  1233. fastpathTV.EncMapInt16Float32V(v, e)
  1234. case *map[int16]float32:
  1235. fastpathTV.EncMapInt16Float32V(*v, e)
  1236. case map[int16]float64:
  1237. fastpathTV.EncMapInt16Float64V(v, e)
  1238. case *map[int16]float64:
  1239. fastpathTV.EncMapInt16Float64V(*v, e)
  1240. case map[int16]bool:
  1241. fastpathTV.EncMapInt16BoolV(v, e)
  1242. case *map[int16]bool:
  1243. fastpathTV.EncMapInt16BoolV(*v, e)
  1244. case map[int32]interface{}:
  1245. fastpathTV.EncMapInt32IntfV(v, e)
  1246. case *map[int32]interface{}:
  1247. fastpathTV.EncMapInt32IntfV(*v, e)
  1248. case map[int32]string:
  1249. fastpathTV.EncMapInt32StringV(v, e)
  1250. case *map[int32]string:
  1251. fastpathTV.EncMapInt32StringV(*v, e)
  1252. case map[int32]uint:
  1253. fastpathTV.EncMapInt32UintV(v, e)
  1254. case *map[int32]uint:
  1255. fastpathTV.EncMapInt32UintV(*v, e)
  1256. case map[int32]uint8:
  1257. fastpathTV.EncMapInt32Uint8V(v, e)
  1258. case *map[int32]uint8:
  1259. fastpathTV.EncMapInt32Uint8V(*v, e)
  1260. case map[int32]uint16:
  1261. fastpathTV.EncMapInt32Uint16V(v, e)
  1262. case *map[int32]uint16:
  1263. fastpathTV.EncMapInt32Uint16V(*v, e)
  1264. case map[int32]uint32:
  1265. fastpathTV.EncMapInt32Uint32V(v, e)
  1266. case *map[int32]uint32:
  1267. fastpathTV.EncMapInt32Uint32V(*v, e)
  1268. case map[int32]uint64:
  1269. fastpathTV.EncMapInt32Uint64V(v, e)
  1270. case *map[int32]uint64:
  1271. fastpathTV.EncMapInt32Uint64V(*v, e)
  1272. case map[int32]uintptr:
  1273. fastpathTV.EncMapInt32UintptrV(v, e)
  1274. case *map[int32]uintptr:
  1275. fastpathTV.EncMapInt32UintptrV(*v, e)
  1276. case map[int32]int:
  1277. fastpathTV.EncMapInt32IntV(v, e)
  1278. case *map[int32]int:
  1279. fastpathTV.EncMapInt32IntV(*v, e)
  1280. case map[int32]int8:
  1281. fastpathTV.EncMapInt32Int8V(v, e)
  1282. case *map[int32]int8:
  1283. fastpathTV.EncMapInt32Int8V(*v, e)
  1284. case map[int32]int16:
  1285. fastpathTV.EncMapInt32Int16V(v, e)
  1286. case *map[int32]int16:
  1287. fastpathTV.EncMapInt32Int16V(*v, e)
  1288. case map[int32]int32:
  1289. fastpathTV.EncMapInt32Int32V(v, e)
  1290. case *map[int32]int32:
  1291. fastpathTV.EncMapInt32Int32V(*v, e)
  1292. case map[int32]int64:
  1293. fastpathTV.EncMapInt32Int64V(v, e)
  1294. case *map[int32]int64:
  1295. fastpathTV.EncMapInt32Int64V(*v, e)
  1296. case map[int32]float32:
  1297. fastpathTV.EncMapInt32Float32V(v, e)
  1298. case *map[int32]float32:
  1299. fastpathTV.EncMapInt32Float32V(*v, e)
  1300. case map[int32]float64:
  1301. fastpathTV.EncMapInt32Float64V(v, e)
  1302. case *map[int32]float64:
  1303. fastpathTV.EncMapInt32Float64V(*v, e)
  1304. case map[int32]bool:
  1305. fastpathTV.EncMapInt32BoolV(v, e)
  1306. case *map[int32]bool:
  1307. fastpathTV.EncMapInt32BoolV(*v, e)
  1308. case map[int64]interface{}:
  1309. fastpathTV.EncMapInt64IntfV(v, e)
  1310. case *map[int64]interface{}:
  1311. fastpathTV.EncMapInt64IntfV(*v, e)
  1312. case map[int64]string:
  1313. fastpathTV.EncMapInt64StringV(v, e)
  1314. case *map[int64]string:
  1315. fastpathTV.EncMapInt64StringV(*v, e)
  1316. case map[int64]uint:
  1317. fastpathTV.EncMapInt64UintV(v, e)
  1318. case *map[int64]uint:
  1319. fastpathTV.EncMapInt64UintV(*v, e)
  1320. case map[int64]uint8:
  1321. fastpathTV.EncMapInt64Uint8V(v, e)
  1322. case *map[int64]uint8:
  1323. fastpathTV.EncMapInt64Uint8V(*v, e)
  1324. case map[int64]uint16:
  1325. fastpathTV.EncMapInt64Uint16V(v, e)
  1326. case *map[int64]uint16:
  1327. fastpathTV.EncMapInt64Uint16V(*v, e)
  1328. case map[int64]uint32:
  1329. fastpathTV.EncMapInt64Uint32V(v, e)
  1330. case *map[int64]uint32:
  1331. fastpathTV.EncMapInt64Uint32V(*v, e)
  1332. case map[int64]uint64:
  1333. fastpathTV.EncMapInt64Uint64V(v, e)
  1334. case *map[int64]uint64:
  1335. fastpathTV.EncMapInt64Uint64V(*v, e)
  1336. case map[int64]uintptr:
  1337. fastpathTV.EncMapInt64UintptrV(v, e)
  1338. case *map[int64]uintptr:
  1339. fastpathTV.EncMapInt64UintptrV(*v, e)
  1340. case map[int64]int:
  1341. fastpathTV.EncMapInt64IntV(v, e)
  1342. case *map[int64]int:
  1343. fastpathTV.EncMapInt64IntV(*v, e)
  1344. case map[int64]int8:
  1345. fastpathTV.EncMapInt64Int8V(v, e)
  1346. case *map[int64]int8:
  1347. fastpathTV.EncMapInt64Int8V(*v, e)
  1348. case map[int64]int16:
  1349. fastpathTV.EncMapInt64Int16V(v, e)
  1350. case *map[int64]int16:
  1351. fastpathTV.EncMapInt64Int16V(*v, e)
  1352. case map[int64]int32:
  1353. fastpathTV.EncMapInt64Int32V(v, e)
  1354. case *map[int64]int32:
  1355. fastpathTV.EncMapInt64Int32V(*v, e)
  1356. case map[int64]int64:
  1357. fastpathTV.EncMapInt64Int64V(v, e)
  1358. case *map[int64]int64:
  1359. fastpathTV.EncMapInt64Int64V(*v, e)
  1360. case map[int64]float32:
  1361. fastpathTV.EncMapInt64Float32V(v, e)
  1362. case *map[int64]float32:
  1363. fastpathTV.EncMapInt64Float32V(*v, e)
  1364. case map[int64]float64:
  1365. fastpathTV.EncMapInt64Float64V(v, e)
  1366. case *map[int64]float64:
  1367. fastpathTV.EncMapInt64Float64V(*v, e)
  1368. case map[int64]bool:
  1369. fastpathTV.EncMapInt64BoolV(v, e)
  1370. case *map[int64]bool:
  1371. fastpathTV.EncMapInt64BoolV(*v, e)
  1372. case map[bool]interface{}:
  1373. fastpathTV.EncMapBoolIntfV(v, e)
  1374. case *map[bool]interface{}:
  1375. fastpathTV.EncMapBoolIntfV(*v, e)
  1376. case map[bool]string:
  1377. fastpathTV.EncMapBoolStringV(v, e)
  1378. case *map[bool]string:
  1379. fastpathTV.EncMapBoolStringV(*v, e)
  1380. case map[bool]uint:
  1381. fastpathTV.EncMapBoolUintV(v, e)
  1382. case *map[bool]uint:
  1383. fastpathTV.EncMapBoolUintV(*v, e)
  1384. case map[bool]uint8:
  1385. fastpathTV.EncMapBoolUint8V(v, e)
  1386. case *map[bool]uint8:
  1387. fastpathTV.EncMapBoolUint8V(*v, e)
  1388. case map[bool]uint16:
  1389. fastpathTV.EncMapBoolUint16V(v, e)
  1390. case *map[bool]uint16:
  1391. fastpathTV.EncMapBoolUint16V(*v, e)
  1392. case map[bool]uint32:
  1393. fastpathTV.EncMapBoolUint32V(v, e)
  1394. case *map[bool]uint32:
  1395. fastpathTV.EncMapBoolUint32V(*v, e)
  1396. case map[bool]uint64:
  1397. fastpathTV.EncMapBoolUint64V(v, e)
  1398. case *map[bool]uint64:
  1399. fastpathTV.EncMapBoolUint64V(*v, e)
  1400. case map[bool]uintptr:
  1401. fastpathTV.EncMapBoolUintptrV(v, e)
  1402. case *map[bool]uintptr:
  1403. fastpathTV.EncMapBoolUintptrV(*v, e)
  1404. case map[bool]int:
  1405. fastpathTV.EncMapBoolIntV(v, e)
  1406. case *map[bool]int:
  1407. fastpathTV.EncMapBoolIntV(*v, e)
  1408. case map[bool]int8:
  1409. fastpathTV.EncMapBoolInt8V(v, e)
  1410. case *map[bool]int8:
  1411. fastpathTV.EncMapBoolInt8V(*v, e)
  1412. case map[bool]int16:
  1413. fastpathTV.EncMapBoolInt16V(v, e)
  1414. case *map[bool]int16:
  1415. fastpathTV.EncMapBoolInt16V(*v, e)
  1416. case map[bool]int32:
  1417. fastpathTV.EncMapBoolInt32V(v, e)
  1418. case *map[bool]int32:
  1419. fastpathTV.EncMapBoolInt32V(*v, e)
  1420. case map[bool]int64:
  1421. fastpathTV.EncMapBoolInt64V(v, e)
  1422. case *map[bool]int64:
  1423. fastpathTV.EncMapBoolInt64V(*v, e)
  1424. case map[bool]float32:
  1425. fastpathTV.EncMapBoolFloat32V(v, e)
  1426. case *map[bool]float32:
  1427. fastpathTV.EncMapBoolFloat32V(*v, e)
  1428. case map[bool]float64:
  1429. fastpathTV.EncMapBoolFloat64V(v, e)
  1430. case *map[bool]float64:
  1431. fastpathTV.EncMapBoolFloat64V(*v, e)
  1432. case map[bool]bool:
  1433. fastpathTV.EncMapBoolBoolV(v, e)
  1434. case *map[bool]bool:
  1435. fastpathTV.EncMapBoolBoolV(*v, e)
  1436. default:
  1437. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  1438. return false
  1439. }
  1440. return true
  1441. }
  1442. // -- -- fast path functions
  1443. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  1444. if f.ti.mbs {
  1445. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  1446. } else {
  1447. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  1448. }
  1449. }
  1450. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  1451. if v == nil {
  1452. e.e.EncodeNil()
  1453. return
  1454. }
  1455. ee, esep := e.e, e.hh.hasElemSeparators()
  1456. ee.WriteArrayStart(len(v))
  1457. if esep {
  1458. for _, v2 := range v {
  1459. ee.WriteArrayElem()
  1460. e.encode(v2)
  1461. }
  1462. } else {
  1463. for _, v2 := range v {
  1464. e.encode(v2)
  1465. }
  1466. }
  1467. ee.WriteArrayEnd()
  1468. }
  1469. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1470. ee, esep := e.e, e.hh.hasElemSeparators()
  1471. if len(v)%2 == 1 {
  1472. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1473. return
  1474. }
  1475. ee.WriteMapStart(len(v) / 2)
  1476. if esep {
  1477. for j, v2 := range v {
  1478. if j%2 == 0 {
  1479. ee.WriteMapElemKey()
  1480. } else {
  1481. ee.WriteMapElemValue()
  1482. }
  1483. e.encode(v2)
  1484. }
  1485. } else {
  1486. for _, v2 := range v {
  1487. e.encode(v2)
  1488. }
  1489. }
  1490. ee.WriteMapEnd()
  1491. }
  1492. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1493. if f.ti.mbs {
  1494. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1495. } else {
  1496. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1497. }
  1498. }
  1499. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1500. if v == nil {
  1501. e.e.EncodeNil()
  1502. return
  1503. }
  1504. ee, esep := e.e, e.hh.hasElemSeparators()
  1505. ee.WriteArrayStart(len(v))
  1506. if esep {
  1507. for _, v2 := range v {
  1508. ee.WriteArrayElem()
  1509. ee.EncodeStringEnc(cUTF8, v2)
  1510. }
  1511. } else {
  1512. for _, v2 := range v {
  1513. ee.EncodeStringEnc(cUTF8, v2)
  1514. }
  1515. }
  1516. ee.WriteArrayEnd()
  1517. }
  1518. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1519. ee, esep := e.e, e.hh.hasElemSeparators()
  1520. if len(v)%2 == 1 {
  1521. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1522. return
  1523. }
  1524. ee.WriteMapStart(len(v) / 2)
  1525. if esep {
  1526. for j, v2 := range v {
  1527. if j%2 == 0 {
  1528. ee.WriteMapElemKey()
  1529. } else {
  1530. ee.WriteMapElemValue()
  1531. }
  1532. ee.EncodeStringEnc(cUTF8, v2)
  1533. }
  1534. } else {
  1535. for _, v2 := range v {
  1536. ee.EncodeStringEnc(cUTF8, v2)
  1537. }
  1538. }
  1539. ee.WriteMapEnd()
  1540. }
  1541. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1542. if f.ti.mbs {
  1543. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1544. } else {
  1545. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1546. }
  1547. }
  1548. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1549. if v == nil {
  1550. e.e.EncodeNil()
  1551. return
  1552. }
  1553. ee, esep := e.e, e.hh.hasElemSeparators()
  1554. ee.WriteArrayStart(len(v))
  1555. if esep {
  1556. for _, v2 := range v {
  1557. ee.WriteArrayElem()
  1558. ee.EncodeFloat32(v2)
  1559. }
  1560. } else {
  1561. for _, v2 := range v {
  1562. ee.EncodeFloat32(v2)
  1563. }
  1564. }
  1565. ee.WriteArrayEnd()
  1566. }
  1567. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1568. ee, esep := e.e, e.hh.hasElemSeparators()
  1569. if len(v)%2 == 1 {
  1570. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1571. return
  1572. }
  1573. ee.WriteMapStart(len(v) / 2)
  1574. if esep {
  1575. for j, v2 := range v {
  1576. if j%2 == 0 {
  1577. ee.WriteMapElemKey()
  1578. } else {
  1579. ee.WriteMapElemValue()
  1580. }
  1581. ee.EncodeFloat32(v2)
  1582. }
  1583. } else {
  1584. for _, v2 := range v {
  1585. ee.EncodeFloat32(v2)
  1586. }
  1587. }
  1588. ee.WriteMapEnd()
  1589. }
  1590. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1591. if f.ti.mbs {
  1592. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1593. } else {
  1594. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1595. }
  1596. }
  1597. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1598. if v == nil {
  1599. e.e.EncodeNil()
  1600. return
  1601. }
  1602. ee, esep := e.e, e.hh.hasElemSeparators()
  1603. ee.WriteArrayStart(len(v))
  1604. if esep {
  1605. for _, v2 := range v {
  1606. ee.WriteArrayElem()
  1607. ee.EncodeFloat64(v2)
  1608. }
  1609. } else {
  1610. for _, v2 := range v {
  1611. ee.EncodeFloat64(v2)
  1612. }
  1613. }
  1614. ee.WriteArrayEnd()
  1615. }
  1616. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1617. ee, esep := e.e, e.hh.hasElemSeparators()
  1618. if len(v)%2 == 1 {
  1619. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1620. return
  1621. }
  1622. ee.WriteMapStart(len(v) / 2)
  1623. if esep {
  1624. for j, v2 := range v {
  1625. if j%2 == 0 {
  1626. ee.WriteMapElemKey()
  1627. } else {
  1628. ee.WriteMapElemValue()
  1629. }
  1630. ee.EncodeFloat64(v2)
  1631. }
  1632. } else {
  1633. for _, v2 := range v {
  1634. ee.EncodeFloat64(v2)
  1635. }
  1636. }
  1637. ee.WriteMapEnd()
  1638. }
  1639. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1640. if f.ti.mbs {
  1641. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1642. } else {
  1643. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1644. }
  1645. }
  1646. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1647. if v == nil {
  1648. e.e.EncodeNil()
  1649. return
  1650. }
  1651. ee, esep := e.e, e.hh.hasElemSeparators()
  1652. ee.WriteArrayStart(len(v))
  1653. if esep {
  1654. for _, v2 := range v {
  1655. ee.WriteArrayElem()
  1656. ee.EncodeUint(uint64(v2))
  1657. }
  1658. } else {
  1659. for _, v2 := range v {
  1660. ee.EncodeUint(uint64(v2))
  1661. }
  1662. }
  1663. ee.WriteArrayEnd()
  1664. }
  1665. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1666. ee, esep := e.e, e.hh.hasElemSeparators()
  1667. if len(v)%2 == 1 {
  1668. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1669. return
  1670. }
  1671. ee.WriteMapStart(len(v) / 2)
  1672. if esep {
  1673. for j, v2 := range v {
  1674. if j%2 == 0 {
  1675. ee.WriteMapElemKey()
  1676. } else {
  1677. ee.WriteMapElemValue()
  1678. }
  1679. ee.EncodeUint(uint64(v2))
  1680. }
  1681. } else {
  1682. for _, v2 := range v {
  1683. ee.EncodeUint(uint64(v2))
  1684. }
  1685. }
  1686. ee.WriteMapEnd()
  1687. }
  1688. func (e *Encoder) fastpathEncSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  1689. if f.ti.mbs {
  1690. fastpathTV.EncAsMapSliceUint8V(rv2i(rv).([]uint8), e)
  1691. } else {
  1692. fastpathTV.EncSliceUint8V(rv2i(rv).([]uint8), e)
  1693. }
  1694. }
  1695. func (_ fastpathT) EncSliceUint8V(v []uint8, e *Encoder) {
  1696. if v == nil {
  1697. e.e.EncodeNil()
  1698. return
  1699. }
  1700. ee, esep := e.e, e.hh.hasElemSeparators()
  1701. ee.WriteArrayStart(len(v))
  1702. if esep {
  1703. for _, v2 := range v {
  1704. ee.WriteArrayElem()
  1705. ee.EncodeUint(uint64(v2))
  1706. }
  1707. } else {
  1708. for _, v2 := range v {
  1709. ee.EncodeUint(uint64(v2))
  1710. }
  1711. }
  1712. ee.WriteArrayEnd()
  1713. }
  1714. func (_ fastpathT) EncAsMapSliceUint8V(v []uint8, e *Encoder) {
  1715. ee, esep := e.e, e.hh.hasElemSeparators()
  1716. if len(v)%2 == 1 {
  1717. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1718. return
  1719. }
  1720. ee.WriteMapStart(len(v) / 2)
  1721. if esep {
  1722. for j, v2 := range v {
  1723. if j%2 == 0 {
  1724. ee.WriteMapElemKey()
  1725. } else {
  1726. ee.WriteMapElemValue()
  1727. }
  1728. ee.EncodeUint(uint64(v2))
  1729. }
  1730. } else {
  1731. for _, v2 := range v {
  1732. ee.EncodeUint(uint64(v2))
  1733. }
  1734. }
  1735. ee.WriteMapEnd()
  1736. }
  1737. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1738. if f.ti.mbs {
  1739. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1740. } else {
  1741. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1742. }
  1743. }
  1744. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1745. if v == nil {
  1746. e.e.EncodeNil()
  1747. return
  1748. }
  1749. ee, esep := e.e, e.hh.hasElemSeparators()
  1750. ee.WriteArrayStart(len(v))
  1751. if esep {
  1752. for _, v2 := range v {
  1753. ee.WriteArrayElem()
  1754. ee.EncodeUint(uint64(v2))
  1755. }
  1756. } else {
  1757. for _, v2 := range v {
  1758. ee.EncodeUint(uint64(v2))
  1759. }
  1760. }
  1761. ee.WriteArrayEnd()
  1762. }
  1763. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1764. ee, esep := e.e, e.hh.hasElemSeparators()
  1765. if len(v)%2 == 1 {
  1766. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1767. return
  1768. }
  1769. ee.WriteMapStart(len(v) / 2)
  1770. if esep {
  1771. for j, v2 := range v {
  1772. if j%2 == 0 {
  1773. ee.WriteMapElemKey()
  1774. } else {
  1775. ee.WriteMapElemValue()
  1776. }
  1777. ee.EncodeUint(uint64(v2))
  1778. }
  1779. } else {
  1780. for _, v2 := range v {
  1781. ee.EncodeUint(uint64(v2))
  1782. }
  1783. }
  1784. ee.WriteMapEnd()
  1785. }
  1786. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1787. if f.ti.mbs {
  1788. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1789. } else {
  1790. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1791. }
  1792. }
  1793. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1794. if v == nil {
  1795. e.e.EncodeNil()
  1796. return
  1797. }
  1798. ee, esep := e.e, e.hh.hasElemSeparators()
  1799. ee.WriteArrayStart(len(v))
  1800. if esep {
  1801. for _, v2 := range v {
  1802. ee.WriteArrayElem()
  1803. ee.EncodeUint(uint64(v2))
  1804. }
  1805. } else {
  1806. for _, v2 := range v {
  1807. ee.EncodeUint(uint64(v2))
  1808. }
  1809. }
  1810. ee.WriteArrayEnd()
  1811. }
  1812. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  1813. ee, esep := e.e, e.hh.hasElemSeparators()
  1814. if len(v)%2 == 1 {
  1815. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1816. return
  1817. }
  1818. ee.WriteMapStart(len(v) / 2)
  1819. if esep {
  1820. for j, v2 := range v {
  1821. if j%2 == 0 {
  1822. ee.WriteMapElemKey()
  1823. } else {
  1824. ee.WriteMapElemValue()
  1825. }
  1826. ee.EncodeUint(uint64(v2))
  1827. }
  1828. } else {
  1829. for _, v2 := range v {
  1830. ee.EncodeUint(uint64(v2))
  1831. }
  1832. }
  1833. ee.WriteMapEnd()
  1834. }
  1835. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1836. if f.ti.mbs {
  1837. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1838. } else {
  1839. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1840. }
  1841. }
  1842. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1843. if v == nil {
  1844. e.e.EncodeNil()
  1845. return
  1846. }
  1847. ee, esep := e.e, e.hh.hasElemSeparators()
  1848. ee.WriteArrayStart(len(v))
  1849. if esep {
  1850. for _, v2 := range v {
  1851. ee.WriteArrayElem()
  1852. ee.EncodeUint(uint64(v2))
  1853. }
  1854. } else {
  1855. for _, v2 := range v {
  1856. ee.EncodeUint(uint64(v2))
  1857. }
  1858. }
  1859. ee.WriteArrayEnd()
  1860. }
  1861. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1862. ee, esep := e.e, e.hh.hasElemSeparators()
  1863. if len(v)%2 == 1 {
  1864. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1865. return
  1866. }
  1867. ee.WriteMapStart(len(v) / 2)
  1868. if esep {
  1869. for j, v2 := range v {
  1870. if j%2 == 0 {
  1871. ee.WriteMapElemKey()
  1872. } else {
  1873. ee.WriteMapElemValue()
  1874. }
  1875. ee.EncodeUint(uint64(v2))
  1876. }
  1877. } else {
  1878. for _, v2 := range v {
  1879. ee.EncodeUint(uint64(v2))
  1880. }
  1881. }
  1882. ee.WriteMapEnd()
  1883. }
  1884. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1885. if f.ti.mbs {
  1886. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1887. } else {
  1888. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1889. }
  1890. }
  1891. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1892. if v == nil {
  1893. e.e.EncodeNil()
  1894. return
  1895. }
  1896. ee, esep := e.e, e.hh.hasElemSeparators()
  1897. ee.WriteArrayStart(len(v))
  1898. if esep {
  1899. for _, v2 := range v {
  1900. ee.WriteArrayElem()
  1901. e.encode(v2)
  1902. }
  1903. } else {
  1904. for _, v2 := range v {
  1905. e.encode(v2)
  1906. }
  1907. }
  1908. ee.WriteArrayEnd()
  1909. }
  1910. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1911. ee, esep := e.e, e.hh.hasElemSeparators()
  1912. if len(v)%2 == 1 {
  1913. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1914. return
  1915. }
  1916. ee.WriteMapStart(len(v) / 2)
  1917. if esep {
  1918. for j, v2 := range v {
  1919. if j%2 == 0 {
  1920. ee.WriteMapElemKey()
  1921. } else {
  1922. ee.WriteMapElemValue()
  1923. }
  1924. e.encode(v2)
  1925. }
  1926. } else {
  1927. for _, v2 := range v {
  1928. e.encode(v2)
  1929. }
  1930. }
  1931. ee.WriteMapEnd()
  1932. }
  1933. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1934. if f.ti.mbs {
  1935. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1936. } else {
  1937. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1938. }
  1939. }
  1940. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1941. if v == nil {
  1942. e.e.EncodeNil()
  1943. return
  1944. }
  1945. ee, esep := e.e, e.hh.hasElemSeparators()
  1946. ee.WriteArrayStart(len(v))
  1947. if esep {
  1948. for _, v2 := range v {
  1949. ee.WriteArrayElem()
  1950. ee.EncodeInt(int64(v2))
  1951. }
  1952. } else {
  1953. for _, v2 := range v {
  1954. ee.EncodeInt(int64(v2))
  1955. }
  1956. }
  1957. ee.WriteArrayEnd()
  1958. }
  1959. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1960. ee, esep := e.e, e.hh.hasElemSeparators()
  1961. if len(v)%2 == 1 {
  1962. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1963. return
  1964. }
  1965. ee.WriteMapStart(len(v) / 2)
  1966. if esep {
  1967. for j, v2 := range v {
  1968. if j%2 == 0 {
  1969. ee.WriteMapElemKey()
  1970. } else {
  1971. ee.WriteMapElemValue()
  1972. }
  1973. ee.EncodeInt(int64(v2))
  1974. }
  1975. } else {
  1976. for _, v2 := range v {
  1977. ee.EncodeInt(int64(v2))
  1978. }
  1979. }
  1980. ee.WriteMapEnd()
  1981. }
  1982. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1983. if f.ti.mbs {
  1984. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1985. } else {
  1986. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1987. }
  1988. }
  1989. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1990. if v == nil {
  1991. e.e.EncodeNil()
  1992. return
  1993. }
  1994. ee, esep := e.e, e.hh.hasElemSeparators()
  1995. ee.WriteArrayStart(len(v))
  1996. if esep {
  1997. for _, v2 := range v {
  1998. ee.WriteArrayElem()
  1999. ee.EncodeInt(int64(v2))
  2000. }
  2001. } else {
  2002. for _, v2 := range v {
  2003. ee.EncodeInt(int64(v2))
  2004. }
  2005. }
  2006. ee.WriteArrayEnd()
  2007. }
  2008. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  2009. ee, esep := e.e, e.hh.hasElemSeparators()
  2010. if len(v)%2 == 1 {
  2011. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2012. return
  2013. }
  2014. ee.WriteMapStart(len(v) / 2)
  2015. if esep {
  2016. for j, v2 := range v {
  2017. if j%2 == 0 {
  2018. ee.WriteMapElemKey()
  2019. } else {
  2020. ee.WriteMapElemValue()
  2021. }
  2022. ee.EncodeInt(int64(v2))
  2023. }
  2024. } else {
  2025. for _, v2 := range v {
  2026. ee.EncodeInt(int64(v2))
  2027. }
  2028. }
  2029. ee.WriteMapEnd()
  2030. }
  2031. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  2032. if f.ti.mbs {
  2033. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  2034. } else {
  2035. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  2036. }
  2037. }
  2038. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  2039. if v == nil {
  2040. e.e.EncodeNil()
  2041. return
  2042. }
  2043. ee, esep := e.e, e.hh.hasElemSeparators()
  2044. ee.WriteArrayStart(len(v))
  2045. if esep {
  2046. for _, v2 := range v {
  2047. ee.WriteArrayElem()
  2048. ee.EncodeInt(int64(v2))
  2049. }
  2050. } else {
  2051. for _, v2 := range v {
  2052. ee.EncodeInt(int64(v2))
  2053. }
  2054. }
  2055. ee.WriteArrayEnd()
  2056. }
  2057. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  2058. ee, esep := e.e, e.hh.hasElemSeparators()
  2059. if len(v)%2 == 1 {
  2060. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2061. return
  2062. }
  2063. ee.WriteMapStart(len(v) / 2)
  2064. if esep {
  2065. for j, v2 := range v {
  2066. if j%2 == 0 {
  2067. ee.WriteMapElemKey()
  2068. } else {
  2069. ee.WriteMapElemValue()
  2070. }
  2071. ee.EncodeInt(int64(v2))
  2072. }
  2073. } else {
  2074. for _, v2 := range v {
  2075. ee.EncodeInt(int64(v2))
  2076. }
  2077. }
  2078. ee.WriteMapEnd()
  2079. }
  2080. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  2081. if f.ti.mbs {
  2082. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  2083. } else {
  2084. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  2085. }
  2086. }
  2087. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  2088. if v == nil {
  2089. e.e.EncodeNil()
  2090. return
  2091. }
  2092. ee, esep := e.e, e.hh.hasElemSeparators()
  2093. ee.WriteArrayStart(len(v))
  2094. if esep {
  2095. for _, v2 := range v {
  2096. ee.WriteArrayElem()
  2097. ee.EncodeInt(int64(v2))
  2098. }
  2099. } else {
  2100. for _, v2 := range v {
  2101. ee.EncodeInt(int64(v2))
  2102. }
  2103. }
  2104. ee.WriteArrayEnd()
  2105. }
  2106. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  2107. ee, esep := e.e, e.hh.hasElemSeparators()
  2108. if len(v)%2 == 1 {
  2109. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2110. return
  2111. }
  2112. ee.WriteMapStart(len(v) / 2)
  2113. if esep {
  2114. for j, v2 := range v {
  2115. if j%2 == 0 {
  2116. ee.WriteMapElemKey()
  2117. } else {
  2118. ee.WriteMapElemValue()
  2119. }
  2120. ee.EncodeInt(int64(v2))
  2121. }
  2122. } else {
  2123. for _, v2 := range v {
  2124. ee.EncodeInt(int64(v2))
  2125. }
  2126. }
  2127. ee.WriteMapEnd()
  2128. }
  2129. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  2130. if f.ti.mbs {
  2131. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  2132. } else {
  2133. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  2134. }
  2135. }
  2136. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  2137. if v == nil {
  2138. e.e.EncodeNil()
  2139. return
  2140. }
  2141. ee, esep := e.e, e.hh.hasElemSeparators()
  2142. ee.WriteArrayStart(len(v))
  2143. if esep {
  2144. for _, v2 := range v {
  2145. ee.WriteArrayElem()
  2146. ee.EncodeInt(int64(v2))
  2147. }
  2148. } else {
  2149. for _, v2 := range v {
  2150. ee.EncodeInt(int64(v2))
  2151. }
  2152. }
  2153. ee.WriteArrayEnd()
  2154. }
  2155. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  2156. ee, esep := e.e, e.hh.hasElemSeparators()
  2157. if len(v)%2 == 1 {
  2158. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2159. return
  2160. }
  2161. ee.WriteMapStart(len(v) / 2)
  2162. if esep {
  2163. for j, v2 := range v {
  2164. if j%2 == 0 {
  2165. ee.WriteMapElemKey()
  2166. } else {
  2167. ee.WriteMapElemValue()
  2168. }
  2169. ee.EncodeInt(int64(v2))
  2170. }
  2171. } else {
  2172. for _, v2 := range v {
  2173. ee.EncodeInt(int64(v2))
  2174. }
  2175. }
  2176. ee.WriteMapEnd()
  2177. }
  2178. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  2179. if f.ti.mbs {
  2180. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  2181. } else {
  2182. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  2183. }
  2184. }
  2185. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  2186. if v == nil {
  2187. e.e.EncodeNil()
  2188. return
  2189. }
  2190. ee, esep := e.e, e.hh.hasElemSeparators()
  2191. ee.WriteArrayStart(len(v))
  2192. if esep {
  2193. for _, v2 := range v {
  2194. ee.WriteArrayElem()
  2195. ee.EncodeBool(v2)
  2196. }
  2197. } else {
  2198. for _, v2 := range v {
  2199. ee.EncodeBool(v2)
  2200. }
  2201. }
  2202. ee.WriteArrayEnd()
  2203. }
  2204. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  2205. ee, esep := e.e, e.hh.hasElemSeparators()
  2206. if len(v)%2 == 1 {
  2207. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2208. return
  2209. }
  2210. ee.WriteMapStart(len(v) / 2)
  2211. if esep {
  2212. for j, v2 := range v {
  2213. if j%2 == 0 {
  2214. ee.WriteMapElemKey()
  2215. } else {
  2216. ee.WriteMapElemValue()
  2217. }
  2218. ee.EncodeBool(v2)
  2219. }
  2220. } else {
  2221. for _, v2 := range v {
  2222. ee.EncodeBool(v2)
  2223. }
  2224. }
  2225. ee.WriteMapEnd()
  2226. }
  2227. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2228. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2229. }
  2230. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2231. if v == nil {
  2232. e.e.EncodeNil()
  2233. return
  2234. }
  2235. ee, esep := e.e, e.hh.hasElemSeparators()
  2236. ee.WriteMapStart(len(v))
  2237. if e.h.Canonical {
  2238. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2239. e2 := NewEncoderBytes(&mksv, e.hh)
  2240. v2 := make([]bytesI, len(v))
  2241. var i, l int
  2242. var vp *bytesI
  2243. for k2 := range v {
  2244. l = len(mksv)
  2245. e2.MustEncode(k2)
  2246. vp = &v2[i]
  2247. vp.v = mksv[l:]
  2248. vp.i = k2
  2249. i++
  2250. }
  2251. sort.Sort(bytesISlice(v2))
  2252. if esep {
  2253. for j := range v2 {
  2254. ee.WriteMapElemKey()
  2255. e.asis(v2[j].v)
  2256. ee.WriteMapElemValue()
  2257. e.encode(v[v2[j].i])
  2258. }
  2259. } else {
  2260. for j := range v2 {
  2261. e.asis(v2[j].v)
  2262. e.encode(v[v2[j].i])
  2263. }
  2264. }
  2265. } else {
  2266. if esep {
  2267. for k2, v2 := range v {
  2268. ee.WriteMapElemKey()
  2269. e.encode(k2)
  2270. ee.WriteMapElemValue()
  2271. e.encode(v2)
  2272. }
  2273. } else {
  2274. for k2, v2 := range v {
  2275. e.encode(k2)
  2276. e.encode(v2)
  2277. }
  2278. }
  2279. }
  2280. ee.WriteMapEnd()
  2281. }
  2282. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2283. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2284. }
  2285. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2286. if v == nil {
  2287. e.e.EncodeNil()
  2288. return
  2289. }
  2290. ee, esep := e.e, e.hh.hasElemSeparators()
  2291. ee.WriteMapStart(len(v))
  2292. if e.h.Canonical {
  2293. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2294. e2 := NewEncoderBytes(&mksv, e.hh)
  2295. v2 := make([]bytesI, len(v))
  2296. var i, l int
  2297. var vp *bytesI
  2298. for k2 := range v {
  2299. l = len(mksv)
  2300. e2.MustEncode(k2)
  2301. vp = &v2[i]
  2302. vp.v = mksv[l:]
  2303. vp.i = k2
  2304. i++
  2305. }
  2306. sort.Sort(bytesISlice(v2))
  2307. if esep {
  2308. for j := range v2 {
  2309. ee.WriteMapElemKey()
  2310. e.asis(v2[j].v)
  2311. ee.WriteMapElemValue()
  2312. e.encode(v[v2[j].i])
  2313. }
  2314. } else {
  2315. for j := range v2 {
  2316. e.asis(v2[j].v)
  2317. e.encode(v[v2[j].i])
  2318. }
  2319. }
  2320. } else {
  2321. if esep {
  2322. for k2, v2 := range v {
  2323. ee.WriteMapElemKey()
  2324. e.encode(k2)
  2325. ee.WriteMapElemValue()
  2326. ee.EncodeStringEnc(cUTF8, v2)
  2327. }
  2328. } else {
  2329. for k2, v2 := range v {
  2330. e.encode(k2)
  2331. ee.EncodeStringEnc(cUTF8, v2)
  2332. }
  2333. }
  2334. }
  2335. ee.WriteMapEnd()
  2336. }
  2337. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2338. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2339. }
  2340. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2341. if v == nil {
  2342. e.e.EncodeNil()
  2343. return
  2344. }
  2345. ee, esep := e.e, e.hh.hasElemSeparators()
  2346. ee.WriteMapStart(len(v))
  2347. if e.h.Canonical {
  2348. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2349. e2 := NewEncoderBytes(&mksv, e.hh)
  2350. v2 := make([]bytesI, len(v))
  2351. var i, l int
  2352. var vp *bytesI
  2353. for k2 := range v {
  2354. l = len(mksv)
  2355. e2.MustEncode(k2)
  2356. vp = &v2[i]
  2357. vp.v = mksv[l:]
  2358. vp.i = k2
  2359. i++
  2360. }
  2361. sort.Sort(bytesISlice(v2))
  2362. if esep {
  2363. for j := range v2 {
  2364. ee.WriteMapElemKey()
  2365. e.asis(v2[j].v)
  2366. ee.WriteMapElemValue()
  2367. e.encode(v[v2[j].i])
  2368. }
  2369. } else {
  2370. for j := range v2 {
  2371. e.asis(v2[j].v)
  2372. e.encode(v[v2[j].i])
  2373. }
  2374. }
  2375. } else {
  2376. if esep {
  2377. for k2, v2 := range v {
  2378. ee.WriteMapElemKey()
  2379. e.encode(k2)
  2380. ee.WriteMapElemValue()
  2381. ee.EncodeUint(uint64(v2))
  2382. }
  2383. } else {
  2384. for k2, v2 := range v {
  2385. e.encode(k2)
  2386. ee.EncodeUint(uint64(v2))
  2387. }
  2388. }
  2389. }
  2390. ee.WriteMapEnd()
  2391. }
  2392. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2393. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2394. }
  2395. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2396. if v == nil {
  2397. e.e.EncodeNil()
  2398. return
  2399. }
  2400. ee, esep := e.e, e.hh.hasElemSeparators()
  2401. ee.WriteMapStart(len(v))
  2402. if e.h.Canonical {
  2403. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2404. e2 := NewEncoderBytes(&mksv, e.hh)
  2405. v2 := make([]bytesI, len(v))
  2406. var i, l int
  2407. var vp *bytesI
  2408. for k2 := range v {
  2409. l = len(mksv)
  2410. e2.MustEncode(k2)
  2411. vp = &v2[i]
  2412. vp.v = mksv[l:]
  2413. vp.i = k2
  2414. i++
  2415. }
  2416. sort.Sort(bytesISlice(v2))
  2417. if esep {
  2418. for j := range v2 {
  2419. ee.WriteMapElemKey()
  2420. e.asis(v2[j].v)
  2421. ee.WriteMapElemValue()
  2422. e.encode(v[v2[j].i])
  2423. }
  2424. } else {
  2425. for j := range v2 {
  2426. e.asis(v2[j].v)
  2427. e.encode(v[v2[j].i])
  2428. }
  2429. }
  2430. } else {
  2431. if esep {
  2432. for k2, v2 := range v {
  2433. ee.WriteMapElemKey()
  2434. e.encode(k2)
  2435. ee.WriteMapElemValue()
  2436. ee.EncodeUint(uint64(v2))
  2437. }
  2438. } else {
  2439. for k2, v2 := range v {
  2440. e.encode(k2)
  2441. ee.EncodeUint(uint64(v2))
  2442. }
  2443. }
  2444. }
  2445. ee.WriteMapEnd()
  2446. }
  2447. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2448. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2449. }
  2450. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2451. if v == nil {
  2452. e.e.EncodeNil()
  2453. return
  2454. }
  2455. ee, esep := e.e, e.hh.hasElemSeparators()
  2456. ee.WriteMapStart(len(v))
  2457. if e.h.Canonical {
  2458. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2459. e2 := NewEncoderBytes(&mksv, e.hh)
  2460. v2 := make([]bytesI, len(v))
  2461. var i, l int
  2462. var vp *bytesI
  2463. for k2 := range v {
  2464. l = len(mksv)
  2465. e2.MustEncode(k2)
  2466. vp = &v2[i]
  2467. vp.v = mksv[l:]
  2468. vp.i = k2
  2469. i++
  2470. }
  2471. sort.Sort(bytesISlice(v2))
  2472. if esep {
  2473. for j := range v2 {
  2474. ee.WriteMapElemKey()
  2475. e.asis(v2[j].v)
  2476. ee.WriteMapElemValue()
  2477. e.encode(v[v2[j].i])
  2478. }
  2479. } else {
  2480. for j := range v2 {
  2481. e.asis(v2[j].v)
  2482. e.encode(v[v2[j].i])
  2483. }
  2484. }
  2485. } else {
  2486. if esep {
  2487. for k2, v2 := range v {
  2488. ee.WriteMapElemKey()
  2489. e.encode(k2)
  2490. ee.WriteMapElemValue()
  2491. ee.EncodeUint(uint64(v2))
  2492. }
  2493. } else {
  2494. for k2, v2 := range v {
  2495. e.encode(k2)
  2496. ee.EncodeUint(uint64(v2))
  2497. }
  2498. }
  2499. }
  2500. ee.WriteMapEnd()
  2501. }
  2502. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2503. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2504. }
  2505. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2506. if v == nil {
  2507. e.e.EncodeNil()
  2508. return
  2509. }
  2510. ee, esep := e.e, e.hh.hasElemSeparators()
  2511. ee.WriteMapStart(len(v))
  2512. if e.h.Canonical {
  2513. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2514. e2 := NewEncoderBytes(&mksv, e.hh)
  2515. v2 := make([]bytesI, len(v))
  2516. var i, l int
  2517. var vp *bytesI
  2518. for k2 := range v {
  2519. l = len(mksv)
  2520. e2.MustEncode(k2)
  2521. vp = &v2[i]
  2522. vp.v = mksv[l:]
  2523. vp.i = k2
  2524. i++
  2525. }
  2526. sort.Sort(bytesISlice(v2))
  2527. if esep {
  2528. for j := range v2 {
  2529. ee.WriteMapElemKey()
  2530. e.asis(v2[j].v)
  2531. ee.WriteMapElemValue()
  2532. e.encode(v[v2[j].i])
  2533. }
  2534. } else {
  2535. for j := range v2 {
  2536. e.asis(v2[j].v)
  2537. e.encode(v[v2[j].i])
  2538. }
  2539. }
  2540. } else {
  2541. if esep {
  2542. for k2, v2 := range v {
  2543. ee.WriteMapElemKey()
  2544. e.encode(k2)
  2545. ee.WriteMapElemValue()
  2546. ee.EncodeUint(uint64(v2))
  2547. }
  2548. } else {
  2549. for k2, v2 := range v {
  2550. e.encode(k2)
  2551. ee.EncodeUint(uint64(v2))
  2552. }
  2553. }
  2554. }
  2555. ee.WriteMapEnd()
  2556. }
  2557. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2558. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2559. }
  2560. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2561. if v == nil {
  2562. e.e.EncodeNil()
  2563. return
  2564. }
  2565. ee, esep := e.e, e.hh.hasElemSeparators()
  2566. ee.WriteMapStart(len(v))
  2567. if e.h.Canonical {
  2568. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2569. e2 := NewEncoderBytes(&mksv, e.hh)
  2570. v2 := make([]bytesI, len(v))
  2571. var i, l int
  2572. var vp *bytesI
  2573. for k2 := range v {
  2574. l = len(mksv)
  2575. e2.MustEncode(k2)
  2576. vp = &v2[i]
  2577. vp.v = mksv[l:]
  2578. vp.i = k2
  2579. i++
  2580. }
  2581. sort.Sort(bytesISlice(v2))
  2582. if esep {
  2583. for j := range v2 {
  2584. ee.WriteMapElemKey()
  2585. e.asis(v2[j].v)
  2586. ee.WriteMapElemValue()
  2587. e.encode(v[v2[j].i])
  2588. }
  2589. } else {
  2590. for j := range v2 {
  2591. e.asis(v2[j].v)
  2592. e.encode(v[v2[j].i])
  2593. }
  2594. }
  2595. } else {
  2596. if esep {
  2597. for k2, v2 := range v {
  2598. ee.WriteMapElemKey()
  2599. e.encode(k2)
  2600. ee.WriteMapElemValue()
  2601. ee.EncodeUint(uint64(v2))
  2602. }
  2603. } else {
  2604. for k2, v2 := range v {
  2605. e.encode(k2)
  2606. ee.EncodeUint(uint64(v2))
  2607. }
  2608. }
  2609. }
  2610. ee.WriteMapEnd()
  2611. }
  2612. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2613. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2614. }
  2615. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2616. if v == nil {
  2617. e.e.EncodeNil()
  2618. return
  2619. }
  2620. ee, esep := e.e, e.hh.hasElemSeparators()
  2621. ee.WriteMapStart(len(v))
  2622. if e.h.Canonical {
  2623. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2624. e2 := NewEncoderBytes(&mksv, e.hh)
  2625. v2 := make([]bytesI, len(v))
  2626. var i, l int
  2627. var vp *bytesI
  2628. for k2 := range v {
  2629. l = len(mksv)
  2630. e2.MustEncode(k2)
  2631. vp = &v2[i]
  2632. vp.v = mksv[l:]
  2633. vp.i = k2
  2634. i++
  2635. }
  2636. sort.Sort(bytesISlice(v2))
  2637. if esep {
  2638. for j := range v2 {
  2639. ee.WriteMapElemKey()
  2640. e.asis(v2[j].v)
  2641. ee.WriteMapElemValue()
  2642. e.encode(v[v2[j].i])
  2643. }
  2644. } else {
  2645. for j := range v2 {
  2646. e.asis(v2[j].v)
  2647. e.encode(v[v2[j].i])
  2648. }
  2649. }
  2650. } else {
  2651. if esep {
  2652. for k2, v2 := range v {
  2653. ee.WriteMapElemKey()
  2654. e.encode(k2)
  2655. ee.WriteMapElemValue()
  2656. e.encode(v2)
  2657. }
  2658. } else {
  2659. for k2, v2 := range v {
  2660. e.encode(k2)
  2661. e.encode(v2)
  2662. }
  2663. }
  2664. }
  2665. ee.WriteMapEnd()
  2666. }
  2667. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2668. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2669. }
  2670. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2671. if v == nil {
  2672. e.e.EncodeNil()
  2673. return
  2674. }
  2675. ee, esep := e.e, e.hh.hasElemSeparators()
  2676. ee.WriteMapStart(len(v))
  2677. if e.h.Canonical {
  2678. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2679. e2 := NewEncoderBytes(&mksv, e.hh)
  2680. v2 := make([]bytesI, len(v))
  2681. var i, l int
  2682. var vp *bytesI
  2683. for k2 := range v {
  2684. l = len(mksv)
  2685. e2.MustEncode(k2)
  2686. vp = &v2[i]
  2687. vp.v = mksv[l:]
  2688. vp.i = k2
  2689. i++
  2690. }
  2691. sort.Sort(bytesISlice(v2))
  2692. if esep {
  2693. for j := range v2 {
  2694. ee.WriteMapElemKey()
  2695. e.asis(v2[j].v)
  2696. ee.WriteMapElemValue()
  2697. e.encode(v[v2[j].i])
  2698. }
  2699. } else {
  2700. for j := range v2 {
  2701. e.asis(v2[j].v)
  2702. e.encode(v[v2[j].i])
  2703. }
  2704. }
  2705. } else {
  2706. if esep {
  2707. for k2, v2 := range v {
  2708. ee.WriteMapElemKey()
  2709. e.encode(k2)
  2710. ee.WriteMapElemValue()
  2711. ee.EncodeInt(int64(v2))
  2712. }
  2713. } else {
  2714. for k2, v2 := range v {
  2715. e.encode(k2)
  2716. ee.EncodeInt(int64(v2))
  2717. }
  2718. }
  2719. }
  2720. ee.WriteMapEnd()
  2721. }
  2722. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2723. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2724. }
  2725. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  2726. if v == nil {
  2727. e.e.EncodeNil()
  2728. return
  2729. }
  2730. ee, esep := e.e, e.hh.hasElemSeparators()
  2731. ee.WriteMapStart(len(v))
  2732. if e.h.Canonical {
  2733. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2734. e2 := NewEncoderBytes(&mksv, e.hh)
  2735. v2 := make([]bytesI, len(v))
  2736. var i, l int
  2737. var vp *bytesI
  2738. for k2 := range v {
  2739. l = len(mksv)
  2740. e2.MustEncode(k2)
  2741. vp = &v2[i]
  2742. vp.v = mksv[l:]
  2743. vp.i = k2
  2744. i++
  2745. }
  2746. sort.Sort(bytesISlice(v2))
  2747. if esep {
  2748. for j := range v2 {
  2749. ee.WriteMapElemKey()
  2750. e.asis(v2[j].v)
  2751. ee.WriteMapElemValue()
  2752. e.encode(v[v2[j].i])
  2753. }
  2754. } else {
  2755. for j := range v2 {
  2756. e.asis(v2[j].v)
  2757. e.encode(v[v2[j].i])
  2758. }
  2759. }
  2760. } else {
  2761. if esep {
  2762. for k2, v2 := range v {
  2763. ee.WriteMapElemKey()
  2764. e.encode(k2)
  2765. ee.WriteMapElemValue()
  2766. ee.EncodeInt(int64(v2))
  2767. }
  2768. } else {
  2769. for k2, v2 := range v {
  2770. e.encode(k2)
  2771. ee.EncodeInt(int64(v2))
  2772. }
  2773. }
  2774. }
  2775. ee.WriteMapEnd()
  2776. }
  2777. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2778. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2779. }
  2780. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2781. if v == nil {
  2782. e.e.EncodeNil()
  2783. return
  2784. }
  2785. ee, esep := e.e, e.hh.hasElemSeparators()
  2786. ee.WriteMapStart(len(v))
  2787. if e.h.Canonical {
  2788. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2789. e2 := NewEncoderBytes(&mksv, e.hh)
  2790. v2 := make([]bytesI, len(v))
  2791. var i, l int
  2792. var vp *bytesI
  2793. for k2 := range v {
  2794. l = len(mksv)
  2795. e2.MustEncode(k2)
  2796. vp = &v2[i]
  2797. vp.v = mksv[l:]
  2798. vp.i = k2
  2799. i++
  2800. }
  2801. sort.Sort(bytesISlice(v2))
  2802. if esep {
  2803. for j := range v2 {
  2804. ee.WriteMapElemKey()
  2805. e.asis(v2[j].v)
  2806. ee.WriteMapElemValue()
  2807. e.encode(v[v2[j].i])
  2808. }
  2809. } else {
  2810. for j := range v2 {
  2811. e.asis(v2[j].v)
  2812. e.encode(v[v2[j].i])
  2813. }
  2814. }
  2815. } else {
  2816. if esep {
  2817. for k2, v2 := range v {
  2818. ee.WriteMapElemKey()
  2819. e.encode(k2)
  2820. ee.WriteMapElemValue()
  2821. ee.EncodeInt(int64(v2))
  2822. }
  2823. } else {
  2824. for k2, v2 := range v {
  2825. e.encode(k2)
  2826. ee.EncodeInt(int64(v2))
  2827. }
  2828. }
  2829. }
  2830. ee.WriteMapEnd()
  2831. }
  2832. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2833. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2834. }
  2835. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2836. if v == nil {
  2837. e.e.EncodeNil()
  2838. return
  2839. }
  2840. ee, esep := e.e, e.hh.hasElemSeparators()
  2841. ee.WriteMapStart(len(v))
  2842. if e.h.Canonical {
  2843. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2844. e2 := NewEncoderBytes(&mksv, e.hh)
  2845. v2 := make([]bytesI, len(v))
  2846. var i, l int
  2847. var vp *bytesI
  2848. for k2 := range v {
  2849. l = len(mksv)
  2850. e2.MustEncode(k2)
  2851. vp = &v2[i]
  2852. vp.v = mksv[l:]
  2853. vp.i = k2
  2854. i++
  2855. }
  2856. sort.Sort(bytesISlice(v2))
  2857. if esep {
  2858. for j := range v2 {
  2859. ee.WriteMapElemKey()
  2860. e.asis(v2[j].v)
  2861. ee.WriteMapElemValue()
  2862. e.encode(v[v2[j].i])
  2863. }
  2864. } else {
  2865. for j := range v2 {
  2866. e.asis(v2[j].v)
  2867. e.encode(v[v2[j].i])
  2868. }
  2869. }
  2870. } else {
  2871. if esep {
  2872. for k2, v2 := range v {
  2873. ee.WriteMapElemKey()
  2874. e.encode(k2)
  2875. ee.WriteMapElemValue()
  2876. ee.EncodeInt(int64(v2))
  2877. }
  2878. } else {
  2879. for k2, v2 := range v {
  2880. e.encode(k2)
  2881. ee.EncodeInt(int64(v2))
  2882. }
  2883. }
  2884. }
  2885. ee.WriteMapEnd()
  2886. }
  2887. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2888. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2889. }
  2890. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2891. if v == nil {
  2892. e.e.EncodeNil()
  2893. return
  2894. }
  2895. ee, esep := e.e, e.hh.hasElemSeparators()
  2896. ee.WriteMapStart(len(v))
  2897. if e.h.Canonical {
  2898. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2899. e2 := NewEncoderBytes(&mksv, e.hh)
  2900. v2 := make([]bytesI, len(v))
  2901. var i, l int
  2902. var vp *bytesI
  2903. for k2 := range v {
  2904. l = len(mksv)
  2905. e2.MustEncode(k2)
  2906. vp = &v2[i]
  2907. vp.v = mksv[l:]
  2908. vp.i = k2
  2909. i++
  2910. }
  2911. sort.Sort(bytesISlice(v2))
  2912. if esep {
  2913. for j := range v2 {
  2914. ee.WriteMapElemKey()
  2915. e.asis(v2[j].v)
  2916. ee.WriteMapElemValue()
  2917. e.encode(v[v2[j].i])
  2918. }
  2919. } else {
  2920. for j := range v2 {
  2921. e.asis(v2[j].v)
  2922. e.encode(v[v2[j].i])
  2923. }
  2924. }
  2925. } else {
  2926. if esep {
  2927. for k2, v2 := range v {
  2928. ee.WriteMapElemKey()
  2929. e.encode(k2)
  2930. ee.WriteMapElemValue()
  2931. ee.EncodeInt(int64(v2))
  2932. }
  2933. } else {
  2934. for k2, v2 := range v {
  2935. e.encode(k2)
  2936. ee.EncodeInt(int64(v2))
  2937. }
  2938. }
  2939. }
  2940. ee.WriteMapEnd()
  2941. }
  2942. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2943. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2944. }
  2945. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2946. if v == nil {
  2947. e.e.EncodeNil()
  2948. return
  2949. }
  2950. ee, esep := e.e, e.hh.hasElemSeparators()
  2951. ee.WriteMapStart(len(v))
  2952. if e.h.Canonical {
  2953. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2954. e2 := NewEncoderBytes(&mksv, e.hh)
  2955. v2 := make([]bytesI, len(v))
  2956. var i, l int
  2957. var vp *bytesI
  2958. for k2 := range v {
  2959. l = len(mksv)
  2960. e2.MustEncode(k2)
  2961. vp = &v2[i]
  2962. vp.v = mksv[l:]
  2963. vp.i = k2
  2964. i++
  2965. }
  2966. sort.Sort(bytesISlice(v2))
  2967. if esep {
  2968. for j := range v2 {
  2969. ee.WriteMapElemKey()
  2970. e.asis(v2[j].v)
  2971. ee.WriteMapElemValue()
  2972. e.encode(v[v2[j].i])
  2973. }
  2974. } else {
  2975. for j := range v2 {
  2976. e.asis(v2[j].v)
  2977. e.encode(v[v2[j].i])
  2978. }
  2979. }
  2980. } else {
  2981. if esep {
  2982. for k2, v2 := range v {
  2983. ee.WriteMapElemKey()
  2984. e.encode(k2)
  2985. ee.WriteMapElemValue()
  2986. ee.EncodeFloat32(v2)
  2987. }
  2988. } else {
  2989. for k2, v2 := range v {
  2990. e.encode(k2)
  2991. ee.EncodeFloat32(v2)
  2992. }
  2993. }
  2994. }
  2995. ee.WriteMapEnd()
  2996. }
  2997. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  2998. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  2999. }
  3000. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  3001. if v == nil {
  3002. e.e.EncodeNil()
  3003. return
  3004. }
  3005. ee, esep := e.e, e.hh.hasElemSeparators()
  3006. ee.WriteMapStart(len(v))
  3007. if e.h.Canonical {
  3008. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3009. e2 := NewEncoderBytes(&mksv, e.hh)
  3010. v2 := make([]bytesI, len(v))
  3011. var i, l int
  3012. var vp *bytesI
  3013. for k2 := range v {
  3014. l = len(mksv)
  3015. e2.MustEncode(k2)
  3016. vp = &v2[i]
  3017. vp.v = mksv[l:]
  3018. vp.i = k2
  3019. i++
  3020. }
  3021. sort.Sort(bytesISlice(v2))
  3022. if esep {
  3023. for j := range v2 {
  3024. ee.WriteMapElemKey()
  3025. e.asis(v2[j].v)
  3026. ee.WriteMapElemValue()
  3027. e.encode(v[v2[j].i])
  3028. }
  3029. } else {
  3030. for j := range v2 {
  3031. e.asis(v2[j].v)
  3032. e.encode(v[v2[j].i])
  3033. }
  3034. }
  3035. } else {
  3036. if esep {
  3037. for k2, v2 := range v {
  3038. ee.WriteMapElemKey()
  3039. e.encode(k2)
  3040. ee.WriteMapElemValue()
  3041. ee.EncodeFloat64(v2)
  3042. }
  3043. } else {
  3044. for k2, v2 := range v {
  3045. e.encode(k2)
  3046. ee.EncodeFloat64(v2)
  3047. }
  3048. }
  3049. }
  3050. ee.WriteMapEnd()
  3051. }
  3052. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  3053. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  3054. }
  3055. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  3056. if v == nil {
  3057. e.e.EncodeNil()
  3058. return
  3059. }
  3060. ee, esep := e.e, e.hh.hasElemSeparators()
  3061. ee.WriteMapStart(len(v))
  3062. if e.h.Canonical {
  3063. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3064. e2 := NewEncoderBytes(&mksv, e.hh)
  3065. v2 := make([]bytesI, len(v))
  3066. var i, l int
  3067. var vp *bytesI
  3068. for k2 := range v {
  3069. l = len(mksv)
  3070. e2.MustEncode(k2)
  3071. vp = &v2[i]
  3072. vp.v = mksv[l:]
  3073. vp.i = k2
  3074. i++
  3075. }
  3076. sort.Sort(bytesISlice(v2))
  3077. if esep {
  3078. for j := range v2 {
  3079. ee.WriteMapElemKey()
  3080. e.asis(v2[j].v)
  3081. ee.WriteMapElemValue()
  3082. e.encode(v[v2[j].i])
  3083. }
  3084. } else {
  3085. for j := range v2 {
  3086. e.asis(v2[j].v)
  3087. e.encode(v[v2[j].i])
  3088. }
  3089. }
  3090. } else {
  3091. if esep {
  3092. for k2, v2 := range v {
  3093. ee.WriteMapElemKey()
  3094. e.encode(k2)
  3095. ee.WriteMapElemValue()
  3096. ee.EncodeBool(v2)
  3097. }
  3098. } else {
  3099. for k2, v2 := range v {
  3100. e.encode(k2)
  3101. ee.EncodeBool(v2)
  3102. }
  3103. }
  3104. }
  3105. ee.WriteMapEnd()
  3106. }
  3107. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  3108. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  3109. }
  3110. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  3111. if v == nil {
  3112. e.e.EncodeNil()
  3113. return
  3114. }
  3115. ee, esep := e.e, e.hh.hasElemSeparators()
  3116. ee.WriteMapStart(len(v))
  3117. if e.h.Canonical {
  3118. v2 := make([]string, len(v))
  3119. var i int
  3120. for k := range v {
  3121. v2[i] = string(k)
  3122. i++
  3123. }
  3124. sort.Sort(stringSlice(v2))
  3125. if esep {
  3126. for _, k2 := range v2 {
  3127. ee.WriteMapElemKey()
  3128. ee.EncodeStringEnc(cUTF8, k2)
  3129. ee.WriteMapElemValue()
  3130. e.encode(v[string(k2)])
  3131. }
  3132. } else {
  3133. for _, k2 := range v2 {
  3134. ee.EncodeStringEnc(cUTF8, k2)
  3135. e.encode(v[string(k2)])
  3136. }
  3137. }
  3138. } else {
  3139. if esep {
  3140. for k2, v2 := range v {
  3141. ee.WriteMapElemKey()
  3142. ee.EncodeStringEnc(cUTF8, k2)
  3143. ee.WriteMapElemValue()
  3144. e.encode(v2)
  3145. }
  3146. } else {
  3147. for k2, v2 := range v {
  3148. ee.EncodeStringEnc(cUTF8, k2)
  3149. e.encode(v2)
  3150. }
  3151. }
  3152. }
  3153. ee.WriteMapEnd()
  3154. }
  3155. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  3156. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  3157. }
  3158. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  3159. if v == nil {
  3160. e.e.EncodeNil()
  3161. return
  3162. }
  3163. ee, esep := e.e, e.hh.hasElemSeparators()
  3164. ee.WriteMapStart(len(v))
  3165. if e.h.Canonical {
  3166. v2 := make([]string, len(v))
  3167. var i int
  3168. for k := range v {
  3169. v2[i] = string(k)
  3170. i++
  3171. }
  3172. sort.Sort(stringSlice(v2))
  3173. if esep {
  3174. for _, k2 := range v2 {
  3175. ee.WriteMapElemKey()
  3176. ee.EncodeStringEnc(cUTF8, k2)
  3177. ee.WriteMapElemValue()
  3178. ee.EncodeStringEnc(cUTF8, v[string(k2)])
  3179. }
  3180. } else {
  3181. for _, k2 := range v2 {
  3182. ee.EncodeStringEnc(cUTF8, k2)
  3183. ee.EncodeStringEnc(cUTF8, v[string(k2)])
  3184. }
  3185. }
  3186. } else {
  3187. if esep {
  3188. for k2, v2 := range v {
  3189. ee.WriteMapElemKey()
  3190. ee.EncodeStringEnc(cUTF8, k2)
  3191. ee.WriteMapElemValue()
  3192. ee.EncodeStringEnc(cUTF8, v2)
  3193. }
  3194. } else {
  3195. for k2, v2 := range v {
  3196. ee.EncodeStringEnc(cUTF8, k2)
  3197. ee.EncodeStringEnc(cUTF8, v2)
  3198. }
  3199. }
  3200. }
  3201. ee.WriteMapEnd()
  3202. }
  3203. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  3204. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  3205. }
  3206. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  3207. if v == nil {
  3208. e.e.EncodeNil()
  3209. return
  3210. }
  3211. ee, esep := e.e, e.hh.hasElemSeparators()
  3212. ee.WriteMapStart(len(v))
  3213. if e.h.Canonical {
  3214. v2 := make([]string, len(v))
  3215. var i int
  3216. for k := range v {
  3217. v2[i] = string(k)
  3218. i++
  3219. }
  3220. sort.Sort(stringSlice(v2))
  3221. if esep {
  3222. for _, k2 := range v2 {
  3223. ee.WriteMapElemKey()
  3224. ee.EncodeStringEnc(cUTF8, k2)
  3225. ee.WriteMapElemValue()
  3226. ee.EncodeUint(uint64(v[string(k2)]))
  3227. }
  3228. } else {
  3229. for _, k2 := range v2 {
  3230. ee.EncodeStringEnc(cUTF8, k2)
  3231. ee.EncodeUint(uint64(v[string(k2)]))
  3232. }
  3233. }
  3234. } else {
  3235. if esep {
  3236. for k2, v2 := range v {
  3237. ee.WriteMapElemKey()
  3238. ee.EncodeStringEnc(cUTF8, k2)
  3239. ee.WriteMapElemValue()
  3240. ee.EncodeUint(uint64(v2))
  3241. }
  3242. } else {
  3243. for k2, v2 := range v {
  3244. ee.EncodeStringEnc(cUTF8, k2)
  3245. ee.EncodeUint(uint64(v2))
  3246. }
  3247. }
  3248. }
  3249. ee.WriteMapEnd()
  3250. }
  3251. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  3252. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  3253. }
  3254. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  3255. if v == nil {
  3256. e.e.EncodeNil()
  3257. return
  3258. }
  3259. ee, esep := e.e, e.hh.hasElemSeparators()
  3260. ee.WriteMapStart(len(v))
  3261. if e.h.Canonical {
  3262. v2 := make([]string, len(v))
  3263. var i int
  3264. for k := range v {
  3265. v2[i] = string(k)
  3266. i++
  3267. }
  3268. sort.Sort(stringSlice(v2))
  3269. if esep {
  3270. for _, k2 := range v2 {
  3271. ee.WriteMapElemKey()
  3272. ee.EncodeStringEnc(cUTF8, k2)
  3273. ee.WriteMapElemValue()
  3274. ee.EncodeUint(uint64(v[string(k2)]))
  3275. }
  3276. } else {
  3277. for _, k2 := range v2 {
  3278. ee.EncodeStringEnc(cUTF8, k2)
  3279. ee.EncodeUint(uint64(v[string(k2)]))
  3280. }
  3281. }
  3282. } else {
  3283. if esep {
  3284. for k2, v2 := range v {
  3285. ee.WriteMapElemKey()
  3286. ee.EncodeStringEnc(cUTF8, k2)
  3287. ee.WriteMapElemValue()
  3288. ee.EncodeUint(uint64(v2))
  3289. }
  3290. } else {
  3291. for k2, v2 := range v {
  3292. ee.EncodeStringEnc(cUTF8, k2)
  3293. ee.EncodeUint(uint64(v2))
  3294. }
  3295. }
  3296. }
  3297. ee.WriteMapEnd()
  3298. }
  3299. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  3300. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  3301. }
  3302. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  3303. if v == nil {
  3304. e.e.EncodeNil()
  3305. return
  3306. }
  3307. ee, esep := e.e, e.hh.hasElemSeparators()
  3308. ee.WriteMapStart(len(v))
  3309. if e.h.Canonical {
  3310. v2 := make([]string, len(v))
  3311. var i int
  3312. for k := range v {
  3313. v2[i] = string(k)
  3314. i++
  3315. }
  3316. sort.Sort(stringSlice(v2))
  3317. if esep {
  3318. for _, k2 := range v2 {
  3319. ee.WriteMapElemKey()
  3320. ee.EncodeStringEnc(cUTF8, k2)
  3321. ee.WriteMapElemValue()
  3322. ee.EncodeUint(uint64(v[string(k2)]))
  3323. }
  3324. } else {
  3325. for _, k2 := range v2 {
  3326. ee.EncodeStringEnc(cUTF8, k2)
  3327. ee.EncodeUint(uint64(v[string(k2)]))
  3328. }
  3329. }
  3330. } else {
  3331. if esep {
  3332. for k2, v2 := range v {
  3333. ee.WriteMapElemKey()
  3334. ee.EncodeStringEnc(cUTF8, k2)
  3335. ee.WriteMapElemValue()
  3336. ee.EncodeUint(uint64(v2))
  3337. }
  3338. } else {
  3339. for k2, v2 := range v {
  3340. ee.EncodeStringEnc(cUTF8, k2)
  3341. ee.EncodeUint(uint64(v2))
  3342. }
  3343. }
  3344. }
  3345. ee.WriteMapEnd()
  3346. }
  3347. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  3348. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  3349. }
  3350. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  3351. if v == nil {
  3352. e.e.EncodeNil()
  3353. return
  3354. }
  3355. ee, esep := e.e, e.hh.hasElemSeparators()
  3356. ee.WriteMapStart(len(v))
  3357. if e.h.Canonical {
  3358. v2 := make([]string, len(v))
  3359. var i int
  3360. for k := range v {
  3361. v2[i] = string(k)
  3362. i++
  3363. }
  3364. sort.Sort(stringSlice(v2))
  3365. if esep {
  3366. for _, k2 := range v2 {
  3367. ee.WriteMapElemKey()
  3368. ee.EncodeStringEnc(cUTF8, k2)
  3369. ee.WriteMapElemValue()
  3370. ee.EncodeUint(uint64(v[string(k2)]))
  3371. }
  3372. } else {
  3373. for _, k2 := range v2 {
  3374. ee.EncodeStringEnc(cUTF8, k2)
  3375. ee.EncodeUint(uint64(v[string(k2)]))
  3376. }
  3377. }
  3378. } else {
  3379. if esep {
  3380. for k2, v2 := range v {
  3381. ee.WriteMapElemKey()
  3382. ee.EncodeStringEnc(cUTF8, k2)
  3383. ee.WriteMapElemValue()
  3384. ee.EncodeUint(uint64(v2))
  3385. }
  3386. } else {
  3387. for k2, v2 := range v {
  3388. ee.EncodeStringEnc(cUTF8, k2)
  3389. ee.EncodeUint(uint64(v2))
  3390. }
  3391. }
  3392. }
  3393. ee.WriteMapEnd()
  3394. }
  3395. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3396. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3397. }
  3398. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  3399. if v == nil {
  3400. e.e.EncodeNil()
  3401. return
  3402. }
  3403. ee, esep := e.e, e.hh.hasElemSeparators()
  3404. ee.WriteMapStart(len(v))
  3405. if e.h.Canonical {
  3406. v2 := make([]string, len(v))
  3407. var i int
  3408. for k := range v {
  3409. v2[i] = string(k)
  3410. i++
  3411. }
  3412. sort.Sort(stringSlice(v2))
  3413. if esep {
  3414. for _, k2 := range v2 {
  3415. ee.WriteMapElemKey()
  3416. ee.EncodeStringEnc(cUTF8, k2)
  3417. ee.WriteMapElemValue()
  3418. ee.EncodeUint(uint64(v[string(k2)]))
  3419. }
  3420. } else {
  3421. for _, k2 := range v2 {
  3422. ee.EncodeStringEnc(cUTF8, k2)
  3423. ee.EncodeUint(uint64(v[string(k2)]))
  3424. }
  3425. }
  3426. } else {
  3427. if esep {
  3428. for k2, v2 := range v {
  3429. ee.WriteMapElemKey()
  3430. ee.EncodeStringEnc(cUTF8, k2)
  3431. ee.WriteMapElemValue()
  3432. ee.EncodeUint(uint64(v2))
  3433. }
  3434. } else {
  3435. for k2, v2 := range v {
  3436. ee.EncodeStringEnc(cUTF8, k2)
  3437. ee.EncodeUint(uint64(v2))
  3438. }
  3439. }
  3440. }
  3441. ee.WriteMapEnd()
  3442. }
  3443. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3444. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3445. }
  3446. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3447. if v == nil {
  3448. e.e.EncodeNil()
  3449. return
  3450. }
  3451. ee, esep := e.e, e.hh.hasElemSeparators()
  3452. ee.WriteMapStart(len(v))
  3453. if e.h.Canonical {
  3454. v2 := make([]string, len(v))
  3455. var i int
  3456. for k := range v {
  3457. v2[i] = string(k)
  3458. i++
  3459. }
  3460. sort.Sort(stringSlice(v2))
  3461. if esep {
  3462. for _, k2 := range v2 {
  3463. ee.WriteMapElemKey()
  3464. ee.EncodeStringEnc(cUTF8, k2)
  3465. ee.WriteMapElemValue()
  3466. e.encode(v[string(k2)])
  3467. }
  3468. } else {
  3469. for _, k2 := range v2 {
  3470. ee.EncodeStringEnc(cUTF8, k2)
  3471. e.encode(v[string(k2)])
  3472. }
  3473. }
  3474. } else {
  3475. if esep {
  3476. for k2, v2 := range v {
  3477. ee.WriteMapElemKey()
  3478. ee.EncodeStringEnc(cUTF8, k2)
  3479. ee.WriteMapElemValue()
  3480. e.encode(v2)
  3481. }
  3482. } else {
  3483. for k2, v2 := range v {
  3484. ee.EncodeStringEnc(cUTF8, k2)
  3485. e.encode(v2)
  3486. }
  3487. }
  3488. }
  3489. ee.WriteMapEnd()
  3490. }
  3491. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3492. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3493. }
  3494. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  3495. if v == nil {
  3496. e.e.EncodeNil()
  3497. return
  3498. }
  3499. ee, esep := e.e, e.hh.hasElemSeparators()
  3500. ee.WriteMapStart(len(v))
  3501. if e.h.Canonical {
  3502. v2 := make([]string, len(v))
  3503. var i int
  3504. for k := range v {
  3505. v2[i] = string(k)
  3506. i++
  3507. }
  3508. sort.Sort(stringSlice(v2))
  3509. if esep {
  3510. for _, k2 := range v2 {
  3511. ee.WriteMapElemKey()
  3512. ee.EncodeStringEnc(cUTF8, k2)
  3513. ee.WriteMapElemValue()
  3514. ee.EncodeInt(int64(v[string(k2)]))
  3515. }
  3516. } else {
  3517. for _, k2 := range v2 {
  3518. ee.EncodeStringEnc(cUTF8, k2)
  3519. ee.EncodeInt(int64(v[string(k2)]))
  3520. }
  3521. }
  3522. } else {
  3523. if esep {
  3524. for k2, v2 := range v {
  3525. ee.WriteMapElemKey()
  3526. ee.EncodeStringEnc(cUTF8, k2)
  3527. ee.WriteMapElemValue()
  3528. ee.EncodeInt(int64(v2))
  3529. }
  3530. } else {
  3531. for k2, v2 := range v {
  3532. ee.EncodeStringEnc(cUTF8, k2)
  3533. ee.EncodeInt(int64(v2))
  3534. }
  3535. }
  3536. }
  3537. ee.WriteMapEnd()
  3538. }
  3539. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3540. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3541. }
  3542. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3543. if v == nil {
  3544. e.e.EncodeNil()
  3545. return
  3546. }
  3547. ee, esep := e.e, e.hh.hasElemSeparators()
  3548. ee.WriteMapStart(len(v))
  3549. if e.h.Canonical {
  3550. v2 := make([]string, len(v))
  3551. var i int
  3552. for k := range v {
  3553. v2[i] = string(k)
  3554. i++
  3555. }
  3556. sort.Sort(stringSlice(v2))
  3557. if esep {
  3558. for _, k2 := range v2 {
  3559. ee.WriteMapElemKey()
  3560. ee.EncodeStringEnc(cUTF8, k2)
  3561. ee.WriteMapElemValue()
  3562. ee.EncodeInt(int64(v[string(k2)]))
  3563. }
  3564. } else {
  3565. for _, k2 := range v2 {
  3566. ee.EncodeStringEnc(cUTF8, k2)
  3567. ee.EncodeInt(int64(v[string(k2)]))
  3568. }
  3569. }
  3570. } else {
  3571. if esep {
  3572. for k2, v2 := range v {
  3573. ee.WriteMapElemKey()
  3574. ee.EncodeStringEnc(cUTF8, k2)
  3575. ee.WriteMapElemValue()
  3576. ee.EncodeInt(int64(v2))
  3577. }
  3578. } else {
  3579. for k2, v2 := range v {
  3580. ee.EncodeStringEnc(cUTF8, k2)
  3581. ee.EncodeInt(int64(v2))
  3582. }
  3583. }
  3584. }
  3585. ee.WriteMapEnd()
  3586. }
  3587. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3588. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3589. }
  3590. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3591. if v == nil {
  3592. e.e.EncodeNil()
  3593. return
  3594. }
  3595. ee, esep := e.e, e.hh.hasElemSeparators()
  3596. ee.WriteMapStart(len(v))
  3597. if e.h.Canonical {
  3598. v2 := make([]string, len(v))
  3599. var i int
  3600. for k := range v {
  3601. v2[i] = string(k)
  3602. i++
  3603. }
  3604. sort.Sort(stringSlice(v2))
  3605. if esep {
  3606. for _, k2 := range v2 {
  3607. ee.WriteMapElemKey()
  3608. ee.EncodeStringEnc(cUTF8, k2)
  3609. ee.WriteMapElemValue()
  3610. ee.EncodeInt(int64(v[string(k2)]))
  3611. }
  3612. } else {
  3613. for _, k2 := range v2 {
  3614. ee.EncodeStringEnc(cUTF8, k2)
  3615. ee.EncodeInt(int64(v[string(k2)]))
  3616. }
  3617. }
  3618. } else {
  3619. if esep {
  3620. for k2, v2 := range v {
  3621. ee.WriteMapElemKey()
  3622. ee.EncodeStringEnc(cUTF8, k2)
  3623. ee.WriteMapElemValue()
  3624. ee.EncodeInt(int64(v2))
  3625. }
  3626. } else {
  3627. for k2, v2 := range v {
  3628. ee.EncodeStringEnc(cUTF8, k2)
  3629. ee.EncodeInt(int64(v2))
  3630. }
  3631. }
  3632. }
  3633. ee.WriteMapEnd()
  3634. }
  3635. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3636. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3637. }
  3638. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3639. if v == nil {
  3640. e.e.EncodeNil()
  3641. return
  3642. }
  3643. ee, esep := e.e, e.hh.hasElemSeparators()
  3644. ee.WriteMapStart(len(v))
  3645. if e.h.Canonical {
  3646. v2 := make([]string, len(v))
  3647. var i int
  3648. for k := range v {
  3649. v2[i] = string(k)
  3650. i++
  3651. }
  3652. sort.Sort(stringSlice(v2))
  3653. if esep {
  3654. for _, k2 := range v2 {
  3655. ee.WriteMapElemKey()
  3656. ee.EncodeStringEnc(cUTF8, k2)
  3657. ee.WriteMapElemValue()
  3658. ee.EncodeInt(int64(v[string(k2)]))
  3659. }
  3660. } else {
  3661. for _, k2 := range v2 {
  3662. ee.EncodeStringEnc(cUTF8, k2)
  3663. ee.EncodeInt(int64(v[string(k2)]))
  3664. }
  3665. }
  3666. } else {
  3667. if esep {
  3668. for k2, v2 := range v {
  3669. ee.WriteMapElemKey()
  3670. ee.EncodeStringEnc(cUTF8, k2)
  3671. ee.WriteMapElemValue()
  3672. ee.EncodeInt(int64(v2))
  3673. }
  3674. } else {
  3675. for k2, v2 := range v {
  3676. ee.EncodeStringEnc(cUTF8, k2)
  3677. ee.EncodeInt(int64(v2))
  3678. }
  3679. }
  3680. }
  3681. ee.WriteMapEnd()
  3682. }
  3683. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3684. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3685. }
  3686. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3687. if v == nil {
  3688. e.e.EncodeNil()
  3689. return
  3690. }
  3691. ee, esep := e.e, e.hh.hasElemSeparators()
  3692. ee.WriteMapStart(len(v))
  3693. if e.h.Canonical {
  3694. v2 := make([]string, len(v))
  3695. var i int
  3696. for k := range v {
  3697. v2[i] = string(k)
  3698. i++
  3699. }
  3700. sort.Sort(stringSlice(v2))
  3701. if esep {
  3702. for _, k2 := range v2 {
  3703. ee.WriteMapElemKey()
  3704. ee.EncodeStringEnc(cUTF8, k2)
  3705. ee.WriteMapElemValue()
  3706. ee.EncodeInt(int64(v[string(k2)]))
  3707. }
  3708. } else {
  3709. for _, k2 := range v2 {
  3710. ee.EncodeStringEnc(cUTF8, k2)
  3711. ee.EncodeInt(int64(v[string(k2)]))
  3712. }
  3713. }
  3714. } else {
  3715. if esep {
  3716. for k2, v2 := range v {
  3717. ee.WriteMapElemKey()
  3718. ee.EncodeStringEnc(cUTF8, k2)
  3719. ee.WriteMapElemValue()
  3720. ee.EncodeInt(int64(v2))
  3721. }
  3722. } else {
  3723. for k2, v2 := range v {
  3724. ee.EncodeStringEnc(cUTF8, k2)
  3725. ee.EncodeInt(int64(v2))
  3726. }
  3727. }
  3728. }
  3729. ee.WriteMapEnd()
  3730. }
  3731. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3732. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3733. }
  3734. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3735. if v == nil {
  3736. e.e.EncodeNil()
  3737. return
  3738. }
  3739. ee, esep := e.e, e.hh.hasElemSeparators()
  3740. ee.WriteMapStart(len(v))
  3741. if e.h.Canonical {
  3742. v2 := make([]string, len(v))
  3743. var i int
  3744. for k := range v {
  3745. v2[i] = string(k)
  3746. i++
  3747. }
  3748. sort.Sort(stringSlice(v2))
  3749. if esep {
  3750. for _, k2 := range v2 {
  3751. ee.WriteMapElemKey()
  3752. ee.EncodeStringEnc(cUTF8, k2)
  3753. ee.WriteMapElemValue()
  3754. ee.EncodeFloat32(v[string(k2)])
  3755. }
  3756. } else {
  3757. for _, k2 := range v2 {
  3758. ee.EncodeStringEnc(cUTF8, k2)
  3759. ee.EncodeFloat32(v[string(k2)])
  3760. }
  3761. }
  3762. } else {
  3763. if esep {
  3764. for k2, v2 := range v {
  3765. ee.WriteMapElemKey()
  3766. ee.EncodeStringEnc(cUTF8, k2)
  3767. ee.WriteMapElemValue()
  3768. ee.EncodeFloat32(v2)
  3769. }
  3770. } else {
  3771. for k2, v2 := range v {
  3772. ee.EncodeStringEnc(cUTF8, k2)
  3773. ee.EncodeFloat32(v2)
  3774. }
  3775. }
  3776. }
  3777. ee.WriteMapEnd()
  3778. }
  3779. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3780. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3781. }
  3782. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3783. if v == nil {
  3784. e.e.EncodeNil()
  3785. return
  3786. }
  3787. ee, esep := e.e, e.hh.hasElemSeparators()
  3788. ee.WriteMapStart(len(v))
  3789. if e.h.Canonical {
  3790. v2 := make([]string, len(v))
  3791. var i int
  3792. for k := range v {
  3793. v2[i] = string(k)
  3794. i++
  3795. }
  3796. sort.Sort(stringSlice(v2))
  3797. if esep {
  3798. for _, k2 := range v2 {
  3799. ee.WriteMapElemKey()
  3800. ee.EncodeStringEnc(cUTF8, k2)
  3801. ee.WriteMapElemValue()
  3802. ee.EncodeFloat64(v[string(k2)])
  3803. }
  3804. } else {
  3805. for _, k2 := range v2 {
  3806. ee.EncodeStringEnc(cUTF8, k2)
  3807. ee.EncodeFloat64(v[string(k2)])
  3808. }
  3809. }
  3810. } else {
  3811. if esep {
  3812. for k2, v2 := range v {
  3813. ee.WriteMapElemKey()
  3814. ee.EncodeStringEnc(cUTF8, k2)
  3815. ee.WriteMapElemValue()
  3816. ee.EncodeFloat64(v2)
  3817. }
  3818. } else {
  3819. for k2, v2 := range v {
  3820. ee.EncodeStringEnc(cUTF8, k2)
  3821. ee.EncodeFloat64(v2)
  3822. }
  3823. }
  3824. }
  3825. ee.WriteMapEnd()
  3826. }
  3827. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3828. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3829. }
  3830. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3831. if v == nil {
  3832. e.e.EncodeNil()
  3833. return
  3834. }
  3835. ee, esep := e.e, e.hh.hasElemSeparators()
  3836. ee.WriteMapStart(len(v))
  3837. if e.h.Canonical {
  3838. v2 := make([]string, len(v))
  3839. var i int
  3840. for k := range v {
  3841. v2[i] = string(k)
  3842. i++
  3843. }
  3844. sort.Sort(stringSlice(v2))
  3845. if esep {
  3846. for _, k2 := range v2 {
  3847. ee.WriteMapElemKey()
  3848. ee.EncodeStringEnc(cUTF8, k2)
  3849. ee.WriteMapElemValue()
  3850. ee.EncodeBool(v[string(k2)])
  3851. }
  3852. } else {
  3853. for _, k2 := range v2 {
  3854. ee.EncodeStringEnc(cUTF8, k2)
  3855. ee.EncodeBool(v[string(k2)])
  3856. }
  3857. }
  3858. } else {
  3859. if esep {
  3860. for k2, v2 := range v {
  3861. ee.WriteMapElemKey()
  3862. ee.EncodeStringEnc(cUTF8, k2)
  3863. ee.WriteMapElemValue()
  3864. ee.EncodeBool(v2)
  3865. }
  3866. } else {
  3867. for k2, v2 := range v {
  3868. ee.EncodeStringEnc(cUTF8, k2)
  3869. ee.EncodeBool(v2)
  3870. }
  3871. }
  3872. }
  3873. ee.WriteMapEnd()
  3874. }
  3875. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3876. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3877. }
  3878. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3879. if v == nil {
  3880. e.e.EncodeNil()
  3881. return
  3882. }
  3883. ee, esep := e.e, e.hh.hasElemSeparators()
  3884. ee.WriteMapStart(len(v))
  3885. if e.h.Canonical {
  3886. v2 := make([]float64, len(v))
  3887. var i int
  3888. for k := range v {
  3889. v2[i] = float64(k)
  3890. i++
  3891. }
  3892. sort.Sort(floatSlice(v2))
  3893. if esep {
  3894. for _, k2 := range v2 {
  3895. ee.WriteMapElemKey()
  3896. ee.EncodeFloat32(float32(k2))
  3897. ee.WriteMapElemValue()
  3898. e.encode(v[float32(k2)])
  3899. }
  3900. } else {
  3901. for _, k2 := range v2 {
  3902. ee.EncodeFloat32(float32(k2))
  3903. e.encode(v[float32(k2)])
  3904. }
  3905. }
  3906. } else {
  3907. if esep {
  3908. for k2, v2 := range v {
  3909. ee.WriteMapElemKey()
  3910. ee.EncodeFloat32(k2)
  3911. ee.WriteMapElemValue()
  3912. e.encode(v2)
  3913. }
  3914. } else {
  3915. for k2, v2 := range v {
  3916. ee.EncodeFloat32(k2)
  3917. e.encode(v2)
  3918. }
  3919. }
  3920. }
  3921. ee.WriteMapEnd()
  3922. }
  3923. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3924. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3925. }
  3926. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3927. if v == nil {
  3928. e.e.EncodeNil()
  3929. return
  3930. }
  3931. ee, esep := e.e, e.hh.hasElemSeparators()
  3932. ee.WriteMapStart(len(v))
  3933. if e.h.Canonical {
  3934. v2 := make([]float64, len(v))
  3935. var i int
  3936. for k := range v {
  3937. v2[i] = float64(k)
  3938. i++
  3939. }
  3940. sort.Sort(floatSlice(v2))
  3941. if esep {
  3942. for _, k2 := range v2 {
  3943. ee.WriteMapElemKey()
  3944. ee.EncodeFloat32(float32(k2))
  3945. ee.WriteMapElemValue()
  3946. ee.EncodeStringEnc(cUTF8, v[float32(k2)])
  3947. }
  3948. } else {
  3949. for _, k2 := range v2 {
  3950. ee.EncodeFloat32(float32(k2))
  3951. ee.EncodeStringEnc(cUTF8, v[float32(k2)])
  3952. }
  3953. }
  3954. } else {
  3955. if esep {
  3956. for k2, v2 := range v {
  3957. ee.WriteMapElemKey()
  3958. ee.EncodeFloat32(k2)
  3959. ee.WriteMapElemValue()
  3960. ee.EncodeStringEnc(cUTF8, v2)
  3961. }
  3962. } else {
  3963. for k2, v2 := range v {
  3964. ee.EncodeFloat32(k2)
  3965. ee.EncodeStringEnc(cUTF8, v2)
  3966. }
  3967. }
  3968. }
  3969. ee.WriteMapEnd()
  3970. }
  3971. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3972. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3973. }
  3974. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3975. if v == nil {
  3976. e.e.EncodeNil()
  3977. return
  3978. }
  3979. ee, esep := e.e, e.hh.hasElemSeparators()
  3980. ee.WriteMapStart(len(v))
  3981. if e.h.Canonical {
  3982. v2 := make([]float64, len(v))
  3983. var i int
  3984. for k := range v {
  3985. v2[i] = float64(k)
  3986. i++
  3987. }
  3988. sort.Sort(floatSlice(v2))
  3989. if esep {
  3990. for _, k2 := range v2 {
  3991. ee.WriteMapElemKey()
  3992. ee.EncodeFloat32(float32(k2))
  3993. ee.WriteMapElemValue()
  3994. ee.EncodeUint(uint64(v[float32(k2)]))
  3995. }
  3996. } else {
  3997. for _, k2 := range v2 {
  3998. ee.EncodeFloat32(float32(k2))
  3999. ee.EncodeUint(uint64(v[float32(k2)]))
  4000. }
  4001. }
  4002. } else {
  4003. if esep {
  4004. for k2, v2 := range v {
  4005. ee.WriteMapElemKey()
  4006. ee.EncodeFloat32(k2)
  4007. ee.WriteMapElemValue()
  4008. ee.EncodeUint(uint64(v2))
  4009. }
  4010. } else {
  4011. for k2, v2 := range v {
  4012. ee.EncodeFloat32(k2)
  4013. ee.EncodeUint(uint64(v2))
  4014. }
  4015. }
  4016. }
  4017. ee.WriteMapEnd()
  4018. }
  4019. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  4020. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  4021. }
  4022. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  4023. if v == nil {
  4024. e.e.EncodeNil()
  4025. return
  4026. }
  4027. ee, esep := e.e, e.hh.hasElemSeparators()
  4028. ee.WriteMapStart(len(v))
  4029. if e.h.Canonical {
  4030. v2 := make([]float64, len(v))
  4031. var i int
  4032. for k := range v {
  4033. v2[i] = float64(k)
  4034. i++
  4035. }
  4036. sort.Sort(floatSlice(v2))
  4037. if esep {
  4038. for _, k2 := range v2 {
  4039. ee.WriteMapElemKey()
  4040. ee.EncodeFloat32(float32(k2))
  4041. ee.WriteMapElemValue()
  4042. ee.EncodeUint(uint64(v[float32(k2)]))
  4043. }
  4044. } else {
  4045. for _, k2 := range v2 {
  4046. ee.EncodeFloat32(float32(k2))
  4047. ee.EncodeUint(uint64(v[float32(k2)]))
  4048. }
  4049. }
  4050. } else {
  4051. if esep {
  4052. for k2, v2 := range v {
  4053. ee.WriteMapElemKey()
  4054. ee.EncodeFloat32(k2)
  4055. ee.WriteMapElemValue()
  4056. ee.EncodeUint(uint64(v2))
  4057. }
  4058. } else {
  4059. for k2, v2 := range v {
  4060. ee.EncodeFloat32(k2)
  4061. ee.EncodeUint(uint64(v2))
  4062. }
  4063. }
  4064. }
  4065. ee.WriteMapEnd()
  4066. }
  4067. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  4068. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  4069. }
  4070. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  4071. if v == nil {
  4072. e.e.EncodeNil()
  4073. return
  4074. }
  4075. ee, esep := e.e, e.hh.hasElemSeparators()
  4076. ee.WriteMapStart(len(v))
  4077. if e.h.Canonical {
  4078. v2 := make([]float64, len(v))
  4079. var i int
  4080. for k := range v {
  4081. v2[i] = float64(k)
  4082. i++
  4083. }
  4084. sort.Sort(floatSlice(v2))
  4085. if esep {
  4086. for _, k2 := range v2 {
  4087. ee.WriteMapElemKey()
  4088. ee.EncodeFloat32(float32(k2))
  4089. ee.WriteMapElemValue()
  4090. ee.EncodeUint(uint64(v[float32(k2)]))
  4091. }
  4092. } else {
  4093. for _, k2 := range v2 {
  4094. ee.EncodeFloat32(float32(k2))
  4095. ee.EncodeUint(uint64(v[float32(k2)]))
  4096. }
  4097. }
  4098. } else {
  4099. if esep {
  4100. for k2, v2 := range v {
  4101. ee.WriteMapElemKey()
  4102. ee.EncodeFloat32(k2)
  4103. ee.WriteMapElemValue()
  4104. ee.EncodeUint(uint64(v2))
  4105. }
  4106. } else {
  4107. for k2, v2 := range v {
  4108. ee.EncodeFloat32(k2)
  4109. ee.EncodeUint(uint64(v2))
  4110. }
  4111. }
  4112. }
  4113. ee.WriteMapEnd()
  4114. }
  4115. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  4116. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  4117. }
  4118. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  4119. if v == nil {
  4120. e.e.EncodeNil()
  4121. return
  4122. }
  4123. ee, esep := e.e, e.hh.hasElemSeparators()
  4124. ee.WriteMapStart(len(v))
  4125. if e.h.Canonical {
  4126. v2 := make([]float64, len(v))
  4127. var i int
  4128. for k := range v {
  4129. v2[i] = float64(k)
  4130. i++
  4131. }
  4132. sort.Sort(floatSlice(v2))
  4133. if esep {
  4134. for _, k2 := range v2 {
  4135. ee.WriteMapElemKey()
  4136. ee.EncodeFloat32(float32(k2))
  4137. ee.WriteMapElemValue()
  4138. ee.EncodeUint(uint64(v[float32(k2)]))
  4139. }
  4140. } else {
  4141. for _, k2 := range v2 {
  4142. ee.EncodeFloat32(float32(k2))
  4143. ee.EncodeUint(uint64(v[float32(k2)]))
  4144. }
  4145. }
  4146. } else {
  4147. if esep {
  4148. for k2, v2 := range v {
  4149. ee.WriteMapElemKey()
  4150. ee.EncodeFloat32(k2)
  4151. ee.WriteMapElemValue()
  4152. ee.EncodeUint(uint64(v2))
  4153. }
  4154. } else {
  4155. for k2, v2 := range v {
  4156. ee.EncodeFloat32(k2)
  4157. ee.EncodeUint(uint64(v2))
  4158. }
  4159. }
  4160. }
  4161. ee.WriteMapEnd()
  4162. }
  4163. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  4164. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  4165. }
  4166. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  4167. if v == nil {
  4168. e.e.EncodeNil()
  4169. return
  4170. }
  4171. ee, esep := e.e, e.hh.hasElemSeparators()
  4172. ee.WriteMapStart(len(v))
  4173. if e.h.Canonical {
  4174. v2 := make([]float64, len(v))
  4175. var i int
  4176. for k := range v {
  4177. v2[i] = float64(k)
  4178. i++
  4179. }
  4180. sort.Sort(floatSlice(v2))
  4181. if esep {
  4182. for _, k2 := range v2 {
  4183. ee.WriteMapElemKey()
  4184. ee.EncodeFloat32(float32(k2))
  4185. ee.WriteMapElemValue()
  4186. ee.EncodeUint(uint64(v[float32(k2)]))
  4187. }
  4188. } else {
  4189. for _, k2 := range v2 {
  4190. ee.EncodeFloat32(float32(k2))
  4191. ee.EncodeUint(uint64(v[float32(k2)]))
  4192. }
  4193. }
  4194. } else {
  4195. if esep {
  4196. for k2, v2 := range v {
  4197. ee.WriteMapElemKey()
  4198. ee.EncodeFloat32(k2)
  4199. ee.WriteMapElemValue()
  4200. ee.EncodeUint(uint64(v2))
  4201. }
  4202. } else {
  4203. for k2, v2 := range v {
  4204. ee.EncodeFloat32(k2)
  4205. ee.EncodeUint(uint64(v2))
  4206. }
  4207. }
  4208. }
  4209. ee.WriteMapEnd()
  4210. }
  4211. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  4212. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  4213. }
  4214. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  4215. if v == nil {
  4216. e.e.EncodeNil()
  4217. return
  4218. }
  4219. ee, esep := e.e, e.hh.hasElemSeparators()
  4220. ee.WriteMapStart(len(v))
  4221. if e.h.Canonical {
  4222. v2 := make([]float64, len(v))
  4223. var i int
  4224. for k := range v {
  4225. v2[i] = float64(k)
  4226. i++
  4227. }
  4228. sort.Sort(floatSlice(v2))
  4229. if esep {
  4230. for _, k2 := range v2 {
  4231. ee.WriteMapElemKey()
  4232. ee.EncodeFloat32(float32(k2))
  4233. ee.WriteMapElemValue()
  4234. e.encode(v[float32(k2)])
  4235. }
  4236. } else {
  4237. for _, k2 := range v2 {
  4238. ee.EncodeFloat32(float32(k2))
  4239. e.encode(v[float32(k2)])
  4240. }
  4241. }
  4242. } else {
  4243. if esep {
  4244. for k2, v2 := range v {
  4245. ee.WriteMapElemKey()
  4246. ee.EncodeFloat32(k2)
  4247. ee.WriteMapElemValue()
  4248. e.encode(v2)
  4249. }
  4250. } else {
  4251. for k2, v2 := range v {
  4252. ee.EncodeFloat32(k2)
  4253. e.encode(v2)
  4254. }
  4255. }
  4256. }
  4257. ee.WriteMapEnd()
  4258. }
  4259. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  4260. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  4261. }
  4262. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  4263. if v == nil {
  4264. e.e.EncodeNil()
  4265. return
  4266. }
  4267. ee, esep := e.e, e.hh.hasElemSeparators()
  4268. ee.WriteMapStart(len(v))
  4269. if e.h.Canonical {
  4270. v2 := make([]float64, len(v))
  4271. var i int
  4272. for k := range v {
  4273. v2[i] = float64(k)
  4274. i++
  4275. }
  4276. sort.Sort(floatSlice(v2))
  4277. if esep {
  4278. for _, k2 := range v2 {
  4279. ee.WriteMapElemKey()
  4280. ee.EncodeFloat32(float32(k2))
  4281. ee.WriteMapElemValue()
  4282. ee.EncodeInt(int64(v[float32(k2)]))
  4283. }
  4284. } else {
  4285. for _, k2 := range v2 {
  4286. ee.EncodeFloat32(float32(k2))
  4287. ee.EncodeInt(int64(v[float32(k2)]))
  4288. }
  4289. }
  4290. } else {
  4291. if esep {
  4292. for k2, v2 := range v {
  4293. ee.WriteMapElemKey()
  4294. ee.EncodeFloat32(k2)
  4295. ee.WriteMapElemValue()
  4296. ee.EncodeInt(int64(v2))
  4297. }
  4298. } else {
  4299. for k2, v2 := range v {
  4300. ee.EncodeFloat32(k2)
  4301. ee.EncodeInt(int64(v2))
  4302. }
  4303. }
  4304. }
  4305. ee.WriteMapEnd()
  4306. }
  4307. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  4308. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  4309. }
  4310. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  4311. if v == nil {
  4312. e.e.EncodeNil()
  4313. return
  4314. }
  4315. ee, esep := e.e, e.hh.hasElemSeparators()
  4316. ee.WriteMapStart(len(v))
  4317. if e.h.Canonical {
  4318. v2 := make([]float64, len(v))
  4319. var i int
  4320. for k := range v {
  4321. v2[i] = float64(k)
  4322. i++
  4323. }
  4324. sort.Sort(floatSlice(v2))
  4325. if esep {
  4326. for _, k2 := range v2 {
  4327. ee.WriteMapElemKey()
  4328. ee.EncodeFloat32(float32(k2))
  4329. ee.WriteMapElemValue()
  4330. ee.EncodeInt(int64(v[float32(k2)]))
  4331. }
  4332. } else {
  4333. for _, k2 := range v2 {
  4334. ee.EncodeFloat32(float32(k2))
  4335. ee.EncodeInt(int64(v[float32(k2)]))
  4336. }
  4337. }
  4338. } else {
  4339. if esep {
  4340. for k2, v2 := range v {
  4341. ee.WriteMapElemKey()
  4342. ee.EncodeFloat32(k2)
  4343. ee.WriteMapElemValue()
  4344. ee.EncodeInt(int64(v2))
  4345. }
  4346. } else {
  4347. for k2, v2 := range v {
  4348. ee.EncodeFloat32(k2)
  4349. ee.EncodeInt(int64(v2))
  4350. }
  4351. }
  4352. }
  4353. ee.WriteMapEnd()
  4354. }
  4355. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  4356. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  4357. }
  4358. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  4359. if v == nil {
  4360. e.e.EncodeNil()
  4361. return
  4362. }
  4363. ee, esep := e.e, e.hh.hasElemSeparators()
  4364. ee.WriteMapStart(len(v))
  4365. if e.h.Canonical {
  4366. v2 := make([]float64, len(v))
  4367. var i int
  4368. for k := range v {
  4369. v2[i] = float64(k)
  4370. i++
  4371. }
  4372. sort.Sort(floatSlice(v2))
  4373. if esep {
  4374. for _, k2 := range v2 {
  4375. ee.WriteMapElemKey()
  4376. ee.EncodeFloat32(float32(k2))
  4377. ee.WriteMapElemValue()
  4378. ee.EncodeInt(int64(v[float32(k2)]))
  4379. }
  4380. } else {
  4381. for _, k2 := range v2 {
  4382. ee.EncodeFloat32(float32(k2))
  4383. ee.EncodeInt(int64(v[float32(k2)]))
  4384. }
  4385. }
  4386. } else {
  4387. if esep {
  4388. for k2, v2 := range v {
  4389. ee.WriteMapElemKey()
  4390. ee.EncodeFloat32(k2)
  4391. ee.WriteMapElemValue()
  4392. ee.EncodeInt(int64(v2))
  4393. }
  4394. } else {
  4395. for k2, v2 := range v {
  4396. ee.EncodeFloat32(k2)
  4397. ee.EncodeInt(int64(v2))
  4398. }
  4399. }
  4400. }
  4401. ee.WriteMapEnd()
  4402. }
  4403. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  4404. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  4405. }
  4406. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  4407. if v == nil {
  4408. e.e.EncodeNil()
  4409. return
  4410. }
  4411. ee, esep := e.e, e.hh.hasElemSeparators()
  4412. ee.WriteMapStart(len(v))
  4413. if e.h.Canonical {
  4414. v2 := make([]float64, len(v))
  4415. var i int
  4416. for k := range v {
  4417. v2[i] = float64(k)
  4418. i++
  4419. }
  4420. sort.Sort(floatSlice(v2))
  4421. if esep {
  4422. for _, k2 := range v2 {
  4423. ee.WriteMapElemKey()
  4424. ee.EncodeFloat32(float32(k2))
  4425. ee.WriteMapElemValue()
  4426. ee.EncodeInt(int64(v[float32(k2)]))
  4427. }
  4428. } else {
  4429. for _, k2 := range v2 {
  4430. ee.EncodeFloat32(float32(k2))
  4431. ee.EncodeInt(int64(v[float32(k2)]))
  4432. }
  4433. }
  4434. } else {
  4435. if esep {
  4436. for k2, v2 := range v {
  4437. ee.WriteMapElemKey()
  4438. ee.EncodeFloat32(k2)
  4439. ee.WriteMapElemValue()
  4440. ee.EncodeInt(int64(v2))
  4441. }
  4442. } else {
  4443. for k2, v2 := range v {
  4444. ee.EncodeFloat32(k2)
  4445. ee.EncodeInt(int64(v2))
  4446. }
  4447. }
  4448. }
  4449. ee.WriteMapEnd()
  4450. }
  4451. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  4452. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  4453. }
  4454. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  4455. if v == nil {
  4456. e.e.EncodeNil()
  4457. return
  4458. }
  4459. ee, esep := e.e, e.hh.hasElemSeparators()
  4460. ee.WriteMapStart(len(v))
  4461. if e.h.Canonical {
  4462. v2 := make([]float64, len(v))
  4463. var i int
  4464. for k := range v {
  4465. v2[i] = float64(k)
  4466. i++
  4467. }
  4468. sort.Sort(floatSlice(v2))
  4469. if esep {
  4470. for _, k2 := range v2 {
  4471. ee.WriteMapElemKey()
  4472. ee.EncodeFloat32(float32(k2))
  4473. ee.WriteMapElemValue()
  4474. ee.EncodeInt(int64(v[float32(k2)]))
  4475. }
  4476. } else {
  4477. for _, k2 := range v2 {
  4478. ee.EncodeFloat32(float32(k2))
  4479. ee.EncodeInt(int64(v[float32(k2)]))
  4480. }
  4481. }
  4482. } else {
  4483. if esep {
  4484. for k2, v2 := range v {
  4485. ee.WriteMapElemKey()
  4486. ee.EncodeFloat32(k2)
  4487. ee.WriteMapElemValue()
  4488. ee.EncodeInt(int64(v2))
  4489. }
  4490. } else {
  4491. for k2, v2 := range v {
  4492. ee.EncodeFloat32(k2)
  4493. ee.EncodeInt(int64(v2))
  4494. }
  4495. }
  4496. }
  4497. ee.WriteMapEnd()
  4498. }
  4499. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  4500. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  4501. }
  4502. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  4503. if v == nil {
  4504. e.e.EncodeNil()
  4505. return
  4506. }
  4507. ee, esep := e.e, e.hh.hasElemSeparators()
  4508. ee.WriteMapStart(len(v))
  4509. if e.h.Canonical {
  4510. v2 := make([]float64, len(v))
  4511. var i int
  4512. for k := range v {
  4513. v2[i] = float64(k)
  4514. i++
  4515. }
  4516. sort.Sort(floatSlice(v2))
  4517. if esep {
  4518. for _, k2 := range v2 {
  4519. ee.WriteMapElemKey()
  4520. ee.EncodeFloat32(float32(k2))
  4521. ee.WriteMapElemValue()
  4522. ee.EncodeFloat32(v[float32(k2)])
  4523. }
  4524. } else {
  4525. for _, k2 := range v2 {
  4526. ee.EncodeFloat32(float32(k2))
  4527. ee.EncodeFloat32(v[float32(k2)])
  4528. }
  4529. }
  4530. } else {
  4531. if esep {
  4532. for k2, v2 := range v {
  4533. ee.WriteMapElemKey()
  4534. ee.EncodeFloat32(k2)
  4535. ee.WriteMapElemValue()
  4536. ee.EncodeFloat32(v2)
  4537. }
  4538. } else {
  4539. for k2, v2 := range v {
  4540. ee.EncodeFloat32(k2)
  4541. ee.EncodeFloat32(v2)
  4542. }
  4543. }
  4544. }
  4545. ee.WriteMapEnd()
  4546. }
  4547. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4548. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4549. }
  4550. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4551. if v == nil {
  4552. e.e.EncodeNil()
  4553. return
  4554. }
  4555. ee, esep := e.e, e.hh.hasElemSeparators()
  4556. ee.WriteMapStart(len(v))
  4557. if e.h.Canonical {
  4558. v2 := make([]float64, len(v))
  4559. var i int
  4560. for k := range v {
  4561. v2[i] = float64(k)
  4562. i++
  4563. }
  4564. sort.Sort(floatSlice(v2))
  4565. if esep {
  4566. for _, k2 := range v2 {
  4567. ee.WriteMapElemKey()
  4568. ee.EncodeFloat32(float32(k2))
  4569. ee.WriteMapElemValue()
  4570. ee.EncodeFloat64(v[float32(k2)])
  4571. }
  4572. } else {
  4573. for _, k2 := range v2 {
  4574. ee.EncodeFloat32(float32(k2))
  4575. ee.EncodeFloat64(v[float32(k2)])
  4576. }
  4577. }
  4578. } else {
  4579. if esep {
  4580. for k2, v2 := range v {
  4581. ee.WriteMapElemKey()
  4582. ee.EncodeFloat32(k2)
  4583. ee.WriteMapElemValue()
  4584. ee.EncodeFloat64(v2)
  4585. }
  4586. } else {
  4587. for k2, v2 := range v {
  4588. ee.EncodeFloat32(k2)
  4589. ee.EncodeFloat64(v2)
  4590. }
  4591. }
  4592. }
  4593. ee.WriteMapEnd()
  4594. }
  4595. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4596. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4597. }
  4598. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4599. if v == nil {
  4600. e.e.EncodeNil()
  4601. return
  4602. }
  4603. ee, esep := e.e, e.hh.hasElemSeparators()
  4604. ee.WriteMapStart(len(v))
  4605. if e.h.Canonical {
  4606. v2 := make([]float64, len(v))
  4607. var i int
  4608. for k := range v {
  4609. v2[i] = float64(k)
  4610. i++
  4611. }
  4612. sort.Sort(floatSlice(v2))
  4613. if esep {
  4614. for _, k2 := range v2 {
  4615. ee.WriteMapElemKey()
  4616. ee.EncodeFloat32(float32(k2))
  4617. ee.WriteMapElemValue()
  4618. ee.EncodeBool(v[float32(k2)])
  4619. }
  4620. } else {
  4621. for _, k2 := range v2 {
  4622. ee.EncodeFloat32(float32(k2))
  4623. ee.EncodeBool(v[float32(k2)])
  4624. }
  4625. }
  4626. } else {
  4627. if esep {
  4628. for k2, v2 := range v {
  4629. ee.WriteMapElemKey()
  4630. ee.EncodeFloat32(k2)
  4631. ee.WriteMapElemValue()
  4632. ee.EncodeBool(v2)
  4633. }
  4634. } else {
  4635. for k2, v2 := range v {
  4636. ee.EncodeFloat32(k2)
  4637. ee.EncodeBool(v2)
  4638. }
  4639. }
  4640. }
  4641. ee.WriteMapEnd()
  4642. }
  4643. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4644. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4645. }
  4646. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4647. if v == nil {
  4648. e.e.EncodeNil()
  4649. return
  4650. }
  4651. ee, esep := e.e, e.hh.hasElemSeparators()
  4652. ee.WriteMapStart(len(v))
  4653. if e.h.Canonical {
  4654. v2 := make([]float64, len(v))
  4655. var i int
  4656. for k := range v {
  4657. v2[i] = float64(k)
  4658. i++
  4659. }
  4660. sort.Sort(floatSlice(v2))
  4661. if esep {
  4662. for _, k2 := range v2 {
  4663. ee.WriteMapElemKey()
  4664. ee.EncodeFloat64(float64(k2))
  4665. ee.WriteMapElemValue()
  4666. e.encode(v[float64(k2)])
  4667. }
  4668. } else {
  4669. for _, k2 := range v2 {
  4670. ee.EncodeFloat64(float64(k2))
  4671. e.encode(v[float64(k2)])
  4672. }
  4673. }
  4674. } else {
  4675. if esep {
  4676. for k2, v2 := range v {
  4677. ee.WriteMapElemKey()
  4678. ee.EncodeFloat64(k2)
  4679. ee.WriteMapElemValue()
  4680. e.encode(v2)
  4681. }
  4682. } else {
  4683. for k2, v2 := range v {
  4684. ee.EncodeFloat64(k2)
  4685. e.encode(v2)
  4686. }
  4687. }
  4688. }
  4689. ee.WriteMapEnd()
  4690. }
  4691. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4692. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4693. }
  4694. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4695. if v == nil {
  4696. e.e.EncodeNil()
  4697. return
  4698. }
  4699. ee, esep := e.e, e.hh.hasElemSeparators()
  4700. ee.WriteMapStart(len(v))
  4701. if e.h.Canonical {
  4702. v2 := make([]float64, len(v))
  4703. var i int
  4704. for k := range v {
  4705. v2[i] = float64(k)
  4706. i++
  4707. }
  4708. sort.Sort(floatSlice(v2))
  4709. if esep {
  4710. for _, k2 := range v2 {
  4711. ee.WriteMapElemKey()
  4712. ee.EncodeFloat64(float64(k2))
  4713. ee.WriteMapElemValue()
  4714. ee.EncodeStringEnc(cUTF8, v[float64(k2)])
  4715. }
  4716. } else {
  4717. for _, k2 := range v2 {
  4718. ee.EncodeFloat64(float64(k2))
  4719. ee.EncodeStringEnc(cUTF8, v[float64(k2)])
  4720. }
  4721. }
  4722. } else {
  4723. if esep {
  4724. for k2, v2 := range v {
  4725. ee.WriteMapElemKey()
  4726. ee.EncodeFloat64(k2)
  4727. ee.WriteMapElemValue()
  4728. ee.EncodeStringEnc(cUTF8, v2)
  4729. }
  4730. } else {
  4731. for k2, v2 := range v {
  4732. ee.EncodeFloat64(k2)
  4733. ee.EncodeStringEnc(cUTF8, v2)
  4734. }
  4735. }
  4736. }
  4737. ee.WriteMapEnd()
  4738. }
  4739. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4740. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4741. }
  4742. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4743. if v == nil {
  4744. e.e.EncodeNil()
  4745. return
  4746. }
  4747. ee, esep := e.e, e.hh.hasElemSeparators()
  4748. ee.WriteMapStart(len(v))
  4749. if e.h.Canonical {
  4750. v2 := make([]float64, len(v))
  4751. var i int
  4752. for k := range v {
  4753. v2[i] = float64(k)
  4754. i++
  4755. }
  4756. sort.Sort(floatSlice(v2))
  4757. if esep {
  4758. for _, k2 := range v2 {
  4759. ee.WriteMapElemKey()
  4760. ee.EncodeFloat64(float64(k2))
  4761. ee.WriteMapElemValue()
  4762. ee.EncodeUint(uint64(v[float64(k2)]))
  4763. }
  4764. } else {
  4765. for _, k2 := range v2 {
  4766. ee.EncodeFloat64(float64(k2))
  4767. ee.EncodeUint(uint64(v[float64(k2)]))
  4768. }
  4769. }
  4770. } else {
  4771. if esep {
  4772. for k2, v2 := range v {
  4773. ee.WriteMapElemKey()
  4774. ee.EncodeFloat64(k2)
  4775. ee.WriteMapElemValue()
  4776. ee.EncodeUint(uint64(v2))
  4777. }
  4778. } else {
  4779. for k2, v2 := range v {
  4780. ee.EncodeFloat64(k2)
  4781. ee.EncodeUint(uint64(v2))
  4782. }
  4783. }
  4784. }
  4785. ee.WriteMapEnd()
  4786. }
  4787. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4788. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4789. }
  4790. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4791. if v == nil {
  4792. e.e.EncodeNil()
  4793. return
  4794. }
  4795. ee, esep := e.e, e.hh.hasElemSeparators()
  4796. ee.WriteMapStart(len(v))
  4797. if e.h.Canonical {
  4798. v2 := make([]float64, len(v))
  4799. var i int
  4800. for k := range v {
  4801. v2[i] = float64(k)
  4802. i++
  4803. }
  4804. sort.Sort(floatSlice(v2))
  4805. if esep {
  4806. for _, k2 := range v2 {
  4807. ee.WriteMapElemKey()
  4808. ee.EncodeFloat64(float64(k2))
  4809. ee.WriteMapElemValue()
  4810. ee.EncodeUint(uint64(v[float64(k2)]))
  4811. }
  4812. } else {
  4813. for _, k2 := range v2 {
  4814. ee.EncodeFloat64(float64(k2))
  4815. ee.EncodeUint(uint64(v[float64(k2)]))
  4816. }
  4817. }
  4818. } else {
  4819. if esep {
  4820. for k2, v2 := range v {
  4821. ee.WriteMapElemKey()
  4822. ee.EncodeFloat64(k2)
  4823. ee.WriteMapElemValue()
  4824. ee.EncodeUint(uint64(v2))
  4825. }
  4826. } else {
  4827. for k2, v2 := range v {
  4828. ee.EncodeFloat64(k2)
  4829. ee.EncodeUint(uint64(v2))
  4830. }
  4831. }
  4832. }
  4833. ee.WriteMapEnd()
  4834. }
  4835. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4836. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4837. }
  4838. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4839. if v == nil {
  4840. e.e.EncodeNil()
  4841. return
  4842. }
  4843. ee, esep := e.e, e.hh.hasElemSeparators()
  4844. ee.WriteMapStart(len(v))
  4845. if e.h.Canonical {
  4846. v2 := make([]float64, len(v))
  4847. var i int
  4848. for k := range v {
  4849. v2[i] = float64(k)
  4850. i++
  4851. }
  4852. sort.Sort(floatSlice(v2))
  4853. if esep {
  4854. for _, k2 := range v2 {
  4855. ee.WriteMapElemKey()
  4856. ee.EncodeFloat64(float64(k2))
  4857. ee.WriteMapElemValue()
  4858. ee.EncodeUint(uint64(v[float64(k2)]))
  4859. }
  4860. } else {
  4861. for _, k2 := range v2 {
  4862. ee.EncodeFloat64(float64(k2))
  4863. ee.EncodeUint(uint64(v[float64(k2)]))
  4864. }
  4865. }
  4866. } else {
  4867. if esep {
  4868. for k2, v2 := range v {
  4869. ee.WriteMapElemKey()
  4870. ee.EncodeFloat64(k2)
  4871. ee.WriteMapElemValue()
  4872. ee.EncodeUint(uint64(v2))
  4873. }
  4874. } else {
  4875. for k2, v2 := range v {
  4876. ee.EncodeFloat64(k2)
  4877. ee.EncodeUint(uint64(v2))
  4878. }
  4879. }
  4880. }
  4881. ee.WriteMapEnd()
  4882. }
  4883. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4884. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4885. }
  4886. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4887. if v == nil {
  4888. e.e.EncodeNil()
  4889. return
  4890. }
  4891. ee, esep := e.e, e.hh.hasElemSeparators()
  4892. ee.WriteMapStart(len(v))
  4893. if e.h.Canonical {
  4894. v2 := make([]float64, len(v))
  4895. var i int
  4896. for k := range v {
  4897. v2[i] = float64(k)
  4898. i++
  4899. }
  4900. sort.Sort(floatSlice(v2))
  4901. if esep {
  4902. for _, k2 := range v2 {
  4903. ee.WriteMapElemKey()
  4904. ee.EncodeFloat64(float64(k2))
  4905. ee.WriteMapElemValue()
  4906. ee.EncodeUint(uint64(v[float64(k2)]))
  4907. }
  4908. } else {
  4909. for _, k2 := range v2 {
  4910. ee.EncodeFloat64(float64(k2))
  4911. ee.EncodeUint(uint64(v[float64(k2)]))
  4912. }
  4913. }
  4914. } else {
  4915. if esep {
  4916. for k2, v2 := range v {
  4917. ee.WriteMapElemKey()
  4918. ee.EncodeFloat64(k2)
  4919. ee.WriteMapElemValue()
  4920. ee.EncodeUint(uint64(v2))
  4921. }
  4922. } else {
  4923. for k2, v2 := range v {
  4924. ee.EncodeFloat64(k2)
  4925. ee.EncodeUint(uint64(v2))
  4926. }
  4927. }
  4928. }
  4929. ee.WriteMapEnd()
  4930. }
  4931. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4932. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4933. }
  4934. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  4935. if v == nil {
  4936. e.e.EncodeNil()
  4937. return
  4938. }
  4939. ee, esep := e.e, e.hh.hasElemSeparators()
  4940. ee.WriteMapStart(len(v))
  4941. if e.h.Canonical {
  4942. v2 := make([]float64, len(v))
  4943. var i int
  4944. for k := range v {
  4945. v2[i] = float64(k)
  4946. i++
  4947. }
  4948. sort.Sort(floatSlice(v2))
  4949. if esep {
  4950. for _, k2 := range v2 {
  4951. ee.WriteMapElemKey()
  4952. ee.EncodeFloat64(float64(k2))
  4953. ee.WriteMapElemValue()
  4954. ee.EncodeUint(uint64(v[float64(k2)]))
  4955. }
  4956. } else {
  4957. for _, k2 := range v2 {
  4958. ee.EncodeFloat64(float64(k2))
  4959. ee.EncodeUint(uint64(v[float64(k2)]))
  4960. }
  4961. }
  4962. } else {
  4963. if esep {
  4964. for k2, v2 := range v {
  4965. ee.WriteMapElemKey()
  4966. ee.EncodeFloat64(k2)
  4967. ee.WriteMapElemValue()
  4968. ee.EncodeUint(uint64(v2))
  4969. }
  4970. } else {
  4971. for k2, v2 := range v {
  4972. ee.EncodeFloat64(k2)
  4973. ee.EncodeUint(uint64(v2))
  4974. }
  4975. }
  4976. }
  4977. ee.WriteMapEnd()
  4978. }
  4979. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4980. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4981. }
  4982. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4983. if v == nil {
  4984. e.e.EncodeNil()
  4985. return
  4986. }
  4987. ee, esep := e.e, e.hh.hasElemSeparators()
  4988. ee.WriteMapStart(len(v))
  4989. if e.h.Canonical {
  4990. v2 := make([]float64, len(v))
  4991. var i int
  4992. for k := range v {
  4993. v2[i] = float64(k)
  4994. i++
  4995. }
  4996. sort.Sort(floatSlice(v2))
  4997. if esep {
  4998. for _, k2 := range v2 {
  4999. ee.WriteMapElemKey()
  5000. ee.EncodeFloat64(float64(k2))
  5001. ee.WriteMapElemValue()
  5002. e.encode(v[float64(k2)])
  5003. }
  5004. } else {
  5005. for _, k2 := range v2 {
  5006. ee.EncodeFloat64(float64(k2))
  5007. e.encode(v[float64(k2)])
  5008. }
  5009. }
  5010. } else {
  5011. if esep {
  5012. for k2, v2 := range v {
  5013. ee.WriteMapElemKey()
  5014. ee.EncodeFloat64(k2)
  5015. ee.WriteMapElemValue()
  5016. e.encode(v2)
  5017. }
  5018. } else {
  5019. for k2, v2 := range v {
  5020. ee.EncodeFloat64(k2)
  5021. e.encode(v2)
  5022. }
  5023. }
  5024. }
  5025. ee.WriteMapEnd()
  5026. }
  5027. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  5028. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  5029. }
  5030. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  5031. if v == nil {
  5032. e.e.EncodeNil()
  5033. return
  5034. }
  5035. ee, esep := e.e, e.hh.hasElemSeparators()
  5036. ee.WriteMapStart(len(v))
  5037. if e.h.Canonical {
  5038. v2 := make([]float64, len(v))
  5039. var i int
  5040. for k := range v {
  5041. v2[i] = float64(k)
  5042. i++
  5043. }
  5044. sort.Sort(floatSlice(v2))
  5045. if esep {
  5046. for _, k2 := range v2 {
  5047. ee.WriteMapElemKey()
  5048. ee.EncodeFloat64(float64(k2))
  5049. ee.WriteMapElemValue()
  5050. ee.EncodeInt(int64(v[float64(k2)]))
  5051. }
  5052. } else {
  5053. for _, k2 := range v2 {
  5054. ee.EncodeFloat64(float64(k2))
  5055. ee.EncodeInt(int64(v[float64(k2)]))
  5056. }
  5057. }
  5058. } else {
  5059. if esep {
  5060. for k2, v2 := range v {
  5061. ee.WriteMapElemKey()
  5062. ee.EncodeFloat64(k2)
  5063. ee.WriteMapElemValue()
  5064. ee.EncodeInt(int64(v2))
  5065. }
  5066. } else {
  5067. for k2, v2 := range v {
  5068. ee.EncodeFloat64(k2)
  5069. ee.EncodeInt(int64(v2))
  5070. }
  5071. }
  5072. }
  5073. ee.WriteMapEnd()
  5074. }
  5075. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  5076. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  5077. }
  5078. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  5079. if v == nil {
  5080. e.e.EncodeNil()
  5081. return
  5082. }
  5083. ee, esep := e.e, e.hh.hasElemSeparators()
  5084. ee.WriteMapStart(len(v))
  5085. if e.h.Canonical {
  5086. v2 := make([]float64, len(v))
  5087. var i int
  5088. for k := range v {
  5089. v2[i] = float64(k)
  5090. i++
  5091. }
  5092. sort.Sort(floatSlice(v2))
  5093. if esep {
  5094. for _, k2 := range v2 {
  5095. ee.WriteMapElemKey()
  5096. ee.EncodeFloat64(float64(k2))
  5097. ee.WriteMapElemValue()
  5098. ee.EncodeInt(int64(v[float64(k2)]))
  5099. }
  5100. } else {
  5101. for _, k2 := range v2 {
  5102. ee.EncodeFloat64(float64(k2))
  5103. ee.EncodeInt(int64(v[float64(k2)]))
  5104. }
  5105. }
  5106. } else {
  5107. if esep {
  5108. for k2, v2 := range v {
  5109. ee.WriteMapElemKey()
  5110. ee.EncodeFloat64(k2)
  5111. ee.WriteMapElemValue()
  5112. ee.EncodeInt(int64(v2))
  5113. }
  5114. } else {
  5115. for k2, v2 := range v {
  5116. ee.EncodeFloat64(k2)
  5117. ee.EncodeInt(int64(v2))
  5118. }
  5119. }
  5120. }
  5121. ee.WriteMapEnd()
  5122. }
  5123. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  5124. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  5125. }
  5126. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  5127. if v == nil {
  5128. e.e.EncodeNil()
  5129. return
  5130. }
  5131. ee, esep := e.e, e.hh.hasElemSeparators()
  5132. ee.WriteMapStart(len(v))
  5133. if e.h.Canonical {
  5134. v2 := make([]float64, len(v))
  5135. var i int
  5136. for k := range v {
  5137. v2[i] = float64(k)
  5138. i++
  5139. }
  5140. sort.Sort(floatSlice(v2))
  5141. if esep {
  5142. for _, k2 := range v2 {
  5143. ee.WriteMapElemKey()
  5144. ee.EncodeFloat64(float64(k2))
  5145. ee.WriteMapElemValue()
  5146. ee.EncodeInt(int64(v[float64(k2)]))
  5147. }
  5148. } else {
  5149. for _, k2 := range v2 {
  5150. ee.EncodeFloat64(float64(k2))
  5151. ee.EncodeInt(int64(v[float64(k2)]))
  5152. }
  5153. }
  5154. } else {
  5155. if esep {
  5156. for k2, v2 := range v {
  5157. ee.WriteMapElemKey()
  5158. ee.EncodeFloat64(k2)
  5159. ee.WriteMapElemValue()
  5160. ee.EncodeInt(int64(v2))
  5161. }
  5162. } else {
  5163. for k2, v2 := range v {
  5164. ee.EncodeFloat64(k2)
  5165. ee.EncodeInt(int64(v2))
  5166. }
  5167. }
  5168. }
  5169. ee.WriteMapEnd()
  5170. }
  5171. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  5172. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  5173. }
  5174. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  5175. if v == nil {
  5176. e.e.EncodeNil()
  5177. return
  5178. }
  5179. ee, esep := e.e, e.hh.hasElemSeparators()
  5180. ee.WriteMapStart(len(v))
  5181. if e.h.Canonical {
  5182. v2 := make([]float64, len(v))
  5183. var i int
  5184. for k := range v {
  5185. v2[i] = float64(k)
  5186. i++
  5187. }
  5188. sort.Sort(floatSlice(v2))
  5189. if esep {
  5190. for _, k2 := range v2 {
  5191. ee.WriteMapElemKey()
  5192. ee.EncodeFloat64(float64(k2))
  5193. ee.WriteMapElemValue()
  5194. ee.EncodeInt(int64(v[float64(k2)]))
  5195. }
  5196. } else {
  5197. for _, k2 := range v2 {
  5198. ee.EncodeFloat64(float64(k2))
  5199. ee.EncodeInt(int64(v[float64(k2)]))
  5200. }
  5201. }
  5202. } else {
  5203. if esep {
  5204. for k2, v2 := range v {
  5205. ee.WriteMapElemKey()
  5206. ee.EncodeFloat64(k2)
  5207. ee.WriteMapElemValue()
  5208. ee.EncodeInt(int64(v2))
  5209. }
  5210. } else {
  5211. for k2, v2 := range v {
  5212. ee.EncodeFloat64(k2)
  5213. ee.EncodeInt(int64(v2))
  5214. }
  5215. }
  5216. }
  5217. ee.WriteMapEnd()
  5218. }
  5219. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  5220. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  5221. }
  5222. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  5223. if v == nil {
  5224. e.e.EncodeNil()
  5225. return
  5226. }
  5227. ee, esep := e.e, e.hh.hasElemSeparators()
  5228. ee.WriteMapStart(len(v))
  5229. if e.h.Canonical {
  5230. v2 := make([]float64, len(v))
  5231. var i int
  5232. for k := range v {
  5233. v2[i] = float64(k)
  5234. i++
  5235. }
  5236. sort.Sort(floatSlice(v2))
  5237. if esep {
  5238. for _, k2 := range v2 {
  5239. ee.WriteMapElemKey()
  5240. ee.EncodeFloat64(float64(k2))
  5241. ee.WriteMapElemValue()
  5242. ee.EncodeInt(int64(v[float64(k2)]))
  5243. }
  5244. } else {
  5245. for _, k2 := range v2 {
  5246. ee.EncodeFloat64(float64(k2))
  5247. ee.EncodeInt(int64(v[float64(k2)]))
  5248. }
  5249. }
  5250. } else {
  5251. if esep {
  5252. for k2, v2 := range v {
  5253. ee.WriteMapElemKey()
  5254. ee.EncodeFloat64(k2)
  5255. ee.WriteMapElemValue()
  5256. ee.EncodeInt(int64(v2))
  5257. }
  5258. } else {
  5259. for k2, v2 := range v {
  5260. ee.EncodeFloat64(k2)
  5261. ee.EncodeInt(int64(v2))
  5262. }
  5263. }
  5264. }
  5265. ee.WriteMapEnd()
  5266. }
  5267. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  5268. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  5269. }
  5270. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  5271. if v == nil {
  5272. e.e.EncodeNil()
  5273. return
  5274. }
  5275. ee, esep := e.e, e.hh.hasElemSeparators()
  5276. ee.WriteMapStart(len(v))
  5277. if e.h.Canonical {
  5278. v2 := make([]float64, len(v))
  5279. var i int
  5280. for k := range v {
  5281. v2[i] = float64(k)
  5282. i++
  5283. }
  5284. sort.Sort(floatSlice(v2))
  5285. if esep {
  5286. for _, k2 := range v2 {
  5287. ee.WriteMapElemKey()
  5288. ee.EncodeFloat64(float64(k2))
  5289. ee.WriteMapElemValue()
  5290. ee.EncodeFloat32(v[float64(k2)])
  5291. }
  5292. } else {
  5293. for _, k2 := range v2 {
  5294. ee.EncodeFloat64(float64(k2))
  5295. ee.EncodeFloat32(v[float64(k2)])
  5296. }
  5297. }
  5298. } else {
  5299. if esep {
  5300. for k2, v2 := range v {
  5301. ee.WriteMapElemKey()
  5302. ee.EncodeFloat64(k2)
  5303. ee.WriteMapElemValue()
  5304. ee.EncodeFloat32(v2)
  5305. }
  5306. } else {
  5307. for k2, v2 := range v {
  5308. ee.EncodeFloat64(k2)
  5309. ee.EncodeFloat32(v2)
  5310. }
  5311. }
  5312. }
  5313. ee.WriteMapEnd()
  5314. }
  5315. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  5316. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  5317. }
  5318. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  5319. if v == nil {
  5320. e.e.EncodeNil()
  5321. return
  5322. }
  5323. ee, esep := e.e, e.hh.hasElemSeparators()
  5324. ee.WriteMapStart(len(v))
  5325. if e.h.Canonical {
  5326. v2 := make([]float64, len(v))
  5327. var i int
  5328. for k := range v {
  5329. v2[i] = float64(k)
  5330. i++
  5331. }
  5332. sort.Sort(floatSlice(v2))
  5333. if esep {
  5334. for _, k2 := range v2 {
  5335. ee.WriteMapElemKey()
  5336. ee.EncodeFloat64(float64(k2))
  5337. ee.WriteMapElemValue()
  5338. ee.EncodeFloat64(v[float64(k2)])
  5339. }
  5340. } else {
  5341. for _, k2 := range v2 {
  5342. ee.EncodeFloat64(float64(k2))
  5343. ee.EncodeFloat64(v[float64(k2)])
  5344. }
  5345. }
  5346. } else {
  5347. if esep {
  5348. for k2, v2 := range v {
  5349. ee.WriteMapElemKey()
  5350. ee.EncodeFloat64(k2)
  5351. ee.WriteMapElemValue()
  5352. ee.EncodeFloat64(v2)
  5353. }
  5354. } else {
  5355. for k2, v2 := range v {
  5356. ee.EncodeFloat64(k2)
  5357. ee.EncodeFloat64(v2)
  5358. }
  5359. }
  5360. }
  5361. ee.WriteMapEnd()
  5362. }
  5363. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  5364. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  5365. }
  5366. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  5367. if v == nil {
  5368. e.e.EncodeNil()
  5369. return
  5370. }
  5371. ee, esep := e.e, e.hh.hasElemSeparators()
  5372. ee.WriteMapStart(len(v))
  5373. if e.h.Canonical {
  5374. v2 := make([]float64, len(v))
  5375. var i int
  5376. for k := range v {
  5377. v2[i] = float64(k)
  5378. i++
  5379. }
  5380. sort.Sort(floatSlice(v2))
  5381. if esep {
  5382. for _, k2 := range v2 {
  5383. ee.WriteMapElemKey()
  5384. ee.EncodeFloat64(float64(k2))
  5385. ee.WriteMapElemValue()
  5386. ee.EncodeBool(v[float64(k2)])
  5387. }
  5388. } else {
  5389. for _, k2 := range v2 {
  5390. ee.EncodeFloat64(float64(k2))
  5391. ee.EncodeBool(v[float64(k2)])
  5392. }
  5393. }
  5394. } else {
  5395. if esep {
  5396. for k2, v2 := range v {
  5397. ee.WriteMapElemKey()
  5398. ee.EncodeFloat64(k2)
  5399. ee.WriteMapElemValue()
  5400. ee.EncodeBool(v2)
  5401. }
  5402. } else {
  5403. for k2, v2 := range v {
  5404. ee.EncodeFloat64(k2)
  5405. ee.EncodeBool(v2)
  5406. }
  5407. }
  5408. }
  5409. ee.WriteMapEnd()
  5410. }
  5411. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5412. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5413. }
  5414. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5415. if v == nil {
  5416. e.e.EncodeNil()
  5417. return
  5418. }
  5419. ee, esep := e.e, e.hh.hasElemSeparators()
  5420. ee.WriteMapStart(len(v))
  5421. if e.h.Canonical {
  5422. v2 := make([]uint64, len(v))
  5423. var i int
  5424. for k := range v {
  5425. v2[i] = uint64(k)
  5426. i++
  5427. }
  5428. sort.Sort(uintSlice(v2))
  5429. if esep {
  5430. for _, k2 := range v2 {
  5431. ee.WriteMapElemKey()
  5432. ee.EncodeUint(uint64(uint(k2)))
  5433. ee.WriteMapElemValue()
  5434. e.encode(v[uint(k2)])
  5435. }
  5436. } else {
  5437. for _, k2 := range v2 {
  5438. ee.EncodeUint(uint64(uint(k2)))
  5439. e.encode(v[uint(k2)])
  5440. }
  5441. }
  5442. } else {
  5443. if esep {
  5444. for k2, v2 := range v {
  5445. ee.WriteMapElemKey()
  5446. ee.EncodeUint(uint64(k2))
  5447. ee.WriteMapElemValue()
  5448. e.encode(v2)
  5449. }
  5450. } else {
  5451. for k2, v2 := range v {
  5452. ee.EncodeUint(uint64(k2))
  5453. e.encode(v2)
  5454. }
  5455. }
  5456. }
  5457. ee.WriteMapEnd()
  5458. }
  5459. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  5460. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  5461. }
  5462. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  5463. if v == nil {
  5464. e.e.EncodeNil()
  5465. return
  5466. }
  5467. ee, esep := e.e, e.hh.hasElemSeparators()
  5468. ee.WriteMapStart(len(v))
  5469. if e.h.Canonical {
  5470. v2 := make([]uint64, len(v))
  5471. var i int
  5472. for k := range v {
  5473. v2[i] = uint64(k)
  5474. i++
  5475. }
  5476. sort.Sort(uintSlice(v2))
  5477. if esep {
  5478. for _, k2 := range v2 {
  5479. ee.WriteMapElemKey()
  5480. ee.EncodeUint(uint64(uint(k2)))
  5481. ee.WriteMapElemValue()
  5482. ee.EncodeStringEnc(cUTF8, v[uint(k2)])
  5483. }
  5484. } else {
  5485. for _, k2 := range v2 {
  5486. ee.EncodeUint(uint64(uint(k2)))
  5487. ee.EncodeStringEnc(cUTF8, v[uint(k2)])
  5488. }
  5489. }
  5490. } else {
  5491. if esep {
  5492. for k2, v2 := range v {
  5493. ee.WriteMapElemKey()
  5494. ee.EncodeUint(uint64(k2))
  5495. ee.WriteMapElemValue()
  5496. ee.EncodeStringEnc(cUTF8, v2)
  5497. }
  5498. } else {
  5499. for k2, v2 := range v {
  5500. ee.EncodeUint(uint64(k2))
  5501. ee.EncodeStringEnc(cUTF8, v2)
  5502. }
  5503. }
  5504. }
  5505. ee.WriteMapEnd()
  5506. }
  5507. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  5508. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  5509. }
  5510. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  5511. if v == nil {
  5512. e.e.EncodeNil()
  5513. return
  5514. }
  5515. ee, esep := e.e, e.hh.hasElemSeparators()
  5516. ee.WriteMapStart(len(v))
  5517. if e.h.Canonical {
  5518. v2 := make([]uint64, len(v))
  5519. var i int
  5520. for k := range v {
  5521. v2[i] = uint64(k)
  5522. i++
  5523. }
  5524. sort.Sort(uintSlice(v2))
  5525. if esep {
  5526. for _, k2 := range v2 {
  5527. ee.WriteMapElemKey()
  5528. ee.EncodeUint(uint64(uint(k2)))
  5529. ee.WriteMapElemValue()
  5530. ee.EncodeUint(uint64(v[uint(k2)]))
  5531. }
  5532. } else {
  5533. for _, k2 := range v2 {
  5534. ee.EncodeUint(uint64(uint(k2)))
  5535. ee.EncodeUint(uint64(v[uint(k2)]))
  5536. }
  5537. }
  5538. } else {
  5539. if esep {
  5540. for k2, v2 := range v {
  5541. ee.WriteMapElemKey()
  5542. ee.EncodeUint(uint64(k2))
  5543. ee.WriteMapElemValue()
  5544. ee.EncodeUint(uint64(v2))
  5545. }
  5546. } else {
  5547. for k2, v2 := range v {
  5548. ee.EncodeUint(uint64(k2))
  5549. ee.EncodeUint(uint64(v2))
  5550. }
  5551. }
  5552. }
  5553. ee.WriteMapEnd()
  5554. }
  5555. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  5556. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  5557. }
  5558. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  5559. if v == nil {
  5560. e.e.EncodeNil()
  5561. return
  5562. }
  5563. ee, esep := e.e, e.hh.hasElemSeparators()
  5564. ee.WriteMapStart(len(v))
  5565. if e.h.Canonical {
  5566. v2 := make([]uint64, len(v))
  5567. var i int
  5568. for k := range v {
  5569. v2[i] = uint64(k)
  5570. i++
  5571. }
  5572. sort.Sort(uintSlice(v2))
  5573. if esep {
  5574. for _, k2 := range v2 {
  5575. ee.WriteMapElemKey()
  5576. ee.EncodeUint(uint64(uint(k2)))
  5577. ee.WriteMapElemValue()
  5578. ee.EncodeUint(uint64(v[uint(k2)]))
  5579. }
  5580. } else {
  5581. for _, k2 := range v2 {
  5582. ee.EncodeUint(uint64(uint(k2)))
  5583. ee.EncodeUint(uint64(v[uint(k2)]))
  5584. }
  5585. }
  5586. } else {
  5587. if esep {
  5588. for k2, v2 := range v {
  5589. ee.WriteMapElemKey()
  5590. ee.EncodeUint(uint64(k2))
  5591. ee.WriteMapElemValue()
  5592. ee.EncodeUint(uint64(v2))
  5593. }
  5594. } else {
  5595. for k2, v2 := range v {
  5596. ee.EncodeUint(uint64(k2))
  5597. ee.EncodeUint(uint64(v2))
  5598. }
  5599. }
  5600. }
  5601. ee.WriteMapEnd()
  5602. }
  5603. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  5604. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  5605. }
  5606. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  5607. if v == nil {
  5608. e.e.EncodeNil()
  5609. return
  5610. }
  5611. ee, esep := e.e, e.hh.hasElemSeparators()
  5612. ee.WriteMapStart(len(v))
  5613. if e.h.Canonical {
  5614. v2 := make([]uint64, len(v))
  5615. var i int
  5616. for k := range v {
  5617. v2[i] = uint64(k)
  5618. i++
  5619. }
  5620. sort.Sort(uintSlice(v2))
  5621. if esep {
  5622. for _, k2 := range v2 {
  5623. ee.WriteMapElemKey()
  5624. ee.EncodeUint(uint64(uint(k2)))
  5625. ee.WriteMapElemValue()
  5626. ee.EncodeUint(uint64(v[uint(k2)]))
  5627. }
  5628. } else {
  5629. for _, k2 := range v2 {
  5630. ee.EncodeUint(uint64(uint(k2)))
  5631. ee.EncodeUint(uint64(v[uint(k2)]))
  5632. }
  5633. }
  5634. } else {
  5635. if esep {
  5636. for k2, v2 := range v {
  5637. ee.WriteMapElemKey()
  5638. ee.EncodeUint(uint64(k2))
  5639. ee.WriteMapElemValue()
  5640. ee.EncodeUint(uint64(v2))
  5641. }
  5642. } else {
  5643. for k2, v2 := range v {
  5644. ee.EncodeUint(uint64(k2))
  5645. ee.EncodeUint(uint64(v2))
  5646. }
  5647. }
  5648. }
  5649. ee.WriteMapEnd()
  5650. }
  5651. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  5652. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  5653. }
  5654. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  5655. if v == nil {
  5656. e.e.EncodeNil()
  5657. return
  5658. }
  5659. ee, esep := e.e, e.hh.hasElemSeparators()
  5660. ee.WriteMapStart(len(v))
  5661. if e.h.Canonical {
  5662. v2 := make([]uint64, len(v))
  5663. var i int
  5664. for k := range v {
  5665. v2[i] = uint64(k)
  5666. i++
  5667. }
  5668. sort.Sort(uintSlice(v2))
  5669. if esep {
  5670. for _, k2 := range v2 {
  5671. ee.WriteMapElemKey()
  5672. ee.EncodeUint(uint64(uint(k2)))
  5673. ee.WriteMapElemValue()
  5674. ee.EncodeUint(uint64(v[uint(k2)]))
  5675. }
  5676. } else {
  5677. for _, k2 := range v2 {
  5678. ee.EncodeUint(uint64(uint(k2)))
  5679. ee.EncodeUint(uint64(v[uint(k2)]))
  5680. }
  5681. }
  5682. } else {
  5683. if esep {
  5684. for k2, v2 := range v {
  5685. ee.WriteMapElemKey()
  5686. ee.EncodeUint(uint64(k2))
  5687. ee.WriteMapElemValue()
  5688. ee.EncodeUint(uint64(v2))
  5689. }
  5690. } else {
  5691. for k2, v2 := range v {
  5692. ee.EncodeUint(uint64(k2))
  5693. ee.EncodeUint(uint64(v2))
  5694. }
  5695. }
  5696. }
  5697. ee.WriteMapEnd()
  5698. }
  5699. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  5700. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  5701. }
  5702. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  5703. if v == nil {
  5704. e.e.EncodeNil()
  5705. return
  5706. }
  5707. ee, esep := e.e, e.hh.hasElemSeparators()
  5708. ee.WriteMapStart(len(v))
  5709. if e.h.Canonical {
  5710. v2 := make([]uint64, len(v))
  5711. var i int
  5712. for k := range v {
  5713. v2[i] = uint64(k)
  5714. i++
  5715. }
  5716. sort.Sort(uintSlice(v2))
  5717. if esep {
  5718. for _, k2 := range v2 {
  5719. ee.WriteMapElemKey()
  5720. ee.EncodeUint(uint64(uint(k2)))
  5721. ee.WriteMapElemValue()
  5722. ee.EncodeUint(uint64(v[uint(k2)]))
  5723. }
  5724. } else {
  5725. for _, k2 := range v2 {
  5726. ee.EncodeUint(uint64(uint(k2)))
  5727. ee.EncodeUint(uint64(v[uint(k2)]))
  5728. }
  5729. }
  5730. } else {
  5731. if esep {
  5732. for k2, v2 := range v {
  5733. ee.WriteMapElemKey()
  5734. ee.EncodeUint(uint64(k2))
  5735. ee.WriteMapElemValue()
  5736. ee.EncodeUint(uint64(v2))
  5737. }
  5738. } else {
  5739. for k2, v2 := range v {
  5740. ee.EncodeUint(uint64(k2))
  5741. ee.EncodeUint(uint64(v2))
  5742. }
  5743. }
  5744. }
  5745. ee.WriteMapEnd()
  5746. }
  5747. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  5748. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  5749. }
  5750. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  5751. if v == nil {
  5752. e.e.EncodeNil()
  5753. return
  5754. }
  5755. ee, esep := e.e, e.hh.hasElemSeparators()
  5756. ee.WriteMapStart(len(v))
  5757. if e.h.Canonical {
  5758. v2 := make([]uint64, len(v))
  5759. var i int
  5760. for k := range v {
  5761. v2[i] = uint64(k)
  5762. i++
  5763. }
  5764. sort.Sort(uintSlice(v2))
  5765. if esep {
  5766. for _, k2 := range v2 {
  5767. ee.WriteMapElemKey()
  5768. ee.EncodeUint(uint64(uint(k2)))
  5769. ee.WriteMapElemValue()
  5770. e.encode(v[uint(k2)])
  5771. }
  5772. } else {
  5773. for _, k2 := range v2 {
  5774. ee.EncodeUint(uint64(uint(k2)))
  5775. e.encode(v[uint(k2)])
  5776. }
  5777. }
  5778. } else {
  5779. if esep {
  5780. for k2, v2 := range v {
  5781. ee.WriteMapElemKey()
  5782. ee.EncodeUint(uint64(k2))
  5783. ee.WriteMapElemValue()
  5784. e.encode(v2)
  5785. }
  5786. } else {
  5787. for k2, v2 := range v {
  5788. ee.EncodeUint(uint64(k2))
  5789. e.encode(v2)
  5790. }
  5791. }
  5792. }
  5793. ee.WriteMapEnd()
  5794. }
  5795. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  5796. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  5797. }
  5798. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5799. if v == nil {
  5800. e.e.EncodeNil()
  5801. return
  5802. }
  5803. ee, esep := e.e, e.hh.hasElemSeparators()
  5804. ee.WriteMapStart(len(v))
  5805. if e.h.Canonical {
  5806. v2 := make([]uint64, len(v))
  5807. var i int
  5808. for k := range v {
  5809. v2[i] = uint64(k)
  5810. i++
  5811. }
  5812. sort.Sort(uintSlice(v2))
  5813. if esep {
  5814. for _, k2 := range v2 {
  5815. ee.WriteMapElemKey()
  5816. ee.EncodeUint(uint64(uint(k2)))
  5817. ee.WriteMapElemValue()
  5818. ee.EncodeInt(int64(v[uint(k2)]))
  5819. }
  5820. } else {
  5821. for _, k2 := range v2 {
  5822. ee.EncodeUint(uint64(uint(k2)))
  5823. ee.EncodeInt(int64(v[uint(k2)]))
  5824. }
  5825. }
  5826. } else {
  5827. if esep {
  5828. for k2, v2 := range v {
  5829. ee.WriteMapElemKey()
  5830. ee.EncodeUint(uint64(k2))
  5831. ee.WriteMapElemValue()
  5832. ee.EncodeInt(int64(v2))
  5833. }
  5834. } else {
  5835. for k2, v2 := range v {
  5836. ee.EncodeUint(uint64(k2))
  5837. ee.EncodeInt(int64(v2))
  5838. }
  5839. }
  5840. }
  5841. ee.WriteMapEnd()
  5842. }
  5843. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5844. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5845. }
  5846. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5847. if v == nil {
  5848. e.e.EncodeNil()
  5849. return
  5850. }
  5851. ee, esep := e.e, e.hh.hasElemSeparators()
  5852. ee.WriteMapStart(len(v))
  5853. if e.h.Canonical {
  5854. v2 := make([]uint64, len(v))
  5855. var i int
  5856. for k := range v {
  5857. v2[i] = uint64(k)
  5858. i++
  5859. }
  5860. sort.Sort(uintSlice(v2))
  5861. if esep {
  5862. for _, k2 := range v2 {
  5863. ee.WriteMapElemKey()
  5864. ee.EncodeUint(uint64(uint(k2)))
  5865. ee.WriteMapElemValue()
  5866. ee.EncodeInt(int64(v[uint(k2)]))
  5867. }
  5868. } else {
  5869. for _, k2 := range v2 {
  5870. ee.EncodeUint(uint64(uint(k2)))
  5871. ee.EncodeInt(int64(v[uint(k2)]))
  5872. }
  5873. }
  5874. } else {
  5875. if esep {
  5876. for k2, v2 := range v {
  5877. ee.WriteMapElemKey()
  5878. ee.EncodeUint(uint64(k2))
  5879. ee.WriteMapElemValue()
  5880. ee.EncodeInt(int64(v2))
  5881. }
  5882. } else {
  5883. for k2, v2 := range v {
  5884. ee.EncodeUint(uint64(k2))
  5885. ee.EncodeInt(int64(v2))
  5886. }
  5887. }
  5888. }
  5889. ee.WriteMapEnd()
  5890. }
  5891. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5892. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5893. }
  5894. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5895. if v == nil {
  5896. e.e.EncodeNil()
  5897. return
  5898. }
  5899. ee, esep := e.e, e.hh.hasElemSeparators()
  5900. ee.WriteMapStart(len(v))
  5901. if e.h.Canonical {
  5902. v2 := make([]uint64, len(v))
  5903. var i int
  5904. for k := range v {
  5905. v2[i] = uint64(k)
  5906. i++
  5907. }
  5908. sort.Sort(uintSlice(v2))
  5909. if esep {
  5910. for _, k2 := range v2 {
  5911. ee.WriteMapElemKey()
  5912. ee.EncodeUint(uint64(uint(k2)))
  5913. ee.WriteMapElemValue()
  5914. ee.EncodeInt(int64(v[uint(k2)]))
  5915. }
  5916. } else {
  5917. for _, k2 := range v2 {
  5918. ee.EncodeUint(uint64(uint(k2)))
  5919. ee.EncodeInt(int64(v[uint(k2)]))
  5920. }
  5921. }
  5922. } else {
  5923. if esep {
  5924. for k2, v2 := range v {
  5925. ee.WriteMapElemKey()
  5926. ee.EncodeUint(uint64(k2))
  5927. ee.WriteMapElemValue()
  5928. ee.EncodeInt(int64(v2))
  5929. }
  5930. } else {
  5931. for k2, v2 := range v {
  5932. ee.EncodeUint(uint64(k2))
  5933. ee.EncodeInt(int64(v2))
  5934. }
  5935. }
  5936. }
  5937. ee.WriteMapEnd()
  5938. }
  5939. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5940. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5941. }
  5942. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5943. if v == nil {
  5944. e.e.EncodeNil()
  5945. return
  5946. }
  5947. ee, esep := e.e, e.hh.hasElemSeparators()
  5948. ee.WriteMapStart(len(v))
  5949. if e.h.Canonical {
  5950. v2 := make([]uint64, len(v))
  5951. var i int
  5952. for k := range v {
  5953. v2[i] = uint64(k)
  5954. i++
  5955. }
  5956. sort.Sort(uintSlice(v2))
  5957. if esep {
  5958. for _, k2 := range v2 {
  5959. ee.WriteMapElemKey()
  5960. ee.EncodeUint(uint64(uint(k2)))
  5961. ee.WriteMapElemValue()
  5962. ee.EncodeInt(int64(v[uint(k2)]))
  5963. }
  5964. } else {
  5965. for _, k2 := range v2 {
  5966. ee.EncodeUint(uint64(uint(k2)))
  5967. ee.EncodeInt(int64(v[uint(k2)]))
  5968. }
  5969. }
  5970. } else {
  5971. if esep {
  5972. for k2, v2 := range v {
  5973. ee.WriteMapElemKey()
  5974. ee.EncodeUint(uint64(k2))
  5975. ee.WriteMapElemValue()
  5976. ee.EncodeInt(int64(v2))
  5977. }
  5978. } else {
  5979. for k2, v2 := range v {
  5980. ee.EncodeUint(uint64(k2))
  5981. ee.EncodeInt(int64(v2))
  5982. }
  5983. }
  5984. }
  5985. ee.WriteMapEnd()
  5986. }
  5987. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5988. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5989. }
  5990. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5991. if v == nil {
  5992. e.e.EncodeNil()
  5993. return
  5994. }
  5995. ee, esep := e.e, e.hh.hasElemSeparators()
  5996. ee.WriteMapStart(len(v))
  5997. if e.h.Canonical {
  5998. v2 := make([]uint64, len(v))
  5999. var i int
  6000. for k := range v {
  6001. v2[i] = uint64(k)
  6002. i++
  6003. }
  6004. sort.Sort(uintSlice(v2))
  6005. if esep {
  6006. for _, k2 := range v2 {
  6007. ee.WriteMapElemKey()
  6008. ee.EncodeUint(uint64(uint(k2)))
  6009. ee.WriteMapElemValue()
  6010. ee.EncodeInt(int64(v[uint(k2)]))
  6011. }
  6012. } else {
  6013. for _, k2 := range v2 {
  6014. ee.EncodeUint(uint64(uint(k2)))
  6015. ee.EncodeInt(int64(v[uint(k2)]))
  6016. }
  6017. }
  6018. } else {
  6019. if esep {
  6020. for k2, v2 := range v {
  6021. ee.WriteMapElemKey()
  6022. ee.EncodeUint(uint64(k2))
  6023. ee.WriteMapElemValue()
  6024. ee.EncodeInt(int64(v2))
  6025. }
  6026. } else {
  6027. for k2, v2 := range v {
  6028. ee.EncodeUint(uint64(k2))
  6029. ee.EncodeInt(int64(v2))
  6030. }
  6031. }
  6032. }
  6033. ee.WriteMapEnd()
  6034. }
  6035. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  6036. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  6037. }
  6038. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  6039. if v == nil {
  6040. e.e.EncodeNil()
  6041. return
  6042. }
  6043. ee, esep := e.e, e.hh.hasElemSeparators()
  6044. ee.WriteMapStart(len(v))
  6045. if e.h.Canonical {
  6046. v2 := make([]uint64, len(v))
  6047. var i int
  6048. for k := range v {
  6049. v2[i] = uint64(k)
  6050. i++
  6051. }
  6052. sort.Sort(uintSlice(v2))
  6053. if esep {
  6054. for _, k2 := range v2 {
  6055. ee.WriteMapElemKey()
  6056. ee.EncodeUint(uint64(uint(k2)))
  6057. ee.WriteMapElemValue()
  6058. ee.EncodeFloat32(v[uint(k2)])
  6059. }
  6060. } else {
  6061. for _, k2 := range v2 {
  6062. ee.EncodeUint(uint64(uint(k2)))
  6063. ee.EncodeFloat32(v[uint(k2)])
  6064. }
  6065. }
  6066. } else {
  6067. if esep {
  6068. for k2, v2 := range v {
  6069. ee.WriteMapElemKey()
  6070. ee.EncodeUint(uint64(k2))
  6071. ee.WriteMapElemValue()
  6072. ee.EncodeFloat32(v2)
  6073. }
  6074. } else {
  6075. for k2, v2 := range v {
  6076. ee.EncodeUint(uint64(k2))
  6077. ee.EncodeFloat32(v2)
  6078. }
  6079. }
  6080. }
  6081. ee.WriteMapEnd()
  6082. }
  6083. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  6084. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  6085. }
  6086. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  6087. if v == nil {
  6088. e.e.EncodeNil()
  6089. return
  6090. }
  6091. ee, esep := e.e, e.hh.hasElemSeparators()
  6092. ee.WriteMapStart(len(v))
  6093. if e.h.Canonical {
  6094. v2 := make([]uint64, len(v))
  6095. var i int
  6096. for k := range v {
  6097. v2[i] = uint64(k)
  6098. i++
  6099. }
  6100. sort.Sort(uintSlice(v2))
  6101. if esep {
  6102. for _, k2 := range v2 {
  6103. ee.WriteMapElemKey()
  6104. ee.EncodeUint(uint64(uint(k2)))
  6105. ee.WriteMapElemValue()
  6106. ee.EncodeFloat64(v[uint(k2)])
  6107. }
  6108. } else {
  6109. for _, k2 := range v2 {
  6110. ee.EncodeUint(uint64(uint(k2)))
  6111. ee.EncodeFloat64(v[uint(k2)])
  6112. }
  6113. }
  6114. } else {
  6115. if esep {
  6116. for k2, v2 := range v {
  6117. ee.WriteMapElemKey()
  6118. ee.EncodeUint(uint64(k2))
  6119. ee.WriteMapElemValue()
  6120. ee.EncodeFloat64(v2)
  6121. }
  6122. } else {
  6123. for k2, v2 := range v {
  6124. ee.EncodeUint(uint64(k2))
  6125. ee.EncodeFloat64(v2)
  6126. }
  6127. }
  6128. }
  6129. ee.WriteMapEnd()
  6130. }
  6131. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  6132. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  6133. }
  6134. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  6135. if v == nil {
  6136. e.e.EncodeNil()
  6137. return
  6138. }
  6139. ee, esep := e.e, e.hh.hasElemSeparators()
  6140. ee.WriteMapStart(len(v))
  6141. if e.h.Canonical {
  6142. v2 := make([]uint64, len(v))
  6143. var i int
  6144. for k := range v {
  6145. v2[i] = uint64(k)
  6146. i++
  6147. }
  6148. sort.Sort(uintSlice(v2))
  6149. if esep {
  6150. for _, k2 := range v2 {
  6151. ee.WriteMapElemKey()
  6152. ee.EncodeUint(uint64(uint(k2)))
  6153. ee.WriteMapElemValue()
  6154. ee.EncodeBool(v[uint(k2)])
  6155. }
  6156. } else {
  6157. for _, k2 := range v2 {
  6158. ee.EncodeUint(uint64(uint(k2)))
  6159. ee.EncodeBool(v[uint(k2)])
  6160. }
  6161. }
  6162. } else {
  6163. if esep {
  6164. for k2, v2 := range v {
  6165. ee.WriteMapElemKey()
  6166. ee.EncodeUint(uint64(k2))
  6167. ee.WriteMapElemValue()
  6168. ee.EncodeBool(v2)
  6169. }
  6170. } else {
  6171. for k2, v2 := range v {
  6172. ee.EncodeUint(uint64(k2))
  6173. ee.EncodeBool(v2)
  6174. }
  6175. }
  6176. }
  6177. ee.WriteMapEnd()
  6178. }
  6179. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  6180. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  6181. }
  6182. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  6183. if v == nil {
  6184. e.e.EncodeNil()
  6185. return
  6186. }
  6187. ee, esep := e.e, e.hh.hasElemSeparators()
  6188. ee.WriteMapStart(len(v))
  6189. if e.h.Canonical {
  6190. v2 := make([]uint64, len(v))
  6191. var i int
  6192. for k := range v {
  6193. v2[i] = uint64(k)
  6194. i++
  6195. }
  6196. sort.Sort(uintSlice(v2))
  6197. if esep {
  6198. for _, k2 := range v2 {
  6199. ee.WriteMapElemKey()
  6200. ee.EncodeUint(uint64(uint8(k2)))
  6201. ee.WriteMapElemValue()
  6202. e.encode(v[uint8(k2)])
  6203. }
  6204. } else {
  6205. for _, k2 := range v2 {
  6206. ee.EncodeUint(uint64(uint8(k2)))
  6207. e.encode(v[uint8(k2)])
  6208. }
  6209. }
  6210. } else {
  6211. if esep {
  6212. for k2, v2 := range v {
  6213. ee.WriteMapElemKey()
  6214. ee.EncodeUint(uint64(k2))
  6215. ee.WriteMapElemValue()
  6216. e.encode(v2)
  6217. }
  6218. } else {
  6219. for k2, v2 := range v {
  6220. ee.EncodeUint(uint64(k2))
  6221. e.encode(v2)
  6222. }
  6223. }
  6224. }
  6225. ee.WriteMapEnd()
  6226. }
  6227. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  6228. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  6229. }
  6230. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  6231. if v == nil {
  6232. e.e.EncodeNil()
  6233. return
  6234. }
  6235. ee, esep := e.e, e.hh.hasElemSeparators()
  6236. ee.WriteMapStart(len(v))
  6237. if e.h.Canonical {
  6238. v2 := make([]uint64, len(v))
  6239. var i int
  6240. for k := range v {
  6241. v2[i] = uint64(k)
  6242. i++
  6243. }
  6244. sort.Sort(uintSlice(v2))
  6245. if esep {
  6246. for _, k2 := range v2 {
  6247. ee.WriteMapElemKey()
  6248. ee.EncodeUint(uint64(uint8(k2)))
  6249. ee.WriteMapElemValue()
  6250. ee.EncodeStringEnc(cUTF8, v[uint8(k2)])
  6251. }
  6252. } else {
  6253. for _, k2 := range v2 {
  6254. ee.EncodeUint(uint64(uint8(k2)))
  6255. ee.EncodeStringEnc(cUTF8, v[uint8(k2)])
  6256. }
  6257. }
  6258. } else {
  6259. if esep {
  6260. for k2, v2 := range v {
  6261. ee.WriteMapElemKey()
  6262. ee.EncodeUint(uint64(k2))
  6263. ee.WriteMapElemValue()
  6264. ee.EncodeStringEnc(cUTF8, v2)
  6265. }
  6266. } else {
  6267. for k2, v2 := range v {
  6268. ee.EncodeUint(uint64(k2))
  6269. ee.EncodeStringEnc(cUTF8, v2)
  6270. }
  6271. }
  6272. }
  6273. ee.WriteMapEnd()
  6274. }
  6275. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  6276. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  6277. }
  6278. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  6279. if v == nil {
  6280. e.e.EncodeNil()
  6281. return
  6282. }
  6283. ee, esep := e.e, e.hh.hasElemSeparators()
  6284. ee.WriteMapStart(len(v))
  6285. if e.h.Canonical {
  6286. v2 := make([]uint64, len(v))
  6287. var i int
  6288. for k := range v {
  6289. v2[i] = uint64(k)
  6290. i++
  6291. }
  6292. sort.Sort(uintSlice(v2))
  6293. if esep {
  6294. for _, k2 := range v2 {
  6295. ee.WriteMapElemKey()
  6296. ee.EncodeUint(uint64(uint8(k2)))
  6297. ee.WriteMapElemValue()
  6298. ee.EncodeUint(uint64(v[uint8(k2)]))
  6299. }
  6300. } else {
  6301. for _, k2 := range v2 {
  6302. ee.EncodeUint(uint64(uint8(k2)))
  6303. ee.EncodeUint(uint64(v[uint8(k2)]))
  6304. }
  6305. }
  6306. } else {
  6307. if esep {
  6308. for k2, v2 := range v {
  6309. ee.WriteMapElemKey()
  6310. ee.EncodeUint(uint64(k2))
  6311. ee.WriteMapElemValue()
  6312. ee.EncodeUint(uint64(v2))
  6313. }
  6314. } else {
  6315. for k2, v2 := range v {
  6316. ee.EncodeUint(uint64(k2))
  6317. ee.EncodeUint(uint64(v2))
  6318. }
  6319. }
  6320. }
  6321. ee.WriteMapEnd()
  6322. }
  6323. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  6324. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  6325. }
  6326. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  6327. if v == nil {
  6328. e.e.EncodeNil()
  6329. return
  6330. }
  6331. ee, esep := e.e, e.hh.hasElemSeparators()
  6332. ee.WriteMapStart(len(v))
  6333. if e.h.Canonical {
  6334. v2 := make([]uint64, len(v))
  6335. var i int
  6336. for k := range v {
  6337. v2[i] = uint64(k)
  6338. i++
  6339. }
  6340. sort.Sort(uintSlice(v2))
  6341. if esep {
  6342. for _, k2 := range v2 {
  6343. ee.WriteMapElemKey()
  6344. ee.EncodeUint(uint64(uint8(k2)))
  6345. ee.WriteMapElemValue()
  6346. ee.EncodeUint(uint64(v[uint8(k2)]))
  6347. }
  6348. } else {
  6349. for _, k2 := range v2 {
  6350. ee.EncodeUint(uint64(uint8(k2)))
  6351. ee.EncodeUint(uint64(v[uint8(k2)]))
  6352. }
  6353. }
  6354. } else {
  6355. if esep {
  6356. for k2, v2 := range v {
  6357. ee.WriteMapElemKey()
  6358. ee.EncodeUint(uint64(k2))
  6359. ee.WriteMapElemValue()
  6360. ee.EncodeUint(uint64(v2))
  6361. }
  6362. } else {
  6363. for k2, v2 := range v {
  6364. ee.EncodeUint(uint64(k2))
  6365. ee.EncodeUint(uint64(v2))
  6366. }
  6367. }
  6368. }
  6369. ee.WriteMapEnd()
  6370. }
  6371. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  6372. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  6373. }
  6374. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  6375. if v == nil {
  6376. e.e.EncodeNil()
  6377. return
  6378. }
  6379. ee, esep := e.e, e.hh.hasElemSeparators()
  6380. ee.WriteMapStart(len(v))
  6381. if e.h.Canonical {
  6382. v2 := make([]uint64, len(v))
  6383. var i int
  6384. for k := range v {
  6385. v2[i] = uint64(k)
  6386. i++
  6387. }
  6388. sort.Sort(uintSlice(v2))
  6389. if esep {
  6390. for _, k2 := range v2 {
  6391. ee.WriteMapElemKey()
  6392. ee.EncodeUint(uint64(uint8(k2)))
  6393. ee.WriteMapElemValue()
  6394. ee.EncodeUint(uint64(v[uint8(k2)]))
  6395. }
  6396. } else {
  6397. for _, k2 := range v2 {
  6398. ee.EncodeUint(uint64(uint8(k2)))
  6399. ee.EncodeUint(uint64(v[uint8(k2)]))
  6400. }
  6401. }
  6402. } else {
  6403. if esep {
  6404. for k2, v2 := range v {
  6405. ee.WriteMapElemKey()
  6406. ee.EncodeUint(uint64(k2))
  6407. ee.WriteMapElemValue()
  6408. ee.EncodeUint(uint64(v2))
  6409. }
  6410. } else {
  6411. for k2, v2 := range v {
  6412. ee.EncodeUint(uint64(k2))
  6413. ee.EncodeUint(uint64(v2))
  6414. }
  6415. }
  6416. }
  6417. ee.WriteMapEnd()
  6418. }
  6419. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  6420. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  6421. }
  6422. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  6423. if v == nil {
  6424. e.e.EncodeNil()
  6425. return
  6426. }
  6427. ee, esep := e.e, e.hh.hasElemSeparators()
  6428. ee.WriteMapStart(len(v))
  6429. if e.h.Canonical {
  6430. v2 := make([]uint64, len(v))
  6431. var i int
  6432. for k := range v {
  6433. v2[i] = uint64(k)
  6434. i++
  6435. }
  6436. sort.Sort(uintSlice(v2))
  6437. if esep {
  6438. for _, k2 := range v2 {
  6439. ee.WriteMapElemKey()
  6440. ee.EncodeUint(uint64(uint8(k2)))
  6441. ee.WriteMapElemValue()
  6442. ee.EncodeUint(uint64(v[uint8(k2)]))
  6443. }
  6444. } else {
  6445. for _, k2 := range v2 {
  6446. ee.EncodeUint(uint64(uint8(k2)))
  6447. ee.EncodeUint(uint64(v[uint8(k2)]))
  6448. }
  6449. }
  6450. } else {
  6451. if esep {
  6452. for k2, v2 := range v {
  6453. ee.WriteMapElemKey()
  6454. ee.EncodeUint(uint64(k2))
  6455. ee.WriteMapElemValue()
  6456. ee.EncodeUint(uint64(v2))
  6457. }
  6458. } else {
  6459. for k2, v2 := range v {
  6460. ee.EncodeUint(uint64(k2))
  6461. ee.EncodeUint(uint64(v2))
  6462. }
  6463. }
  6464. }
  6465. ee.WriteMapEnd()
  6466. }
  6467. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  6468. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  6469. }
  6470. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  6471. if v == nil {
  6472. e.e.EncodeNil()
  6473. return
  6474. }
  6475. ee, esep := e.e, e.hh.hasElemSeparators()
  6476. ee.WriteMapStart(len(v))
  6477. if e.h.Canonical {
  6478. v2 := make([]uint64, len(v))
  6479. var i int
  6480. for k := range v {
  6481. v2[i] = uint64(k)
  6482. i++
  6483. }
  6484. sort.Sort(uintSlice(v2))
  6485. if esep {
  6486. for _, k2 := range v2 {
  6487. ee.WriteMapElemKey()
  6488. ee.EncodeUint(uint64(uint8(k2)))
  6489. ee.WriteMapElemValue()
  6490. ee.EncodeUint(uint64(v[uint8(k2)]))
  6491. }
  6492. } else {
  6493. for _, k2 := range v2 {
  6494. ee.EncodeUint(uint64(uint8(k2)))
  6495. ee.EncodeUint(uint64(v[uint8(k2)]))
  6496. }
  6497. }
  6498. } else {
  6499. if esep {
  6500. for k2, v2 := range v {
  6501. ee.WriteMapElemKey()
  6502. ee.EncodeUint(uint64(k2))
  6503. ee.WriteMapElemValue()
  6504. ee.EncodeUint(uint64(v2))
  6505. }
  6506. } else {
  6507. for k2, v2 := range v {
  6508. ee.EncodeUint(uint64(k2))
  6509. ee.EncodeUint(uint64(v2))
  6510. }
  6511. }
  6512. }
  6513. ee.WriteMapEnd()
  6514. }
  6515. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  6516. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  6517. }
  6518. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  6519. if v == nil {
  6520. e.e.EncodeNil()
  6521. return
  6522. }
  6523. ee, esep := e.e, e.hh.hasElemSeparators()
  6524. ee.WriteMapStart(len(v))
  6525. if e.h.Canonical {
  6526. v2 := make([]uint64, len(v))
  6527. var i int
  6528. for k := range v {
  6529. v2[i] = uint64(k)
  6530. i++
  6531. }
  6532. sort.Sort(uintSlice(v2))
  6533. if esep {
  6534. for _, k2 := range v2 {
  6535. ee.WriteMapElemKey()
  6536. ee.EncodeUint(uint64(uint8(k2)))
  6537. ee.WriteMapElemValue()
  6538. e.encode(v[uint8(k2)])
  6539. }
  6540. } else {
  6541. for _, k2 := range v2 {
  6542. ee.EncodeUint(uint64(uint8(k2)))
  6543. e.encode(v[uint8(k2)])
  6544. }
  6545. }
  6546. } else {
  6547. if esep {
  6548. for k2, v2 := range v {
  6549. ee.WriteMapElemKey()
  6550. ee.EncodeUint(uint64(k2))
  6551. ee.WriteMapElemValue()
  6552. e.encode(v2)
  6553. }
  6554. } else {
  6555. for k2, v2 := range v {
  6556. ee.EncodeUint(uint64(k2))
  6557. e.encode(v2)
  6558. }
  6559. }
  6560. }
  6561. ee.WriteMapEnd()
  6562. }
  6563. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6564. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6565. }
  6566. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6567. if v == nil {
  6568. e.e.EncodeNil()
  6569. return
  6570. }
  6571. ee, esep := e.e, e.hh.hasElemSeparators()
  6572. ee.WriteMapStart(len(v))
  6573. if e.h.Canonical {
  6574. v2 := make([]uint64, len(v))
  6575. var i int
  6576. for k := range v {
  6577. v2[i] = uint64(k)
  6578. i++
  6579. }
  6580. sort.Sort(uintSlice(v2))
  6581. if esep {
  6582. for _, k2 := range v2 {
  6583. ee.WriteMapElemKey()
  6584. ee.EncodeUint(uint64(uint8(k2)))
  6585. ee.WriteMapElemValue()
  6586. ee.EncodeInt(int64(v[uint8(k2)]))
  6587. }
  6588. } else {
  6589. for _, k2 := range v2 {
  6590. ee.EncodeUint(uint64(uint8(k2)))
  6591. ee.EncodeInt(int64(v[uint8(k2)]))
  6592. }
  6593. }
  6594. } else {
  6595. if esep {
  6596. for k2, v2 := range v {
  6597. ee.WriteMapElemKey()
  6598. ee.EncodeUint(uint64(k2))
  6599. ee.WriteMapElemValue()
  6600. ee.EncodeInt(int64(v2))
  6601. }
  6602. } else {
  6603. for k2, v2 := range v {
  6604. ee.EncodeUint(uint64(k2))
  6605. ee.EncodeInt(int64(v2))
  6606. }
  6607. }
  6608. }
  6609. ee.WriteMapEnd()
  6610. }
  6611. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6612. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6613. }
  6614. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6615. if v == nil {
  6616. e.e.EncodeNil()
  6617. return
  6618. }
  6619. ee, esep := e.e, e.hh.hasElemSeparators()
  6620. ee.WriteMapStart(len(v))
  6621. if e.h.Canonical {
  6622. v2 := make([]uint64, len(v))
  6623. var i int
  6624. for k := range v {
  6625. v2[i] = uint64(k)
  6626. i++
  6627. }
  6628. sort.Sort(uintSlice(v2))
  6629. if esep {
  6630. for _, k2 := range v2 {
  6631. ee.WriteMapElemKey()
  6632. ee.EncodeUint(uint64(uint8(k2)))
  6633. ee.WriteMapElemValue()
  6634. ee.EncodeInt(int64(v[uint8(k2)]))
  6635. }
  6636. } else {
  6637. for _, k2 := range v2 {
  6638. ee.EncodeUint(uint64(uint8(k2)))
  6639. ee.EncodeInt(int64(v[uint8(k2)]))
  6640. }
  6641. }
  6642. } else {
  6643. if esep {
  6644. for k2, v2 := range v {
  6645. ee.WriteMapElemKey()
  6646. ee.EncodeUint(uint64(k2))
  6647. ee.WriteMapElemValue()
  6648. ee.EncodeInt(int64(v2))
  6649. }
  6650. } else {
  6651. for k2, v2 := range v {
  6652. ee.EncodeUint(uint64(k2))
  6653. ee.EncodeInt(int64(v2))
  6654. }
  6655. }
  6656. }
  6657. ee.WriteMapEnd()
  6658. }
  6659. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  6660. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  6661. }
  6662. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  6663. if v == nil {
  6664. e.e.EncodeNil()
  6665. return
  6666. }
  6667. ee, esep := e.e, e.hh.hasElemSeparators()
  6668. ee.WriteMapStart(len(v))
  6669. if e.h.Canonical {
  6670. v2 := make([]uint64, len(v))
  6671. var i int
  6672. for k := range v {
  6673. v2[i] = uint64(k)
  6674. i++
  6675. }
  6676. sort.Sort(uintSlice(v2))
  6677. if esep {
  6678. for _, k2 := range v2 {
  6679. ee.WriteMapElemKey()
  6680. ee.EncodeUint(uint64(uint8(k2)))
  6681. ee.WriteMapElemValue()
  6682. ee.EncodeInt(int64(v[uint8(k2)]))
  6683. }
  6684. } else {
  6685. for _, k2 := range v2 {
  6686. ee.EncodeUint(uint64(uint8(k2)))
  6687. ee.EncodeInt(int64(v[uint8(k2)]))
  6688. }
  6689. }
  6690. } else {
  6691. if esep {
  6692. for k2, v2 := range v {
  6693. ee.WriteMapElemKey()
  6694. ee.EncodeUint(uint64(k2))
  6695. ee.WriteMapElemValue()
  6696. ee.EncodeInt(int64(v2))
  6697. }
  6698. } else {
  6699. for k2, v2 := range v {
  6700. ee.EncodeUint(uint64(k2))
  6701. ee.EncodeInt(int64(v2))
  6702. }
  6703. }
  6704. }
  6705. ee.WriteMapEnd()
  6706. }
  6707. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  6708. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  6709. }
  6710. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  6711. if v == nil {
  6712. e.e.EncodeNil()
  6713. return
  6714. }
  6715. ee, esep := e.e, e.hh.hasElemSeparators()
  6716. ee.WriteMapStart(len(v))
  6717. if e.h.Canonical {
  6718. v2 := make([]uint64, len(v))
  6719. var i int
  6720. for k := range v {
  6721. v2[i] = uint64(k)
  6722. i++
  6723. }
  6724. sort.Sort(uintSlice(v2))
  6725. if esep {
  6726. for _, k2 := range v2 {
  6727. ee.WriteMapElemKey()
  6728. ee.EncodeUint(uint64(uint8(k2)))
  6729. ee.WriteMapElemValue()
  6730. ee.EncodeInt(int64(v[uint8(k2)]))
  6731. }
  6732. } else {
  6733. for _, k2 := range v2 {
  6734. ee.EncodeUint(uint64(uint8(k2)))
  6735. ee.EncodeInt(int64(v[uint8(k2)]))
  6736. }
  6737. }
  6738. } else {
  6739. if esep {
  6740. for k2, v2 := range v {
  6741. ee.WriteMapElemKey()
  6742. ee.EncodeUint(uint64(k2))
  6743. ee.WriteMapElemValue()
  6744. ee.EncodeInt(int64(v2))
  6745. }
  6746. } else {
  6747. for k2, v2 := range v {
  6748. ee.EncodeUint(uint64(k2))
  6749. ee.EncodeInt(int64(v2))
  6750. }
  6751. }
  6752. }
  6753. ee.WriteMapEnd()
  6754. }
  6755. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  6756. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  6757. }
  6758. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  6759. if v == nil {
  6760. e.e.EncodeNil()
  6761. return
  6762. }
  6763. ee, esep := e.e, e.hh.hasElemSeparators()
  6764. ee.WriteMapStart(len(v))
  6765. if e.h.Canonical {
  6766. v2 := make([]uint64, len(v))
  6767. var i int
  6768. for k := range v {
  6769. v2[i] = uint64(k)
  6770. i++
  6771. }
  6772. sort.Sort(uintSlice(v2))
  6773. if esep {
  6774. for _, k2 := range v2 {
  6775. ee.WriteMapElemKey()
  6776. ee.EncodeUint(uint64(uint8(k2)))
  6777. ee.WriteMapElemValue()
  6778. ee.EncodeInt(int64(v[uint8(k2)]))
  6779. }
  6780. } else {
  6781. for _, k2 := range v2 {
  6782. ee.EncodeUint(uint64(uint8(k2)))
  6783. ee.EncodeInt(int64(v[uint8(k2)]))
  6784. }
  6785. }
  6786. } else {
  6787. if esep {
  6788. for k2, v2 := range v {
  6789. ee.WriteMapElemKey()
  6790. ee.EncodeUint(uint64(k2))
  6791. ee.WriteMapElemValue()
  6792. ee.EncodeInt(int64(v2))
  6793. }
  6794. } else {
  6795. for k2, v2 := range v {
  6796. ee.EncodeUint(uint64(k2))
  6797. ee.EncodeInt(int64(v2))
  6798. }
  6799. }
  6800. }
  6801. ee.WriteMapEnd()
  6802. }
  6803. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  6804. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  6805. }
  6806. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  6807. if v == nil {
  6808. e.e.EncodeNil()
  6809. return
  6810. }
  6811. ee, esep := e.e, e.hh.hasElemSeparators()
  6812. ee.WriteMapStart(len(v))
  6813. if e.h.Canonical {
  6814. v2 := make([]uint64, len(v))
  6815. var i int
  6816. for k := range v {
  6817. v2[i] = uint64(k)
  6818. i++
  6819. }
  6820. sort.Sort(uintSlice(v2))
  6821. if esep {
  6822. for _, k2 := range v2 {
  6823. ee.WriteMapElemKey()
  6824. ee.EncodeUint(uint64(uint8(k2)))
  6825. ee.WriteMapElemValue()
  6826. ee.EncodeFloat32(v[uint8(k2)])
  6827. }
  6828. } else {
  6829. for _, k2 := range v2 {
  6830. ee.EncodeUint(uint64(uint8(k2)))
  6831. ee.EncodeFloat32(v[uint8(k2)])
  6832. }
  6833. }
  6834. } else {
  6835. if esep {
  6836. for k2, v2 := range v {
  6837. ee.WriteMapElemKey()
  6838. ee.EncodeUint(uint64(k2))
  6839. ee.WriteMapElemValue()
  6840. ee.EncodeFloat32(v2)
  6841. }
  6842. } else {
  6843. for k2, v2 := range v {
  6844. ee.EncodeUint(uint64(k2))
  6845. ee.EncodeFloat32(v2)
  6846. }
  6847. }
  6848. }
  6849. ee.WriteMapEnd()
  6850. }
  6851. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  6852. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  6853. }
  6854. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  6855. if v == nil {
  6856. e.e.EncodeNil()
  6857. return
  6858. }
  6859. ee, esep := e.e, e.hh.hasElemSeparators()
  6860. ee.WriteMapStart(len(v))
  6861. if e.h.Canonical {
  6862. v2 := make([]uint64, len(v))
  6863. var i int
  6864. for k := range v {
  6865. v2[i] = uint64(k)
  6866. i++
  6867. }
  6868. sort.Sort(uintSlice(v2))
  6869. if esep {
  6870. for _, k2 := range v2 {
  6871. ee.WriteMapElemKey()
  6872. ee.EncodeUint(uint64(uint8(k2)))
  6873. ee.WriteMapElemValue()
  6874. ee.EncodeFloat64(v[uint8(k2)])
  6875. }
  6876. } else {
  6877. for _, k2 := range v2 {
  6878. ee.EncodeUint(uint64(uint8(k2)))
  6879. ee.EncodeFloat64(v[uint8(k2)])
  6880. }
  6881. }
  6882. } else {
  6883. if esep {
  6884. for k2, v2 := range v {
  6885. ee.WriteMapElemKey()
  6886. ee.EncodeUint(uint64(k2))
  6887. ee.WriteMapElemValue()
  6888. ee.EncodeFloat64(v2)
  6889. }
  6890. } else {
  6891. for k2, v2 := range v {
  6892. ee.EncodeUint(uint64(k2))
  6893. ee.EncodeFloat64(v2)
  6894. }
  6895. }
  6896. }
  6897. ee.WriteMapEnd()
  6898. }
  6899. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  6900. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  6901. }
  6902. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  6903. if v == nil {
  6904. e.e.EncodeNil()
  6905. return
  6906. }
  6907. ee, esep := e.e, e.hh.hasElemSeparators()
  6908. ee.WriteMapStart(len(v))
  6909. if e.h.Canonical {
  6910. v2 := make([]uint64, len(v))
  6911. var i int
  6912. for k := range v {
  6913. v2[i] = uint64(k)
  6914. i++
  6915. }
  6916. sort.Sort(uintSlice(v2))
  6917. if esep {
  6918. for _, k2 := range v2 {
  6919. ee.WriteMapElemKey()
  6920. ee.EncodeUint(uint64(uint8(k2)))
  6921. ee.WriteMapElemValue()
  6922. ee.EncodeBool(v[uint8(k2)])
  6923. }
  6924. } else {
  6925. for _, k2 := range v2 {
  6926. ee.EncodeUint(uint64(uint8(k2)))
  6927. ee.EncodeBool(v[uint8(k2)])
  6928. }
  6929. }
  6930. } else {
  6931. if esep {
  6932. for k2, v2 := range v {
  6933. ee.WriteMapElemKey()
  6934. ee.EncodeUint(uint64(k2))
  6935. ee.WriteMapElemValue()
  6936. ee.EncodeBool(v2)
  6937. }
  6938. } else {
  6939. for k2, v2 := range v {
  6940. ee.EncodeUint(uint64(k2))
  6941. ee.EncodeBool(v2)
  6942. }
  6943. }
  6944. }
  6945. ee.WriteMapEnd()
  6946. }
  6947. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  6948. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  6949. }
  6950. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  6951. if v == nil {
  6952. e.e.EncodeNil()
  6953. return
  6954. }
  6955. ee, esep := e.e, e.hh.hasElemSeparators()
  6956. ee.WriteMapStart(len(v))
  6957. if e.h.Canonical {
  6958. v2 := make([]uint64, len(v))
  6959. var i int
  6960. for k := range v {
  6961. v2[i] = uint64(k)
  6962. i++
  6963. }
  6964. sort.Sort(uintSlice(v2))
  6965. if esep {
  6966. for _, k2 := range v2 {
  6967. ee.WriteMapElemKey()
  6968. ee.EncodeUint(uint64(uint16(k2)))
  6969. ee.WriteMapElemValue()
  6970. e.encode(v[uint16(k2)])
  6971. }
  6972. } else {
  6973. for _, k2 := range v2 {
  6974. ee.EncodeUint(uint64(uint16(k2)))
  6975. e.encode(v[uint16(k2)])
  6976. }
  6977. }
  6978. } else {
  6979. if esep {
  6980. for k2, v2 := range v {
  6981. ee.WriteMapElemKey()
  6982. ee.EncodeUint(uint64(k2))
  6983. ee.WriteMapElemValue()
  6984. e.encode(v2)
  6985. }
  6986. } else {
  6987. for k2, v2 := range v {
  6988. ee.EncodeUint(uint64(k2))
  6989. e.encode(v2)
  6990. }
  6991. }
  6992. }
  6993. ee.WriteMapEnd()
  6994. }
  6995. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  6996. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  6997. }
  6998. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  6999. if v == nil {
  7000. e.e.EncodeNil()
  7001. return
  7002. }
  7003. ee, esep := e.e, e.hh.hasElemSeparators()
  7004. ee.WriteMapStart(len(v))
  7005. if e.h.Canonical {
  7006. v2 := make([]uint64, len(v))
  7007. var i int
  7008. for k := range v {
  7009. v2[i] = uint64(k)
  7010. i++
  7011. }
  7012. sort.Sort(uintSlice(v2))
  7013. if esep {
  7014. for _, k2 := range v2 {
  7015. ee.WriteMapElemKey()
  7016. ee.EncodeUint(uint64(uint16(k2)))
  7017. ee.WriteMapElemValue()
  7018. ee.EncodeStringEnc(cUTF8, v[uint16(k2)])
  7019. }
  7020. } else {
  7021. for _, k2 := range v2 {
  7022. ee.EncodeUint(uint64(uint16(k2)))
  7023. ee.EncodeStringEnc(cUTF8, v[uint16(k2)])
  7024. }
  7025. }
  7026. } else {
  7027. if esep {
  7028. for k2, v2 := range v {
  7029. ee.WriteMapElemKey()
  7030. ee.EncodeUint(uint64(k2))
  7031. ee.WriteMapElemValue()
  7032. ee.EncodeStringEnc(cUTF8, v2)
  7033. }
  7034. } else {
  7035. for k2, v2 := range v {
  7036. ee.EncodeUint(uint64(k2))
  7037. ee.EncodeStringEnc(cUTF8, v2)
  7038. }
  7039. }
  7040. }
  7041. ee.WriteMapEnd()
  7042. }
  7043. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  7044. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  7045. }
  7046. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  7047. if v == nil {
  7048. e.e.EncodeNil()
  7049. return
  7050. }
  7051. ee, esep := e.e, e.hh.hasElemSeparators()
  7052. ee.WriteMapStart(len(v))
  7053. if e.h.Canonical {
  7054. v2 := make([]uint64, len(v))
  7055. var i int
  7056. for k := range v {
  7057. v2[i] = uint64(k)
  7058. i++
  7059. }
  7060. sort.Sort(uintSlice(v2))
  7061. if esep {
  7062. for _, k2 := range v2 {
  7063. ee.WriteMapElemKey()
  7064. ee.EncodeUint(uint64(uint16(k2)))
  7065. ee.WriteMapElemValue()
  7066. ee.EncodeUint(uint64(v[uint16(k2)]))
  7067. }
  7068. } else {
  7069. for _, k2 := range v2 {
  7070. ee.EncodeUint(uint64(uint16(k2)))
  7071. ee.EncodeUint(uint64(v[uint16(k2)]))
  7072. }
  7073. }
  7074. } else {
  7075. if esep {
  7076. for k2, v2 := range v {
  7077. ee.WriteMapElemKey()
  7078. ee.EncodeUint(uint64(k2))
  7079. ee.WriteMapElemValue()
  7080. ee.EncodeUint(uint64(v2))
  7081. }
  7082. } else {
  7083. for k2, v2 := range v {
  7084. ee.EncodeUint(uint64(k2))
  7085. ee.EncodeUint(uint64(v2))
  7086. }
  7087. }
  7088. }
  7089. ee.WriteMapEnd()
  7090. }
  7091. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  7092. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  7093. }
  7094. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  7095. if v == nil {
  7096. e.e.EncodeNil()
  7097. return
  7098. }
  7099. ee, esep := e.e, e.hh.hasElemSeparators()
  7100. ee.WriteMapStart(len(v))
  7101. if e.h.Canonical {
  7102. v2 := make([]uint64, len(v))
  7103. var i int
  7104. for k := range v {
  7105. v2[i] = uint64(k)
  7106. i++
  7107. }
  7108. sort.Sort(uintSlice(v2))
  7109. if esep {
  7110. for _, k2 := range v2 {
  7111. ee.WriteMapElemKey()
  7112. ee.EncodeUint(uint64(uint16(k2)))
  7113. ee.WriteMapElemValue()
  7114. ee.EncodeUint(uint64(v[uint16(k2)]))
  7115. }
  7116. } else {
  7117. for _, k2 := range v2 {
  7118. ee.EncodeUint(uint64(uint16(k2)))
  7119. ee.EncodeUint(uint64(v[uint16(k2)]))
  7120. }
  7121. }
  7122. } else {
  7123. if esep {
  7124. for k2, v2 := range v {
  7125. ee.WriteMapElemKey()
  7126. ee.EncodeUint(uint64(k2))
  7127. ee.WriteMapElemValue()
  7128. ee.EncodeUint(uint64(v2))
  7129. }
  7130. } else {
  7131. for k2, v2 := range v {
  7132. ee.EncodeUint(uint64(k2))
  7133. ee.EncodeUint(uint64(v2))
  7134. }
  7135. }
  7136. }
  7137. ee.WriteMapEnd()
  7138. }
  7139. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  7140. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  7141. }
  7142. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  7143. if v == nil {
  7144. e.e.EncodeNil()
  7145. return
  7146. }
  7147. ee, esep := e.e, e.hh.hasElemSeparators()
  7148. ee.WriteMapStart(len(v))
  7149. if e.h.Canonical {
  7150. v2 := make([]uint64, len(v))
  7151. var i int
  7152. for k := range v {
  7153. v2[i] = uint64(k)
  7154. i++
  7155. }
  7156. sort.Sort(uintSlice(v2))
  7157. if esep {
  7158. for _, k2 := range v2 {
  7159. ee.WriteMapElemKey()
  7160. ee.EncodeUint(uint64(uint16(k2)))
  7161. ee.WriteMapElemValue()
  7162. ee.EncodeUint(uint64(v[uint16(k2)]))
  7163. }
  7164. } else {
  7165. for _, k2 := range v2 {
  7166. ee.EncodeUint(uint64(uint16(k2)))
  7167. ee.EncodeUint(uint64(v[uint16(k2)]))
  7168. }
  7169. }
  7170. } else {
  7171. if esep {
  7172. for k2, v2 := range v {
  7173. ee.WriteMapElemKey()
  7174. ee.EncodeUint(uint64(k2))
  7175. ee.WriteMapElemValue()
  7176. ee.EncodeUint(uint64(v2))
  7177. }
  7178. } else {
  7179. for k2, v2 := range v {
  7180. ee.EncodeUint(uint64(k2))
  7181. ee.EncodeUint(uint64(v2))
  7182. }
  7183. }
  7184. }
  7185. ee.WriteMapEnd()
  7186. }
  7187. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  7188. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  7189. }
  7190. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  7191. if v == nil {
  7192. e.e.EncodeNil()
  7193. return
  7194. }
  7195. ee, esep := e.e, e.hh.hasElemSeparators()
  7196. ee.WriteMapStart(len(v))
  7197. if e.h.Canonical {
  7198. v2 := make([]uint64, len(v))
  7199. var i int
  7200. for k := range v {
  7201. v2[i] = uint64(k)
  7202. i++
  7203. }
  7204. sort.Sort(uintSlice(v2))
  7205. if esep {
  7206. for _, k2 := range v2 {
  7207. ee.WriteMapElemKey()
  7208. ee.EncodeUint(uint64(uint16(k2)))
  7209. ee.WriteMapElemValue()
  7210. ee.EncodeUint(uint64(v[uint16(k2)]))
  7211. }
  7212. } else {
  7213. for _, k2 := range v2 {
  7214. ee.EncodeUint(uint64(uint16(k2)))
  7215. ee.EncodeUint(uint64(v[uint16(k2)]))
  7216. }
  7217. }
  7218. } else {
  7219. if esep {
  7220. for k2, v2 := range v {
  7221. ee.WriteMapElemKey()
  7222. ee.EncodeUint(uint64(k2))
  7223. ee.WriteMapElemValue()
  7224. ee.EncodeUint(uint64(v2))
  7225. }
  7226. } else {
  7227. for k2, v2 := range v {
  7228. ee.EncodeUint(uint64(k2))
  7229. ee.EncodeUint(uint64(v2))
  7230. }
  7231. }
  7232. }
  7233. ee.WriteMapEnd()
  7234. }
  7235. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  7236. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  7237. }
  7238. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  7239. if v == nil {
  7240. e.e.EncodeNil()
  7241. return
  7242. }
  7243. ee, esep := e.e, e.hh.hasElemSeparators()
  7244. ee.WriteMapStart(len(v))
  7245. if e.h.Canonical {
  7246. v2 := make([]uint64, len(v))
  7247. var i int
  7248. for k := range v {
  7249. v2[i] = uint64(k)
  7250. i++
  7251. }
  7252. sort.Sort(uintSlice(v2))
  7253. if esep {
  7254. for _, k2 := range v2 {
  7255. ee.WriteMapElemKey()
  7256. ee.EncodeUint(uint64(uint16(k2)))
  7257. ee.WriteMapElemValue()
  7258. ee.EncodeUint(uint64(v[uint16(k2)]))
  7259. }
  7260. } else {
  7261. for _, k2 := range v2 {
  7262. ee.EncodeUint(uint64(uint16(k2)))
  7263. ee.EncodeUint(uint64(v[uint16(k2)]))
  7264. }
  7265. }
  7266. } else {
  7267. if esep {
  7268. for k2, v2 := range v {
  7269. ee.WriteMapElemKey()
  7270. ee.EncodeUint(uint64(k2))
  7271. ee.WriteMapElemValue()
  7272. ee.EncodeUint(uint64(v2))
  7273. }
  7274. } else {
  7275. for k2, v2 := range v {
  7276. ee.EncodeUint(uint64(k2))
  7277. ee.EncodeUint(uint64(v2))
  7278. }
  7279. }
  7280. }
  7281. ee.WriteMapEnd()
  7282. }
  7283. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  7284. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  7285. }
  7286. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  7287. if v == nil {
  7288. e.e.EncodeNil()
  7289. return
  7290. }
  7291. ee, esep := e.e, e.hh.hasElemSeparators()
  7292. ee.WriteMapStart(len(v))
  7293. if e.h.Canonical {
  7294. v2 := make([]uint64, len(v))
  7295. var i int
  7296. for k := range v {
  7297. v2[i] = uint64(k)
  7298. i++
  7299. }
  7300. sort.Sort(uintSlice(v2))
  7301. if esep {
  7302. for _, k2 := range v2 {
  7303. ee.WriteMapElemKey()
  7304. ee.EncodeUint(uint64(uint16(k2)))
  7305. ee.WriteMapElemValue()
  7306. e.encode(v[uint16(k2)])
  7307. }
  7308. } else {
  7309. for _, k2 := range v2 {
  7310. ee.EncodeUint(uint64(uint16(k2)))
  7311. e.encode(v[uint16(k2)])
  7312. }
  7313. }
  7314. } else {
  7315. if esep {
  7316. for k2, v2 := range v {
  7317. ee.WriteMapElemKey()
  7318. ee.EncodeUint(uint64(k2))
  7319. ee.WriteMapElemValue()
  7320. e.encode(v2)
  7321. }
  7322. } else {
  7323. for k2, v2 := range v {
  7324. ee.EncodeUint(uint64(k2))
  7325. e.encode(v2)
  7326. }
  7327. }
  7328. }
  7329. ee.WriteMapEnd()
  7330. }
  7331. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  7332. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  7333. }
  7334. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  7335. if v == nil {
  7336. e.e.EncodeNil()
  7337. return
  7338. }
  7339. ee, esep := e.e, e.hh.hasElemSeparators()
  7340. ee.WriteMapStart(len(v))
  7341. if e.h.Canonical {
  7342. v2 := make([]uint64, len(v))
  7343. var i int
  7344. for k := range v {
  7345. v2[i] = uint64(k)
  7346. i++
  7347. }
  7348. sort.Sort(uintSlice(v2))
  7349. if esep {
  7350. for _, k2 := range v2 {
  7351. ee.WriteMapElemKey()
  7352. ee.EncodeUint(uint64(uint16(k2)))
  7353. ee.WriteMapElemValue()
  7354. ee.EncodeInt(int64(v[uint16(k2)]))
  7355. }
  7356. } else {
  7357. for _, k2 := range v2 {
  7358. ee.EncodeUint(uint64(uint16(k2)))
  7359. ee.EncodeInt(int64(v[uint16(k2)]))
  7360. }
  7361. }
  7362. } else {
  7363. if esep {
  7364. for k2, v2 := range v {
  7365. ee.WriteMapElemKey()
  7366. ee.EncodeUint(uint64(k2))
  7367. ee.WriteMapElemValue()
  7368. ee.EncodeInt(int64(v2))
  7369. }
  7370. } else {
  7371. for k2, v2 := range v {
  7372. ee.EncodeUint(uint64(k2))
  7373. ee.EncodeInt(int64(v2))
  7374. }
  7375. }
  7376. }
  7377. ee.WriteMapEnd()
  7378. }
  7379. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  7380. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  7381. }
  7382. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  7383. if v == nil {
  7384. e.e.EncodeNil()
  7385. return
  7386. }
  7387. ee, esep := e.e, e.hh.hasElemSeparators()
  7388. ee.WriteMapStart(len(v))
  7389. if e.h.Canonical {
  7390. v2 := make([]uint64, len(v))
  7391. var i int
  7392. for k := range v {
  7393. v2[i] = uint64(k)
  7394. i++
  7395. }
  7396. sort.Sort(uintSlice(v2))
  7397. if esep {
  7398. for _, k2 := range v2 {
  7399. ee.WriteMapElemKey()
  7400. ee.EncodeUint(uint64(uint16(k2)))
  7401. ee.WriteMapElemValue()
  7402. ee.EncodeInt(int64(v[uint16(k2)]))
  7403. }
  7404. } else {
  7405. for _, k2 := range v2 {
  7406. ee.EncodeUint(uint64(uint16(k2)))
  7407. ee.EncodeInt(int64(v[uint16(k2)]))
  7408. }
  7409. }
  7410. } else {
  7411. if esep {
  7412. for k2, v2 := range v {
  7413. ee.WriteMapElemKey()
  7414. ee.EncodeUint(uint64(k2))
  7415. ee.WriteMapElemValue()
  7416. ee.EncodeInt(int64(v2))
  7417. }
  7418. } else {
  7419. for k2, v2 := range v {
  7420. ee.EncodeUint(uint64(k2))
  7421. ee.EncodeInt(int64(v2))
  7422. }
  7423. }
  7424. }
  7425. ee.WriteMapEnd()
  7426. }
  7427. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  7428. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  7429. }
  7430. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  7431. if v == nil {
  7432. e.e.EncodeNil()
  7433. return
  7434. }
  7435. ee, esep := e.e, e.hh.hasElemSeparators()
  7436. ee.WriteMapStart(len(v))
  7437. if e.h.Canonical {
  7438. v2 := make([]uint64, len(v))
  7439. var i int
  7440. for k := range v {
  7441. v2[i] = uint64(k)
  7442. i++
  7443. }
  7444. sort.Sort(uintSlice(v2))
  7445. if esep {
  7446. for _, k2 := range v2 {
  7447. ee.WriteMapElemKey()
  7448. ee.EncodeUint(uint64(uint16(k2)))
  7449. ee.WriteMapElemValue()
  7450. ee.EncodeInt(int64(v[uint16(k2)]))
  7451. }
  7452. } else {
  7453. for _, k2 := range v2 {
  7454. ee.EncodeUint(uint64(uint16(k2)))
  7455. ee.EncodeInt(int64(v[uint16(k2)]))
  7456. }
  7457. }
  7458. } else {
  7459. if esep {
  7460. for k2, v2 := range v {
  7461. ee.WriteMapElemKey()
  7462. ee.EncodeUint(uint64(k2))
  7463. ee.WriteMapElemValue()
  7464. ee.EncodeInt(int64(v2))
  7465. }
  7466. } else {
  7467. for k2, v2 := range v {
  7468. ee.EncodeUint(uint64(k2))
  7469. ee.EncodeInt(int64(v2))
  7470. }
  7471. }
  7472. }
  7473. ee.WriteMapEnd()
  7474. }
  7475. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  7476. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  7477. }
  7478. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  7479. if v == nil {
  7480. e.e.EncodeNil()
  7481. return
  7482. }
  7483. ee, esep := e.e, e.hh.hasElemSeparators()
  7484. ee.WriteMapStart(len(v))
  7485. if e.h.Canonical {
  7486. v2 := make([]uint64, len(v))
  7487. var i int
  7488. for k := range v {
  7489. v2[i] = uint64(k)
  7490. i++
  7491. }
  7492. sort.Sort(uintSlice(v2))
  7493. if esep {
  7494. for _, k2 := range v2 {
  7495. ee.WriteMapElemKey()
  7496. ee.EncodeUint(uint64(uint16(k2)))
  7497. ee.WriteMapElemValue()
  7498. ee.EncodeInt(int64(v[uint16(k2)]))
  7499. }
  7500. } else {
  7501. for _, k2 := range v2 {
  7502. ee.EncodeUint(uint64(uint16(k2)))
  7503. ee.EncodeInt(int64(v[uint16(k2)]))
  7504. }
  7505. }
  7506. } else {
  7507. if esep {
  7508. for k2, v2 := range v {
  7509. ee.WriteMapElemKey()
  7510. ee.EncodeUint(uint64(k2))
  7511. ee.WriteMapElemValue()
  7512. ee.EncodeInt(int64(v2))
  7513. }
  7514. } else {
  7515. for k2, v2 := range v {
  7516. ee.EncodeUint(uint64(k2))
  7517. ee.EncodeInt(int64(v2))
  7518. }
  7519. }
  7520. }
  7521. ee.WriteMapEnd()
  7522. }
  7523. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  7524. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  7525. }
  7526. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  7527. if v == nil {
  7528. e.e.EncodeNil()
  7529. return
  7530. }
  7531. ee, esep := e.e, e.hh.hasElemSeparators()
  7532. ee.WriteMapStart(len(v))
  7533. if e.h.Canonical {
  7534. v2 := make([]uint64, len(v))
  7535. var i int
  7536. for k := range v {
  7537. v2[i] = uint64(k)
  7538. i++
  7539. }
  7540. sort.Sort(uintSlice(v2))
  7541. if esep {
  7542. for _, k2 := range v2 {
  7543. ee.WriteMapElemKey()
  7544. ee.EncodeUint(uint64(uint16(k2)))
  7545. ee.WriteMapElemValue()
  7546. ee.EncodeInt(int64(v[uint16(k2)]))
  7547. }
  7548. } else {
  7549. for _, k2 := range v2 {
  7550. ee.EncodeUint(uint64(uint16(k2)))
  7551. ee.EncodeInt(int64(v[uint16(k2)]))
  7552. }
  7553. }
  7554. } else {
  7555. if esep {
  7556. for k2, v2 := range v {
  7557. ee.WriteMapElemKey()
  7558. ee.EncodeUint(uint64(k2))
  7559. ee.WriteMapElemValue()
  7560. ee.EncodeInt(int64(v2))
  7561. }
  7562. } else {
  7563. for k2, v2 := range v {
  7564. ee.EncodeUint(uint64(k2))
  7565. ee.EncodeInt(int64(v2))
  7566. }
  7567. }
  7568. }
  7569. ee.WriteMapEnd()
  7570. }
  7571. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  7572. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  7573. }
  7574. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  7575. if v == nil {
  7576. e.e.EncodeNil()
  7577. return
  7578. }
  7579. ee, esep := e.e, e.hh.hasElemSeparators()
  7580. ee.WriteMapStart(len(v))
  7581. if e.h.Canonical {
  7582. v2 := make([]uint64, len(v))
  7583. var i int
  7584. for k := range v {
  7585. v2[i] = uint64(k)
  7586. i++
  7587. }
  7588. sort.Sort(uintSlice(v2))
  7589. if esep {
  7590. for _, k2 := range v2 {
  7591. ee.WriteMapElemKey()
  7592. ee.EncodeUint(uint64(uint16(k2)))
  7593. ee.WriteMapElemValue()
  7594. ee.EncodeFloat32(v[uint16(k2)])
  7595. }
  7596. } else {
  7597. for _, k2 := range v2 {
  7598. ee.EncodeUint(uint64(uint16(k2)))
  7599. ee.EncodeFloat32(v[uint16(k2)])
  7600. }
  7601. }
  7602. } else {
  7603. if esep {
  7604. for k2, v2 := range v {
  7605. ee.WriteMapElemKey()
  7606. ee.EncodeUint(uint64(k2))
  7607. ee.WriteMapElemValue()
  7608. ee.EncodeFloat32(v2)
  7609. }
  7610. } else {
  7611. for k2, v2 := range v {
  7612. ee.EncodeUint(uint64(k2))
  7613. ee.EncodeFloat32(v2)
  7614. }
  7615. }
  7616. }
  7617. ee.WriteMapEnd()
  7618. }
  7619. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  7620. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  7621. }
  7622. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  7623. if v == nil {
  7624. e.e.EncodeNil()
  7625. return
  7626. }
  7627. ee, esep := e.e, e.hh.hasElemSeparators()
  7628. ee.WriteMapStart(len(v))
  7629. if e.h.Canonical {
  7630. v2 := make([]uint64, len(v))
  7631. var i int
  7632. for k := range v {
  7633. v2[i] = uint64(k)
  7634. i++
  7635. }
  7636. sort.Sort(uintSlice(v2))
  7637. if esep {
  7638. for _, k2 := range v2 {
  7639. ee.WriteMapElemKey()
  7640. ee.EncodeUint(uint64(uint16(k2)))
  7641. ee.WriteMapElemValue()
  7642. ee.EncodeFloat64(v[uint16(k2)])
  7643. }
  7644. } else {
  7645. for _, k2 := range v2 {
  7646. ee.EncodeUint(uint64(uint16(k2)))
  7647. ee.EncodeFloat64(v[uint16(k2)])
  7648. }
  7649. }
  7650. } else {
  7651. if esep {
  7652. for k2, v2 := range v {
  7653. ee.WriteMapElemKey()
  7654. ee.EncodeUint(uint64(k2))
  7655. ee.WriteMapElemValue()
  7656. ee.EncodeFloat64(v2)
  7657. }
  7658. } else {
  7659. for k2, v2 := range v {
  7660. ee.EncodeUint(uint64(k2))
  7661. ee.EncodeFloat64(v2)
  7662. }
  7663. }
  7664. }
  7665. ee.WriteMapEnd()
  7666. }
  7667. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  7668. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  7669. }
  7670. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  7671. if v == nil {
  7672. e.e.EncodeNil()
  7673. return
  7674. }
  7675. ee, esep := e.e, e.hh.hasElemSeparators()
  7676. ee.WriteMapStart(len(v))
  7677. if e.h.Canonical {
  7678. v2 := make([]uint64, len(v))
  7679. var i int
  7680. for k := range v {
  7681. v2[i] = uint64(k)
  7682. i++
  7683. }
  7684. sort.Sort(uintSlice(v2))
  7685. if esep {
  7686. for _, k2 := range v2 {
  7687. ee.WriteMapElemKey()
  7688. ee.EncodeUint(uint64(uint16(k2)))
  7689. ee.WriteMapElemValue()
  7690. ee.EncodeBool(v[uint16(k2)])
  7691. }
  7692. } else {
  7693. for _, k2 := range v2 {
  7694. ee.EncodeUint(uint64(uint16(k2)))
  7695. ee.EncodeBool(v[uint16(k2)])
  7696. }
  7697. }
  7698. } else {
  7699. if esep {
  7700. for k2, v2 := range v {
  7701. ee.WriteMapElemKey()
  7702. ee.EncodeUint(uint64(k2))
  7703. ee.WriteMapElemValue()
  7704. ee.EncodeBool(v2)
  7705. }
  7706. } else {
  7707. for k2, v2 := range v {
  7708. ee.EncodeUint(uint64(k2))
  7709. ee.EncodeBool(v2)
  7710. }
  7711. }
  7712. }
  7713. ee.WriteMapEnd()
  7714. }
  7715. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7716. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7717. }
  7718. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7719. if v == nil {
  7720. e.e.EncodeNil()
  7721. return
  7722. }
  7723. ee, esep := e.e, e.hh.hasElemSeparators()
  7724. ee.WriteMapStart(len(v))
  7725. if e.h.Canonical {
  7726. v2 := make([]uint64, len(v))
  7727. var i int
  7728. for k := range v {
  7729. v2[i] = uint64(k)
  7730. i++
  7731. }
  7732. sort.Sort(uintSlice(v2))
  7733. if esep {
  7734. for _, k2 := range v2 {
  7735. ee.WriteMapElemKey()
  7736. ee.EncodeUint(uint64(uint32(k2)))
  7737. ee.WriteMapElemValue()
  7738. e.encode(v[uint32(k2)])
  7739. }
  7740. } else {
  7741. for _, k2 := range v2 {
  7742. ee.EncodeUint(uint64(uint32(k2)))
  7743. e.encode(v[uint32(k2)])
  7744. }
  7745. }
  7746. } else {
  7747. if esep {
  7748. for k2, v2 := range v {
  7749. ee.WriteMapElemKey()
  7750. ee.EncodeUint(uint64(k2))
  7751. ee.WriteMapElemValue()
  7752. e.encode(v2)
  7753. }
  7754. } else {
  7755. for k2, v2 := range v {
  7756. ee.EncodeUint(uint64(k2))
  7757. e.encode(v2)
  7758. }
  7759. }
  7760. }
  7761. ee.WriteMapEnd()
  7762. }
  7763. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7764. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7765. }
  7766. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7767. if v == nil {
  7768. e.e.EncodeNil()
  7769. return
  7770. }
  7771. ee, esep := e.e, e.hh.hasElemSeparators()
  7772. ee.WriteMapStart(len(v))
  7773. if e.h.Canonical {
  7774. v2 := make([]uint64, len(v))
  7775. var i int
  7776. for k := range v {
  7777. v2[i] = uint64(k)
  7778. i++
  7779. }
  7780. sort.Sort(uintSlice(v2))
  7781. if esep {
  7782. for _, k2 := range v2 {
  7783. ee.WriteMapElemKey()
  7784. ee.EncodeUint(uint64(uint32(k2)))
  7785. ee.WriteMapElemValue()
  7786. ee.EncodeStringEnc(cUTF8, v[uint32(k2)])
  7787. }
  7788. } else {
  7789. for _, k2 := range v2 {
  7790. ee.EncodeUint(uint64(uint32(k2)))
  7791. ee.EncodeStringEnc(cUTF8, v[uint32(k2)])
  7792. }
  7793. }
  7794. } else {
  7795. if esep {
  7796. for k2, v2 := range v {
  7797. ee.WriteMapElemKey()
  7798. ee.EncodeUint(uint64(k2))
  7799. ee.WriteMapElemValue()
  7800. ee.EncodeStringEnc(cUTF8, v2)
  7801. }
  7802. } else {
  7803. for k2, v2 := range v {
  7804. ee.EncodeUint(uint64(k2))
  7805. ee.EncodeStringEnc(cUTF8, v2)
  7806. }
  7807. }
  7808. }
  7809. ee.WriteMapEnd()
  7810. }
  7811. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7812. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7813. }
  7814. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7815. if v == nil {
  7816. e.e.EncodeNil()
  7817. return
  7818. }
  7819. ee, esep := e.e, e.hh.hasElemSeparators()
  7820. ee.WriteMapStart(len(v))
  7821. if e.h.Canonical {
  7822. v2 := make([]uint64, len(v))
  7823. var i int
  7824. for k := range v {
  7825. v2[i] = uint64(k)
  7826. i++
  7827. }
  7828. sort.Sort(uintSlice(v2))
  7829. if esep {
  7830. for _, k2 := range v2 {
  7831. ee.WriteMapElemKey()
  7832. ee.EncodeUint(uint64(uint32(k2)))
  7833. ee.WriteMapElemValue()
  7834. ee.EncodeUint(uint64(v[uint32(k2)]))
  7835. }
  7836. } else {
  7837. for _, k2 := range v2 {
  7838. ee.EncodeUint(uint64(uint32(k2)))
  7839. ee.EncodeUint(uint64(v[uint32(k2)]))
  7840. }
  7841. }
  7842. } else {
  7843. if esep {
  7844. for k2, v2 := range v {
  7845. ee.WriteMapElemKey()
  7846. ee.EncodeUint(uint64(k2))
  7847. ee.WriteMapElemValue()
  7848. ee.EncodeUint(uint64(v2))
  7849. }
  7850. } else {
  7851. for k2, v2 := range v {
  7852. ee.EncodeUint(uint64(k2))
  7853. ee.EncodeUint(uint64(v2))
  7854. }
  7855. }
  7856. }
  7857. ee.WriteMapEnd()
  7858. }
  7859. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  7860. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  7861. }
  7862. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  7863. if v == nil {
  7864. e.e.EncodeNil()
  7865. return
  7866. }
  7867. ee, esep := e.e, e.hh.hasElemSeparators()
  7868. ee.WriteMapStart(len(v))
  7869. if e.h.Canonical {
  7870. v2 := make([]uint64, len(v))
  7871. var i int
  7872. for k := range v {
  7873. v2[i] = uint64(k)
  7874. i++
  7875. }
  7876. sort.Sort(uintSlice(v2))
  7877. if esep {
  7878. for _, k2 := range v2 {
  7879. ee.WriteMapElemKey()
  7880. ee.EncodeUint(uint64(uint32(k2)))
  7881. ee.WriteMapElemValue()
  7882. ee.EncodeUint(uint64(v[uint32(k2)]))
  7883. }
  7884. } else {
  7885. for _, k2 := range v2 {
  7886. ee.EncodeUint(uint64(uint32(k2)))
  7887. ee.EncodeUint(uint64(v[uint32(k2)]))
  7888. }
  7889. }
  7890. } else {
  7891. if esep {
  7892. for k2, v2 := range v {
  7893. ee.WriteMapElemKey()
  7894. ee.EncodeUint(uint64(k2))
  7895. ee.WriteMapElemValue()
  7896. ee.EncodeUint(uint64(v2))
  7897. }
  7898. } else {
  7899. for k2, v2 := range v {
  7900. ee.EncodeUint(uint64(k2))
  7901. ee.EncodeUint(uint64(v2))
  7902. }
  7903. }
  7904. }
  7905. ee.WriteMapEnd()
  7906. }
  7907. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  7908. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  7909. }
  7910. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  7911. if v == nil {
  7912. e.e.EncodeNil()
  7913. return
  7914. }
  7915. ee, esep := e.e, e.hh.hasElemSeparators()
  7916. ee.WriteMapStart(len(v))
  7917. if e.h.Canonical {
  7918. v2 := make([]uint64, len(v))
  7919. var i int
  7920. for k := range v {
  7921. v2[i] = uint64(k)
  7922. i++
  7923. }
  7924. sort.Sort(uintSlice(v2))
  7925. if esep {
  7926. for _, k2 := range v2 {
  7927. ee.WriteMapElemKey()
  7928. ee.EncodeUint(uint64(uint32(k2)))
  7929. ee.WriteMapElemValue()
  7930. ee.EncodeUint(uint64(v[uint32(k2)]))
  7931. }
  7932. } else {
  7933. for _, k2 := range v2 {
  7934. ee.EncodeUint(uint64(uint32(k2)))
  7935. ee.EncodeUint(uint64(v[uint32(k2)]))
  7936. }
  7937. }
  7938. } else {
  7939. if esep {
  7940. for k2, v2 := range v {
  7941. ee.WriteMapElemKey()
  7942. ee.EncodeUint(uint64(k2))
  7943. ee.WriteMapElemValue()
  7944. ee.EncodeUint(uint64(v2))
  7945. }
  7946. } else {
  7947. for k2, v2 := range v {
  7948. ee.EncodeUint(uint64(k2))
  7949. ee.EncodeUint(uint64(v2))
  7950. }
  7951. }
  7952. }
  7953. ee.WriteMapEnd()
  7954. }
  7955. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  7956. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  7957. }
  7958. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  7959. if v == nil {
  7960. e.e.EncodeNil()
  7961. return
  7962. }
  7963. ee, esep := e.e, e.hh.hasElemSeparators()
  7964. ee.WriteMapStart(len(v))
  7965. if e.h.Canonical {
  7966. v2 := make([]uint64, len(v))
  7967. var i int
  7968. for k := range v {
  7969. v2[i] = uint64(k)
  7970. i++
  7971. }
  7972. sort.Sort(uintSlice(v2))
  7973. if esep {
  7974. for _, k2 := range v2 {
  7975. ee.WriteMapElemKey()
  7976. ee.EncodeUint(uint64(uint32(k2)))
  7977. ee.WriteMapElemValue()
  7978. ee.EncodeUint(uint64(v[uint32(k2)]))
  7979. }
  7980. } else {
  7981. for _, k2 := range v2 {
  7982. ee.EncodeUint(uint64(uint32(k2)))
  7983. ee.EncodeUint(uint64(v[uint32(k2)]))
  7984. }
  7985. }
  7986. } else {
  7987. if esep {
  7988. for k2, v2 := range v {
  7989. ee.WriteMapElemKey()
  7990. ee.EncodeUint(uint64(k2))
  7991. ee.WriteMapElemValue()
  7992. ee.EncodeUint(uint64(v2))
  7993. }
  7994. } else {
  7995. for k2, v2 := range v {
  7996. ee.EncodeUint(uint64(k2))
  7997. ee.EncodeUint(uint64(v2))
  7998. }
  7999. }
  8000. }
  8001. ee.WriteMapEnd()
  8002. }
  8003. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  8004. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  8005. }
  8006. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  8007. if v == nil {
  8008. e.e.EncodeNil()
  8009. return
  8010. }
  8011. ee, esep := e.e, e.hh.hasElemSeparators()
  8012. ee.WriteMapStart(len(v))
  8013. if e.h.Canonical {
  8014. v2 := make([]uint64, len(v))
  8015. var i int
  8016. for k := range v {
  8017. v2[i] = uint64(k)
  8018. i++
  8019. }
  8020. sort.Sort(uintSlice(v2))
  8021. if esep {
  8022. for _, k2 := range v2 {
  8023. ee.WriteMapElemKey()
  8024. ee.EncodeUint(uint64(uint32(k2)))
  8025. ee.WriteMapElemValue()
  8026. ee.EncodeUint(uint64(v[uint32(k2)]))
  8027. }
  8028. } else {
  8029. for _, k2 := range v2 {
  8030. ee.EncodeUint(uint64(uint32(k2)))
  8031. ee.EncodeUint(uint64(v[uint32(k2)]))
  8032. }
  8033. }
  8034. } else {
  8035. if esep {
  8036. for k2, v2 := range v {
  8037. ee.WriteMapElemKey()
  8038. ee.EncodeUint(uint64(k2))
  8039. ee.WriteMapElemValue()
  8040. ee.EncodeUint(uint64(v2))
  8041. }
  8042. } else {
  8043. for k2, v2 := range v {
  8044. ee.EncodeUint(uint64(k2))
  8045. ee.EncodeUint(uint64(v2))
  8046. }
  8047. }
  8048. }
  8049. ee.WriteMapEnd()
  8050. }
  8051. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  8052. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  8053. }
  8054. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  8055. if v == nil {
  8056. e.e.EncodeNil()
  8057. return
  8058. }
  8059. ee, esep := e.e, e.hh.hasElemSeparators()
  8060. ee.WriteMapStart(len(v))
  8061. if e.h.Canonical {
  8062. v2 := make([]uint64, len(v))
  8063. var i int
  8064. for k := range v {
  8065. v2[i] = uint64(k)
  8066. i++
  8067. }
  8068. sort.Sort(uintSlice(v2))
  8069. if esep {
  8070. for _, k2 := range v2 {
  8071. ee.WriteMapElemKey()
  8072. ee.EncodeUint(uint64(uint32(k2)))
  8073. ee.WriteMapElemValue()
  8074. e.encode(v[uint32(k2)])
  8075. }
  8076. } else {
  8077. for _, k2 := range v2 {
  8078. ee.EncodeUint(uint64(uint32(k2)))
  8079. e.encode(v[uint32(k2)])
  8080. }
  8081. }
  8082. } else {
  8083. if esep {
  8084. for k2, v2 := range v {
  8085. ee.WriteMapElemKey()
  8086. ee.EncodeUint(uint64(k2))
  8087. ee.WriteMapElemValue()
  8088. e.encode(v2)
  8089. }
  8090. } else {
  8091. for k2, v2 := range v {
  8092. ee.EncodeUint(uint64(k2))
  8093. e.encode(v2)
  8094. }
  8095. }
  8096. }
  8097. ee.WriteMapEnd()
  8098. }
  8099. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  8100. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  8101. }
  8102. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  8103. if v == nil {
  8104. e.e.EncodeNil()
  8105. return
  8106. }
  8107. ee, esep := e.e, e.hh.hasElemSeparators()
  8108. ee.WriteMapStart(len(v))
  8109. if e.h.Canonical {
  8110. v2 := make([]uint64, len(v))
  8111. var i int
  8112. for k := range v {
  8113. v2[i] = uint64(k)
  8114. i++
  8115. }
  8116. sort.Sort(uintSlice(v2))
  8117. if esep {
  8118. for _, k2 := range v2 {
  8119. ee.WriteMapElemKey()
  8120. ee.EncodeUint(uint64(uint32(k2)))
  8121. ee.WriteMapElemValue()
  8122. ee.EncodeInt(int64(v[uint32(k2)]))
  8123. }
  8124. } else {
  8125. for _, k2 := range v2 {
  8126. ee.EncodeUint(uint64(uint32(k2)))
  8127. ee.EncodeInt(int64(v[uint32(k2)]))
  8128. }
  8129. }
  8130. } else {
  8131. if esep {
  8132. for k2, v2 := range v {
  8133. ee.WriteMapElemKey()
  8134. ee.EncodeUint(uint64(k2))
  8135. ee.WriteMapElemValue()
  8136. ee.EncodeInt(int64(v2))
  8137. }
  8138. } else {
  8139. for k2, v2 := range v {
  8140. ee.EncodeUint(uint64(k2))
  8141. ee.EncodeInt(int64(v2))
  8142. }
  8143. }
  8144. }
  8145. ee.WriteMapEnd()
  8146. }
  8147. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  8148. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  8149. }
  8150. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  8151. if v == nil {
  8152. e.e.EncodeNil()
  8153. return
  8154. }
  8155. ee, esep := e.e, e.hh.hasElemSeparators()
  8156. ee.WriteMapStart(len(v))
  8157. if e.h.Canonical {
  8158. v2 := make([]uint64, len(v))
  8159. var i int
  8160. for k := range v {
  8161. v2[i] = uint64(k)
  8162. i++
  8163. }
  8164. sort.Sort(uintSlice(v2))
  8165. if esep {
  8166. for _, k2 := range v2 {
  8167. ee.WriteMapElemKey()
  8168. ee.EncodeUint(uint64(uint32(k2)))
  8169. ee.WriteMapElemValue()
  8170. ee.EncodeInt(int64(v[uint32(k2)]))
  8171. }
  8172. } else {
  8173. for _, k2 := range v2 {
  8174. ee.EncodeUint(uint64(uint32(k2)))
  8175. ee.EncodeInt(int64(v[uint32(k2)]))
  8176. }
  8177. }
  8178. } else {
  8179. if esep {
  8180. for k2, v2 := range v {
  8181. ee.WriteMapElemKey()
  8182. ee.EncodeUint(uint64(k2))
  8183. ee.WriteMapElemValue()
  8184. ee.EncodeInt(int64(v2))
  8185. }
  8186. } else {
  8187. for k2, v2 := range v {
  8188. ee.EncodeUint(uint64(k2))
  8189. ee.EncodeInt(int64(v2))
  8190. }
  8191. }
  8192. }
  8193. ee.WriteMapEnd()
  8194. }
  8195. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  8196. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  8197. }
  8198. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  8199. if v == nil {
  8200. e.e.EncodeNil()
  8201. return
  8202. }
  8203. ee, esep := e.e, e.hh.hasElemSeparators()
  8204. ee.WriteMapStart(len(v))
  8205. if e.h.Canonical {
  8206. v2 := make([]uint64, len(v))
  8207. var i int
  8208. for k := range v {
  8209. v2[i] = uint64(k)
  8210. i++
  8211. }
  8212. sort.Sort(uintSlice(v2))
  8213. if esep {
  8214. for _, k2 := range v2 {
  8215. ee.WriteMapElemKey()
  8216. ee.EncodeUint(uint64(uint32(k2)))
  8217. ee.WriteMapElemValue()
  8218. ee.EncodeInt(int64(v[uint32(k2)]))
  8219. }
  8220. } else {
  8221. for _, k2 := range v2 {
  8222. ee.EncodeUint(uint64(uint32(k2)))
  8223. ee.EncodeInt(int64(v[uint32(k2)]))
  8224. }
  8225. }
  8226. } else {
  8227. if esep {
  8228. for k2, v2 := range v {
  8229. ee.WriteMapElemKey()
  8230. ee.EncodeUint(uint64(k2))
  8231. ee.WriteMapElemValue()
  8232. ee.EncodeInt(int64(v2))
  8233. }
  8234. } else {
  8235. for k2, v2 := range v {
  8236. ee.EncodeUint(uint64(k2))
  8237. ee.EncodeInt(int64(v2))
  8238. }
  8239. }
  8240. }
  8241. ee.WriteMapEnd()
  8242. }
  8243. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  8244. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  8245. }
  8246. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  8247. if v == nil {
  8248. e.e.EncodeNil()
  8249. return
  8250. }
  8251. ee, esep := e.e, e.hh.hasElemSeparators()
  8252. ee.WriteMapStart(len(v))
  8253. if e.h.Canonical {
  8254. v2 := make([]uint64, len(v))
  8255. var i int
  8256. for k := range v {
  8257. v2[i] = uint64(k)
  8258. i++
  8259. }
  8260. sort.Sort(uintSlice(v2))
  8261. if esep {
  8262. for _, k2 := range v2 {
  8263. ee.WriteMapElemKey()
  8264. ee.EncodeUint(uint64(uint32(k2)))
  8265. ee.WriteMapElemValue()
  8266. ee.EncodeInt(int64(v[uint32(k2)]))
  8267. }
  8268. } else {
  8269. for _, k2 := range v2 {
  8270. ee.EncodeUint(uint64(uint32(k2)))
  8271. ee.EncodeInt(int64(v[uint32(k2)]))
  8272. }
  8273. }
  8274. } else {
  8275. if esep {
  8276. for k2, v2 := range v {
  8277. ee.WriteMapElemKey()
  8278. ee.EncodeUint(uint64(k2))
  8279. ee.WriteMapElemValue()
  8280. ee.EncodeInt(int64(v2))
  8281. }
  8282. } else {
  8283. for k2, v2 := range v {
  8284. ee.EncodeUint(uint64(k2))
  8285. ee.EncodeInt(int64(v2))
  8286. }
  8287. }
  8288. }
  8289. ee.WriteMapEnd()
  8290. }
  8291. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  8292. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  8293. }
  8294. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  8295. if v == nil {
  8296. e.e.EncodeNil()
  8297. return
  8298. }
  8299. ee, esep := e.e, e.hh.hasElemSeparators()
  8300. ee.WriteMapStart(len(v))
  8301. if e.h.Canonical {
  8302. v2 := make([]uint64, len(v))
  8303. var i int
  8304. for k := range v {
  8305. v2[i] = uint64(k)
  8306. i++
  8307. }
  8308. sort.Sort(uintSlice(v2))
  8309. if esep {
  8310. for _, k2 := range v2 {
  8311. ee.WriteMapElemKey()
  8312. ee.EncodeUint(uint64(uint32(k2)))
  8313. ee.WriteMapElemValue()
  8314. ee.EncodeInt(int64(v[uint32(k2)]))
  8315. }
  8316. } else {
  8317. for _, k2 := range v2 {
  8318. ee.EncodeUint(uint64(uint32(k2)))
  8319. ee.EncodeInt(int64(v[uint32(k2)]))
  8320. }
  8321. }
  8322. } else {
  8323. if esep {
  8324. for k2, v2 := range v {
  8325. ee.WriteMapElemKey()
  8326. ee.EncodeUint(uint64(k2))
  8327. ee.WriteMapElemValue()
  8328. ee.EncodeInt(int64(v2))
  8329. }
  8330. } else {
  8331. for k2, v2 := range v {
  8332. ee.EncodeUint(uint64(k2))
  8333. ee.EncodeInt(int64(v2))
  8334. }
  8335. }
  8336. }
  8337. ee.WriteMapEnd()
  8338. }
  8339. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  8340. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  8341. }
  8342. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  8343. if v == nil {
  8344. e.e.EncodeNil()
  8345. return
  8346. }
  8347. ee, esep := e.e, e.hh.hasElemSeparators()
  8348. ee.WriteMapStart(len(v))
  8349. if e.h.Canonical {
  8350. v2 := make([]uint64, len(v))
  8351. var i int
  8352. for k := range v {
  8353. v2[i] = uint64(k)
  8354. i++
  8355. }
  8356. sort.Sort(uintSlice(v2))
  8357. if esep {
  8358. for _, k2 := range v2 {
  8359. ee.WriteMapElemKey()
  8360. ee.EncodeUint(uint64(uint32(k2)))
  8361. ee.WriteMapElemValue()
  8362. ee.EncodeFloat32(v[uint32(k2)])
  8363. }
  8364. } else {
  8365. for _, k2 := range v2 {
  8366. ee.EncodeUint(uint64(uint32(k2)))
  8367. ee.EncodeFloat32(v[uint32(k2)])
  8368. }
  8369. }
  8370. } else {
  8371. if esep {
  8372. for k2, v2 := range v {
  8373. ee.WriteMapElemKey()
  8374. ee.EncodeUint(uint64(k2))
  8375. ee.WriteMapElemValue()
  8376. ee.EncodeFloat32(v2)
  8377. }
  8378. } else {
  8379. for k2, v2 := range v {
  8380. ee.EncodeUint(uint64(k2))
  8381. ee.EncodeFloat32(v2)
  8382. }
  8383. }
  8384. }
  8385. ee.WriteMapEnd()
  8386. }
  8387. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  8388. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  8389. }
  8390. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  8391. if v == nil {
  8392. e.e.EncodeNil()
  8393. return
  8394. }
  8395. ee, esep := e.e, e.hh.hasElemSeparators()
  8396. ee.WriteMapStart(len(v))
  8397. if e.h.Canonical {
  8398. v2 := make([]uint64, len(v))
  8399. var i int
  8400. for k := range v {
  8401. v2[i] = uint64(k)
  8402. i++
  8403. }
  8404. sort.Sort(uintSlice(v2))
  8405. if esep {
  8406. for _, k2 := range v2 {
  8407. ee.WriteMapElemKey()
  8408. ee.EncodeUint(uint64(uint32(k2)))
  8409. ee.WriteMapElemValue()
  8410. ee.EncodeFloat64(v[uint32(k2)])
  8411. }
  8412. } else {
  8413. for _, k2 := range v2 {
  8414. ee.EncodeUint(uint64(uint32(k2)))
  8415. ee.EncodeFloat64(v[uint32(k2)])
  8416. }
  8417. }
  8418. } else {
  8419. if esep {
  8420. for k2, v2 := range v {
  8421. ee.WriteMapElemKey()
  8422. ee.EncodeUint(uint64(k2))
  8423. ee.WriteMapElemValue()
  8424. ee.EncodeFloat64(v2)
  8425. }
  8426. } else {
  8427. for k2, v2 := range v {
  8428. ee.EncodeUint(uint64(k2))
  8429. ee.EncodeFloat64(v2)
  8430. }
  8431. }
  8432. }
  8433. ee.WriteMapEnd()
  8434. }
  8435. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  8436. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  8437. }
  8438. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  8439. if v == nil {
  8440. e.e.EncodeNil()
  8441. return
  8442. }
  8443. ee, esep := e.e, e.hh.hasElemSeparators()
  8444. ee.WriteMapStart(len(v))
  8445. if e.h.Canonical {
  8446. v2 := make([]uint64, len(v))
  8447. var i int
  8448. for k := range v {
  8449. v2[i] = uint64(k)
  8450. i++
  8451. }
  8452. sort.Sort(uintSlice(v2))
  8453. if esep {
  8454. for _, k2 := range v2 {
  8455. ee.WriteMapElemKey()
  8456. ee.EncodeUint(uint64(uint32(k2)))
  8457. ee.WriteMapElemValue()
  8458. ee.EncodeBool(v[uint32(k2)])
  8459. }
  8460. } else {
  8461. for _, k2 := range v2 {
  8462. ee.EncodeUint(uint64(uint32(k2)))
  8463. ee.EncodeBool(v[uint32(k2)])
  8464. }
  8465. }
  8466. } else {
  8467. if esep {
  8468. for k2, v2 := range v {
  8469. ee.WriteMapElemKey()
  8470. ee.EncodeUint(uint64(k2))
  8471. ee.WriteMapElemValue()
  8472. ee.EncodeBool(v2)
  8473. }
  8474. } else {
  8475. for k2, v2 := range v {
  8476. ee.EncodeUint(uint64(k2))
  8477. ee.EncodeBool(v2)
  8478. }
  8479. }
  8480. }
  8481. ee.WriteMapEnd()
  8482. }
  8483. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  8484. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  8485. }
  8486. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  8487. if v == nil {
  8488. e.e.EncodeNil()
  8489. return
  8490. }
  8491. ee, esep := e.e, e.hh.hasElemSeparators()
  8492. ee.WriteMapStart(len(v))
  8493. if e.h.Canonical {
  8494. v2 := make([]uint64, len(v))
  8495. var i int
  8496. for k := range v {
  8497. v2[i] = uint64(k)
  8498. i++
  8499. }
  8500. sort.Sort(uintSlice(v2))
  8501. if esep {
  8502. for _, k2 := range v2 {
  8503. ee.WriteMapElemKey()
  8504. ee.EncodeUint(uint64(uint64(k2)))
  8505. ee.WriteMapElemValue()
  8506. e.encode(v[uint64(k2)])
  8507. }
  8508. } else {
  8509. for _, k2 := range v2 {
  8510. ee.EncodeUint(uint64(uint64(k2)))
  8511. e.encode(v[uint64(k2)])
  8512. }
  8513. }
  8514. } else {
  8515. if esep {
  8516. for k2, v2 := range v {
  8517. ee.WriteMapElemKey()
  8518. ee.EncodeUint(uint64(k2))
  8519. ee.WriteMapElemValue()
  8520. e.encode(v2)
  8521. }
  8522. } else {
  8523. for k2, v2 := range v {
  8524. ee.EncodeUint(uint64(k2))
  8525. e.encode(v2)
  8526. }
  8527. }
  8528. }
  8529. ee.WriteMapEnd()
  8530. }
  8531. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  8532. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  8533. }
  8534. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  8535. if v == nil {
  8536. e.e.EncodeNil()
  8537. return
  8538. }
  8539. ee, esep := e.e, e.hh.hasElemSeparators()
  8540. ee.WriteMapStart(len(v))
  8541. if e.h.Canonical {
  8542. v2 := make([]uint64, len(v))
  8543. var i int
  8544. for k := range v {
  8545. v2[i] = uint64(k)
  8546. i++
  8547. }
  8548. sort.Sort(uintSlice(v2))
  8549. if esep {
  8550. for _, k2 := range v2 {
  8551. ee.WriteMapElemKey()
  8552. ee.EncodeUint(uint64(uint64(k2)))
  8553. ee.WriteMapElemValue()
  8554. ee.EncodeStringEnc(cUTF8, v[uint64(k2)])
  8555. }
  8556. } else {
  8557. for _, k2 := range v2 {
  8558. ee.EncodeUint(uint64(uint64(k2)))
  8559. ee.EncodeStringEnc(cUTF8, v[uint64(k2)])
  8560. }
  8561. }
  8562. } else {
  8563. if esep {
  8564. for k2, v2 := range v {
  8565. ee.WriteMapElemKey()
  8566. ee.EncodeUint(uint64(k2))
  8567. ee.WriteMapElemValue()
  8568. ee.EncodeStringEnc(cUTF8, v2)
  8569. }
  8570. } else {
  8571. for k2, v2 := range v {
  8572. ee.EncodeUint(uint64(k2))
  8573. ee.EncodeStringEnc(cUTF8, v2)
  8574. }
  8575. }
  8576. }
  8577. ee.WriteMapEnd()
  8578. }
  8579. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  8580. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  8581. }
  8582. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  8583. if v == nil {
  8584. e.e.EncodeNil()
  8585. return
  8586. }
  8587. ee, esep := e.e, e.hh.hasElemSeparators()
  8588. ee.WriteMapStart(len(v))
  8589. if e.h.Canonical {
  8590. v2 := make([]uint64, len(v))
  8591. var i int
  8592. for k := range v {
  8593. v2[i] = uint64(k)
  8594. i++
  8595. }
  8596. sort.Sort(uintSlice(v2))
  8597. if esep {
  8598. for _, k2 := range v2 {
  8599. ee.WriteMapElemKey()
  8600. ee.EncodeUint(uint64(uint64(k2)))
  8601. ee.WriteMapElemValue()
  8602. ee.EncodeUint(uint64(v[uint64(k2)]))
  8603. }
  8604. } else {
  8605. for _, k2 := range v2 {
  8606. ee.EncodeUint(uint64(uint64(k2)))
  8607. ee.EncodeUint(uint64(v[uint64(k2)]))
  8608. }
  8609. }
  8610. } else {
  8611. if esep {
  8612. for k2, v2 := range v {
  8613. ee.WriteMapElemKey()
  8614. ee.EncodeUint(uint64(k2))
  8615. ee.WriteMapElemValue()
  8616. ee.EncodeUint(uint64(v2))
  8617. }
  8618. } else {
  8619. for k2, v2 := range v {
  8620. ee.EncodeUint(uint64(k2))
  8621. ee.EncodeUint(uint64(v2))
  8622. }
  8623. }
  8624. }
  8625. ee.WriteMapEnd()
  8626. }
  8627. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  8628. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  8629. }
  8630. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  8631. if v == nil {
  8632. e.e.EncodeNil()
  8633. return
  8634. }
  8635. ee, esep := e.e, e.hh.hasElemSeparators()
  8636. ee.WriteMapStart(len(v))
  8637. if e.h.Canonical {
  8638. v2 := make([]uint64, len(v))
  8639. var i int
  8640. for k := range v {
  8641. v2[i] = uint64(k)
  8642. i++
  8643. }
  8644. sort.Sort(uintSlice(v2))
  8645. if esep {
  8646. for _, k2 := range v2 {
  8647. ee.WriteMapElemKey()
  8648. ee.EncodeUint(uint64(uint64(k2)))
  8649. ee.WriteMapElemValue()
  8650. ee.EncodeUint(uint64(v[uint64(k2)]))
  8651. }
  8652. } else {
  8653. for _, k2 := range v2 {
  8654. ee.EncodeUint(uint64(uint64(k2)))
  8655. ee.EncodeUint(uint64(v[uint64(k2)]))
  8656. }
  8657. }
  8658. } else {
  8659. if esep {
  8660. for k2, v2 := range v {
  8661. ee.WriteMapElemKey()
  8662. ee.EncodeUint(uint64(k2))
  8663. ee.WriteMapElemValue()
  8664. ee.EncodeUint(uint64(v2))
  8665. }
  8666. } else {
  8667. for k2, v2 := range v {
  8668. ee.EncodeUint(uint64(k2))
  8669. ee.EncodeUint(uint64(v2))
  8670. }
  8671. }
  8672. }
  8673. ee.WriteMapEnd()
  8674. }
  8675. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  8676. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  8677. }
  8678. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  8679. if v == nil {
  8680. e.e.EncodeNil()
  8681. return
  8682. }
  8683. ee, esep := e.e, e.hh.hasElemSeparators()
  8684. ee.WriteMapStart(len(v))
  8685. if e.h.Canonical {
  8686. v2 := make([]uint64, len(v))
  8687. var i int
  8688. for k := range v {
  8689. v2[i] = uint64(k)
  8690. i++
  8691. }
  8692. sort.Sort(uintSlice(v2))
  8693. if esep {
  8694. for _, k2 := range v2 {
  8695. ee.WriteMapElemKey()
  8696. ee.EncodeUint(uint64(uint64(k2)))
  8697. ee.WriteMapElemValue()
  8698. ee.EncodeUint(uint64(v[uint64(k2)]))
  8699. }
  8700. } else {
  8701. for _, k2 := range v2 {
  8702. ee.EncodeUint(uint64(uint64(k2)))
  8703. ee.EncodeUint(uint64(v[uint64(k2)]))
  8704. }
  8705. }
  8706. } else {
  8707. if esep {
  8708. for k2, v2 := range v {
  8709. ee.WriteMapElemKey()
  8710. ee.EncodeUint(uint64(k2))
  8711. ee.WriteMapElemValue()
  8712. ee.EncodeUint(uint64(v2))
  8713. }
  8714. } else {
  8715. for k2, v2 := range v {
  8716. ee.EncodeUint(uint64(k2))
  8717. ee.EncodeUint(uint64(v2))
  8718. }
  8719. }
  8720. }
  8721. ee.WriteMapEnd()
  8722. }
  8723. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  8724. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  8725. }
  8726. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  8727. if v == nil {
  8728. e.e.EncodeNil()
  8729. return
  8730. }
  8731. ee, esep := e.e, e.hh.hasElemSeparators()
  8732. ee.WriteMapStart(len(v))
  8733. if e.h.Canonical {
  8734. v2 := make([]uint64, len(v))
  8735. var i int
  8736. for k := range v {
  8737. v2[i] = uint64(k)
  8738. i++
  8739. }
  8740. sort.Sort(uintSlice(v2))
  8741. if esep {
  8742. for _, k2 := range v2 {
  8743. ee.WriteMapElemKey()
  8744. ee.EncodeUint(uint64(uint64(k2)))
  8745. ee.WriteMapElemValue()
  8746. ee.EncodeUint(uint64(v[uint64(k2)]))
  8747. }
  8748. } else {
  8749. for _, k2 := range v2 {
  8750. ee.EncodeUint(uint64(uint64(k2)))
  8751. ee.EncodeUint(uint64(v[uint64(k2)]))
  8752. }
  8753. }
  8754. } else {
  8755. if esep {
  8756. for k2, v2 := range v {
  8757. ee.WriteMapElemKey()
  8758. ee.EncodeUint(uint64(k2))
  8759. ee.WriteMapElemValue()
  8760. ee.EncodeUint(uint64(v2))
  8761. }
  8762. } else {
  8763. for k2, v2 := range v {
  8764. ee.EncodeUint(uint64(k2))
  8765. ee.EncodeUint(uint64(v2))
  8766. }
  8767. }
  8768. }
  8769. ee.WriteMapEnd()
  8770. }
  8771. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  8772. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  8773. }
  8774. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  8775. if v == nil {
  8776. e.e.EncodeNil()
  8777. return
  8778. }
  8779. ee, esep := e.e, e.hh.hasElemSeparators()
  8780. ee.WriteMapStart(len(v))
  8781. if e.h.Canonical {
  8782. v2 := make([]uint64, len(v))
  8783. var i int
  8784. for k := range v {
  8785. v2[i] = uint64(k)
  8786. i++
  8787. }
  8788. sort.Sort(uintSlice(v2))
  8789. if esep {
  8790. for _, k2 := range v2 {
  8791. ee.WriteMapElemKey()
  8792. ee.EncodeUint(uint64(uint64(k2)))
  8793. ee.WriteMapElemValue()
  8794. ee.EncodeUint(uint64(v[uint64(k2)]))
  8795. }
  8796. } else {
  8797. for _, k2 := range v2 {
  8798. ee.EncodeUint(uint64(uint64(k2)))
  8799. ee.EncodeUint(uint64(v[uint64(k2)]))
  8800. }
  8801. }
  8802. } else {
  8803. if esep {
  8804. for k2, v2 := range v {
  8805. ee.WriteMapElemKey()
  8806. ee.EncodeUint(uint64(k2))
  8807. ee.WriteMapElemValue()
  8808. ee.EncodeUint(uint64(v2))
  8809. }
  8810. } else {
  8811. for k2, v2 := range v {
  8812. ee.EncodeUint(uint64(k2))
  8813. ee.EncodeUint(uint64(v2))
  8814. }
  8815. }
  8816. }
  8817. ee.WriteMapEnd()
  8818. }
  8819. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  8820. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  8821. }
  8822. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  8823. if v == nil {
  8824. e.e.EncodeNil()
  8825. return
  8826. }
  8827. ee, esep := e.e, e.hh.hasElemSeparators()
  8828. ee.WriteMapStart(len(v))
  8829. if e.h.Canonical {
  8830. v2 := make([]uint64, len(v))
  8831. var i int
  8832. for k := range v {
  8833. v2[i] = uint64(k)
  8834. i++
  8835. }
  8836. sort.Sort(uintSlice(v2))
  8837. if esep {
  8838. for _, k2 := range v2 {
  8839. ee.WriteMapElemKey()
  8840. ee.EncodeUint(uint64(uint64(k2)))
  8841. ee.WriteMapElemValue()
  8842. e.encode(v[uint64(k2)])
  8843. }
  8844. } else {
  8845. for _, k2 := range v2 {
  8846. ee.EncodeUint(uint64(uint64(k2)))
  8847. e.encode(v[uint64(k2)])
  8848. }
  8849. }
  8850. } else {
  8851. if esep {
  8852. for k2, v2 := range v {
  8853. ee.WriteMapElemKey()
  8854. ee.EncodeUint(uint64(k2))
  8855. ee.WriteMapElemValue()
  8856. e.encode(v2)
  8857. }
  8858. } else {
  8859. for k2, v2 := range v {
  8860. ee.EncodeUint(uint64(k2))
  8861. e.encode(v2)
  8862. }
  8863. }
  8864. }
  8865. ee.WriteMapEnd()
  8866. }
  8867. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8868. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8869. }
  8870. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8871. if v == nil {
  8872. e.e.EncodeNil()
  8873. return
  8874. }
  8875. ee, esep := e.e, e.hh.hasElemSeparators()
  8876. ee.WriteMapStart(len(v))
  8877. if e.h.Canonical {
  8878. v2 := make([]uint64, len(v))
  8879. var i int
  8880. for k := range v {
  8881. v2[i] = uint64(k)
  8882. i++
  8883. }
  8884. sort.Sort(uintSlice(v2))
  8885. if esep {
  8886. for _, k2 := range v2 {
  8887. ee.WriteMapElemKey()
  8888. ee.EncodeUint(uint64(uint64(k2)))
  8889. ee.WriteMapElemValue()
  8890. ee.EncodeInt(int64(v[uint64(k2)]))
  8891. }
  8892. } else {
  8893. for _, k2 := range v2 {
  8894. ee.EncodeUint(uint64(uint64(k2)))
  8895. ee.EncodeInt(int64(v[uint64(k2)]))
  8896. }
  8897. }
  8898. } else {
  8899. if esep {
  8900. for k2, v2 := range v {
  8901. ee.WriteMapElemKey()
  8902. ee.EncodeUint(uint64(k2))
  8903. ee.WriteMapElemValue()
  8904. ee.EncodeInt(int64(v2))
  8905. }
  8906. } else {
  8907. for k2, v2 := range v {
  8908. ee.EncodeUint(uint64(k2))
  8909. ee.EncodeInt(int64(v2))
  8910. }
  8911. }
  8912. }
  8913. ee.WriteMapEnd()
  8914. }
  8915. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8916. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8917. }
  8918. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8919. if v == nil {
  8920. e.e.EncodeNil()
  8921. return
  8922. }
  8923. ee, esep := e.e, e.hh.hasElemSeparators()
  8924. ee.WriteMapStart(len(v))
  8925. if e.h.Canonical {
  8926. v2 := make([]uint64, len(v))
  8927. var i int
  8928. for k := range v {
  8929. v2[i] = uint64(k)
  8930. i++
  8931. }
  8932. sort.Sort(uintSlice(v2))
  8933. if esep {
  8934. for _, k2 := range v2 {
  8935. ee.WriteMapElemKey()
  8936. ee.EncodeUint(uint64(uint64(k2)))
  8937. ee.WriteMapElemValue()
  8938. ee.EncodeInt(int64(v[uint64(k2)]))
  8939. }
  8940. } else {
  8941. for _, k2 := range v2 {
  8942. ee.EncodeUint(uint64(uint64(k2)))
  8943. ee.EncodeInt(int64(v[uint64(k2)]))
  8944. }
  8945. }
  8946. } else {
  8947. if esep {
  8948. for k2, v2 := range v {
  8949. ee.WriteMapElemKey()
  8950. ee.EncodeUint(uint64(k2))
  8951. ee.WriteMapElemValue()
  8952. ee.EncodeInt(int64(v2))
  8953. }
  8954. } else {
  8955. for k2, v2 := range v {
  8956. ee.EncodeUint(uint64(k2))
  8957. ee.EncodeInt(int64(v2))
  8958. }
  8959. }
  8960. }
  8961. ee.WriteMapEnd()
  8962. }
  8963. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8964. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8965. }
  8966. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8967. if v == nil {
  8968. e.e.EncodeNil()
  8969. return
  8970. }
  8971. ee, esep := e.e, e.hh.hasElemSeparators()
  8972. ee.WriteMapStart(len(v))
  8973. if e.h.Canonical {
  8974. v2 := make([]uint64, len(v))
  8975. var i int
  8976. for k := range v {
  8977. v2[i] = uint64(k)
  8978. i++
  8979. }
  8980. sort.Sort(uintSlice(v2))
  8981. if esep {
  8982. for _, k2 := range v2 {
  8983. ee.WriteMapElemKey()
  8984. ee.EncodeUint(uint64(uint64(k2)))
  8985. ee.WriteMapElemValue()
  8986. ee.EncodeInt(int64(v[uint64(k2)]))
  8987. }
  8988. } else {
  8989. for _, k2 := range v2 {
  8990. ee.EncodeUint(uint64(uint64(k2)))
  8991. ee.EncodeInt(int64(v[uint64(k2)]))
  8992. }
  8993. }
  8994. } else {
  8995. if esep {
  8996. for k2, v2 := range v {
  8997. ee.WriteMapElemKey()
  8998. ee.EncodeUint(uint64(k2))
  8999. ee.WriteMapElemValue()
  9000. ee.EncodeInt(int64(v2))
  9001. }
  9002. } else {
  9003. for k2, v2 := range v {
  9004. ee.EncodeUint(uint64(k2))
  9005. ee.EncodeInt(int64(v2))
  9006. }
  9007. }
  9008. }
  9009. ee.WriteMapEnd()
  9010. }
  9011. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  9012. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  9013. }
  9014. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  9015. if v == nil {
  9016. e.e.EncodeNil()
  9017. return
  9018. }
  9019. ee, esep := e.e, e.hh.hasElemSeparators()
  9020. ee.WriteMapStart(len(v))
  9021. if e.h.Canonical {
  9022. v2 := make([]uint64, len(v))
  9023. var i int
  9024. for k := range v {
  9025. v2[i] = uint64(k)
  9026. i++
  9027. }
  9028. sort.Sort(uintSlice(v2))
  9029. if esep {
  9030. for _, k2 := range v2 {
  9031. ee.WriteMapElemKey()
  9032. ee.EncodeUint(uint64(uint64(k2)))
  9033. ee.WriteMapElemValue()
  9034. ee.EncodeInt(int64(v[uint64(k2)]))
  9035. }
  9036. } else {
  9037. for _, k2 := range v2 {
  9038. ee.EncodeUint(uint64(uint64(k2)))
  9039. ee.EncodeInt(int64(v[uint64(k2)]))
  9040. }
  9041. }
  9042. } else {
  9043. if esep {
  9044. for k2, v2 := range v {
  9045. ee.WriteMapElemKey()
  9046. ee.EncodeUint(uint64(k2))
  9047. ee.WriteMapElemValue()
  9048. ee.EncodeInt(int64(v2))
  9049. }
  9050. } else {
  9051. for k2, v2 := range v {
  9052. ee.EncodeUint(uint64(k2))
  9053. ee.EncodeInt(int64(v2))
  9054. }
  9055. }
  9056. }
  9057. ee.WriteMapEnd()
  9058. }
  9059. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  9060. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  9061. }
  9062. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  9063. if v == nil {
  9064. e.e.EncodeNil()
  9065. return
  9066. }
  9067. ee, esep := e.e, e.hh.hasElemSeparators()
  9068. ee.WriteMapStart(len(v))
  9069. if e.h.Canonical {
  9070. v2 := make([]uint64, len(v))
  9071. var i int
  9072. for k := range v {
  9073. v2[i] = uint64(k)
  9074. i++
  9075. }
  9076. sort.Sort(uintSlice(v2))
  9077. if esep {
  9078. for _, k2 := range v2 {
  9079. ee.WriteMapElemKey()
  9080. ee.EncodeUint(uint64(uint64(k2)))
  9081. ee.WriteMapElemValue()
  9082. ee.EncodeInt(int64(v[uint64(k2)]))
  9083. }
  9084. } else {
  9085. for _, k2 := range v2 {
  9086. ee.EncodeUint(uint64(uint64(k2)))
  9087. ee.EncodeInt(int64(v[uint64(k2)]))
  9088. }
  9089. }
  9090. } else {
  9091. if esep {
  9092. for k2, v2 := range v {
  9093. ee.WriteMapElemKey()
  9094. ee.EncodeUint(uint64(k2))
  9095. ee.WriteMapElemValue()
  9096. ee.EncodeInt(int64(v2))
  9097. }
  9098. } else {
  9099. for k2, v2 := range v {
  9100. ee.EncodeUint(uint64(k2))
  9101. ee.EncodeInt(int64(v2))
  9102. }
  9103. }
  9104. }
  9105. ee.WriteMapEnd()
  9106. }
  9107. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  9108. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  9109. }
  9110. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  9111. if v == nil {
  9112. e.e.EncodeNil()
  9113. return
  9114. }
  9115. ee, esep := e.e, e.hh.hasElemSeparators()
  9116. ee.WriteMapStart(len(v))
  9117. if e.h.Canonical {
  9118. v2 := make([]uint64, len(v))
  9119. var i int
  9120. for k := range v {
  9121. v2[i] = uint64(k)
  9122. i++
  9123. }
  9124. sort.Sort(uintSlice(v2))
  9125. if esep {
  9126. for _, k2 := range v2 {
  9127. ee.WriteMapElemKey()
  9128. ee.EncodeUint(uint64(uint64(k2)))
  9129. ee.WriteMapElemValue()
  9130. ee.EncodeFloat32(v[uint64(k2)])
  9131. }
  9132. } else {
  9133. for _, k2 := range v2 {
  9134. ee.EncodeUint(uint64(uint64(k2)))
  9135. ee.EncodeFloat32(v[uint64(k2)])
  9136. }
  9137. }
  9138. } else {
  9139. if esep {
  9140. for k2, v2 := range v {
  9141. ee.WriteMapElemKey()
  9142. ee.EncodeUint(uint64(k2))
  9143. ee.WriteMapElemValue()
  9144. ee.EncodeFloat32(v2)
  9145. }
  9146. } else {
  9147. for k2, v2 := range v {
  9148. ee.EncodeUint(uint64(k2))
  9149. ee.EncodeFloat32(v2)
  9150. }
  9151. }
  9152. }
  9153. ee.WriteMapEnd()
  9154. }
  9155. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  9156. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  9157. }
  9158. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  9159. if v == nil {
  9160. e.e.EncodeNil()
  9161. return
  9162. }
  9163. ee, esep := e.e, e.hh.hasElemSeparators()
  9164. ee.WriteMapStart(len(v))
  9165. if e.h.Canonical {
  9166. v2 := make([]uint64, len(v))
  9167. var i int
  9168. for k := range v {
  9169. v2[i] = uint64(k)
  9170. i++
  9171. }
  9172. sort.Sort(uintSlice(v2))
  9173. if esep {
  9174. for _, k2 := range v2 {
  9175. ee.WriteMapElemKey()
  9176. ee.EncodeUint(uint64(uint64(k2)))
  9177. ee.WriteMapElemValue()
  9178. ee.EncodeFloat64(v[uint64(k2)])
  9179. }
  9180. } else {
  9181. for _, k2 := range v2 {
  9182. ee.EncodeUint(uint64(uint64(k2)))
  9183. ee.EncodeFloat64(v[uint64(k2)])
  9184. }
  9185. }
  9186. } else {
  9187. if esep {
  9188. for k2, v2 := range v {
  9189. ee.WriteMapElemKey()
  9190. ee.EncodeUint(uint64(k2))
  9191. ee.WriteMapElemValue()
  9192. ee.EncodeFloat64(v2)
  9193. }
  9194. } else {
  9195. for k2, v2 := range v {
  9196. ee.EncodeUint(uint64(k2))
  9197. ee.EncodeFloat64(v2)
  9198. }
  9199. }
  9200. }
  9201. ee.WriteMapEnd()
  9202. }
  9203. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  9204. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  9205. }
  9206. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  9207. if v == nil {
  9208. e.e.EncodeNil()
  9209. return
  9210. }
  9211. ee, esep := e.e, e.hh.hasElemSeparators()
  9212. ee.WriteMapStart(len(v))
  9213. if e.h.Canonical {
  9214. v2 := make([]uint64, len(v))
  9215. var i int
  9216. for k := range v {
  9217. v2[i] = uint64(k)
  9218. i++
  9219. }
  9220. sort.Sort(uintSlice(v2))
  9221. if esep {
  9222. for _, k2 := range v2 {
  9223. ee.WriteMapElemKey()
  9224. ee.EncodeUint(uint64(uint64(k2)))
  9225. ee.WriteMapElemValue()
  9226. ee.EncodeBool(v[uint64(k2)])
  9227. }
  9228. } else {
  9229. for _, k2 := range v2 {
  9230. ee.EncodeUint(uint64(uint64(k2)))
  9231. ee.EncodeBool(v[uint64(k2)])
  9232. }
  9233. }
  9234. } else {
  9235. if esep {
  9236. for k2, v2 := range v {
  9237. ee.WriteMapElemKey()
  9238. ee.EncodeUint(uint64(k2))
  9239. ee.WriteMapElemValue()
  9240. ee.EncodeBool(v2)
  9241. }
  9242. } else {
  9243. for k2, v2 := range v {
  9244. ee.EncodeUint(uint64(k2))
  9245. ee.EncodeBool(v2)
  9246. }
  9247. }
  9248. }
  9249. ee.WriteMapEnd()
  9250. }
  9251. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  9252. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  9253. }
  9254. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  9255. if v == nil {
  9256. e.e.EncodeNil()
  9257. return
  9258. }
  9259. ee, esep := e.e, e.hh.hasElemSeparators()
  9260. ee.WriteMapStart(len(v))
  9261. if e.h.Canonical {
  9262. v2 := make([]uint64, len(v))
  9263. var i int
  9264. for k := range v {
  9265. v2[i] = uint64(k)
  9266. i++
  9267. }
  9268. sort.Sort(uintSlice(v2))
  9269. if esep {
  9270. for _, k2 := range v2 {
  9271. ee.WriteMapElemKey()
  9272. e.encode(uintptr(k2))
  9273. ee.WriteMapElemValue()
  9274. e.encode(v[uintptr(k2)])
  9275. }
  9276. } else {
  9277. for _, k2 := range v2 {
  9278. e.encode(uintptr(k2))
  9279. e.encode(v[uintptr(k2)])
  9280. }
  9281. }
  9282. } else {
  9283. if esep {
  9284. for k2, v2 := range v {
  9285. ee.WriteMapElemKey()
  9286. e.encode(k2)
  9287. ee.WriteMapElemValue()
  9288. e.encode(v2)
  9289. }
  9290. } else {
  9291. for k2, v2 := range v {
  9292. e.encode(k2)
  9293. e.encode(v2)
  9294. }
  9295. }
  9296. }
  9297. ee.WriteMapEnd()
  9298. }
  9299. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  9300. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  9301. }
  9302. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  9303. if v == nil {
  9304. e.e.EncodeNil()
  9305. return
  9306. }
  9307. ee, esep := e.e, e.hh.hasElemSeparators()
  9308. ee.WriteMapStart(len(v))
  9309. if e.h.Canonical {
  9310. v2 := make([]uint64, len(v))
  9311. var i int
  9312. for k := range v {
  9313. v2[i] = uint64(k)
  9314. i++
  9315. }
  9316. sort.Sort(uintSlice(v2))
  9317. if esep {
  9318. for _, k2 := range v2 {
  9319. ee.WriteMapElemKey()
  9320. e.encode(uintptr(k2))
  9321. ee.WriteMapElemValue()
  9322. ee.EncodeStringEnc(cUTF8, v[uintptr(k2)])
  9323. }
  9324. } else {
  9325. for _, k2 := range v2 {
  9326. e.encode(uintptr(k2))
  9327. ee.EncodeStringEnc(cUTF8, v[uintptr(k2)])
  9328. }
  9329. }
  9330. } else {
  9331. if esep {
  9332. for k2, v2 := range v {
  9333. ee.WriteMapElemKey()
  9334. e.encode(k2)
  9335. ee.WriteMapElemValue()
  9336. ee.EncodeStringEnc(cUTF8, v2)
  9337. }
  9338. } else {
  9339. for k2, v2 := range v {
  9340. e.encode(k2)
  9341. ee.EncodeStringEnc(cUTF8, v2)
  9342. }
  9343. }
  9344. }
  9345. ee.WriteMapEnd()
  9346. }
  9347. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  9348. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  9349. }
  9350. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  9351. if v == nil {
  9352. e.e.EncodeNil()
  9353. return
  9354. }
  9355. ee, esep := e.e, e.hh.hasElemSeparators()
  9356. ee.WriteMapStart(len(v))
  9357. if e.h.Canonical {
  9358. v2 := make([]uint64, len(v))
  9359. var i int
  9360. for k := range v {
  9361. v2[i] = uint64(k)
  9362. i++
  9363. }
  9364. sort.Sort(uintSlice(v2))
  9365. if esep {
  9366. for _, k2 := range v2 {
  9367. ee.WriteMapElemKey()
  9368. e.encode(uintptr(k2))
  9369. ee.WriteMapElemValue()
  9370. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9371. }
  9372. } else {
  9373. for _, k2 := range v2 {
  9374. e.encode(uintptr(k2))
  9375. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9376. }
  9377. }
  9378. } else {
  9379. if esep {
  9380. for k2, v2 := range v {
  9381. ee.WriteMapElemKey()
  9382. e.encode(k2)
  9383. ee.WriteMapElemValue()
  9384. ee.EncodeUint(uint64(v2))
  9385. }
  9386. } else {
  9387. for k2, v2 := range v {
  9388. e.encode(k2)
  9389. ee.EncodeUint(uint64(v2))
  9390. }
  9391. }
  9392. }
  9393. ee.WriteMapEnd()
  9394. }
  9395. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  9396. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  9397. }
  9398. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  9399. if v == nil {
  9400. e.e.EncodeNil()
  9401. return
  9402. }
  9403. ee, esep := e.e, e.hh.hasElemSeparators()
  9404. ee.WriteMapStart(len(v))
  9405. if e.h.Canonical {
  9406. v2 := make([]uint64, len(v))
  9407. var i int
  9408. for k := range v {
  9409. v2[i] = uint64(k)
  9410. i++
  9411. }
  9412. sort.Sort(uintSlice(v2))
  9413. if esep {
  9414. for _, k2 := range v2 {
  9415. ee.WriteMapElemKey()
  9416. e.encode(uintptr(k2))
  9417. ee.WriteMapElemValue()
  9418. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9419. }
  9420. } else {
  9421. for _, k2 := range v2 {
  9422. e.encode(uintptr(k2))
  9423. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9424. }
  9425. }
  9426. } else {
  9427. if esep {
  9428. for k2, v2 := range v {
  9429. ee.WriteMapElemKey()
  9430. e.encode(k2)
  9431. ee.WriteMapElemValue()
  9432. ee.EncodeUint(uint64(v2))
  9433. }
  9434. } else {
  9435. for k2, v2 := range v {
  9436. e.encode(k2)
  9437. ee.EncodeUint(uint64(v2))
  9438. }
  9439. }
  9440. }
  9441. ee.WriteMapEnd()
  9442. }
  9443. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  9444. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  9445. }
  9446. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  9447. if v == nil {
  9448. e.e.EncodeNil()
  9449. return
  9450. }
  9451. ee, esep := e.e, e.hh.hasElemSeparators()
  9452. ee.WriteMapStart(len(v))
  9453. if e.h.Canonical {
  9454. v2 := make([]uint64, len(v))
  9455. var i int
  9456. for k := range v {
  9457. v2[i] = uint64(k)
  9458. i++
  9459. }
  9460. sort.Sort(uintSlice(v2))
  9461. if esep {
  9462. for _, k2 := range v2 {
  9463. ee.WriteMapElemKey()
  9464. e.encode(uintptr(k2))
  9465. ee.WriteMapElemValue()
  9466. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9467. }
  9468. } else {
  9469. for _, k2 := range v2 {
  9470. e.encode(uintptr(k2))
  9471. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9472. }
  9473. }
  9474. } else {
  9475. if esep {
  9476. for k2, v2 := range v {
  9477. ee.WriteMapElemKey()
  9478. e.encode(k2)
  9479. ee.WriteMapElemValue()
  9480. ee.EncodeUint(uint64(v2))
  9481. }
  9482. } else {
  9483. for k2, v2 := range v {
  9484. e.encode(k2)
  9485. ee.EncodeUint(uint64(v2))
  9486. }
  9487. }
  9488. }
  9489. ee.WriteMapEnd()
  9490. }
  9491. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  9492. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  9493. }
  9494. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  9495. if v == nil {
  9496. e.e.EncodeNil()
  9497. return
  9498. }
  9499. ee, esep := e.e, e.hh.hasElemSeparators()
  9500. ee.WriteMapStart(len(v))
  9501. if e.h.Canonical {
  9502. v2 := make([]uint64, len(v))
  9503. var i int
  9504. for k := range v {
  9505. v2[i] = uint64(k)
  9506. i++
  9507. }
  9508. sort.Sort(uintSlice(v2))
  9509. if esep {
  9510. for _, k2 := range v2 {
  9511. ee.WriteMapElemKey()
  9512. e.encode(uintptr(k2))
  9513. ee.WriteMapElemValue()
  9514. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9515. }
  9516. } else {
  9517. for _, k2 := range v2 {
  9518. e.encode(uintptr(k2))
  9519. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9520. }
  9521. }
  9522. } else {
  9523. if esep {
  9524. for k2, v2 := range v {
  9525. ee.WriteMapElemKey()
  9526. e.encode(k2)
  9527. ee.WriteMapElemValue()
  9528. ee.EncodeUint(uint64(v2))
  9529. }
  9530. } else {
  9531. for k2, v2 := range v {
  9532. e.encode(k2)
  9533. ee.EncodeUint(uint64(v2))
  9534. }
  9535. }
  9536. }
  9537. ee.WriteMapEnd()
  9538. }
  9539. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  9540. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  9541. }
  9542. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  9543. if v == nil {
  9544. e.e.EncodeNil()
  9545. return
  9546. }
  9547. ee, esep := e.e, e.hh.hasElemSeparators()
  9548. ee.WriteMapStart(len(v))
  9549. if e.h.Canonical {
  9550. v2 := make([]uint64, len(v))
  9551. var i int
  9552. for k := range v {
  9553. v2[i] = uint64(k)
  9554. i++
  9555. }
  9556. sort.Sort(uintSlice(v2))
  9557. if esep {
  9558. for _, k2 := range v2 {
  9559. ee.WriteMapElemKey()
  9560. e.encode(uintptr(k2))
  9561. ee.WriteMapElemValue()
  9562. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9563. }
  9564. } else {
  9565. for _, k2 := range v2 {
  9566. e.encode(uintptr(k2))
  9567. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9568. }
  9569. }
  9570. } else {
  9571. if esep {
  9572. for k2, v2 := range v {
  9573. ee.WriteMapElemKey()
  9574. e.encode(k2)
  9575. ee.WriteMapElemValue()
  9576. ee.EncodeUint(uint64(v2))
  9577. }
  9578. } else {
  9579. for k2, v2 := range v {
  9580. e.encode(k2)
  9581. ee.EncodeUint(uint64(v2))
  9582. }
  9583. }
  9584. }
  9585. ee.WriteMapEnd()
  9586. }
  9587. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  9588. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  9589. }
  9590. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  9591. if v == nil {
  9592. e.e.EncodeNil()
  9593. return
  9594. }
  9595. ee, esep := e.e, e.hh.hasElemSeparators()
  9596. ee.WriteMapStart(len(v))
  9597. if e.h.Canonical {
  9598. v2 := make([]uint64, len(v))
  9599. var i int
  9600. for k := range v {
  9601. v2[i] = uint64(k)
  9602. i++
  9603. }
  9604. sort.Sort(uintSlice(v2))
  9605. if esep {
  9606. for _, k2 := range v2 {
  9607. ee.WriteMapElemKey()
  9608. e.encode(uintptr(k2))
  9609. ee.WriteMapElemValue()
  9610. e.encode(v[uintptr(k2)])
  9611. }
  9612. } else {
  9613. for _, k2 := range v2 {
  9614. e.encode(uintptr(k2))
  9615. e.encode(v[uintptr(k2)])
  9616. }
  9617. }
  9618. } else {
  9619. if esep {
  9620. for k2, v2 := range v {
  9621. ee.WriteMapElemKey()
  9622. e.encode(k2)
  9623. ee.WriteMapElemValue()
  9624. e.encode(v2)
  9625. }
  9626. } else {
  9627. for k2, v2 := range v {
  9628. e.encode(k2)
  9629. e.encode(v2)
  9630. }
  9631. }
  9632. }
  9633. ee.WriteMapEnd()
  9634. }
  9635. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  9636. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  9637. }
  9638. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  9639. if v == nil {
  9640. e.e.EncodeNil()
  9641. return
  9642. }
  9643. ee, esep := e.e, e.hh.hasElemSeparators()
  9644. ee.WriteMapStart(len(v))
  9645. if e.h.Canonical {
  9646. v2 := make([]uint64, len(v))
  9647. var i int
  9648. for k := range v {
  9649. v2[i] = uint64(k)
  9650. i++
  9651. }
  9652. sort.Sort(uintSlice(v2))
  9653. if esep {
  9654. for _, k2 := range v2 {
  9655. ee.WriteMapElemKey()
  9656. e.encode(uintptr(k2))
  9657. ee.WriteMapElemValue()
  9658. ee.EncodeInt(int64(v[uintptr(k2)]))
  9659. }
  9660. } else {
  9661. for _, k2 := range v2 {
  9662. e.encode(uintptr(k2))
  9663. ee.EncodeInt(int64(v[uintptr(k2)]))
  9664. }
  9665. }
  9666. } else {
  9667. if esep {
  9668. for k2, v2 := range v {
  9669. ee.WriteMapElemKey()
  9670. e.encode(k2)
  9671. ee.WriteMapElemValue()
  9672. ee.EncodeInt(int64(v2))
  9673. }
  9674. } else {
  9675. for k2, v2 := range v {
  9676. e.encode(k2)
  9677. ee.EncodeInt(int64(v2))
  9678. }
  9679. }
  9680. }
  9681. ee.WriteMapEnd()
  9682. }
  9683. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  9684. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  9685. }
  9686. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  9687. if v == nil {
  9688. e.e.EncodeNil()
  9689. return
  9690. }
  9691. ee, esep := e.e, e.hh.hasElemSeparators()
  9692. ee.WriteMapStart(len(v))
  9693. if e.h.Canonical {
  9694. v2 := make([]uint64, len(v))
  9695. var i int
  9696. for k := range v {
  9697. v2[i] = uint64(k)
  9698. i++
  9699. }
  9700. sort.Sort(uintSlice(v2))
  9701. if esep {
  9702. for _, k2 := range v2 {
  9703. ee.WriteMapElemKey()
  9704. e.encode(uintptr(k2))
  9705. ee.WriteMapElemValue()
  9706. ee.EncodeInt(int64(v[uintptr(k2)]))
  9707. }
  9708. } else {
  9709. for _, k2 := range v2 {
  9710. e.encode(uintptr(k2))
  9711. ee.EncodeInt(int64(v[uintptr(k2)]))
  9712. }
  9713. }
  9714. } else {
  9715. if esep {
  9716. for k2, v2 := range v {
  9717. ee.WriteMapElemKey()
  9718. e.encode(k2)
  9719. ee.WriteMapElemValue()
  9720. ee.EncodeInt(int64(v2))
  9721. }
  9722. } else {
  9723. for k2, v2 := range v {
  9724. e.encode(k2)
  9725. ee.EncodeInt(int64(v2))
  9726. }
  9727. }
  9728. }
  9729. ee.WriteMapEnd()
  9730. }
  9731. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  9732. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  9733. }
  9734. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  9735. if v == nil {
  9736. e.e.EncodeNil()
  9737. return
  9738. }
  9739. ee, esep := e.e, e.hh.hasElemSeparators()
  9740. ee.WriteMapStart(len(v))
  9741. if e.h.Canonical {
  9742. v2 := make([]uint64, len(v))
  9743. var i int
  9744. for k := range v {
  9745. v2[i] = uint64(k)
  9746. i++
  9747. }
  9748. sort.Sort(uintSlice(v2))
  9749. if esep {
  9750. for _, k2 := range v2 {
  9751. ee.WriteMapElemKey()
  9752. e.encode(uintptr(k2))
  9753. ee.WriteMapElemValue()
  9754. ee.EncodeInt(int64(v[uintptr(k2)]))
  9755. }
  9756. } else {
  9757. for _, k2 := range v2 {
  9758. e.encode(uintptr(k2))
  9759. ee.EncodeInt(int64(v[uintptr(k2)]))
  9760. }
  9761. }
  9762. } else {
  9763. if esep {
  9764. for k2, v2 := range v {
  9765. ee.WriteMapElemKey()
  9766. e.encode(k2)
  9767. ee.WriteMapElemValue()
  9768. ee.EncodeInt(int64(v2))
  9769. }
  9770. } else {
  9771. for k2, v2 := range v {
  9772. e.encode(k2)
  9773. ee.EncodeInt(int64(v2))
  9774. }
  9775. }
  9776. }
  9777. ee.WriteMapEnd()
  9778. }
  9779. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  9780. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  9781. }
  9782. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  9783. if v == nil {
  9784. e.e.EncodeNil()
  9785. return
  9786. }
  9787. ee, esep := e.e, e.hh.hasElemSeparators()
  9788. ee.WriteMapStart(len(v))
  9789. if e.h.Canonical {
  9790. v2 := make([]uint64, len(v))
  9791. var i int
  9792. for k := range v {
  9793. v2[i] = uint64(k)
  9794. i++
  9795. }
  9796. sort.Sort(uintSlice(v2))
  9797. if esep {
  9798. for _, k2 := range v2 {
  9799. ee.WriteMapElemKey()
  9800. e.encode(uintptr(k2))
  9801. ee.WriteMapElemValue()
  9802. ee.EncodeInt(int64(v[uintptr(k2)]))
  9803. }
  9804. } else {
  9805. for _, k2 := range v2 {
  9806. e.encode(uintptr(k2))
  9807. ee.EncodeInt(int64(v[uintptr(k2)]))
  9808. }
  9809. }
  9810. } else {
  9811. if esep {
  9812. for k2, v2 := range v {
  9813. ee.WriteMapElemKey()
  9814. e.encode(k2)
  9815. ee.WriteMapElemValue()
  9816. ee.EncodeInt(int64(v2))
  9817. }
  9818. } else {
  9819. for k2, v2 := range v {
  9820. e.encode(k2)
  9821. ee.EncodeInt(int64(v2))
  9822. }
  9823. }
  9824. }
  9825. ee.WriteMapEnd()
  9826. }
  9827. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  9828. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  9829. }
  9830. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  9831. if v == nil {
  9832. e.e.EncodeNil()
  9833. return
  9834. }
  9835. ee, esep := e.e, e.hh.hasElemSeparators()
  9836. ee.WriteMapStart(len(v))
  9837. if e.h.Canonical {
  9838. v2 := make([]uint64, len(v))
  9839. var i int
  9840. for k := range v {
  9841. v2[i] = uint64(k)
  9842. i++
  9843. }
  9844. sort.Sort(uintSlice(v2))
  9845. if esep {
  9846. for _, k2 := range v2 {
  9847. ee.WriteMapElemKey()
  9848. e.encode(uintptr(k2))
  9849. ee.WriteMapElemValue()
  9850. ee.EncodeInt(int64(v[uintptr(k2)]))
  9851. }
  9852. } else {
  9853. for _, k2 := range v2 {
  9854. e.encode(uintptr(k2))
  9855. ee.EncodeInt(int64(v[uintptr(k2)]))
  9856. }
  9857. }
  9858. } else {
  9859. if esep {
  9860. for k2, v2 := range v {
  9861. ee.WriteMapElemKey()
  9862. e.encode(k2)
  9863. ee.WriteMapElemValue()
  9864. ee.EncodeInt(int64(v2))
  9865. }
  9866. } else {
  9867. for k2, v2 := range v {
  9868. e.encode(k2)
  9869. ee.EncodeInt(int64(v2))
  9870. }
  9871. }
  9872. }
  9873. ee.WriteMapEnd()
  9874. }
  9875. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  9876. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  9877. }
  9878. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  9879. if v == nil {
  9880. e.e.EncodeNil()
  9881. return
  9882. }
  9883. ee, esep := e.e, e.hh.hasElemSeparators()
  9884. ee.WriteMapStart(len(v))
  9885. if e.h.Canonical {
  9886. v2 := make([]uint64, len(v))
  9887. var i int
  9888. for k := range v {
  9889. v2[i] = uint64(k)
  9890. i++
  9891. }
  9892. sort.Sort(uintSlice(v2))
  9893. if esep {
  9894. for _, k2 := range v2 {
  9895. ee.WriteMapElemKey()
  9896. e.encode(uintptr(k2))
  9897. ee.WriteMapElemValue()
  9898. ee.EncodeFloat32(v[uintptr(k2)])
  9899. }
  9900. } else {
  9901. for _, k2 := range v2 {
  9902. e.encode(uintptr(k2))
  9903. ee.EncodeFloat32(v[uintptr(k2)])
  9904. }
  9905. }
  9906. } else {
  9907. if esep {
  9908. for k2, v2 := range v {
  9909. ee.WriteMapElemKey()
  9910. e.encode(k2)
  9911. ee.WriteMapElemValue()
  9912. ee.EncodeFloat32(v2)
  9913. }
  9914. } else {
  9915. for k2, v2 := range v {
  9916. e.encode(k2)
  9917. ee.EncodeFloat32(v2)
  9918. }
  9919. }
  9920. }
  9921. ee.WriteMapEnd()
  9922. }
  9923. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  9924. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  9925. }
  9926. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  9927. if v == nil {
  9928. e.e.EncodeNil()
  9929. return
  9930. }
  9931. ee, esep := e.e, e.hh.hasElemSeparators()
  9932. ee.WriteMapStart(len(v))
  9933. if e.h.Canonical {
  9934. v2 := make([]uint64, len(v))
  9935. var i int
  9936. for k := range v {
  9937. v2[i] = uint64(k)
  9938. i++
  9939. }
  9940. sort.Sort(uintSlice(v2))
  9941. if esep {
  9942. for _, k2 := range v2 {
  9943. ee.WriteMapElemKey()
  9944. e.encode(uintptr(k2))
  9945. ee.WriteMapElemValue()
  9946. ee.EncodeFloat64(v[uintptr(k2)])
  9947. }
  9948. } else {
  9949. for _, k2 := range v2 {
  9950. e.encode(uintptr(k2))
  9951. ee.EncodeFloat64(v[uintptr(k2)])
  9952. }
  9953. }
  9954. } else {
  9955. if esep {
  9956. for k2, v2 := range v {
  9957. ee.WriteMapElemKey()
  9958. e.encode(k2)
  9959. ee.WriteMapElemValue()
  9960. ee.EncodeFloat64(v2)
  9961. }
  9962. } else {
  9963. for k2, v2 := range v {
  9964. e.encode(k2)
  9965. ee.EncodeFloat64(v2)
  9966. }
  9967. }
  9968. }
  9969. ee.WriteMapEnd()
  9970. }
  9971. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  9972. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  9973. }
  9974. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  9975. if v == nil {
  9976. e.e.EncodeNil()
  9977. return
  9978. }
  9979. ee, esep := e.e, e.hh.hasElemSeparators()
  9980. ee.WriteMapStart(len(v))
  9981. if e.h.Canonical {
  9982. v2 := make([]uint64, len(v))
  9983. var i int
  9984. for k := range v {
  9985. v2[i] = uint64(k)
  9986. i++
  9987. }
  9988. sort.Sort(uintSlice(v2))
  9989. if esep {
  9990. for _, k2 := range v2 {
  9991. ee.WriteMapElemKey()
  9992. e.encode(uintptr(k2))
  9993. ee.WriteMapElemValue()
  9994. ee.EncodeBool(v[uintptr(k2)])
  9995. }
  9996. } else {
  9997. for _, k2 := range v2 {
  9998. e.encode(uintptr(k2))
  9999. ee.EncodeBool(v[uintptr(k2)])
  10000. }
  10001. }
  10002. } else {
  10003. if esep {
  10004. for k2, v2 := range v {
  10005. ee.WriteMapElemKey()
  10006. e.encode(k2)
  10007. ee.WriteMapElemValue()
  10008. ee.EncodeBool(v2)
  10009. }
  10010. } else {
  10011. for k2, v2 := range v {
  10012. e.encode(k2)
  10013. ee.EncodeBool(v2)
  10014. }
  10015. }
  10016. }
  10017. ee.WriteMapEnd()
  10018. }
  10019. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  10020. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  10021. }
  10022. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  10023. if v == nil {
  10024. e.e.EncodeNil()
  10025. return
  10026. }
  10027. ee, esep := e.e, e.hh.hasElemSeparators()
  10028. ee.WriteMapStart(len(v))
  10029. if e.h.Canonical {
  10030. v2 := make([]int64, len(v))
  10031. var i int
  10032. for k := range v {
  10033. v2[i] = int64(k)
  10034. i++
  10035. }
  10036. sort.Sort(intSlice(v2))
  10037. if esep {
  10038. for _, k2 := range v2 {
  10039. ee.WriteMapElemKey()
  10040. ee.EncodeInt(int64(int(k2)))
  10041. ee.WriteMapElemValue()
  10042. e.encode(v[int(k2)])
  10043. }
  10044. } else {
  10045. for _, k2 := range v2 {
  10046. ee.EncodeInt(int64(int(k2)))
  10047. e.encode(v[int(k2)])
  10048. }
  10049. }
  10050. } else {
  10051. if esep {
  10052. for k2, v2 := range v {
  10053. ee.WriteMapElemKey()
  10054. ee.EncodeInt(int64(k2))
  10055. ee.WriteMapElemValue()
  10056. e.encode(v2)
  10057. }
  10058. } else {
  10059. for k2, v2 := range v {
  10060. ee.EncodeInt(int64(k2))
  10061. e.encode(v2)
  10062. }
  10063. }
  10064. }
  10065. ee.WriteMapEnd()
  10066. }
  10067. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  10068. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  10069. }
  10070. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  10071. if v == nil {
  10072. e.e.EncodeNil()
  10073. return
  10074. }
  10075. ee, esep := e.e, e.hh.hasElemSeparators()
  10076. ee.WriteMapStart(len(v))
  10077. if e.h.Canonical {
  10078. v2 := make([]int64, len(v))
  10079. var i int
  10080. for k := range v {
  10081. v2[i] = int64(k)
  10082. i++
  10083. }
  10084. sort.Sort(intSlice(v2))
  10085. if esep {
  10086. for _, k2 := range v2 {
  10087. ee.WriteMapElemKey()
  10088. ee.EncodeInt(int64(int(k2)))
  10089. ee.WriteMapElemValue()
  10090. ee.EncodeStringEnc(cUTF8, v[int(k2)])
  10091. }
  10092. } else {
  10093. for _, k2 := range v2 {
  10094. ee.EncodeInt(int64(int(k2)))
  10095. ee.EncodeStringEnc(cUTF8, v[int(k2)])
  10096. }
  10097. }
  10098. } else {
  10099. if esep {
  10100. for k2, v2 := range v {
  10101. ee.WriteMapElemKey()
  10102. ee.EncodeInt(int64(k2))
  10103. ee.WriteMapElemValue()
  10104. ee.EncodeStringEnc(cUTF8, v2)
  10105. }
  10106. } else {
  10107. for k2, v2 := range v {
  10108. ee.EncodeInt(int64(k2))
  10109. ee.EncodeStringEnc(cUTF8, v2)
  10110. }
  10111. }
  10112. }
  10113. ee.WriteMapEnd()
  10114. }
  10115. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  10116. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  10117. }
  10118. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  10119. if v == nil {
  10120. e.e.EncodeNil()
  10121. return
  10122. }
  10123. ee, esep := e.e, e.hh.hasElemSeparators()
  10124. ee.WriteMapStart(len(v))
  10125. if e.h.Canonical {
  10126. v2 := make([]int64, len(v))
  10127. var i int
  10128. for k := range v {
  10129. v2[i] = int64(k)
  10130. i++
  10131. }
  10132. sort.Sort(intSlice(v2))
  10133. if esep {
  10134. for _, k2 := range v2 {
  10135. ee.WriteMapElemKey()
  10136. ee.EncodeInt(int64(int(k2)))
  10137. ee.WriteMapElemValue()
  10138. ee.EncodeUint(uint64(v[int(k2)]))
  10139. }
  10140. } else {
  10141. for _, k2 := range v2 {
  10142. ee.EncodeInt(int64(int(k2)))
  10143. ee.EncodeUint(uint64(v[int(k2)]))
  10144. }
  10145. }
  10146. } else {
  10147. if esep {
  10148. for k2, v2 := range v {
  10149. ee.WriteMapElemKey()
  10150. ee.EncodeInt(int64(k2))
  10151. ee.WriteMapElemValue()
  10152. ee.EncodeUint(uint64(v2))
  10153. }
  10154. } else {
  10155. for k2, v2 := range v {
  10156. ee.EncodeInt(int64(k2))
  10157. ee.EncodeUint(uint64(v2))
  10158. }
  10159. }
  10160. }
  10161. ee.WriteMapEnd()
  10162. }
  10163. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  10164. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  10165. }
  10166. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  10167. if v == nil {
  10168. e.e.EncodeNil()
  10169. return
  10170. }
  10171. ee, esep := e.e, e.hh.hasElemSeparators()
  10172. ee.WriteMapStart(len(v))
  10173. if e.h.Canonical {
  10174. v2 := make([]int64, len(v))
  10175. var i int
  10176. for k := range v {
  10177. v2[i] = int64(k)
  10178. i++
  10179. }
  10180. sort.Sort(intSlice(v2))
  10181. if esep {
  10182. for _, k2 := range v2 {
  10183. ee.WriteMapElemKey()
  10184. ee.EncodeInt(int64(int(k2)))
  10185. ee.WriteMapElemValue()
  10186. ee.EncodeUint(uint64(v[int(k2)]))
  10187. }
  10188. } else {
  10189. for _, k2 := range v2 {
  10190. ee.EncodeInt(int64(int(k2)))
  10191. ee.EncodeUint(uint64(v[int(k2)]))
  10192. }
  10193. }
  10194. } else {
  10195. if esep {
  10196. for k2, v2 := range v {
  10197. ee.WriteMapElemKey()
  10198. ee.EncodeInt(int64(k2))
  10199. ee.WriteMapElemValue()
  10200. ee.EncodeUint(uint64(v2))
  10201. }
  10202. } else {
  10203. for k2, v2 := range v {
  10204. ee.EncodeInt(int64(k2))
  10205. ee.EncodeUint(uint64(v2))
  10206. }
  10207. }
  10208. }
  10209. ee.WriteMapEnd()
  10210. }
  10211. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  10212. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  10213. }
  10214. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  10215. if v == nil {
  10216. e.e.EncodeNil()
  10217. return
  10218. }
  10219. ee, esep := e.e, e.hh.hasElemSeparators()
  10220. ee.WriteMapStart(len(v))
  10221. if e.h.Canonical {
  10222. v2 := make([]int64, len(v))
  10223. var i int
  10224. for k := range v {
  10225. v2[i] = int64(k)
  10226. i++
  10227. }
  10228. sort.Sort(intSlice(v2))
  10229. if esep {
  10230. for _, k2 := range v2 {
  10231. ee.WriteMapElemKey()
  10232. ee.EncodeInt(int64(int(k2)))
  10233. ee.WriteMapElemValue()
  10234. ee.EncodeUint(uint64(v[int(k2)]))
  10235. }
  10236. } else {
  10237. for _, k2 := range v2 {
  10238. ee.EncodeInt(int64(int(k2)))
  10239. ee.EncodeUint(uint64(v[int(k2)]))
  10240. }
  10241. }
  10242. } else {
  10243. if esep {
  10244. for k2, v2 := range v {
  10245. ee.WriteMapElemKey()
  10246. ee.EncodeInt(int64(k2))
  10247. ee.WriteMapElemValue()
  10248. ee.EncodeUint(uint64(v2))
  10249. }
  10250. } else {
  10251. for k2, v2 := range v {
  10252. ee.EncodeInt(int64(k2))
  10253. ee.EncodeUint(uint64(v2))
  10254. }
  10255. }
  10256. }
  10257. ee.WriteMapEnd()
  10258. }
  10259. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  10260. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  10261. }
  10262. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  10263. if v == nil {
  10264. e.e.EncodeNil()
  10265. return
  10266. }
  10267. ee, esep := e.e, e.hh.hasElemSeparators()
  10268. ee.WriteMapStart(len(v))
  10269. if e.h.Canonical {
  10270. v2 := make([]int64, len(v))
  10271. var i int
  10272. for k := range v {
  10273. v2[i] = int64(k)
  10274. i++
  10275. }
  10276. sort.Sort(intSlice(v2))
  10277. if esep {
  10278. for _, k2 := range v2 {
  10279. ee.WriteMapElemKey()
  10280. ee.EncodeInt(int64(int(k2)))
  10281. ee.WriteMapElemValue()
  10282. ee.EncodeUint(uint64(v[int(k2)]))
  10283. }
  10284. } else {
  10285. for _, k2 := range v2 {
  10286. ee.EncodeInt(int64(int(k2)))
  10287. ee.EncodeUint(uint64(v[int(k2)]))
  10288. }
  10289. }
  10290. } else {
  10291. if esep {
  10292. for k2, v2 := range v {
  10293. ee.WriteMapElemKey()
  10294. ee.EncodeInt(int64(k2))
  10295. ee.WriteMapElemValue()
  10296. ee.EncodeUint(uint64(v2))
  10297. }
  10298. } else {
  10299. for k2, v2 := range v {
  10300. ee.EncodeInt(int64(k2))
  10301. ee.EncodeUint(uint64(v2))
  10302. }
  10303. }
  10304. }
  10305. ee.WriteMapEnd()
  10306. }
  10307. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  10308. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  10309. }
  10310. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  10311. if v == nil {
  10312. e.e.EncodeNil()
  10313. return
  10314. }
  10315. ee, esep := e.e, e.hh.hasElemSeparators()
  10316. ee.WriteMapStart(len(v))
  10317. if e.h.Canonical {
  10318. v2 := make([]int64, len(v))
  10319. var i int
  10320. for k := range v {
  10321. v2[i] = int64(k)
  10322. i++
  10323. }
  10324. sort.Sort(intSlice(v2))
  10325. if esep {
  10326. for _, k2 := range v2 {
  10327. ee.WriteMapElemKey()
  10328. ee.EncodeInt(int64(int(k2)))
  10329. ee.WriteMapElemValue()
  10330. ee.EncodeUint(uint64(v[int(k2)]))
  10331. }
  10332. } else {
  10333. for _, k2 := range v2 {
  10334. ee.EncodeInt(int64(int(k2)))
  10335. ee.EncodeUint(uint64(v[int(k2)]))
  10336. }
  10337. }
  10338. } else {
  10339. if esep {
  10340. for k2, v2 := range v {
  10341. ee.WriteMapElemKey()
  10342. ee.EncodeInt(int64(k2))
  10343. ee.WriteMapElemValue()
  10344. ee.EncodeUint(uint64(v2))
  10345. }
  10346. } else {
  10347. for k2, v2 := range v {
  10348. ee.EncodeInt(int64(k2))
  10349. ee.EncodeUint(uint64(v2))
  10350. }
  10351. }
  10352. }
  10353. ee.WriteMapEnd()
  10354. }
  10355. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  10356. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  10357. }
  10358. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  10359. if v == nil {
  10360. e.e.EncodeNil()
  10361. return
  10362. }
  10363. ee, esep := e.e, e.hh.hasElemSeparators()
  10364. ee.WriteMapStart(len(v))
  10365. if e.h.Canonical {
  10366. v2 := make([]int64, len(v))
  10367. var i int
  10368. for k := range v {
  10369. v2[i] = int64(k)
  10370. i++
  10371. }
  10372. sort.Sort(intSlice(v2))
  10373. if esep {
  10374. for _, k2 := range v2 {
  10375. ee.WriteMapElemKey()
  10376. ee.EncodeInt(int64(int(k2)))
  10377. ee.WriteMapElemValue()
  10378. e.encode(v[int(k2)])
  10379. }
  10380. } else {
  10381. for _, k2 := range v2 {
  10382. ee.EncodeInt(int64(int(k2)))
  10383. e.encode(v[int(k2)])
  10384. }
  10385. }
  10386. } else {
  10387. if esep {
  10388. for k2, v2 := range v {
  10389. ee.WriteMapElemKey()
  10390. ee.EncodeInt(int64(k2))
  10391. ee.WriteMapElemValue()
  10392. e.encode(v2)
  10393. }
  10394. } else {
  10395. for k2, v2 := range v {
  10396. ee.EncodeInt(int64(k2))
  10397. e.encode(v2)
  10398. }
  10399. }
  10400. }
  10401. ee.WriteMapEnd()
  10402. }
  10403. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  10404. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  10405. }
  10406. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  10407. if v == nil {
  10408. e.e.EncodeNil()
  10409. return
  10410. }
  10411. ee, esep := e.e, e.hh.hasElemSeparators()
  10412. ee.WriteMapStart(len(v))
  10413. if e.h.Canonical {
  10414. v2 := make([]int64, len(v))
  10415. var i int
  10416. for k := range v {
  10417. v2[i] = int64(k)
  10418. i++
  10419. }
  10420. sort.Sort(intSlice(v2))
  10421. if esep {
  10422. for _, k2 := range v2 {
  10423. ee.WriteMapElemKey()
  10424. ee.EncodeInt(int64(int(k2)))
  10425. ee.WriteMapElemValue()
  10426. ee.EncodeInt(int64(v[int(k2)]))
  10427. }
  10428. } else {
  10429. for _, k2 := range v2 {
  10430. ee.EncodeInt(int64(int(k2)))
  10431. ee.EncodeInt(int64(v[int(k2)]))
  10432. }
  10433. }
  10434. } else {
  10435. if esep {
  10436. for k2, v2 := range v {
  10437. ee.WriteMapElemKey()
  10438. ee.EncodeInt(int64(k2))
  10439. ee.WriteMapElemValue()
  10440. ee.EncodeInt(int64(v2))
  10441. }
  10442. } else {
  10443. for k2, v2 := range v {
  10444. ee.EncodeInt(int64(k2))
  10445. ee.EncodeInt(int64(v2))
  10446. }
  10447. }
  10448. }
  10449. ee.WriteMapEnd()
  10450. }
  10451. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  10452. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  10453. }
  10454. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  10455. if v == nil {
  10456. e.e.EncodeNil()
  10457. return
  10458. }
  10459. ee, esep := e.e, e.hh.hasElemSeparators()
  10460. ee.WriteMapStart(len(v))
  10461. if e.h.Canonical {
  10462. v2 := make([]int64, len(v))
  10463. var i int
  10464. for k := range v {
  10465. v2[i] = int64(k)
  10466. i++
  10467. }
  10468. sort.Sort(intSlice(v2))
  10469. if esep {
  10470. for _, k2 := range v2 {
  10471. ee.WriteMapElemKey()
  10472. ee.EncodeInt(int64(int(k2)))
  10473. ee.WriteMapElemValue()
  10474. ee.EncodeInt(int64(v[int(k2)]))
  10475. }
  10476. } else {
  10477. for _, k2 := range v2 {
  10478. ee.EncodeInt(int64(int(k2)))
  10479. ee.EncodeInt(int64(v[int(k2)]))
  10480. }
  10481. }
  10482. } else {
  10483. if esep {
  10484. for k2, v2 := range v {
  10485. ee.WriteMapElemKey()
  10486. ee.EncodeInt(int64(k2))
  10487. ee.WriteMapElemValue()
  10488. ee.EncodeInt(int64(v2))
  10489. }
  10490. } else {
  10491. for k2, v2 := range v {
  10492. ee.EncodeInt(int64(k2))
  10493. ee.EncodeInt(int64(v2))
  10494. }
  10495. }
  10496. }
  10497. ee.WriteMapEnd()
  10498. }
  10499. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  10500. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  10501. }
  10502. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  10503. if v == nil {
  10504. e.e.EncodeNil()
  10505. return
  10506. }
  10507. ee, esep := e.e, e.hh.hasElemSeparators()
  10508. ee.WriteMapStart(len(v))
  10509. if e.h.Canonical {
  10510. v2 := make([]int64, len(v))
  10511. var i int
  10512. for k := range v {
  10513. v2[i] = int64(k)
  10514. i++
  10515. }
  10516. sort.Sort(intSlice(v2))
  10517. if esep {
  10518. for _, k2 := range v2 {
  10519. ee.WriteMapElemKey()
  10520. ee.EncodeInt(int64(int(k2)))
  10521. ee.WriteMapElemValue()
  10522. ee.EncodeInt(int64(v[int(k2)]))
  10523. }
  10524. } else {
  10525. for _, k2 := range v2 {
  10526. ee.EncodeInt(int64(int(k2)))
  10527. ee.EncodeInt(int64(v[int(k2)]))
  10528. }
  10529. }
  10530. } else {
  10531. if esep {
  10532. for k2, v2 := range v {
  10533. ee.WriteMapElemKey()
  10534. ee.EncodeInt(int64(k2))
  10535. ee.WriteMapElemValue()
  10536. ee.EncodeInt(int64(v2))
  10537. }
  10538. } else {
  10539. for k2, v2 := range v {
  10540. ee.EncodeInt(int64(k2))
  10541. ee.EncodeInt(int64(v2))
  10542. }
  10543. }
  10544. }
  10545. ee.WriteMapEnd()
  10546. }
  10547. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  10548. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  10549. }
  10550. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  10551. if v == nil {
  10552. e.e.EncodeNil()
  10553. return
  10554. }
  10555. ee, esep := e.e, e.hh.hasElemSeparators()
  10556. ee.WriteMapStart(len(v))
  10557. if e.h.Canonical {
  10558. v2 := make([]int64, len(v))
  10559. var i int
  10560. for k := range v {
  10561. v2[i] = int64(k)
  10562. i++
  10563. }
  10564. sort.Sort(intSlice(v2))
  10565. if esep {
  10566. for _, k2 := range v2 {
  10567. ee.WriteMapElemKey()
  10568. ee.EncodeInt(int64(int(k2)))
  10569. ee.WriteMapElemValue()
  10570. ee.EncodeInt(int64(v[int(k2)]))
  10571. }
  10572. } else {
  10573. for _, k2 := range v2 {
  10574. ee.EncodeInt(int64(int(k2)))
  10575. ee.EncodeInt(int64(v[int(k2)]))
  10576. }
  10577. }
  10578. } else {
  10579. if esep {
  10580. for k2, v2 := range v {
  10581. ee.WriteMapElemKey()
  10582. ee.EncodeInt(int64(k2))
  10583. ee.WriteMapElemValue()
  10584. ee.EncodeInt(int64(v2))
  10585. }
  10586. } else {
  10587. for k2, v2 := range v {
  10588. ee.EncodeInt(int64(k2))
  10589. ee.EncodeInt(int64(v2))
  10590. }
  10591. }
  10592. }
  10593. ee.WriteMapEnd()
  10594. }
  10595. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  10596. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  10597. }
  10598. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  10599. if v == nil {
  10600. e.e.EncodeNil()
  10601. return
  10602. }
  10603. ee, esep := e.e, e.hh.hasElemSeparators()
  10604. ee.WriteMapStart(len(v))
  10605. if e.h.Canonical {
  10606. v2 := make([]int64, len(v))
  10607. var i int
  10608. for k := range v {
  10609. v2[i] = int64(k)
  10610. i++
  10611. }
  10612. sort.Sort(intSlice(v2))
  10613. if esep {
  10614. for _, k2 := range v2 {
  10615. ee.WriteMapElemKey()
  10616. ee.EncodeInt(int64(int(k2)))
  10617. ee.WriteMapElemValue()
  10618. ee.EncodeInt(int64(v[int(k2)]))
  10619. }
  10620. } else {
  10621. for _, k2 := range v2 {
  10622. ee.EncodeInt(int64(int(k2)))
  10623. ee.EncodeInt(int64(v[int(k2)]))
  10624. }
  10625. }
  10626. } else {
  10627. if esep {
  10628. for k2, v2 := range v {
  10629. ee.WriteMapElemKey()
  10630. ee.EncodeInt(int64(k2))
  10631. ee.WriteMapElemValue()
  10632. ee.EncodeInt(int64(v2))
  10633. }
  10634. } else {
  10635. for k2, v2 := range v {
  10636. ee.EncodeInt(int64(k2))
  10637. ee.EncodeInt(int64(v2))
  10638. }
  10639. }
  10640. }
  10641. ee.WriteMapEnd()
  10642. }
  10643. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  10644. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  10645. }
  10646. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  10647. if v == nil {
  10648. e.e.EncodeNil()
  10649. return
  10650. }
  10651. ee, esep := e.e, e.hh.hasElemSeparators()
  10652. ee.WriteMapStart(len(v))
  10653. if e.h.Canonical {
  10654. v2 := make([]int64, len(v))
  10655. var i int
  10656. for k := range v {
  10657. v2[i] = int64(k)
  10658. i++
  10659. }
  10660. sort.Sort(intSlice(v2))
  10661. if esep {
  10662. for _, k2 := range v2 {
  10663. ee.WriteMapElemKey()
  10664. ee.EncodeInt(int64(int(k2)))
  10665. ee.WriteMapElemValue()
  10666. ee.EncodeFloat32(v[int(k2)])
  10667. }
  10668. } else {
  10669. for _, k2 := range v2 {
  10670. ee.EncodeInt(int64(int(k2)))
  10671. ee.EncodeFloat32(v[int(k2)])
  10672. }
  10673. }
  10674. } else {
  10675. if esep {
  10676. for k2, v2 := range v {
  10677. ee.WriteMapElemKey()
  10678. ee.EncodeInt(int64(k2))
  10679. ee.WriteMapElemValue()
  10680. ee.EncodeFloat32(v2)
  10681. }
  10682. } else {
  10683. for k2, v2 := range v {
  10684. ee.EncodeInt(int64(k2))
  10685. ee.EncodeFloat32(v2)
  10686. }
  10687. }
  10688. }
  10689. ee.WriteMapEnd()
  10690. }
  10691. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  10692. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  10693. }
  10694. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  10695. if v == nil {
  10696. e.e.EncodeNil()
  10697. return
  10698. }
  10699. ee, esep := e.e, e.hh.hasElemSeparators()
  10700. ee.WriteMapStart(len(v))
  10701. if e.h.Canonical {
  10702. v2 := make([]int64, len(v))
  10703. var i int
  10704. for k := range v {
  10705. v2[i] = int64(k)
  10706. i++
  10707. }
  10708. sort.Sort(intSlice(v2))
  10709. if esep {
  10710. for _, k2 := range v2 {
  10711. ee.WriteMapElemKey()
  10712. ee.EncodeInt(int64(int(k2)))
  10713. ee.WriteMapElemValue()
  10714. ee.EncodeFloat64(v[int(k2)])
  10715. }
  10716. } else {
  10717. for _, k2 := range v2 {
  10718. ee.EncodeInt(int64(int(k2)))
  10719. ee.EncodeFloat64(v[int(k2)])
  10720. }
  10721. }
  10722. } else {
  10723. if esep {
  10724. for k2, v2 := range v {
  10725. ee.WriteMapElemKey()
  10726. ee.EncodeInt(int64(k2))
  10727. ee.WriteMapElemValue()
  10728. ee.EncodeFloat64(v2)
  10729. }
  10730. } else {
  10731. for k2, v2 := range v {
  10732. ee.EncodeInt(int64(k2))
  10733. ee.EncodeFloat64(v2)
  10734. }
  10735. }
  10736. }
  10737. ee.WriteMapEnd()
  10738. }
  10739. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  10740. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  10741. }
  10742. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  10743. if v == nil {
  10744. e.e.EncodeNil()
  10745. return
  10746. }
  10747. ee, esep := e.e, e.hh.hasElemSeparators()
  10748. ee.WriteMapStart(len(v))
  10749. if e.h.Canonical {
  10750. v2 := make([]int64, len(v))
  10751. var i int
  10752. for k := range v {
  10753. v2[i] = int64(k)
  10754. i++
  10755. }
  10756. sort.Sort(intSlice(v2))
  10757. if esep {
  10758. for _, k2 := range v2 {
  10759. ee.WriteMapElemKey()
  10760. ee.EncodeInt(int64(int(k2)))
  10761. ee.WriteMapElemValue()
  10762. ee.EncodeBool(v[int(k2)])
  10763. }
  10764. } else {
  10765. for _, k2 := range v2 {
  10766. ee.EncodeInt(int64(int(k2)))
  10767. ee.EncodeBool(v[int(k2)])
  10768. }
  10769. }
  10770. } else {
  10771. if esep {
  10772. for k2, v2 := range v {
  10773. ee.WriteMapElemKey()
  10774. ee.EncodeInt(int64(k2))
  10775. ee.WriteMapElemValue()
  10776. ee.EncodeBool(v2)
  10777. }
  10778. } else {
  10779. for k2, v2 := range v {
  10780. ee.EncodeInt(int64(k2))
  10781. ee.EncodeBool(v2)
  10782. }
  10783. }
  10784. }
  10785. ee.WriteMapEnd()
  10786. }
  10787. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  10788. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  10789. }
  10790. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  10791. if v == nil {
  10792. e.e.EncodeNil()
  10793. return
  10794. }
  10795. ee, esep := e.e, e.hh.hasElemSeparators()
  10796. ee.WriteMapStart(len(v))
  10797. if e.h.Canonical {
  10798. v2 := make([]int64, len(v))
  10799. var i int
  10800. for k := range v {
  10801. v2[i] = int64(k)
  10802. i++
  10803. }
  10804. sort.Sort(intSlice(v2))
  10805. if esep {
  10806. for _, k2 := range v2 {
  10807. ee.WriteMapElemKey()
  10808. ee.EncodeInt(int64(int8(k2)))
  10809. ee.WriteMapElemValue()
  10810. e.encode(v[int8(k2)])
  10811. }
  10812. } else {
  10813. for _, k2 := range v2 {
  10814. ee.EncodeInt(int64(int8(k2)))
  10815. e.encode(v[int8(k2)])
  10816. }
  10817. }
  10818. } else {
  10819. if esep {
  10820. for k2, v2 := range v {
  10821. ee.WriteMapElemKey()
  10822. ee.EncodeInt(int64(k2))
  10823. ee.WriteMapElemValue()
  10824. e.encode(v2)
  10825. }
  10826. } else {
  10827. for k2, v2 := range v {
  10828. ee.EncodeInt(int64(k2))
  10829. e.encode(v2)
  10830. }
  10831. }
  10832. }
  10833. ee.WriteMapEnd()
  10834. }
  10835. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  10836. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  10837. }
  10838. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  10839. if v == nil {
  10840. e.e.EncodeNil()
  10841. return
  10842. }
  10843. ee, esep := e.e, e.hh.hasElemSeparators()
  10844. ee.WriteMapStart(len(v))
  10845. if e.h.Canonical {
  10846. v2 := make([]int64, len(v))
  10847. var i int
  10848. for k := range v {
  10849. v2[i] = int64(k)
  10850. i++
  10851. }
  10852. sort.Sort(intSlice(v2))
  10853. if esep {
  10854. for _, k2 := range v2 {
  10855. ee.WriteMapElemKey()
  10856. ee.EncodeInt(int64(int8(k2)))
  10857. ee.WriteMapElemValue()
  10858. ee.EncodeStringEnc(cUTF8, v[int8(k2)])
  10859. }
  10860. } else {
  10861. for _, k2 := range v2 {
  10862. ee.EncodeInt(int64(int8(k2)))
  10863. ee.EncodeStringEnc(cUTF8, v[int8(k2)])
  10864. }
  10865. }
  10866. } else {
  10867. if esep {
  10868. for k2, v2 := range v {
  10869. ee.WriteMapElemKey()
  10870. ee.EncodeInt(int64(k2))
  10871. ee.WriteMapElemValue()
  10872. ee.EncodeStringEnc(cUTF8, v2)
  10873. }
  10874. } else {
  10875. for k2, v2 := range v {
  10876. ee.EncodeInt(int64(k2))
  10877. ee.EncodeStringEnc(cUTF8, v2)
  10878. }
  10879. }
  10880. }
  10881. ee.WriteMapEnd()
  10882. }
  10883. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  10884. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  10885. }
  10886. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  10887. if v == nil {
  10888. e.e.EncodeNil()
  10889. return
  10890. }
  10891. ee, esep := e.e, e.hh.hasElemSeparators()
  10892. ee.WriteMapStart(len(v))
  10893. if e.h.Canonical {
  10894. v2 := make([]int64, len(v))
  10895. var i int
  10896. for k := range v {
  10897. v2[i] = int64(k)
  10898. i++
  10899. }
  10900. sort.Sort(intSlice(v2))
  10901. if esep {
  10902. for _, k2 := range v2 {
  10903. ee.WriteMapElemKey()
  10904. ee.EncodeInt(int64(int8(k2)))
  10905. ee.WriteMapElemValue()
  10906. ee.EncodeUint(uint64(v[int8(k2)]))
  10907. }
  10908. } else {
  10909. for _, k2 := range v2 {
  10910. ee.EncodeInt(int64(int8(k2)))
  10911. ee.EncodeUint(uint64(v[int8(k2)]))
  10912. }
  10913. }
  10914. } else {
  10915. if esep {
  10916. for k2, v2 := range v {
  10917. ee.WriteMapElemKey()
  10918. ee.EncodeInt(int64(k2))
  10919. ee.WriteMapElemValue()
  10920. ee.EncodeUint(uint64(v2))
  10921. }
  10922. } else {
  10923. for k2, v2 := range v {
  10924. ee.EncodeInt(int64(k2))
  10925. ee.EncodeUint(uint64(v2))
  10926. }
  10927. }
  10928. }
  10929. ee.WriteMapEnd()
  10930. }
  10931. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  10932. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  10933. }
  10934. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  10935. if v == nil {
  10936. e.e.EncodeNil()
  10937. return
  10938. }
  10939. ee, esep := e.e, e.hh.hasElemSeparators()
  10940. ee.WriteMapStart(len(v))
  10941. if e.h.Canonical {
  10942. v2 := make([]int64, len(v))
  10943. var i int
  10944. for k := range v {
  10945. v2[i] = int64(k)
  10946. i++
  10947. }
  10948. sort.Sort(intSlice(v2))
  10949. if esep {
  10950. for _, k2 := range v2 {
  10951. ee.WriteMapElemKey()
  10952. ee.EncodeInt(int64(int8(k2)))
  10953. ee.WriteMapElemValue()
  10954. ee.EncodeUint(uint64(v[int8(k2)]))
  10955. }
  10956. } else {
  10957. for _, k2 := range v2 {
  10958. ee.EncodeInt(int64(int8(k2)))
  10959. ee.EncodeUint(uint64(v[int8(k2)]))
  10960. }
  10961. }
  10962. } else {
  10963. if esep {
  10964. for k2, v2 := range v {
  10965. ee.WriteMapElemKey()
  10966. ee.EncodeInt(int64(k2))
  10967. ee.WriteMapElemValue()
  10968. ee.EncodeUint(uint64(v2))
  10969. }
  10970. } else {
  10971. for k2, v2 := range v {
  10972. ee.EncodeInt(int64(k2))
  10973. ee.EncodeUint(uint64(v2))
  10974. }
  10975. }
  10976. }
  10977. ee.WriteMapEnd()
  10978. }
  10979. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  10980. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  10981. }
  10982. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  10983. if v == nil {
  10984. e.e.EncodeNil()
  10985. return
  10986. }
  10987. ee, esep := e.e, e.hh.hasElemSeparators()
  10988. ee.WriteMapStart(len(v))
  10989. if e.h.Canonical {
  10990. v2 := make([]int64, len(v))
  10991. var i int
  10992. for k := range v {
  10993. v2[i] = int64(k)
  10994. i++
  10995. }
  10996. sort.Sort(intSlice(v2))
  10997. if esep {
  10998. for _, k2 := range v2 {
  10999. ee.WriteMapElemKey()
  11000. ee.EncodeInt(int64(int8(k2)))
  11001. ee.WriteMapElemValue()
  11002. ee.EncodeUint(uint64(v[int8(k2)]))
  11003. }
  11004. } else {
  11005. for _, k2 := range v2 {
  11006. ee.EncodeInt(int64(int8(k2)))
  11007. ee.EncodeUint(uint64(v[int8(k2)]))
  11008. }
  11009. }
  11010. } else {
  11011. if esep {
  11012. for k2, v2 := range v {
  11013. ee.WriteMapElemKey()
  11014. ee.EncodeInt(int64(k2))
  11015. ee.WriteMapElemValue()
  11016. ee.EncodeUint(uint64(v2))
  11017. }
  11018. } else {
  11019. for k2, v2 := range v {
  11020. ee.EncodeInt(int64(k2))
  11021. ee.EncodeUint(uint64(v2))
  11022. }
  11023. }
  11024. }
  11025. ee.WriteMapEnd()
  11026. }
  11027. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  11028. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  11029. }
  11030. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  11031. if v == nil {
  11032. e.e.EncodeNil()
  11033. return
  11034. }
  11035. ee, esep := e.e, e.hh.hasElemSeparators()
  11036. ee.WriteMapStart(len(v))
  11037. if e.h.Canonical {
  11038. v2 := make([]int64, len(v))
  11039. var i int
  11040. for k := range v {
  11041. v2[i] = int64(k)
  11042. i++
  11043. }
  11044. sort.Sort(intSlice(v2))
  11045. if esep {
  11046. for _, k2 := range v2 {
  11047. ee.WriteMapElemKey()
  11048. ee.EncodeInt(int64(int8(k2)))
  11049. ee.WriteMapElemValue()
  11050. ee.EncodeUint(uint64(v[int8(k2)]))
  11051. }
  11052. } else {
  11053. for _, k2 := range v2 {
  11054. ee.EncodeInt(int64(int8(k2)))
  11055. ee.EncodeUint(uint64(v[int8(k2)]))
  11056. }
  11057. }
  11058. } else {
  11059. if esep {
  11060. for k2, v2 := range v {
  11061. ee.WriteMapElemKey()
  11062. ee.EncodeInt(int64(k2))
  11063. ee.WriteMapElemValue()
  11064. ee.EncodeUint(uint64(v2))
  11065. }
  11066. } else {
  11067. for k2, v2 := range v {
  11068. ee.EncodeInt(int64(k2))
  11069. ee.EncodeUint(uint64(v2))
  11070. }
  11071. }
  11072. }
  11073. ee.WriteMapEnd()
  11074. }
  11075. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  11076. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  11077. }
  11078. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  11079. if v == nil {
  11080. e.e.EncodeNil()
  11081. return
  11082. }
  11083. ee, esep := e.e, e.hh.hasElemSeparators()
  11084. ee.WriteMapStart(len(v))
  11085. if e.h.Canonical {
  11086. v2 := make([]int64, len(v))
  11087. var i int
  11088. for k := range v {
  11089. v2[i] = int64(k)
  11090. i++
  11091. }
  11092. sort.Sort(intSlice(v2))
  11093. if esep {
  11094. for _, k2 := range v2 {
  11095. ee.WriteMapElemKey()
  11096. ee.EncodeInt(int64(int8(k2)))
  11097. ee.WriteMapElemValue()
  11098. ee.EncodeUint(uint64(v[int8(k2)]))
  11099. }
  11100. } else {
  11101. for _, k2 := range v2 {
  11102. ee.EncodeInt(int64(int8(k2)))
  11103. ee.EncodeUint(uint64(v[int8(k2)]))
  11104. }
  11105. }
  11106. } else {
  11107. if esep {
  11108. for k2, v2 := range v {
  11109. ee.WriteMapElemKey()
  11110. ee.EncodeInt(int64(k2))
  11111. ee.WriteMapElemValue()
  11112. ee.EncodeUint(uint64(v2))
  11113. }
  11114. } else {
  11115. for k2, v2 := range v {
  11116. ee.EncodeInt(int64(k2))
  11117. ee.EncodeUint(uint64(v2))
  11118. }
  11119. }
  11120. }
  11121. ee.WriteMapEnd()
  11122. }
  11123. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  11124. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  11125. }
  11126. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  11127. if v == nil {
  11128. e.e.EncodeNil()
  11129. return
  11130. }
  11131. ee, esep := e.e, e.hh.hasElemSeparators()
  11132. ee.WriteMapStart(len(v))
  11133. if e.h.Canonical {
  11134. v2 := make([]int64, len(v))
  11135. var i int
  11136. for k := range v {
  11137. v2[i] = int64(k)
  11138. i++
  11139. }
  11140. sort.Sort(intSlice(v2))
  11141. if esep {
  11142. for _, k2 := range v2 {
  11143. ee.WriteMapElemKey()
  11144. ee.EncodeInt(int64(int8(k2)))
  11145. ee.WriteMapElemValue()
  11146. e.encode(v[int8(k2)])
  11147. }
  11148. } else {
  11149. for _, k2 := range v2 {
  11150. ee.EncodeInt(int64(int8(k2)))
  11151. e.encode(v[int8(k2)])
  11152. }
  11153. }
  11154. } else {
  11155. if esep {
  11156. for k2, v2 := range v {
  11157. ee.WriteMapElemKey()
  11158. ee.EncodeInt(int64(k2))
  11159. ee.WriteMapElemValue()
  11160. e.encode(v2)
  11161. }
  11162. } else {
  11163. for k2, v2 := range v {
  11164. ee.EncodeInt(int64(k2))
  11165. e.encode(v2)
  11166. }
  11167. }
  11168. }
  11169. ee.WriteMapEnd()
  11170. }
  11171. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  11172. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  11173. }
  11174. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  11175. if v == nil {
  11176. e.e.EncodeNil()
  11177. return
  11178. }
  11179. ee, esep := e.e, e.hh.hasElemSeparators()
  11180. ee.WriteMapStart(len(v))
  11181. if e.h.Canonical {
  11182. v2 := make([]int64, len(v))
  11183. var i int
  11184. for k := range v {
  11185. v2[i] = int64(k)
  11186. i++
  11187. }
  11188. sort.Sort(intSlice(v2))
  11189. if esep {
  11190. for _, k2 := range v2 {
  11191. ee.WriteMapElemKey()
  11192. ee.EncodeInt(int64(int8(k2)))
  11193. ee.WriteMapElemValue()
  11194. ee.EncodeInt(int64(v[int8(k2)]))
  11195. }
  11196. } else {
  11197. for _, k2 := range v2 {
  11198. ee.EncodeInt(int64(int8(k2)))
  11199. ee.EncodeInt(int64(v[int8(k2)]))
  11200. }
  11201. }
  11202. } else {
  11203. if esep {
  11204. for k2, v2 := range v {
  11205. ee.WriteMapElemKey()
  11206. ee.EncodeInt(int64(k2))
  11207. ee.WriteMapElemValue()
  11208. ee.EncodeInt(int64(v2))
  11209. }
  11210. } else {
  11211. for k2, v2 := range v {
  11212. ee.EncodeInt(int64(k2))
  11213. ee.EncodeInt(int64(v2))
  11214. }
  11215. }
  11216. }
  11217. ee.WriteMapEnd()
  11218. }
  11219. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  11220. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  11221. }
  11222. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  11223. if v == nil {
  11224. e.e.EncodeNil()
  11225. return
  11226. }
  11227. ee, esep := e.e, e.hh.hasElemSeparators()
  11228. ee.WriteMapStart(len(v))
  11229. if e.h.Canonical {
  11230. v2 := make([]int64, len(v))
  11231. var i int
  11232. for k := range v {
  11233. v2[i] = int64(k)
  11234. i++
  11235. }
  11236. sort.Sort(intSlice(v2))
  11237. if esep {
  11238. for _, k2 := range v2 {
  11239. ee.WriteMapElemKey()
  11240. ee.EncodeInt(int64(int8(k2)))
  11241. ee.WriteMapElemValue()
  11242. ee.EncodeInt(int64(v[int8(k2)]))
  11243. }
  11244. } else {
  11245. for _, k2 := range v2 {
  11246. ee.EncodeInt(int64(int8(k2)))
  11247. ee.EncodeInt(int64(v[int8(k2)]))
  11248. }
  11249. }
  11250. } else {
  11251. if esep {
  11252. for k2, v2 := range v {
  11253. ee.WriteMapElemKey()
  11254. ee.EncodeInt(int64(k2))
  11255. ee.WriteMapElemValue()
  11256. ee.EncodeInt(int64(v2))
  11257. }
  11258. } else {
  11259. for k2, v2 := range v {
  11260. ee.EncodeInt(int64(k2))
  11261. ee.EncodeInt(int64(v2))
  11262. }
  11263. }
  11264. }
  11265. ee.WriteMapEnd()
  11266. }
  11267. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  11268. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  11269. }
  11270. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  11271. if v == nil {
  11272. e.e.EncodeNil()
  11273. return
  11274. }
  11275. ee, esep := e.e, e.hh.hasElemSeparators()
  11276. ee.WriteMapStart(len(v))
  11277. if e.h.Canonical {
  11278. v2 := make([]int64, len(v))
  11279. var i int
  11280. for k := range v {
  11281. v2[i] = int64(k)
  11282. i++
  11283. }
  11284. sort.Sort(intSlice(v2))
  11285. if esep {
  11286. for _, k2 := range v2 {
  11287. ee.WriteMapElemKey()
  11288. ee.EncodeInt(int64(int8(k2)))
  11289. ee.WriteMapElemValue()
  11290. ee.EncodeInt(int64(v[int8(k2)]))
  11291. }
  11292. } else {
  11293. for _, k2 := range v2 {
  11294. ee.EncodeInt(int64(int8(k2)))
  11295. ee.EncodeInt(int64(v[int8(k2)]))
  11296. }
  11297. }
  11298. } else {
  11299. if esep {
  11300. for k2, v2 := range v {
  11301. ee.WriteMapElemKey()
  11302. ee.EncodeInt(int64(k2))
  11303. ee.WriteMapElemValue()
  11304. ee.EncodeInt(int64(v2))
  11305. }
  11306. } else {
  11307. for k2, v2 := range v {
  11308. ee.EncodeInt(int64(k2))
  11309. ee.EncodeInt(int64(v2))
  11310. }
  11311. }
  11312. }
  11313. ee.WriteMapEnd()
  11314. }
  11315. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  11316. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  11317. }
  11318. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  11319. if v == nil {
  11320. e.e.EncodeNil()
  11321. return
  11322. }
  11323. ee, esep := e.e, e.hh.hasElemSeparators()
  11324. ee.WriteMapStart(len(v))
  11325. if e.h.Canonical {
  11326. v2 := make([]int64, len(v))
  11327. var i int
  11328. for k := range v {
  11329. v2[i] = int64(k)
  11330. i++
  11331. }
  11332. sort.Sort(intSlice(v2))
  11333. if esep {
  11334. for _, k2 := range v2 {
  11335. ee.WriteMapElemKey()
  11336. ee.EncodeInt(int64(int8(k2)))
  11337. ee.WriteMapElemValue()
  11338. ee.EncodeInt(int64(v[int8(k2)]))
  11339. }
  11340. } else {
  11341. for _, k2 := range v2 {
  11342. ee.EncodeInt(int64(int8(k2)))
  11343. ee.EncodeInt(int64(v[int8(k2)]))
  11344. }
  11345. }
  11346. } else {
  11347. if esep {
  11348. for k2, v2 := range v {
  11349. ee.WriteMapElemKey()
  11350. ee.EncodeInt(int64(k2))
  11351. ee.WriteMapElemValue()
  11352. ee.EncodeInt(int64(v2))
  11353. }
  11354. } else {
  11355. for k2, v2 := range v {
  11356. ee.EncodeInt(int64(k2))
  11357. ee.EncodeInt(int64(v2))
  11358. }
  11359. }
  11360. }
  11361. ee.WriteMapEnd()
  11362. }
  11363. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  11364. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  11365. }
  11366. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  11367. if v == nil {
  11368. e.e.EncodeNil()
  11369. return
  11370. }
  11371. ee, esep := e.e, e.hh.hasElemSeparators()
  11372. ee.WriteMapStart(len(v))
  11373. if e.h.Canonical {
  11374. v2 := make([]int64, len(v))
  11375. var i int
  11376. for k := range v {
  11377. v2[i] = int64(k)
  11378. i++
  11379. }
  11380. sort.Sort(intSlice(v2))
  11381. if esep {
  11382. for _, k2 := range v2 {
  11383. ee.WriteMapElemKey()
  11384. ee.EncodeInt(int64(int8(k2)))
  11385. ee.WriteMapElemValue()
  11386. ee.EncodeInt(int64(v[int8(k2)]))
  11387. }
  11388. } else {
  11389. for _, k2 := range v2 {
  11390. ee.EncodeInt(int64(int8(k2)))
  11391. ee.EncodeInt(int64(v[int8(k2)]))
  11392. }
  11393. }
  11394. } else {
  11395. if esep {
  11396. for k2, v2 := range v {
  11397. ee.WriteMapElemKey()
  11398. ee.EncodeInt(int64(k2))
  11399. ee.WriteMapElemValue()
  11400. ee.EncodeInt(int64(v2))
  11401. }
  11402. } else {
  11403. for k2, v2 := range v {
  11404. ee.EncodeInt(int64(k2))
  11405. ee.EncodeInt(int64(v2))
  11406. }
  11407. }
  11408. }
  11409. ee.WriteMapEnd()
  11410. }
  11411. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  11412. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  11413. }
  11414. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  11415. if v == nil {
  11416. e.e.EncodeNil()
  11417. return
  11418. }
  11419. ee, esep := e.e, e.hh.hasElemSeparators()
  11420. ee.WriteMapStart(len(v))
  11421. if e.h.Canonical {
  11422. v2 := make([]int64, len(v))
  11423. var i int
  11424. for k := range v {
  11425. v2[i] = int64(k)
  11426. i++
  11427. }
  11428. sort.Sort(intSlice(v2))
  11429. if esep {
  11430. for _, k2 := range v2 {
  11431. ee.WriteMapElemKey()
  11432. ee.EncodeInt(int64(int8(k2)))
  11433. ee.WriteMapElemValue()
  11434. ee.EncodeFloat32(v[int8(k2)])
  11435. }
  11436. } else {
  11437. for _, k2 := range v2 {
  11438. ee.EncodeInt(int64(int8(k2)))
  11439. ee.EncodeFloat32(v[int8(k2)])
  11440. }
  11441. }
  11442. } else {
  11443. if esep {
  11444. for k2, v2 := range v {
  11445. ee.WriteMapElemKey()
  11446. ee.EncodeInt(int64(k2))
  11447. ee.WriteMapElemValue()
  11448. ee.EncodeFloat32(v2)
  11449. }
  11450. } else {
  11451. for k2, v2 := range v {
  11452. ee.EncodeInt(int64(k2))
  11453. ee.EncodeFloat32(v2)
  11454. }
  11455. }
  11456. }
  11457. ee.WriteMapEnd()
  11458. }
  11459. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  11460. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  11461. }
  11462. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  11463. if v == nil {
  11464. e.e.EncodeNil()
  11465. return
  11466. }
  11467. ee, esep := e.e, e.hh.hasElemSeparators()
  11468. ee.WriteMapStart(len(v))
  11469. if e.h.Canonical {
  11470. v2 := make([]int64, len(v))
  11471. var i int
  11472. for k := range v {
  11473. v2[i] = int64(k)
  11474. i++
  11475. }
  11476. sort.Sort(intSlice(v2))
  11477. if esep {
  11478. for _, k2 := range v2 {
  11479. ee.WriteMapElemKey()
  11480. ee.EncodeInt(int64(int8(k2)))
  11481. ee.WriteMapElemValue()
  11482. ee.EncodeFloat64(v[int8(k2)])
  11483. }
  11484. } else {
  11485. for _, k2 := range v2 {
  11486. ee.EncodeInt(int64(int8(k2)))
  11487. ee.EncodeFloat64(v[int8(k2)])
  11488. }
  11489. }
  11490. } else {
  11491. if esep {
  11492. for k2, v2 := range v {
  11493. ee.WriteMapElemKey()
  11494. ee.EncodeInt(int64(k2))
  11495. ee.WriteMapElemValue()
  11496. ee.EncodeFloat64(v2)
  11497. }
  11498. } else {
  11499. for k2, v2 := range v {
  11500. ee.EncodeInt(int64(k2))
  11501. ee.EncodeFloat64(v2)
  11502. }
  11503. }
  11504. }
  11505. ee.WriteMapEnd()
  11506. }
  11507. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  11508. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  11509. }
  11510. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  11511. if v == nil {
  11512. e.e.EncodeNil()
  11513. return
  11514. }
  11515. ee, esep := e.e, e.hh.hasElemSeparators()
  11516. ee.WriteMapStart(len(v))
  11517. if e.h.Canonical {
  11518. v2 := make([]int64, len(v))
  11519. var i int
  11520. for k := range v {
  11521. v2[i] = int64(k)
  11522. i++
  11523. }
  11524. sort.Sort(intSlice(v2))
  11525. if esep {
  11526. for _, k2 := range v2 {
  11527. ee.WriteMapElemKey()
  11528. ee.EncodeInt(int64(int8(k2)))
  11529. ee.WriteMapElemValue()
  11530. ee.EncodeBool(v[int8(k2)])
  11531. }
  11532. } else {
  11533. for _, k2 := range v2 {
  11534. ee.EncodeInt(int64(int8(k2)))
  11535. ee.EncodeBool(v[int8(k2)])
  11536. }
  11537. }
  11538. } else {
  11539. if esep {
  11540. for k2, v2 := range v {
  11541. ee.WriteMapElemKey()
  11542. ee.EncodeInt(int64(k2))
  11543. ee.WriteMapElemValue()
  11544. ee.EncodeBool(v2)
  11545. }
  11546. } else {
  11547. for k2, v2 := range v {
  11548. ee.EncodeInt(int64(k2))
  11549. ee.EncodeBool(v2)
  11550. }
  11551. }
  11552. }
  11553. ee.WriteMapEnd()
  11554. }
  11555. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  11556. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  11557. }
  11558. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  11559. if v == nil {
  11560. e.e.EncodeNil()
  11561. return
  11562. }
  11563. ee, esep := e.e, e.hh.hasElemSeparators()
  11564. ee.WriteMapStart(len(v))
  11565. if e.h.Canonical {
  11566. v2 := make([]int64, len(v))
  11567. var i int
  11568. for k := range v {
  11569. v2[i] = int64(k)
  11570. i++
  11571. }
  11572. sort.Sort(intSlice(v2))
  11573. if esep {
  11574. for _, k2 := range v2 {
  11575. ee.WriteMapElemKey()
  11576. ee.EncodeInt(int64(int16(k2)))
  11577. ee.WriteMapElemValue()
  11578. e.encode(v[int16(k2)])
  11579. }
  11580. } else {
  11581. for _, k2 := range v2 {
  11582. ee.EncodeInt(int64(int16(k2)))
  11583. e.encode(v[int16(k2)])
  11584. }
  11585. }
  11586. } else {
  11587. if esep {
  11588. for k2, v2 := range v {
  11589. ee.WriteMapElemKey()
  11590. ee.EncodeInt(int64(k2))
  11591. ee.WriteMapElemValue()
  11592. e.encode(v2)
  11593. }
  11594. } else {
  11595. for k2, v2 := range v {
  11596. ee.EncodeInt(int64(k2))
  11597. e.encode(v2)
  11598. }
  11599. }
  11600. }
  11601. ee.WriteMapEnd()
  11602. }
  11603. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  11604. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  11605. }
  11606. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  11607. if v == nil {
  11608. e.e.EncodeNil()
  11609. return
  11610. }
  11611. ee, esep := e.e, e.hh.hasElemSeparators()
  11612. ee.WriteMapStart(len(v))
  11613. if e.h.Canonical {
  11614. v2 := make([]int64, len(v))
  11615. var i int
  11616. for k := range v {
  11617. v2[i] = int64(k)
  11618. i++
  11619. }
  11620. sort.Sort(intSlice(v2))
  11621. if esep {
  11622. for _, k2 := range v2 {
  11623. ee.WriteMapElemKey()
  11624. ee.EncodeInt(int64(int16(k2)))
  11625. ee.WriteMapElemValue()
  11626. ee.EncodeStringEnc(cUTF8, v[int16(k2)])
  11627. }
  11628. } else {
  11629. for _, k2 := range v2 {
  11630. ee.EncodeInt(int64(int16(k2)))
  11631. ee.EncodeStringEnc(cUTF8, v[int16(k2)])
  11632. }
  11633. }
  11634. } else {
  11635. if esep {
  11636. for k2, v2 := range v {
  11637. ee.WriteMapElemKey()
  11638. ee.EncodeInt(int64(k2))
  11639. ee.WriteMapElemValue()
  11640. ee.EncodeStringEnc(cUTF8, v2)
  11641. }
  11642. } else {
  11643. for k2, v2 := range v {
  11644. ee.EncodeInt(int64(k2))
  11645. ee.EncodeStringEnc(cUTF8, v2)
  11646. }
  11647. }
  11648. }
  11649. ee.WriteMapEnd()
  11650. }
  11651. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  11652. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  11653. }
  11654. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  11655. if v == nil {
  11656. e.e.EncodeNil()
  11657. return
  11658. }
  11659. ee, esep := e.e, e.hh.hasElemSeparators()
  11660. ee.WriteMapStart(len(v))
  11661. if e.h.Canonical {
  11662. v2 := make([]int64, len(v))
  11663. var i int
  11664. for k := range v {
  11665. v2[i] = int64(k)
  11666. i++
  11667. }
  11668. sort.Sort(intSlice(v2))
  11669. if esep {
  11670. for _, k2 := range v2 {
  11671. ee.WriteMapElemKey()
  11672. ee.EncodeInt(int64(int16(k2)))
  11673. ee.WriteMapElemValue()
  11674. ee.EncodeUint(uint64(v[int16(k2)]))
  11675. }
  11676. } else {
  11677. for _, k2 := range v2 {
  11678. ee.EncodeInt(int64(int16(k2)))
  11679. ee.EncodeUint(uint64(v[int16(k2)]))
  11680. }
  11681. }
  11682. } else {
  11683. if esep {
  11684. for k2, v2 := range v {
  11685. ee.WriteMapElemKey()
  11686. ee.EncodeInt(int64(k2))
  11687. ee.WriteMapElemValue()
  11688. ee.EncodeUint(uint64(v2))
  11689. }
  11690. } else {
  11691. for k2, v2 := range v {
  11692. ee.EncodeInt(int64(k2))
  11693. ee.EncodeUint(uint64(v2))
  11694. }
  11695. }
  11696. }
  11697. ee.WriteMapEnd()
  11698. }
  11699. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  11700. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  11701. }
  11702. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  11703. if v == nil {
  11704. e.e.EncodeNil()
  11705. return
  11706. }
  11707. ee, esep := e.e, e.hh.hasElemSeparators()
  11708. ee.WriteMapStart(len(v))
  11709. if e.h.Canonical {
  11710. v2 := make([]int64, len(v))
  11711. var i int
  11712. for k := range v {
  11713. v2[i] = int64(k)
  11714. i++
  11715. }
  11716. sort.Sort(intSlice(v2))
  11717. if esep {
  11718. for _, k2 := range v2 {
  11719. ee.WriteMapElemKey()
  11720. ee.EncodeInt(int64(int16(k2)))
  11721. ee.WriteMapElemValue()
  11722. ee.EncodeUint(uint64(v[int16(k2)]))
  11723. }
  11724. } else {
  11725. for _, k2 := range v2 {
  11726. ee.EncodeInt(int64(int16(k2)))
  11727. ee.EncodeUint(uint64(v[int16(k2)]))
  11728. }
  11729. }
  11730. } else {
  11731. if esep {
  11732. for k2, v2 := range v {
  11733. ee.WriteMapElemKey()
  11734. ee.EncodeInt(int64(k2))
  11735. ee.WriteMapElemValue()
  11736. ee.EncodeUint(uint64(v2))
  11737. }
  11738. } else {
  11739. for k2, v2 := range v {
  11740. ee.EncodeInt(int64(k2))
  11741. ee.EncodeUint(uint64(v2))
  11742. }
  11743. }
  11744. }
  11745. ee.WriteMapEnd()
  11746. }
  11747. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  11748. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  11749. }
  11750. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  11751. if v == nil {
  11752. e.e.EncodeNil()
  11753. return
  11754. }
  11755. ee, esep := e.e, e.hh.hasElemSeparators()
  11756. ee.WriteMapStart(len(v))
  11757. if e.h.Canonical {
  11758. v2 := make([]int64, len(v))
  11759. var i int
  11760. for k := range v {
  11761. v2[i] = int64(k)
  11762. i++
  11763. }
  11764. sort.Sort(intSlice(v2))
  11765. if esep {
  11766. for _, k2 := range v2 {
  11767. ee.WriteMapElemKey()
  11768. ee.EncodeInt(int64(int16(k2)))
  11769. ee.WriteMapElemValue()
  11770. ee.EncodeUint(uint64(v[int16(k2)]))
  11771. }
  11772. } else {
  11773. for _, k2 := range v2 {
  11774. ee.EncodeInt(int64(int16(k2)))
  11775. ee.EncodeUint(uint64(v[int16(k2)]))
  11776. }
  11777. }
  11778. } else {
  11779. if esep {
  11780. for k2, v2 := range v {
  11781. ee.WriteMapElemKey()
  11782. ee.EncodeInt(int64(k2))
  11783. ee.WriteMapElemValue()
  11784. ee.EncodeUint(uint64(v2))
  11785. }
  11786. } else {
  11787. for k2, v2 := range v {
  11788. ee.EncodeInt(int64(k2))
  11789. ee.EncodeUint(uint64(v2))
  11790. }
  11791. }
  11792. }
  11793. ee.WriteMapEnd()
  11794. }
  11795. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  11796. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  11797. }
  11798. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  11799. if v == nil {
  11800. e.e.EncodeNil()
  11801. return
  11802. }
  11803. ee, esep := e.e, e.hh.hasElemSeparators()
  11804. ee.WriteMapStart(len(v))
  11805. if e.h.Canonical {
  11806. v2 := make([]int64, len(v))
  11807. var i int
  11808. for k := range v {
  11809. v2[i] = int64(k)
  11810. i++
  11811. }
  11812. sort.Sort(intSlice(v2))
  11813. if esep {
  11814. for _, k2 := range v2 {
  11815. ee.WriteMapElemKey()
  11816. ee.EncodeInt(int64(int16(k2)))
  11817. ee.WriteMapElemValue()
  11818. ee.EncodeUint(uint64(v[int16(k2)]))
  11819. }
  11820. } else {
  11821. for _, k2 := range v2 {
  11822. ee.EncodeInt(int64(int16(k2)))
  11823. ee.EncodeUint(uint64(v[int16(k2)]))
  11824. }
  11825. }
  11826. } else {
  11827. if esep {
  11828. for k2, v2 := range v {
  11829. ee.WriteMapElemKey()
  11830. ee.EncodeInt(int64(k2))
  11831. ee.WriteMapElemValue()
  11832. ee.EncodeUint(uint64(v2))
  11833. }
  11834. } else {
  11835. for k2, v2 := range v {
  11836. ee.EncodeInt(int64(k2))
  11837. ee.EncodeUint(uint64(v2))
  11838. }
  11839. }
  11840. }
  11841. ee.WriteMapEnd()
  11842. }
  11843. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  11844. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  11845. }
  11846. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  11847. if v == nil {
  11848. e.e.EncodeNil()
  11849. return
  11850. }
  11851. ee, esep := e.e, e.hh.hasElemSeparators()
  11852. ee.WriteMapStart(len(v))
  11853. if e.h.Canonical {
  11854. v2 := make([]int64, len(v))
  11855. var i int
  11856. for k := range v {
  11857. v2[i] = int64(k)
  11858. i++
  11859. }
  11860. sort.Sort(intSlice(v2))
  11861. if esep {
  11862. for _, k2 := range v2 {
  11863. ee.WriteMapElemKey()
  11864. ee.EncodeInt(int64(int16(k2)))
  11865. ee.WriteMapElemValue()
  11866. ee.EncodeUint(uint64(v[int16(k2)]))
  11867. }
  11868. } else {
  11869. for _, k2 := range v2 {
  11870. ee.EncodeInt(int64(int16(k2)))
  11871. ee.EncodeUint(uint64(v[int16(k2)]))
  11872. }
  11873. }
  11874. } else {
  11875. if esep {
  11876. for k2, v2 := range v {
  11877. ee.WriteMapElemKey()
  11878. ee.EncodeInt(int64(k2))
  11879. ee.WriteMapElemValue()
  11880. ee.EncodeUint(uint64(v2))
  11881. }
  11882. } else {
  11883. for k2, v2 := range v {
  11884. ee.EncodeInt(int64(k2))
  11885. ee.EncodeUint(uint64(v2))
  11886. }
  11887. }
  11888. }
  11889. ee.WriteMapEnd()
  11890. }
  11891. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  11892. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  11893. }
  11894. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  11895. if v == nil {
  11896. e.e.EncodeNil()
  11897. return
  11898. }
  11899. ee, esep := e.e, e.hh.hasElemSeparators()
  11900. ee.WriteMapStart(len(v))
  11901. if e.h.Canonical {
  11902. v2 := make([]int64, len(v))
  11903. var i int
  11904. for k := range v {
  11905. v2[i] = int64(k)
  11906. i++
  11907. }
  11908. sort.Sort(intSlice(v2))
  11909. if esep {
  11910. for _, k2 := range v2 {
  11911. ee.WriteMapElemKey()
  11912. ee.EncodeInt(int64(int16(k2)))
  11913. ee.WriteMapElemValue()
  11914. e.encode(v[int16(k2)])
  11915. }
  11916. } else {
  11917. for _, k2 := range v2 {
  11918. ee.EncodeInt(int64(int16(k2)))
  11919. e.encode(v[int16(k2)])
  11920. }
  11921. }
  11922. } else {
  11923. if esep {
  11924. for k2, v2 := range v {
  11925. ee.WriteMapElemKey()
  11926. ee.EncodeInt(int64(k2))
  11927. ee.WriteMapElemValue()
  11928. e.encode(v2)
  11929. }
  11930. } else {
  11931. for k2, v2 := range v {
  11932. ee.EncodeInt(int64(k2))
  11933. e.encode(v2)
  11934. }
  11935. }
  11936. }
  11937. ee.WriteMapEnd()
  11938. }
  11939. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  11940. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  11941. }
  11942. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  11943. if v == nil {
  11944. e.e.EncodeNil()
  11945. return
  11946. }
  11947. ee, esep := e.e, e.hh.hasElemSeparators()
  11948. ee.WriteMapStart(len(v))
  11949. if e.h.Canonical {
  11950. v2 := make([]int64, len(v))
  11951. var i int
  11952. for k := range v {
  11953. v2[i] = int64(k)
  11954. i++
  11955. }
  11956. sort.Sort(intSlice(v2))
  11957. if esep {
  11958. for _, k2 := range v2 {
  11959. ee.WriteMapElemKey()
  11960. ee.EncodeInt(int64(int16(k2)))
  11961. ee.WriteMapElemValue()
  11962. ee.EncodeInt(int64(v[int16(k2)]))
  11963. }
  11964. } else {
  11965. for _, k2 := range v2 {
  11966. ee.EncodeInt(int64(int16(k2)))
  11967. ee.EncodeInt(int64(v[int16(k2)]))
  11968. }
  11969. }
  11970. } else {
  11971. if esep {
  11972. for k2, v2 := range v {
  11973. ee.WriteMapElemKey()
  11974. ee.EncodeInt(int64(k2))
  11975. ee.WriteMapElemValue()
  11976. ee.EncodeInt(int64(v2))
  11977. }
  11978. } else {
  11979. for k2, v2 := range v {
  11980. ee.EncodeInt(int64(k2))
  11981. ee.EncodeInt(int64(v2))
  11982. }
  11983. }
  11984. }
  11985. ee.WriteMapEnd()
  11986. }
  11987. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  11988. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  11989. }
  11990. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  11991. if v == nil {
  11992. e.e.EncodeNil()
  11993. return
  11994. }
  11995. ee, esep := e.e, e.hh.hasElemSeparators()
  11996. ee.WriteMapStart(len(v))
  11997. if e.h.Canonical {
  11998. v2 := make([]int64, len(v))
  11999. var i int
  12000. for k := range v {
  12001. v2[i] = int64(k)
  12002. i++
  12003. }
  12004. sort.Sort(intSlice(v2))
  12005. if esep {
  12006. for _, k2 := range v2 {
  12007. ee.WriteMapElemKey()
  12008. ee.EncodeInt(int64(int16(k2)))
  12009. ee.WriteMapElemValue()
  12010. ee.EncodeInt(int64(v[int16(k2)]))
  12011. }
  12012. } else {
  12013. for _, k2 := range v2 {
  12014. ee.EncodeInt(int64(int16(k2)))
  12015. ee.EncodeInt(int64(v[int16(k2)]))
  12016. }
  12017. }
  12018. } else {
  12019. if esep {
  12020. for k2, v2 := range v {
  12021. ee.WriteMapElemKey()
  12022. ee.EncodeInt(int64(k2))
  12023. ee.WriteMapElemValue()
  12024. ee.EncodeInt(int64(v2))
  12025. }
  12026. } else {
  12027. for k2, v2 := range v {
  12028. ee.EncodeInt(int64(k2))
  12029. ee.EncodeInt(int64(v2))
  12030. }
  12031. }
  12032. }
  12033. ee.WriteMapEnd()
  12034. }
  12035. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  12036. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  12037. }
  12038. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  12039. if v == nil {
  12040. e.e.EncodeNil()
  12041. return
  12042. }
  12043. ee, esep := e.e, e.hh.hasElemSeparators()
  12044. ee.WriteMapStart(len(v))
  12045. if e.h.Canonical {
  12046. v2 := make([]int64, len(v))
  12047. var i int
  12048. for k := range v {
  12049. v2[i] = int64(k)
  12050. i++
  12051. }
  12052. sort.Sort(intSlice(v2))
  12053. if esep {
  12054. for _, k2 := range v2 {
  12055. ee.WriteMapElemKey()
  12056. ee.EncodeInt(int64(int16(k2)))
  12057. ee.WriteMapElemValue()
  12058. ee.EncodeInt(int64(v[int16(k2)]))
  12059. }
  12060. } else {
  12061. for _, k2 := range v2 {
  12062. ee.EncodeInt(int64(int16(k2)))
  12063. ee.EncodeInt(int64(v[int16(k2)]))
  12064. }
  12065. }
  12066. } else {
  12067. if esep {
  12068. for k2, v2 := range v {
  12069. ee.WriteMapElemKey()
  12070. ee.EncodeInt(int64(k2))
  12071. ee.WriteMapElemValue()
  12072. ee.EncodeInt(int64(v2))
  12073. }
  12074. } else {
  12075. for k2, v2 := range v {
  12076. ee.EncodeInt(int64(k2))
  12077. ee.EncodeInt(int64(v2))
  12078. }
  12079. }
  12080. }
  12081. ee.WriteMapEnd()
  12082. }
  12083. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  12084. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  12085. }
  12086. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  12087. if v == nil {
  12088. e.e.EncodeNil()
  12089. return
  12090. }
  12091. ee, esep := e.e, e.hh.hasElemSeparators()
  12092. ee.WriteMapStart(len(v))
  12093. if e.h.Canonical {
  12094. v2 := make([]int64, len(v))
  12095. var i int
  12096. for k := range v {
  12097. v2[i] = int64(k)
  12098. i++
  12099. }
  12100. sort.Sort(intSlice(v2))
  12101. if esep {
  12102. for _, k2 := range v2 {
  12103. ee.WriteMapElemKey()
  12104. ee.EncodeInt(int64(int16(k2)))
  12105. ee.WriteMapElemValue()
  12106. ee.EncodeInt(int64(v[int16(k2)]))
  12107. }
  12108. } else {
  12109. for _, k2 := range v2 {
  12110. ee.EncodeInt(int64(int16(k2)))
  12111. ee.EncodeInt(int64(v[int16(k2)]))
  12112. }
  12113. }
  12114. } else {
  12115. if esep {
  12116. for k2, v2 := range v {
  12117. ee.WriteMapElemKey()
  12118. ee.EncodeInt(int64(k2))
  12119. ee.WriteMapElemValue()
  12120. ee.EncodeInt(int64(v2))
  12121. }
  12122. } else {
  12123. for k2, v2 := range v {
  12124. ee.EncodeInt(int64(k2))
  12125. ee.EncodeInt(int64(v2))
  12126. }
  12127. }
  12128. }
  12129. ee.WriteMapEnd()
  12130. }
  12131. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  12132. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  12133. }
  12134. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  12135. if v == nil {
  12136. e.e.EncodeNil()
  12137. return
  12138. }
  12139. ee, esep := e.e, e.hh.hasElemSeparators()
  12140. ee.WriteMapStart(len(v))
  12141. if e.h.Canonical {
  12142. v2 := make([]int64, len(v))
  12143. var i int
  12144. for k := range v {
  12145. v2[i] = int64(k)
  12146. i++
  12147. }
  12148. sort.Sort(intSlice(v2))
  12149. if esep {
  12150. for _, k2 := range v2 {
  12151. ee.WriteMapElemKey()
  12152. ee.EncodeInt(int64(int16(k2)))
  12153. ee.WriteMapElemValue()
  12154. ee.EncodeInt(int64(v[int16(k2)]))
  12155. }
  12156. } else {
  12157. for _, k2 := range v2 {
  12158. ee.EncodeInt(int64(int16(k2)))
  12159. ee.EncodeInt(int64(v[int16(k2)]))
  12160. }
  12161. }
  12162. } else {
  12163. if esep {
  12164. for k2, v2 := range v {
  12165. ee.WriteMapElemKey()
  12166. ee.EncodeInt(int64(k2))
  12167. ee.WriteMapElemValue()
  12168. ee.EncodeInt(int64(v2))
  12169. }
  12170. } else {
  12171. for k2, v2 := range v {
  12172. ee.EncodeInt(int64(k2))
  12173. ee.EncodeInt(int64(v2))
  12174. }
  12175. }
  12176. }
  12177. ee.WriteMapEnd()
  12178. }
  12179. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  12180. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  12181. }
  12182. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  12183. if v == nil {
  12184. e.e.EncodeNil()
  12185. return
  12186. }
  12187. ee, esep := e.e, e.hh.hasElemSeparators()
  12188. ee.WriteMapStart(len(v))
  12189. if e.h.Canonical {
  12190. v2 := make([]int64, len(v))
  12191. var i int
  12192. for k := range v {
  12193. v2[i] = int64(k)
  12194. i++
  12195. }
  12196. sort.Sort(intSlice(v2))
  12197. if esep {
  12198. for _, k2 := range v2 {
  12199. ee.WriteMapElemKey()
  12200. ee.EncodeInt(int64(int16(k2)))
  12201. ee.WriteMapElemValue()
  12202. ee.EncodeFloat32(v[int16(k2)])
  12203. }
  12204. } else {
  12205. for _, k2 := range v2 {
  12206. ee.EncodeInt(int64(int16(k2)))
  12207. ee.EncodeFloat32(v[int16(k2)])
  12208. }
  12209. }
  12210. } else {
  12211. if esep {
  12212. for k2, v2 := range v {
  12213. ee.WriteMapElemKey()
  12214. ee.EncodeInt(int64(k2))
  12215. ee.WriteMapElemValue()
  12216. ee.EncodeFloat32(v2)
  12217. }
  12218. } else {
  12219. for k2, v2 := range v {
  12220. ee.EncodeInt(int64(k2))
  12221. ee.EncodeFloat32(v2)
  12222. }
  12223. }
  12224. }
  12225. ee.WriteMapEnd()
  12226. }
  12227. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  12228. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  12229. }
  12230. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  12231. if v == nil {
  12232. e.e.EncodeNil()
  12233. return
  12234. }
  12235. ee, esep := e.e, e.hh.hasElemSeparators()
  12236. ee.WriteMapStart(len(v))
  12237. if e.h.Canonical {
  12238. v2 := make([]int64, len(v))
  12239. var i int
  12240. for k := range v {
  12241. v2[i] = int64(k)
  12242. i++
  12243. }
  12244. sort.Sort(intSlice(v2))
  12245. if esep {
  12246. for _, k2 := range v2 {
  12247. ee.WriteMapElemKey()
  12248. ee.EncodeInt(int64(int16(k2)))
  12249. ee.WriteMapElemValue()
  12250. ee.EncodeFloat64(v[int16(k2)])
  12251. }
  12252. } else {
  12253. for _, k2 := range v2 {
  12254. ee.EncodeInt(int64(int16(k2)))
  12255. ee.EncodeFloat64(v[int16(k2)])
  12256. }
  12257. }
  12258. } else {
  12259. if esep {
  12260. for k2, v2 := range v {
  12261. ee.WriteMapElemKey()
  12262. ee.EncodeInt(int64(k2))
  12263. ee.WriteMapElemValue()
  12264. ee.EncodeFloat64(v2)
  12265. }
  12266. } else {
  12267. for k2, v2 := range v {
  12268. ee.EncodeInt(int64(k2))
  12269. ee.EncodeFloat64(v2)
  12270. }
  12271. }
  12272. }
  12273. ee.WriteMapEnd()
  12274. }
  12275. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  12276. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  12277. }
  12278. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  12279. if v == nil {
  12280. e.e.EncodeNil()
  12281. return
  12282. }
  12283. ee, esep := e.e, e.hh.hasElemSeparators()
  12284. ee.WriteMapStart(len(v))
  12285. if e.h.Canonical {
  12286. v2 := make([]int64, len(v))
  12287. var i int
  12288. for k := range v {
  12289. v2[i] = int64(k)
  12290. i++
  12291. }
  12292. sort.Sort(intSlice(v2))
  12293. if esep {
  12294. for _, k2 := range v2 {
  12295. ee.WriteMapElemKey()
  12296. ee.EncodeInt(int64(int16(k2)))
  12297. ee.WriteMapElemValue()
  12298. ee.EncodeBool(v[int16(k2)])
  12299. }
  12300. } else {
  12301. for _, k2 := range v2 {
  12302. ee.EncodeInt(int64(int16(k2)))
  12303. ee.EncodeBool(v[int16(k2)])
  12304. }
  12305. }
  12306. } else {
  12307. if esep {
  12308. for k2, v2 := range v {
  12309. ee.WriteMapElemKey()
  12310. ee.EncodeInt(int64(k2))
  12311. ee.WriteMapElemValue()
  12312. ee.EncodeBool(v2)
  12313. }
  12314. } else {
  12315. for k2, v2 := range v {
  12316. ee.EncodeInt(int64(k2))
  12317. ee.EncodeBool(v2)
  12318. }
  12319. }
  12320. }
  12321. ee.WriteMapEnd()
  12322. }
  12323. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  12324. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  12325. }
  12326. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  12327. if v == nil {
  12328. e.e.EncodeNil()
  12329. return
  12330. }
  12331. ee, esep := e.e, e.hh.hasElemSeparators()
  12332. ee.WriteMapStart(len(v))
  12333. if e.h.Canonical {
  12334. v2 := make([]int64, len(v))
  12335. var i int
  12336. for k := range v {
  12337. v2[i] = int64(k)
  12338. i++
  12339. }
  12340. sort.Sort(intSlice(v2))
  12341. if esep {
  12342. for _, k2 := range v2 {
  12343. ee.WriteMapElemKey()
  12344. ee.EncodeInt(int64(int32(k2)))
  12345. ee.WriteMapElemValue()
  12346. e.encode(v[int32(k2)])
  12347. }
  12348. } else {
  12349. for _, k2 := range v2 {
  12350. ee.EncodeInt(int64(int32(k2)))
  12351. e.encode(v[int32(k2)])
  12352. }
  12353. }
  12354. } else {
  12355. if esep {
  12356. for k2, v2 := range v {
  12357. ee.WriteMapElemKey()
  12358. ee.EncodeInt(int64(k2))
  12359. ee.WriteMapElemValue()
  12360. e.encode(v2)
  12361. }
  12362. } else {
  12363. for k2, v2 := range v {
  12364. ee.EncodeInt(int64(k2))
  12365. e.encode(v2)
  12366. }
  12367. }
  12368. }
  12369. ee.WriteMapEnd()
  12370. }
  12371. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  12372. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  12373. }
  12374. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  12375. if v == nil {
  12376. e.e.EncodeNil()
  12377. return
  12378. }
  12379. ee, esep := e.e, e.hh.hasElemSeparators()
  12380. ee.WriteMapStart(len(v))
  12381. if e.h.Canonical {
  12382. v2 := make([]int64, len(v))
  12383. var i int
  12384. for k := range v {
  12385. v2[i] = int64(k)
  12386. i++
  12387. }
  12388. sort.Sort(intSlice(v2))
  12389. if esep {
  12390. for _, k2 := range v2 {
  12391. ee.WriteMapElemKey()
  12392. ee.EncodeInt(int64(int32(k2)))
  12393. ee.WriteMapElemValue()
  12394. ee.EncodeStringEnc(cUTF8, v[int32(k2)])
  12395. }
  12396. } else {
  12397. for _, k2 := range v2 {
  12398. ee.EncodeInt(int64(int32(k2)))
  12399. ee.EncodeStringEnc(cUTF8, v[int32(k2)])
  12400. }
  12401. }
  12402. } else {
  12403. if esep {
  12404. for k2, v2 := range v {
  12405. ee.WriteMapElemKey()
  12406. ee.EncodeInt(int64(k2))
  12407. ee.WriteMapElemValue()
  12408. ee.EncodeStringEnc(cUTF8, v2)
  12409. }
  12410. } else {
  12411. for k2, v2 := range v {
  12412. ee.EncodeInt(int64(k2))
  12413. ee.EncodeStringEnc(cUTF8, v2)
  12414. }
  12415. }
  12416. }
  12417. ee.WriteMapEnd()
  12418. }
  12419. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  12420. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  12421. }
  12422. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  12423. if v == nil {
  12424. e.e.EncodeNil()
  12425. return
  12426. }
  12427. ee, esep := e.e, e.hh.hasElemSeparators()
  12428. ee.WriteMapStart(len(v))
  12429. if e.h.Canonical {
  12430. v2 := make([]int64, len(v))
  12431. var i int
  12432. for k := range v {
  12433. v2[i] = int64(k)
  12434. i++
  12435. }
  12436. sort.Sort(intSlice(v2))
  12437. if esep {
  12438. for _, k2 := range v2 {
  12439. ee.WriteMapElemKey()
  12440. ee.EncodeInt(int64(int32(k2)))
  12441. ee.WriteMapElemValue()
  12442. ee.EncodeUint(uint64(v[int32(k2)]))
  12443. }
  12444. } else {
  12445. for _, k2 := range v2 {
  12446. ee.EncodeInt(int64(int32(k2)))
  12447. ee.EncodeUint(uint64(v[int32(k2)]))
  12448. }
  12449. }
  12450. } else {
  12451. if esep {
  12452. for k2, v2 := range v {
  12453. ee.WriteMapElemKey()
  12454. ee.EncodeInt(int64(k2))
  12455. ee.WriteMapElemValue()
  12456. ee.EncodeUint(uint64(v2))
  12457. }
  12458. } else {
  12459. for k2, v2 := range v {
  12460. ee.EncodeInt(int64(k2))
  12461. ee.EncodeUint(uint64(v2))
  12462. }
  12463. }
  12464. }
  12465. ee.WriteMapEnd()
  12466. }
  12467. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  12468. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  12469. }
  12470. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  12471. if v == nil {
  12472. e.e.EncodeNil()
  12473. return
  12474. }
  12475. ee, esep := e.e, e.hh.hasElemSeparators()
  12476. ee.WriteMapStart(len(v))
  12477. if e.h.Canonical {
  12478. v2 := make([]int64, len(v))
  12479. var i int
  12480. for k := range v {
  12481. v2[i] = int64(k)
  12482. i++
  12483. }
  12484. sort.Sort(intSlice(v2))
  12485. if esep {
  12486. for _, k2 := range v2 {
  12487. ee.WriteMapElemKey()
  12488. ee.EncodeInt(int64(int32(k2)))
  12489. ee.WriteMapElemValue()
  12490. ee.EncodeUint(uint64(v[int32(k2)]))
  12491. }
  12492. } else {
  12493. for _, k2 := range v2 {
  12494. ee.EncodeInt(int64(int32(k2)))
  12495. ee.EncodeUint(uint64(v[int32(k2)]))
  12496. }
  12497. }
  12498. } else {
  12499. if esep {
  12500. for k2, v2 := range v {
  12501. ee.WriteMapElemKey()
  12502. ee.EncodeInt(int64(k2))
  12503. ee.WriteMapElemValue()
  12504. ee.EncodeUint(uint64(v2))
  12505. }
  12506. } else {
  12507. for k2, v2 := range v {
  12508. ee.EncodeInt(int64(k2))
  12509. ee.EncodeUint(uint64(v2))
  12510. }
  12511. }
  12512. }
  12513. ee.WriteMapEnd()
  12514. }
  12515. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  12516. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  12517. }
  12518. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  12519. if v == nil {
  12520. e.e.EncodeNil()
  12521. return
  12522. }
  12523. ee, esep := e.e, e.hh.hasElemSeparators()
  12524. ee.WriteMapStart(len(v))
  12525. if e.h.Canonical {
  12526. v2 := make([]int64, len(v))
  12527. var i int
  12528. for k := range v {
  12529. v2[i] = int64(k)
  12530. i++
  12531. }
  12532. sort.Sort(intSlice(v2))
  12533. if esep {
  12534. for _, k2 := range v2 {
  12535. ee.WriteMapElemKey()
  12536. ee.EncodeInt(int64(int32(k2)))
  12537. ee.WriteMapElemValue()
  12538. ee.EncodeUint(uint64(v[int32(k2)]))
  12539. }
  12540. } else {
  12541. for _, k2 := range v2 {
  12542. ee.EncodeInt(int64(int32(k2)))
  12543. ee.EncodeUint(uint64(v[int32(k2)]))
  12544. }
  12545. }
  12546. } else {
  12547. if esep {
  12548. for k2, v2 := range v {
  12549. ee.WriteMapElemKey()
  12550. ee.EncodeInt(int64(k2))
  12551. ee.WriteMapElemValue()
  12552. ee.EncodeUint(uint64(v2))
  12553. }
  12554. } else {
  12555. for k2, v2 := range v {
  12556. ee.EncodeInt(int64(k2))
  12557. ee.EncodeUint(uint64(v2))
  12558. }
  12559. }
  12560. }
  12561. ee.WriteMapEnd()
  12562. }
  12563. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  12564. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  12565. }
  12566. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  12567. if v == nil {
  12568. e.e.EncodeNil()
  12569. return
  12570. }
  12571. ee, esep := e.e, e.hh.hasElemSeparators()
  12572. ee.WriteMapStart(len(v))
  12573. if e.h.Canonical {
  12574. v2 := make([]int64, len(v))
  12575. var i int
  12576. for k := range v {
  12577. v2[i] = int64(k)
  12578. i++
  12579. }
  12580. sort.Sort(intSlice(v2))
  12581. if esep {
  12582. for _, k2 := range v2 {
  12583. ee.WriteMapElemKey()
  12584. ee.EncodeInt(int64(int32(k2)))
  12585. ee.WriteMapElemValue()
  12586. ee.EncodeUint(uint64(v[int32(k2)]))
  12587. }
  12588. } else {
  12589. for _, k2 := range v2 {
  12590. ee.EncodeInt(int64(int32(k2)))
  12591. ee.EncodeUint(uint64(v[int32(k2)]))
  12592. }
  12593. }
  12594. } else {
  12595. if esep {
  12596. for k2, v2 := range v {
  12597. ee.WriteMapElemKey()
  12598. ee.EncodeInt(int64(k2))
  12599. ee.WriteMapElemValue()
  12600. ee.EncodeUint(uint64(v2))
  12601. }
  12602. } else {
  12603. for k2, v2 := range v {
  12604. ee.EncodeInt(int64(k2))
  12605. ee.EncodeUint(uint64(v2))
  12606. }
  12607. }
  12608. }
  12609. ee.WriteMapEnd()
  12610. }
  12611. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  12612. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  12613. }
  12614. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  12615. if v == nil {
  12616. e.e.EncodeNil()
  12617. return
  12618. }
  12619. ee, esep := e.e, e.hh.hasElemSeparators()
  12620. ee.WriteMapStart(len(v))
  12621. if e.h.Canonical {
  12622. v2 := make([]int64, len(v))
  12623. var i int
  12624. for k := range v {
  12625. v2[i] = int64(k)
  12626. i++
  12627. }
  12628. sort.Sort(intSlice(v2))
  12629. if esep {
  12630. for _, k2 := range v2 {
  12631. ee.WriteMapElemKey()
  12632. ee.EncodeInt(int64(int32(k2)))
  12633. ee.WriteMapElemValue()
  12634. ee.EncodeUint(uint64(v[int32(k2)]))
  12635. }
  12636. } else {
  12637. for _, k2 := range v2 {
  12638. ee.EncodeInt(int64(int32(k2)))
  12639. ee.EncodeUint(uint64(v[int32(k2)]))
  12640. }
  12641. }
  12642. } else {
  12643. if esep {
  12644. for k2, v2 := range v {
  12645. ee.WriteMapElemKey()
  12646. ee.EncodeInt(int64(k2))
  12647. ee.WriteMapElemValue()
  12648. ee.EncodeUint(uint64(v2))
  12649. }
  12650. } else {
  12651. for k2, v2 := range v {
  12652. ee.EncodeInt(int64(k2))
  12653. ee.EncodeUint(uint64(v2))
  12654. }
  12655. }
  12656. }
  12657. ee.WriteMapEnd()
  12658. }
  12659. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  12660. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  12661. }
  12662. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  12663. if v == nil {
  12664. e.e.EncodeNil()
  12665. return
  12666. }
  12667. ee, esep := e.e, e.hh.hasElemSeparators()
  12668. ee.WriteMapStart(len(v))
  12669. if e.h.Canonical {
  12670. v2 := make([]int64, len(v))
  12671. var i int
  12672. for k := range v {
  12673. v2[i] = int64(k)
  12674. i++
  12675. }
  12676. sort.Sort(intSlice(v2))
  12677. if esep {
  12678. for _, k2 := range v2 {
  12679. ee.WriteMapElemKey()
  12680. ee.EncodeInt(int64(int32(k2)))
  12681. ee.WriteMapElemValue()
  12682. e.encode(v[int32(k2)])
  12683. }
  12684. } else {
  12685. for _, k2 := range v2 {
  12686. ee.EncodeInt(int64(int32(k2)))
  12687. e.encode(v[int32(k2)])
  12688. }
  12689. }
  12690. } else {
  12691. if esep {
  12692. for k2, v2 := range v {
  12693. ee.WriteMapElemKey()
  12694. ee.EncodeInt(int64(k2))
  12695. ee.WriteMapElemValue()
  12696. e.encode(v2)
  12697. }
  12698. } else {
  12699. for k2, v2 := range v {
  12700. ee.EncodeInt(int64(k2))
  12701. e.encode(v2)
  12702. }
  12703. }
  12704. }
  12705. ee.WriteMapEnd()
  12706. }
  12707. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  12708. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  12709. }
  12710. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  12711. if v == nil {
  12712. e.e.EncodeNil()
  12713. return
  12714. }
  12715. ee, esep := e.e, e.hh.hasElemSeparators()
  12716. ee.WriteMapStart(len(v))
  12717. if e.h.Canonical {
  12718. v2 := make([]int64, len(v))
  12719. var i int
  12720. for k := range v {
  12721. v2[i] = int64(k)
  12722. i++
  12723. }
  12724. sort.Sort(intSlice(v2))
  12725. if esep {
  12726. for _, k2 := range v2 {
  12727. ee.WriteMapElemKey()
  12728. ee.EncodeInt(int64(int32(k2)))
  12729. ee.WriteMapElemValue()
  12730. ee.EncodeInt(int64(v[int32(k2)]))
  12731. }
  12732. } else {
  12733. for _, k2 := range v2 {
  12734. ee.EncodeInt(int64(int32(k2)))
  12735. ee.EncodeInt(int64(v[int32(k2)]))
  12736. }
  12737. }
  12738. } else {
  12739. if esep {
  12740. for k2, v2 := range v {
  12741. ee.WriteMapElemKey()
  12742. ee.EncodeInt(int64(k2))
  12743. ee.WriteMapElemValue()
  12744. ee.EncodeInt(int64(v2))
  12745. }
  12746. } else {
  12747. for k2, v2 := range v {
  12748. ee.EncodeInt(int64(k2))
  12749. ee.EncodeInt(int64(v2))
  12750. }
  12751. }
  12752. }
  12753. ee.WriteMapEnd()
  12754. }
  12755. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  12756. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  12757. }
  12758. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  12759. if v == nil {
  12760. e.e.EncodeNil()
  12761. return
  12762. }
  12763. ee, esep := e.e, e.hh.hasElemSeparators()
  12764. ee.WriteMapStart(len(v))
  12765. if e.h.Canonical {
  12766. v2 := make([]int64, len(v))
  12767. var i int
  12768. for k := range v {
  12769. v2[i] = int64(k)
  12770. i++
  12771. }
  12772. sort.Sort(intSlice(v2))
  12773. if esep {
  12774. for _, k2 := range v2 {
  12775. ee.WriteMapElemKey()
  12776. ee.EncodeInt(int64(int32(k2)))
  12777. ee.WriteMapElemValue()
  12778. ee.EncodeInt(int64(v[int32(k2)]))
  12779. }
  12780. } else {
  12781. for _, k2 := range v2 {
  12782. ee.EncodeInt(int64(int32(k2)))
  12783. ee.EncodeInt(int64(v[int32(k2)]))
  12784. }
  12785. }
  12786. } else {
  12787. if esep {
  12788. for k2, v2 := range v {
  12789. ee.WriteMapElemKey()
  12790. ee.EncodeInt(int64(k2))
  12791. ee.WriteMapElemValue()
  12792. ee.EncodeInt(int64(v2))
  12793. }
  12794. } else {
  12795. for k2, v2 := range v {
  12796. ee.EncodeInt(int64(k2))
  12797. ee.EncodeInt(int64(v2))
  12798. }
  12799. }
  12800. }
  12801. ee.WriteMapEnd()
  12802. }
  12803. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  12804. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  12805. }
  12806. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  12807. if v == nil {
  12808. e.e.EncodeNil()
  12809. return
  12810. }
  12811. ee, esep := e.e, e.hh.hasElemSeparators()
  12812. ee.WriteMapStart(len(v))
  12813. if e.h.Canonical {
  12814. v2 := make([]int64, len(v))
  12815. var i int
  12816. for k := range v {
  12817. v2[i] = int64(k)
  12818. i++
  12819. }
  12820. sort.Sort(intSlice(v2))
  12821. if esep {
  12822. for _, k2 := range v2 {
  12823. ee.WriteMapElemKey()
  12824. ee.EncodeInt(int64(int32(k2)))
  12825. ee.WriteMapElemValue()
  12826. ee.EncodeInt(int64(v[int32(k2)]))
  12827. }
  12828. } else {
  12829. for _, k2 := range v2 {
  12830. ee.EncodeInt(int64(int32(k2)))
  12831. ee.EncodeInt(int64(v[int32(k2)]))
  12832. }
  12833. }
  12834. } else {
  12835. if esep {
  12836. for k2, v2 := range v {
  12837. ee.WriteMapElemKey()
  12838. ee.EncodeInt(int64(k2))
  12839. ee.WriteMapElemValue()
  12840. ee.EncodeInt(int64(v2))
  12841. }
  12842. } else {
  12843. for k2, v2 := range v {
  12844. ee.EncodeInt(int64(k2))
  12845. ee.EncodeInt(int64(v2))
  12846. }
  12847. }
  12848. }
  12849. ee.WriteMapEnd()
  12850. }
  12851. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  12852. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  12853. }
  12854. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  12855. if v == nil {
  12856. e.e.EncodeNil()
  12857. return
  12858. }
  12859. ee, esep := e.e, e.hh.hasElemSeparators()
  12860. ee.WriteMapStart(len(v))
  12861. if e.h.Canonical {
  12862. v2 := make([]int64, len(v))
  12863. var i int
  12864. for k := range v {
  12865. v2[i] = int64(k)
  12866. i++
  12867. }
  12868. sort.Sort(intSlice(v2))
  12869. if esep {
  12870. for _, k2 := range v2 {
  12871. ee.WriteMapElemKey()
  12872. ee.EncodeInt(int64(int32(k2)))
  12873. ee.WriteMapElemValue()
  12874. ee.EncodeInt(int64(v[int32(k2)]))
  12875. }
  12876. } else {
  12877. for _, k2 := range v2 {
  12878. ee.EncodeInt(int64(int32(k2)))
  12879. ee.EncodeInt(int64(v[int32(k2)]))
  12880. }
  12881. }
  12882. } else {
  12883. if esep {
  12884. for k2, v2 := range v {
  12885. ee.WriteMapElemKey()
  12886. ee.EncodeInt(int64(k2))
  12887. ee.WriteMapElemValue()
  12888. ee.EncodeInt(int64(v2))
  12889. }
  12890. } else {
  12891. for k2, v2 := range v {
  12892. ee.EncodeInt(int64(k2))
  12893. ee.EncodeInt(int64(v2))
  12894. }
  12895. }
  12896. }
  12897. ee.WriteMapEnd()
  12898. }
  12899. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  12900. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  12901. }
  12902. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  12903. if v == nil {
  12904. e.e.EncodeNil()
  12905. return
  12906. }
  12907. ee, esep := e.e, e.hh.hasElemSeparators()
  12908. ee.WriteMapStart(len(v))
  12909. if e.h.Canonical {
  12910. v2 := make([]int64, len(v))
  12911. var i int
  12912. for k := range v {
  12913. v2[i] = int64(k)
  12914. i++
  12915. }
  12916. sort.Sort(intSlice(v2))
  12917. if esep {
  12918. for _, k2 := range v2 {
  12919. ee.WriteMapElemKey()
  12920. ee.EncodeInt(int64(int32(k2)))
  12921. ee.WriteMapElemValue()
  12922. ee.EncodeInt(int64(v[int32(k2)]))
  12923. }
  12924. } else {
  12925. for _, k2 := range v2 {
  12926. ee.EncodeInt(int64(int32(k2)))
  12927. ee.EncodeInt(int64(v[int32(k2)]))
  12928. }
  12929. }
  12930. } else {
  12931. if esep {
  12932. for k2, v2 := range v {
  12933. ee.WriteMapElemKey()
  12934. ee.EncodeInt(int64(k2))
  12935. ee.WriteMapElemValue()
  12936. ee.EncodeInt(int64(v2))
  12937. }
  12938. } else {
  12939. for k2, v2 := range v {
  12940. ee.EncodeInt(int64(k2))
  12941. ee.EncodeInt(int64(v2))
  12942. }
  12943. }
  12944. }
  12945. ee.WriteMapEnd()
  12946. }
  12947. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  12948. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  12949. }
  12950. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  12951. if v == nil {
  12952. e.e.EncodeNil()
  12953. return
  12954. }
  12955. ee, esep := e.e, e.hh.hasElemSeparators()
  12956. ee.WriteMapStart(len(v))
  12957. if e.h.Canonical {
  12958. v2 := make([]int64, len(v))
  12959. var i int
  12960. for k := range v {
  12961. v2[i] = int64(k)
  12962. i++
  12963. }
  12964. sort.Sort(intSlice(v2))
  12965. if esep {
  12966. for _, k2 := range v2 {
  12967. ee.WriteMapElemKey()
  12968. ee.EncodeInt(int64(int32(k2)))
  12969. ee.WriteMapElemValue()
  12970. ee.EncodeFloat32(v[int32(k2)])
  12971. }
  12972. } else {
  12973. for _, k2 := range v2 {
  12974. ee.EncodeInt(int64(int32(k2)))
  12975. ee.EncodeFloat32(v[int32(k2)])
  12976. }
  12977. }
  12978. } else {
  12979. if esep {
  12980. for k2, v2 := range v {
  12981. ee.WriteMapElemKey()
  12982. ee.EncodeInt(int64(k2))
  12983. ee.WriteMapElemValue()
  12984. ee.EncodeFloat32(v2)
  12985. }
  12986. } else {
  12987. for k2, v2 := range v {
  12988. ee.EncodeInt(int64(k2))
  12989. ee.EncodeFloat32(v2)
  12990. }
  12991. }
  12992. }
  12993. ee.WriteMapEnd()
  12994. }
  12995. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  12996. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  12997. }
  12998. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  12999. if v == nil {
  13000. e.e.EncodeNil()
  13001. return
  13002. }
  13003. ee, esep := e.e, e.hh.hasElemSeparators()
  13004. ee.WriteMapStart(len(v))
  13005. if e.h.Canonical {
  13006. v2 := make([]int64, len(v))
  13007. var i int
  13008. for k := range v {
  13009. v2[i] = int64(k)
  13010. i++
  13011. }
  13012. sort.Sort(intSlice(v2))
  13013. if esep {
  13014. for _, k2 := range v2 {
  13015. ee.WriteMapElemKey()
  13016. ee.EncodeInt(int64(int32(k2)))
  13017. ee.WriteMapElemValue()
  13018. ee.EncodeFloat64(v[int32(k2)])
  13019. }
  13020. } else {
  13021. for _, k2 := range v2 {
  13022. ee.EncodeInt(int64(int32(k2)))
  13023. ee.EncodeFloat64(v[int32(k2)])
  13024. }
  13025. }
  13026. } else {
  13027. if esep {
  13028. for k2, v2 := range v {
  13029. ee.WriteMapElemKey()
  13030. ee.EncodeInt(int64(k2))
  13031. ee.WriteMapElemValue()
  13032. ee.EncodeFloat64(v2)
  13033. }
  13034. } else {
  13035. for k2, v2 := range v {
  13036. ee.EncodeInt(int64(k2))
  13037. ee.EncodeFloat64(v2)
  13038. }
  13039. }
  13040. }
  13041. ee.WriteMapEnd()
  13042. }
  13043. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  13044. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  13045. }
  13046. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  13047. if v == nil {
  13048. e.e.EncodeNil()
  13049. return
  13050. }
  13051. ee, esep := e.e, e.hh.hasElemSeparators()
  13052. ee.WriteMapStart(len(v))
  13053. if e.h.Canonical {
  13054. v2 := make([]int64, len(v))
  13055. var i int
  13056. for k := range v {
  13057. v2[i] = int64(k)
  13058. i++
  13059. }
  13060. sort.Sort(intSlice(v2))
  13061. if esep {
  13062. for _, k2 := range v2 {
  13063. ee.WriteMapElemKey()
  13064. ee.EncodeInt(int64(int32(k2)))
  13065. ee.WriteMapElemValue()
  13066. ee.EncodeBool(v[int32(k2)])
  13067. }
  13068. } else {
  13069. for _, k2 := range v2 {
  13070. ee.EncodeInt(int64(int32(k2)))
  13071. ee.EncodeBool(v[int32(k2)])
  13072. }
  13073. }
  13074. } else {
  13075. if esep {
  13076. for k2, v2 := range v {
  13077. ee.WriteMapElemKey()
  13078. ee.EncodeInt(int64(k2))
  13079. ee.WriteMapElemValue()
  13080. ee.EncodeBool(v2)
  13081. }
  13082. } else {
  13083. for k2, v2 := range v {
  13084. ee.EncodeInt(int64(k2))
  13085. ee.EncodeBool(v2)
  13086. }
  13087. }
  13088. }
  13089. ee.WriteMapEnd()
  13090. }
  13091. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  13092. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  13093. }
  13094. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  13095. if v == nil {
  13096. e.e.EncodeNil()
  13097. return
  13098. }
  13099. ee, esep := e.e, e.hh.hasElemSeparators()
  13100. ee.WriteMapStart(len(v))
  13101. if e.h.Canonical {
  13102. v2 := make([]int64, len(v))
  13103. var i int
  13104. for k := range v {
  13105. v2[i] = int64(k)
  13106. i++
  13107. }
  13108. sort.Sort(intSlice(v2))
  13109. if esep {
  13110. for _, k2 := range v2 {
  13111. ee.WriteMapElemKey()
  13112. ee.EncodeInt(int64(int64(k2)))
  13113. ee.WriteMapElemValue()
  13114. e.encode(v[int64(k2)])
  13115. }
  13116. } else {
  13117. for _, k2 := range v2 {
  13118. ee.EncodeInt(int64(int64(k2)))
  13119. e.encode(v[int64(k2)])
  13120. }
  13121. }
  13122. } else {
  13123. if esep {
  13124. for k2, v2 := range v {
  13125. ee.WriteMapElemKey()
  13126. ee.EncodeInt(int64(k2))
  13127. ee.WriteMapElemValue()
  13128. e.encode(v2)
  13129. }
  13130. } else {
  13131. for k2, v2 := range v {
  13132. ee.EncodeInt(int64(k2))
  13133. e.encode(v2)
  13134. }
  13135. }
  13136. }
  13137. ee.WriteMapEnd()
  13138. }
  13139. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  13140. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  13141. }
  13142. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  13143. if v == nil {
  13144. e.e.EncodeNil()
  13145. return
  13146. }
  13147. ee, esep := e.e, e.hh.hasElemSeparators()
  13148. ee.WriteMapStart(len(v))
  13149. if e.h.Canonical {
  13150. v2 := make([]int64, len(v))
  13151. var i int
  13152. for k := range v {
  13153. v2[i] = int64(k)
  13154. i++
  13155. }
  13156. sort.Sort(intSlice(v2))
  13157. if esep {
  13158. for _, k2 := range v2 {
  13159. ee.WriteMapElemKey()
  13160. ee.EncodeInt(int64(int64(k2)))
  13161. ee.WriteMapElemValue()
  13162. ee.EncodeStringEnc(cUTF8, v[int64(k2)])
  13163. }
  13164. } else {
  13165. for _, k2 := range v2 {
  13166. ee.EncodeInt(int64(int64(k2)))
  13167. ee.EncodeStringEnc(cUTF8, v[int64(k2)])
  13168. }
  13169. }
  13170. } else {
  13171. if esep {
  13172. for k2, v2 := range v {
  13173. ee.WriteMapElemKey()
  13174. ee.EncodeInt(int64(k2))
  13175. ee.WriteMapElemValue()
  13176. ee.EncodeStringEnc(cUTF8, v2)
  13177. }
  13178. } else {
  13179. for k2, v2 := range v {
  13180. ee.EncodeInt(int64(k2))
  13181. ee.EncodeStringEnc(cUTF8, v2)
  13182. }
  13183. }
  13184. }
  13185. ee.WriteMapEnd()
  13186. }
  13187. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  13188. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  13189. }
  13190. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  13191. if v == nil {
  13192. e.e.EncodeNil()
  13193. return
  13194. }
  13195. ee, esep := e.e, e.hh.hasElemSeparators()
  13196. ee.WriteMapStart(len(v))
  13197. if e.h.Canonical {
  13198. v2 := make([]int64, len(v))
  13199. var i int
  13200. for k := range v {
  13201. v2[i] = int64(k)
  13202. i++
  13203. }
  13204. sort.Sort(intSlice(v2))
  13205. if esep {
  13206. for _, k2 := range v2 {
  13207. ee.WriteMapElemKey()
  13208. ee.EncodeInt(int64(int64(k2)))
  13209. ee.WriteMapElemValue()
  13210. ee.EncodeUint(uint64(v[int64(k2)]))
  13211. }
  13212. } else {
  13213. for _, k2 := range v2 {
  13214. ee.EncodeInt(int64(int64(k2)))
  13215. ee.EncodeUint(uint64(v[int64(k2)]))
  13216. }
  13217. }
  13218. } else {
  13219. if esep {
  13220. for k2, v2 := range v {
  13221. ee.WriteMapElemKey()
  13222. ee.EncodeInt(int64(k2))
  13223. ee.WriteMapElemValue()
  13224. ee.EncodeUint(uint64(v2))
  13225. }
  13226. } else {
  13227. for k2, v2 := range v {
  13228. ee.EncodeInt(int64(k2))
  13229. ee.EncodeUint(uint64(v2))
  13230. }
  13231. }
  13232. }
  13233. ee.WriteMapEnd()
  13234. }
  13235. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  13236. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  13237. }
  13238. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  13239. if v == nil {
  13240. e.e.EncodeNil()
  13241. return
  13242. }
  13243. ee, esep := e.e, e.hh.hasElemSeparators()
  13244. ee.WriteMapStart(len(v))
  13245. if e.h.Canonical {
  13246. v2 := make([]int64, len(v))
  13247. var i int
  13248. for k := range v {
  13249. v2[i] = int64(k)
  13250. i++
  13251. }
  13252. sort.Sort(intSlice(v2))
  13253. if esep {
  13254. for _, k2 := range v2 {
  13255. ee.WriteMapElemKey()
  13256. ee.EncodeInt(int64(int64(k2)))
  13257. ee.WriteMapElemValue()
  13258. ee.EncodeUint(uint64(v[int64(k2)]))
  13259. }
  13260. } else {
  13261. for _, k2 := range v2 {
  13262. ee.EncodeInt(int64(int64(k2)))
  13263. ee.EncodeUint(uint64(v[int64(k2)]))
  13264. }
  13265. }
  13266. } else {
  13267. if esep {
  13268. for k2, v2 := range v {
  13269. ee.WriteMapElemKey()
  13270. ee.EncodeInt(int64(k2))
  13271. ee.WriteMapElemValue()
  13272. ee.EncodeUint(uint64(v2))
  13273. }
  13274. } else {
  13275. for k2, v2 := range v {
  13276. ee.EncodeInt(int64(k2))
  13277. ee.EncodeUint(uint64(v2))
  13278. }
  13279. }
  13280. }
  13281. ee.WriteMapEnd()
  13282. }
  13283. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  13284. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  13285. }
  13286. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  13287. if v == nil {
  13288. e.e.EncodeNil()
  13289. return
  13290. }
  13291. ee, esep := e.e, e.hh.hasElemSeparators()
  13292. ee.WriteMapStart(len(v))
  13293. if e.h.Canonical {
  13294. v2 := make([]int64, len(v))
  13295. var i int
  13296. for k := range v {
  13297. v2[i] = int64(k)
  13298. i++
  13299. }
  13300. sort.Sort(intSlice(v2))
  13301. if esep {
  13302. for _, k2 := range v2 {
  13303. ee.WriteMapElemKey()
  13304. ee.EncodeInt(int64(int64(k2)))
  13305. ee.WriteMapElemValue()
  13306. ee.EncodeUint(uint64(v[int64(k2)]))
  13307. }
  13308. } else {
  13309. for _, k2 := range v2 {
  13310. ee.EncodeInt(int64(int64(k2)))
  13311. ee.EncodeUint(uint64(v[int64(k2)]))
  13312. }
  13313. }
  13314. } else {
  13315. if esep {
  13316. for k2, v2 := range v {
  13317. ee.WriteMapElemKey()
  13318. ee.EncodeInt(int64(k2))
  13319. ee.WriteMapElemValue()
  13320. ee.EncodeUint(uint64(v2))
  13321. }
  13322. } else {
  13323. for k2, v2 := range v {
  13324. ee.EncodeInt(int64(k2))
  13325. ee.EncodeUint(uint64(v2))
  13326. }
  13327. }
  13328. }
  13329. ee.WriteMapEnd()
  13330. }
  13331. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  13332. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  13333. }
  13334. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  13335. if v == nil {
  13336. e.e.EncodeNil()
  13337. return
  13338. }
  13339. ee, esep := e.e, e.hh.hasElemSeparators()
  13340. ee.WriteMapStart(len(v))
  13341. if e.h.Canonical {
  13342. v2 := make([]int64, len(v))
  13343. var i int
  13344. for k := range v {
  13345. v2[i] = int64(k)
  13346. i++
  13347. }
  13348. sort.Sort(intSlice(v2))
  13349. if esep {
  13350. for _, k2 := range v2 {
  13351. ee.WriteMapElemKey()
  13352. ee.EncodeInt(int64(int64(k2)))
  13353. ee.WriteMapElemValue()
  13354. ee.EncodeUint(uint64(v[int64(k2)]))
  13355. }
  13356. } else {
  13357. for _, k2 := range v2 {
  13358. ee.EncodeInt(int64(int64(k2)))
  13359. ee.EncodeUint(uint64(v[int64(k2)]))
  13360. }
  13361. }
  13362. } else {
  13363. if esep {
  13364. for k2, v2 := range v {
  13365. ee.WriteMapElemKey()
  13366. ee.EncodeInt(int64(k2))
  13367. ee.WriteMapElemValue()
  13368. ee.EncodeUint(uint64(v2))
  13369. }
  13370. } else {
  13371. for k2, v2 := range v {
  13372. ee.EncodeInt(int64(k2))
  13373. ee.EncodeUint(uint64(v2))
  13374. }
  13375. }
  13376. }
  13377. ee.WriteMapEnd()
  13378. }
  13379. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  13380. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  13381. }
  13382. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  13383. if v == nil {
  13384. e.e.EncodeNil()
  13385. return
  13386. }
  13387. ee, esep := e.e, e.hh.hasElemSeparators()
  13388. ee.WriteMapStart(len(v))
  13389. if e.h.Canonical {
  13390. v2 := make([]int64, len(v))
  13391. var i int
  13392. for k := range v {
  13393. v2[i] = int64(k)
  13394. i++
  13395. }
  13396. sort.Sort(intSlice(v2))
  13397. if esep {
  13398. for _, k2 := range v2 {
  13399. ee.WriteMapElemKey()
  13400. ee.EncodeInt(int64(int64(k2)))
  13401. ee.WriteMapElemValue()
  13402. ee.EncodeUint(uint64(v[int64(k2)]))
  13403. }
  13404. } else {
  13405. for _, k2 := range v2 {
  13406. ee.EncodeInt(int64(int64(k2)))
  13407. ee.EncodeUint(uint64(v[int64(k2)]))
  13408. }
  13409. }
  13410. } else {
  13411. if esep {
  13412. for k2, v2 := range v {
  13413. ee.WriteMapElemKey()
  13414. ee.EncodeInt(int64(k2))
  13415. ee.WriteMapElemValue()
  13416. ee.EncodeUint(uint64(v2))
  13417. }
  13418. } else {
  13419. for k2, v2 := range v {
  13420. ee.EncodeInt(int64(k2))
  13421. ee.EncodeUint(uint64(v2))
  13422. }
  13423. }
  13424. }
  13425. ee.WriteMapEnd()
  13426. }
  13427. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  13428. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  13429. }
  13430. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  13431. if v == nil {
  13432. e.e.EncodeNil()
  13433. return
  13434. }
  13435. ee, esep := e.e, e.hh.hasElemSeparators()
  13436. ee.WriteMapStart(len(v))
  13437. if e.h.Canonical {
  13438. v2 := make([]int64, len(v))
  13439. var i int
  13440. for k := range v {
  13441. v2[i] = int64(k)
  13442. i++
  13443. }
  13444. sort.Sort(intSlice(v2))
  13445. if esep {
  13446. for _, k2 := range v2 {
  13447. ee.WriteMapElemKey()
  13448. ee.EncodeInt(int64(int64(k2)))
  13449. ee.WriteMapElemValue()
  13450. e.encode(v[int64(k2)])
  13451. }
  13452. } else {
  13453. for _, k2 := range v2 {
  13454. ee.EncodeInt(int64(int64(k2)))
  13455. e.encode(v[int64(k2)])
  13456. }
  13457. }
  13458. } else {
  13459. if esep {
  13460. for k2, v2 := range v {
  13461. ee.WriteMapElemKey()
  13462. ee.EncodeInt(int64(k2))
  13463. ee.WriteMapElemValue()
  13464. e.encode(v2)
  13465. }
  13466. } else {
  13467. for k2, v2 := range v {
  13468. ee.EncodeInt(int64(k2))
  13469. e.encode(v2)
  13470. }
  13471. }
  13472. }
  13473. ee.WriteMapEnd()
  13474. }
  13475. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  13476. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  13477. }
  13478. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  13479. if v == nil {
  13480. e.e.EncodeNil()
  13481. return
  13482. }
  13483. ee, esep := e.e, e.hh.hasElemSeparators()
  13484. ee.WriteMapStart(len(v))
  13485. if e.h.Canonical {
  13486. v2 := make([]int64, len(v))
  13487. var i int
  13488. for k := range v {
  13489. v2[i] = int64(k)
  13490. i++
  13491. }
  13492. sort.Sort(intSlice(v2))
  13493. if esep {
  13494. for _, k2 := range v2 {
  13495. ee.WriteMapElemKey()
  13496. ee.EncodeInt(int64(int64(k2)))
  13497. ee.WriteMapElemValue()
  13498. ee.EncodeInt(int64(v[int64(k2)]))
  13499. }
  13500. } else {
  13501. for _, k2 := range v2 {
  13502. ee.EncodeInt(int64(int64(k2)))
  13503. ee.EncodeInt(int64(v[int64(k2)]))
  13504. }
  13505. }
  13506. } else {
  13507. if esep {
  13508. for k2, v2 := range v {
  13509. ee.WriteMapElemKey()
  13510. ee.EncodeInt(int64(k2))
  13511. ee.WriteMapElemValue()
  13512. ee.EncodeInt(int64(v2))
  13513. }
  13514. } else {
  13515. for k2, v2 := range v {
  13516. ee.EncodeInt(int64(k2))
  13517. ee.EncodeInt(int64(v2))
  13518. }
  13519. }
  13520. }
  13521. ee.WriteMapEnd()
  13522. }
  13523. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  13524. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  13525. }
  13526. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  13527. if v == nil {
  13528. e.e.EncodeNil()
  13529. return
  13530. }
  13531. ee, esep := e.e, e.hh.hasElemSeparators()
  13532. ee.WriteMapStart(len(v))
  13533. if e.h.Canonical {
  13534. v2 := make([]int64, len(v))
  13535. var i int
  13536. for k := range v {
  13537. v2[i] = int64(k)
  13538. i++
  13539. }
  13540. sort.Sort(intSlice(v2))
  13541. if esep {
  13542. for _, k2 := range v2 {
  13543. ee.WriteMapElemKey()
  13544. ee.EncodeInt(int64(int64(k2)))
  13545. ee.WriteMapElemValue()
  13546. ee.EncodeInt(int64(v[int64(k2)]))
  13547. }
  13548. } else {
  13549. for _, k2 := range v2 {
  13550. ee.EncodeInt(int64(int64(k2)))
  13551. ee.EncodeInt(int64(v[int64(k2)]))
  13552. }
  13553. }
  13554. } else {
  13555. if esep {
  13556. for k2, v2 := range v {
  13557. ee.WriteMapElemKey()
  13558. ee.EncodeInt(int64(k2))
  13559. ee.WriteMapElemValue()
  13560. ee.EncodeInt(int64(v2))
  13561. }
  13562. } else {
  13563. for k2, v2 := range v {
  13564. ee.EncodeInt(int64(k2))
  13565. ee.EncodeInt(int64(v2))
  13566. }
  13567. }
  13568. }
  13569. ee.WriteMapEnd()
  13570. }
  13571. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  13572. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  13573. }
  13574. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  13575. if v == nil {
  13576. e.e.EncodeNil()
  13577. return
  13578. }
  13579. ee, esep := e.e, e.hh.hasElemSeparators()
  13580. ee.WriteMapStart(len(v))
  13581. if e.h.Canonical {
  13582. v2 := make([]int64, len(v))
  13583. var i int
  13584. for k := range v {
  13585. v2[i] = int64(k)
  13586. i++
  13587. }
  13588. sort.Sort(intSlice(v2))
  13589. if esep {
  13590. for _, k2 := range v2 {
  13591. ee.WriteMapElemKey()
  13592. ee.EncodeInt(int64(int64(k2)))
  13593. ee.WriteMapElemValue()
  13594. ee.EncodeInt(int64(v[int64(k2)]))
  13595. }
  13596. } else {
  13597. for _, k2 := range v2 {
  13598. ee.EncodeInt(int64(int64(k2)))
  13599. ee.EncodeInt(int64(v[int64(k2)]))
  13600. }
  13601. }
  13602. } else {
  13603. if esep {
  13604. for k2, v2 := range v {
  13605. ee.WriteMapElemKey()
  13606. ee.EncodeInt(int64(k2))
  13607. ee.WriteMapElemValue()
  13608. ee.EncodeInt(int64(v2))
  13609. }
  13610. } else {
  13611. for k2, v2 := range v {
  13612. ee.EncodeInt(int64(k2))
  13613. ee.EncodeInt(int64(v2))
  13614. }
  13615. }
  13616. }
  13617. ee.WriteMapEnd()
  13618. }
  13619. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  13620. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  13621. }
  13622. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  13623. if v == nil {
  13624. e.e.EncodeNil()
  13625. return
  13626. }
  13627. ee, esep := e.e, e.hh.hasElemSeparators()
  13628. ee.WriteMapStart(len(v))
  13629. if e.h.Canonical {
  13630. v2 := make([]int64, len(v))
  13631. var i int
  13632. for k := range v {
  13633. v2[i] = int64(k)
  13634. i++
  13635. }
  13636. sort.Sort(intSlice(v2))
  13637. if esep {
  13638. for _, k2 := range v2 {
  13639. ee.WriteMapElemKey()
  13640. ee.EncodeInt(int64(int64(k2)))
  13641. ee.WriteMapElemValue()
  13642. ee.EncodeInt(int64(v[int64(k2)]))
  13643. }
  13644. } else {
  13645. for _, k2 := range v2 {
  13646. ee.EncodeInt(int64(int64(k2)))
  13647. ee.EncodeInt(int64(v[int64(k2)]))
  13648. }
  13649. }
  13650. } else {
  13651. if esep {
  13652. for k2, v2 := range v {
  13653. ee.WriteMapElemKey()
  13654. ee.EncodeInt(int64(k2))
  13655. ee.WriteMapElemValue()
  13656. ee.EncodeInt(int64(v2))
  13657. }
  13658. } else {
  13659. for k2, v2 := range v {
  13660. ee.EncodeInt(int64(k2))
  13661. ee.EncodeInt(int64(v2))
  13662. }
  13663. }
  13664. }
  13665. ee.WriteMapEnd()
  13666. }
  13667. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  13668. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  13669. }
  13670. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  13671. if v == nil {
  13672. e.e.EncodeNil()
  13673. return
  13674. }
  13675. ee, esep := e.e, e.hh.hasElemSeparators()
  13676. ee.WriteMapStart(len(v))
  13677. if e.h.Canonical {
  13678. v2 := make([]int64, len(v))
  13679. var i int
  13680. for k := range v {
  13681. v2[i] = int64(k)
  13682. i++
  13683. }
  13684. sort.Sort(intSlice(v2))
  13685. if esep {
  13686. for _, k2 := range v2 {
  13687. ee.WriteMapElemKey()
  13688. ee.EncodeInt(int64(int64(k2)))
  13689. ee.WriteMapElemValue()
  13690. ee.EncodeInt(int64(v[int64(k2)]))
  13691. }
  13692. } else {
  13693. for _, k2 := range v2 {
  13694. ee.EncodeInt(int64(int64(k2)))
  13695. ee.EncodeInt(int64(v[int64(k2)]))
  13696. }
  13697. }
  13698. } else {
  13699. if esep {
  13700. for k2, v2 := range v {
  13701. ee.WriteMapElemKey()
  13702. ee.EncodeInt(int64(k2))
  13703. ee.WriteMapElemValue()
  13704. ee.EncodeInt(int64(v2))
  13705. }
  13706. } else {
  13707. for k2, v2 := range v {
  13708. ee.EncodeInt(int64(k2))
  13709. ee.EncodeInt(int64(v2))
  13710. }
  13711. }
  13712. }
  13713. ee.WriteMapEnd()
  13714. }
  13715. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  13716. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  13717. }
  13718. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  13719. if v == nil {
  13720. e.e.EncodeNil()
  13721. return
  13722. }
  13723. ee, esep := e.e, e.hh.hasElemSeparators()
  13724. ee.WriteMapStart(len(v))
  13725. if e.h.Canonical {
  13726. v2 := make([]int64, len(v))
  13727. var i int
  13728. for k := range v {
  13729. v2[i] = int64(k)
  13730. i++
  13731. }
  13732. sort.Sort(intSlice(v2))
  13733. if esep {
  13734. for _, k2 := range v2 {
  13735. ee.WriteMapElemKey()
  13736. ee.EncodeInt(int64(int64(k2)))
  13737. ee.WriteMapElemValue()
  13738. ee.EncodeFloat32(v[int64(k2)])
  13739. }
  13740. } else {
  13741. for _, k2 := range v2 {
  13742. ee.EncodeInt(int64(int64(k2)))
  13743. ee.EncodeFloat32(v[int64(k2)])
  13744. }
  13745. }
  13746. } else {
  13747. if esep {
  13748. for k2, v2 := range v {
  13749. ee.WriteMapElemKey()
  13750. ee.EncodeInt(int64(k2))
  13751. ee.WriteMapElemValue()
  13752. ee.EncodeFloat32(v2)
  13753. }
  13754. } else {
  13755. for k2, v2 := range v {
  13756. ee.EncodeInt(int64(k2))
  13757. ee.EncodeFloat32(v2)
  13758. }
  13759. }
  13760. }
  13761. ee.WriteMapEnd()
  13762. }
  13763. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  13764. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  13765. }
  13766. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  13767. if v == nil {
  13768. e.e.EncodeNil()
  13769. return
  13770. }
  13771. ee, esep := e.e, e.hh.hasElemSeparators()
  13772. ee.WriteMapStart(len(v))
  13773. if e.h.Canonical {
  13774. v2 := make([]int64, len(v))
  13775. var i int
  13776. for k := range v {
  13777. v2[i] = int64(k)
  13778. i++
  13779. }
  13780. sort.Sort(intSlice(v2))
  13781. if esep {
  13782. for _, k2 := range v2 {
  13783. ee.WriteMapElemKey()
  13784. ee.EncodeInt(int64(int64(k2)))
  13785. ee.WriteMapElemValue()
  13786. ee.EncodeFloat64(v[int64(k2)])
  13787. }
  13788. } else {
  13789. for _, k2 := range v2 {
  13790. ee.EncodeInt(int64(int64(k2)))
  13791. ee.EncodeFloat64(v[int64(k2)])
  13792. }
  13793. }
  13794. } else {
  13795. if esep {
  13796. for k2, v2 := range v {
  13797. ee.WriteMapElemKey()
  13798. ee.EncodeInt(int64(k2))
  13799. ee.WriteMapElemValue()
  13800. ee.EncodeFloat64(v2)
  13801. }
  13802. } else {
  13803. for k2, v2 := range v {
  13804. ee.EncodeInt(int64(k2))
  13805. ee.EncodeFloat64(v2)
  13806. }
  13807. }
  13808. }
  13809. ee.WriteMapEnd()
  13810. }
  13811. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  13812. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  13813. }
  13814. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  13815. if v == nil {
  13816. e.e.EncodeNil()
  13817. return
  13818. }
  13819. ee, esep := e.e, e.hh.hasElemSeparators()
  13820. ee.WriteMapStart(len(v))
  13821. if e.h.Canonical {
  13822. v2 := make([]int64, len(v))
  13823. var i int
  13824. for k := range v {
  13825. v2[i] = int64(k)
  13826. i++
  13827. }
  13828. sort.Sort(intSlice(v2))
  13829. if esep {
  13830. for _, k2 := range v2 {
  13831. ee.WriteMapElemKey()
  13832. ee.EncodeInt(int64(int64(k2)))
  13833. ee.WriteMapElemValue()
  13834. ee.EncodeBool(v[int64(k2)])
  13835. }
  13836. } else {
  13837. for _, k2 := range v2 {
  13838. ee.EncodeInt(int64(int64(k2)))
  13839. ee.EncodeBool(v[int64(k2)])
  13840. }
  13841. }
  13842. } else {
  13843. if esep {
  13844. for k2, v2 := range v {
  13845. ee.WriteMapElemKey()
  13846. ee.EncodeInt(int64(k2))
  13847. ee.WriteMapElemValue()
  13848. ee.EncodeBool(v2)
  13849. }
  13850. } else {
  13851. for k2, v2 := range v {
  13852. ee.EncodeInt(int64(k2))
  13853. ee.EncodeBool(v2)
  13854. }
  13855. }
  13856. }
  13857. ee.WriteMapEnd()
  13858. }
  13859. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  13860. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  13861. }
  13862. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  13863. if v == nil {
  13864. e.e.EncodeNil()
  13865. return
  13866. }
  13867. ee, esep := e.e, e.hh.hasElemSeparators()
  13868. ee.WriteMapStart(len(v))
  13869. if e.h.Canonical {
  13870. v2 := make([]bool, len(v))
  13871. var i int
  13872. for k := range v {
  13873. v2[i] = bool(k)
  13874. i++
  13875. }
  13876. sort.Sort(boolSlice(v2))
  13877. if esep {
  13878. for _, k2 := range v2 {
  13879. ee.WriteMapElemKey()
  13880. ee.EncodeBool(bool(k2))
  13881. ee.WriteMapElemValue()
  13882. e.encode(v[bool(k2)])
  13883. }
  13884. } else {
  13885. for _, k2 := range v2 {
  13886. ee.EncodeBool(bool(k2))
  13887. e.encode(v[bool(k2)])
  13888. }
  13889. }
  13890. } else {
  13891. if esep {
  13892. for k2, v2 := range v {
  13893. ee.WriteMapElemKey()
  13894. ee.EncodeBool(k2)
  13895. ee.WriteMapElemValue()
  13896. e.encode(v2)
  13897. }
  13898. } else {
  13899. for k2, v2 := range v {
  13900. ee.EncodeBool(k2)
  13901. e.encode(v2)
  13902. }
  13903. }
  13904. }
  13905. ee.WriteMapEnd()
  13906. }
  13907. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  13908. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  13909. }
  13910. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  13911. if v == nil {
  13912. e.e.EncodeNil()
  13913. return
  13914. }
  13915. ee, esep := e.e, e.hh.hasElemSeparators()
  13916. ee.WriteMapStart(len(v))
  13917. if e.h.Canonical {
  13918. v2 := make([]bool, len(v))
  13919. var i int
  13920. for k := range v {
  13921. v2[i] = bool(k)
  13922. i++
  13923. }
  13924. sort.Sort(boolSlice(v2))
  13925. if esep {
  13926. for _, k2 := range v2 {
  13927. ee.WriteMapElemKey()
  13928. ee.EncodeBool(bool(k2))
  13929. ee.WriteMapElemValue()
  13930. ee.EncodeStringEnc(cUTF8, v[bool(k2)])
  13931. }
  13932. } else {
  13933. for _, k2 := range v2 {
  13934. ee.EncodeBool(bool(k2))
  13935. ee.EncodeStringEnc(cUTF8, v[bool(k2)])
  13936. }
  13937. }
  13938. } else {
  13939. if esep {
  13940. for k2, v2 := range v {
  13941. ee.WriteMapElemKey()
  13942. ee.EncodeBool(k2)
  13943. ee.WriteMapElemValue()
  13944. ee.EncodeStringEnc(cUTF8, v2)
  13945. }
  13946. } else {
  13947. for k2, v2 := range v {
  13948. ee.EncodeBool(k2)
  13949. ee.EncodeStringEnc(cUTF8, v2)
  13950. }
  13951. }
  13952. }
  13953. ee.WriteMapEnd()
  13954. }
  13955. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  13956. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  13957. }
  13958. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  13959. if v == nil {
  13960. e.e.EncodeNil()
  13961. return
  13962. }
  13963. ee, esep := e.e, e.hh.hasElemSeparators()
  13964. ee.WriteMapStart(len(v))
  13965. if e.h.Canonical {
  13966. v2 := make([]bool, len(v))
  13967. var i int
  13968. for k := range v {
  13969. v2[i] = bool(k)
  13970. i++
  13971. }
  13972. sort.Sort(boolSlice(v2))
  13973. if esep {
  13974. for _, k2 := range v2 {
  13975. ee.WriteMapElemKey()
  13976. ee.EncodeBool(bool(k2))
  13977. ee.WriteMapElemValue()
  13978. ee.EncodeUint(uint64(v[bool(k2)]))
  13979. }
  13980. } else {
  13981. for _, k2 := range v2 {
  13982. ee.EncodeBool(bool(k2))
  13983. ee.EncodeUint(uint64(v[bool(k2)]))
  13984. }
  13985. }
  13986. } else {
  13987. if esep {
  13988. for k2, v2 := range v {
  13989. ee.WriteMapElemKey()
  13990. ee.EncodeBool(k2)
  13991. ee.WriteMapElemValue()
  13992. ee.EncodeUint(uint64(v2))
  13993. }
  13994. } else {
  13995. for k2, v2 := range v {
  13996. ee.EncodeBool(k2)
  13997. ee.EncodeUint(uint64(v2))
  13998. }
  13999. }
  14000. }
  14001. ee.WriteMapEnd()
  14002. }
  14003. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  14004. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  14005. }
  14006. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  14007. if v == nil {
  14008. e.e.EncodeNil()
  14009. return
  14010. }
  14011. ee, esep := e.e, e.hh.hasElemSeparators()
  14012. ee.WriteMapStart(len(v))
  14013. if e.h.Canonical {
  14014. v2 := make([]bool, len(v))
  14015. var i int
  14016. for k := range v {
  14017. v2[i] = bool(k)
  14018. i++
  14019. }
  14020. sort.Sort(boolSlice(v2))
  14021. if esep {
  14022. for _, k2 := range v2 {
  14023. ee.WriteMapElemKey()
  14024. ee.EncodeBool(bool(k2))
  14025. ee.WriteMapElemValue()
  14026. ee.EncodeUint(uint64(v[bool(k2)]))
  14027. }
  14028. } else {
  14029. for _, k2 := range v2 {
  14030. ee.EncodeBool(bool(k2))
  14031. ee.EncodeUint(uint64(v[bool(k2)]))
  14032. }
  14033. }
  14034. } else {
  14035. if esep {
  14036. for k2, v2 := range v {
  14037. ee.WriteMapElemKey()
  14038. ee.EncodeBool(k2)
  14039. ee.WriteMapElemValue()
  14040. ee.EncodeUint(uint64(v2))
  14041. }
  14042. } else {
  14043. for k2, v2 := range v {
  14044. ee.EncodeBool(k2)
  14045. ee.EncodeUint(uint64(v2))
  14046. }
  14047. }
  14048. }
  14049. ee.WriteMapEnd()
  14050. }
  14051. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  14052. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  14053. }
  14054. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  14055. if v == nil {
  14056. e.e.EncodeNil()
  14057. return
  14058. }
  14059. ee, esep := e.e, e.hh.hasElemSeparators()
  14060. ee.WriteMapStart(len(v))
  14061. if e.h.Canonical {
  14062. v2 := make([]bool, len(v))
  14063. var i int
  14064. for k := range v {
  14065. v2[i] = bool(k)
  14066. i++
  14067. }
  14068. sort.Sort(boolSlice(v2))
  14069. if esep {
  14070. for _, k2 := range v2 {
  14071. ee.WriteMapElemKey()
  14072. ee.EncodeBool(bool(k2))
  14073. ee.WriteMapElemValue()
  14074. ee.EncodeUint(uint64(v[bool(k2)]))
  14075. }
  14076. } else {
  14077. for _, k2 := range v2 {
  14078. ee.EncodeBool(bool(k2))
  14079. ee.EncodeUint(uint64(v[bool(k2)]))
  14080. }
  14081. }
  14082. } else {
  14083. if esep {
  14084. for k2, v2 := range v {
  14085. ee.WriteMapElemKey()
  14086. ee.EncodeBool(k2)
  14087. ee.WriteMapElemValue()
  14088. ee.EncodeUint(uint64(v2))
  14089. }
  14090. } else {
  14091. for k2, v2 := range v {
  14092. ee.EncodeBool(k2)
  14093. ee.EncodeUint(uint64(v2))
  14094. }
  14095. }
  14096. }
  14097. ee.WriteMapEnd()
  14098. }
  14099. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  14100. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  14101. }
  14102. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  14103. if v == nil {
  14104. e.e.EncodeNil()
  14105. return
  14106. }
  14107. ee, esep := e.e, e.hh.hasElemSeparators()
  14108. ee.WriteMapStart(len(v))
  14109. if e.h.Canonical {
  14110. v2 := make([]bool, len(v))
  14111. var i int
  14112. for k := range v {
  14113. v2[i] = bool(k)
  14114. i++
  14115. }
  14116. sort.Sort(boolSlice(v2))
  14117. if esep {
  14118. for _, k2 := range v2 {
  14119. ee.WriteMapElemKey()
  14120. ee.EncodeBool(bool(k2))
  14121. ee.WriteMapElemValue()
  14122. ee.EncodeUint(uint64(v[bool(k2)]))
  14123. }
  14124. } else {
  14125. for _, k2 := range v2 {
  14126. ee.EncodeBool(bool(k2))
  14127. ee.EncodeUint(uint64(v[bool(k2)]))
  14128. }
  14129. }
  14130. } else {
  14131. if esep {
  14132. for k2, v2 := range v {
  14133. ee.WriteMapElemKey()
  14134. ee.EncodeBool(k2)
  14135. ee.WriteMapElemValue()
  14136. ee.EncodeUint(uint64(v2))
  14137. }
  14138. } else {
  14139. for k2, v2 := range v {
  14140. ee.EncodeBool(k2)
  14141. ee.EncodeUint(uint64(v2))
  14142. }
  14143. }
  14144. }
  14145. ee.WriteMapEnd()
  14146. }
  14147. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  14148. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  14149. }
  14150. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  14151. if v == nil {
  14152. e.e.EncodeNil()
  14153. return
  14154. }
  14155. ee, esep := e.e, e.hh.hasElemSeparators()
  14156. ee.WriteMapStart(len(v))
  14157. if e.h.Canonical {
  14158. v2 := make([]bool, len(v))
  14159. var i int
  14160. for k := range v {
  14161. v2[i] = bool(k)
  14162. i++
  14163. }
  14164. sort.Sort(boolSlice(v2))
  14165. if esep {
  14166. for _, k2 := range v2 {
  14167. ee.WriteMapElemKey()
  14168. ee.EncodeBool(bool(k2))
  14169. ee.WriteMapElemValue()
  14170. ee.EncodeUint(uint64(v[bool(k2)]))
  14171. }
  14172. } else {
  14173. for _, k2 := range v2 {
  14174. ee.EncodeBool(bool(k2))
  14175. ee.EncodeUint(uint64(v[bool(k2)]))
  14176. }
  14177. }
  14178. } else {
  14179. if esep {
  14180. for k2, v2 := range v {
  14181. ee.WriteMapElemKey()
  14182. ee.EncodeBool(k2)
  14183. ee.WriteMapElemValue()
  14184. ee.EncodeUint(uint64(v2))
  14185. }
  14186. } else {
  14187. for k2, v2 := range v {
  14188. ee.EncodeBool(k2)
  14189. ee.EncodeUint(uint64(v2))
  14190. }
  14191. }
  14192. }
  14193. ee.WriteMapEnd()
  14194. }
  14195. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  14196. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  14197. }
  14198. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  14199. if v == nil {
  14200. e.e.EncodeNil()
  14201. return
  14202. }
  14203. ee, esep := e.e, e.hh.hasElemSeparators()
  14204. ee.WriteMapStart(len(v))
  14205. if e.h.Canonical {
  14206. v2 := make([]bool, len(v))
  14207. var i int
  14208. for k := range v {
  14209. v2[i] = bool(k)
  14210. i++
  14211. }
  14212. sort.Sort(boolSlice(v2))
  14213. if esep {
  14214. for _, k2 := range v2 {
  14215. ee.WriteMapElemKey()
  14216. ee.EncodeBool(bool(k2))
  14217. ee.WriteMapElemValue()
  14218. e.encode(v[bool(k2)])
  14219. }
  14220. } else {
  14221. for _, k2 := range v2 {
  14222. ee.EncodeBool(bool(k2))
  14223. e.encode(v[bool(k2)])
  14224. }
  14225. }
  14226. } else {
  14227. if esep {
  14228. for k2, v2 := range v {
  14229. ee.WriteMapElemKey()
  14230. ee.EncodeBool(k2)
  14231. ee.WriteMapElemValue()
  14232. e.encode(v2)
  14233. }
  14234. } else {
  14235. for k2, v2 := range v {
  14236. ee.EncodeBool(k2)
  14237. e.encode(v2)
  14238. }
  14239. }
  14240. }
  14241. ee.WriteMapEnd()
  14242. }
  14243. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  14244. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  14245. }
  14246. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  14247. if v == nil {
  14248. e.e.EncodeNil()
  14249. return
  14250. }
  14251. ee, esep := e.e, e.hh.hasElemSeparators()
  14252. ee.WriteMapStart(len(v))
  14253. if e.h.Canonical {
  14254. v2 := make([]bool, len(v))
  14255. var i int
  14256. for k := range v {
  14257. v2[i] = bool(k)
  14258. i++
  14259. }
  14260. sort.Sort(boolSlice(v2))
  14261. if esep {
  14262. for _, k2 := range v2 {
  14263. ee.WriteMapElemKey()
  14264. ee.EncodeBool(bool(k2))
  14265. ee.WriteMapElemValue()
  14266. ee.EncodeInt(int64(v[bool(k2)]))
  14267. }
  14268. } else {
  14269. for _, k2 := range v2 {
  14270. ee.EncodeBool(bool(k2))
  14271. ee.EncodeInt(int64(v[bool(k2)]))
  14272. }
  14273. }
  14274. } else {
  14275. if esep {
  14276. for k2, v2 := range v {
  14277. ee.WriteMapElemKey()
  14278. ee.EncodeBool(k2)
  14279. ee.WriteMapElemValue()
  14280. ee.EncodeInt(int64(v2))
  14281. }
  14282. } else {
  14283. for k2, v2 := range v {
  14284. ee.EncodeBool(k2)
  14285. ee.EncodeInt(int64(v2))
  14286. }
  14287. }
  14288. }
  14289. ee.WriteMapEnd()
  14290. }
  14291. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  14292. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  14293. }
  14294. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  14295. if v == nil {
  14296. e.e.EncodeNil()
  14297. return
  14298. }
  14299. ee, esep := e.e, e.hh.hasElemSeparators()
  14300. ee.WriteMapStart(len(v))
  14301. if e.h.Canonical {
  14302. v2 := make([]bool, len(v))
  14303. var i int
  14304. for k := range v {
  14305. v2[i] = bool(k)
  14306. i++
  14307. }
  14308. sort.Sort(boolSlice(v2))
  14309. if esep {
  14310. for _, k2 := range v2 {
  14311. ee.WriteMapElemKey()
  14312. ee.EncodeBool(bool(k2))
  14313. ee.WriteMapElemValue()
  14314. ee.EncodeInt(int64(v[bool(k2)]))
  14315. }
  14316. } else {
  14317. for _, k2 := range v2 {
  14318. ee.EncodeBool(bool(k2))
  14319. ee.EncodeInt(int64(v[bool(k2)]))
  14320. }
  14321. }
  14322. } else {
  14323. if esep {
  14324. for k2, v2 := range v {
  14325. ee.WriteMapElemKey()
  14326. ee.EncodeBool(k2)
  14327. ee.WriteMapElemValue()
  14328. ee.EncodeInt(int64(v2))
  14329. }
  14330. } else {
  14331. for k2, v2 := range v {
  14332. ee.EncodeBool(k2)
  14333. ee.EncodeInt(int64(v2))
  14334. }
  14335. }
  14336. }
  14337. ee.WriteMapEnd()
  14338. }
  14339. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  14340. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  14341. }
  14342. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  14343. if v == nil {
  14344. e.e.EncodeNil()
  14345. return
  14346. }
  14347. ee, esep := e.e, e.hh.hasElemSeparators()
  14348. ee.WriteMapStart(len(v))
  14349. if e.h.Canonical {
  14350. v2 := make([]bool, len(v))
  14351. var i int
  14352. for k := range v {
  14353. v2[i] = bool(k)
  14354. i++
  14355. }
  14356. sort.Sort(boolSlice(v2))
  14357. if esep {
  14358. for _, k2 := range v2 {
  14359. ee.WriteMapElemKey()
  14360. ee.EncodeBool(bool(k2))
  14361. ee.WriteMapElemValue()
  14362. ee.EncodeInt(int64(v[bool(k2)]))
  14363. }
  14364. } else {
  14365. for _, k2 := range v2 {
  14366. ee.EncodeBool(bool(k2))
  14367. ee.EncodeInt(int64(v[bool(k2)]))
  14368. }
  14369. }
  14370. } else {
  14371. if esep {
  14372. for k2, v2 := range v {
  14373. ee.WriteMapElemKey()
  14374. ee.EncodeBool(k2)
  14375. ee.WriteMapElemValue()
  14376. ee.EncodeInt(int64(v2))
  14377. }
  14378. } else {
  14379. for k2, v2 := range v {
  14380. ee.EncodeBool(k2)
  14381. ee.EncodeInt(int64(v2))
  14382. }
  14383. }
  14384. }
  14385. ee.WriteMapEnd()
  14386. }
  14387. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  14388. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  14389. }
  14390. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  14391. if v == nil {
  14392. e.e.EncodeNil()
  14393. return
  14394. }
  14395. ee, esep := e.e, e.hh.hasElemSeparators()
  14396. ee.WriteMapStart(len(v))
  14397. if e.h.Canonical {
  14398. v2 := make([]bool, len(v))
  14399. var i int
  14400. for k := range v {
  14401. v2[i] = bool(k)
  14402. i++
  14403. }
  14404. sort.Sort(boolSlice(v2))
  14405. if esep {
  14406. for _, k2 := range v2 {
  14407. ee.WriteMapElemKey()
  14408. ee.EncodeBool(bool(k2))
  14409. ee.WriteMapElemValue()
  14410. ee.EncodeInt(int64(v[bool(k2)]))
  14411. }
  14412. } else {
  14413. for _, k2 := range v2 {
  14414. ee.EncodeBool(bool(k2))
  14415. ee.EncodeInt(int64(v[bool(k2)]))
  14416. }
  14417. }
  14418. } else {
  14419. if esep {
  14420. for k2, v2 := range v {
  14421. ee.WriteMapElemKey()
  14422. ee.EncodeBool(k2)
  14423. ee.WriteMapElemValue()
  14424. ee.EncodeInt(int64(v2))
  14425. }
  14426. } else {
  14427. for k2, v2 := range v {
  14428. ee.EncodeBool(k2)
  14429. ee.EncodeInt(int64(v2))
  14430. }
  14431. }
  14432. }
  14433. ee.WriteMapEnd()
  14434. }
  14435. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  14436. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  14437. }
  14438. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  14439. if v == nil {
  14440. e.e.EncodeNil()
  14441. return
  14442. }
  14443. ee, esep := e.e, e.hh.hasElemSeparators()
  14444. ee.WriteMapStart(len(v))
  14445. if e.h.Canonical {
  14446. v2 := make([]bool, len(v))
  14447. var i int
  14448. for k := range v {
  14449. v2[i] = bool(k)
  14450. i++
  14451. }
  14452. sort.Sort(boolSlice(v2))
  14453. if esep {
  14454. for _, k2 := range v2 {
  14455. ee.WriteMapElemKey()
  14456. ee.EncodeBool(bool(k2))
  14457. ee.WriteMapElemValue()
  14458. ee.EncodeInt(int64(v[bool(k2)]))
  14459. }
  14460. } else {
  14461. for _, k2 := range v2 {
  14462. ee.EncodeBool(bool(k2))
  14463. ee.EncodeInt(int64(v[bool(k2)]))
  14464. }
  14465. }
  14466. } else {
  14467. if esep {
  14468. for k2, v2 := range v {
  14469. ee.WriteMapElemKey()
  14470. ee.EncodeBool(k2)
  14471. ee.WriteMapElemValue()
  14472. ee.EncodeInt(int64(v2))
  14473. }
  14474. } else {
  14475. for k2, v2 := range v {
  14476. ee.EncodeBool(k2)
  14477. ee.EncodeInt(int64(v2))
  14478. }
  14479. }
  14480. }
  14481. ee.WriteMapEnd()
  14482. }
  14483. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  14484. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  14485. }
  14486. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  14487. if v == nil {
  14488. e.e.EncodeNil()
  14489. return
  14490. }
  14491. ee, esep := e.e, e.hh.hasElemSeparators()
  14492. ee.WriteMapStart(len(v))
  14493. if e.h.Canonical {
  14494. v2 := make([]bool, len(v))
  14495. var i int
  14496. for k := range v {
  14497. v2[i] = bool(k)
  14498. i++
  14499. }
  14500. sort.Sort(boolSlice(v2))
  14501. if esep {
  14502. for _, k2 := range v2 {
  14503. ee.WriteMapElemKey()
  14504. ee.EncodeBool(bool(k2))
  14505. ee.WriteMapElemValue()
  14506. ee.EncodeFloat32(v[bool(k2)])
  14507. }
  14508. } else {
  14509. for _, k2 := range v2 {
  14510. ee.EncodeBool(bool(k2))
  14511. ee.EncodeFloat32(v[bool(k2)])
  14512. }
  14513. }
  14514. } else {
  14515. if esep {
  14516. for k2, v2 := range v {
  14517. ee.WriteMapElemKey()
  14518. ee.EncodeBool(k2)
  14519. ee.WriteMapElemValue()
  14520. ee.EncodeFloat32(v2)
  14521. }
  14522. } else {
  14523. for k2, v2 := range v {
  14524. ee.EncodeBool(k2)
  14525. ee.EncodeFloat32(v2)
  14526. }
  14527. }
  14528. }
  14529. ee.WriteMapEnd()
  14530. }
  14531. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  14532. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  14533. }
  14534. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  14535. if v == nil {
  14536. e.e.EncodeNil()
  14537. return
  14538. }
  14539. ee, esep := e.e, e.hh.hasElemSeparators()
  14540. ee.WriteMapStart(len(v))
  14541. if e.h.Canonical {
  14542. v2 := make([]bool, len(v))
  14543. var i int
  14544. for k := range v {
  14545. v2[i] = bool(k)
  14546. i++
  14547. }
  14548. sort.Sort(boolSlice(v2))
  14549. if esep {
  14550. for _, k2 := range v2 {
  14551. ee.WriteMapElemKey()
  14552. ee.EncodeBool(bool(k2))
  14553. ee.WriteMapElemValue()
  14554. ee.EncodeFloat64(v[bool(k2)])
  14555. }
  14556. } else {
  14557. for _, k2 := range v2 {
  14558. ee.EncodeBool(bool(k2))
  14559. ee.EncodeFloat64(v[bool(k2)])
  14560. }
  14561. }
  14562. } else {
  14563. if esep {
  14564. for k2, v2 := range v {
  14565. ee.WriteMapElemKey()
  14566. ee.EncodeBool(k2)
  14567. ee.WriteMapElemValue()
  14568. ee.EncodeFloat64(v2)
  14569. }
  14570. } else {
  14571. for k2, v2 := range v {
  14572. ee.EncodeBool(k2)
  14573. ee.EncodeFloat64(v2)
  14574. }
  14575. }
  14576. }
  14577. ee.WriteMapEnd()
  14578. }
  14579. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  14580. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  14581. }
  14582. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  14583. if v == nil {
  14584. e.e.EncodeNil()
  14585. return
  14586. }
  14587. ee, esep := e.e, e.hh.hasElemSeparators()
  14588. ee.WriteMapStart(len(v))
  14589. if e.h.Canonical {
  14590. v2 := make([]bool, len(v))
  14591. var i int
  14592. for k := range v {
  14593. v2[i] = bool(k)
  14594. i++
  14595. }
  14596. sort.Sort(boolSlice(v2))
  14597. if esep {
  14598. for _, k2 := range v2 {
  14599. ee.WriteMapElemKey()
  14600. ee.EncodeBool(bool(k2))
  14601. ee.WriteMapElemValue()
  14602. ee.EncodeBool(v[bool(k2)])
  14603. }
  14604. } else {
  14605. for _, k2 := range v2 {
  14606. ee.EncodeBool(bool(k2))
  14607. ee.EncodeBool(v[bool(k2)])
  14608. }
  14609. }
  14610. } else {
  14611. if esep {
  14612. for k2, v2 := range v {
  14613. ee.WriteMapElemKey()
  14614. ee.EncodeBool(k2)
  14615. ee.WriteMapElemValue()
  14616. ee.EncodeBool(v2)
  14617. }
  14618. } else {
  14619. for k2, v2 := range v {
  14620. ee.EncodeBool(k2)
  14621. ee.EncodeBool(v2)
  14622. }
  14623. }
  14624. }
  14625. ee.WriteMapEnd()
  14626. }
  14627. // -- decode
  14628. // -- -- fast path type switch
  14629. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  14630. var changed bool
  14631. switch v := iv.(type) {
  14632. case []interface{}:
  14633. var v2 []interface{}
  14634. v2, changed = fastpathTV.DecSliceIntfV(v, false, d)
  14635. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14636. copy(v, v2)
  14637. }
  14638. case *[]interface{}:
  14639. var v2 []interface{}
  14640. v2, changed = fastpathTV.DecSliceIntfV(*v, true, d)
  14641. if changed {
  14642. *v = v2
  14643. }
  14644. case []string:
  14645. var v2 []string
  14646. v2, changed = fastpathTV.DecSliceStringV(v, false, d)
  14647. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14648. copy(v, v2)
  14649. }
  14650. case *[]string:
  14651. var v2 []string
  14652. v2, changed = fastpathTV.DecSliceStringV(*v, true, d)
  14653. if changed {
  14654. *v = v2
  14655. }
  14656. case []float32:
  14657. var v2 []float32
  14658. v2, changed = fastpathTV.DecSliceFloat32V(v, false, d)
  14659. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14660. copy(v, v2)
  14661. }
  14662. case *[]float32:
  14663. var v2 []float32
  14664. v2, changed = fastpathTV.DecSliceFloat32V(*v, true, d)
  14665. if changed {
  14666. *v = v2
  14667. }
  14668. case []float64:
  14669. var v2 []float64
  14670. v2, changed = fastpathTV.DecSliceFloat64V(v, false, d)
  14671. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14672. copy(v, v2)
  14673. }
  14674. case *[]float64:
  14675. var v2 []float64
  14676. v2, changed = fastpathTV.DecSliceFloat64V(*v, true, d)
  14677. if changed {
  14678. *v = v2
  14679. }
  14680. case []uint:
  14681. var v2 []uint
  14682. v2, changed = fastpathTV.DecSliceUintV(v, false, d)
  14683. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14684. copy(v, v2)
  14685. }
  14686. case *[]uint:
  14687. var v2 []uint
  14688. v2, changed = fastpathTV.DecSliceUintV(*v, true, d)
  14689. if changed {
  14690. *v = v2
  14691. }
  14692. case []uint16:
  14693. var v2 []uint16
  14694. v2, changed = fastpathTV.DecSliceUint16V(v, false, d)
  14695. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14696. copy(v, v2)
  14697. }
  14698. case *[]uint16:
  14699. var v2 []uint16
  14700. v2, changed = fastpathTV.DecSliceUint16V(*v, true, d)
  14701. if changed {
  14702. *v = v2
  14703. }
  14704. case []uint32:
  14705. var v2 []uint32
  14706. v2, changed = fastpathTV.DecSliceUint32V(v, false, d)
  14707. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14708. copy(v, v2)
  14709. }
  14710. case *[]uint32:
  14711. var v2 []uint32
  14712. v2, changed = fastpathTV.DecSliceUint32V(*v, true, d)
  14713. if changed {
  14714. *v = v2
  14715. }
  14716. case []uint64:
  14717. var v2 []uint64
  14718. v2, changed = fastpathTV.DecSliceUint64V(v, false, d)
  14719. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14720. copy(v, v2)
  14721. }
  14722. case *[]uint64:
  14723. var v2 []uint64
  14724. v2, changed = fastpathTV.DecSliceUint64V(*v, true, d)
  14725. if changed {
  14726. *v = v2
  14727. }
  14728. case []uintptr:
  14729. var v2 []uintptr
  14730. v2, changed = fastpathTV.DecSliceUintptrV(v, false, d)
  14731. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14732. copy(v, v2)
  14733. }
  14734. case *[]uintptr:
  14735. var v2 []uintptr
  14736. v2, changed = fastpathTV.DecSliceUintptrV(*v, true, d)
  14737. if changed {
  14738. *v = v2
  14739. }
  14740. case []int:
  14741. var v2 []int
  14742. v2, changed = fastpathTV.DecSliceIntV(v, false, d)
  14743. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14744. copy(v, v2)
  14745. }
  14746. case *[]int:
  14747. var v2 []int
  14748. v2, changed = fastpathTV.DecSliceIntV(*v, true, d)
  14749. if changed {
  14750. *v = v2
  14751. }
  14752. case []int8:
  14753. var v2 []int8
  14754. v2, changed = fastpathTV.DecSliceInt8V(v, false, d)
  14755. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14756. copy(v, v2)
  14757. }
  14758. case *[]int8:
  14759. var v2 []int8
  14760. v2, changed = fastpathTV.DecSliceInt8V(*v, true, d)
  14761. if changed {
  14762. *v = v2
  14763. }
  14764. case []int16:
  14765. var v2 []int16
  14766. v2, changed = fastpathTV.DecSliceInt16V(v, false, d)
  14767. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14768. copy(v, v2)
  14769. }
  14770. case *[]int16:
  14771. var v2 []int16
  14772. v2, changed = fastpathTV.DecSliceInt16V(*v, true, d)
  14773. if changed {
  14774. *v = v2
  14775. }
  14776. case []int32:
  14777. var v2 []int32
  14778. v2, changed = fastpathTV.DecSliceInt32V(v, false, d)
  14779. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14780. copy(v, v2)
  14781. }
  14782. case *[]int32:
  14783. var v2 []int32
  14784. v2, changed = fastpathTV.DecSliceInt32V(*v, true, d)
  14785. if changed {
  14786. *v = v2
  14787. }
  14788. case []int64:
  14789. var v2 []int64
  14790. v2, changed = fastpathTV.DecSliceInt64V(v, false, d)
  14791. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14792. copy(v, v2)
  14793. }
  14794. case *[]int64:
  14795. var v2 []int64
  14796. v2, changed = fastpathTV.DecSliceInt64V(*v, true, d)
  14797. if changed {
  14798. *v = v2
  14799. }
  14800. case []bool:
  14801. var v2 []bool
  14802. v2, changed = fastpathTV.DecSliceBoolV(v, false, d)
  14803. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14804. copy(v, v2)
  14805. }
  14806. case *[]bool:
  14807. var v2 []bool
  14808. v2, changed = fastpathTV.DecSliceBoolV(*v, true, d)
  14809. if changed {
  14810. *v = v2
  14811. }
  14812. case map[interface{}]interface{}:
  14813. fastpathTV.DecMapIntfIntfV(v, false, d)
  14814. case *map[interface{}]interface{}:
  14815. var v2 map[interface{}]interface{}
  14816. v2, changed = fastpathTV.DecMapIntfIntfV(*v, true, d)
  14817. if changed {
  14818. *v = v2
  14819. }
  14820. case map[interface{}]string:
  14821. fastpathTV.DecMapIntfStringV(v, false, d)
  14822. case *map[interface{}]string:
  14823. var v2 map[interface{}]string
  14824. v2, changed = fastpathTV.DecMapIntfStringV(*v, true, d)
  14825. if changed {
  14826. *v = v2
  14827. }
  14828. case map[interface{}]uint:
  14829. fastpathTV.DecMapIntfUintV(v, false, d)
  14830. case *map[interface{}]uint:
  14831. var v2 map[interface{}]uint
  14832. v2, changed = fastpathTV.DecMapIntfUintV(*v, true, d)
  14833. if changed {
  14834. *v = v2
  14835. }
  14836. case map[interface{}]uint8:
  14837. fastpathTV.DecMapIntfUint8V(v, false, d)
  14838. case *map[interface{}]uint8:
  14839. var v2 map[interface{}]uint8
  14840. v2, changed = fastpathTV.DecMapIntfUint8V(*v, true, d)
  14841. if changed {
  14842. *v = v2
  14843. }
  14844. case map[interface{}]uint16:
  14845. fastpathTV.DecMapIntfUint16V(v, false, d)
  14846. case *map[interface{}]uint16:
  14847. var v2 map[interface{}]uint16
  14848. v2, changed = fastpathTV.DecMapIntfUint16V(*v, true, d)
  14849. if changed {
  14850. *v = v2
  14851. }
  14852. case map[interface{}]uint32:
  14853. fastpathTV.DecMapIntfUint32V(v, false, d)
  14854. case *map[interface{}]uint32:
  14855. var v2 map[interface{}]uint32
  14856. v2, changed = fastpathTV.DecMapIntfUint32V(*v, true, d)
  14857. if changed {
  14858. *v = v2
  14859. }
  14860. case map[interface{}]uint64:
  14861. fastpathTV.DecMapIntfUint64V(v, false, d)
  14862. case *map[interface{}]uint64:
  14863. var v2 map[interface{}]uint64
  14864. v2, changed = fastpathTV.DecMapIntfUint64V(*v, true, d)
  14865. if changed {
  14866. *v = v2
  14867. }
  14868. case map[interface{}]uintptr:
  14869. fastpathTV.DecMapIntfUintptrV(v, false, d)
  14870. case *map[interface{}]uintptr:
  14871. var v2 map[interface{}]uintptr
  14872. v2, changed = fastpathTV.DecMapIntfUintptrV(*v, true, d)
  14873. if changed {
  14874. *v = v2
  14875. }
  14876. case map[interface{}]int:
  14877. fastpathTV.DecMapIntfIntV(v, false, d)
  14878. case *map[interface{}]int:
  14879. var v2 map[interface{}]int
  14880. v2, changed = fastpathTV.DecMapIntfIntV(*v, true, d)
  14881. if changed {
  14882. *v = v2
  14883. }
  14884. case map[interface{}]int8:
  14885. fastpathTV.DecMapIntfInt8V(v, false, d)
  14886. case *map[interface{}]int8:
  14887. var v2 map[interface{}]int8
  14888. v2, changed = fastpathTV.DecMapIntfInt8V(*v, true, d)
  14889. if changed {
  14890. *v = v2
  14891. }
  14892. case map[interface{}]int16:
  14893. fastpathTV.DecMapIntfInt16V(v, false, d)
  14894. case *map[interface{}]int16:
  14895. var v2 map[interface{}]int16
  14896. v2, changed = fastpathTV.DecMapIntfInt16V(*v, true, d)
  14897. if changed {
  14898. *v = v2
  14899. }
  14900. case map[interface{}]int32:
  14901. fastpathTV.DecMapIntfInt32V(v, false, d)
  14902. case *map[interface{}]int32:
  14903. var v2 map[interface{}]int32
  14904. v2, changed = fastpathTV.DecMapIntfInt32V(*v, true, d)
  14905. if changed {
  14906. *v = v2
  14907. }
  14908. case map[interface{}]int64:
  14909. fastpathTV.DecMapIntfInt64V(v, false, d)
  14910. case *map[interface{}]int64:
  14911. var v2 map[interface{}]int64
  14912. v2, changed = fastpathTV.DecMapIntfInt64V(*v, true, d)
  14913. if changed {
  14914. *v = v2
  14915. }
  14916. case map[interface{}]float32:
  14917. fastpathTV.DecMapIntfFloat32V(v, false, d)
  14918. case *map[interface{}]float32:
  14919. var v2 map[interface{}]float32
  14920. v2, changed = fastpathTV.DecMapIntfFloat32V(*v, true, d)
  14921. if changed {
  14922. *v = v2
  14923. }
  14924. case map[interface{}]float64:
  14925. fastpathTV.DecMapIntfFloat64V(v, false, d)
  14926. case *map[interface{}]float64:
  14927. var v2 map[interface{}]float64
  14928. v2, changed = fastpathTV.DecMapIntfFloat64V(*v, true, d)
  14929. if changed {
  14930. *v = v2
  14931. }
  14932. case map[interface{}]bool:
  14933. fastpathTV.DecMapIntfBoolV(v, false, d)
  14934. case *map[interface{}]bool:
  14935. var v2 map[interface{}]bool
  14936. v2, changed = fastpathTV.DecMapIntfBoolV(*v, true, d)
  14937. if changed {
  14938. *v = v2
  14939. }
  14940. case map[string]interface{}:
  14941. fastpathTV.DecMapStringIntfV(v, false, d)
  14942. case *map[string]interface{}:
  14943. var v2 map[string]interface{}
  14944. v2, changed = fastpathTV.DecMapStringIntfV(*v, true, d)
  14945. if changed {
  14946. *v = v2
  14947. }
  14948. case map[string]string:
  14949. fastpathTV.DecMapStringStringV(v, false, d)
  14950. case *map[string]string:
  14951. var v2 map[string]string
  14952. v2, changed = fastpathTV.DecMapStringStringV(*v, true, d)
  14953. if changed {
  14954. *v = v2
  14955. }
  14956. case map[string]uint:
  14957. fastpathTV.DecMapStringUintV(v, false, d)
  14958. case *map[string]uint:
  14959. var v2 map[string]uint
  14960. v2, changed = fastpathTV.DecMapStringUintV(*v, true, d)
  14961. if changed {
  14962. *v = v2
  14963. }
  14964. case map[string]uint8:
  14965. fastpathTV.DecMapStringUint8V(v, false, d)
  14966. case *map[string]uint8:
  14967. var v2 map[string]uint8
  14968. v2, changed = fastpathTV.DecMapStringUint8V(*v, true, d)
  14969. if changed {
  14970. *v = v2
  14971. }
  14972. case map[string]uint16:
  14973. fastpathTV.DecMapStringUint16V(v, false, d)
  14974. case *map[string]uint16:
  14975. var v2 map[string]uint16
  14976. v2, changed = fastpathTV.DecMapStringUint16V(*v, true, d)
  14977. if changed {
  14978. *v = v2
  14979. }
  14980. case map[string]uint32:
  14981. fastpathTV.DecMapStringUint32V(v, false, d)
  14982. case *map[string]uint32:
  14983. var v2 map[string]uint32
  14984. v2, changed = fastpathTV.DecMapStringUint32V(*v, true, d)
  14985. if changed {
  14986. *v = v2
  14987. }
  14988. case map[string]uint64:
  14989. fastpathTV.DecMapStringUint64V(v, false, d)
  14990. case *map[string]uint64:
  14991. var v2 map[string]uint64
  14992. v2, changed = fastpathTV.DecMapStringUint64V(*v, true, d)
  14993. if changed {
  14994. *v = v2
  14995. }
  14996. case map[string]uintptr:
  14997. fastpathTV.DecMapStringUintptrV(v, false, d)
  14998. case *map[string]uintptr:
  14999. var v2 map[string]uintptr
  15000. v2, changed = fastpathTV.DecMapStringUintptrV(*v, true, d)
  15001. if changed {
  15002. *v = v2
  15003. }
  15004. case map[string]int:
  15005. fastpathTV.DecMapStringIntV(v, false, d)
  15006. case *map[string]int:
  15007. var v2 map[string]int
  15008. v2, changed = fastpathTV.DecMapStringIntV(*v, true, d)
  15009. if changed {
  15010. *v = v2
  15011. }
  15012. case map[string]int8:
  15013. fastpathTV.DecMapStringInt8V(v, false, d)
  15014. case *map[string]int8:
  15015. var v2 map[string]int8
  15016. v2, changed = fastpathTV.DecMapStringInt8V(*v, true, d)
  15017. if changed {
  15018. *v = v2
  15019. }
  15020. case map[string]int16:
  15021. fastpathTV.DecMapStringInt16V(v, false, d)
  15022. case *map[string]int16:
  15023. var v2 map[string]int16
  15024. v2, changed = fastpathTV.DecMapStringInt16V(*v, true, d)
  15025. if changed {
  15026. *v = v2
  15027. }
  15028. case map[string]int32:
  15029. fastpathTV.DecMapStringInt32V(v, false, d)
  15030. case *map[string]int32:
  15031. var v2 map[string]int32
  15032. v2, changed = fastpathTV.DecMapStringInt32V(*v, true, d)
  15033. if changed {
  15034. *v = v2
  15035. }
  15036. case map[string]int64:
  15037. fastpathTV.DecMapStringInt64V(v, false, d)
  15038. case *map[string]int64:
  15039. var v2 map[string]int64
  15040. v2, changed = fastpathTV.DecMapStringInt64V(*v, true, d)
  15041. if changed {
  15042. *v = v2
  15043. }
  15044. case map[string]float32:
  15045. fastpathTV.DecMapStringFloat32V(v, false, d)
  15046. case *map[string]float32:
  15047. var v2 map[string]float32
  15048. v2, changed = fastpathTV.DecMapStringFloat32V(*v, true, d)
  15049. if changed {
  15050. *v = v2
  15051. }
  15052. case map[string]float64:
  15053. fastpathTV.DecMapStringFloat64V(v, false, d)
  15054. case *map[string]float64:
  15055. var v2 map[string]float64
  15056. v2, changed = fastpathTV.DecMapStringFloat64V(*v, true, d)
  15057. if changed {
  15058. *v = v2
  15059. }
  15060. case map[string]bool:
  15061. fastpathTV.DecMapStringBoolV(v, false, d)
  15062. case *map[string]bool:
  15063. var v2 map[string]bool
  15064. v2, changed = fastpathTV.DecMapStringBoolV(*v, true, d)
  15065. if changed {
  15066. *v = v2
  15067. }
  15068. case map[float32]interface{}:
  15069. fastpathTV.DecMapFloat32IntfV(v, false, d)
  15070. case *map[float32]interface{}:
  15071. var v2 map[float32]interface{}
  15072. v2, changed = fastpathTV.DecMapFloat32IntfV(*v, true, d)
  15073. if changed {
  15074. *v = v2
  15075. }
  15076. case map[float32]string:
  15077. fastpathTV.DecMapFloat32StringV(v, false, d)
  15078. case *map[float32]string:
  15079. var v2 map[float32]string
  15080. v2, changed = fastpathTV.DecMapFloat32StringV(*v, true, d)
  15081. if changed {
  15082. *v = v2
  15083. }
  15084. case map[float32]uint:
  15085. fastpathTV.DecMapFloat32UintV(v, false, d)
  15086. case *map[float32]uint:
  15087. var v2 map[float32]uint
  15088. v2, changed = fastpathTV.DecMapFloat32UintV(*v, true, d)
  15089. if changed {
  15090. *v = v2
  15091. }
  15092. case map[float32]uint8:
  15093. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  15094. case *map[float32]uint8:
  15095. var v2 map[float32]uint8
  15096. v2, changed = fastpathTV.DecMapFloat32Uint8V(*v, true, d)
  15097. if changed {
  15098. *v = v2
  15099. }
  15100. case map[float32]uint16:
  15101. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  15102. case *map[float32]uint16:
  15103. var v2 map[float32]uint16
  15104. v2, changed = fastpathTV.DecMapFloat32Uint16V(*v, true, d)
  15105. if changed {
  15106. *v = v2
  15107. }
  15108. case map[float32]uint32:
  15109. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  15110. case *map[float32]uint32:
  15111. var v2 map[float32]uint32
  15112. v2, changed = fastpathTV.DecMapFloat32Uint32V(*v, true, d)
  15113. if changed {
  15114. *v = v2
  15115. }
  15116. case map[float32]uint64:
  15117. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  15118. case *map[float32]uint64:
  15119. var v2 map[float32]uint64
  15120. v2, changed = fastpathTV.DecMapFloat32Uint64V(*v, true, d)
  15121. if changed {
  15122. *v = v2
  15123. }
  15124. case map[float32]uintptr:
  15125. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  15126. case *map[float32]uintptr:
  15127. var v2 map[float32]uintptr
  15128. v2, changed = fastpathTV.DecMapFloat32UintptrV(*v, true, d)
  15129. if changed {
  15130. *v = v2
  15131. }
  15132. case map[float32]int:
  15133. fastpathTV.DecMapFloat32IntV(v, false, d)
  15134. case *map[float32]int:
  15135. var v2 map[float32]int
  15136. v2, changed = fastpathTV.DecMapFloat32IntV(*v, true, d)
  15137. if changed {
  15138. *v = v2
  15139. }
  15140. case map[float32]int8:
  15141. fastpathTV.DecMapFloat32Int8V(v, false, d)
  15142. case *map[float32]int8:
  15143. var v2 map[float32]int8
  15144. v2, changed = fastpathTV.DecMapFloat32Int8V(*v, true, d)
  15145. if changed {
  15146. *v = v2
  15147. }
  15148. case map[float32]int16:
  15149. fastpathTV.DecMapFloat32Int16V(v, false, d)
  15150. case *map[float32]int16:
  15151. var v2 map[float32]int16
  15152. v2, changed = fastpathTV.DecMapFloat32Int16V(*v, true, d)
  15153. if changed {
  15154. *v = v2
  15155. }
  15156. case map[float32]int32:
  15157. fastpathTV.DecMapFloat32Int32V(v, false, d)
  15158. case *map[float32]int32:
  15159. var v2 map[float32]int32
  15160. v2, changed = fastpathTV.DecMapFloat32Int32V(*v, true, d)
  15161. if changed {
  15162. *v = v2
  15163. }
  15164. case map[float32]int64:
  15165. fastpathTV.DecMapFloat32Int64V(v, false, d)
  15166. case *map[float32]int64:
  15167. var v2 map[float32]int64
  15168. v2, changed = fastpathTV.DecMapFloat32Int64V(*v, true, d)
  15169. if changed {
  15170. *v = v2
  15171. }
  15172. case map[float32]float32:
  15173. fastpathTV.DecMapFloat32Float32V(v, false, d)
  15174. case *map[float32]float32:
  15175. var v2 map[float32]float32
  15176. v2, changed = fastpathTV.DecMapFloat32Float32V(*v, true, d)
  15177. if changed {
  15178. *v = v2
  15179. }
  15180. case map[float32]float64:
  15181. fastpathTV.DecMapFloat32Float64V(v, false, d)
  15182. case *map[float32]float64:
  15183. var v2 map[float32]float64
  15184. v2, changed = fastpathTV.DecMapFloat32Float64V(*v, true, d)
  15185. if changed {
  15186. *v = v2
  15187. }
  15188. case map[float32]bool:
  15189. fastpathTV.DecMapFloat32BoolV(v, false, d)
  15190. case *map[float32]bool:
  15191. var v2 map[float32]bool
  15192. v2, changed = fastpathTV.DecMapFloat32BoolV(*v, true, d)
  15193. if changed {
  15194. *v = v2
  15195. }
  15196. case map[float64]interface{}:
  15197. fastpathTV.DecMapFloat64IntfV(v, false, d)
  15198. case *map[float64]interface{}:
  15199. var v2 map[float64]interface{}
  15200. v2, changed = fastpathTV.DecMapFloat64IntfV(*v, true, d)
  15201. if changed {
  15202. *v = v2
  15203. }
  15204. case map[float64]string:
  15205. fastpathTV.DecMapFloat64StringV(v, false, d)
  15206. case *map[float64]string:
  15207. var v2 map[float64]string
  15208. v2, changed = fastpathTV.DecMapFloat64StringV(*v, true, d)
  15209. if changed {
  15210. *v = v2
  15211. }
  15212. case map[float64]uint:
  15213. fastpathTV.DecMapFloat64UintV(v, false, d)
  15214. case *map[float64]uint:
  15215. var v2 map[float64]uint
  15216. v2, changed = fastpathTV.DecMapFloat64UintV(*v, true, d)
  15217. if changed {
  15218. *v = v2
  15219. }
  15220. case map[float64]uint8:
  15221. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  15222. case *map[float64]uint8:
  15223. var v2 map[float64]uint8
  15224. v2, changed = fastpathTV.DecMapFloat64Uint8V(*v, true, d)
  15225. if changed {
  15226. *v = v2
  15227. }
  15228. case map[float64]uint16:
  15229. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  15230. case *map[float64]uint16:
  15231. var v2 map[float64]uint16
  15232. v2, changed = fastpathTV.DecMapFloat64Uint16V(*v, true, d)
  15233. if changed {
  15234. *v = v2
  15235. }
  15236. case map[float64]uint32:
  15237. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  15238. case *map[float64]uint32:
  15239. var v2 map[float64]uint32
  15240. v2, changed = fastpathTV.DecMapFloat64Uint32V(*v, true, d)
  15241. if changed {
  15242. *v = v2
  15243. }
  15244. case map[float64]uint64:
  15245. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  15246. case *map[float64]uint64:
  15247. var v2 map[float64]uint64
  15248. v2, changed = fastpathTV.DecMapFloat64Uint64V(*v, true, d)
  15249. if changed {
  15250. *v = v2
  15251. }
  15252. case map[float64]uintptr:
  15253. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  15254. case *map[float64]uintptr:
  15255. var v2 map[float64]uintptr
  15256. v2, changed = fastpathTV.DecMapFloat64UintptrV(*v, true, d)
  15257. if changed {
  15258. *v = v2
  15259. }
  15260. case map[float64]int:
  15261. fastpathTV.DecMapFloat64IntV(v, false, d)
  15262. case *map[float64]int:
  15263. var v2 map[float64]int
  15264. v2, changed = fastpathTV.DecMapFloat64IntV(*v, true, d)
  15265. if changed {
  15266. *v = v2
  15267. }
  15268. case map[float64]int8:
  15269. fastpathTV.DecMapFloat64Int8V(v, false, d)
  15270. case *map[float64]int8:
  15271. var v2 map[float64]int8
  15272. v2, changed = fastpathTV.DecMapFloat64Int8V(*v, true, d)
  15273. if changed {
  15274. *v = v2
  15275. }
  15276. case map[float64]int16:
  15277. fastpathTV.DecMapFloat64Int16V(v, false, d)
  15278. case *map[float64]int16:
  15279. var v2 map[float64]int16
  15280. v2, changed = fastpathTV.DecMapFloat64Int16V(*v, true, d)
  15281. if changed {
  15282. *v = v2
  15283. }
  15284. case map[float64]int32:
  15285. fastpathTV.DecMapFloat64Int32V(v, false, d)
  15286. case *map[float64]int32:
  15287. var v2 map[float64]int32
  15288. v2, changed = fastpathTV.DecMapFloat64Int32V(*v, true, d)
  15289. if changed {
  15290. *v = v2
  15291. }
  15292. case map[float64]int64:
  15293. fastpathTV.DecMapFloat64Int64V(v, false, d)
  15294. case *map[float64]int64:
  15295. var v2 map[float64]int64
  15296. v2, changed = fastpathTV.DecMapFloat64Int64V(*v, true, d)
  15297. if changed {
  15298. *v = v2
  15299. }
  15300. case map[float64]float32:
  15301. fastpathTV.DecMapFloat64Float32V(v, false, d)
  15302. case *map[float64]float32:
  15303. var v2 map[float64]float32
  15304. v2, changed = fastpathTV.DecMapFloat64Float32V(*v, true, d)
  15305. if changed {
  15306. *v = v2
  15307. }
  15308. case map[float64]float64:
  15309. fastpathTV.DecMapFloat64Float64V(v, false, d)
  15310. case *map[float64]float64:
  15311. var v2 map[float64]float64
  15312. v2, changed = fastpathTV.DecMapFloat64Float64V(*v, true, d)
  15313. if changed {
  15314. *v = v2
  15315. }
  15316. case map[float64]bool:
  15317. fastpathTV.DecMapFloat64BoolV(v, false, d)
  15318. case *map[float64]bool:
  15319. var v2 map[float64]bool
  15320. v2, changed = fastpathTV.DecMapFloat64BoolV(*v, true, d)
  15321. if changed {
  15322. *v = v2
  15323. }
  15324. case map[uint]interface{}:
  15325. fastpathTV.DecMapUintIntfV(v, false, d)
  15326. case *map[uint]interface{}:
  15327. var v2 map[uint]interface{}
  15328. v2, changed = fastpathTV.DecMapUintIntfV(*v, true, d)
  15329. if changed {
  15330. *v = v2
  15331. }
  15332. case map[uint]string:
  15333. fastpathTV.DecMapUintStringV(v, false, d)
  15334. case *map[uint]string:
  15335. var v2 map[uint]string
  15336. v2, changed = fastpathTV.DecMapUintStringV(*v, true, d)
  15337. if changed {
  15338. *v = v2
  15339. }
  15340. case map[uint]uint:
  15341. fastpathTV.DecMapUintUintV(v, false, d)
  15342. case *map[uint]uint:
  15343. var v2 map[uint]uint
  15344. v2, changed = fastpathTV.DecMapUintUintV(*v, true, d)
  15345. if changed {
  15346. *v = v2
  15347. }
  15348. case map[uint]uint8:
  15349. fastpathTV.DecMapUintUint8V(v, false, d)
  15350. case *map[uint]uint8:
  15351. var v2 map[uint]uint8
  15352. v2, changed = fastpathTV.DecMapUintUint8V(*v, true, d)
  15353. if changed {
  15354. *v = v2
  15355. }
  15356. case map[uint]uint16:
  15357. fastpathTV.DecMapUintUint16V(v, false, d)
  15358. case *map[uint]uint16:
  15359. var v2 map[uint]uint16
  15360. v2, changed = fastpathTV.DecMapUintUint16V(*v, true, d)
  15361. if changed {
  15362. *v = v2
  15363. }
  15364. case map[uint]uint32:
  15365. fastpathTV.DecMapUintUint32V(v, false, d)
  15366. case *map[uint]uint32:
  15367. var v2 map[uint]uint32
  15368. v2, changed = fastpathTV.DecMapUintUint32V(*v, true, d)
  15369. if changed {
  15370. *v = v2
  15371. }
  15372. case map[uint]uint64:
  15373. fastpathTV.DecMapUintUint64V(v, false, d)
  15374. case *map[uint]uint64:
  15375. var v2 map[uint]uint64
  15376. v2, changed = fastpathTV.DecMapUintUint64V(*v, true, d)
  15377. if changed {
  15378. *v = v2
  15379. }
  15380. case map[uint]uintptr:
  15381. fastpathTV.DecMapUintUintptrV(v, false, d)
  15382. case *map[uint]uintptr:
  15383. var v2 map[uint]uintptr
  15384. v2, changed = fastpathTV.DecMapUintUintptrV(*v, true, d)
  15385. if changed {
  15386. *v = v2
  15387. }
  15388. case map[uint]int:
  15389. fastpathTV.DecMapUintIntV(v, false, d)
  15390. case *map[uint]int:
  15391. var v2 map[uint]int
  15392. v2, changed = fastpathTV.DecMapUintIntV(*v, true, d)
  15393. if changed {
  15394. *v = v2
  15395. }
  15396. case map[uint]int8:
  15397. fastpathTV.DecMapUintInt8V(v, false, d)
  15398. case *map[uint]int8:
  15399. var v2 map[uint]int8
  15400. v2, changed = fastpathTV.DecMapUintInt8V(*v, true, d)
  15401. if changed {
  15402. *v = v2
  15403. }
  15404. case map[uint]int16:
  15405. fastpathTV.DecMapUintInt16V(v, false, d)
  15406. case *map[uint]int16:
  15407. var v2 map[uint]int16
  15408. v2, changed = fastpathTV.DecMapUintInt16V(*v, true, d)
  15409. if changed {
  15410. *v = v2
  15411. }
  15412. case map[uint]int32:
  15413. fastpathTV.DecMapUintInt32V(v, false, d)
  15414. case *map[uint]int32:
  15415. var v2 map[uint]int32
  15416. v2, changed = fastpathTV.DecMapUintInt32V(*v, true, d)
  15417. if changed {
  15418. *v = v2
  15419. }
  15420. case map[uint]int64:
  15421. fastpathTV.DecMapUintInt64V(v, false, d)
  15422. case *map[uint]int64:
  15423. var v2 map[uint]int64
  15424. v2, changed = fastpathTV.DecMapUintInt64V(*v, true, d)
  15425. if changed {
  15426. *v = v2
  15427. }
  15428. case map[uint]float32:
  15429. fastpathTV.DecMapUintFloat32V(v, false, d)
  15430. case *map[uint]float32:
  15431. var v2 map[uint]float32
  15432. v2, changed = fastpathTV.DecMapUintFloat32V(*v, true, d)
  15433. if changed {
  15434. *v = v2
  15435. }
  15436. case map[uint]float64:
  15437. fastpathTV.DecMapUintFloat64V(v, false, d)
  15438. case *map[uint]float64:
  15439. var v2 map[uint]float64
  15440. v2, changed = fastpathTV.DecMapUintFloat64V(*v, true, d)
  15441. if changed {
  15442. *v = v2
  15443. }
  15444. case map[uint]bool:
  15445. fastpathTV.DecMapUintBoolV(v, false, d)
  15446. case *map[uint]bool:
  15447. var v2 map[uint]bool
  15448. v2, changed = fastpathTV.DecMapUintBoolV(*v, true, d)
  15449. if changed {
  15450. *v = v2
  15451. }
  15452. case map[uint8]interface{}:
  15453. fastpathTV.DecMapUint8IntfV(v, false, d)
  15454. case *map[uint8]interface{}:
  15455. var v2 map[uint8]interface{}
  15456. v2, changed = fastpathTV.DecMapUint8IntfV(*v, true, d)
  15457. if changed {
  15458. *v = v2
  15459. }
  15460. case map[uint8]string:
  15461. fastpathTV.DecMapUint8StringV(v, false, d)
  15462. case *map[uint8]string:
  15463. var v2 map[uint8]string
  15464. v2, changed = fastpathTV.DecMapUint8StringV(*v, true, d)
  15465. if changed {
  15466. *v = v2
  15467. }
  15468. case map[uint8]uint:
  15469. fastpathTV.DecMapUint8UintV(v, false, d)
  15470. case *map[uint8]uint:
  15471. var v2 map[uint8]uint
  15472. v2, changed = fastpathTV.DecMapUint8UintV(*v, true, d)
  15473. if changed {
  15474. *v = v2
  15475. }
  15476. case map[uint8]uint8:
  15477. fastpathTV.DecMapUint8Uint8V(v, false, d)
  15478. case *map[uint8]uint8:
  15479. var v2 map[uint8]uint8
  15480. v2, changed = fastpathTV.DecMapUint8Uint8V(*v, true, d)
  15481. if changed {
  15482. *v = v2
  15483. }
  15484. case map[uint8]uint16:
  15485. fastpathTV.DecMapUint8Uint16V(v, false, d)
  15486. case *map[uint8]uint16:
  15487. var v2 map[uint8]uint16
  15488. v2, changed = fastpathTV.DecMapUint8Uint16V(*v, true, d)
  15489. if changed {
  15490. *v = v2
  15491. }
  15492. case map[uint8]uint32:
  15493. fastpathTV.DecMapUint8Uint32V(v, false, d)
  15494. case *map[uint8]uint32:
  15495. var v2 map[uint8]uint32
  15496. v2, changed = fastpathTV.DecMapUint8Uint32V(*v, true, d)
  15497. if changed {
  15498. *v = v2
  15499. }
  15500. case map[uint8]uint64:
  15501. fastpathTV.DecMapUint8Uint64V(v, false, d)
  15502. case *map[uint8]uint64:
  15503. var v2 map[uint8]uint64
  15504. v2, changed = fastpathTV.DecMapUint8Uint64V(*v, true, d)
  15505. if changed {
  15506. *v = v2
  15507. }
  15508. case map[uint8]uintptr:
  15509. fastpathTV.DecMapUint8UintptrV(v, false, d)
  15510. case *map[uint8]uintptr:
  15511. var v2 map[uint8]uintptr
  15512. v2, changed = fastpathTV.DecMapUint8UintptrV(*v, true, d)
  15513. if changed {
  15514. *v = v2
  15515. }
  15516. case map[uint8]int:
  15517. fastpathTV.DecMapUint8IntV(v, false, d)
  15518. case *map[uint8]int:
  15519. var v2 map[uint8]int
  15520. v2, changed = fastpathTV.DecMapUint8IntV(*v, true, d)
  15521. if changed {
  15522. *v = v2
  15523. }
  15524. case map[uint8]int8:
  15525. fastpathTV.DecMapUint8Int8V(v, false, d)
  15526. case *map[uint8]int8:
  15527. var v2 map[uint8]int8
  15528. v2, changed = fastpathTV.DecMapUint8Int8V(*v, true, d)
  15529. if changed {
  15530. *v = v2
  15531. }
  15532. case map[uint8]int16:
  15533. fastpathTV.DecMapUint8Int16V(v, false, d)
  15534. case *map[uint8]int16:
  15535. var v2 map[uint8]int16
  15536. v2, changed = fastpathTV.DecMapUint8Int16V(*v, true, d)
  15537. if changed {
  15538. *v = v2
  15539. }
  15540. case map[uint8]int32:
  15541. fastpathTV.DecMapUint8Int32V(v, false, d)
  15542. case *map[uint8]int32:
  15543. var v2 map[uint8]int32
  15544. v2, changed = fastpathTV.DecMapUint8Int32V(*v, true, d)
  15545. if changed {
  15546. *v = v2
  15547. }
  15548. case map[uint8]int64:
  15549. fastpathTV.DecMapUint8Int64V(v, false, d)
  15550. case *map[uint8]int64:
  15551. var v2 map[uint8]int64
  15552. v2, changed = fastpathTV.DecMapUint8Int64V(*v, true, d)
  15553. if changed {
  15554. *v = v2
  15555. }
  15556. case map[uint8]float32:
  15557. fastpathTV.DecMapUint8Float32V(v, false, d)
  15558. case *map[uint8]float32:
  15559. var v2 map[uint8]float32
  15560. v2, changed = fastpathTV.DecMapUint8Float32V(*v, true, d)
  15561. if changed {
  15562. *v = v2
  15563. }
  15564. case map[uint8]float64:
  15565. fastpathTV.DecMapUint8Float64V(v, false, d)
  15566. case *map[uint8]float64:
  15567. var v2 map[uint8]float64
  15568. v2, changed = fastpathTV.DecMapUint8Float64V(*v, true, d)
  15569. if changed {
  15570. *v = v2
  15571. }
  15572. case map[uint8]bool:
  15573. fastpathTV.DecMapUint8BoolV(v, false, d)
  15574. case *map[uint8]bool:
  15575. var v2 map[uint8]bool
  15576. v2, changed = fastpathTV.DecMapUint8BoolV(*v, true, d)
  15577. if changed {
  15578. *v = v2
  15579. }
  15580. case map[uint16]interface{}:
  15581. fastpathTV.DecMapUint16IntfV(v, false, d)
  15582. case *map[uint16]interface{}:
  15583. var v2 map[uint16]interface{}
  15584. v2, changed = fastpathTV.DecMapUint16IntfV(*v, true, d)
  15585. if changed {
  15586. *v = v2
  15587. }
  15588. case map[uint16]string:
  15589. fastpathTV.DecMapUint16StringV(v, false, d)
  15590. case *map[uint16]string:
  15591. var v2 map[uint16]string
  15592. v2, changed = fastpathTV.DecMapUint16StringV(*v, true, d)
  15593. if changed {
  15594. *v = v2
  15595. }
  15596. case map[uint16]uint:
  15597. fastpathTV.DecMapUint16UintV(v, false, d)
  15598. case *map[uint16]uint:
  15599. var v2 map[uint16]uint
  15600. v2, changed = fastpathTV.DecMapUint16UintV(*v, true, d)
  15601. if changed {
  15602. *v = v2
  15603. }
  15604. case map[uint16]uint8:
  15605. fastpathTV.DecMapUint16Uint8V(v, false, d)
  15606. case *map[uint16]uint8:
  15607. var v2 map[uint16]uint8
  15608. v2, changed = fastpathTV.DecMapUint16Uint8V(*v, true, d)
  15609. if changed {
  15610. *v = v2
  15611. }
  15612. case map[uint16]uint16:
  15613. fastpathTV.DecMapUint16Uint16V(v, false, d)
  15614. case *map[uint16]uint16:
  15615. var v2 map[uint16]uint16
  15616. v2, changed = fastpathTV.DecMapUint16Uint16V(*v, true, d)
  15617. if changed {
  15618. *v = v2
  15619. }
  15620. case map[uint16]uint32:
  15621. fastpathTV.DecMapUint16Uint32V(v, false, d)
  15622. case *map[uint16]uint32:
  15623. var v2 map[uint16]uint32
  15624. v2, changed = fastpathTV.DecMapUint16Uint32V(*v, true, d)
  15625. if changed {
  15626. *v = v2
  15627. }
  15628. case map[uint16]uint64:
  15629. fastpathTV.DecMapUint16Uint64V(v, false, d)
  15630. case *map[uint16]uint64:
  15631. var v2 map[uint16]uint64
  15632. v2, changed = fastpathTV.DecMapUint16Uint64V(*v, true, d)
  15633. if changed {
  15634. *v = v2
  15635. }
  15636. case map[uint16]uintptr:
  15637. fastpathTV.DecMapUint16UintptrV(v, false, d)
  15638. case *map[uint16]uintptr:
  15639. var v2 map[uint16]uintptr
  15640. v2, changed = fastpathTV.DecMapUint16UintptrV(*v, true, d)
  15641. if changed {
  15642. *v = v2
  15643. }
  15644. case map[uint16]int:
  15645. fastpathTV.DecMapUint16IntV(v, false, d)
  15646. case *map[uint16]int:
  15647. var v2 map[uint16]int
  15648. v2, changed = fastpathTV.DecMapUint16IntV(*v, true, d)
  15649. if changed {
  15650. *v = v2
  15651. }
  15652. case map[uint16]int8:
  15653. fastpathTV.DecMapUint16Int8V(v, false, d)
  15654. case *map[uint16]int8:
  15655. var v2 map[uint16]int8
  15656. v2, changed = fastpathTV.DecMapUint16Int8V(*v, true, d)
  15657. if changed {
  15658. *v = v2
  15659. }
  15660. case map[uint16]int16:
  15661. fastpathTV.DecMapUint16Int16V(v, false, d)
  15662. case *map[uint16]int16:
  15663. var v2 map[uint16]int16
  15664. v2, changed = fastpathTV.DecMapUint16Int16V(*v, true, d)
  15665. if changed {
  15666. *v = v2
  15667. }
  15668. case map[uint16]int32:
  15669. fastpathTV.DecMapUint16Int32V(v, false, d)
  15670. case *map[uint16]int32:
  15671. var v2 map[uint16]int32
  15672. v2, changed = fastpathTV.DecMapUint16Int32V(*v, true, d)
  15673. if changed {
  15674. *v = v2
  15675. }
  15676. case map[uint16]int64:
  15677. fastpathTV.DecMapUint16Int64V(v, false, d)
  15678. case *map[uint16]int64:
  15679. var v2 map[uint16]int64
  15680. v2, changed = fastpathTV.DecMapUint16Int64V(*v, true, d)
  15681. if changed {
  15682. *v = v2
  15683. }
  15684. case map[uint16]float32:
  15685. fastpathTV.DecMapUint16Float32V(v, false, d)
  15686. case *map[uint16]float32:
  15687. var v2 map[uint16]float32
  15688. v2, changed = fastpathTV.DecMapUint16Float32V(*v, true, d)
  15689. if changed {
  15690. *v = v2
  15691. }
  15692. case map[uint16]float64:
  15693. fastpathTV.DecMapUint16Float64V(v, false, d)
  15694. case *map[uint16]float64:
  15695. var v2 map[uint16]float64
  15696. v2, changed = fastpathTV.DecMapUint16Float64V(*v, true, d)
  15697. if changed {
  15698. *v = v2
  15699. }
  15700. case map[uint16]bool:
  15701. fastpathTV.DecMapUint16BoolV(v, false, d)
  15702. case *map[uint16]bool:
  15703. var v2 map[uint16]bool
  15704. v2, changed = fastpathTV.DecMapUint16BoolV(*v, true, d)
  15705. if changed {
  15706. *v = v2
  15707. }
  15708. case map[uint32]interface{}:
  15709. fastpathTV.DecMapUint32IntfV(v, false, d)
  15710. case *map[uint32]interface{}:
  15711. var v2 map[uint32]interface{}
  15712. v2, changed = fastpathTV.DecMapUint32IntfV(*v, true, d)
  15713. if changed {
  15714. *v = v2
  15715. }
  15716. case map[uint32]string:
  15717. fastpathTV.DecMapUint32StringV(v, false, d)
  15718. case *map[uint32]string:
  15719. var v2 map[uint32]string
  15720. v2, changed = fastpathTV.DecMapUint32StringV(*v, true, d)
  15721. if changed {
  15722. *v = v2
  15723. }
  15724. case map[uint32]uint:
  15725. fastpathTV.DecMapUint32UintV(v, false, d)
  15726. case *map[uint32]uint:
  15727. var v2 map[uint32]uint
  15728. v2, changed = fastpathTV.DecMapUint32UintV(*v, true, d)
  15729. if changed {
  15730. *v = v2
  15731. }
  15732. case map[uint32]uint8:
  15733. fastpathTV.DecMapUint32Uint8V(v, false, d)
  15734. case *map[uint32]uint8:
  15735. var v2 map[uint32]uint8
  15736. v2, changed = fastpathTV.DecMapUint32Uint8V(*v, true, d)
  15737. if changed {
  15738. *v = v2
  15739. }
  15740. case map[uint32]uint16:
  15741. fastpathTV.DecMapUint32Uint16V(v, false, d)
  15742. case *map[uint32]uint16:
  15743. var v2 map[uint32]uint16
  15744. v2, changed = fastpathTV.DecMapUint32Uint16V(*v, true, d)
  15745. if changed {
  15746. *v = v2
  15747. }
  15748. case map[uint32]uint32:
  15749. fastpathTV.DecMapUint32Uint32V(v, false, d)
  15750. case *map[uint32]uint32:
  15751. var v2 map[uint32]uint32
  15752. v2, changed = fastpathTV.DecMapUint32Uint32V(*v, true, d)
  15753. if changed {
  15754. *v = v2
  15755. }
  15756. case map[uint32]uint64:
  15757. fastpathTV.DecMapUint32Uint64V(v, false, d)
  15758. case *map[uint32]uint64:
  15759. var v2 map[uint32]uint64
  15760. v2, changed = fastpathTV.DecMapUint32Uint64V(*v, true, d)
  15761. if changed {
  15762. *v = v2
  15763. }
  15764. case map[uint32]uintptr:
  15765. fastpathTV.DecMapUint32UintptrV(v, false, d)
  15766. case *map[uint32]uintptr:
  15767. var v2 map[uint32]uintptr
  15768. v2, changed = fastpathTV.DecMapUint32UintptrV(*v, true, d)
  15769. if changed {
  15770. *v = v2
  15771. }
  15772. case map[uint32]int:
  15773. fastpathTV.DecMapUint32IntV(v, false, d)
  15774. case *map[uint32]int:
  15775. var v2 map[uint32]int
  15776. v2, changed = fastpathTV.DecMapUint32IntV(*v, true, d)
  15777. if changed {
  15778. *v = v2
  15779. }
  15780. case map[uint32]int8:
  15781. fastpathTV.DecMapUint32Int8V(v, false, d)
  15782. case *map[uint32]int8:
  15783. var v2 map[uint32]int8
  15784. v2, changed = fastpathTV.DecMapUint32Int8V(*v, true, d)
  15785. if changed {
  15786. *v = v2
  15787. }
  15788. case map[uint32]int16:
  15789. fastpathTV.DecMapUint32Int16V(v, false, d)
  15790. case *map[uint32]int16:
  15791. var v2 map[uint32]int16
  15792. v2, changed = fastpathTV.DecMapUint32Int16V(*v, true, d)
  15793. if changed {
  15794. *v = v2
  15795. }
  15796. case map[uint32]int32:
  15797. fastpathTV.DecMapUint32Int32V(v, false, d)
  15798. case *map[uint32]int32:
  15799. var v2 map[uint32]int32
  15800. v2, changed = fastpathTV.DecMapUint32Int32V(*v, true, d)
  15801. if changed {
  15802. *v = v2
  15803. }
  15804. case map[uint32]int64:
  15805. fastpathTV.DecMapUint32Int64V(v, false, d)
  15806. case *map[uint32]int64:
  15807. var v2 map[uint32]int64
  15808. v2, changed = fastpathTV.DecMapUint32Int64V(*v, true, d)
  15809. if changed {
  15810. *v = v2
  15811. }
  15812. case map[uint32]float32:
  15813. fastpathTV.DecMapUint32Float32V(v, false, d)
  15814. case *map[uint32]float32:
  15815. var v2 map[uint32]float32
  15816. v2, changed = fastpathTV.DecMapUint32Float32V(*v, true, d)
  15817. if changed {
  15818. *v = v2
  15819. }
  15820. case map[uint32]float64:
  15821. fastpathTV.DecMapUint32Float64V(v, false, d)
  15822. case *map[uint32]float64:
  15823. var v2 map[uint32]float64
  15824. v2, changed = fastpathTV.DecMapUint32Float64V(*v, true, d)
  15825. if changed {
  15826. *v = v2
  15827. }
  15828. case map[uint32]bool:
  15829. fastpathTV.DecMapUint32BoolV(v, false, d)
  15830. case *map[uint32]bool:
  15831. var v2 map[uint32]bool
  15832. v2, changed = fastpathTV.DecMapUint32BoolV(*v, true, d)
  15833. if changed {
  15834. *v = v2
  15835. }
  15836. case map[uint64]interface{}:
  15837. fastpathTV.DecMapUint64IntfV(v, false, d)
  15838. case *map[uint64]interface{}:
  15839. var v2 map[uint64]interface{}
  15840. v2, changed = fastpathTV.DecMapUint64IntfV(*v, true, d)
  15841. if changed {
  15842. *v = v2
  15843. }
  15844. case map[uint64]string:
  15845. fastpathTV.DecMapUint64StringV(v, false, d)
  15846. case *map[uint64]string:
  15847. var v2 map[uint64]string
  15848. v2, changed = fastpathTV.DecMapUint64StringV(*v, true, d)
  15849. if changed {
  15850. *v = v2
  15851. }
  15852. case map[uint64]uint:
  15853. fastpathTV.DecMapUint64UintV(v, false, d)
  15854. case *map[uint64]uint:
  15855. var v2 map[uint64]uint
  15856. v2, changed = fastpathTV.DecMapUint64UintV(*v, true, d)
  15857. if changed {
  15858. *v = v2
  15859. }
  15860. case map[uint64]uint8:
  15861. fastpathTV.DecMapUint64Uint8V(v, false, d)
  15862. case *map[uint64]uint8:
  15863. var v2 map[uint64]uint8
  15864. v2, changed = fastpathTV.DecMapUint64Uint8V(*v, true, d)
  15865. if changed {
  15866. *v = v2
  15867. }
  15868. case map[uint64]uint16:
  15869. fastpathTV.DecMapUint64Uint16V(v, false, d)
  15870. case *map[uint64]uint16:
  15871. var v2 map[uint64]uint16
  15872. v2, changed = fastpathTV.DecMapUint64Uint16V(*v, true, d)
  15873. if changed {
  15874. *v = v2
  15875. }
  15876. case map[uint64]uint32:
  15877. fastpathTV.DecMapUint64Uint32V(v, false, d)
  15878. case *map[uint64]uint32:
  15879. var v2 map[uint64]uint32
  15880. v2, changed = fastpathTV.DecMapUint64Uint32V(*v, true, d)
  15881. if changed {
  15882. *v = v2
  15883. }
  15884. case map[uint64]uint64:
  15885. fastpathTV.DecMapUint64Uint64V(v, false, d)
  15886. case *map[uint64]uint64:
  15887. var v2 map[uint64]uint64
  15888. v2, changed = fastpathTV.DecMapUint64Uint64V(*v, true, d)
  15889. if changed {
  15890. *v = v2
  15891. }
  15892. case map[uint64]uintptr:
  15893. fastpathTV.DecMapUint64UintptrV(v, false, d)
  15894. case *map[uint64]uintptr:
  15895. var v2 map[uint64]uintptr
  15896. v2, changed = fastpathTV.DecMapUint64UintptrV(*v, true, d)
  15897. if changed {
  15898. *v = v2
  15899. }
  15900. case map[uint64]int:
  15901. fastpathTV.DecMapUint64IntV(v, false, d)
  15902. case *map[uint64]int:
  15903. var v2 map[uint64]int
  15904. v2, changed = fastpathTV.DecMapUint64IntV(*v, true, d)
  15905. if changed {
  15906. *v = v2
  15907. }
  15908. case map[uint64]int8:
  15909. fastpathTV.DecMapUint64Int8V(v, false, d)
  15910. case *map[uint64]int8:
  15911. var v2 map[uint64]int8
  15912. v2, changed = fastpathTV.DecMapUint64Int8V(*v, true, d)
  15913. if changed {
  15914. *v = v2
  15915. }
  15916. case map[uint64]int16:
  15917. fastpathTV.DecMapUint64Int16V(v, false, d)
  15918. case *map[uint64]int16:
  15919. var v2 map[uint64]int16
  15920. v2, changed = fastpathTV.DecMapUint64Int16V(*v, true, d)
  15921. if changed {
  15922. *v = v2
  15923. }
  15924. case map[uint64]int32:
  15925. fastpathTV.DecMapUint64Int32V(v, false, d)
  15926. case *map[uint64]int32:
  15927. var v2 map[uint64]int32
  15928. v2, changed = fastpathTV.DecMapUint64Int32V(*v, true, d)
  15929. if changed {
  15930. *v = v2
  15931. }
  15932. case map[uint64]int64:
  15933. fastpathTV.DecMapUint64Int64V(v, false, d)
  15934. case *map[uint64]int64:
  15935. var v2 map[uint64]int64
  15936. v2, changed = fastpathTV.DecMapUint64Int64V(*v, true, d)
  15937. if changed {
  15938. *v = v2
  15939. }
  15940. case map[uint64]float32:
  15941. fastpathTV.DecMapUint64Float32V(v, false, d)
  15942. case *map[uint64]float32:
  15943. var v2 map[uint64]float32
  15944. v2, changed = fastpathTV.DecMapUint64Float32V(*v, true, d)
  15945. if changed {
  15946. *v = v2
  15947. }
  15948. case map[uint64]float64:
  15949. fastpathTV.DecMapUint64Float64V(v, false, d)
  15950. case *map[uint64]float64:
  15951. var v2 map[uint64]float64
  15952. v2, changed = fastpathTV.DecMapUint64Float64V(*v, true, d)
  15953. if changed {
  15954. *v = v2
  15955. }
  15956. case map[uint64]bool:
  15957. fastpathTV.DecMapUint64BoolV(v, false, d)
  15958. case *map[uint64]bool:
  15959. var v2 map[uint64]bool
  15960. v2, changed = fastpathTV.DecMapUint64BoolV(*v, true, d)
  15961. if changed {
  15962. *v = v2
  15963. }
  15964. case map[uintptr]interface{}:
  15965. fastpathTV.DecMapUintptrIntfV(v, false, d)
  15966. case *map[uintptr]interface{}:
  15967. var v2 map[uintptr]interface{}
  15968. v2, changed = fastpathTV.DecMapUintptrIntfV(*v, true, d)
  15969. if changed {
  15970. *v = v2
  15971. }
  15972. case map[uintptr]string:
  15973. fastpathTV.DecMapUintptrStringV(v, false, d)
  15974. case *map[uintptr]string:
  15975. var v2 map[uintptr]string
  15976. v2, changed = fastpathTV.DecMapUintptrStringV(*v, true, d)
  15977. if changed {
  15978. *v = v2
  15979. }
  15980. case map[uintptr]uint:
  15981. fastpathTV.DecMapUintptrUintV(v, false, d)
  15982. case *map[uintptr]uint:
  15983. var v2 map[uintptr]uint
  15984. v2, changed = fastpathTV.DecMapUintptrUintV(*v, true, d)
  15985. if changed {
  15986. *v = v2
  15987. }
  15988. case map[uintptr]uint8:
  15989. fastpathTV.DecMapUintptrUint8V(v, false, d)
  15990. case *map[uintptr]uint8:
  15991. var v2 map[uintptr]uint8
  15992. v2, changed = fastpathTV.DecMapUintptrUint8V(*v, true, d)
  15993. if changed {
  15994. *v = v2
  15995. }
  15996. case map[uintptr]uint16:
  15997. fastpathTV.DecMapUintptrUint16V(v, false, d)
  15998. case *map[uintptr]uint16:
  15999. var v2 map[uintptr]uint16
  16000. v2, changed = fastpathTV.DecMapUintptrUint16V(*v, true, d)
  16001. if changed {
  16002. *v = v2
  16003. }
  16004. case map[uintptr]uint32:
  16005. fastpathTV.DecMapUintptrUint32V(v, false, d)
  16006. case *map[uintptr]uint32:
  16007. var v2 map[uintptr]uint32
  16008. v2, changed = fastpathTV.DecMapUintptrUint32V(*v, true, d)
  16009. if changed {
  16010. *v = v2
  16011. }
  16012. case map[uintptr]uint64:
  16013. fastpathTV.DecMapUintptrUint64V(v, false, d)
  16014. case *map[uintptr]uint64:
  16015. var v2 map[uintptr]uint64
  16016. v2, changed = fastpathTV.DecMapUintptrUint64V(*v, true, d)
  16017. if changed {
  16018. *v = v2
  16019. }
  16020. case map[uintptr]uintptr:
  16021. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  16022. case *map[uintptr]uintptr:
  16023. var v2 map[uintptr]uintptr
  16024. v2, changed = fastpathTV.DecMapUintptrUintptrV(*v, true, d)
  16025. if changed {
  16026. *v = v2
  16027. }
  16028. case map[uintptr]int:
  16029. fastpathTV.DecMapUintptrIntV(v, false, d)
  16030. case *map[uintptr]int:
  16031. var v2 map[uintptr]int
  16032. v2, changed = fastpathTV.DecMapUintptrIntV(*v, true, d)
  16033. if changed {
  16034. *v = v2
  16035. }
  16036. case map[uintptr]int8:
  16037. fastpathTV.DecMapUintptrInt8V(v, false, d)
  16038. case *map[uintptr]int8:
  16039. var v2 map[uintptr]int8
  16040. v2, changed = fastpathTV.DecMapUintptrInt8V(*v, true, d)
  16041. if changed {
  16042. *v = v2
  16043. }
  16044. case map[uintptr]int16:
  16045. fastpathTV.DecMapUintptrInt16V(v, false, d)
  16046. case *map[uintptr]int16:
  16047. var v2 map[uintptr]int16
  16048. v2, changed = fastpathTV.DecMapUintptrInt16V(*v, true, d)
  16049. if changed {
  16050. *v = v2
  16051. }
  16052. case map[uintptr]int32:
  16053. fastpathTV.DecMapUintptrInt32V(v, false, d)
  16054. case *map[uintptr]int32:
  16055. var v2 map[uintptr]int32
  16056. v2, changed = fastpathTV.DecMapUintptrInt32V(*v, true, d)
  16057. if changed {
  16058. *v = v2
  16059. }
  16060. case map[uintptr]int64:
  16061. fastpathTV.DecMapUintptrInt64V(v, false, d)
  16062. case *map[uintptr]int64:
  16063. var v2 map[uintptr]int64
  16064. v2, changed = fastpathTV.DecMapUintptrInt64V(*v, true, d)
  16065. if changed {
  16066. *v = v2
  16067. }
  16068. case map[uintptr]float32:
  16069. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  16070. case *map[uintptr]float32:
  16071. var v2 map[uintptr]float32
  16072. v2, changed = fastpathTV.DecMapUintptrFloat32V(*v, true, d)
  16073. if changed {
  16074. *v = v2
  16075. }
  16076. case map[uintptr]float64:
  16077. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  16078. case *map[uintptr]float64:
  16079. var v2 map[uintptr]float64
  16080. v2, changed = fastpathTV.DecMapUintptrFloat64V(*v, true, d)
  16081. if changed {
  16082. *v = v2
  16083. }
  16084. case map[uintptr]bool:
  16085. fastpathTV.DecMapUintptrBoolV(v, false, d)
  16086. case *map[uintptr]bool:
  16087. var v2 map[uintptr]bool
  16088. v2, changed = fastpathTV.DecMapUintptrBoolV(*v, true, d)
  16089. if changed {
  16090. *v = v2
  16091. }
  16092. case map[int]interface{}:
  16093. fastpathTV.DecMapIntIntfV(v, false, d)
  16094. case *map[int]interface{}:
  16095. var v2 map[int]interface{}
  16096. v2, changed = fastpathTV.DecMapIntIntfV(*v, true, d)
  16097. if changed {
  16098. *v = v2
  16099. }
  16100. case map[int]string:
  16101. fastpathTV.DecMapIntStringV(v, false, d)
  16102. case *map[int]string:
  16103. var v2 map[int]string
  16104. v2, changed = fastpathTV.DecMapIntStringV(*v, true, d)
  16105. if changed {
  16106. *v = v2
  16107. }
  16108. case map[int]uint:
  16109. fastpathTV.DecMapIntUintV(v, false, d)
  16110. case *map[int]uint:
  16111. var v2 map[int]uint
  16112. v2, changed = fastpathTV.DecMapIntUintV(*v, true, d)
  16113. if changed {
  16114. *v = v2
  16115. }
  16116. case map[int]uint8:
  16117. fastpathTV.DecMapIntUint8V(v, false, d)
  16118. case *map[int]uint8:
  16119. var v2 map[int]uint8
  16120. v2, changed = fastpathTV.DecMapIntUint8V(*v, true, d)
  16121. if changed {
  16122. *v = v2
  16123. }
  16124. case map[int]uint16:
  16125. fastpathTV.DecMapIntUint16V(v, false, d)
  16126. case *map[int]uint16:
  16127. var v2 map[int]uint16
  16128. v2, changed = fastpathTV.DecMapIntUint16V(*v, true, d)
  16129. if changed {
  16130. *v = v2
  16131. }
  16132. case map[int]uint32:
  16133. fastpathTV.DecMapIntUint32V(v, false, d)
  16134. case *map[int]uint32:
  16135. var v2 map[int]uint32
  16136. v2, changed = fastpathTV.DecMapIntUint32V(*v, true, d)
  16137. if changed {
  16138. *v = v2
  16139. }
  16140. case map[int]uint64:
  16141. fastpathTV.DecMapIntUint64V(v, false, d)
  16142. case *map[int]uint64:
  16143. var v2 map[int]uint64
  16144. v2, changed = fastpathTV.DecMapIntUint64V(*v, true, d)
  16145. if changed {
  16146. *v = v2
  16147. }
  16148. case map[int]uintptr:
  16149. fastpathTV.DecMapIntUintptrV(v, false, d)
  16150. case *map[int]uintptr:
  16151. var v2 map[int]uintptr
  16152. v2, changed = fastpathTV.DecMapIntUintptrV(*v, true, d)
  16153. if changed {
  16154. *v = v2
  16155. }
  16156. case map[int]int:
  16157. fastpathTV.DecMapIntIntV(v, false, d)
  16158. case *map[int]int:
  16159. var v2 map[int]int
  16160. v2, changed = fastpathTV.DecMapIntIntV(*v, true, d)
  16161. if changed {
  16162. *v = v2
  16163. }
  16164. case map[int]int8:
  16165. fastpathTV.DecMapIntInt8V(v, false, d)
  16166. case *map[int]int8:
  16167. var v2 map[int]int8
  16168. v2, changed = fastpathTV.DecMapIntInt8V(*v, true, d)
  16169. if changed {
  16170. *v = v2
  16171. }
  16172. case map[int]int16:
  16173. fastpathTV.DecMapIntInt16V(v, false, d)
  16174. case *map[int]int16:
  16175. var v2 map[int]int16
  16176. v2, changed = fastpathTV.DecMapIntInt16V(*v, true, d)
  16177. if changed {
  16178. *v = v2
  16179. }
  16180. case map[int]int32:
  16181. fastpathTV.DecMapIntInt32V(v, false, d)
  16182. case *map[int]int32:
  16183. var v2 map[int]int32
  16184. v2, changed = fastpathTV.DecMapIntInt32V(*v, true, d)
  16185. if changed {
  16186. *v = v2
  16187. }
  16188. case map[int]int64:
  16189. fastpathTV.DecMapIntInt64V(v, false, d)
  16190. case *map[int]int64:
  16191. var v2 map[int]int64
  16192. v2, changed = fastpathTV.DecMapIntInt64V(*v, true, d)
  16193. if changed {
  16194. *v = v2
  16195. }
  16196. case map[int]float32:
  16197. fastpathTV.DecMapIntFloat32V(v, false, d)
  16198. case *map[int]float32:
  16199. var v2 map[int]float32
  16200. v2, changed = fastpathTV.DecMapIntFloat32V(*v, true, d)
  16201. if changed {
  16202. *v = v2
  16203. }
  16204. case map[int]float64:
  16205. fastpathTV.DecMapIntFloat64V(v, false, d)
  16206. case *map[int]float64:
  16207. var v2 map[int]float64
  16208. v2, changed = fastpathTV.DecMapIntFloat64V(*v, true, d)
  16209. if changed {
  16210. *v = v2
  16211. }
  16212. case map[int]bool:
  16213. fastpathTV.DecMapIntBoolV(v, false, d)
  16214. case *map[int]bool:
  16215. var v2 map[int]bool
  16216. v2, changed = fastpathTV.DecMapIntBoolV(*v, true, d)
  16217. if changed {
  16218. *v = v2
  16219. }
  16220. case map[int8]interface{}:
  16221. fastpathTV.DecMapInt8IntfV(v, false, d)
  16222. case *map[int8]interface{}:
  16223. var v2 map[int8]interface{}
  16224. v2, changed = fastpathTV.DecMapInt8IntfV(*v, true, d)
  16225. if changed {
  16226. *v = v2
  16227. }
  16228. case map[int8]string:
  16229. fastpathTV.DecMapInt8StringV(v, false, d)
  16230. case *map[int8]string:
  16231. var v2 map[int8]string
  16232. v2, changed = fastpathTV.DecMapInt8StringV(*v, true, d)
  16233. if changed {
  16234. *v = v2
  16235. }
  16236. case map[int8]uint:
  16237. fastpathTV.DecMapInt8UintV(v, false, d)
  16238. case *map[int8]uint:
  16239. var v2 map[int8]uint
  16240. v2, changed = fastpathTV.DecMapInt8UintV(*v, true, d)
  16241. if changed {
  16242. *v = v2
  16243. }
  16244. case map[int8]uint8:
  16245. fastpathTV.DecMapInt8Uint8V(v, false, d)
  16246. case *map[int8]uint8:
  16247. var v2 map[int8]uint8
  16248. v2, changed = fastpathTV.DecMapInt8Uint8V(*v, true, d)
  16249. if changed {
  16250. *v = v2
  16251. }
  16252. case map[int8]uint16:
  16253. fastpathTV.DecMapInt8Uint16V(v, false, d)
  16254. case *map[int8]uint16:
  16255. var v2 map[int8]uint16
  16256. v2, changed = fastpathTV.DecMapInt8Uint16V(*v, true, d)
  16257. if changed {
  16258. *v = v2
  16259. }
  16260. case map[int8]uint32:
  16261. fastpathTV.DecMapInt8Uint32V(v, false, d)
  16262. case *map[int8]uint32:
  16263. var v2 map[int8]uint32
  16264. v2, changed = fastpathTV.DecMapInt8Uint32V(*v, true, d)
  16265. if changed {
  16266. *v = v2
  16267. }
  16268. case map[int8]uint64:
  16269. fastpathTV.DecMapInt8Uint64V(v, false, d)
  16270. case *map[int8]uint64:
  16271. var v2 map[int8]uint64
  16272. v2, changed = fastpathTV.DecMapInt8Uint64V(*v, true, d)
  16273. if changed {
  16274. *v = v2
  16275. }
  16276. case map[int8]uintptr:
  16277. fastpathTV.DecMapInt8UintptrV(v, false, d)
  16278. case *map[int8]uintptr:
  16279. var v2 map[int8]uintptr
  16280. v2, changed = fastpathTV.DecMapInt8UintptrV(*v, true, d)
  16281. if changed {
  16282. *v = v2
  16283. }
  16284. case map[int8]int:
  16285. fastpathTV.DecMapInt8IntV(v, false, d)
  16286. case *map[int8]int:
  16287. var v2 map[int8]int
  16288. v2, changed = fastpathTV.DecMapInt8IntV(*v, true, d)
  16289. if changed {
  16290. *v = v2
  16291. }
  16292. case map[int8]int8:
  16293. fastpathTV.DecMapInt8Int8V(v, false, d)
  16294. case *map[int8]int8:
  16295. var v2 map[int8]int8
  16296. v2, changed = fastpathTV.DecMapInt8Int8V(*v, true, d)
  16297. if changed {
  16298. *v = v2
  16299. }
  16300. case map[int8]int16:
  16301. fastpathTV.DecMapInt8Int16V(v, false, d)
  16302. case *map[int8]int16:
  16303. var v2 map[int8]int16
  16304. v2, changed = fastpathTV.DecMapInt8Int16V(*v, true, d)
  16305. if changed {
  16306. *v = v2
  16307. }
  16308. case map[int8]int32:
  16309. fastpathTV.DecMapInt8Int32V(v, false, d)
  16310. case *map[int8]int32:
  16311. var v2 map[int8]int32
  16312. v2, changed = fastpathTV.DecMapInt8Int32V(*v, true, d)
  16313. if changed {
  16314. *v = v2
  16315. }
  16316. case map[int8]int64:
  16317. fastpathTV.DecMapInt8Int64V(v, false, d)
  16318. case *map[int8]int64:
  16319. var v2 map[int8]int64
  16320. v2, changed = fastpathTV.DecMapInt8Int64V(*v, true, d)
  16321. if changed {
  16322. *v = v2
  16323. }
  16324. case map[int8]float32:
  16325. fastpathTV.DecMapInt8Float32V(v, false, d)
  16326. case *map[int8]float32:
  16327. var v2 map[int8]float32
  16328. v2, changed = fastpathTV.DecMapInt8Float32V(*v, true, d)
  16329. if changed {
  16330. *v = v2
  16331. }
  16332. case map[int8]float64:
  16333. fastpathTV.DecMapInt8Float64V(v, false, d)
  16334. case *map[int8]float64:
  16335. var v2 map[int8]float64
  16336. v2, changed = fastpathTV.DecMapInt8Float64V(*v, true, d)
  16337. if changed {
  16338. *v = v2
  16339. }
  16340. case map[int8]bool:
  16341. fastpathTV.DecMapInt8BoolV(v, false, d)
  16342. case *map[int8]bool:
  16343. var v2 map[int8]bool
  16344. v2, changed = fastpathTV.DecMapInt8BoolV(*v, true, d)
  16345. if changed {
  16346. *v = v2
  16347. }
  16348. case map[int16]interface{}:
  16349. fastpathTV.DecMapInt16IntfV(v, false, d)
  16350. case *map[int16]interface{}:
  16351. var v2 map[int16]interface{}
  16352. v2, changed = fastpathTV.DecMapInt16IntfV(*v, true, d)
  16353. if changed {
  16354. *v = v2
  16355. }
  16356. case map[int16]string:
  16357. fastpathTV.DecMapInt16StringV(v, false, d)
  16358. case *map[int16]string:
  16359. var v2 map[int16]string
  16360. v2, changed = fastpathTV.DecMapInt16StringV(*v, true, d)
  16361. if changed {
  16362. *v = v2
  16363. }
  16364. case map[int16]uint:
  16365. fastpathTV.DecMapInt16UintV(v, false, d)
  16366. case *map[int16]uint:
  16367. var v2 map[int16]uint
  16368. v2, changed = fastpathTV.DecMapInt16UintV(*v, true, d)
  16369. if changed {
  16370. *v = v2
  16371. }
  16372. case map[int16]uint8:
  16373. fastpathTV.DecMapInt16Uint8V(v, false, d)
  16374. case *map[int16]uint8:
  16375. var v2 map[int16]uint8
  16376. v2, changed = fastpathTV.DecMapInt16Uint8V(*v, true, d)
  16377. if changed {
  16378. *v = v2
  16379. }
  16380. case map[int16]uint16:
  16381. fastpathTV.DecMapInt16Uint16V(v, false, d)
  16382. case *map[int16]uint16:
  16383. var v2 map[int16]uint16
  16384. v2, changed = fastpathTV.DecMapInt16Uint16V(*v, true, d)
  16385. if changed {
  16386. *v = v2
  16387. }
  16388. case map[int16]uint32:
  16389. fastpathTV.DecMapInt16Uint32V(v, false, d)
  16390. case *map[int16]uint32:
  16391. var v2 map[int16]uint32
  16392. v2, changed = fastpathTV.DecMapInt16Uint32V(*v, true, d)
  16393. if changed {
  16394. *v = v2
  16395. }
  16396. case map[int16]uint64:
  16397. fastpathTV.DecMapInt16Uint64V(v, false, d)
  16398. case *map[int16]uint64:
  16399. var v2 map[int16]uint64
  16400. v2, changed = fastpathTV.DecMapInt16Uint64V(*v, true, d)
  16401. if changed {
  16402. *v = v2
  16403. }
  16404. case map[int16]uintptr:
  16405. fastpathTV.DecMapInt16UintptrV(v, false, d)
  16406. case *map[int16]uintptr:
  16407. var v2 map[int16]uintptr
  16408. v2, changed = fastpathTV.DecMapInt16UintptrV(*v, true, d)
  16409. if changed {
  16410. *v = v2
  16411. }
  16412. case map[int16]int:
  16413. fastpathTV.DecMapInt16IntV(v, false, d)
  16414. case *map[int16]int:
  16415. var v2 map[int16]int
  16416. v2, changed = fastpathTV.DecMapInt16IntV(*v, true, d)
  16417. if changed {
  16418. *v = v2
  16419. }
  16420. case map[int16]int8:
  16421. fastpathTV.DecMapInt16Int8V(v, false, d)
  16422. case *map[int16]int8:
  16423. var v2 map[int16]int8
  16424. v2, changed = fastpathTV.DecMapInt16Int8V(*v, true, d)
  16425. if changed {
  16426. *v = v2
  16427. }
  16428. case map[int16]int16:
  16429. fastpathTV.DecMapInt16Int16V(v, false, d)
  16430. case *map[int16]int16:
  16431. var v2 map[int16]int16
  16432. v2, changed = fastpathTV.DecMapInt16Int16V(*v, true, d)
  16433. if changed {
  16434. *v = v2
  16435. }
  16436. case map[int16]int32:
  16437. fastpathTV.DecMapInt16Int32V(v, false, d)
  16438. case *map[int16]int32:
  16439. var v2 map[int16]int32
  16440. v2, changed = fastpathTV.DecMapInt16Int32V(*v, true, d)
  16441. if changed {
  16442. *v = v2
  16443. }
  16444. case map[int16]int64:
  16445. fastpathTV.DecMapInt16Int64V(v, false, d)
  16446. case *map[int16]int64:
  16447. var v2 map[int16]int64
  16448. v2, changed = fastpathTV.DecMapInt16Int64V(*v, true, d)
  16449. if changed {
  16450. *v = v2
  16451. }
  16452. case map[int16]float32:
  16453. fastpathTV.DecMapInt16Float32V(v, false, d)
  16454. case *map[int16]float32:
  16455. var v2 map[int16]float32
  16456. v2, changed = fastpathTV.DecMapInt16Float32V(*v, true, d)
  16457. if changed {
  16458. *v = v2
  16459. }
  16460. case map[int16]float64:
  16461. fastpathTV.DecMapInt16Float64V(v, false, d)
  16462. case *map[int16]float64:
  16463. var v2 map[int16]float64
  16464. v2, changed = fastpathTV.DecMapInt16Float64V(*v, true, d)
  16465. if changed {
  16466. *v = v2
  16467. }
  16468. case map[int16]bool:
  16469. fastpathTV.DecMapInt16BoolV(v, false, d)
  16470. case *map[int16]bool:
  16471. var v2 map[int16]bool
  16472. v2, changed = fastpathTV.DecMapInt16BoolV(*v, true, d)
  16473. if changed {
  16474. *v = v2
  16475. }
  16476. case map[int32]interface{}:
  16477. fastpathTV.DecMapInt32IntfV(v, false, d)
  16478. case *map[int32]interface{}:
  16479. var v2 map[int32]interface{}
  16480. v2, changed = fastpathTV.DecMapInt32IntfV(*v, true, d)
  16481. if changed {
  16482. *v = v2
  16483. }
  16484. case map[int32]string:
  16485. fastpathTV.DecMapInt32StringV(v, false, d)
  16486. case *map[int32]string:
  16487. var v2 map[int32]string
  16488. v2, changed = fastpathTV.DecMapInt32StringV(*v, true, d)
  16489. if changed {
  16490. *v = v2
  16491. }
  16492. case map[int32]uint:
  16493. fastpathTV.DecMapInt32UintV(v, false, d)
  16494. case *map[int32]uint:
  16495. var v2 map[int32]uint
  16496. v2, changed = fastpathTV.DecMapInt32UintV(*v, true, d)
  16497. if changed {
  16498. *v = v2
  16499. }
  16500. case map[int32]uint8:
  16501. fastpathTV.DecMapInt32Uint8V(v, false, d)
  16502. case *map[int32]uint8:
  16503. var v2 map[int32]uint8
  16504. v2, changed = fastpathTV.DecMapInt32Uint8V(*v, true, d)
  16505. if changed {
  16506. *v = v2
  16507. }
  16508. case map[int32]uint16:
  16509. fastpathTV.DecMapInt32Uint16V(v, false, d)
  16510. case *map[int32]uint16:
  16511. var v2 map[int32]uint16
  16512. v2, changed = fastpathTV.DecMapInt32Uint16V(*v, true, d)
  16513. if changed {
  16514. *v = v2
  16515. }
  16516. case map[int32]uint32:
  16517. fastpathTV.DecMapInt32Uint32V(v, false, d)
  16518. case *map[int32]uint32:
  16519. var v2 map[int32]uint32
  16520. v2, changed = fastpathTV.DecMapInt32Uint32V(*v, true, d)
  16521. if changed {
  16522. *v = v2
  16523. }
  16524. case map[int32]uint64:
  16525. fastpathTV.DecMapInt32Uint64V(v, false, d)
  16526. case *map[int32]uint64:
  16527. var v2 map[int32]uint64
  16528. v2, changed = fastpathTV.DecMapInt32Uint64V(*v, true, d)
  16529. if changed {
  16530. *v = v2
  16531. }
  16532. case map[int32]uintptr:
  16533. fastpathTV.DecMapInt32UintptrV(v, false, d)
  16534. case *map[int32]uintptr:
  16535. var v2 map[int32]uintptr
  16536. v2, changed = fastpathTV.DecMapInt32UintptrV(*v, true, d)
  16537. if changed {
  16538. *v = v2
  16539. }
  16540. case map[int32]int:
  16541. fastpathTV.DecMapInt32IntV(v, false, d)
  16542. case *map[int32]int:
  16543. var v2 map[int32]int
  16544. v2, changed = fastpathTV.DecMapInt32IntV(*v, true, d)
  16545. if changed {
  16546. *v = v2
  16547. }
  16548. case map[int32]int8:
  16549. fastpathTV.DecMapInt32Int8V(v, false, d)
  16550. case *map[int32]int8:
  16551. var v2 map[int32]int8
  16552. v2, changed = fastpathTV.DecMapInt32Int8V(*v, true, d)
  16553. if changed {
  16554. *v = v2
  16555. }
  16556. case map[int32]int16:
  16557. fastpathTV.DecMapInt32Int16V(v, false, d)
  16558. case *map[int32]int16:
  16559. var v2 map[int32]int16
  16560. v2, changed = fastpathTV.DecMapInt32Int16V(*v, true, d)
  16561. if changed {
  16562. *v = v2
  16563. }
  16564. case map[int32]int32:
  16565. fastpathTV.DecMapInt32Int32V(v, false, d)
  16566. case *map[int32]int32:
  16567. var v2 map[int32]int32
  16568. v2, changed = fastpathTV.DecMapInt32Int32V(*v, true, d)
  16569. if changed {
  16570. *v = v2
  16571. }
  16572. case map[int32]int64:
  16573. fastpathTV.DecMapInt32Int64V(v, false, d)
  16574. case *map[int32]int64:
  16575. var v2 map[int32]int64
  16576. v2, changed = fastpathTV.DecMapInt32Int64V(*v, true, d)
  16577. if changed {
  16578. *v = v2
  16579. }
  16580. case map[int32]float32:
  16581. fastpathTV.DecMapInt32Float32V(v, false, d)
  16582. case *map[int32]float32:
  16583. var v2 map[int32]float32
  16584. v2, changed = fastpathTV.DecMapInt32Float32V(*v, true, d)
  16585. if changed {
  16586. *v = v2
  16587. }
  16588. case map[int32]float64:
  16589. fastpathTV.DecMapInt32Float64V(v, false, d)
  16590. case *map[int32]float64:
  16591. var v2 map[int32]float64
  16592. v2, changed = fastpathTV.DecMapInt32Float64V(*v, true, d)
  16593. if changed {
  16594. *v = v2
  16595. }
  16596. case map[int32]bool:
  16597. fastpathTV.DecMapInt32BoolV(v, false, d)
  16598. case *map[int32]bool:
  16599. var v2 map[int32]bool
  16600. v2, changed = fastpathTV.DecMapInt32BoolV(*v, true, d)
  16601. if changed {
  16602. *v = v2
  16603. }
  16604. case map[int64]interface{}:
  16605. fastpathTV.DecMapInt64IntfV(v, false, d)
  16606. case *map[int64]interface{}:
  16607. var v2 map[int64]interface{}
  16608. v2, changed = fastpathTV.DecMapInt64IntfV(*v, true, d)
  16609. if changed {
  16610. *v = v2
  16611. }
  16612. case map[int64]string:
  16613. fastpathTV.DecMapInt64StringV(v, false, d)
  16614. case *map[int64]string:
  16615. var v2 map[int64]string
  16616. v2, changed = fastpathTV.DecMapInt64StringV(*v, true, d)
  16617. if changed {
  16618. *v = v2
  16619. }
  16620. case map[int64]uint:
  16621. fastpathTV.DecMapInt64UintV(v, false, d)
  16622. case *map[int64]uint:
  16623. var v2 map[int64]uint
  16624. v2, changed = fastpathTV.DecMapInt64UintV(*v, true, d)
  16625. if changed {
  16626. *v = v2
  16627. }
  16628. case map[int64]uint8:
  16629. fastpathTV.DecMapInt64Uint8V(v, false, d)
  16630. case *map[int64]uint8:
  16631. var v2 map[int64]uint8
  16632. v2, changed = fastpathTV.DecMapInt64Uint8V(*v, true, d)
  16633. if changed {
  16634. *v = v2
  16635. }
  16636. case map[int64]uint16:
  16637. fastpathTV.DecMapInt64Uint16V(v, false, d)
  16638. case *map[int64]uint16:
  16639. var v2 map[int64]uint16
  16640. v2, changed = fastpathTV.DecMapInt64Uint16V(*v, true, d)
  16641. if changed {
  16642. *v = v2
  16643. }
  16644. case map[int64]uint32:
  16645. fastpathTV.DecMapInt64Uint32V(v, false, d)
  16646. case *map[int64]uint32:
  16647. var v2 map[int64]uint32
  16648. v2, changed = fastpathTV.DecMapInt64Uint32V(*v, true, d)
  16649. if changed {
  16650. *v = v2
  16651. }
  16652. case map[int64]uint64:
  16653. fastpathTV.DecMapInt64Uint64V(v, false, d)
  16654. case *map[int64]uint64:
  16655. var v2 map[int64]uint64
  16656. v2, changed = fastpathTV.DecMapInt64Uint64V(*v, true, d)
  16657. if changed {
  16658. *v = v2
  16659. }
  16660. case map[int64]uintptr:
  16661. fastpathTV.DecMapInt64UintptrV(v, false, d)
  16662. case *map[int64]uintptr:
  16663. var v2 map[int64]uintptr
  16664. v2, changed = fastpathTV.DecMapInt64UintptrV(*v, true, d)
  16665. if changed {
  16666. *v = v2
  16667. }
  16668. case map[int64]int:
  16669. fastpathTV.DecMapInt64IntV(v, false, d)
  16670. case *map[int64]int:
  16671. var v2 map[int64]int
  16672. v2, changed = fastpathTV.DecMapInt64IntV(*v, true, d)
  16673. if changed {
  16674. *v = v2
  16675. }
  16676. case map[int64]int8:
  16677. fastpathTV.DecMapInt64Int8V(v, false, d)
  16678. case *map[int64]int8:
  16679. var v2 map[int64]int8
  16680. v2, changed = fastpathTV.DecMapInt64Int8V(*v, true, d)
  16681. if changed {
  16682. *v = v2
  16683. }
  16684. case map[int64]int16:
  16685. fastpathTV.DecMapInt64Int16V(v, false, d)
  16686. case *map[int64]int16:
  16687. var v2 map[int64]int16
  16688. v2, changed = fastpathTV.DecMapInt64Int16V(*v, true, d)
  16689. if changed {
  16690. *v = v2
  16691. }
  16692. case map[int64]int32:
  16693. fastpathTV.DecMapInt64Int32V(v, false, d)
  16694. case *map[int64]int32:
  16695. var v2 map[int64]int32
  16696. v2, changed = fastpathTV.DecMapInt64Int32V(*v, true, d)
  16697. if changed {
  16698. *v = v2
  16699. }
  16700. case map[int64]int64:
  16701. fastpathTV.DecMapInt64Int64V(v, false, d)
  16702. case *map[int64]int64:
  16703. var v2 map[int64]int64
  16704. v2, changed = fastpathTV.DecMapInt64Int64V(*v, true, d)
  16705. if changed {
  16706. *v = v2
  16707. }
  16708. case map[int64]float32:
  16709. fastpathTV.DecMapInt64Float32V(v, false, d)
  16710. case *map[int64]float32:
  16711. var v2 map[int64]float32
  16712. v2, changed = fastpathTV.DecMapInt64Float32V(*v, true, d)
  16713. if changed {
  16714. *v = v2
  16715. }
  16716. case map[int64]float64:
  16717. fastpathTV.DecMapInt64Float64V(v, false, d)
  16718. case *map[int64]float64:
  16719. var v2 map[int64]float64
  16720. v2, changed = fastpathTV.DecMapInt64Float64V(*v, true, d)
  16721. if changed {
  16722. *v = v2
  16723. }
  16724. case map[int64]bool:
  16725. fastpathTV.DecMapInt64BoolV(v, false, d)
  16726. case *map[int64]bool:
  16727. var v2 map[int64]bool
  16728. v2, changed = fastpathTV.DecMapInt64BoolV(*v, true, d)
  16729. if changed {
  16730. *v = v2
  16731. }
  16732. case map[bool]interface{}:
  16733. fastpathTV.DecMapBoolIntfV(v, false, d)
  16734. case *map[bool]interface{}:
  16735. var v2 map[bool]interface{}
  16736. v2, changed = fastpathTV.DecMapBoolIntfV(*v, true, d)
  16737. if changed {
  16738. *v = v2
  16739. }
  16740. case map[bool]string:
  16741. fastpathTV.DecMapBoolStringV(v, false, d)
  16742. case *map[bool]string:
  16743. var v2 map[bool]string
  16744. v2, changed = fastpathTV.DecMapBoolStringV(*v, true, d)
  16745. if changed {
  16746. *v = v2
  16747. }
  16748. case map[bool]uint:
  16749. fastpathTV.DecMapBoolUintV(v, false, d)
  16750. case *map[bool]uint:
  16751. var v2 map[bool]uint
  16752. v2, changed = fastpathTV.DecMapBoolUintV(*v, true, d)
  16753. if changed {
  16754. *v = v2
  16755. }
  16756. case map[bool]uint8:
  16757. fastpathTV.DecMapBoolUint8V(v, false, d)
  16758. case *map[bool]uint8:
  16759. var v2 map[bool]uint8
  16760. v2, changed = fastpathTV.DecMapBoolUint8V(*v, true, d)
  16761. if changed {
  16762. *v = v2
  16763. }
  16764. case map[bool]uint16:
  16765. fastpathTV.DecMapBoolUint16V(v, false, d)
  16766. case *map[bool]uint16:
  16767. var v2 map[bool]uint16
  16768. v2, changed = fastpathTV.DecMapBoolUint16V(*v, true, d)
  16769. if changed {
  16770. *v = v2
  16771. }
  16772. case map[bool]uint32:
  16773. fastpathTV.DecMapBoolUint32V(v, false, d)
  16774. case *map[bool]uint32:
  16775. var v2 map[bool]uint32
  16776. v2, changed = fastpathTV.DecMapBoolUint32V(*v, true, d)
  16777. if changed {
  16778. *v = v2
  16779. }
  16780. case map[bool]uint64:
  16781. fastpathTV.DecMapBoolUint64V(v, false, d)
  16782. case *map[bool]uint64:
  16783. var v2 map[bool]uint64
  16784. v2, changed = fastpathTV.DecMapBoolUint64V(*v, true, d)
  16785. if changed {
  16786. *v = v2
  16787. }
  16788. case map[bool]uintptr:
  16789. fastpathTV.DecMapBoolUintptrV(v, false, d)
  16790. case *map[bool]uintptr:
  16791. var v2 map[bool]uintptr
  16792. v2, changed = fastpathTV.DecMapBoolUintptrV(*v, true, d)
  16793. if changed {
  16794. *v = v2
  16795. }
  16796. case map[bool]int:
  16797. fastpathTV.DecMapBoolIntV(v, false, d)
  16798. case *map[bool]int:
  16799. var v2 map[bool]int
  16800. v2, changed = fastpathTV.DecMapBoolIntV(*v, true, d)
  16801. if changed {
  16802. *v = v2
  16803. }
  16804. case map[bool]int8:
  16805. fastpathTV.DecMapBoolInt8V(v, false, d)
  16806. case *map[bool]int8:
  16807. var v2 map[bool]int8
  16808. v2, changed = fastpathTV.DecMapBoolInt8V(*v, true, d)
  16809. if changed {
  16810. *v = v2
  16811. }
  16812. case map[bool]int16:
  16813. fastpathTV.DecMapBoolInt16V(v, false, d)
  16814. case *map[bool]int16:
  16815. var v2 map[bool]int16
  16816. v2, changed = fastpathTV.DecMapBoolInt16V(*v, true, d)
  16817. if changed {
  16818. *v = v2
  16819. }
  16820. case map[bool]int32:
  16821. fastpathTV.DecMapBoolInt32V(v, false, d)
  16822. case *map[bool]int32:
  16823. var v2 map[bool]int32
  16824. v2, changed = fastpathTV.DecMapBoolInt32V(*v, true, d)
  16825. if changed {
  16826. *v = v2
  16827. }
  16828. case map[bool]int64:
  16829. fastpathTV.DecMapBoolInt64V(v, false, d)
  16830. case *map[bool]int64:
  16831. var v2 map[bool]int64
  16832. v2, changed = fastpathTV.DecMapBoolInt64V(*v, true, d)
  16833. if changed {
  16834. *v = v2
  16835. }
  16836. case map[bool]float32:
  16837. fastpathTV.DecMapBoolFloat32V(v, false, d)
  16838. case *map[bool]float32:
  16839. var v2 map[bool]float32
  16840. v2, changed = fastpathTV.DecMapBoolFloat32V(*v, true, d)
  16841. if changed {
  16842. *v = v2
  16843. }
  16844. case map[bool]float64:
  16845. fastpathTV.DecMapBoolFloat64V(v, false, d)
  16846. case *map[bool]float64:
  16847. var v2 map[bool]float64
  16848. v2, changed = fastpathTV.DecMapBoolFloat64V(*v, true, d)
  16849. if changed {
  16850. *v = v2
  16851. }
  16852. case map[bool]bool:
  16853. fastpathTV.DecMapBoolBoolV(v, false, d)
  16854. case *map[bool]bool:
  16855. var v2 map[bool]bool
  16856. v2, changed = fastpathTV.DecMapBoolBoolV(*v, true, d)
  16857. if changed {
  16858. *v = v2
  16859. }
  16860. default:
  16861. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  16862. return false
  16863. }
  16864. return true
  16865. }
  16866. func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool {
  16867. switch v := iv.(type) {
  16868. case *[]interface{}:
  16869. *v = nil
  16870. case *[]string:
  16871. *v = nil
  16872. case *[]float32:
  16873. *v = nil
  16874. case *[]float64:
  16875. *v = nil
  16876. case *[]uint:
  16877. *v = nil
  16878. case *[]uint8:
  16879. *v = nil
  16880. case *[]uint16:
  16881. *v = nil
  16882. case *[]uint32:
  16883. *v = nil
  16884. case *[]uint64:
  16885. *v = nil
  16886. case *[]uintptr:
  16887. *v = nil
  16888. case *[]int:
  16889. *v = nil
  16890. case *[]int8:
  16891. *v = nil
  16892. case *[]int16:
  16893. *v = nil
  16894. case *[]int32:
  16895. *v = nil
  16896. case *[]int64:
  16897. *v = nil
  16898. case *[]bool:
  16899. *v = nil
  16900. case *map[interface{}]interface{}:
  16901. *v = nil
  16902. case *map[interface{}]string:
  16903. *v = nil
  16904. case *map[interface{}]uint:
  16905. *v = nil
  16906. case *map[interface{}]uint8:
  16907. *v = nil
  16908. case *map[interface{}]uint16:
  16909. *v = nil
  16910. case *map[interface{}]uint32:
  16911. *v = nil
  16912. case *map[interface{}]uint64:
  16913. *v = nil
  16914. case *map[interface{}]uintptr:
  16915. *v = nil
  16916. case *map[interface{}]int:
  16917. *v = nil
  16918. case *map[interface{}]int8:
  16919. *v = nil
  16920. case *map[interface{}]int16:
  16921. *v = nil
  16922. case *map[interface{}]int32:
  16923. *v = nil
  16924. case *map[interface{}]int64:
  16925. *v = nil
  16926. case *map[interface{}]float32:
  16927. *v = nil
  16928. case *map[interface{}]float64:
  16929. *v = nil
  16930. case *map[interface{}]bool:
  16931. *v = nil
  16932. case *map[string]interface{}:
  16933. *v = nil
  16934. case *map[string]string:
  16935. *v = nil
  16936. case *map[string]uint:
  16937. *v = nil
  16938. case *map[string]uint8:
  16939. *v = nil
  16940. case *map[string]uint16:
  16941. *v = nil
  16942. case *map[string]uint32:
  16943. *v = nil
  16944. case *map[string]uint64:
  16945. *v = nil
  16946. case *map[string]uintptr:
  16947. *v = nil
  16948. case *map[string]int:
  16949. *v = nil
  16950. case *map[string]int8:
  16951. *v = nil
  16952. case *map[string]int16:
  16953. *v = nil
  16954. case *map[string]int32:
  16955. *v = nil
  16956. case *map[string]int64:
  16957. *v = nil
  16958. case *map[string]float32:
  16959. *v = nil
  16960. case *map[string]float64:
  16961. *v = nil
  16962. case *map[string]bool:
  16963. *v = nil
  16964. case *map[float32]interface{}:
  16965. *v = nil
  16966. case *map[float32]string:
  16967. *v = nil
  16968. case *map[float32]uint:
  16969. *v = nil
  16970. case *map[float32]uint8:
  16971. *v = nil
  16972. case *map[float32]uint16:
  16973. *v = nil
  16974. case *map[float32]uint32:
  16975. *v = nil
  16976. case *map[float32]uint64:
  16977. *v = nil
  16978. case *map[float32]uintptr:
  16979. *v = nil
  16980. case *map[float32]int:
  16981. *v = nil
  16982. case *map[float32]int8:
  16983. *v = nil
  16984. case *map[float32]int16:
  16985. *v = nil
  16986. case *map[float32]int32:
  16987. *v = nil
  16988. case *map[float32]int64:
  16989. *v = nil
  16990. case *map[float32]float32:
  16991. *v = nil
  16992. case *map[float32]float64:
  16993. *v = nil
  16994. case *map[float32]bool:
  16995. *v = nil
  16996. case *map[float64]interface{}:
  16997. *v = nil
  16998. case *map[float64]string:
  16999. *v = nil
  17000. case *map[float64]uint:
  17001. *v = nil
  17002. case *map[float64]uint8:
  17003. *v = nil
  17004. case *map[float64]uint16:
  17005. *v = nil
  17006. case *map[float64]uint32:
  17007. *v = nil
  17008. case *map[float64]uint64:
  17009. *v = nil
  17010. case *map[float64]uintptr:
  17011. *v = nil
  17012. case *map[float64]int:
  17013. *v = nil
  17014. case *map[float64]int8:
  17015. *v = nil
  17016. case *map[float64]int16:
  17017. *v = nil
  17018. case *map[float64]int32:
  17019. *v = nil
  17020. case *map[float64]int64:
  17021. *v = nil
  17022. case *map[float64]float32:
  17023. *v = nil
  17024. case *map[float64]float64:
  17025. *v = nil
  17026. case *map[float64]bool:
  17027. *v = nil
  17028. case *map[uint]interface{}:
  17029. *v = nil
  17030. case *map[uint]string:
  17031. *v = nil
  17032. case *map[uint]uint:
  17033. *v = nil
  17034. case *map[uint]uint8:
  17035. *v = nil
  17036. case *map[uint]uint16:
  17037. *v = nil
  17038. case *map[uint]uint32:
  17039. *v = nil
  17040. case *map[uint]uint64:
  17041. *v = nil
  17042. case *map[uint]uintptr:
  17043. *v = nil
  17044. case *map[uint]int:
  17045. *v = nil
  17046. case *map[uint]int8:
  17047. *v = nil
  17048. case *map[uint]int16:
  17049. *v = nil
  17050. case *map[uint]int32:
  17051. *v = nil
  17052. case *map[uint]int64:
  17053. *v = nil
  17054. case *map[uint]float32:
  17055. *v = nil
  17056. case *map[uint]float64:
  17057. *v = nil
  17058. case *map[uint]bool:
  17059. *v = nil
  17060. case *map[uint8]interface{}:
  17061. *v = nil
  17062. case *map[uint8]string:
  17063. *v = nil
  17064. case *map[uint8]uint:
  17065. *v = nil
  17066. case *map[uint8]uint8:
  17067. *v = nil
  17068. case *map[uint8]uint16:
  17069. *v = nil
  17070. case *map[uint8]uint32:
  17071. *v = nil
  17072. case *map[uint8]uint64:
  17073. *v = nil
  17074. case *map[uint8]uintptr:
  17075. *v = nil
  17076. case *map[uint8]int:
  17077. *v = nil
  17078. case *map[uint8]int8:
  17079. *v = nil
  17080. case *map[uint8]int16:
  17081. *v = nil
  17082. case *map[uint8]int32:
  17083. *v = nil
  17084. case *map[uint8]int64:
  17085. *v = nil
  17086. case *map[uint8]float32:
  17087. *v = nil
  17088. case *map[uint8]float64:
  17089. *v = nil
  17090. case *map[uint8]bool:
  17091. *v = nil
  17092. case *map[uint16]interface{}:
  17093. *v = nil
  17094. case *map[uint16]string:
  17095. *v = nil
  17096. case *map[uint16]uint:
  17097. *v = nil
  17098. case *map[uint16]uint8:
  17099. *v = nil
  17100. case *map[uint16]uint16:
  17101. *v = nil
  17102. case *map[uint16]uint32:
  17103. *v = nil
  17104. case *map[uint16]uint64:
  17105. *v = nil
  17106. case *map[uint16]uintptr:
  17107. *v = nil
  17108. case *map[uint16]int:
  17109. *v = nil
  17110. case *map[uint16]int8:
  17111. *v = nil
  17112. case *map[uint16]int16:
  17113. *v = nil
  17114. case *map[uint16]int32:
  17115. *v = nil
  17116. case *map[uint16]int64:
  17117. *v = nil
  17118. case *map[uint16]float32:
  17119. *v = nil
  17120. case *map[uint16]float64:
  17121. *v = nil
  17122. case *map[uint16]bool:
  17123. *v = nil
  17124. case *map[uint32]interface{}:
  17125. *v = nil
  17126. case *map[uint32]string:
  17127. *v = nil
  17128. case *map[uint32]uint:
  17129. *v = nil
  17130. case *map[uint32]uint8:
  17131. *v = nil
  17132. case *map[uint32]uint16:
  17133. *v = nil
  17134. case *map[uint32]uint32:
  17135. *v = nil
  17136. case *map[uint32]uint64:
  17137. *v = nil
  17138. case *map[uint32]uintptr:
  17139. *v = nil
  17140. case *map[uint32]int:
  17141. *v = nil
  17142. case *map[uint32]int8:
  17143. *v = nil
  17144. case *map[uint32]int16:
  17145. *v = nil
  17146. case *map[uint32]int32:
  17147. *v = nil
  17148. case *map[uint32]int64:
  17149. *v = nil
  17150. case *map[uint32]float32:
  17151. *v = nil
  17152. case *map[uint32]float64:
  17153. *v = nil
  17154. case *map[uint32]bool:
  17155. *v = nil
  17156. case *map[uint64]interface{}:
  17157. *v = nil
  17158. case *map[uint64]string:
  17159. *v = nil
  17160. case *map[uint64]uint:
  17161. *v = nil
  17162. case *map[uint64]uint8:
  17163. *v = nil
  17164. case *map[uint64]uint16:
  17165. *v = nil
  17166. case *map[uint64]uint32:
  17167. *v = nil
  17168. case *map[uint64]uint64:
  17169. *v = nil
  17170. case *map[uint64]uintptr:
  17171. *v = nil
  17172. case *map[uint64]int:
  17173. *v = nil
  17174. case *map[uint64]int8:
  17175. *v = nil
  17176. case *map[uint64]int16:
  17177. *v = nil
  17178. case *map[uint64]int32:
  17179. *v = nil
  17180. case *map[uint64]int64:
  17181. *v = nil
  17182. case *map[uint64]float32:
  17183. *v = nil
  17184. case *map[uint64]float64:
  17185. *v = nil
  17186. case *map[uint64]bool:
  17187. *v = nil
  17188. case *map[uintptr]interface{}:
  17189. *v = nil
  17190. case *map[uintptr]string:
  17191. *v = nil
  17192. case *map[uintptr]uint:
  17193. *v = nil
  17194. case *map[uintptr]uint8:
  17195. *v = nil
  17196. case *map[uintptr]uint16:
  17197. *v = nil
  17198. case *map[uintptr]uint32:
  17199. *v = nil
  17200. case *map[uintptr]uint64:
  17201. *v = nil
  17202. case *map[uintptr]uintptr:
  17203. *v = nil
  17204. case *map[uintptr]int:
  17205. *v = nil
  17206. case *map[uintptr]int8:
  17207. *v = nil
  17208. case *map[uintptr]int16:
  17209. *v = nil
  17210. case *map[uintptr]int32:
  17211. *v = nil
  17212. case *map[uintptr]int64:
  17213. *v = nil
  17214. case *map[uintptr]float32:
  17215. *v = nil
  17216. case *map[uintptr]float64:
  17217. *v = nil
  17218. case *map[uintptr]bool:
  17219. *v = nil
  17220. case *map[int]interface{}:
  17221. *v = nil
  17222. case *map[int]string:
  17223. *v = nil
  17224. case *map[int]uint:
  17225. *v = nil
  17226. case *map[int]uint8:
  17227. *v = nil
  17228. case *map[int]uint16:
  17229. *v = nil
  17230. case *map[int]uint32:
  17231. *v = nil
  17232. case *map[int]uint64:
  17233. *v = nil
  17234. case *map[int]uintptr:
  17235. *v = nil
  17236. case *map[int]int:
  17237. *v = nil
  17238. case *map[int]int8:
  17239. *v = nil
  17240. case *map[int]int16:
  17241. *v = nil
  17242. case *map[int]int32:
  17243. *v = nil
  17244. case *map[int]int64:
  17245. *v = nil
  17246. case *map[int]float32:
  17247. *v = nil
  17248. case *map[int]float64:
  17249. *v = nil
  17250. case *map[int]bool:
  17251. *v = nil
  17252. case *map[int8]interface{}:
  17253. *v = nil
  17254. case *map[int8]string:
  17255. *v = nil
  17256. case *map[int8]uint:
  17257. *v = nil
  17258. case *map[int8]uint8:
  17259. *v = nil
  17260. case *map[int8]uint16:
  17261. *v = nil
  17262. case *map[int8]uint32:
  17263. *v = nil
  17264. case *map[int8]uint64:
  17265. *v = nil
  17266. case *map[int8]uintptr:
  17267. *v = nil
  17268. case *map[int8]int:
  17269. *v = nil
  17270. case *map[int8]int8:
  17271. *v = nil
  17272. case *map[int8]int16:
  17273. *v = nil
  17274. case *map[int8]int32:
  17275. *v = nil
  17276. case *map[int8]int64:
  17277. *v = nil
  17278. case *map[int8]float32:
  17279. *v = nil
  17280. case *map[int8]float64:
  17281. *v = nil
  17282. case *map[int8]bool:
  17283. *v = nil
  17284. case *map[int16]interface{}:
  17285. *v = nil
  17286. case *map[int16]string:
  17287. *v = nil
  17288. case *map[int16]uint:
  17289. *v = nil
  17290. case *map[int16]uint8:
  17291. *v = nil
  17292. case *map[int16]uint16:
  17293. *v = nil
  17294. case *map[int16]uint32:
  17295. *v = nil
  17296. case *map[int16]uint64:
  17297. *v = nil
  17298. case *map[int16]uintptr:
  17299. *v = nil
  17300. case *map[int16]int:
  17301. *v = nil
  17302. case *map[int16]int8:
  17303. *v = nil
  17304. case *map[int16]int16:
  17305. *v = nil
  17306. case *map[int16]int32:
  17307. *v = nil
  17308. case *map[int16]int64:
  17309. *v = nil
  17310. case *map[int16]float32:
  17311. *v = nil
  17312. case *map[int16]float64:
  17313. *v = nil
  17314. case *map[int16]bool:
  17315. *v = nil
  17316. case *map[int32]interface{}:
  17317. *v = nil
  17318. case *map[int32]string:
  17319. *v = nil
  17320. case *map[int32]uint:
  17321. *v = nil
  17322. case *map[int32]uint8:
  17323. *v = nil
  17324. case *map[int32]uint16:
  17325. *v = nil
  17326. case *map[int32]uint32:
  17327. *v = nil
  17328. case *map[int32]uint64:
  17329. *v = nil
  17330. case *map[int32]uintptr:
  17331. *v = nil
  17332. case *map[int32]int:
  17333. *v = nil
  17334. case *map[int32]int8:
  17335. *v = nil
  17336. case *map[int32]int16:
  17337. *v = nil
  17338. case *map[int32]int32:
  17339. *v = nil
  17340. case *map[int32]int64:
  17341. *v = nil
  17342. case *map[int32]float32:
  17343. *v = nil
  17344. case *map[int32]float64:
  17345. *v = nil
  17346. case *map[int32]bool:
  17347. *v = nil
  17348. case *map[int64]interface{}:
  17349. *v = nil
  17350. case *map[int64]string:
  17351. *v = nil
  17352. case *map[int64]uint:
  17353. *v = nil
  17354. case *map[int64]uint8:
  17355. *v = nil
  17356. case *map[int64]uint16:
  17357. *v = nil
  17358. case *map[int64]uint32:
  17359. *v = nil
  17360. case *map[int64]uint64:
  17361. *v = nil
  17362. case *map[int64]uintptr:
  17363. *v = nil
  17364. case *map[int64]int:
  17365. *v = nil
  17366. case *map[int64]int8:
  17367. *v = nil
  17368. case *map[int64]int16:
  17369. *v = nil
  17370. case *map[int64]int32:
  17371. *v = nil
  17372. case *map[int64]int64:
  17373. *v = nil
  17374. case *map[int64]float32:
  17375. *v = nil
  17376. case *map[int64]float64:
  17377. *v = nil
  17378. case *map[int64]bool:
  17379. *v = nil
  17380. case *map[bool]interface{}:
  17381. *v = nil
  17382. case *map[bool]string:
  17383. *v = nil
  17384. case *map[bool]uint:
  17385. *v = nil
  17386. case *map[bool]uint8:
  17387. *v = nil
  17388. case *map[bool]uint16:
  17389. *v = nil
  17390. case *map[bool]uint32:
  17391. *v = nil
  17392. case *map[bool]uint64:
  17393. *v = nil
  17394. case *map[bool]uintptr:
  17395. *v = nil
  17396. case *map[bool]int:
  17397. *v = nil
  17398. case *map[bool]int8:
  17399. *v = nil
  17400. case *map[bool]int16:
  17401. *v = nil
  17402. case *map[bool]int32:
  17403. *v = nil
  17404. case *map[bool]int64:
  17405. *v = nil
  17406. case *map[bool]float32:
  17407. *v = nil
  17408. case *map[bool]float64:
  17409. *v = nil
  17410. case *map[bool]bool:
  17411. *v = nil
  17412. default:
  17413. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  17414. return false
  17415. }
  17416. return true
  17417. }
  17418. // -- -- fast path functions
  17419. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  17420. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17421. vp := rv2i(rv).(*[]interface{})
  17422. v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d)
  17423. if changed {
  17424. *vp = v
  17425. }
  17426. } else {
  17427. v := rv2i(rv).([]interface{})
  17428. v2, changed := fastpathTV.DecSliceIntfV(v, !array, d)
  17429. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17430. copy(v, v2)
  17431. }
  17432. }
  17433. }
  17434. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  17435. v, changed := f.DecSliceIntfV(*vp, true, d)
  17436. if changed {
  17437. *vp = v
  17438. }
  17439. }
  17440. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  17441. dd := d.d
  17442. slh, containerLenS := d.decSliceHelperStart()
  17443. if containerLenS == 0 {
  17444. if canChange {
  17445. if v == nil {
  17446. v = []interface{}{}
  17447. } else if len(v) != 0 {
  17448. v = v[:0]
  17449. }
  17450. changed = true
  17451. }
  17452. slh.End()
  17453. return v, changed
  17454. }
  17455. d.depthIncr()
  17456. hasLen := containerLenS > 0
  17457. var xlen int
  17458. if hasLen && canChange {
  17459. if containerLenS > cap(v) {
  17460. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17461. if xlen <= cap(v) {
  17462. v = v[:xlen]
  17463. } else {
  17464. v = make([]interface{}, xlen)
  17465. }
  17466. changed = true
  17467. } else if containerLenS != len(v) {
  17468. v = v[:containerLenS]
  17469. changed = true
  17470. }
  17471. }
  17472. var j int
  17473. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17474. if j == 0 && len(v) == 0 && canChange {
  17475. if hasLen {
  17476. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17477. } else {
  17478. xlen = 8
  17479. }
  17480. v = make([]interface{}, xlen)
  17481. changed = true
  17482. }
  17483. // if indefinite, etc, then expand the slice if necessary
  17484. var decodeIntoBlank bool
  17485. if j >= len(v) {
  17486. if canChange {
  17487. v = append(v, nil)
  17488. changed = true
  17489. } else {
  17490. d.arrayCannotExpand(len(v), j+1)
  17491. decodeIntoBlank = true
  17492. }
  17493. }
  17494. slh.ElemContainerState(j)
  17495. if decodeIntoBlank {
  17496. d.swallow()
  17497. } else if dd.TryDecodeAsNil() {
  17498. v[j] = nil
  17499. } else {
  17500. d.decode(&v[j])
  17501. }
  17502. }
  17503. if canChange {
  17504. if j < len(v) {
  17505. v = v[:j]
  17506. changed = true
  17507. } else if j == 0 && v == nil {
  17508. v = make([]interface{}, 0)
  17509. changed = true
  17510. }
  17511. }
  17512. slh.End()
  17513. d.depthDecr()
  17514. return v, changed
  17515. }
  17516. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  17517. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17518. vp := rv2i(rv).(*[]string)
  17519. v, changed := fastpathTV.DecSliceStringV(*vp, !array, d)
  17520. if changed {
  17521. *vp = v
  17522. }
  17523. } else {
  17524. v := rv2i(rv).([]string)
  17525. v2, changed := fastpathTV.DecSliceStringV(v, !array, d)
  17526. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17527. copy(v, v2)
  17528. }
  17529. }
  17530. }
  17531. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  17532. v, changed := f.DecSliceStringV(*vp, true, d)
  17533. if changed {
  17534. *vp = v
  17535. }
  17536. }
  17537. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  17538. dd := d.d
  17539. slh, containerLenS := d.decSliceHelperStart()
  17540. if containerLenS == 0 {
  17541. if canChange {
  17542. if v == nil {
  17543. v = []string{}
  17544. } else if len(v) != 0 {
  17545. v = v[:0]
  17546. }
  17547. changed = true
  17548. }
  17549. slh.End()
  17550. return v, changed
  17551. }
  17552. d.depthIncr()
  17553. hasLen := containerLenS > 0
  17554. var xlen int
  17555. if hasLen && canChange {
  17556. if containerLenS > cap(v) {
  17557. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17558. if xlen <= cap(v) {
  17559. v = v[:xlen]
  17560. } else {
  17561. v = make([]string, xlen)
  17562. }
  17563. changed = true
  17564. } else if containerLenS != len(v) {
  17565. v = v[:containerLenS]
  17566. changed = true
  17567. }
  17568. }
  17569. var j int
  17570. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17571. if j == 0 && len(v) == 0 && canChange {
  17572. if hasLen {
  17573. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17574. } else {
  17575. xlen = 8
  17576. }
  17577. v = make([]string, xlen)
  17578. changed = true
  17579. }
  17580. // if indefinite, etc, then expand the slice if necessary
  17581. var decodeIntoBlank bool
  17582. if j >= len(v) {
  17583. if canChange {
  17584. v = append(v, "")
  17585. changed = true
  17586. } else {
  17587. d.arrayCannotExpand(len(v), j+1)
  17588. decodeIntoBlank = true
  17589. }
  17590. }
  17591. slh.ElemContainerState(j)
  17592. if decodeIntoBlank {
  17593. d.swallow()
  17594. } else if dd.TryDecodeAsNil() {
  17595. v[j] = ""
  17596. } else {
  17597. v[j] = dd.DecodeString()
  17598. }
  17599. }
  17600. if canChange {
  17601. if j < len(v) {
  17602. v = v[:j]
  17603. changed = true
  17604. } else if j == 0 && v == nil {
  17605. v = make([]string, 0)
  17606. changed = true
  17607. }
  17608. }
  17609. slh.End()
  17610. d.depthDecr()
  17611. return v, changed
  17612. }
  17613. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  17614. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17615. vp := rv2i(rv).(*[]float32)
  17616. v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d)
  17617. if changed {
  17618. *vp = v
  17619. }
  17620. } else {
  17621. v := rv2i(rv).([]float32)
  17622. v2, changed := fastpathTV.DecSliceFloat32V(v, !array, d)
  17623. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17624. copy(v, v2)
  17625. }
  17626. }
  17627. }
  17628. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  17629. v, changed := f.DecSliceFloat32V(*vp, true, d)
  17630. if changed {
  17631. *vp = v
  17632. }
  17633. }
  17634. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  17635. dd := d.d
  17636. slh, containerLenS := d.decSliceHelperStart()
  17637. if containerLenS == 0 {
  17638. if canChange {
  17639. if v == nil {
  17640. v = []float32{}
  17641. } else if len(v) != 0 {
  17642. v = v[:0]
  17643. }
  17644. changed = true
  17645. }
  17646. slh.End()
  17647. return v, changed
  17648. }
  17649. d.depthIncr()
  17650. hasLen := containerLenS > 0
  17651. var xlen int
  17652. if hasLen && canChange {
  17653. if containerLenS > cap(v) {
  17654. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17655. if xlen <= cap(v) {
  17656. v = v[:xlen]
  17657. } else {
  17658. v = make([]float32, xlen)
  17659. }
  17660. changed = true
  17661. } else if containerLenS != len(v) {
  17662. v = v[:containerLenS]
  17663. changed = true
  17664. }
  17665. }
  17666. var j int
  17667. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17668. if j == 0 && len(v) == 0 && canChange {
  17669. if hasLen {
  17670. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17671. } else {
  17672. xlen = 8
  17673. }
  17674. v = make([]float32, xlen)
  17675. changed = true
  17676. }
  17677. // if indefinite, etc, then expand the slice if necessary
  17678. var decodeIntoBlank bool
  17679. if j >= len(v) {
  17680. if canChange {
  17681. v = append(v, 0)
  17682. changed = true
  17683. } else {
  17684. d.arrayCannotExpand(len(v), j+1)
  17685. decodeIntoBlank = true
  17686. }
  17687. }
  17688. slh.ElemContainerState(j)
  17689. if decodeIntoBlank {
  17690. d.swallow()
  17691. } else if dd.TryDecodeAsNil() {
  17692. v[j] = 0
  17693. } else {
  17694. v[j] = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  17695. }
  17696. }
  17697. if canChange {
  17698. if j < len(v) {
  17699. v = v[:j]
  17700. changed = true
  17701. } else if j == 0 && v == nil {
  17702. v = make([]float32, 0)
  17703. changed = true
  17704. }
  17705. }
  17706. slh.End()
  17707. d.depthDecr()
  17708. return v, changed
  17709. }
  17710. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  17711. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17712. vp := rv2i(rv).(*[]float64)
  17713. v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d)
  17714. if changed {
  17715. *vp = v
  17716. }
  17717. } else {
  17718. v := rv2i(rv).([]float64)
  17719. v2, changed := fastpathTV.DecSliceFloat64V(v, !array, d)
  17720. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17721. copy(v, v2)
  17722. }
  17723. }
  17724. }
  17725. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  17726. v, changed := f.DecSliceFloat64V(*vp, true, d)
  17727. if changed {
  17728. *vp = v
  17729. }
  17730. }
  17731. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  17732. dd := d.d
  17733. slh, containerLenS := d.decSliceHelperStart()
  17734. if containerLenS == 0 {
  17735. if canChange {
  17736. if v == nil {
  17737. v = []float64{}
  17738. } else if len(v) != 0 {
  17739. v = v[:0]
  17740. }
  17741. changed = true
  17742. }
  17743. slh.End()
  17744. return v, changed
  17745. }
  17746. d.depthIncr()
  17747. hasLen := containerLenS > 0
  17748. var xlen int
  17749. if hasLen && canChange {
  17750. if containerLenS > cap(v) {
  17751. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17752. if xlen <= cap(v) {
  17753. v = v[:xlen]
  17754. } else {
  17755. v = make([]float64, xlen)
  17756. }
  17757. changed = true
  17758. } else if containerLenS != len(v) {
  17759. v = v[:containerLenS]
  17760. changed = true
  17761. }
  17762. }
  17763. var j int
  17764. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17765. if j == 0 && len(v) == 0 && canChange {
  17766. if hasLen {
  17767. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17768. } else {
  17769. xlen = 8
  17770. }
  17771. v = make([]float64, xlen)
  17772. changed = true
  17773. }
  17774. // if indefinite, etc, then expand the slice if necessary
  17775. var decodeIntoBlank bool
  17776. if j >= len(v) {
  17777. if canChange {
  17778. v = append(v, 0)
  17779. changed = true
  17780. } else {
  17781. d.arrayCannotExpand(len(v), j+1)
  17782. decodeIntoBlank = true
  17783. }
  17784. }
  17785. slh.ElemContainerState(j)
  17786. if decodeIntoBlank {
  17787. d.swallow()
  17788. } else if dd.TryDecodeAsNil() {
  17789. v[j] = 0
  17790. } else {
  17791. v[j] = dd.DecodeFloat64()
  17792. }
  17793. }
  17794. if canChange {
  17795. if j < len(v) {
  17796. v = v[:j]
  17797. changed = true
  17798. } else if j == 0 && v == nil {
  17799. v = make([]float64, 0)
  17800. changed = true
  17801. }
  17802. }
  17803. slh.End()
  17804. d.depthDecr()
  17805. return v, changed
  17806. }
  17807. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  17808. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17809. vp := rv2i(rv).(*[]uint)
  17810. v, changed := fastpathTV.DecSliceUintV(*vp, !array, d)
  17811. if changed {
  17812. *vp = v
  17813. }
  17814. } else {
  17815. v := rv2i(rv).([]uint)
  17816. v2, changed := fastpathTV.DecSliceUintV(v, !array, d)
  17817. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17818. copy(v, v2)
  17819. }
  17820. }
  17821. }
  17822. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  17823. v, changed := f.DecSliceUintV(*vp, true, d)
  17824. if changed {
  17825. *vp = v
  17826. }
  17827. }
  17828. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  17829. dd := d.d
  17830. slh, containerLenS := d.decSliceHelperStart()
  17831. if containerLenS == 0 {
  17832. if canChange {
  17833. if v == nil {
  17834. v = []uint{}
  17835. } else if len(v) != 0 {
  17836. v = v[:0]
  17837. }
  17838. changed = true
  17839. }
  17840. slh.End()
  17841. return v, changed
  17842. }
  17843. d.depthIncr()
  17844. hasLen := containerLenS > 0
  17845. var xlen int
  17846. if hasLen && canChange {
  17847. if containerLenS > cap(v) {
  17848. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17849. if xlen <= cap(v) {
  17850. v = v[:xlen]
  17851. } else {
  17852. v = make([]uint, xlen)
  17853. }
  17854. changed = true
  17855. } else if containerLenS != len(v) {
  17856. v = v[:containerLenS]
  17857. changed = true
  17858. }
  17859. }
  17860. var j int
  17861. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17862. if j == 0 && len(v) == 0 && canChange {
  17863. if hasLen {
  17864. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17865. } else {
  17866. xlen = 8
  17867. }
  17868. v = make([]uint, xlen)
  17869. changed = true
  17870. }
  17871. // if indefinite, etc, then expand the slice if necessary
  17872. var decodeIntoBlank bool
  17873. if j >= len(v) {
  17874. if canChange {
  17875. v = append(v, 0)
  17876. changed = true
  17877. } else {
  17878. d.arrayCannotExpand(len(v), j+1)
  17879. decodeIntoBlank = true
  17880. }
  17881. }
  17882. slh.ElemContainerState(j)
  17883. if decodeIntoBlank {
  17884. d.swallow()
  17885. } else if dd.TryDecodeAsNil() {
  17886. v[j] = 0
  17887. } else {
  17888. v[j] = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  17889. }
  17890. }
  17891. if canChange {
  17892. if j < len(v) {
  17893. v = v[:j]
  17894. changed = true
  17895. } else if j == 0 && v == nil {
  17896. v = make([]uint, 0)
  17897. changed = true
  17898. }
  17899. }
  17900. slh.End()
  17901. d.depthDecr()
  17902. return v, changed
  17903. }
  17904. func (d *Decoder) fastpathDecSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  17905. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17906. vp := rv2i(rv).(*[]uint8)
  17907. v, changed := fastpathTV.DecSliceUint8V(*vp, !array, d)
  17908. if changed {
  17909. *vp = v
  17910. }
  17911. } else {
  17912. v := rv2i(rv).([]uint8)
  17913. v2, changed := fastpathTV.DecSliceUint8V(v, !array, d)
  17914. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17915. copy(v, v2)
  17916. }
  17917. }
  17918. }
  17919. func (f fastpathT) DecSliceUint8X(vp *[]uint8, d *Decoder) {
  17920. v, changed := f.DecSliceUint8V(*vp, true, d)
  17921. if changed {
  17922. *vp = v
  17923. }
  17924. }
  17925. func (_ fastpathT) DecSliceUint8V(v []uint8, canChange bool, d *Decoder) (_ []uint8, changed bool) {
  17926. dd := d.d
  17927. slh, containerLenS := d.decSliceHelperStart()
  17928. if containerLenS == 0 {
  17929. if canChange {
  17930. if v == nil {
  17931. v = []uint8{}
  17932. } else if len(v) != 0 {
  17933. v = v[:0]
  17934. }
  17935. changed = true
  17936. }
  17937. slh.End()
  17938. return v, changed
  17939. }
  17940. d.depthIncr()
  17941. hasLen := containerLenS > 0
  17942. var xlen int
  17943. if hasLen && canChange {
  17944. if containerLenS > cap(v) {
  17945. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17946. if xlen <= cap(v) {
  17947. v = v[:xlen]
  17948. } else {
  17949. v = make([]uint8, xlen)
  17950. }
  17951. changed = true
  17952. } else if containerLenS != len(v) {
  17953. v = v[:containerLenS]
  17954. changed = true
  17955. }
  17956. }
  17957. var j int
  17958. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17959. if j == 0 && len(v) == 0 && canChange {
  17960. if hasLen {
  17961. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17962. } else {
  17963. xlen = 8
  17964. }
  17965. v = make([]uint8, xlen)
  17966. changed = true
  17967. }
  17968. // if indefinite, etc, then expand the slice if necessary
  17969. var decodeIntoBlank bool
  17970. if j >= len(v) {
  17971. if canChange {
  17972. v = append(v, 0)
  17973. changed = true
  17974. } else {
  17975. d.arrayCannotExpand(len(v), j+1)
  17976. decodeIntoBlank = true
  17977. }
  17978. }
  17979. slh.ElemContainerState(j)
  17980. if decodeIntoBlank {
  17981. d.swallow()
  17982. } else if dd.TryDecodeAsNil() {
  17983. v[j] = 0
  17984. } else {
  17985. v[j] = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  17986. }
  17987. }
  17988. if canChange {
  17989. if j < len(v) {
  17990. v = v[:j]
  17991. changed = true
  17992. } else if j == 0 && v == nil {
  17993. v = make([]uint8, 0)
  17994. changed = true
  17995. }
  17996. }
  17997. slh.End()
  17998. d.depthDecr()
  17999. return v, changed
  18000. }
  18001. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  18002. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18003. vp := rv2i(rv).(*[]uint16)
  18004. v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d)
  18005. if changed {
  18006. *vp = v
  18007. }
  18008. } else {
  18009. v := rv2i(rv).([]uint16)
  18010. v2, changed := fastpathTV.DecSliceUint16V(v, !array, d)
  18011. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18012. copy(v, v2)
  18013. }
  18014. }
  18015. }
  18016. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  18017. v, changed := f.DecSliceUint16V(*vp, true, d)
  18018. if changed {
  18019. *vp = v
  18020. }
  18021. }
  18022. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  18023. dd := d.d
  18024. slh, containerLenS := d.decSliceHelperStart()
  18025. if containerLenS == 0 {
  18026. if canChange {
  18027. if v == nil {
  18028. v = []uint16{}
  18029. } else if len(v) != 0 {
  18030. v = v[:0]
  18031. }
  18032. changed = true
  18033. }
  18034. slh.End()
  18035. return v, changed
  18036. }
  18037. d.depthIncr()
  18038. hasLen := containerLenS > 0
  18039. var xlen int
  18040. if hasLen && canChange {
  18041. if containerLenS > cap(v) {
  18042. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18043. if xlen <= cap(v) {
  18044. v = v[:xlen]
  18045. } else {
  18046. v = make([]uint16, xlen)
  18047. }
  18048. changed = true
  18049. } else if containerLenS != len(v) {
  18050. v = v[:containerLenS]
  18051. changed = true
  18052. }
  18053. }
  18054. var j int
  18055. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18056. if j == 0 && len(v) == 0 && canChange {
  18057. if hasLen {
  18058. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18059. } else {
  18060. xlen = 8
  18061. }
  18062. v = make([]uint16, xlen)
  18063. changed = true
  18064. }
  18065. // if indefinite, etc, then expand the slice if necessary
  18066. var decodeIntoBlank bool
  18067. if j >= len(v) {
  18068. if canChange {
  18069. v = append(v, 0)
  18070. changed = true
  18071. } else {
  18072. d.arrayCannotExpand(len(v), j+1)
  18073. decodeIntoBlank = true
  18074. }
  18075. }
  18076. slh.ElemContainerState(j)
  18077. if decodeIntoBlank {
  18078. d.swallow()
  18079. } else if dd.TryDecodeAsNil() {
  18080. v[j] = 0
  18081. } else {
  18082. v[j] = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  18083. }
  18084. }
  18085. if canChange {
  18086. if j < len(v) {
  18087. v = v[:j]
  18088. changed = true
  18089. } else if j == 0 && v == nil {
  18090. v = make([]uint16, 0)
  18091. changed = true
  18092. }
  18093. }
  18094. slh.End()
  18095. d.depthDecr()
  18096. return v, changed
  18097. }
  18098. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  18099. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18100. vp := rv2i(rv).(*[]uint32)
  18101. v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d)
  18102. if changed {
  18103. *vp = v
  18104. }
  18105. } else {
  18106. v := rv2i(rv).([]uint32)
  18107. v2, changed := fastpathTV.DecSliceUint32V(v, !array, d)
  18108. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18109. copy(v, v2)
  18110. }
  18111. }
  18112. }
  18113. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  18114. v, changed := f.DecSliceUint32V(*vp, true, d)
  18115. if changed {
  18116. *vp = v
  18117. }
  18118. }
  18119. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  18120. dd := d.d
  18121. slh, containerLenS := d.decSliceHelperStart()
  18122. if containerLenS == 0 {
  18123. if canChange {
  18124. if v == nil {
  18125. v = []uint32{}
  18126. } else if len(v) != 0 {
  18127. v = v[:0]
  18128. }
  18129. changed = true
  18130. }
  18131. slh.End()
  18132. return v, changed
  18133. }
  18134. d.depthIncr()
  18135. hasLen := containerLenS > 0
  18136. var xlen int
  18137. if hasLen && canChange {
  18138. if containerLenS > cap(v) {
  18139. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18140. if xlen <= cap(v) {
  18141. v = v[:xlen]
  18142. } else {
  18143. v = make([]uint32, xlen)
  18144. }
  18145. changed = true
  18146. } else if containerLenS != len(v) {
  18147. v = v[:containerLenS]
  18148. changed = true
  18149. }
  18150. }
  18151. var j int
  18152. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18153. if j == 0 && len(v) == 0 && canChange {
  18154. if hasLen {
  18155. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18156. } else {
  18157. xlen = 8
  18158. }
  18159. v = make([]uint32, xlen)
  18160. changed = true
  18161. }
  18162. // if indefinite, etc, then expand the slice if necessary
  18163. var decodeIntoBlank bool
  18164. if j >= len(v) {
  18165. if canChange {
  18166. v = append(v, 0)
  18167. changed = true
  18168. } else {
  18169. d.arrayCannotExpand(len(v), j+1)
  18170. decodeIntoBlank = true
  18171. }
  18172. }
  18173. slh.ElemContainerState(j)
  18174. if decodeIntoBlank {
  18175. d.swallow()
  18176. } else if dd.TryDecodeAsNil() {
  18177. v[j] = 0
  18178. } else {
  18179. v[j] = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  18180. }
  18181. }
  18182. if canChange {
  18183. if j < len(v) {
  18184. v = v[:j]
  18185. changed = true
  18186. } else if j == 0 && v == nil {
  18187. v = make([]uint32, 0)
  18188. changed = true
  18189. }
  18190. }
  18191. slh.End()
  18192. d.depthDecr()
  18193. return v, changed
  18194. }
  18195. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  18196. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18197. vp := rv2i(rv).(*[]uint64)
  18198. v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d)
  18199. if changed {
  18200. *vp = v
  18201. }
  18202. } else {
  18203. v := rv2i(rv).([]uint64)
  18204. v2, changed := fastpathTV.DecSliceUint64V(v, !array, d)
  18205. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18206. copy(v, v2)
  18207. }
  18208. }
  18209. }
  18210. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  18211. v, changed := f.DecSliceUint64V(*vp, true, d)
  18212. if changed {
  18213. *vp = v
  18214. }
  18215. }
  18216. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  18217. dd := d.d
  18218. slh, containerLenS := d.decSliceHelperStart()
  18219. if containerLenS == 0 {
  18220. if canChange {
  18221. if v == nil {
  18222. v = []uint64{}
  18223. } else if len(v) != 0 {
  18224. v = v[:0]
  18225. }
  18226. changed = true
  18227. }
  18228. slh.End()
  18229. return v, changed
  18230. }
  18231. d.depthIncr()
  18232. hasLen := containerLenS > 0
  18233. var xlen int
  18234. if hasLen && canChange {
  18235. if containerLenS > cap(v) {
  18236. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18237. if xlen <= cap(v) {
  18238. v = v[:xlen]
  18239. } else {
  18240. v = make([]uint64, xlen)
  18241. }
  18242. changed = true
  18243. } else if containerLenS != len(v) {
  18244. v = v[:containerLenS]
  18245. changed = true
  18246. }
  18247. }
  18248. var j int
  18249. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18250. if j == 0 && len(v) == 0 && canChange {
  18251. if hasLen {
  18252. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18253. } else {
  18254. xlen = 8
  18255. }
  18256. v = make([]uint64, xlen)
  18257. changed = true
  18258. }
  18259. // if indefinite, etc, then expand the slice if necessary
  18260. var decodeIntoBlank bool
  18261. if j >= len(v) {
  18262. if canChange {
  18263. v = append(v, 0)
  18264. changed = true
  18265. } else {
  18266. d.arrayCannotExpand(len(v), j+1)
  18267. decodeIntoBlank = true
  18268. }
  18269. }
  18270. slh.ElemContainerState(j)
  18271. if decodeIntoBlank {
  18272. d.swallow()
  18273. } else if dd.TryDecodeAsNil() {
  18274. v[j] = 0
  18275. } else {
  18276. v[j] = dd.DecodeUint64()
  18277. }
  18278. }
  18279. if canChange {
  18280. if j < len(v) {
  18281. v = v[:j]
  18282. changed = true
  18283. } else if j == 0 && v == nil {
  18284. v = make([]uint64, 0)
  18285. changed = true
  18286. }
  18287. }
  18288. slh.End()
  18289. d.depthDecr()
  18290. return v, changed
  18291. }
  18292. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  18293. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18294. vp := rv2i(rv).(*[]uintptr)
  18295. v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d)
  18296. if changed {
  18297. *vp = v
  18298. }
  18299. } else {
  18300. v := rv2i(rv).([]uintptr)
  18301. v2, changed := fastpathTV.DecSliceUintptrV(v, !array, d)
  18302. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18303. copy(v, v2)
  18304. }
  18305. }
  18306. }
  18307. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  18308. v, changed := f.DecSliceUintptrV(*vp, true, d)
  18309. if changed {
  18310. *vp = v
  18311. }
  18312. }
  18313. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  18314. dd := d.d
  18315. slh, containerLenS := d.decSliceHelperStart()
  18316. if containerLenS == 0 {
  18317. if canChange {
  18318. if v == nil {
  18319. v = []uintptr{}
  18320. } else if len(v) != 0 {
  18321. v = v[:0]
  18322. }
  18323. changed = true
  18324. }
  18325. slh.End()
  18326. return v, changed
  18327. }
  18328. d.depthIncr()
  18329. hasLen := containerLenS > 0
  18330. var xlen int
  18331. if hasLen && canChange {
  18332. if containerLenS > cap(v) {
  18333. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18334. if xlen <= cap(v) {
  18335. v = v[:xlen]
  18336. } else {
  18337. v = make([]uintptr, xlen)
  18338. }
  18339. changed = true
  18340. } else if containerLenS != len(v) {
  18341. v = v[:containerLenS]
  18342. changed = true
  18343. }
  18344. }
  18345. var j int
  18346. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18347. if j == 0 && len(v) == 0 && canChange {
  18348. if hasLen {
  18349. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18350. } else {
  18351. xlen = 8
  18352. }
  18353. v = make([]uintptr, xlen)
  18354. changed = true
  18355. }
  18356. // if indefinite, etc, then expand the slice if necessary
  18357. var decodeIntoBlank bool
  18358. if j >= len(v) {
  18359. if canChange {
  18360. v = append(v, 0)
  18361. changed = true
  18362. } else {
  18363. d.arrayCannotExpand(len(v), j+1)
  18364. decodeIntoBlank = true
  18365. }
  18366. }
  18367. slh.ElemContainerState(j)
  18368. if decodeIntoBlank {
  18369. d.swallow()
  18370. } else if dd.TryDecodeAsNil() {
  18371. v[j] = 0
  18372. } else {
  18373. v[j] = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  18374. }
  18375. }
  18376. if canChange {
  18377. if j < len(v) {
  18378. v = v[:j]
  18379. changed = true
  18380. } else if j == 0 && v == nil {
  18381. v = make([]uintptr, 0)
  18382. changed = true
  18383. }
  18384. }
  18385. slh.End()
  18386. d.depthDecr()
  18387. return v, changed
  18388. }
  18389. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  18390. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18391. vp := rv2i(rv).(*[]int)
  18392. v, changed := fastpathTV.DecSliceIntV(*vp, !array, d)
  18393. if changed {
  18394. *vp = v
  18395. }
  18396. } else {
  18397. v := rv2i(rv).([]int)
  18398. v2, changed := fastpathTV.DecSliceIntV(v, !array, d)
  18399. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18400. copy(v, v2)
  18401. }
  18402. }
  18403. }
  18404. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  18405. v, changed := f.DecSliceIntV(*vp, true, d)
  18406. if changed {
  18407. *vp = v
  18408. }
  18409. }
  18410. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  18411. dd := d.d
  18412. slh, containerLenS := d.decSliceHelperStart()
  18413. if containerLenS == 0 {
  18414. if canChange {
  18415. if v == nil {
  18416. v = []int{}
  18417. } else if len(v) != 0 {
  18418. v = v[:0]
  18419. }
  18420. changed = true
  18421. }
  18422. slh.End()
  18423. return v, changed
  18424. }
  18425. d.depthIncr()
  18426. hasLen := containerLenS > 0
  18427. var xlen int
  18428. if hasLen && canChange {
  18429. if containerLenS > cap(v) {
  18430. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18431. if xlen <= cap(v) {
  18432. v = v[:xlen]
  18433. } else {
  18434. v = make([]int, xlen)
  18435. }
  18436. changed = true
  18437. } else if containerLenS != len(v) {
  18438. v = v[:containerLenS]
  18439. changed = true
  18440. }
  18441. }
  18442. var j int
  18443. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18444. if j == 0 && len(v) == 0 && canChange {
  18445. if hasLen {
  18446. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18447. } else {
  18448. xlen = 8
  18449. }
  18450. v = make([]int, xlen)
  18451. changed = true
  18452. }
  18453. // if indefinite, etc, then expand the slice if necessary
  18454. var decodeIntoBlank bool
  18455. if j >= len(v) {
  18456. if canChange {
  18457. v = append(v, 0)
  18458. changed = true
  18459. } else {
  18460. d.arrayCannotExpand(len(v), j+1)
  18461. decodeIntoBlank = true
  18462. }
  18463. }
  18464. slh.ElemContainerState(j)
  18465. if decodeIntoBlank {
  18466. d.swallow()
  18467. } else if dd.TryDecodeAsNil() {
  18468. v[j] = 0
  18469. } else {
  18470. v[j] = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  18471. }
  18472. }
  18473. if canChange {
  18474. if j < len(v) {
  18475. v = v[:j]
  18476. changed = true
  18477. } else if j == 0 && v == nil {
  18478. v = make([]int, 0)
  18479. changed = true
  18480. }
  18481. }
  18482. slh.End()
  18483. d.depthDecr()
  18484. return v, changed
  18485. }
  18486. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  18487. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18488. vp := rv2i(rv).(*[]int8)
  18489. v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d)
  18490. if changed {
  18491. *vp = v
  18492. }
  18493. } else {
  18494. v := rv2i(rv).([]int8)
  18495. v2, changed := fastpathTV.DecSliceInt8V(v, !array, d)
  18496. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18497. copy(v, v2)
  18498. }
  18499. }
  18500. }
  18501. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  18502. v, changed := f.DecSliceInt8V(*vp, true, d)
  18503. if changed {
  18504. *vp = v
  18505. }
  18506. }
  18507. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  18508. dd := d.d
  18509. slh, containerLenS := d.decSliceHelperStart()
  18510. if containerLenS == 0 {
  18511. if canChange {
  18512. if v == nil {
  18513. v = []int8{}
  18514. } else if len(v) != 0 {
  18515. v = v[:0]
  18516. }
  18517. changed = true
  18518. }
  18519. slh.End()
  18520. return v, changed
  18521. }
  18522. d.depthIncr()
  18523. hasLen := containerLenS > 0
  18524. var xlen int
  18525. if hasLen && canChange {
  18526. if containerLenS > cap(v) {
  18527. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18528. if xlen <= cap(v) {
  18529. v = v[:xlen]
  18530. } else {
  18531. v = make([]int8, xlen)
  18532. }
  18533. changed = true
  18534. } else if containerLenS != len(v) {
  18535. v = v[:containerLenS]
  18536. changed = true
  18537. }
  18538. }
  18539. var j int
  18540. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18541. if j == 0 && len(v) == 0 && canChange {
  18542. if hasLen {
  18543. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18544. } else {
  18545. xlen = 8
  18546. }
  18547. v = make([]int8, xlen)
  18548. changed = true
  18549. }
  18550. // if indefinite, etc, then expand the slice if necessary
  18551. var decodeIntoBlank bool
  18552. if j >= len(v) {
  18553. if canChange {
  18554. v = append(v, 0)
  18555. changed = true
  18556. } else {
  18557. d.arrayCannotExpand(len(v), j+1)
  18558. decodeIntoBlank = true
  18559. }
  18560. }
  18561. slh.ElemContainerState(j)
  18562. if decodeIntoBlank {
  18563. d.swallow()
  18564. } else if dd.TryDecodeAsNil() {
  18565. v[j] = 0
  18566. } else {
  18567. v[j] = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  18568. }
  18569. }
  18570. if canChange {
  18571. if j < len(v) {
  18572. v = v[:j]
  18573. changed = true
  18574. } else if j == 0 && v == nil {
  18575. v = make([]int8, 0)
  18576. changed = true
  18577. }
  18578. }
  18579. slh.End()
  18580. d.depthDecr()
  18581. return v, changed
  18582. }
  18583. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  18584. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18585. vp := rv2i(rv).(*[]int16)
  18586. v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d)
  18587. if changed {
  18588. *vp = v
  18589. }
  18590. } else {
  18591. v := rv2i(rv).([]int16)
  18592. v2, changed := fastpathTV.DecSliceInt16V(v, !array, d)
  18593. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18594. copy(v, v2)
  18595. }
  18596. }
  18597. }
  18598. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  18599. v, changed := f.DecSliceInt16V(*vp, true, d)
  18600. if changed {
  18601. *vp = v
  18602. }
  18603. }
  18604. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  18605. dd := d.d
  18606. slh, containerLenS := d.decSliceHelperStart()
  18607. if containerLenS == 0 {
  18608. if canChange {
  18609. if v == nil {
  18610. v = []int16{}
  18611. } else if len(v) != 0 {
  18612. v = v[:0]
  18613. }
  18614. changed = true
  18615. }
  18616. slh.End()
  18617. return v, changed
  18618. }
  18619. d.depthIncr()
  18620. hasLen := containerLenS > 0
  18621. var xlen int
  18622. if hasLen && canChange {
  18623. if containerLenS > cap(v) {
  18624. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18625. if xlen <= cap(v) {
  18626. v = v[:xlen]
  18627. } else {
  18628. v = make([]int16, xlen)
  18629. }
  18630. changed = true
  18631. } else if containerLenS != len(v) {
  18632. v = v[:containerLenS]
  18633. changed = true
  18634. }
  18635. }
  18636. var j int
  18637. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18638. if j == 0 && len(v) == 0 && canChange {
  18639. if hasLen {
  18640. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18641. } else {
  18642. xlen = 8
  18643. }
  18644. v = make([]int16, xlen)
  18645. changed = true
  18646. }
  18647. // if indefinite, etc, then expand the slice if necessary
  18648. var decodeIntoBlank bool
  18649. if j >= len(v) {
  18650. if canChange {
  18651. v = append(v, 0)
  18652. changed = true
  18653. } else {
  18654. d.arrayCannotExpand(len(v), j+1)
  18655. decodeIntoBlank = true
  18656. }
  18657. }
  18658. slh.ElemContainerState(j)
  18659. if decodeIntoBlank {
  18660. d.swallow()
  18661. } else if dd.TryDecodeAsNil() {
  18662. v[j] = 0
  18663. } else {
  18664. v[j] = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  18665. }
  18666. }
  18667. if canChange {
  18668. if j < len(v) {
  18669. v = v[:j]
  18670. changed = true
  18671. } else if j == 0 && v == nil {
  18672. v = make([]int16, 0)
  18673. changed = true
  18674. }
  18675. }
  18676. slh.End()
  18677. d.depthDecr()
  18678. return v, changed
  18679. }
  18680. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  18681. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18682. vp := rv2i(rv).(*[]int32)
  18683. v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d)
  18684. if changed {
  18685. *vp = v
  18686. }
  18687. } else {
  18688. v := rv2i(rv).([]int32)
  18689. v2, changed := fastpathTV.DecSliceInt32V(v, !array, d)
  18690. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18691. copy(v, v2)
  18692. }
  18693. }
  18694. }
  18695. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  18696. v, changed := f.DecSliceInt32V(*vp, true, d)
  18697. if changed {
  18698. *vp = v
  18699. }
  18700. }
  18701. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  18702. dd := d.d
  18703. slh, containerLenS := d.decSliceHelperStart()
  18704. if containerLenS == 0 {
  18705. if canChange {
  18706. if v == nil {
  18707. v = []int32{}
  18708. } else if len(v) != 0 {
  18709. v = v[:0]
  18710. }
  18711. changed = true
  18712. }
  18713. slh.End()
  18714. return v, changed
  18715. }
  18716. d.depthIncr()
  18717. hasLen := containerLenS > 0
  18718. var xlen int
  18719. if hasLen && canChange {
  18720. if containerLenS > cap(v) {
  18721. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18722. if xlen <= cap(v) {
  18723. v = v[:xlen]
  18724. } else {
  18725. v = make([]int32, xlen)
  18726. }
  18727. changed = true
  18728. } else if containerLenS != len(v) {
  18729. v = v[:containerLenS]
  18730. changed = true
  18731. }
  18732. }
  18733. var j int
  18734. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18735. if j == 0 && len(v) == 0 && canChange {
  18736. if hasLen {
  18737. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18738. } else {
  18739. xlen = 8
  18740. }
  18741. v = make([]int32, xlen)
  18742. changed = true
  18743. }
  18744. // if indefinite, etc, then expand the slice if necessary
  18745. var decodeIntoBlank bool
  18746. if j >= len(v) {
  18747. if canChange {
  18748. v = append(v, 0)
  18749. changed = true
  18750. } else {
  18751. d.arrayCannotExpand(len(v), j+1)
  18752. decodeIntoBlank = true
  18753. }
  18754. }
  18755. slh.ElemContainerState(j)
  18756. if decodeIntoBlank {
  18757. d.swallow()
  18758. } else if dd.TryDecodeAsNil() {
  18759. v[j] = 0
  18760. } else {
  18761. v[j] = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  18762. }
  18763. }
  18764. if canChange {
  18765. if j < len(v) {
  18766. v = v[:j]
  18767. changed = true
  18768. } else if j == 0 && v == nil {
  18769. v = make([]int32, 0)
  18770. changed = true
  18771. }
  18772. }
  18773. slh.End()
  18774. d.depthDecr()
  18775. return v, changed
  18776. }
  18777. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  18778. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18779. vp := rv2i(rv).(*[]int64)
  18780. v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d)
  18781. if changed {
  18782. *vp = v
  18783. }
  18784. } else {
  18785. v := rv2i(rv).([]int64)
  18786. v2, changed := fastpathTV.DecSliceInt64V(v, !array, d)
  18787. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18788. copy(v, v2)
  18789. }
  18790. }
  18791. }
  18792. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  18793. v, changed := f.DecSliceInt64V(*vp, true, d)
  18794. if changed {
  18795. *vp = v
  18796. }
  18797. }
  18798. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  18799. dd := d.d
  18800. slh, containerLenS := d.decSliceHelperStart()
  18801. if containerLenS == 0 {
  18802. if canChange {
  18803. if v == nil {
  18804. v = []int64{}
  18805. } else if len(v) != 0 {
  18806. v = v[:0]
  18807. }
  18808. changed = true
  18809. }
  18810. slh.End()
  18811. return v, changed
  18812. }
  18813. d.depthIncr()
  18814. hasLen := containerLenS > 0
  18815. var xlen int
  18816. if hasLen && canChange {
  18817. if containerLenS > cap(v) {
  18818. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18819. if xlen <= cap(v) {
  18820. v = v[:xlen]
  18821. } else {
  18822. v = make([]int64, xlen)
  18823. }
  18824. changed = true
  18825. } else if containerLenS != len(v) {
  18826. v = v[:containerLenS]
  18827. changed = true
  18828. }
  18829. }
  18830. var j int
  18831. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18832. if j == 0 && len(v) == 0 && canChange {
  18833. if hasLen {
  18834. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18835. } else {
  18836. xlen = 8
  18837. }
  18838. v = make([]int64, xlen)
  18839. changed = true
  18840. }
  18841. // if indefinite, etc, then expand the slice if necessary
  18842. var decodeIntoBlank bool
  18843. if j >= len(v) {
  18844. if canChange {
  18845. v = append(v, 0)
  18846. changed = true
  18847. } else {
  18848. d.arrayCannotExpand(len(v), j+1)
  18849. decodeIntoBlank = true
  18850. }
  18851. }
  18852. slh.ElemContainerState(j)
  18853. if decodeIntoBlank {
  18854. d.swallow()
  18855. } else if dd.TryDecodeAsNil() {
  18856. v[j] = 0
  18857. } else {
  18858. v[j] = dd.DecodeInt64()
  18859. }
  18860. }
  18861. if canChange {
  18862. if j < len(v) {
  18863. v = v[:j]
  18864. changed = true
  18865. } else if j == 0 && v == nil {
  18866. v = make([]int64, 0)
  18867. changed = true
  18868. }
  18869. }
  18870. slh.End()
  18871. d.depthDecr()
  18872. return v, changed
  18873. }
  18874. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  18875. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18876. vp := rv2i(rv).(*[]bool)
  18877. v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d)
  18878. if changed {
  18879. *vp = v
  18880. }
  18881. } else {
  18882. v := rv2i(rv).([]bool)
  18883. v2, changed := fastpathTV.DecSliceBoolV(v, !array, d)
  18884. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18885. copy(v, v2)
  18886. }
  18887. }
  18888. }
  18889. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  18890. v, changed := f.DecSliceBoolV(*vp, true, d)
  18891. if changed {
  18892. *vp = v
  18893. }
  18894. }
  18895. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  18896. dd := d.d
  18897. slh, containerLenS := d.decSliceHelperStart()
  18898. if containerLenS == 0 {
  18899. if canChange {
  18900. if v == nil {
  18901. v = []bool{}
  18902. } else if len(v) != 0 {
  18903. v = v[:0]
  18904. }
  18905. changed = true
  18906. }
  18907. slh.End()
  18908. return v, changed
  18909. }
  18910. d.depthIncr()
  18911. hasLen := containerLenS > 0
  18912. var xlen int
  18913. if hasLen && canChange {
  18914. if containerLenS > cap(v) {
  18915. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18916. if xlen <= cap(v) {
  18917. v = v[:xlen]
  18918. } else {
  18919. v = make([]bool, xlen)
  18920. }
  18921. changed = true
  18922. } else if containerLenS != len(v) {
  18923. v = v[:containerLenS]
  18924. changed = true
  18925. }
  18926. }
  18927. var j int
  18928. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18929. if j == 0 && len(v) == 0 && canChange {
  18930. if hasLen {
  18931. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18932. } else {
  18933. xlen = 8
  18934. }
  18935. v = make([]bool, xlen)
  18936. changed = true
  18937. }
  18938. // if indefinite, etc, then expand the slice if necessary
  18939. var decodeIntoBlank bool
  18940. if j >= len(v) {
  18941. if canChange {
  18942. v = append(v, false)
  18943. changed = true
  18944. } else {
  18945. d.arrayCannotExpand(len(v), j+1)
  18946. decodeIntoBlank = true
  18947. }
  18948. }
  18949. slh.ElemContainerState(j)
  18950. if decodeIntoBlank {
  18951. d.swallow()
  18952. } else if dd.TryDecodeAsNil() {
  18953. v[j] = false
  18954. } else {
  18955. v[j] = dd.DecodeBool()
  18956. }
  18957. }
  18958. if canChange {
  18959. if j < len(v) {
  18960. v = v[:j]
  18961. changed = true
  18962. } else if j == 0 && v == nil {
  18963. v = make([]bool, 0)
  18964. changed = true
  18965. }
  18966. }
  18967. slh.End()
  18968. d.depthDecr()
  18969. return v, changed
  18970. }
  18971. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  18972. if rv.Kind() == reflect.Ptr {
  18973. vp := rv2i(rv).(*map[interface{}]interface{})
  18974. v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d)
  18975. if changed {
  18976. *vp = v
  18977. }
  18978. } else {
  18979. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  18980. }
  18981. }
  18982. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  18983. v, changed := f.DecMapIntfIntfV(*vp, true, d)
  18984. if changed {
  18985. *vp = v
  18986. }
  18987. }
  18988. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  18989. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  18990. dd, esep := d.d, d.hh.hasElemSeparators()
  18991. containerLen := dd.ReadMapStart()
  18992. if canChange && v == nil {
  18993. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18994. v = make(map[interface{}]interface{}, xlen)
  18995. changed = true
  18996. }
  18997. if containerLen == 0 {
  18998. dd.ReadMapEnd()
  18999. return v, changed
  19000. }
  19001. d.depthIncr()
  19002. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  19003. var mk interface{}
  19004. var mv interface{}
  19005. hasLen := containerLen > 0
  19006. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19007. if esep {
  19008. dd.ReadMapElemKey()
  19009. }
  19010. mk = nil
  19011. d.decode(&mk)
  19012. if bv, bok := mk.([]byte); bok {
  19013. mk = d.string(bv)
  19014. }
  19015. if esep {
  19016. dd.ReadMapElemValue()
  19017. }
  19018. if dd.TryDecodeAsNil() {
  19019. if v == nil {
  19020. } else if d.h.DeleteOnNilMapValue {
  19021. delete(v, mk)
  19022. } else {
  19023. v[mk] = nil
  19024. }
  19025. continue
  19026. }
  19027. if mapGet {
  19028. mv = v[mk]
  19029. } else {
  19030. mv = nil
  19031. }
  19032. d.decode(&mv)
  19033. if v != nil {
  19034. v[mk] = mv
  19035. }
  19036. }
  19037. dd.ReadMapEnd()
  19038. d.depthDecr()
  19039. return v, changed
  19040. }
  19041. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  19042. if rv.Kind() == reflect.Ptr {
  19043. vp := rv2i(rv).(*map[interface{}]string)
  19044. v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d)
  19045. if changed {
  19046. *vp = v
  19047. }
  19048. } else {
  19049. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  19050. }
  19051. }
  19052. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  19053. v, changed := f.DecMapIntfStringV(*vp, true, d)
  19054. if changed {
  19055. *vp = v
  19056. }
  19057. }
  19058. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  19059. d *Decoder) (_ map[interface{}]string, changed bool) {
  19060. dd, esep := d.d, d.hh.hasElemSeparators()
  19061. containerLen := dd.ReadMapStart()
  19062. if canChange && v == nil {
  19063. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19064. v = make(map[interface{}]string, xlen)
  19065. changed = true
  19066. }
  19067. if containerLen == 0 {
  19068. dd.ReadMapEnd()
  19069. return v, changed
  19070. }
  19071. d.depthIncr()
  19072. var mk interface{}
  19073. var mv string
  19074. hasLen := containerLen > 0
  19075. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19076. if esep {
  19077. dd.ReadMapElemKey()
  19078. }
  19079. mk = nil
  19080. d.decode(&mk)
  19081. if bv, bok := mk.([]byte); bok {
  19082. mk = d.string(bv)
  19083. }
  19084. if esep {
  19085. dd.ReadMapElemValue()
  19086. }
  19087. if dd.TryDecodeAsNil() {
  19088. if v == nil {
  19089. } else if d.h.DeleteOnNilMapValue {
  19090. delete(v, mk)
  19091. } else {
  19092. v[mk] = ""
  19093. }
  19094. continue
  19095. }
  19096. mv = dd.DecodeString()
  19097. if v != nil {
  19098. v[mk] = mv
  19099. }
  19100. }
  19101. dd.ReadMapEnd()
  19102. d.depthDecr()
  19103. return v, changed
  19104. }
  19105. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  19106. if rv.Kind() == reflect.Ptr {
  19107. vp := rv2i(rv).(*map[interface{}]uint)
  19108. v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d)
  19109. if changed {
  19110. *vp = v
  19111. }
  19112. } else {
  19113. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  19114. }
  19115. }
  19116. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  19117. v, changed := f.DecMapIntfUintV(*vp, true, d)
  19118. if changed {
  19119. *vp = v
  19120. }
  19121. }
  19122. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  19123. d *Decoder) (_ map[interface{}]uint, changed bool) {
  19124. dd, esep := d.d, d.hh.hasElemSeparators()
  19125. containerLen := dd.ReadMapStart()
  19126. if canChange && v == nil {
  19127. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19128. v = make(map[interface{}]uint, xlen)
  19129. changed = true
  19130. }
  19131. if containerLen == 0 {
  19132. dd.ReadMapEnd()
  19133. return v, changed
  19134. }
  19135. d.depthIncr()
  19136. var mk interface{}
  19137. var mv uint
  19138. hasLen := containerLen > 0
  19139. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19140. if esep {
  19141. dd.ReadMapElemKey()
  19142. }
  19143. mk = nil
  19144. d.decode(&mk)
  19145. if bv, bok := mk.([]byte); bok {
  19146. mk = d.string(bv)
  19147. }
  19148. if esep {
  19149. dd.ReadMapElemValue()
  19150. }
  19151. if dd.TryDecodeAsNil() {
  19152. if v == nil {
  19153. } else if d.h.DeleteOnNilMapValue {
  19154. delete(v, mk)
  19155. } else {
  19156. v[mk] = 0
  19157. }
  19158. continue
  19159. }
  19160. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19161. if v != nil {
  19162. v[mk] = mv
  19163. }
  19164. }
  19165. dd.ReadMapEnd()
  19166. d.depthDecr()
  19167. return v, changed
  19168. }
  19169. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  19170. if rv.Kind() == reflect.Ptr {
  19171. vp := rv2i(rv).(*map[interface{}]uint8)
  19172. v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d)
  19173. if changed {
  19174. *vp = v
  19175. }
  19176. } else {
  19177. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  19178. }
  19179. }
  19180. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  19181. v, changed := f.DecMapIntfUint8V(*vp, true, d)
  19182. if changed {
  19183. *vp = v
  19184. }
  19185. }
  19186. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  19187. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  19188. dd, esep := d.d, d.hh.hasElemSeparators()
  19189. containerLen := dd.ReadMapStart()
  19190. if canChange && v == nil {
  19191. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19192. v = make(map[interface{}]uint8, xlen)
  19193. changed = true
  19194. }
  19195. if containerLen == 0 {
  19196. dd.ReadMapEnd()
  19197. return v, changed
  19198. }
  19199. d.depthIncr()
  19200. var mk interface{}
  19201. var mv uint8
  19202. hasLen := containerLen > 0
  19203. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19204. if esep {
  19205. dd.ReadMapElemKey()
  19206. }
  19207. mk = nil
  19208. d.decode(&mk)
  19209. if bv, bok := mk.([]byte); bok {
  19210. mk = d.string(bv)
  19211. }
  19212. if esep {
  19213. dd.ReadMapElemValue()
  19214. }
  19215. if dd.TryDecodeAsNil() {
  19216. if v == nil {
  19217. } else if d.h.DeleteOnNilMapValue {
  19218. delete(v, mk)
  19219. } else {
  19220. v[mk] = 0
  19221. }
  19222. continue
  19223. }
  19224. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  19225. if v != nil {
  19226. v[mk] = mv
  19227. }
  19228. }
  19229. dd.ReadMapEnd()
  19230. d.depthDecr()
  19231. return v, changed
  19232. }
  19233. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  19234. if rv.Kind() == reflect.Ptr {
  19235. vp := rv2i(rv).(*map[interface{}]uint16)
  19236. v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d)
  19237. if changed {
  19238. *vp = v
  19239. }
  19240. } else {
  19241. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  19242. }
  19243. }
  19244. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  19245. v, changed := f.DecMapIntfUint16V(*vp, true, d)
  19246. if changed {
  19247. *vp = v
  19248. }
  19249. }
  19250. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  19251. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  19252. dd, esep := d.d, d.hh.hasElemSeparators()
  19253. containerLen := dd.ReadMapStart()
  19254. if canChange && v == nil {
  19255. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19256. v = make(map[interface{}]uint16, xlen)
  19257. changed = true
  19258. }
  19259. if containerLen == 0 {
  19260. dd.ReadMapEnd()
  19261. return v, changed
  19262. }
  19263. d.depthIncr()
  19264. var mk interface{}
  19265. var mv uint16
  19266. hasLen := containerLen > 0
  19267. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19268. if esep {
  19269. dd.ReadMapElemKey()
  19270. }
  19271. mk = nil
  19272. d.decode(&mk)
  19273. if bv, bok := mk.([]byte); bok {
  19274. mk = d.string(bv)
  19275. }
  19276. if esep {
  19277. dd.ReadMapElemValue()
  19278. }
  19279. if dd.TryDecodeAsNil() {
  19280. if v == nil {
  19281. } else if d.h.DeleteOnNilMapValue {
  19282. delete(v, mk)
  19283. } else {
  19284. v[mk] = 0
  19285. }
  19286. continue
  19287. }
  19288. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  19289. if v != nil {
  19290. v[mk] = mv
  19291. }
  19292. }
  19293. dd.ReadMapEnd()
  19294. d.depthDecr()
  19295. return v, changed
  19296. }
  19297. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  19298. if rv.Kind() == reflect.Ptr {
  19299. vp := rv2i(rv).(*map[interface{}]uint32)
  19300. v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d)
  19301. if changed {
  19302. *vp = v
  19303. }
  19304. } else {
  19305. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  19306. }
  19307. }
  19308. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  19309. v, changed := f.DecMapIntfUint32V(*vp, true, d)
  19310. if changed {
  19311. *vp = v
  19312. }
  19313. }
  19314. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  19315. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  19316. dd, esep := d.d, d.hh.hasElemSeparators()
  19317. containerLen := dd.ReadMapStart()
  19318. if canChange && v == nil {
  19319. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19320. v = make(map[interface{}]uint32, xlen)
  19321. changed = true
  19322. }
  19323. if containerLen == 0 {
  19324. dd.ReadMapEnd()
  19325. return v, changed
  19326. }
  19327. d.depthIncr()
  19328. var mk interface{}
  19329. var mv uint32
  19330. hasLen := containerLen > 0
  19331. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19332. if esep {
  19333. dd.ReadMapElemKey()
  19334. }
  19335. mk = nil
  19336. d.decode(&mk)
  19337. if bv, bok := mk.([]byte); bok {
  19338. mk = d.string(bv)
  19339. }
  19340. if esep {
  19341. dd.ReadMapElemValue()
  19342. }
  19343. if dd.TryDecodeAsNil() {
  19344. if v == nil {
  19345. } else if d.h.DeleteOnNilMapValue {
  19346. delete(v, mk)
  19347. } else {
  19348. v[mk] = 0
  19349. }
  19350. continue
  19351. }
  19352. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  19353. if v != nil {
  19354. v[mk] = mv
  19355. }
  19356. }
  19357. dd.ReadMapEnd()
  19358. d.depthDecr()
  19359. return v, changed
  19360. }
  19361. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  19362. if rv.Kind() == reflect.Ptr {
  19363. vp := rv2i(rv).(*map[interface{}]uint64)
  19364. v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d)
  19365. if changed {
  19366. *vp = v
  19367. }
  19368. } else {
  19369. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  19370. }
  19371. }
  19372. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  19373. v, changed := f.DecMapIntfUint64V(*vp, true, d)
  19374. if changed {
  19375. *vp = v
  19376. }
  19377. }
  19378. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  19379. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  19380. dd, esep := d.d, d.hh.hasElemSeparators()
  19381. containerLen := dd.ReadMapStart()
  19382. if canChange && v == nil {
  19383. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19384. v = make(map[interface{}]uint64, xlen)
  19385. changed = true
  19386. }
  19387. if containerLen == 0 {
  19388. dd.ReadMapEnd()
  19389. return v, changed
  19390. }
  19391. d.depthIncr()
  19392. var mk interface{}
  19393. var mv uint64
  19394. hasLen := containerLen > 0
  19395. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19396. if esep {
  19397. dd.ReadMapElemKey()
  19398. }
  19399. mk = nil
  19400. d.decode(&mk)
  19401. if bv, bok := mk.([]byte); bok {
  19402. mk = d.string(bv)
  19403. }
  19404. if esep {
  19405. dd.ReadMapElemValue()
  19406. }
  19407. if dd.TryDecodeAsNil() {
  19408. if v == nil {
  19409. } else if d.h.DeleteOnNilMapValue {
  19410. delete(v, mk)
  19411. } else {
  19412. v[mk] = 0
  19413. }
  19414. continue
  19415. }
  19416. mv = dd.DecodeUint64()
  19417. if v != nil {
  19418. v[mk] = mv
  19419. }
  19420. }
  19421. dd.ReadMapEnd()
  19422. d.depthDecr()
  19423. return v, changed
  19424. }
  19425. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  19426. if rv.Kind() == reflect.Ptr {
  19427. vp := rv2i(rv).(*map[interface{}]uintptr)
  19428. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d)
  19429. if changed {
  19430. *vp = v
  19431. }
  19432. } else {
  19433. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  19434. }
  19435. }
  19436. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  19437. v, changed := f.DecMapIntfUintptrV(*vp, true, d)
  19438. if changed {
  19439. *vp = v
  19440. }
  19441. }
  19442. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  19443. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  19444. dd, esep := d.d, d.hh.hasElemSeparators()
  19445. containerLen := dd.ReadMapStart()
  19446. if canChange && v == nil {
  19447. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19448. v = make(map[interface{}]uintptr, xlen)
  19449. changed = true
  19450. }
  19451. if containerLen == 0 {
  19452. dd.ReadMapEnd()
  19453. return v, changed
  19454. }
  19455. d.depthIncr()
  19456. var mk interface{}
  19457. var mv uintptr
  19458. hasLen := containerLen > 0
  19459. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19460. if esep {
  19461. dd.ReadMapElemKey()
  19462. }
  19463. mk = nil
  19464. d.decode(&mk)
  19465. if bv, bok := mk.([]byte); bok {
  19466. mk = d.string(bv)
  19467. }
  19468. if esep {
  19469. dd.ReadMapElemValue()
  19470. }
  19471. if dd.TryDecodeAsNil() {
  19472. if v == nil {
  19473. } else if d.h.DeleteOnNilMapValue {
  19474. delete(v, mk)
  19475. } else {
  19476. v[mk] = 0
  19477. }
  19478. continue
  19479. }
  19480. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19481. if v != nil {
  19482. v[mk] = mv
  19483. }
  19484. }
  19485. dd.ReadMapEnd()
  19486. d.depthDecr()
  19487. return v, changed
  19488. }
  19489. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  19490. if rv.Kind() == reflect.Ptr {
  19491. vp := rv2i(rv).(*map[interface{}]int)
  19492. v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d)
  19493. if changed {
  19494. *vp = v
  19495. }
  19496. } else {
  19497. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  19498. }
  19499. }
  19500. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  19501. v, changed := f.DecMapIntfIntV(*vp, true, d)
  19502. if changed {
  19503. *vp = v
  19504. }
  19505. }
  19506. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  19507. d *Decoder) (_ map[interface{}]int, changed bool) {
  19508. dd, esep := d.d, d.hh.hasElemSeparators()
  19509. containerLen := dd.ReadMapStart()
  19510. if canChange && v == nil {
  19511. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19512. v = make(map[interface{}]int, xlen)
  19513. changed = true
  19514. }
  19515. if containerLen == 0 {
  19516. dd.ReadMapEnd()
  19517. return v, changed
  19518. }
  19519. d.depthIncr()
  19520. var mk interface{}
  19521. var mv int
  19522. hasLen := containerLen > 0
  19523. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19524. if esep {
  19525. dd.ReadMapElemKey()
  19526. }
  19527. mk = nil
  19528. d.decode(&mk)
  19529. if bv, bok := mk.([]byte); bok {
  19530. mk = d.string(bv)
  19531. }
  19532. if esep {
  19533. dd.ReadMapElemValue()
  19534. }
  19535. if dd.TryDecodeAsNil() {
  19536. if v == nil {
  19537. } else if d.h.DeleteOnNilMapValue {
  19538. delete(v, mk)
  19539. } else {
  19540. v[mk] = 0
  19541. }
  19542. continue
  19543. }
  19544. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  19545. if v != nil {
  19546. v[mk] = mv
  19547. }
  19548. }
  19549. dd.ReadMapEnd()
  19550. d.depthDecr()
  19551. return v, changed
  19552. }
  19553. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  19554. if rv.Kind() == reflect.Ptr {
  19555. vp := rv2i(rv).(*map[interface{}]int8)
  19556. v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d)
  19557. if changed {
  19558. *vp = v
  19559. }
  19560. } else {
  19561. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  19562. }
  19563. }
  19564. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  19565. v, changed := f.DecMapIntfInt8V(*vp, true, d)
  19566. if changed {
  19567. *vp = v
  19568. }
  19569. }
  19570. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  19571. d *Decoder) (_ map[interface{}]int8, changed bool) {
  19572. dd, esep := d.d, d.hh.hasElemSeparators()
  19573. containerLen := dd.ReadMapStart()
  19574. if canChange && v == nil {
  19575. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19576. v = make(map[interface{}]int8, xlen)
  19577. changed = true
  19578. }
  19579. if containerLen == 0 {
  19580. dd.ReadMapEnd()
  19581. return v, changed
  19582. }
  19583. d.depthIncr()
  19584. var mk interface{}
  19585. var mv int8
  19586. hasLen := containerLen > 0
  19587. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19588. if esep {
  19589. dd.ReadMapElemKey()
  19590. }
  19591. mk = nil
  19592. d.decode(&mk)
  19593. if bv, bok := mk.([]byte); bok {
  19594. mk = d.string(bv)
  19595. }
  19596. if esep {
  19597. dd.ReadMapElemValue()
  19598. }
  19599. if dd.TryDecodeAsNil() {
  19600. if v == nil {
  19601. } else if d.h.DeleteOnNilMapValue {
  19602. delete(v, mk)
  19603. } else {
  19604. v[mk] = 0
  19605. }
  19606. continue
  19607. }
  19608. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  19609. if v != nil {
  19610. v[mk] = mv
  19611. }
  19612. }
  19613. dd.ReadMapEnd()
  19614. d.depthDecr()
  19615. return v, changed
  19616. }
  19617. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  19618. if rv.Kind() == reflect.Ptr {
  19619. vp := rv2i(rv).(*map[interface{}]int16)
  19620. v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d)
  19621. if changed {
  19622. *vp = v
  19623. }
  19624. } else {
  19625. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  19626. }
  19627. }
  19628. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  19629. v, changed := f.DecMapIntfInt16V(*vp, true, d)
  19630. if changed {
  19631. *vp = v
  19632. }
  19633. }
  19634. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  19635. d *Decoder) (_ map[interface{}]int16, changed bool) {
  19636. dd, esep := d.d, d.hh.hasElemSeparators()
  19637. containerLen := dd.ReadMapStart()
  19638. if canChange && v == nil {
  19639. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19640. v = make(map[interface{}]int16, xlen)
  19641. changed = true
  19642. }
  19643. if containerLen == 0 {
  19644. dd.ReadMapEnd()
  19645. return v, changed
  19646. }
  19647. d.depthIncr()
  19648. var mk interface{}
  19649. var mv int16
  19650. hasLen := containerLen > 0
  19651. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19652. if esep {
  19653. dd.ReadMapElemKey()
  19654. }
  19655. mk = nil
  19656. d.decode(&mk)
  19657. if bv, bok := mk.([]byte); bok {
  19658. mk = d.string(bv)
  19659. }
  19660. if esep {
  19661. dd.ReadMapElemValue()
  19662. }
  19663. if dd.TryDecodeAsNil() {
  19664. if v == nil {
  19665. } else if d.h.DeleteOnNilMapValue {
  19666. delete(v, mk)
  19667. } else {
  19668. v[mk] = 0
  19669. }
  19670. continue
  19671. }
  19672. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  19673. if v != nil {
  19674. v[mk] = mv
  19675. }
  19676. }
  19677. dd.ReadMapEnd()
  19678. d.depthDecr()
  19679. return v, changed
  19680. }
  19681. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  19682. if rv.Kind() == reflect.Ptr {
  19683. vp := rv2i(rv).(*map[interface{}]int32)
  19684. v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d)
  19685. if changed {
  19686. *vp = v
  19687. }
  19688. } else {
  19689. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  19690. }
  19691. }
  19692. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  19693. v, changed := f.DecMapIntfInt32V(*vp, true, d)
  19694. if changed {
  19695. *vp = v
  19696. }
  19697. }
  19698. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  19699. d *Decoder) (_ map[interface{}]int32, changed bool) {
  19700. dd, esep := d.d, d.hh.hasElemSeparators()
  19701. containerLen := dd.ReadMapStart()
  19702. if canChange && v == nil {
  19703. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19704. v = make(map[interface{}]int32, xlen)
  19705. changed = true
  19706. }
  19707. if containerLen == 0 {
  19708. dd.ReadMapEnd()
  19709. return v, changed
  19710. }
  19711. d.depthIncr()
  19712. var mk interface{}
  19713. var mv int32
  19714. hasLen := containerLen > 0
  19715. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19716. if esep {
  19717. dd.ReadMapElemKey()
  19718. }
  19719. mk = nil
  19720. d.decode(&mk)
  19721. if bv, bok := mk.([]byte); bok {
  19722. mk = d.string(bv)
  19723. }
  19724. if esep {
  19725. dd.ReadMapElemValue()
  19726. }
  19727. if dd.TryDecodeAsNil() {
  19728. if v == nil {
  19729. } else if d.h.DeleteOnNilMapValue {
  19730. delete(v, mk)
  19731. } else {
  19732. v[mk] = 0
  19733. }
  19734. continue
  19735. }
  19736. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  19737. if v != nil {
  19738. v[mk] = mv
  19739. }
  19740. }
  19741. dd.ReadMapEnd()
  19742. d.depthDecr()
  19743. return v, changed
  19744. }
  19745. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  19746. if rv.Kind() == reflect.Ptr {
  19747. vp := rv2i(rv).(*map[interface{}]int64)
  19748. v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d)
  19749. if changed {
  19750. *vp = v
  19751. }
  19752. } else {
  19753. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  19754. }
  19755. }
  19756. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  19757. v, changed := f.DecMapIntfInt64V(*vp, true, d)
  19758. if changed {
  19759. *vp = v
  19760. }
  19761. }
  19762. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  19763. d *Decoder) (_ map[interface{}]int64, changed bool) {
  19764. dd, esep := d.d, d.hh.hasElemSeparators()
  19765. containerLen := dd.ReadMapStart()
  19766. if canChange && v == nil {
  19767. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19768. v = make(map[interface{}]int64, xlen)
  19769. changed = true
  19770. }
  19771. if containerLen == 0 {
  19772. dd.ReadMapEnd()
  19773. return v, changed
  19774. }
  19775. d.depthIncr()
  19776. var mk interface{}
  19777. var mv int64
  19778. hasLen := containerLen > 0
  19779. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19780. if esep {
  19781. dd.ReadMapElemKey()
  19782. }
  19783. mk = nil
  19784. d.decode(&mk)
  19785. if bv, bok := mk.([]byte); bok {
  19786. mk = d.string(bv)
  19787. }
  19788. if esep {
  19789. dd.ReadMapElemValue()
  19790. }
  19791. if dd.TryDecodeAsNil() {
  19792. if v == nil {
  19793. } else if d.h.DeleteOnNilMapValue {
  19794. delete(v, mk)
  19795. } else {
  19796. v[mk] = 0
  19797. }
  19798. continue
  19799. }
  19800. mv = dd.DecodeInt64()
  19801. if v != nil {
  19802. v[mk] = mv
  19803. }
  19804. }
  19805. dd.ReadMapEnd()
  19806. d.depthDecr()
  19807. return v, changed
  19808. }
  19809. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  19810. if rv.Kind() == reflect.Ptr {
  19811. vp := rv2i(rv).(*map[interface{}]float32)
  19812. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d)
  19813. if changed {
  19814. *vp = v
  19815. }
  19816. } else {
  19817. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  19818. }
  19819. }
  19820. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  19821. v, changed := f.DecMapIntfFloat32V(*vp, true, d)
  19822. if changed {
  19823. *vp = v
  19824. }
  19825. }
  19826. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  19827. d *Decoder) (_ map[interface{}]float32, changed bool) {
  19828. dd, esep := d.d, d.hh.hasElemSeparators()
  19829. containerLen := dd.ReadMapStart()
  19830. if canChange && v == nil {
  19831. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19832. v = make(map[interface{}]float32, xlen)
  19833. changed = true
  19834. }
  19835. if containerLen == 0 {
  19836. dd.ReadMapEnd()
  19837. return v, changed
  19838. }
  19839. d.depthIncr()
  19840. var mk interface{}
  19841. var mv float32
  19842. hasLen := containerLen > 0
  19843. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19844. if esep {
  19845. dd.ReadMapElemKey()
  19846. }
  19847. mk = nil
  19848. d.decode(&mk)
  19849. if bv, bok := mk.([]byte); bok {
  19850. mk = d.string(bv)
  19851. }
  19852. if esep {
  19853. dd.ReadMapElemValue()
  19854. }
  19855. if dd.TryDecodeAsNil() {
  19856. if v == nil {
  19857. } else if d.h.DeleteOnNilMapValue {
  19858. delete(v, mk)
  19859. } else {
  19860. v[mk] = 0
  19861. }
  19862. continue
  19863. }
  19864. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19865. if v != nil {
  19866. v[mk] = mv
  19867. }
  19868. }
  19869. dd.ReadMapEnd()
  19870. d.depthDecr()
  19871. return v, changed
  19872. }
  19873. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  19874. if rv.Kind() == reflect.Ptr {
  19875. vp := rv2i(rv).(*map[interface{}]float64)
  19876. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d)
  19877. if changed {
  19878. *vp = v
  19879. }
  19880. } else {
  19881. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  19882. }
  19883. }
  19884. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  19885. v, changed := f.DecMapIntfFloat64V(*vp, true, d)
  19886. if changed {
  19887. *vp = v
  19888. }
  19889. }
  19890. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  19891. d *Decoder) (_ map[interface{}]float64, changed bool) {
  19892. dd, esep := d.d, d.hh.hasElemSeparators()
  19893. containerLen := dd.ReadMapStart()
  19894. if canChange && v == nil {
  19895. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19896. v = make(map[interface{}]float64, xlen)
  19897. changed = true
  19898. }
  19899. if containerLen == 0 {
  19900. dd.ReadMapEnd()
  19901. return v, changed
  19902. }
  19903. d.depthIncr()
  19904. var mk interface{}
  19905. var mv float64
  19906. hasLen := containerLen > 0
  19907. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19908. if esep {
  19909. dd.ReadMapElemKey()
  19910. }
  19911. mk = nil
  19912. d.decode(&mk)
  19913. if bv, bok := mk.([]byte); bok {
  19914. mk = d.string(bv)
  19915. }
  19916. if esep {
  19917. dd.ReadMapElemValue()
  19918. }
  19919. if dd.TryDecodeAsNil() {
  19920. if v == nil {
  19921. } else if d.h.DeleteOnNilMapValue {
  19922. delete(v, mk)
  19923. } else {
  19924. v[mk] = 0
  19925. }
  19926. continue
  19927. }
  19928. mv = dd.DecodeFloat64()
  19929. if v != nil {
  19930. v[mk] = mv
  19931. }
  19932. }
  19933. dd.ReadMapEnd()
  19934. d.depthDecr()
  19935. return v, changed
  19936. }
  19937. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  19938. if rv.Kind() == reflect.Ptr {
  19939. vp := rv2i(rv).(*map[interface{}]bool)
  19940. v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d)
  19941. if changed {
  19942. *vp = v
  19943. }
  19944. } else {
  19945. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  19946. }
  19947. }
  19948. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  19949. v, changed := f.DecMapIntfBoolV(*vp, true, d)
  19950. if changed {
  19951. *vp = v
  19952. }
  19953. }
  19954. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  19955. d *Decoder) (_ map[interface{}]bool, changed bool) {
  19956. dd, esep := d.d, d.hh.hasElemSeparators()
  19957. containerLen := dd.ReadMapStart()
  19958. if canChange && v == nil {
  19959. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19960. v = make(map[interface{}]bool, xlen)
  19961. changed = true
  19962. }
  19963. if containerLen == 0 {
  19964. dd.ReadMapEnd()
  19965. return v, changed
  19966. }
  19967. d.depthIncr()
  19968. var mk interface{}
  19969. var mv bool
  19970. hasLen := containerLen > 0
  19971. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19972. if esep {
  19973. dd.ReadMapElemKey()
  19974. }
  19975. mk = nil
  19976. d.decode(&mk)
  19977. if bv, bok := mk.([]byte); bok {
  19978. mk = d.string(bv)
  19979. }
  19980. if esep {
  19981. dd.ReadMapElemValue()
  19982. }
  19983. if dd.TryDecodeAsNil() {
  19984. if v == nil {
  19985. } else if d.h.DeleteOnNilMapValue {
  19986. delete(v, mk)
  19987. } else {
  19988. v[mk] = false
  19989. }
  19990. continue
  19991. }
  19992. mv = dd.DecodeBool()
  19993. if v != nil {
  19994. v[mk] = mv
  19995. }
  19996. }
  19997. dd.ReadMapEnd()
  19998. d.depthDecr()
  19999. return v, changed
  20000. }
  20001. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  20002. if rv.Kind() == reflect.Ptr {
  20003. vp := rv2i(rv).(*map[string]interface{})
  20004. v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d)
  20005. if changed {
  20006. *vp = v
  20007. }
  20008. } else {
  20009. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  20010. }
  20011. }
  20012. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  20013. v, changed := f.DecMapStringIntfV(*vp, true, d)
  20014. if changed {
  20015. *vp = v
  20016. }
  20017. }
  20018. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  20019. d *Decoder) (_ map[string]interface{}, changed bool) {
  20020. dd, esep := d.d, d.hh.hasElemSeparators()
  20021. containerLen := dd.ReadMapStart()
  20022. if canChange && v == nil {
  20023. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20024. v = make(map[string]interface{}, xlen)
  20025. changed = true
  20026. }
  20027. if containerLen == 0 {
  20028. dd.ReadMapEnd()
  20029. return v, changed
  20030. }
  20031. d.depthIncr()
  20032. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  20033. var mk string
  20034. var mv interface{}
  20035. hasLen := containerLen > 0
  20036. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20037. if esep {
  20038. dd.ReadMapElemKey()
  20039. }
  20040. mk = dd.DecodeString()
  20041. if esep {
  20042. dd.ReadMapElemValue()
  20043. }
  20044. if dd.TryDecodeAsNil() {
  20045. if v == nil {
  20046. } else if d.h.DeleteOnNilMapValue {
  20047. delete(v, mk)
  20048. } else {
  20049. v[mk] = nil
  20050. }
  20051. continue
  20052. }
  20053. if mapGet {
  20054. mv = v[mk]
  20055. } else {
  20056. mv = nil
  20057. }
  20058. d.decode(&mv)
  20059. if v != nil {
  20060. v[mk] = mv
  20061. }
  20062. }
  20063. dd.ReadMapEnd()
  20064. d.depthDecr()
  20065. return v, changed
  20066. }
  20067. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  20068. if rv.Kind() == reflect.Ptr {
  20069. vp := rv2i(rv).(*map[string]string)
  20070. v, changed := fastpathTV.DecMapStringStringV(*vp, true, d)
  20071. if changed {
  20072. *vp = v
  20073. }
  20074. } else {
  20075. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  20076. }
  20077. }
  20078. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  20079. v, changed := f.DecMapStringStringV(*vp, true, d)
  20080. if changed {
  20081. *vp = v
  20082. }
  20083. }
  20084. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  20085. d *Decoder) (_ map[string]string, changed bool) {
  20086. dd, esep := d.d, d.hh.hasElemSeparators()
  20087. containerLen := dd.ReadMapStart()
  20088. if canChange && v == nil {
  20089. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20090. v = make(map[string]string, xlen)
  20091. changed = true
  20092. }
  20093. if containerLen == 0 {
  20094. dd.ReadMapEnd()
  20095. return v, changed
  20096. }
  20097. d.depthIncr()
  20098. var mk string
  20099. var mv string
  20100. hasLen := containerLen > 0
  20101. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20102. if esep {
  20103. dd.ReadMapElemKey()
  20104. }
  20105. mk = dd.DecodeString()
  20106. if esep {
  20107. dd.ReadMapElemValue()
  20108. }
  20109. if dd.TryDecodeAsNil() {
  20110. if v == nil {
  20111. } else if d.h.DeleteOnNilMapValue {
  20112. delete(v, mk)
  20113. } else {
  20114. v[mk] = ""
  20115. }
  20116. continue
  20117. }
  20118. mv = dd.DecodeString()
  20119. if v != nil {
  20120. v[mk] = mv
  20121. }
  20122. }
  20123. dd.ReadMapEnd()
  20124. d.depthDecr()
  20125. return v, changed
  20126. }
  20127. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  20128. if rv.Kind() == reflect.Ptr {
  20129. vp := rv2i(rv).(*map[string]uint)
  20130. v, changed := fastpathTV.DecMapStringUintV(*vp, true, d)
  20131. if changed {
  20132. *vp = v
  20133. }
  20134. } else {
  20135. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  20136. }
  20137. }
  20138. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  20139. v, changed := f.DecMapStringUintV(*vp, true, d)
  20140. if changed {
  20141. *vp = v
  20142. }
  20143. }
  20144. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  20145. d *Decoder) (_ map[string]uint, changed bool) {
  20146. dd, esep := d.d, d.hh.hasElemSeparators()
  20147. containerLen := dd.ReadMapStart()
  20148. if canChange && v == nil {
  20149. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20150. v = make(map[string]uint, xlen)
  20151. changed = true
  20152. }
  20153. if containerLen == 0 {
  20154. dd.ReadMapEnd()
  20155. return v, changed
  20156. }
  20157. d.depthIncr()
  20158. var mk string
  20159. var mv uint
  20160. hasLen := containerLen > 0
  20161. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20162. if esep {
  20163. dd.ReadMapElemKey()
  20164. }
  20165. mk = dd.DecodeString()
  20166. if esep {
  20167. dd.ReadMapElemValue()
  20168. }
  20169. if dd.TryDecodeAsNil() {
  20170. if v == nil {
  20171. } else if d.h.DeleteOnNilMapValue {
  20172. delete(v, mk)
  20173. } else {
  20174. v[mk] = 0
  20175. }
  20176. continue
  20177. }
  20178. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20179. if v != nil {
  20180. v[mk] = mv
  20181. }
  20182. }
  20183. dd.ReadMapEnd()
  20184. d.depthDecr()
  20185. return v, changed
  20186. }
  20187. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  20188. if rv.Kind() == reflect.Ptr {
  20189. vp := rv2i(rv).(*map[string]uint8)
  20190. v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d)
  20191. if changed {
  20192. *vp = v
  20193. }
  20194. } else {
  20195. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  20196. }
  20197. }
  20198. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  20199. v, changed := f.DecMapStringUint8V(*vp, true, d)
  20200. if changed {
  20201. *vp = v
  20202. }
  20203. }
  20204. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  20205. d *Decoder) (_ map[string]uint8, changed bool) {
  20206. dd, esep := d.d, d.hh.hasElemSeparators()
  20207. containerLen := dd.ReadMapStart()
  20208. if canChange && v == nil {
  20209. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20210. v = make(map[string]uint8, xlen)
  20211. changed = true
  20212. }
  20213. if containerLen == 0 {
  20214. dd.ReadMapEnd()
  20215. return v, changed
  20216. }
  20217. d.depthIncr()
  20218. var mk string
  20219. var mv uint8
  20220. hasLen := containerLen > 0
  20221. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20222. if esep {
  20223. dd.ReadMapElemKey()
  20224. }
  20225. mk = dd.DecodeString()
  20226. if esep {
  20227. dd.ReadMapElemValue()
  20228. }
  20229. if dd.TryDecodeAsNil() {
  20230. if v == nil {
  20231. } else if d.h.DeleteOnNilMapValue {
  20232. delete(v, mk)
  20233. } else {
  20234. v[mk] = 0
  20235. }
  20236. continue
  20237. }
  20238. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  20239. if v != nil {
  20240. v[mk] = mv
  20241. }
  20242. }
  20243. dd.ReadMapEnd()
  20244. d.depthDecr()
  20245. return v, changed
  20246. }
  20247. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  20248. if rv.Kind() == reflect.Ptr {
  20249. vp := rv2i(rv).(*map[string]uint16)
  20250. v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d)
  20251. if changed {
  20252. *vp = v
  20253. }
  20254. } else {
  20255. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  20256. }
  20257. }
  20258. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  20259. v, changed := f.DecMapStringUint16V(*vp, true, d)
  20260. if changed {
  20261. *vp = v
  20262. }
  20263. }
  20264. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  20265. d *Decoder) (_ map[string]uint16, changed bool) {
  20266. dd, esep := d.d, d.hh.hasElemSeparators()
  20267. containerLen := dd.ReadMapStart()
  20268. if canChange && v == nil {
  20269. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20270. v = make(map[string]uint16, xlen)
  20271. changed = true
  20272. }
  20273. if containerLen == 0 {
  20274. dd.ReadMapEnd()
  20275. return v, changed
  20276. }
  20277. d.depthIncr()
  20278. var mk string
  20279. var mv uint16
  20280. hasLen := containerLen > 0
  20281. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20282. if esep {
  20283. dd.ReadMapElemKey()
  20284. }
  20285. mk = dd.DecodeString()
  20286. if esep {
  20287. dd.ReadMapElemValue()
  20288. }
  20289. if dd.TryDecodeAsNil() {
  20290. if v == nil {
  20291. } else if d.h.DeleteOnNilMapValue {
  20292. delete(v, mk)
  20293. } else {
  20294. v[mk] = 0
  20295. }
  20296. continue
  20297. }
  20298. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  20299. if v != nil {
  20300. v[mk] = mv
  20301. }
  20302. }
  20303. dd.ReadMapEnd()
  20304. d.depthDecr()
  20305. return v, changed
  20306. }
  20307. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  20308. if rv.Kind() == reflect.Ptr {
  20309. vp := rv2i(rv).(*map[string]uint32)
  20310. v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d)
  20311. if changed {
  20312. *vp = v
  20313. }
  20314. } else {
  20315. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  20316. }
  20317. }
  20318. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  20319. v, changed := f.DecMapStringUint32V(*vp, true, d)
  20320. if changed {
  20321. *vp = v
  20322. }
  20323. }
  20324. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  20325. d *Decoder) (_ map[string]uint32, changed bool) {
  20326. dd, esep := d.d, d.hh.hasElemSeparators()
  20327. containerLen := dd.ReadMapStart()
  20328. if canChange && v == nil {
  20329. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20330. v = make(map[string]uint32, xlen)
  20331. changed = true
  20332. }
  20333. if containerLen == 0 {
  20334. dd.ReadMapEnd()
  20335. return v, changed
  20336. }
  20337. d.depthIncr()
  20338. var mk string
  20339. var mv uint32
  20340. hasLen := containerLen > 0
  20341. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20342. if esep {
  20343. dd.ReadMapElemKey()
  20344. }
  20345. mk = dd.DecodeString()
  20346. if esep {
  20347. dd.ReadMapElemValue()
  20348. }
  20349. if dd.TryDecodeAsNil() {
  20350. if v == nil {
  20351. } else if d.h.DeleteOnNilMapValue {
  20352. delete(v, mk)
  20353. } else {
  20354. v[mk] = 0
  20355. }
  20356. continue
  20357. }
  20358. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  20359. if v != nil {
  20360. v[mk] = mv
  20361. }
  20362. }
  20363. dd.ReadMapEnd()
  20364. d.depthDecr()
  20365. return v, changed
  20366. }
  20367. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  20368. if rv.Kind() == reflect.Ptr {
  20369. vp := rv2i(rv).(*map[string]uint64)
  20370. v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d)
  20371. if changed {
  20372. *vp = v
  20373. }
  20374. } else {
  20375. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  20376. }
  20377. }
  20378. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  20379. v, changed := f.DecMapStringUint64V(*vp, true, d)
  20380. if changed {
  20381. *vp = v
  20382. }
  20383. }
  20384. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  20385. d *Decoder) (_ map[string]uint64, changed bool) {
  20386. dd, esep := d.d, d.hh.hasElemSeparators()
  20387. containerLen := dd.ReadMapStart()
  20388. if canChange && v == nil {
  20389. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20390. v = make(map[string]uint64, xlen)
  20391. changed = true
  20392. }
  20393. if containerLen == 0 {
  20394. dd.ReadMapEnd()
  20395. return v, changed
  20396. }
  20397. d.depthIncr()
  20398. var mk string
  20399. var mv uint64
  20400. hasLen := containerLen > 0
  20401. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20402. if esep {
  20403. dd.ReadMapElemKey()
  20404. }
  20405. mk = dd.DecodeString()
  20406. if esep {
  20407. dd.ReadMapElemValue()
  20408. }
  20409. if dd.TryDecodeAsNil() {
  20410. if v == nil {
  20411. } else if d.h.DeleteOnNilMapValue {
  20412. delete(v, mk)
  20413. } else {
  20414. v[mk] = 0
  20415. }
  20416. continue
  20417. }
  20418. mv = dd.DecodeUint64()
  20419. if v != nil {
  20420. v[mk] = mv
  20421. }
  20422. }
  20423. dd.ReadMapEnd()
  20424. d.depthDecr()
  20425. return v, changed
  20426. }
  20427. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  20428. if rv.Kind() == reflect.Ptr {
  20429. vp := rv2i(rv).(*map[string]uintptr)
  20430. v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d)
  20431. if changed {
  20432. *vp = v
  20433. }
  20434. } else {
  20435. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  20436. }
  20437. }
  20438. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  20439. v, changed := f.DecMapStringUintptrV(*vp, true, d)
  20440. if changed {
  20441. *vp = v
  20442. }
  20443. }
  20444. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  20445. d *Decoder) (_ map[string]uintptr, changed bool) {
  20446. dd, esep := d.d, d.hh.hasElemSeparators()
  20447. containerLen := dd.ReadMapStart()
  20448. if canChange && v == nil {
  20449. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20450. v = make(map[string]uintptr, xlen)
  20451. changed = true
  20452. }
  20453. if containerLen == 0 {
  20454. dd.ReadMapEnd()
  20455. return v, changed
  20456. }
  20457. d.depthIncr()
  20458. var mk string
  20459. var mv uintptr
  20460. hasLen := containerLen > 0
  20461. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20462. if esep {
  20463. dd.ReadMapElemKey()
  20464. }
  20465. mk = dd.DecodeString()
  20466. if esep {
  20467. dd.ReadMapElemValue()
  20468. }
  20469. if dd.TryDecodeAsNil() {
  20470. if v == nil {
  20471. } else if d.h.DeleteOnNilMapValue {
  20472. delete(v, mk)
  20473. } else {
  20474. v[mk] = 0
  20475. }
  20476. continue
  20477. }
  20478. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20479. if v != nil {
  20480. v[mk] = mv
  20481. }
  20482. }
  20483. dd.ReadMapEnd()
  20484. d.depthDecr()
  20485. return v, changed
  20486. }
  20487. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  20488. if rv.Kind() == reflect.Ptr {
  20489. vp := rv2i(rv).(*map[string]int)
  20490. v, changed := fastpathTV.DecMapStringIntV(*vp, true, d)
  20491. if changed {
  20492. *vp = v
  20493. }
  20494. } else {
  20495. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  20496. }
  20497. }
  20498. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  20499. v, changed := f.DecMapStringIntV(*vp, true, d)
  20500. if changed {
  20501. *vp = v
  20502. }
  20503. }
  20504. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  20505. d *Decoder) (_ map[string]int, changed bool) {
  20506. dd, esep := d.d, d.hh.hasElemSeparators()
  20507. containerLen := dd.ReadMapStart()
  20508. if canChange && v == nil {
  20509. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20510. v = make(map[string]int, xlen)
  20511. changed = true
  20512. }
  20513. if containerLen == 0 {
  20514. dd.ReadMapEnd()
  20515. return v, changed
  20516. }
  20517. d.depthIncr()
  20518. var mk string
  20519. var mv int
  20520. hasLen := containerLen > 0
  20521. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20522. if esep {
  20523. dd.ReadMapElemKey()
  20524. }
  20525. mk = dd.DecodeString()
  20526. if esep {
  20527. dd.ReadMapElemValue()
  20528. }
  20529. if dd.TryDecodeAsNil() {
  20530. if v == nil {
  20531. } else if d.h.DeleteOnNilMapValue {
  20532. delete(v, mk)
  20533. } else {
  20534. v[mk] = 0
  20535. }
  20536. continue
  20537. }
  20538. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  20539. if v != nil {
  20540. v[mk] = mv
  20541. }
  20542. }
  20543. dd.ReadMapEnd()
  20544. d.depthDecr()
  20545. return v, changed
  20546. }
  20547. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  20548. if rv.Kind() == reflect.Ptr {
  20549. vp := rv2i(rv).(*map[string]int8)
  20550. v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d)
  20551. if changed {
  20552. *vp = v
  20553. }
  20554. } else {
  20555. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  20556. }
  20557. }
  20558. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  20559. v, changed := f.DecMapStringInt8V(*vp, true, d)
  20560. if changed {
  20561. *vp = v
  20562. }
  20563. }
  20564. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  20565. d *Decoder) (_ map[string]int8, changed bool) {
  20566. dd, esep := d.d, d.hh.hasElemSeparators()
  20567. containerLen := dd.ReadMapStart()
  20568. if canChange && v == nil {
  20569. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20570. v = make(map[string]int8, xlen)
  20571. changed = true
  20572. }
  20573. if containerLen == 0 {
  20574. dd.ReadMapEnd()
  20575. return v, changed
  20576. }
  20577. d.depthIncr()
  20578. var mk string
  20579. var mv int8
  20580. hasLen := containerLen > 0
  20581. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20582. if esep {
  20583. dd.ReadMapElemKey()
  20584. }
  20585. mk = dd.DecodeString()
  20586. if esep {
  20587. dd.ReadMapElemValue()
  20588. }
  20589. if dd.TryDecodeAsNil() {
  20590. if v == nil {
  20591. } else if d.h.DeleteOnNilMapValue {
  20592. delete(v, mk)
  20593. } else {
  20594. v[mk] = 0
  20595. }
  20596. continue
  20597. }
  20598. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  20599. if v != nil {
  20600. v[mk] = mv
  20601. }
  20602. }
  20603. dd.ReadMapEnd()
  20604. d.depthDecr()
  20605. return v, changed
  20606. }
  20607. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  20608. if rv.Kind() == reflect.Ptr {
  20609. vp := rv2i(rv).(*map[string]int16)
  20610. v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d)
  20611. if changed {
  20612. *vp = v
  20613. }
  20614. } else {
  20615. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  20616. }
  20617. }
  20618. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  20619. v, changed := f.DecMapStringInt16V(*vp, true, d)
  20620. if changed {
  20621. *vp = v
  20622. }
  20623. }
  20624. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  20625. d *Decoder) (_ map[string]int16, changed bool) {
  20626. dd, esep := d.d, d.hh.hasElemSeparators()
  20627. containerLen := dd.ReadMapStart()
  20628. if canChange && v == nil {
  20629. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20630. v = make(map[string]int16, xlen)
  20631. changed = true
  20632. }
  20633. if containerLen == 0 {
  20634. dd.ReadMapEnd()
  20635. return v, changed
  20636. }
  20637. d.depthIncr()
  20638. var mk string
  20639. var mv int16
  20640. hasLen := containerLen > 0
  20641. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20642. if esep {
  20643. dd.ReadMapElemKey()
  20644. }
  20645. mk = dd.DecodeString()
  20646. if esep {
  20647. dd.ReadMapElemValue()
  20648. }
  20649. if dd.TryDecodeAsNil() {
  20650. if v == nil {
  20651. } else if d.h.DeleteOnNilMapValue {
  20652. delete(v, mk)
  20653. } else {
  20654. v[mk] = 0
  20655. }
  20656. continue
  20657. }
  20658. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  20659. if v != nil {
  20660. v[mk] = mv
  20661. }
  20662. }
  20663. dd.ReadMapEnd()
  20664. d.depthDecr()
  20665. return v, changed
  20666. }
  20667. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  20668. if rv.Kind() == reflect.Ptr {
  20669. vp := rv2i(rv).(*map[string]int32)
  20670. v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d)
  20671. if changed {
  20672. *vp = v
  20673. }
  20674. } else {
  20675. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  20676. }
  20677. }
  20678. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  20679. v, changed := f.DecMapStringInt32V(*vp, true, d)
  20680. if changed {
  20681. *vp = v
  20682. }
  20683. }
  20684. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  20685. d *Decoder) (_ map[string]int32, changed bool) {
  20686. dd, esep := d.d, d.hh.hasElemSeparators()
  20687. containerLen := dd.ReadMapStart()
  20688. if canChange && v == nil {
  20689. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20690. v = make(map[string]int32, xlen)
  20691. changed = true
  20692. }
  20693. if containerLen == 0 {
  20694. dd.ReadMapEnd()
  20695. return v, changed
  20696. }
  20697. d.depthIncr()
  20698. var mk string
  20699. var mv int32
  20700. hasLen := containerLen > 0
  20701. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20702. if esep {
  20703. dd.ReadMapElemKey()
  20704. }
  20705. mk = dd.DecodeString()
  20706. if esep {
  20707. dd.ReadMapElemValue()
  20708. }
  20709. if dd.TryDecodeAsNil() {
  20710. if v == nil {
  20711. } else if d.h.DeleteOnNilMapValue {
  20712. delete(v, mk)
  20713. } else {
  20714. v[mk] = 0
  20715. }
  20716. continue
  20717. }
  20718. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  20719. if v != nil {
  20720. v[mk] = mv
  20721. }
  20722. }
  20723. dd.ReadMapEnd()
  20724. d.depthDecr()
  20725. return v, changed
  20726. }
  20727. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  20728. if rv.Kind() == reflect.Ptr {
  20729. vp := rv2i(rv).(*map[string]int64)
  20730. v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d)
  20731. if changed {
  20732. *vp = v
  20733. }
  20734. } else {
  20735. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  20736. }
  20737. }
  20738. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  20739. v, changed := f.DecMapStringInt64V(*vp, true, d)
  20740. if changed {
  20741. *vp = v
  20742. }
  20743. }
  20744. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  20745. d *Decoder) (_ map[string]int64, changed bool) {
  20746. dd, esep := d.d, d.hh.hasElemSeparators()
  20747. containerLen := dd.ReadMapStart()
  20748. if canChange && v == nil {
  20749. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20750. v = make(map[string]int64, xlen)
  20751. changed = true
  20752. }
  20753. if containerLen == 0 {
  20754. dd.ReadMapEnd()
  20755. return v, changed
  20756. }
  20757. d.depthIncr()
  20758. var mk string
  20759. var mv int64
  20760. hasLen := containerLen > 0
  20761. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20762. if esep {
  20763. dd.ReadMapElemKey()
  20764. }
  20765. mk = dd.DecodeString()
  20766. if esep {
  20767. dd.ReadMapElemValue()
  20768. }
  20769. if dd.TryDecodeAsNil() {
  20770. if v == nil {
  20771. } else if d.h.DeleteOnNilMapValue {
  20772. delete(v, mk)
  20773. } else {
  20774. v[mk] = 0
  20775. }
  20776. continue
  20777. }
  20778. mv = dd.DecodeInt64()
  20779. if v != nil {
  20780. v[mk] = mv
  20781. }
  20782. }
  20783. dd.ReadMapEnd()
  20784. d.depthDecr()
  20785. return v, changed
  20786. }
  20787. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  20788. if rv.Kind() == reflect.Ptr {
  20789. vp := rv2i(rv).(*map[string]float32)
  20790. v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d)
  20791. if changed {
  20792. *vp = v
  20793. }
  20794. } else {
  20795. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  20796. }
  20797. }
  20798. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  20799. v, changed := f.DecMapStringFloat32V(*vp, true, d)
  20800. if changed {
  20801. *vp = v
  20802. }
  20803. }
  20804. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  20805. d *Decoder) (_ map[string]float32, changed bool) {
  20806. dd, esep := d.d, d.hh.hasElemSeparators()
  20807. containerLen := dd.ReadMapStart()
  20808. if canChange && v == nil {
  20809. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20810. v = make(map[string]float32, xlen)
  20811. changed = true
  20812. }
  20813. if containerLen == 0 {
  20814. dd.ReadMapEnd()
  20815. return v, changed
  20816. }
  20817. d.depthIncr()
  20818. var mk string
  20819. var mv float32
  20820. hasLen := containerLen > 0
  20821. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20822. if esep {
  20823. dd.ReadMapElemKey()
  20824. }
  20825. mk = dd.DecodeString()
  20826. if esep {
  20827. dd.ReadMapElemValue()
  20828. }
  20829. if dd.TryDecodeAsNil() {
  20830. if v == nil {
  20831. } else if d.h.DeleteOnNilMapValue {
  20832. delete(v, mk)
  20833. } else {
  20834. v[mk] = 0
  20835. }
  20836. continue
  20837. }
  20838. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20839. if v != nil {
  20840. v[mk] = mv
  20841. }
  20842. }
  20843. dd.ReadMapEnd()
  20844. d.depthDecr()
  20845. return v, changed
  20846. }
  20847. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  20848. if rv.Kind() == reflect.Ptr {
  20849. vp := rv2i(rv).(*map[string]float64)
  20850. v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d)
  20851. if changed {
  20852. *vp = v
  20853. }
  20854. } else {
  20855. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  20856. }
  20857. }
  20858. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  20859. v, changed := f.DecMapStringFloat64V(*vp, true, d)
  20860. if changed {
  20861. *vp = v
  20862. }
  20863. }
  20864. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  20865. d *Decoder) (_ map[string]float64, changed bool) {
  20866. dd, esep := d.d, d.hh.hasElemSeparators()
  20867. containerLen := dd.ReadMapStart()
  20868. if canChange && v == nil {
  20869. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20870. v = make(map[string]float64, xlen)
  20871. changed = true
  20872. }
  20873. if containerLen == 0 {
  20874. dd.ReadMapEnd()
  20875. return v, changed
  20876. }
  20877. d.depthIncr()
  20878. var mk string
  20879. var mv float64
  20880. hasLen := containerLen > 0
  20881. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20882. if esep {
  20883. dd.ReadMapElemKey()
  20884. }
  20885. mk = dd.DecodeString()
  20886. if esep {
  20887. dd.ReadMapElemValue()
  20888. }
  20889. if dd.TryDecodeAsNil() {
  20890. if v == nil {
  20891. } else if d.h.DeleteOnNilMapValue {
  20892. delete(v, mk)
  20893. } else {
  20894. v[mk] = 0
  20895. }
  20896. continue
  20897. }
  20898. mv = dd.DecodeFloat64()
  20899. if v != nil {
  20900. v[mk] = mv
  20901. }
  20902. }
  20903. dd.ReadMapEnd()
  20904. d.depthDecr()
  20905. return v, changed
  20906. }
  20907. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  20908. if rv.Kind() == reflect.Ptr {
  20909. vp := rv2i(rv).(*map[string]bool)
  20910. v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d)
  20911. if changed {
  20912. *vp = v
  20913. }
  20914. } else {
  20915. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  20916. }
  20917. }
  20918. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  20919. v, changed := f.DecMapStringBoolV(*vp, true, d)
  20920. if changed {
  20921. *vp = v
  20922. }
  20923. }
  20924. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  20925. d *Decoder) (_ map[string]bool, changed bool) {
  20926. dd, esep := d.d, d.hh.hasElemSeparators()
  20927. containerLen := dd.ReadMapStart()
  20928. if canChange && v == nil {
  20929. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20930. v = make(map[string]bool, xlen)
  20931. changed = true
  20932. }
  20933. if containerLen == 0 {
  20934. dd.ReadMapEnd()
  20935. return v, changed
  20936. }
  20937. d.depthIncr()
  20938. var mk string
  20939. var mv bool
  20940. hasLen := containerLen > 0
  20941. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20942. if esep {
  20943. dd.ReadMapElemKey()
  20944. }
  20945. mk = dd.DecodeString()
  20946. if esep {
  20947. dd.ReadMapElemValue()
  20948. }
  20949. if dd.TryDecodeAsNil() {
  20950. if v == nil {
  20951. } else if d.h.DeleteOnNilMapValue {
  20952. delete(v, mk)
  20953. } else {
  20954. v[mk] = false
  20955. }
  20956. continue
  20957. }
  20958. mv = dd.DecodeBool()
  20959. if v != nil {
  20960. v[mk] = mv
  20961. }
  20962. }
  20963. dd.ReadMapEnd()
  20964. d.depthDecr()
  20965. return v, changed
  20966. }
  20967. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  20968. if rv.Kind() == reflect.Ptr {
  20969. vp := rv2i(rv).(*map[float32]interface{})
  20970. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d)
  20971. if changed {
  20972. *vp = v
  20973. }
  20974. } else {
  20975. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  20976. }
  20977. }
  20978. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  20979. v, changed := f.DecMapFloat32IntfV(*vp, true, d)
  20980. if changed {
  20981. *vp = v
  20982. }
  20983. }
  20984. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  20985. d *Decoder) (_ map[float32]interface{}, changed bool) {
  20986. dd, esep := d.d, d.hh.hasElemSeparators()
  20987. containerLen := dd.ReadMapStart()
  20988. if canChange && v == nil {
  20989. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20990. v = make(map[float32]interface{}, xlen)
  20991. changed = true
  20992. }
  20993. if containerLen == 0 {
  20994. dd.ReadMapEnd()
  20995. return v, changed
  20996. }
  20997. d.depthIncr()
  20998. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  20999. var mk float32
  21000. var mv interface{}
  21001. hasLen := containerLen > 0
  21002. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21003. if esep {
  21004. dd.ReadMapElemKey()
  21005. }
  21006. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21007. if esep {
  21008. dd.ReadMapElemValue()
  21009. }
  21010. if dd.TryDecodeAsNil() {
  21011. if v == nil {
  21012. } else if d.h.DeleteOnNilMapValue {
  21013. delete(v, mk)
  21014. } else {
  21015. v[mk] = nil
  21016. }
  21017. continue
  21018. }
  21019. if mapGet {
  21020. mv = v[mk]
  21021. } else {
  21022. mv = nil
  21023. }
  21024. d.decode(&mv)
  21025. if v != nil {
  21026. v[mk] = mv
  21027. }
  21028. }
  21029. dd.ReadMapEnd()
  21030. d.depthDecr()
  21031. return v, changed
  21032. }
  21033. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  21034. if rv.Kind() == reflect.Ptr {
  21035. vp := rv2i(rv).(*map[float32]string)
  21036. v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d)
  21037. if changed {
  21038. *vp = v
  21039. }
  21040. } else {
  21041. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  21042. }
  21043. }
  21044. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  21045. v, changed := f.DecMapFloat32StringV(*vp, true, d)
  21046. if changed {
  21047. *vp = v
  21048. }
  21049. }
  21050. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  21051. d *Decoder) (_ map[float32]string, changed bool) {
  21052. dd, esep := d.d, d.hh.hasElemSeparators()
  21053. containerLen := dd.ReadMapStart()
  21054. if canChange && v == nil {
  21055. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21056. v = make(map[float32]string, xlen)
  21057. changed = true
  21058. }
  21059. if containerLen == 0 {
  21060. dd.ReadMapEnd()
  21061. return v, changed
  21062. }
  21063. d.depthIncr()
  21064. var mk float32
  21065. var mv string
  21066. hasLen := containerLen > 0
  21067. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21068. if esep {
  21069. dd.ReadMapElemKey()
  21070. }
  21071. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21072. if esep {
  21073. dd.ReadMapElemValue()
  21074. }
  21075. if dd.TryDecodeAsNil() {
  21076. if v == nil {
  21077. } else if d.h.DeleteOnNilMapValue {
  21078. delete(v, mk)
  21079. } else {
  21080. v[mk] = ""
  21081. }
  21082. continue
  21083. }
  21084. mv = dd.DecodeString()
  21085. if v != nil {
  21086. v[mk] = mv
  21087. }
  21088. }
  21089. dd.ReadMapEnd()
  21090. d.depthDecr()
  21091. return v, changed
  21092. }
  21093. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  21094. if rv.Kind() == reflect.Ptr {
  21095. vp := rv2i(rv).(*map[float32]uint)
  21096. v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d)
  21097. if changed {
  21098. *vp = v
  21099. }
  21100. } else {
  21101. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  21102. }
  21103. }
  21104. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  21105. v, changed := f.DecMapFloat32UintV(*vp, true, d)
  21106. if changed {
  21107. *vp = v
  21108. }
  21109. }
  21110. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  21111. d *Decoder) (_ map[float32]uint, changed bool) {
  21112. dd, esep := d.d, d.hh.hasElemSeparators()
  21113. containerLen := dd.ReadMapStart()
  21114. if canChange && v == nil {
  21115. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21116. v = make(map[float32]uint, xlen)
  21117. changed = true
  21118. }
  21119. if containerLen == 0 {
  21120. dd.ReadMapEnd()
  21121. return v, changed
  21122. }
  21123. d.depthIncr()
  21124. var mk float32
  21125. var mv uint
  21126. hasLen := containerLen > 0
  21127. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21128. if esep {
  21129. dd.ReadMapElemKey()
  21130. }
  21131. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21132. if esep {
  21133. dd.ReadMapElemValue()
  21134. }
  21135. if dd.TryDecodeAsNil() {
  21136. if v == nil {
  21137. } else if d.h.DeleteOnNilMapValue {
  21138. delete(v, mk)
  21139. } else {
  21140. v[mk] = 0
  21141. }
  21142. continue
  21143. }
  21144. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21145. if v != nil {
  21146. v[mk] = mv
  21147. }
  21148. }
  21149. dd.ReadMapEnd()
  21150. d.depthDecr()
  21151. return v, changed
  21152. }
  21153. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  21154. if rv.Kind() == reflect.Ptr {
  21155. vp := rv2i(rv).(*map[float32]uint8)
  21156. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d)
  21157. if changed {
  21158. *vp = v
  21159. }
  21160. } else {
  21161. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  21162. }
  21163. }
  21164. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  21165. v, changed := f.DecMapFloat32Uint8V(*vp, true, d)
  21166. if changed {
  21167. *vp = v
  21168. }
  21169. }
  21170. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  21171. d *Decoder) (_ map[float32]uint8, changed bool) {
  21172. dd, esep := d.d, d.hh.hasElemSeparators()
  21173. containerLen := dd.ReadMapStart()
  21174. if canChange && v == nil {
  21175. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21176. v = make(map[float32]uint8, xlen)
  21177. changed = true
  21178. }
  21179. if containerLen == 0 {
  21180. dd.ReadMapEnd()
  21181. return v, changed
  21182. }
  21183. d.depthIncr()
  21184. var mk float32
  21185. var mv uint8
  21186. hasLen := containerLen > 0
  21187. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21188. if esep {
  21189. dd.ReadMapElemKey()
  21190. }
  21191. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21192. if esep {
  21193. dd.ReadMapElemValue()
  21194. }
  21195. if dd.TryDecodeAsNil() {
  21196. if v == nil {
  21197. } else if d.h.DeleteOnNilMapValue {
  21198. delete(v, mk)
  21199. } else {
  21200. v[mk] = 0
  21201. }
  21202. continue
  21203. }
  21204. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  21205. if v != nil {
  21206. v[mk] = mv
  21207. }
  21208. }
  21209. dd.ReadMapEnd()
  21210. d.depthDecr()
  21211. return v, changed
  21212. }
  21213. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  21214. if rv.Kind() == reflect.Ptr {
  21215. vp := rv2i(rv).(*map[float32]uint16)
  21216. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d)
  21217. if changed {
  21218. *vp = v
  21219. }
  21220. } else {
  21221. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  21222. }
  21223. }
  21224. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  21225. v, changed := f.DecMapFloat32Uint16V(*vp, true, d)
  21226. if changed {
  21227. *vp = v
  21228. }
  21229. }
  21230. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  21231. d *Decoder) (_ map[float32]uint16, changed bool) {
  21232. dd, esep := d.d, d.hh.hasElemSeparators()
  21233. containerLen := dd.ReadMapStart()
  21234. if canChange && v == nil {
  21235. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21236. v = make(map[float32]uint16, xlen)
  21237. changed = true
  21238. }
  21239. if containerLen == 0 {
  21240. dd.ReadMapEnd()
  21241. return v, changed
  21242. }
  21243. d.depthIncr()
  21244. var mk float32
  21245. var mv uint16
  21246. hasLen := containerLen > 0
  21247. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21248. if esep {
  21249. dd.ReadMapElemKey()
  21250. }
  21251. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21252. if esep {
  21253. dd.ReadMapElemValue()
  21254. }
  21255. if dd.TryDecodeAsNil() {
  21256. if v == nil {
  21257. } else if d.h.DeleteOnNilMapValue {
  21258. delete(v, mk)
  21259. } else {
  21260. v[mk] = 0
  21261. }
  21262. continue
  21263. }
  21264. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  21265. if v != nil {
  21266. v[mk] = mv
  21267. }
  21268. }
  21269. dd.ReadMapEnd()
  21270. d.depthDecr()
  21271. return v, changed
  21272. }
  21273. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  21274. if rv.Kind() == reflect.Ptr {
  21275. vp := rv2i(rv).(*map[float32]uint32)
  21276. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d)
  21277. if changed {
  21278. *vp = v
  21279. }
  21280. } else {
  21281. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  21282. }
  21283. }
  21284. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  21285. v, changed := f.DecMapFloat32Uint32V(*vp, true, d)
  21286. if changed {
  21287. *vp = v
  21288. }
  21289. }
  21290. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  21291. d *Decoder) (_ map[float32]uint32, changed bool) {
  21292. dd, esep := d.d, d.hh.hasElemSeparators()
  21293. containerLen := dd.ReadMapStart()
  21294. if canChange && v == nil {
  21295. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21296. v = make(map[float32]uint32, xlen)
  21297. changed = true
  21298. }
  21299. if containerLen == 0 {
  21300. dd.ReadMapEnd()
  21301. return v, changed
  21302. }
  21303. d.depthIncr()
  21304. var mk float32
  21305. var mv uint32
  21306. hasLen := containerLen > 0
  21307. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21308. if esep {
  21309. dd.ReadMapElemKey()
  21310. }
  21311. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21312. if esep {
  21313. dd.ReadMapElemValue()
  21314. }
  21315. if dd.TryDecodeAsNil() {
  21316. if v == nil {
  21317. } else if d.h.DeleteOnNilMapValue {
  21318. delete(v, mk)
  21319. } else {
  21320. v[mk] = 0
  21321. }
  21322. continue
  21323. }
  21324. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  21325. if v != nil {
  21326. v[mk] = mv
  21327. }
  21328. }
  21329. dd.ReadMapEnd()
  21330. d.depthDecr()
  21331. return v, changed
  21332. }
  21333. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  21334. if rv.Kind() == reflect.Ptr {
  21335. vp := rv2i(rv).(*map[float32]uint64)
  21336. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d)
  21337. if changed {
  21338. *vp = v
  21339. }
  21340. } else {
  21341. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  21342. }
  21343. }
  21344. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  21345. v, changed := f.DecMapFloat32Uint64V(*vp, true, d)
  21346. if changed {
  21347. *vp = v
  21348. }
  21349. }
  21350. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  21351. d *Decoder) (_ map[float32]uint64, changed bool) {
  21352. dd, esep := d.d, d.hh.hasElemSeparators()
  21353. containerLen := dd.ReadMapStart()
  21354. if canChange && v == nil {
  21355. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21356. v = make(map[float32]uint64, xlen)
  21357. changed = true
  21358. }
  21359. if containerLen == 0 {
  21360. dd.ReadMapEnd()
  21361. return v, changed
  21362. }
  21363. d.depthIncr()
  21364. var mk float32
  21365. var mv uint64
  21366. hasLen := containerLen > 0
  21367. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21368. if esep {
  21369. dd.ReadMapElemKey()
  21370. }
  21371. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21372. if esep {
  21373. dd.ReadMapElemValue()
  21374. }
  21375. if dd.TryDecodeAsNil() {
  21376. if v == nil {
  21377. } else if d.h.DeleteOnNilMapValue {
  21378. delete(v, mk)
  21379. } else {
  21380. v[mk] = 0
  21381. }
  21382. continue
  21383. }
  21384. mv = dd.DecodeUint64()
  21385. if v != nil {
  21386. v[mk] = mv
  21387. }
  21388. }
  21389. dd.ReadMapEnd()
  21390. d.depthDecr()
  21391. return v, changed
  21392. }
  21393. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  21394. if rv.Kind() == reflect.Ptr {
  21395. vp := rv2i(rv).(*map[float32]uintptr)
  21396. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d)
  21397. if changed {
  21398. *vp = v
  21399. }
  21400. } else {
  21401. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  21402. }
  21403. }
  21404. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  21405. v, changed := f.DecMapFloat32UintptrV(*vp, true, d)
  21406. if changed {
  21407. *vp = v
  21408. }
  21409. }
  21410. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  21411. d *Decoder) (_ map[float32]uintptr, changed bool) {
  21412. dd, esep := d.d, d.hh.hasElemSeparators()
  21413. containerLen := dd.ReadMapStart()
  21414. if canChange && v == nil {
  21415. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21416. v = make(map[float32]uintptr, xlen)
  21417. changed = true
  21418. }
  21419. if containerLen == 0 {
  21420. dd.ReadMapEnd()
  21421. return v, changed
  21422. }
  21423. d.depthIncr()
  21424. var mk float32
  21425. var mv uintptr
  21426. hasLen := containerLen > 0
  21427. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21428. if esep {
  21429. dd.ReadMapElemKey()
  21430. }
  21431. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21432. if esep {
  21433. dd.ReadMapElemValue()
  21434. }
  21435. if dd.TryDecodeAsNil() {
  21436. if v == nil {
  21437. } else if d.h.DeleteOnNilMapValue {
  21438. delete(v, mk)
  21439. } else {
  21440. v[mk] = 0
  21441. }
  21442. continue
  21443. }
  21444. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21445. if v != nil {
  21446. v[mk] = mv
  21447. }
  21448. }
  21449. dd.ReadMapEnd()
  21450. d.depthDecr()
  21451. return v, changed
  21452. }
  21453. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  21454. if rv.Kind() == reflect.Ptr {
  21455. vp := rv2i(rv).(*map[float32]int)
  21456. v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d)
  21457. if changed {
  21458. *vp = v
  21459. }
  21460. } else {
  21461. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  21462. }
  21463. }
  21464. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  21465. v, changed := f.DecMapFloat32IntV(*vp, true, d)
  21466. if changed {
  21467. *vp = v
  21468. }
  21469. }
  21470. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  21471. d *Decoder) (_ map[float32]int, changed bool) {
  21472. dd, esep := d.d, d.hh.hasElemSeparators()
  21473. containerLen := dd.ReadMapStart()
  21474. if canChange && v == nil {
  21475. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21476. v = make(map[float32]int, xlen)
  21477. changed = true
  21478. }
  21479. if containerLen == 0 {
  21480. dd.ReadMapEnd()
  21481. return v, changed
  21482. }
  21483. d.depthIncr()
  21484. var mk float32
  21485. var mv int
  21486. hasLen := containerLen > 0
  21487. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21488. if esep {
  21489. dd.ReadMapElemKey()
  21490. }
  21491. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21492. if esep {
  21493. dd.ReadMapElemValue()
  21494. }
  21495. if dd.TryDecodeAsNil() {
  21496. if v == nil {
  21497. } else if d.h.DeleteOnNilMapValue {
  21498. delete(v, mk)
  21499. } else {
  21500. v[mk] = 0
  21501. }
  21502. continue
  21503. }
  21504. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  21505. if v != nil {
  21506. v[mk] = mv
  21507. }
  21508. }
  21509. dd.ReadMapEnd()
  21510. d.depthDecr()
  21511. return v, changed
  21512. }
  21513. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  21514. if rv.Kind() == reflect.Ptr {
  21515. vp := rv2i(rv).(*map[float32]int8)
  21516. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d)
  21517. if changed {
  21518. *vp = v
  21519. }
  21520. } else {
  21521. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  21522. }
  21523. }
  21524. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  21525. v, changed := f.DecMapFloat32Int8V(*vp, true, d)
  21526. if changed {
  21527. *vp = v
  21528. }
  21529. }
  21530. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  21531. d *Decoder) (_ map[float32]int8, changed bool) {
  21532. dd, esep := d.d, d.hh.hasElemSeparators()
  21533. containerLen := dd.ReadMapStart()
  21534. if canChange && v == nil {
  21535. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21536. v = make(map[float32]int8, xlen)
  21537. changed = true
  21538. }
  21539. if containerLen == 0 {
  21540. dd.ReadMapEnd()
  21541. return v, changed
  21542. }
  21543. d.depthIncr()
  21544. var mk float32
  21545. var mv int8
  21546. hasLen := containerLen > 0
  21547. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21548. if esep {
  21549. dd.ReadMapElemKey()
  21550. }
  21551. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21552. if esep {
  21553. dd.ReadMapElemValue()
  21554. }
  21555. if dd.TryDecodeAsNil() {
  21556. if v == nil {
  21557. } else if d.h.DeleteOnNilMapValue {
  21558. delete(v, mk)
  21559. } else {
  21560. v[mk] = 0
  21561. }
  21562. continue
  21563. }
  21564. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  21565. if v != nil {
  21566. v[mk] = mv
  21567. }
  21568. }
  21569. dd.ReadMapEnd()
  21570. d.depthDecr()
  21571. return v, changed
  21572. }
  21573. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  21574. if rv.Kind() == reflect.Ptr {
  21575. vp := rv2i(rv).(*map[float32]int16)
  21576. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d)
  21577. if changed {
  21578. *vp = v
  21579. }
  21580. } else {
  21581. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  21582. }
  21583. }
  21584. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  21585. v, changed := f.DecMapFloat32Int16V(*vp, true, d)
  21586. if changed {
  21587. *vp = v
  21588. }
  21589. }
  21590. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  21591. d *Decoder) (_ map[float32]int16, changed bool) {
  21592. dd, esep := d.d, d.hh.hasElemSeparators()
  21593. containerLen := dd.ReadMapStart()
  21594. if canChange && v == nil {
  21595. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21596. v = make(map[float32]int16, xlen)
  21597. changed = true
  21598. }
  21599. if containerLen == 0 {
  21600. dd.ReadMapEnd()
  21601. return v, changed
  21602. }
  21603. d.depthIncr()
  21604. var mk float32
  21605. var mv int16
  21606. hasLen := containerLen > 0
  21607. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21608. if esep {
  21609. dd.ReadMapElemKey()
  21610. }
  21611. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21612. if esep {
  21613. dd.ReadMapElemValue()
  21614. }
  21615. if dd.TryDecodeAsNil() {
  21616. if v == nil {
  21617. } else if d.h.DeleteOnNilMapValue {
  21618. delete(v, mk)
  21619. } else {
  21620. v[mk] = 0
  21621. }
  21622. continue
  21623. }
  21624. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  21625. if v != nil {
  21626. v[mk] = mv
  21627. }
  21628. }
  21629. dd.ReadMapEnd()
  21630. d.depthDecr()
  21631. return v, changed
  21632. }
  21633. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  21634. if rv.Kind() == reflect.Ptr {
  21635. vp := rv2i(rv).(*map[float32]int32)
  21636. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d)
  21637. if changed {
  21638. *vp = v
  21639. }
  21640. } else {
  21641. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  21642. }
  21643. }
  21644. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  21645. v, changed := f.DecMapFloat32Int32V(*vp, true, d)
  21646. if changed {
  21647. *vp = v
  21648. }
  21649. }
  21650. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  21651. d *Decoder) (_ map[float32]int32, changed bool) {
  21652. dd, esep := d.d, d.hh.hasElemSeparators()
  21653. containerLen := dd.ReadMapStart()
  21654. if canChange && v == nil {
  21655. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21656. v = make(map[float32]int32, xlen)
  21657. changed = true
  21658. }
  21659. if containerLen == 0 {
  21660. dd.ReadMapEnd()
  21661. return v, changed
  21662. }
  21663. d.depthIncr()
  21664. var mk float32
  21665. var mv int32
  21666. hasLen := containerLen > 0
  21667. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21668. if esep {
  21669. dd.ReadMapElemKey()
  21670. }
  21671. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21672. if esep {
  21673. dd.ReadMapElemValue()
  21674. }
  21675. if dd.TryDecodeAsNil() {
  21676. if v == nil {
  21677. } else if d.h.DeleteOnNilMapValue {
  21678. delete(v, mk)
  21679. } else {
  21680. v[mk] = 0
  21681. }
  21682. continue
  21683. }
  21684. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  21685. if v != nil {
  21686. v[mk] = mv
  21687. }
  21688. }
  21689. dd.ReadMapEnd()
  21690. d.depthDecr()
  21691. return v, changed
  21692. }
  21693. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  21694. if rv.Kind() == reflect.Ptr {
  21695. vp := rv2i(rv).(*map[float32]int64)
  21696. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d)
  21697. if changed {
  21698. *vp = v
  21699. }
  21700. } else {
  21701. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  21702. }
  21703. }
  21704. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  21705. v, changed := f.DecMapFloat32Int64V(*vp, true, d)
  21706. if changed {
  21707. *vp = v
  21708. }
  21709. }
  21710. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  21711. d *Decoder) (_ map[float32]int64, changed bool) {
  21712. dd, esep := d.d, d.hh.hasElemSeparators()
  21713. containerLen := dd.ReadMapStart()
  21714. if canChange && v == nil {
  21715. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21716. v = make(map[float32]int64, xlen)
  21717. changed = true
  21718. }
  21719. if containerLen == 0 {
  21720. dd.ReadMapEnd()
  21721. return v, changed
  21722. }
  21723. d.depthIncr()
  21724. var mk float32
  21725. var mv int64
  21726. hasLen := containerLen > 0
  21727. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21728. if esep {
  21729. dd.ReadMapElemKey()
  21730. }
  21731. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21732. if esep {
  21733. dd.ReadMapElemValue()
  21734. }
  21735. if dd.TryDecodeAsNil() {
  21736. if v == nil {
  21737. } else if d.h.DeleteOnNilMapValue {
  21738. delete(v, mk)
  21739. } else {
  21740. v[mk] = 0
  21741. }
  21742. continue
  21743. }
  21744. mv = dd.DecodeInt64()
  21745. if v != nil {
  21746. v[mk] = mv
  21747. }
  21748. }
  21749. dd.ReadMapEnd()
  21750. d.depthDecr()
  21751. return v, changed
  21752. }
  21753. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  21754. if rv.Kind() == reflect.Ptr {
  21755. vp := rv2i(rv).(*map[float32]float32)
  21756. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d)
  21757. if changed {
  21758. *vp = v
  21759. }
  21760. } else {
  21761. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  21762. }
  21763. }
  21764. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  21765. v, changed := f.DecMapFloat32Float32V(*vp, true, d)
  21766. if changed {
  21767. *vp = v
  21768. }
  21769. }
  21770. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  21771. d *Decoder) (_ map[float32]float32, changed bool) {
  21772. dd, esep := d.d, d.hh.hasElemSeparators()
  21773. containerLen := dd.ReadMapStart()
  21774. if canChange && v == nil {
  21775. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21776. v = make(map[float32]float32, xlen)
  21777. changed = true
  21778. }
  21779. if containerLen == 0 {
  21780. dd.ReadMapEnd()
  21781. return v, changed
  21782. }
  21783. d.depthIncr()
  21784. var mk float32
  21785. var mv float32
  21786. hasLen := containerLen > 0
  21787. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21788. if esep {
  21789. dd.ReadMapElemKey()
  21790. }
  21791. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21792. if esep {
  21793. dd.ReadMapElemValue()
  21794. }
  21795. if dd.TryDecodeAsNil() {
  21796. if v == nil {
  21797. } else if d.h.DeleteOnNilMapValue {
  21798. delete(v, mk)
  21799. } else {
  21800. v[mk] = 0
  21801. }
  21802. continue
  21803. }
  21804. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21805. if v != nil {
  21806. v[mk] = mv
  21807. }
  21808. }
  21809. dd.ReadMapEnd()
  21810. d.depthDecr()
  21811. return v, changed
  21812. }
  21813. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  21814. if rv.Kind() == reflect.Ptr {
  21815. vp := rv2i(rv).(*map[float32]float64)
  21816. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d)
  21817. if changed {
  21818. *vp = v
  21819. }
  21820. } else {
  21821. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  21822. }
  21823. }
  21824. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  21825. v, changed := f.DecMapFloat32Float64V(*vp, true, d)
  21826. if changed {
  21827. *vp = v
  21828. }
  21829. }
  21830. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  21831. d *Decoder) (_ map[float32]float64, changed bool) {
  21832. dd, esep := d.d, d.hh.hasElemSeparators()
  21833. containerLen := dd.ReadMapStart()
  21834. if canChange && v == nil {
  21835. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21836. v = make(map[float32]float64, xlen)
  21837. changed = true
  21838. }
  21839. if containerLen == 0 {
  21840. dd.ReadMapEnd()
  21841. return v, changed
  21842. }
  21843. d.depthIncr()
  21844. var mk float32
  21845. var mv float64
  21846. hasLen := containerLen > 0
  21847. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21848. if esep {
  21849. dd.ReadMapElemKey()
  21850. }
  21851. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21852. if esep {
  21853. dd.ReadMapElemValue()
  21854. }
  21855. if dd.TryDecodeAsNil() {
  21856. if v == nil {
  21857. } else if d.h.DeleteOnNilMapValue {
  21858. delete(v, mk)
  21859. } else {
  21860. v[mk] = 0
  21861. }
  21862. continue
  21863. }
  21864. mv = dd.DecodeFloat64()
  21865. if v != nil {
  21866. v[mk] = mv
  21867. }
  21868. }
  21869. dd.ReadMapEnd()
  21870. d.depthDecr()
  21871. return v, changed
  21872. }
  21873. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  21874. if rv.Kind() == reflect.Ptr {
  21875. vp := rv2i(rv).(*map[float32]bool)
  21876. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d)
  21877. if changed {
  21878. *vp = v
  21879. }
  21880. } else {
  21881. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  21882. }
  21883. }
  21884. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  21885. v, changed := f.DecMapFloat32BoolV(*vp, true, d)
  21886. if changed {
  21887. *vp = v
  21888. }
  21889. }
  21890. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  21891. d *Decoder) (_ map[float32]bool, changed bool) {
  21892. dd, esep := d.d, d.hh.hasElemSeparators()
  21893. containerLen := dd.ReadMapStart()
  21894. if canChange && v == nil {
  21895. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21896. v = make(map[float32]bool, xlen)
  21897. changed = true
  21898. }
  21899. if containerLen == 0 {
  21900. dd.ReadMapEnd()
  21901. return v, changed
  21902. }
  21903. d.depthIncr()
  21904. var mk float32
  21905. var mv bool
  21906. hasLen := containerLen > 0
  21907. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21908. if esep {
  21909. dd.ReadMapElemKey()
  21910. }
  21911. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21912. if esep {
  21913. dd.ReadMapElemValue()
  21914. }
  21915. if dd.TryDecodeAsNil() {
  21916. if v == nil {
  21917. } else if d.h.DeleteOnNilMapValue {
  21918. delete(v, mk)
  21919. } else {
  21920. v[mk] = false
  21921. }
  21922. continue
  21923. }
  21924. mv = dd.DecodeBool()
  21925. if v != nil {
  21926. v[mk] = mv
  21927. }
  21928. }
  21929. dd.ReadMapEnd()
  21930. d.depthDecr()
  21931. return v, changed
  21932. }
  21933. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  21934. if rv.Kind() == reflect.Ptr {
  21935. vp := rv2i(rv).(*map[float64]interface{})
  21936. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d)
  21937. if changed {
  21938. *vp = v
  21939. }
  21940. } else {
  21941. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  21942. }
  21943. }
  21944. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  21945. v, changed := f.DecMapFloat64IntfV(*vp, true, d)
  21946. if changed {
  21947. *vp = v
  21948. }
  21949. }
  21950. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  21951. d *Decoder) (_ map[float64]interface{}, changed bool) {
  21952. dd, esep := d.d, d.hh.hasElemSeparators()
  21953. containerLen := dd.ReadMapStart()
  21954. if canChange && v == nil {
  21955. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21956. v = make(map[float64]interface{}, xlen)
  21957. changed = true
  21958. }
  21959. if containerLen == 0 {
  21960. dd.ReadMapEnd()
  21961. return v, changed
  21962. }
  21963. d.depthIncr()
  21964. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21965. var mk float64
  21966. var mv interface{}
  21967. hasLen := containerLen > 0
  21968. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21969. if esep {
  21970. dd.ReadMapElemKey()
  21971. }
  21972. mk = dd.DecodeFloat64()
  21973. if esep {
  21974. dd.ReadMapElemValue()
  21975. }
  21976. if dd.TryDecodeAsNil() {
  21977. if v == nil {
  21978. } else if d.h.DeleteOnNilMapValue {
  21979. delete(v, mk)
  21980. } else {
  21981. v[mk] = nil
  21982. }
  21983. continue
  21984. }
  21985. if mapGet {
  21986. mv = v[mk]
  21987. } else {
  21988. mv = nil
  21989. }
  21990. d.decode(&mv)
  21991. if v != nil {
  21992. v[mk] = mv
  21993. }
  21994. }
  21995. dd.ReadMapEnd()
  21996. d.depthDecr()
  21997. return v, changed
  21998. }
  21999. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  22000. if rv.Kind() == reflect.Ptr {
  22001. vp := rv2i(rv).(*map[float64]string)
  22002. v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d)
  22003. if changed {
  22004. *vp = v
  22005. }
  22006. } else {
  22007. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  22008. }
  22009. }
  22010. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  22011. v, changed := f.DecMapFloat64StringV(*vp, true, d)
  22012. if changed {
  22013. *vp = v
  22014. }
  22015. }
  22016. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  22017. d *Decoder) (_ map[float64]string, changed bool) {
  22018. dd, esep := d.d, d.hh.hasElemSeparators()
  22019. containerLen := dd.ReadMapStart()
  22020. if canChange && v == nil {
  22021. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22022. v = make(map[float64]string, xlen)
  22023. changed = true
  22024. }
  22025. if containerLen == 0 {
  22026. dd.ReadMapEnd()
  22027. return v, changed
  22028. }
  22029. d.depthIncr()
  22030. var mk float64
  22031. var mv string
  22032. hasLen := containerLen > 0
  22033. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22034. if esep {
  22035. dd.ReadMapElemKey()
  22036. }
  22037. mk = dd.DecodeFloat64()
  22038. if esep {
  22039. dd.ReadMapElemValue()
  22040. }
  22041. if dd.TryDecodeAsNil() {
  22042. if v == nil {
  22043. } else if d.h.DeleteOnNilMapValue {
  22044. delete(v, mk)
  22045. } else {
  22046. v[mk] = ""
  22047. }
  22048. continue
  22049. }
  22050. mv = dd.DecodeString()
  22051. if v != nil {
  22052. v[mk] = mv
  22053. }
  22054. }
  22055. dd.ReadMapEnd()
  22056. d.depthDecr()
  22057. return v, changed
  22058. }
  22059. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  22060. if rv.Kind() == reflect.Ptr {
  22061. vp := rv2i(rv).(*map[float64]uint)
  22062. v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d)
  22063. if changed {
  22064. *vp = v
  22065. }
  22066. } else {
  22067. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  22068. }
  22069. }
  22070. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  22071. v, changed := f.DecMapFloat64UintV(*vp, true, d)
  22072. if changed {
  22073. *vp = v
  22074. }
  22075. }
  22076. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  22077. d *Decoder) (_ map[float64]uint, changed bool) {
  22078. dd, esep := d.d, d.hh.hasElemSeparators()
  22079. containerLen := dd.ReadMapStart()
  22080. if canChange && v == nil {
  22081. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22082. v = make(map[float64]uint, xlen)
  22083. changed = true
  22084. }
  22085. if containerLen == 0 {
  22086. dd.ReadMapEnd()
  22087. return v, changed
  22088. }
  22089. d.depthIncr()
  22090. var mk float64
  22091. var mv uint
  22092. hasLen := containerLen > 0
  22093. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22094. if esep {
  22095. dd.ReadMapElemKey()
  22096. }
  22097. mk = dd.DecodeFloat64()
  22098. if esep {
  22099. dd.ReadMapElemValue()
  22100. }
  22101. if dd.TryDecodeAsNil() {
  22102. if v == nil {
  22103. } else if d.h.DeleteOnNilMapValue {
  22104. delete(v, mk)
  22105. } else {
  22106. v[mk] = 0
  22107. }
  22108. continue
  22109. }
  22110. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22111. if v != nil {
  22112. v[mk] = mv
  22113. }
  22114. }
  22115. dd.ReadMapEnd()
  22116. d.depthDecr()
  22117. return v, changed
  22118. }
  22119. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  22120. if rv.Kind() == reflect.Ptr {
  22121. vp := rv2i(rv).(*map[float64]uint8)
  22122. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d)
  22123. if changed {
  22124. *vp = v
  22125. }
  22126. } else {
  22127. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  22128. }
  22129. }
  22130. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  22131. v, changed := f.DecMapFloat64Uint8V(*vp, true, d)
  22132. if changed {
  22133. *vp = v
  22134. }
  22135. }
  22136. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  22137. d *Decoder) (_ map[float64]uint8, changed bool) {
  22138. dd, esep := d.d, d.hh.hasElemSeparators()
  22139. containerLen := dd.ReadMapStart()
  22140. if canChange && v == nil {
  22141. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22142. v = make(map[float64]uint8, xlen)
  22143. changed = true
  22144. }
  22145. if containerLen == 0 {
  22146. dd.ReadMapEnd()
  22147. return v, changed
  22148. }
  22149. d.depthIncr()
  22150. var mk float64
  22151. var mv uint8
  22152. hasLen := containerLen > 0
  22153. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22154. if esep {
  22155. dd.ReadMapElemKey()
  22156. }
  22157. mk = dd.DecodeFloat64()
  22158. if esep {
  22159. dd.ReadMapElemValue()
  22160. }
  22161. if dd.TryDecodeAsNil() {
  22162. if v == nil {
  22163. } else if d.h.DeleteOnNilMapValue {
  22164. delete(v, mk)
  22165. } else {
  22166. v[mk] = 0
  22167. }
  22168. continue
  22169. }
  22170. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22171. if v != nil {
  22172. v[mk] = mv
  22173. }
  22174. }
  22175. dd.ReadMapEnd()
  22176. d.depthDecr()
  22177. return v, changed
  22178. }
  22179. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  22180. if rv.Kind() == reflect.Ptr {
  22181. vp := rv2i(rv).(*map[float64]uint16)
  22182. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d)
  22183. if changed {
  22184. *vp = v
  22185. }
  22186. } else {
  22187. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  22188. }
  22189. }
  22190. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  22191. v, changed := f.DecMapFloat64Uint16V(*vp, true, d)
  22192. if changed {
  22193. *vp = v
  22194. }
  22195. }
  22196. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  22197. d *Decoder) (_ map[float64]uint16, changed bool) {
  22198. dd, esep := d.d, d.hh.hasElemSeparators()
  22199. containerLen := dd.ReadMapStart()
  22200. if canChange && v == nil {
  22201. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22202. v = make(map[float64]uint16, xlen)
  22203. changed = true
  22204. }
  22205. if containerLen == 0 {
  22206. dd.ReadMapEnd()
  22207. return v, changed
  22208. }
  22209. d.depthIncr()
  22210. var mk float64
  22211. var mv uint16
  22212. hasLen := containerLen > 0
  22213. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22214. if esep {
  22215. dd.ReadMapElemKey()
  22216. }
  22217. mk = dd.DecodeFloat64()
  22218. if esep {
  22219. dd.ReadMapElemValue()
  22220. }
  22221. if dd.TryDecodeAsNil() {
  22222. if v == nil {
  22223. } else if d.h.DeleteOnNilMapValue {
  22224. delete(v, mk)
  22225. } else {
  22226. v[mk] = 0
  22227. }
  22228. continue
  22229. }
  22230. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  22231. if v != nil {
  22232. v[mk] = mv
  22233. }
  22234. }
  22235. dd.ReadMapEnd()
  22236. d.depthDecr()
  22237. return v, changed
  22238. }
  22239. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  22240. if rv.Kind() == reflect.Ptr {
  22241. vp := rv2i(rv).(*map[float64]uint32)
  22242. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d)
  22243. if changed {
  22244. *vp = v
  22245. }
  22246. } else {
  22247. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  22248. }
  22249. }
  22250. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  22251. v, changed := f.DecMapFloat64Uint32V(*vp, true, d)
  22252. if changed {
  22253. *vp = v
  22254. }
  22255. }
  22256. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  22257. d *Decoder) (_ map[float64]uint32, changed bool) {
  22258. dd, esep := d.d, d.hh.hasElemSeparators()
  22259. containerLen := dd.ReadMapStart()
  22260. if canChange && v == nil {
  22261. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22262. v = make(map[float64]uint32, xlen)
  22263. changed = true
  22264. }
  22265. if containerLen == 0 {
  22266. dd.ReadMapEnd()
  22267. return v, changed
  22268. }
  22269. d.depthIncr()
  22270. var mk float64
  22271. var mv uint32
  22272. hasLen := containerLen > 0
  22273. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22274. if esep {
  22275. dd.ReadMapElemKey()
  22276. }
  22277. mk = dd.DecodeFloat64()
  22278. if esep {
  22279. dd.ReadMapElemValue()
  22280. }
  22281. if dd.TryDecodeAsNil() {
  22282. if v == nil {
  22283. } else if d.h.DeleteOnNilMapValue {
  22284. delete(v, mk)
  22285. } else {
  22286. v[mk] = 0
  22287. }
  22288. continue
  22289. }
  22290. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  22291. if v != nil {
  22292. v[mk] = mv
  22293. }
  22294. }
  22295. dd.ReadMapEnd()
  22296. d.depthDecr()
  22297. return v, changed
  22298. }
  22299. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  22300. if rv.Kind() == reflect.Ptr {
  22301. vp := rv2i(rv).(*map[float64]uint64)
  22302. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d)
  22303. if changed {
  22304. *vp = v
  22305. }
  22306. } else {
  22307. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  22308. }
  22309. }
  22310. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  22311. v, changed := f.DecMapFloat64Uint64V(*vp, true, d)
  22312. if changed {
  22313. *vp = v
  22314. }
  22315. }
  22316. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  22317. d *Decoder) (_ map[float64]uint64, changed bool) {
  22318. dd, esep := d.d, d.hh.hasElemSeparators()
  22319. containerLen := dd.ReadMapStart()
  22320. if canChange && v == nil {
  22321. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22322. v = make(map[float64]uint64, xlen)
  22323. changed = true
  22324. }
  22325. if containerLen == 0 {
  22326. dd.ReadMapEnd()
  22327. return v, changed
  22328. }
  22329. d.depthIncr()
  22330. var mk float64
  22331. var mv uint64
  22332. hasLen := containerLen > 0
  22333. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22334. if esep {
  22335. dd.ReadMapElemKey()
  22336. }
  22337. mk = dd.DecodeFloat64()
  22338. if esep {
  22339. dd.ReadMapElemValue()
  22340. }
  22341. if dd.TryDecodeAsNil() {
  22342. if v == nil {
  22343. } else if d.h.DeleteOnNilMapValue {
  22344. delete(v, mk)
  22345. } else {
  22346. v[mk] = 0
  22347. }
  22348. continue
  22349. }
  22350. mv = dd.DecodeUint64()
  22351. if v != nil {
  22352. v[mk] = mv
  22353. }
  22354. }
  22355. dd.ReadMapEnd()
  22356. d.depthDecr()
  22357. return v, changed
  22358. }
  22359. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  22360. if rv.Kind() == reflect.Ptr {
  22361. vp := rv2i(rv).(*map[float64]uintptr)
  22362. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d)
  22363. if changed {
  22364. *vp = v
  22365. }
  22366. } else {
  22367. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  22368. }
  22369. }
  22370. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  22371. v, changed := f.DecMapFloat64UintptrV(*vp, true, d)
  22372. if changed {
  22373. *vp = v
  22374. }
  22375. }
  22376. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  22377. d *Decoder) (_ map[float64]uintptr, changed bool) {
  22378. dd, esep := d.d, d.hh.hasElemSeparators()
  22379. containerLen := dd.ReadMapStart()
  22380. if canChange && v == nil {
  22381. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22382. v = make(map[float64]uintptr, xlen)
  22383. changed = true
  22384. }
  22385. if containerLen == 0 {
  22386. dd.ReadMapEnd()
  22387. return v, changed
  22388. }
  22389. d.depthIncr()
  22390. var mk float64
  22391. var mv uintptr
  22392. hasLen := containerLen > 0
  22393. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22394. if esep {
  22395. dd.ReadMapElemKey()
  22396. }
  22397. mk = dd.DecodeFloat64()
  22398. if esep {
  22399. dd.ReadMapElemValue()
  22400. }
  22401. if dd.TryDecodeAsNil() {
  22402. if v == nil {
  22403. } else if d.h.DeleteOnNilMapValue {
  22404. delete(v, mk)
  22405. } else {
  22406. v[mk] = 0
  22407. }
  22408. continue
  22409. }
  22410. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22411. if v != nil {
  22412. v[mk] = mv
  22413. }
  22414. }
  22415. dd.ReadMapEnd()
  22416. d.depthDecr()
  22417. return v, changed
  22418. }
  22419. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  22420. if rv.Kind() == reflect.Ptr {
  22421. vp := rv2i(rv).(*map[float64]int)
  22422. v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d)
  22423. if changed {
  22424. *vp = v
  22425. }
  22426. } else {
  22427. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  22428. }
  22429. }
  22430. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  22431. v, changed := f.DecMapFloat64IntV(*vp, true, d)
  22432. if changed {
  22433. *vp = v
  22434. }
  22435. }
  22436. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  22437. d *Decoder) (_ map[float64]int, changed bool) {
  22438. dd, esep := d.d, d.hh.hasElemSeparators()
  22439. containerLen := dd.ReadMapStart()
  22440. if canChange && v == nil {
  22441. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22442. v = make(map[float64]int, xlen)
  22443. changed = true
  22444. }
  22445. if containerLen == 0 {
  22446. dd.ReadMapEnd()
  22447. return v, changed
  22448. }
  22449. d.depthIncr()
  22450. var mk float64
  22451. var mv int
  22452. hasLen := containerLen > 0
  22453. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22454. if esep {
  22455. dd.ReadMapElemKey()
  22456. }
  22457. mk = dd.DecodeFloat64()
  22458. if esep {
  22459. dd.ReadMapElemValue()
  22460. }
  22461. if dd.TryDecodeAsNil() {
  22462. if v == nil {
  22463. } else if d.h.DeleteOnNilMapValue {
  22464. delete(v, mk)
  22465. } else {
  22466. v[mk] = 0
  22467. }
  22468. continue
  22469. }
  22470. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  22471. if v != nil {
  22472. v[mk] = mv
  22473. }
  22474. }
  22475. dd.ReadMapEnd()
  22476. d.depthDecr()
  22477. return v, changed
  22478. }
  22479. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  22480. if rv.Kind() == reflect.Ptr {
  22481. vp := rv2i(rv).(*map[float64]int8)
  22482. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d)
  22483. if changed {
  22484. *vp = v
  22485. }
  22486. } else {
  22487. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  22488. }
  22489. }
  22490. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  22491. v, changed := f.DecMapFloat64Int8V(*vp, true, d)
  22492. if changed {
  22493. *vp = v
  22494. }
  22495. }
  22496. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  22497. d *Decoder) (_ map[float64]int8, changed bool) {
  22498. dd, esep := d.d, d.hh.hasElemSeparators()
  22499. containerLen := dd.ReadMapStart()
  22500. if canChange && v == nil {
  22501. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22502. v = make(map[float64]int8, xlen)
  22503. changed = true
  22504. }
  22505. if containerLen == 0 {
  22506. dd.ReadMapEnd()
  22507. return v, changed
  22508. }
  22509. d.depthIncr()
  22510. var mk float64
  22511. var mv int8
  22512. hasLen := containerLen > 0
  22513. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22514. if esep {
  22515. dd.ReadMapElemKey()
  22516. }
  22517. mk = dd.DecodeFloat64()
  22518. if esep {
  22519. dd.ReadMapElemValue()
  22520. }
  22521. if dd.TryDecodeAsNil() {
  22522. if v == nil {
  22523. } else if d.h.DeleteOnNilMapValue {
  22524. delete(v, mk)
  22525. } else {
  22526. v[mk] = 0
  22527. }
  22528. continue
  22529. }
  22530. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  22531. if v != nil {
  22532. v[mk] = mv
  22533. }
  22534. }
  22535. dd.ReadMapEnd()
  22536. d.depthDecr()
  22537. return v, changed
  22538. }
  22539. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  22540. if rv.Kind() == reflect.Ptr {
  22541. vp := rv2i(rv).(*map[float64]int16)
  22542. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d)
  22543. if changed {
  22544. *vp = v
  22545. }
  22546. } else {
  22547. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  22548. }
  22549. }
  22550. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  22551. v, changed := f.DecMapFloat64Int16V(*vp, true, d)
  22552. if changed {
  22553. *vp = v
  22554. }
  22555. }
  22556. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  22557. d *Decoder) (_ map[float64]int16, changed bool) {
  22558. dd, esep := d.d, d.hh.hasElemSeparators()
  22559. containerLen := dd.ReadMapStart()
  22560. if canChange && v == nil {
  22561. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22562. v = make(map[float64]int16, xlen)
  22563. changed = true
  22564. }
  22565. if containerLen == 0 {
  22566. dd.ReadMapEnd()
  22567. return v, changed
  22568. }
  22569. d.depthIncr()
  22570. var mk float64
  22571. var mv int16
  22572. hasLen := containerLen > 0
  22573. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22574. if esep {
  22575. dd.ReadMapElemKey()
  22576. }
  22577. mk = dd.DecodeFloat64()
  22578. if esep {
  22579. dd.ReadMapElemValue()
  22580. }
  22581. if dd.TryDecodeAsNil() {
  22582. if v == nil {
  22583. } else if d.h.DeleteOnNilMapValue {
  22584. delete(v, mk)
  22585. } else {
  22586. v[mk] = 0
  22587. }
  22588. continue
  22589. }
  22590. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  22591. if v != nil {
  22592. v[mk] = mv
  22593. }
  22594. }
  22595. dd.ReadMapEnd()
  22596. d.depthDecr()
  22597. return v, changed
  22598. }
  22599. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  22600. if rv.Kind() == reflect.Ptr {
  22601. vp := rv2i(rv).(*map[float64]int32)
  22602. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d)
  22603. if changed {
  22604. *vp = v
  22605. }
  22606. } else {
  22607. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  22608. }
  22609. }
  22610. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  22611. v, changed := f.DecMapFloat64Int32V(*vp, true, d)
  22612. if changed {
  22613. *vp = v
  22614. }
  22615. }
  22616. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  22617. d *Decoder) (_ map[float64]int32, changed bool) {
  22618. dd, esep := d.d, d.hh.hasElemSeparators()
  22619. containerLen := dd.ReadMapStart()
  22620. if canChange && v == nil {
  22621. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22622. v = make(map[float64]int32, xlen)
  22623. changed = true
  22624. }
  22625. if containerLen == 0 {
  22626. dd.ReadMapEnd()
  22627. return v, changed
  22628. }
  22629. d.depthIncr()
  22630. var mk float64
  22631. var mv int32
  22632. hasLen := containerLen > 0
  22633. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22634. if esep {
  22635. dd.ReadMapElemKey()
  22636. }
  22637. mk = dd.DecodeFloat64()
  22638. if esep {
  22639. dd.ReadMapElemValue()
  22640. }
  22641. if dd.TryDecodeAsNil() {
  22642. if v == nil {
  22643. } else if d.h.DeleteOnNilMapValue {
  22644. delete(v, mk)
  22645. } else {
  22646. v[mk] = 0
  22647. }
  22648. continue
  22649. }
  22650. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  22651. if v != nil {
  22652. v[mk] = mv
  22653. }
  22654. }
  22655. dd.ReadMapEnd()
  22656. d.depthDecr()
  22657. return v, changed
  22658. }
  22659. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  22660. if rv.Kind() == reflect.Ptr {
  22661. vp := rv2i(rv).(*map[float64]int64)
  22662. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d)
  22663. if changed {
  22664. *vp = v
  22665. }
  22666. } else {
  22667. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  22668. }
  22669. }
  22670. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  22671. v, changed := f.DecMapFloat64Int64V(*vp, true, d)
  22672. if changed {
  22673. *vp = v
  22674. }
  22675. }
  22676. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  22677. d *Decoder) (_ map[float64]int64, changed bool) {
  22678. dd, esep := d.d, d.hh.hasElemSeparators()
  22679. containerLen := dd.ReadMapStart()
  22680. if canChange && v == nil {
  22681. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22682. v = make(map[float64]int64, xlen)
  22683. changed = true
  22684. }
  22685. if containerLen == 0 {
  22686. dd.ReadMapEnd()
  22687. return v, changed
  22688. }
  22689. d.depthIncr()
  22690. var mk float64
  22691. var mv int64
  22692. hasLen := containerLen > 0
  22693. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22694. if esep {
  22695. dd.ReadMapElemKey()
  22696. }
  22697. mk = dd.DecodeFloat64()
  22698. if esep {
  22699. dd.ReadMapElemValue()
  22700. }
  22701. if dd.TryDecodeAsNil() {
  22702. if v == nil {
  22703. } else if d.h.DeleteOnNilMapValue {
  22704. delete(v, mk)
  22705. } else {
  22706. v[mk] = 0
  22707. }
  22708. continue
  22709. }
  22710. mv = dd.DecodeInt64()
  22711. if v != nil {
  22712. v[mk] = mv
  22713. }
  22714. }
  22715. dd.ReadMapEnd()
  22716. d.depthDecr()
  22717. return v, changed
  22718. }
  22719. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  22720. if rv.Kind() == reflect.Ptr {
  22721. vp := rv2i(rv).(*map[float64]float32)
  22722. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d)
  22723. if changed {
  22724. *vp = v
  22725. }
  22726. } else {
  22727. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  22728. }
  22729. }
  22730. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  22731. v, changed := f.DecMapFloat64Float32V(*vp, true, d)
  22732. if changed {
  22733. *vp = v
  22734. }
  22735. }
  22736. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  22737. d *Decoder) (_ map[float64]float32, changed bool) {
  22738. dd, esep := d.d, d.hh.hasElemSeparators()
  22739. containerLen := dd.ReadMapStart()
  22740. if canChange && v == nil {
  22741. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22742. v = make(map[float64]float32, xlen)
  22743. changed = true
  22744. }
  22745. if containerLen == 0 {
  22746. dd.ReadMapEnd()
  22747. return v, changed
  22748. }
  22749. d.depthIncr()
  22750. var mk float64
  22751. var mv float32
  22752. hasLen := containerLen > 0
  22753. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22754. if esep {
  22755. dd.ReadMapElemKey()
  22756. }
  22757. mk = dd.DecodeFloat64()
  22758. if esep {
  22759. dd.ReadMapElemValue()
  22760. }
  22761. if dd.TryDecodeAsNil() {
  22762. if v == nil {
  22763. } else if d.h.DeleteOnNilMapValue {
  22764. delete(v, mk)
  22765. } else {
  22766. v[mk] = 0
  22767. }
  22768. continue
  22769. }
  22770. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  22771. if v != nil {
  22772. v[mk] = mv
  22773. }
  22774. }
  22775. dd.ReadMapEnd()
  22776. d.depthDecr()
  22777. return v, changed
  22778. }
  22779. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  22780. if rv.Kind() == reflect.Ptr {
  22781. vp := rv2i(rv).(*map[float64]float64)
  22782. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d)
  22783. if changed {
  22784. *vp = v
  22785. }
  22786. } else {
  22787. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  22788. }
  22789. }
  22790. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  22791. v, changed := f.DecMapFloat64Float64V(*vp, true, d)
  22792. if changed {
  22793. *vp = v
  22794. }
  22795. }
  22796. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  22797. d *Decoder) (_ map[float64]float64, changed bool) {
  22798. dd, esep := d.d, d.hh.hasElemSeparators()
  22799. containerLen := dd.ReadMapStart()
  22800. if canChange && v == nil {
  22801. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22802. v = make(map[float64]float64, xlen)
  22803. changed = true
  22804. }
  22805. if containerLen == 0 {
  22806. dd.ReadMapEnd()
  22807. return v, changed
  22808. }
  22809. d.depthIncr()
  22810. var mk float64
  22811. var mv float64
  22812. hasLen := containerLen > 0
  22813. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22814. if esep {
  22815. dd.ReadMapElemKey()
  22816. }
  22817. mk = dd.DecodeFloat64()
  22818. if esep {
  22819. dd.ReadMapElemValue()
  22820. }
  22821. if dd.TryDecodeAsNil() {
  22822. if v == nil {
  22823. } else if d.h.DeleteOnNilMapValue {
  22824. delete(v, mk)
  22825. } else {
  22826. v[mk] = 0
  22827. }
  22828. continue
  22829. }
  22830. mv = dd.DecodeFloat64()
  22831. if v != nil {
  22832. v[mk] = mv
  22833. }
  22834. }
  22835. dd.ReadMapEnd()
  22836. d.depthDecr()
  22837. return v, changed
  22838. }
  22839. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  22840. if rv.Kind() == reflect.Ptr {
  22841. vp := rv2i(rv).(*map[float64]bool)
  22842. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d)
  22843. if changed {
  22844. *vp = v
  22845. }
  22846. } else {
  22847. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  22848. }
  22849. }
  22850. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  22851. v, changed := f.DecMapFloat64BoolV(*vp, true, d)
  22852. if changed {
  22853. *vp = v
  22854. }
  22855. }
  22856. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  22857. d *Decoder) (_ map[float64]bool, changed bool) {
  22858. dd, esep := d.d, d.hh.hasElemSeparators()
  22859. containerLen := dd.ReadMapStart()
  22860. if canChange && v == nil {
  22861. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22862. v = make(map[float64]bool, xlen)
  22863. changed = true
  22864. }
  22865. if containerLen == 0 {
  22866. dd.ReadMapEnd()
  22867. return v, changed
  22868. }
  22869. d.depthIncr()
  22870. var mk float64
  22871. var mv bool
  22872. hasLen := containerLen > 0
  22873. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22874. if esep {
  22875. dd.ReadMapElemKey()
  22876. }
  22877. mk = dd.DecodeFloat64()
  22878. if esep {
  22879. dd.ReadMapElemValue()
  22880. }
  22881. if dd.TryDecodeAsNil() {
  22882. if v == nil {
  22883. } else if d.h.DeleteOnNilMapValue {
  22884. delete(v, mk)
  22885. } else {
  22886. v[mk] = false
  22887. }
  22888. continue
  22889. }
  22890. mv = dd.DecodeBool()
  22891. if v != nil {
  22892. v[mk] = mv
  22893. }
  22894. }
  22895. dd.ReadMapEnd()
  22896. d.depthDecr()
  22897. return v, changed
  22898. }
  22899. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  22900. if rv.Kind() == reflect.Ptr {
  22901. vp := rv2i(rv).(*map[uint]interface{})
  22902. v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d)
  22903. if changed {
  22904. *vp = v
  22905. }
  22906. } else {
  22907. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  22908. }
  22909. }
  22910. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  22911. v, changed := f.DecMapUintIntfV(*vp, true, d)
  22912. if changed {
  22913. *vp = v
  22914. }
  22915. }
  22916. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  22917. d *Decoder) (_ map[uint]interface{}, changed bool) {
  22918. dd, esep := d.d, d.hh.hasElemSeparators()
  22919. containerLen := dd.ReadMapStart()
  22920. if canChange && v == nil {
  22921. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22922. v = make(map[uint]interface{}, xlen)
  22923. changed = true
  22924. }
  22925. if containerLen == 0 {
  22926. dd.ReadMapEnd()
  22927. return v, changed
  22928. }
  22929. d.depthIncr()
  22930. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  22931. var mk uint
  22932. var mv interface{}
  22933. hasLen := containerLen > 0
  22934. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22935. if esep {
  22936. dd.ReadMapElemKey()
  22937. }
  22938. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22939. if esep {
  22940. dd.ReadMapElemValue()
  22941. }
  22942. if dd.TryDecodeAsNil() {
  22943. if v == nil {
  22944. } else if d.h.DeleteOnNilMapValue {
  22945. delete(v, mk)
  22946. } else {
  22947. v[mk] = nil
  22948. }
  22949. continue
  22950. }
  22951. if mapGet {
  22952. mv = v[mk]
  22953. } else {
  22954. mv = nil
  22955. }
  22956. d.decode(&mv)
  22957. if v != nil {
  22958. v[mk] = mv
  22959. }
  22960. }
  22961. dd.ReadMapEnd()
  22962. d.depthDecr()
  22963. return v, changed
  22964. }
  22965. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  22966. if rv.Kind() == reflect.Ptr {
  22967. vp := rv2i(rv).(*map[uint]string)
  22968. v, changed := fastpathTV.DecMapUintStringV(*vp, true, d)
  22969. if changed {
  22970. *vp = v
  22971. }
  22972. } else {
  22973. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  22974. }
  22975. }
  22976. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  22977. v, changed := f.DecMapUintStringV(*vp, true, d)
  22978. if changed {
  22979. *vp = v
  22980. }
  22981. }
  22982. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  22983. d *Decoder) (_ map[uint]string, changed bool) {
  22984. dd, esep := d.d, d.hh.hasElemSeparators()
  22985. containerLen := dd.ReadMapStart()
  22986. if canChange && v == nil {
  22987. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22988. v = make(map[uint]string, xlen)
  22989. changed = true
  22990. }
  22991. if containerLen == 0 {
  22992. dd.ReadMapEnd()
  22993. return v, changed
  22994. }
  22995. d.depthIncr()
  22996. var mk uint
  22997. var mv string
  22998. hasLen := containerLen > 0
  22999. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23000. if esep {
  23001. dd.ReadMapElemKey()
  23002. }
  23003. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23004. if esep {
  23005. dd.ReadMapElemValue()
  23006. }
  23007. if dd.TryDecodeAsNil() {
  23008. if v == nil {
  23009. } else if d.h.DeleteOnNilMapValue {
  23010. delete(v, mk)
  23011. } else {
  23012. v[mk] = ""
  23013. }
  23014. continue
  23015. }
  23016. mv = dd.DecodeString()
  23017. if v != nil {
  23018. v[mk] = mv
  23019. }
  23020. }
  23021. dd.ReadMapEnd()
  23022. d.depthDecr()
  23023. return v, changed
  23024. }
  23025. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  23026. if rv.Kind() == reflect.Ptr {
  23027. vp := rv2i(rv).(*map[uint]uint)
  23028. v, changed := fastpathTV.DecMapUintUintV(*vp, true, d)
  23029. if changed {
  23030. *vp = v
  23031. }
  23032. } else {
  23033. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  23034. }
  23035. }
  23036. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  23037. v, changed := f.DecMapUintUintV(*vp, true, d)
  23038. if changed {
  23039. *vp = v
  23040. }
  23041. }
  23042. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  23043. d *Decoder) (_ map[uint]uint, changed bool) {
  23044. dd, esep := d.d, d.hh.hasElemSeparators()
  23045. containerLen := dd.ReadMapStart()
  23046. if canChange && v == nil {
  23047. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23048. v = make(map[uint]uint, xlen)
  23049. changed = true
  23050. }
  23051. if containerLen == 0 {
  23052. dd.ReadMapEnd()
  23053. return v, changed
  23054. }
  23055. d.depthIncr()
  23056. var mk uint
  23057. var mv uint
  23058. hasLen := containerLen > 0
  23059. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23060. if esep {
  23061. dd.ReadMapElemKey()
  23062. }
  23063. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23064. if esep {
  23065. dd.ReadMapElemValue()
  23066. }
  23067. if dd.TryDecodeAsNil() {
  23068. if v == nil {
  23069. } else if d.h.DeleteOnNilMapValue {
  23070. delete(v, mk)
  23071. } else {
  23072. v[mk] = 0
  23073. }
  23074. continue
  23075. }
  23076. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23077. if v != nil {
  23078. v[mk] = mv
  23079. }
  23080. }
  23081. dd.ReadMapEnd()
  23082. d.depthDecr()
  23083. return v, changed
  23084. }
  23085. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  23086. if rv.Kind() == reflect.Ptr {
  23087. vp := rv2i(rv).(*map[uint]uint8)
  23088. v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d)
  23089. if changed {
  23090. *vp = v
  23091. }
  23092. } else {
  23093. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  23094. }
  23095. }
  23096. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  23097. v, changed := f.DecMapUintUint8V(*vp, true, d)
  23098. if changed {
  23099. *vp = v
  23100. }
  23101. }
  23102. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  23103. d *Decoder) (_ map[uint]uint8, changed bool) {
  23104. dd, esep := d.d, d.hh.hasElemSeparators()
  23105. containerLen := dd.ReadMapStart()
  23106. if canChange && v == nil {
  23107. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23108. v = make(map[uint]uint8, xlen)
  23109. changed = true
  23110. }
  23111. if containerLen == 0 {
  23112. dd.ReadMapEnd()
  23113. return v, changed
  23114. }
  23115. d.depthIncr()
  23116. var mk uint
  23117. var mv uint8
  23118. hasLen := containerLen > 0
  23119. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23120. if esep {
  23121. dd.ReadMapElemKey()
  23122. }
  23123. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23124. if esep {
  23125. dd.ReadMapElemValue()
  23126. }
  23127. if dd.TryDecodeAsNil() {
  23128. if v == nil {
  23129. } else if d.h.DeleteOnNilMapValue {
  23130. delete(v, mk)
  23131. } else {
  23132. v[mk] = 0
  23133. }
  23134. continue
  23135. }
  23136. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23137. if v != nil {
  23138. v[mk] = mv
  23139. }
  23140. }
  23141. dd.ReadMapEnd()
  23142. d.depthDecr()
  23143. return v, changed
  23144. }
  23145. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  23146. if rv.Kind() == reflect.Ptr {
  23147. vp := rv2i(rv).(*map[uint]uint16)
  23148. v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d)
  23149. if changed {
  23150. *vp = v
  23151. }
  23152. } else {
  23153. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  23154. }
  23155. }
  23156. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  23157. v, changed := f.DecMapUintUint16V(*vp, true, d)
  23158. if changed {
  23159. *vp = v
  23160. }
  23161. }
  23162. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  23163. d *Decoder) (_ map[uint]uint16, changed bool) {
  23164. dd, esep := d.d, d.hh.hasElemSeparators()
  23165. containerLen := dd.ReadMapStart()
  23166. if canChange && v == nil {
  23167. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23168. v = make(map[uint]uint16, xlen)
  23169. changed = true
  23170. }
  23171. if containerLen == 0 {
  23172. dd.ReadMapEnd()
  23173. return v, changed
  23174. }
  23175. d.depthIncr()
  23176. var mk uint
  23177. var mv uint16
  23178. hasLen := containerLen > 0
  23179. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23180. if esep {
  23181. dd.ReadMapElemKey()
  23182. }
  23183. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23184. if esep {
  23185. dd.ReadMapElemValue()
  23186. }
  23187. if dd.TryDecodeAsNil() {
  23188. if v == nil {
  23189. } else if d.h.DeleteOnNilMapValue {
  23190. delete(v, mk)
  23191. } else {
  23192. v[mk] = 0
  23193. }
  23194. continue
  23195. }
  23196. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23197. if v != nil {
  23198. v[mk] = mv
  23199. }
  23200. }
  23201. dd.ReadMapEnd()
  23202. d.depthDecr()
  23203. return v, changed
  23204. }
  23205. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  23206. if rv.Kind() == reflect.Ptr {
  23207. vp := rv2i(rv).(*map[uint]uint32)
  23208. v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d)
  23209. if changed {
  23210. *vp = v
  23211. }
  23212. } else {
  23213. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  23214. }
  23215. }
  23216. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  23217. v, changed := f.DecMapUintUint32V(*vp, true, d)
  23218. if changed {
  23219. *vp = v
  23220. }
  23221. }
  23222. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  23223. d *Decoder) (_ map[uint]uint32, changed bool) {
  23224. dd, esep := d.d, d.hh.hasElemSeparators()
  23225. containerLen := dd.ReadMapStart()
  23226. if canChange && v == nil {
  23227. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23228. v = make(map[uint]uint32, xlen)
  23229. changed = true
  23230. }
  23231. if containerLen == 0 {
  23232. dd.ReadMapEnd()
  23233. return v, changed
  23234. }
  23235. d.depthIncr()
  23236. var mk uint
  23237. var mv uint32
  23238. hasLen := containerLen > 0
  23239. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23240. if esep {
  23241. dd.ReadMapElemKey()
  23242. }
  23243. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23244. if esep {
  23245. dd.ReadMapElemValue()
  23246. }
  23247. if dd.TryDecodeAsNil() {
  23248. if v == nil {
  23249. } else if d.h.DeleteOnNilMapValue {
  23250. delete(v, mk)
  23251. } else {
  23252. v[mk] = 0
  23253. }
  23254. continue
  23255. }
  23256. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  23257. if v != nil {
  23258. v[mk] = mv
  23259. }
  23260. }
  23261. dd.ReadMapEnd()
  23262. d.depthDecr()
  23263. return v, changed
  23264. }
  23265. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  23266. if rv.Kind() == reflect.Ptr {
  23267. vp := rv2i(rv).(*map[uint]uint64)
  23268. v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d)
  23269. if changed {
  23270. *vp = v
  23271. }
  23272. } else {
  23273. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  23274. }
  23275. }
  23276. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  23277. v, changed := f.DecMapUintUint64V(*vp, true, d)
  23278. if changed {
  23279. *vp = v
  23280. }
  23281. }
  23282. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  23283. d *Decoder) (_ map[uint]uint64, changed bool) {
  23284. dd, esep := d.d, d.hh.hasElemSeparators()
  23285. containerLen := dd.ReadMapStart()
  23286. if canChange && v == nil {
  23287. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23288. v = make(map[uint]uint64, xlen)
  23289. changed = true
  23290. }
  23291. if containerLen == 0 {
  23292. dd.ReadMapEnd()
  23293. return v, changed
  23294. }
  23295. d.depthIncr()
  23296. var mk uint
  23297. var mv uint64
  23298. hasLen := containerLen > 0
  23299. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23300. if esep {
  23301. dd.ReadMapElemKey()
  23302. }
  23303. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23304. if esep {
  23305. dd.ReadMapElemValue()
  23306. }
  23307. if dd.TryDecodeAsNil() {
  23308. if v == nil {
  23309. } else if d.h.DeleteOnNilMapValue {
  23310. delete(v, mk)
  23311. } else {
  23312. v[mk] = 0
  23313. }
  23314. continue
  23315. }
  23316. mv = dd.DecodeUint64()
  23317. if v != nil {
  23318. v[mk] = mv
  23319. }
  23320. }
  23321. dd.ReadMapEnd()
  23322. d.depthDecr()
  23323. return v, changed
  23324. }
  23325. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  23326. if rv.Kind() == reflect.Ptr {
  23327. vp := rv2i(rv).(*map[uint]uintptr)
  23328. v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d)
  23329. if changed {
  23330. *vp = v
  23331. }
  23332. } else {
  23333. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  23334. }
  23335. }
  23336. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  23337. v, changed := f.DecMapUintUintptrV(*vp, true, d)
  23338. if changed {
  23339. *vp = v
  23340. }
  23341. }
  23342. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  23343. d *Decoder) (_ map[uint]uintptr, changed bool) {
  23344. dd, esep := d.d, d.hh.hasElemSeparators()
  23345. containerLen := dd.ReadMapStart()
  23346. if canChange && v == nil {
  23347. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23348. v = make(map[uint]uintptr, xlen)
  23349. changed = true
  23350. }
  23351. if containerLen == 0 {
  23352. dd.ReadMapEnd()
  23353. return v, changed
  23354. }
  23355. d.depthIncr()
  23356. var mk uint
  23357. var mv uintptr
  23358. hasLen := containerLen > 0
  23359. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23360. if esep {
  23361. dd.ReadMapElemKey()
  23362. }
  23363. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23364. if esep {
  23365. dd.ReadMapElemValue()
  23366. }
  23367. if dd.TryDecodeAsNil() {
  23368. if v == nil {
  23369. } else if d.h.DeleteOnNilMapValue {
  23370. delete(v, mk)
  23371. } else {
  23372. v[mk] = 0
  23373. }
  23374. continue
  23375. }
  23376. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23377. if v != nil {
  23378. v[mk] = mv
  23379. }
  23380. }
  23381. dd.ReadMapEnd()
  23382. d.depthDecr()
  23383. return v, changed
  23384. }
  23385. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  23386. if rv.Kind() == reflect.Ptr {
  23387. vp := rv2i(rv).(*map[uint]int)
  23388. v, changed := fastpathTV.DecMapUintIntV(*vp, true, d)
  23389. if changed {
  23390. *vp = v
  23391. }
  23392. } else {
  23393. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  23394. }
  23395. }
  23396. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  23397. v, changed := f.DecMapUintIntV(*vp, true, d)
  23398. if changed {
  23399. *vp = v
  23400. }
  23401. }
  23402. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  23403. d *Decoder) (_ map[uint]int, changed bool) {
  23404. dd, esep := d.d, d.hh.hasElemSeparators()
  23405. containerLen := dd.ReadMapStart()
  23406. if canChange && v == nil {
  23407. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23408. v = make(map[uint]int, xlen)
  23409. changed = true
  23410. }
  23411. if containerLen == 0 {
  23412. dd.ReadMapEnd()
  23413. return v, changed
  23414. }
  23415. d.depthIncr()
  23416. var mk uint
  23417. var mv int
  23418. hasLen := containerLen > 0
  23419. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23420. if esep {
  23421. dd.ReadMapElemKey()
  23422. }
  23423. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23424. if esep {
  23425. dd.ReadMapElemValue()
  23426. }
  23427. if dd.TryDecodeAsNil() {
  23428. if v == nil {
  23429. } else if d.h.DeleteOnNilMapValue {
  23430. delete(v, mk)
  23431. } else {
  23432. v[mk] = 0
  23433. }
  23434. continue
  23435. }
  23436. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  23437. if v != nil {
  23438. v[mk] = mv
  23439. }
  23440. }
  23441. dd.ReadMapEnd()
  23442. d.depthDecr()
  23443. return v, changed
  23444. }
  23445. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  23446. if rv.Kind() == reflect.Ptr {
  23447. vp := rv2i(rv).(*map[uint]int8)
  23448. v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d)
  23449. if changed {
  23450. *vp = v
  23451. }
  23452. } else {
  23453. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  23454. }
  23455. }
  23456. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  23457. v, changed := f.DecMapUintInt8V(*vp, true, d)
  23458. if changed {
  23459. *vp = v
  23460. }
  23461. }
  23462. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  23463. d *Decoder) (_ map[uint]int8, changed bool) {
  23464. dd, esep := d.d, d.hh.hasElemSeparators()
  23465. containerLen := dd.ReadMapStart()
  23466. if canChange && v == nil {
  23467. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23468. v = make(map[uint]int8, xlen)
  23469. changed = true
  23470. }
  23471. if containerLen == 0 {
  23472. dd.ReadMapEnd()
  23473. return v, changed
  23474. }
  23475. d.depthIncr()
  23476. var mk uint
  23477. var mv int8
  23478. hasLen := containerLen > 0
  23479. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23480. if esep {
  23481. dd.ReadMapElemKey()
  23482. }
  23483. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23484. if esep {
  23485. dd.ReadMapElemValue()
  23486. }
  23487. if dd.TryDecodeAsNil() {
  23488. if v == nil {
  23489. } else if d.h.DeleteOnNilMapValue {
  23490. delete(v, mk)
  23491. } else {
  23492. v[mk] = 0
  23493. }
  23494. continue
  23495. }
  23496. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  23497. if v != nil {
  23498. v[mk] = mv
  23499. }
  23500. }
  23501. dd.ReadMapEnd()
  23502. d.depthDecr()
  23503. return v, changed
  23504. }
  23505. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  23506. if rv.Kind() == reflect.Ptr {
  23507. vp := rv2i(rv).(*map[uint]int16)
  23508. v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d)
  23509. if changed {
  23510. *vp = v
  23511. }
  23512. } else {
  23513. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  23514. }
  23515. }
  23516. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  23517. v, changed := f.DecMapUintInt16V(*vp, true, d)
  23518. if changed {
  23519. *vp = v
  23520. }
  23521. }
  23522. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  23523. d *Decoder) (_ map[uint]int16, changed bool) {
  23524. dd, esep := d.d, d.hh.hasElemSeparators()
  23525. containerLen := dd.ReadMapStart()
  23526. if canChange && v == nil {
  23527. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23528. v = make(map[uint]int16, xlen)
  23529. changed = true
  23530. }
  23531. if containerLen == 0 {
  23532. dd.ReadMapEnd()
  23533. return v, changed
  23534. }
  23535. d.depthIncr()
  23536. var mk uint
  23537. var mv int16
  23538. hasLen := containerLen > 0
  23539. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23540. if esep {
  23541. dd.ReadMapElemKey()
  23542. }
  23543. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23544. if esep {
  23545. dd.ReadMapElemValue()
  23546. }
  23547. if dd.TryDecodeAsNil() {
  23548. if v == nil {
  23549. } else if d.h.DeleteOnNilMapValue {
  23550. delete(v, mk)
  23551. } else {
  23552. v[mk] = 0
  23553. }
  23554. continue
  23555. }
  23556. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  23557. if v != nil {
  23558. v[mk] = mv
  23559. }
  23560. }
  23561. dd.ReadMapEnd()
  23562. d.depthDecr()
  23563. return v, changed
  23564. }
  23565. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  23566. if rv.Kind() == reflect.Ptr {
  23567. vp := rv2i(rv).(*map[uint]int32)
  23568. v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d)
  23569. if changed {
  23570. *vp = v
  23571. }
  23572. } else {
  23573. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  23574. }
  23575. }
  23576. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  23577. v, changed := f.DecMapUintInt32V(*vp, true, d)
  23578. if changed {
  23579. *vp = v
  23580. }
  23581. }
  23582. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  23583. d *Decoder) (_ map[uint]int32, changed bool) {
  23584. dd, esep := d.d, d.hh.hasElemSeparators()
  23585. containerLen := dd.ReadMapStart()
  23586. if canChange && v == nil {
  23587. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23588. v = make(map[uint]int32, xlen)
  23589. changed = true
  23590. }
  23591. if containerLen == 0 {
  23592. dd.ReadMapEnd()
  23593. return v, changed
  23594. }
  23595. d.depthIncr()
  23596. var mk uint
  23597. var mv int32
  23598. hasLen := containerLen > 0
  23599. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23600. if esep {
  23601. dd.ReadMapElemKey()
  23602. }
  23603. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23604. if esep {
  23605. dd.ReadMapElemValue()
  23606. }
  23607. if dd.TryDecodeAsNil() {
  23608. if v == nil {
  23609. } else if d.h.DeleteOnNilMapValue {
  23610. delete(v, mk)
  23611. } else {
  23612. v[mk] = 0
  23613. }
  23614. continue
  23615. }
  23616. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  23617. if v != nil {
  23618. v[mk] = mv
  23619. }
  23620. }
  23621. dd.ReadMapEnd()
  23622. d.depthDecr()
  23623. return v, changed
  23624. }
  23625. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  23626. if rv.Kind() == reflect.Ptr {
  23627. vp := rv2i(rv).(*map[uint]int64)
  23628. v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d)
  23629. if changed {
  23630. *vp = v
  23631. }
  23632. } else {
  23633. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  23634. }
  23635. }
  23636. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  23637. v, changed := f.DecMapUintInt64V(*vp, true, d)
  23638. if changed {
  23639. *vp = v
  23640. }
  23641. }
  23642. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  23643. d *Decoder) (_ map[uint]int64, changed bool) {
  23644. dd, esep := d.d, d.hh.hasElemSeparators()
  23645. containerLen := dd.ReadMapStart()
  23646. if canChange && v == nil {
  23647. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23648. v = make(map[uint]int64, xlen)
  23649. changed = true
  23650. }
  23651. if containerLen == 0 {
  23652. dd.ReadMapEnd()
  23653. return v, changed
  23654. }
  23655. d.depthIncr()
  23656. var mk uint
  23657. var mv int64
  23658. hasLen := containerLen > 0
  23659. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23660. if esep {
  23661. dd.ReadMapElemKey()
  23662. }
  23663. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23664. if esep {
  23665. dd.ReadMapElemValue()
  23666. }
  23667. if dd.TryDecodeAsNil() {
  23668. if v == nil {
  23669. } else if d.h.DeleteOnNilMapValue {
  23670. delete(v, mk)
  23671. } else {
  23672. v[mk] = 0
  23673. }
  23674. continue
  23675. }
  23676. mv = dd.DecodeInt64()
  23677. if v != nil {
  23678. v[mk] = mv
  23679. }
  23680. }
  23681. dd.ReadMapEnd()
  23682. d.depthDecr()
  23683. return v, changed
  23684. }
  23685. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  23686. if rv.Kind() == reflect.Ptr {
  23687. vp := rv2i(rv).(*map[uint]float32)
  23688. v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d)
  23689. if changed {
  23690. *vp = v
  23691. }
  23692. } else {
  23693. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  23694. }
  23695. }
  23696. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  23697. v, changed := f.DecMapUintFloat32V(*vp, true, d)
  23698. if changed {
  23699. *vp = v
  23700. }
  23701. }
  23702. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  23703. d *Decoder) (_ map[uint]float32, changed bool) {
  23704. dd, esep := d.d, d.hh.hasElemSeparators()
  23705. containerLen := dd.ReadMapStart()
  23706. if canChange && v == nil {
  23707. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23708. v = make(map[uint]float32, xlen)
  23709. changed = true
  23710. }
  23711. if containerLen == 0 {
  23712. dd.ReadMapEnd()
  23713. return v, changed
  23714. }
  23715. d.depthIncr()
  23716. var mk uint
  23717. var mv float32
  23718. hasLen := containerLen > 0
  23719. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23720. if esep {
  23721. dd.ReadMapElemKey()
  23722. }
  23723. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23724. if esep {
  23725. dd.ReadMapElemValue()
  23726. }
  23727. if dd.TryDecodeAsNil() {
  23728. if v == nil {
  23729. } else if d.h.DeleteOnNilMapValue {
  23730. delete(v, mk)
  23731. } else {
  23732. v[mk] = 0
  23733. }
  23734. continue
  23735. }
  23736. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  23737. if v != nil {
  23738. v[mk] = mv
  23739. }
  23740. }
  23741. dd.ReadMapEnd()
  23742. d.depthDecr()
  23743. return v, changed
  23744. }
  23745. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  23746. if rv.Kind() == reflect.Ptr {
  23747. vp := rv2i(rv).(*map[uint]float64)
  23748. v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d)
  23749. if changed {
  23750. *vp = v
  23751. }
  23752. } else {
  23753. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  23754. }
  23755. }
  23756. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  23757. v, changed := f.DecMapUintFloat64V(*vp, true, d)
  23758. if changed {
  23759. *vp = v
  23760. }
  23761. }
  23762. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  23763. d *Decoder) (_ map[uint]float64, changed bool) {
  23764. dd, esep := d.d, d.hh.hasElemSeparators()
  23765. containerLen := dd.ReadMapStart()
  23766. if canChange && v == nil {
  23767. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23768. v = make(map[uint]float64, xlen)
  23769. changed = true
  23770. }
  23771. if containerLen == 0 {
  23772. dd.ReadMapEnd()
  23773. return v, changed
  23774. }
  23775. d.depthIncr()
  23776. var mk uint
  23777. var mv float64
  23778. hasLen := containerLen > 0
  23779. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23780. if esep {
  23781. dd.ReadMapElemKey()
  23782. }
  23783. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23784. if esep {
  23785. dd.ReadMapElemValue()
  23786. }
  23787. if dd.TryDecodeAsNil() {
  23788. if v == nil {
  23789. } else if d.h.DeleteOnNilMapValue {
  23790. delete(v, mk)
  23791. } else {
  23792. v[mk] = 0
  23793. }
  23794. continue
  23795. }
  23796. mv = dd.DecodeFloat64()
  23797. if v != nil {
  23798. v[mk] = mv
  23799. }
  23800. }
  23801. dd.ReadMapEnd()
  23802. d.depthDecr()
  23803. return v, changed
  23804. }
  23805. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  23806. if rv.Kind() == reflect.Ptr {
  23807. vp := rv2i(rv).(*map[uint]bool)
  23808. v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d)
  23809. if changed {
  23810. *vp = v
  23811. }
  23812. } else {
  23813. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  23814. }
  23815. }
  23816. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  23817. v, changed := f.DecMapUintBoolV(*vp, true, d)
  23818. if changed {
  23819. *vp = v
  23820. }
  23821. }
  23822. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  23823. d *Decoder) (_ map[uint]bool, changed bool) {
  23824. dd, esep := d.d, d.hh.hasElemSeparators()
  23825. containerLen := dd.ReadMapStart()
  23826. if canChange && v == nil {
  23827. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23828. v = make(map[uint]bool, xlen)
  23829. changed = true
  23830. }
  23831. if containerLen == 0 {
  23832. dd.ReadMapEnd()
  23833. return v, changed
  23834. }
  23835. d.depthIncr()
  23836. var mk uint
  23837. var mv bool
  23838. hasLen := containerLen > 0
  23839. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23840. if esep {
  23841. dd.ReadMapElemKey()
  23842. }
  23843. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23844. if esep {
  23845. dd.ReadMapElemValue()
  23846. }
  23847. if dd.TryDecodeAsNil() {
  23848. if v == nil {
  23849. } else if d.h.DeleteOnNilMapValue {
  23850. delete(v, mk)
  23851. } else {
  23852. v[mk] = false
  23853. }
  23854. continue
  23855. }
  23856. mv = dd.DecodeBool()
  23857. if v != nil {
  23858. v[mk] = mv
  23859. }
  23860. }
  23861. dd.ReadMapEnd()
  23862. d.depthDecr()
  23863. return v, changed
  23864. }
  23865. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  23866. if rv.Kind() == reflect.Ptr {
  23867. vp := rv2i(rv).(*map[uint8]interface{})
  23868. v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d)
  23869. if changed {
  23870. *vp = v
  23871. }
  23872. } else {
  23873. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  23874. }
  23875. }
  23876. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  23877. v, changed := f.DecMapUint8IntfV(*vp, true, d)
  23878. if changed {
  23879. *vp = v
  23880. }
  23881. }
  23882. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  23883. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  23884. dd, esep := d.d, d.hh.hasElemSeparators()
  23885. containerLen := dd.ReadMapStart()
  23886. if canChange && v == nil {
  23887. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23888. v = make(map[uint8]interface{}, xlen)
  23889. changed = true
  23890. }
  23891. if containerLen == 0 {
  23892. dd.ReadMapEnd()
  23893. return v, changed
  23894. }
  23895. d.depthIncr()
  23896. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  23897. var mk uint8
  23898. var mv interface{}
  23899. hasLen := containerLen > 0
  23900. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23901. if esep {
  23902. dd.ReadMapElemKey()
  23903. }
  23904. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23905. if esep {
  23906. dd.ReadMapElemValue()
  23907. }
  23908. if dd.TryDecodeAsNil() {
  23909. if v == nil {
  23910. } else if d.h.DeleteOnNilMapValue {
  23911. delete(v, mk)
  23912. } else {
  23913. v[mk] = nil
  23914. }
  23915. continue
  23916. }
  23917. if mapGet {
  23918. mv = v[mk]
  23919. } else {
  23920. mv = nil
  23921. }
  23922. d.decode(&mv)
  23923. if v != nil {
  23924. v[mk] = mv
  23925. }
  23926. }
  23927. dd.ReadMapEnd()
  23928. d.depthDecr()
  23929. return v, changed
  23930. }
  23931. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  23932. if rv.Kind() == reflect.Ptr {
  23933. vp := rv2i(rv).(*map[uint8]string)
  23934. v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d)
  23935. if changed {
  23936. *vp = v
  23937. }
  23938. } else {
  23939. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  23940. }
  23941. }
  23942. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  23943. v, changed := f.DecMapUint8StringV(*vp, true, d)
  23944. if changed {
  23945. *vp = v
  23946. }
  23947. }
  23948. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  23949. d *Decoder) (_ map[uint8]string, changed bool) {
  23950. dd, esep := d.d, d.hh.hasElemSeparators()
  23951. containerLen := dd.ReadMapStart()
  23952. if canChange && v == nil {
  23953. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23954. v = make(map[uint8]string, xlen)
  23955. changed = true
  23956. }
  23957. if containerLen == 0 {
  23958. dd.ReadMapEnd()
  23959. return v, changed
  23960. }
  23961. d.depthIncr()
  23962. var mk uint8
  23963. var mv string
  23964. hasLen := containerLen > 0
  23965. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23966. if esep {
  23967. dd.ReadMapElemKey()
  23968. }
  23969. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23970. if esep {
  23971. dd.ReadMapElemValue()
  23972. }
  23973. if dd.TryDecodeAsNil() {
  23974. if v == nil {
  23975. } else if d.h.DeleteOnNilMapValue {
  23976. delete(v, mk)
  23977. } else {
  23978. v[mk] = ""
  23979. }
  23980. continue
  23981. }
  23982. mv = dd.DecodeString()
  23983. if v != nil {
  23984. v[mk] = mv
  23985. }
  23986. }
  23987. dd.ReadMapEnd()
  23988. d.depthDecr()
  23989. return v, changed
  23990. }
  23991. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  23992. if rv.Kind() == reflect.Ptr {
  23993. vp := rv2i(rv).(*map[uint8]uint)
  23994. v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d)
  23995. if changed {
  23996. *vp = v
  23997. }
  23998. } else {
  23999. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  24000. }
  24001. }
  24002. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  24003. v, changed := f.DecMapUint8UintV(*vp, true, d)
  24004. if changed {
  24005. *vp = v
  24006. }
  24007. }
  24008. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  24009. d *Decoder) (_ map[uint8]uint, changed bool) {
  24010. dd, esep := d.d, d.hh.hasElemSeparators()
  24011. containerLen := dd.ReadMapStart()
  24012. if canChange && v == nil {
  24013. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24014. v = make(map[uint8]uint, xlen)
  24015. changed = true
  24016. }
  24017. if containerLen == 0 {
  24018. dd.ReadMapEnd()
  24019. return v, changed
  24020. }
  24021. d.depthIncr()
  24022. var mk uint8
  24023. var mv uint
  24024. hasLen := containerLen > 0
  24025. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24026. if esep {
  24027. dd.ReadMapElemKey()
  24028. }
  24029. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24030. if esep {
  24031. dd.ReadMapElemValue()
  24032. }
  24033. if dd.TryDecodeAsNil() {
  24034. if v == nil {
  24035. } else if d.h.DeleteOnNilMapValue {
  24036. delete(v, mk)
  24037. } else {
  24038. v[mk] = 0
  24039. }
  24040. continue
  24041. }
  24042. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24043. if v != nil {
  24044. v[mk] = mv
  24045. }
  24046. }
  24047. dd.ReadMapEnd()
  24048. d.depthDecr()
  24049. return v, changed
  24050. }
  24051. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  24052. if rv.Kind() == reflect.Ptr {
  24053. vp := rv2i(rv).(*map[uint8]uint8)
  24054. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d)
  24055. if changed {
  24056. *vp = v
  24057. }
  24058. } else {
  24059. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  24060. }
  24061. }
  24062. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  24063. v, changed := f.DecMapUint8Uint8V(*vp, true, d)
  24064. if changed {
  24065. *vp = v
  24066. }
  24067. }
  24068. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  24069. d *Decoder) (_ map[uint8]uint8, changed bool) {
  24070. dd, esep := d.d, d.hh.hasElemSeparators()
  24071. containerLen := dd.ReadMapStart()
  24072. if canChange && v == nil {
  24073. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24074. v = make(map[uint8]uint8, xlen)
  24075. changed = true
  24076. }
  24077. if containerLen == 0 {
  24078. dd.ReadMapEnd()
  24079. return v, changed
  24080. }
  24081. d.depthIncr()
  24082. var mk uint8
  24083. var mv uint8
  24084. hasLen := containerLen > 0
  24085. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24086. if esep {
  24087. dd.ReadMapElemKey()
  24088. }
  24089. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24090. if esep {
  24091. dd.ReadMapElemValue()
  24092. }
  24093. if dd.TryDecodeAsNil() {
  24094. if v == nil {
  24095. } else if d.h.DeleteOnNilMapValue {
  24096. delete(v, mk)
  24097. } else {
  24098. v[mk] = 0
  24099. }
  24100. continue
  24101. }
  24102. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24103. if v != nil {
  24104. v[mk] = mv
  24105. }
  24106. }
  24107. dd.ReadMapEnd()
  24108. d.depthDecr()
  24109. return v, changed
  24110. }
  24111. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  24112. if rv.Kind() == reflect.Ptr {
  24113. vp := rv2i(rv).(*map[uint8]uint16)
  24114. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d)
  24115. if changed {
  24116. *vp = v
  24117. }
  24118. } else {
  24119. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  24120. }
  24121. }
  24122. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  24123. v, changed := f.DecMapUint8Uint16V(*vp, true, d)
  24124. if changed {
  24125. *vp = v
  24126. }
  24127. }
  24128. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  24129. d *Decoder) (_ map[uint8]uint16, changed bool) {
  24130. dd, esep := d.d, d.hh.hasElemSeparators()
  24131. containerLen := dd.ReadMapStart()
  24132. if canChange && v == nil {
  24133. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24134. v = make(map[uint8]uint16, xlen)
  24135. changed = true
  24136. }
  24137. if containerLen == 0 {
  24138. dd.ReadMapEnd()
  24139. return v, changed
  24140. }
  24141. d.depthIncr()
  24142. var mk uint8
  24143. var mv uint16
  24144. hasLen := containerLen > 0
  24145. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24146. if esep {
  24147. dd.ReadMapElemKey()
  24148. }
  24149. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24150. if esep {
  24151. dd.ReadMapElemValue()
  24152. }
  24153. if dd.TryDecodeAsNil() {
  24154. if v == nil {
  24155. } else if d.h.DeleteOnNilMapValue {
  24156. delete(v, mk)
  24157. } else {
  24158. v[mk] = 0
  24159. }
  24160. continue
  24161. }
  24162. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24163. if v != nil {
  24164. v[mk] = mv
  24165. }
  24166. }
  24167. dd.ReadMapEnd()
  24168. d.depthDecr()
  24169. return v, changed
  24170. }
  24171. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  24172. if rv.Kind() == reflect.Ptr {
  24173. vp := rv2i(rv).(*map[uint8]uint32)
  24174. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d)
  24175. if changed {
  24176. *vp = v
  24177. }
  24178. } else {
  24179. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  24180. }
  24181. }
  24182. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  24183. v, changed := f.DecMapUint8Uint32V(*vp, true, d)
  24184. if changed {
  24185. *vp = v
  24186. }
  24187. }
  24188. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  24189. d *Decoder) (_ map[uint8]uint32, changed bool) {
  24190. dd, esep := d.d, d.hh.hasElemSeparators()
  24191. containerLen := dd.ReadMapStart()
  24192. if canChange && v == nil {
  24193. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24194. v = make(map[uint8]uint32, xlen)
  24195. changed = true
  24196. }
  24197. if containerLen == 0 {
  24198. dd.ReadMapEnd()
  24199. return v, changed
  24200. }
  24201. d.depthIncr()
  24202. var mk uint8
  24203. var mv uint32
  24204. hasLen := containerLen > 0
  24205. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24206. if esep {
  24207. dd.ReadMapElemKey()
  24208. }
  24209. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24210. if esep {
  24211. dd.ReadMapElemValue()
  24212. }
  24213. if dd.TryDecodeAsNil() {
  24214. if v == nil {
  24215. } else if d.h.DeleteOnNilMapValue {
  24216. delete(v, mk)
  24217. } else {
  24218. v[mk] = 0
  24219. }
  24220. continue
  24221. }
  24222. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24223. if v != nil {
  24224. v[mk] = mv
  24225. }
  24226. }
  24227. dd.ReadMapEnd()
  24228. d.depthDecr()
  24229. return v, changed
  24230. }
  24231. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  24232. if rv.Kind() == reflect.Ptr {
  24233. vp := rv2i(rv).(*map[uint8]uint64)
  24234. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d)
  24235. if changed {
  24236. *vp = v
  24237. }
  24238. } else {
  24239. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  24240. }
  24241. }
  24242. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  24243. v, changed := f.DecMapUint8Uint64V(*vp, true, d)
  24244. if changed {
  24245. *vp = v
  24246. }
  24247. }
  24248. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  24249. d *Decoder) (_ map[uint8]uint64, changed bool) {
  24250. dd, esep := d.d, d.hh.hasElemSeparators()
  24251. containerLen := dd.ReadMapStart()
  24252. if canChange && v == nil {
  24253. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24254. v = make(map[uint8]uint64, xlen)
  24255. changed = true
  24256. }
  24257. if containerLen == 0 {
  24258. dd.ReadMapEnd()
  24259. return v, changed
  24260. }
  24261. d.depthIncr()
  24262. var mk uint8
  24263. var mv uint64
  24264. hasLen := containerLen > 0
  24265. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24266. if esep {
  24267. dd.ReadMapElemKey()
  24268. }
  24269. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24270. if esep {
  24271. dd.ReadMapElemValue()
  24272. }
  24273. if dd.TryDecodeAsNil() {
  24274. if v == nil {
  24275. } else if d.h.DeleteOnNilMapValue {
  24276. delete(v, mk)
  24277. } else {
  24278. v[mk] = 0
  24279. }
  24280. continue
  24281. }
  24282. mv = dd.DecodeUint64()
  24283. if v != nil {
  24284. v[mk] = mv
  24285. }
  24286. }
  24287. dd.ReadMapEnd()
  24288. d.depthDecr()
  24289. return v, changed
  24290. }
  24291. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  24292. if rv.Kind() == reflect.Ptr {
  24293. vp := rv2i(rv).(*map[uint8]uintptr)
  24294. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d)
  24295. if changed {
  24296. *vp = v
  24297. }
  24298. } else {
  24299. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  24300. }
  24301. }
  24302. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  24303. v, changed := f.DecMapUint8UintptrV(*vp, true, d)
  24304. if changed {
  24305. *vp = v
  24306. }
  24307. }
  24308. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  24309. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  24310. dd, esep := d.d, d.hh.hasElemSeparators()
  24311. containerLen := dd.ReadMapStart()
  24312. if canChange && v == nil {
  24313. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24314. v = make(map[uint8]uintptr, xlen)
  24315. changed = true
  24316. }
  24317. if containerLen == 0 {
  24318. dd.ReadMapEnd()
  24319. return v, changed
  24320. }
  24321. d.depthIncr()
  24322. var mk uint8
  24323. var mv uintptr
  24324. hasLen := containerLen > 0
  24325. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24326. if esep {
  24327. dd.ReadMapElemKey()
  24328. }
  24329. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24330. if esep {
  24331. dd.ReadMapElemValue()
  24332. }
  24333. if dd.TryDecodeAsNil() {
  24334. if v == nil {
  24335. } else if d.h.DeleteOnNilMapValue {
  24336. delete(v, mk)
  24337. } else {
  24338. v[mk] = 0
  24339. }
  24340. continue
  24341. }
  24342. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24343. if v != nil {
  24344. v[mk] = mv
  24345. }
  24346. }
  24347. dd.ReadMapEnd()
  24348. d.depthDecr()
  24349. return v, changed
  24350. }
  24351. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  24352. if rv.Kind() == reflect.Ptr {
  24353. vp := rv2i(rv).(*map[uint8]int)
  24354. v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d)
  24355. if changed {
  24356. *vp = v
  24357. }
  24358. } else {
  24359. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  24360. }
  24361. }
  24362. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  24363. v, changed := f.DecMapUint8IntV(*vp, true, d)
  24364. if changed {
  24365. *vp = v
  24366. }
  24367. }
  24368. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  24369. d *Decoder) (_ map[uint8]int, changed bool) {
  24370. dd, esep := d.d, d.hh.hasElemSeparators()
  24371. containerLen := dd.ReadMapStart()
  24372. if canChange && v == nil {
  24373. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24374. v = make(map[uint8]int, xlen)
  24375. changed = true
  24376. }
  24377. if containerLen == 0 {
  24378. dd.ReadMapEnd()
  24379. return v, changed
  24380. }
  24381. d.depthIncr()
  24382. var mk uint8
  24383. var mv int
  24384. hasLen := containerLen > 0
  24385. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24386. if esep {
  24387. dd.ReadMapElemKey()
  24388. }
  24389. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24390. if esep {
  24391. dd.ReadMapElemValue()
  24392. }
  24393. if dd.TryDecodeAsNil() {
  24394. if v == nil {
  24395. } else if d.h.DeleteOnNilMapValue {
  24396. delete(v, mk)
  24397. } else {
  24398. v[mk] = 0
  24399. }
  24400. continue
  24401. }
  24402. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  24403. if v != nil {
  24404. v[mk] = mv
  24405. }
  24406. }
  24407. dd.ReadMapEnd()
  24408. d.depthDecr()
  24409. return v, changed
  24410. }
  24411. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  24412. if rv.Kind() == reflect.Ptr {
  24413. vp := rv2i(rv).(*map[uint8]int8)
  24414. v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d)
  24415. if changed {
  24416. *vp = v
  24417. }
  24418. } else {
  24419. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  24420. }
  24421. }
  24422. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  24423. v, changed := f.DecMapUint8Int8V(*vp, true, d)
  24424. if changed {
  24425. *vp = v
  24426. }
  24427. }
  24428. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  24429. d *Decoder) (_ map[uint8]int8, changed bool) {
  24430. dd, esep := d.d, d.hh.hasElemSeparators()
  24431. containerLen := dd.ReadMapStart()
  24432. if canChange && v == nil {
  24433. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24434. v = make(map[uint8]int8, xlen)
  24435. changed = true
  24436. }
  24437. if containerLen == 0 {
  24438. dd.ReadMapEnd()
  24439. return v, changed
  24440. }
  24441. d.depthIncr()
  24442. var mk uint8
  24443. var mv int8
  24444. hasLen := containerLen > 0
  24445. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24446. if esep {
  24447. dd.ReadMapElemKey()
  24448. }
  24449. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24450. if esep {
  24451. dd.ReadMapElemValue()
  24452. }
  24453. if dd.TryDecodeAsNil() {
  24454. if v == nil {
  24455. } else if d.h.DeleteOnNilMapValue {
  24456. delete(v, mk)
  24457. } else {
  24458. v[mk] = 0
  24459. }
  24460. continue
  24461. }
  24462. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  24463. if v != nil {
  24464. v[mk] = mv
  24465. }
  24466. }
  24467. dd.ReadMapEnd()
  24468. d.depthDecr()
  24469. return v, changed
  24470. }
  24471. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  24472. if rv.Kind() == reflect.Ptr {
  24473. vp := rv2i(rv).(*map[uint8]int16)
  24474. v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d)
  24475. if changed {
  24476. *vp = v
  24477. }
  24478. } else {
  24479. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  24480. }
  24481. }
  24482. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  24483. v, changed := f.DecMapUint8Int16V(*vp, true, d)
  24484. if changed {
  24485. *vp = v
  24486. }
  24487. }
  24488. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  24489. d *Decoder) (_ map[uint8]int16, changed bool) {
  24490. dd, esep := d.d, d.hh.hasElemSeparators()
  24491. containerLen := dd.ReadMapStart()
  24492. if canChange && v == nil {
  24493. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24494. v = make(map[uint8]int16, xlen)
  24495. changed = true
  24496. }
  24497. if containerLen == 0 {
  24498. dd.ReadMapEnd()
  24499. return v, changed
  24500. }
  24501. d.depthIncr()
  24502. var mk uint8
  24503. var mv int16
  24504. hasLen := containerLen > 0
  24505. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24506. if esep {
  24507. dd.ReadMapElemKey()
  24508. }
  24509. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24510. if esep {
  24511. dd.ReadMapElemValue()
  24512. }
  24513. if dd.TryDecodeAsNil() {
  24514. if v == nil {
  24515. } else if d.h.DeleteOnNilMapValue {
  24516. delete(v, mk)
  24517. } else {
  24518. v[mk] = 0
  24519. }
  24520. continue
  24521. }
  24522. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  24523. if v != nil {
  24524. v[mk] = mv
  24525. }
  24526. }
  24527. dd.ReadMapEnd()
  24528. d.depthDecr()
  24529. return v, changed
  24530. }
  24531. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  24532. if rv.Kind() == reflect.Ptr {
  24533. vp := rv2i(rv).(*map[uint8]int32)
  24534. v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d)
  24535. if changed {
  24536. *vp = v
  24537. }
  24538. } else {
  24539. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  24540. }
  24541. }
  24542. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  24543. v, changed := f.DecMapUint8Int32V(*vp, true, d)
  24544. if changed {
  24545. *vp = v
  24546. }
  24547. }
  24548. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  24549. d *Decoder) (_ map[uint8]int32, changed bool) {
  24550. dd, esep := d.d, d.hh.hasElemSeparators()
  24551. containerLen := dd.ReadMapStart()
  24552. if canChange && v == nil {
  24553. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24554. v = make(map[uint8]int32, xlen)
  24555. changed = true
  24556. }
  24557. if containerLen == 0 {
  24558. dd.ReadMapEnd()
  24559. return v, changed
  24560. }
  24561. d.depthIncr()
  24562. var mk uint8
  24563. var mv int32
  24564. hasLen := containerLen > 0
  24565. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24566. if esep {
  24567. dd.ReadMapElemKey()
  24568. }
  24569. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24570. if esep {
  24571. dd.ReadMapElemValue()
  24572. }
  24573. if dd.TryDecodeAsNil() {
  24574. if v == nil {
  24575. } else if d.h.DeleteOnNilMapValue {
  24576. delete(v, mk)
  24577. } else {
  24578. v[mk] = 0
  24579. }
  24580. continue
  24581. }
  24582. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  24583. if v != nil {
  24584. v[mk] = mv
  24585. }
  24586. }
  24587. dd.ReadMapEnd()
  24588. d.depthDecr()
  24589. return v, changed
  24590. }
  24591. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  24592. if rv.Kind() == reflect.Ptr {
  24593. vp := rv2i(rv).(*map[uint8]int64)
  24594. v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d)
  24595. if changed {
  24596. *vp = v
  24597. }
  24598. } else {
  24599. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  24600. }
  24601. }
  24602. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  24603. v, changed := f.DecMapUint8Int64V(*vp, true, d)
  24604. if changed {
  24605. *vp = v
  24606. }
  24607. }
  24608. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  24609. d *Decoder) (_ map[uint8]int64, changed bool) {
  24610. dd, esep := d.d, d.hh.hasElemSeparators()
  24611. containerLen := dd.ReadMapStart()
  24612. if canChange && v == nil {
  24613. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24614. v = make(map[uint8]int64, xlen)
  24615. changed = true
  24616. }
  24617. if containerLen == 0 {
  24618. dd.ReadMapEnd()
  24619. return v, changed
  24620. }
  24621. d.depthIncr()
  24622. var mk uint8
  24623. var mv int64
  24624. hasLen := containerLen > 0
  24625. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24626. if esep {
  24627. dd.ReadMapElemKey()
  24628. }
  24629. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24630. if esep {
  24631. dd.ReadMapElemValue()
  24632. }
  24633. if dd.TryDecodeAsNil() {
  24634. if v == nil {
  24635. } else if d.h.DeleteOnNilMapValue {
  24636. delete(v, mk)
  24637. } else {
  24638. v[mk] = 0
  24639. }
  24640. continue
  24641. }
  24642. mv = dd.DecodeInt64()
  24643. if v != nil {
  24644. v[mk] = mv
  24645. }
  24646. }
  24647. dd.ReadMapEnd()
  24648. d.depthDecr()
  24649. return v, changed
  24650. }
  24651. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  24652. if rv.Kind() == reflect.Ptr {
  24653. vp := rv2i(rv).(*map[uint8]float32)
  24654. v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d)
  24655. if changed {
  24656. *vp = v
  24657. }
  24658. } else {
  24659. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  24660. }
  24661. }
  24662. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  24663. v, changed := f.DecMapUint8Float32V(*vp, true, d)
  24664. if changed {
  24665. *vp = v
  24666. }
  24667. }
  24668. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  24669. d *Decoder) (_ map[uint8]float32, changed bool) {
  24670. dd, esep := d.d, d.hh.hasElemSeparators()
  24671. containerLen := dd.ReadMapStart()
  24672. if canChange && v == nil {
  24673. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24674. v = make(map[uint8]float32, xlen)
  24675. changed = true
  24676. }
  24677. if containerLen == 0 {
  24678. dd.ReadMapEnd()
  24679. return v, changed
  24680. }
  24681. d.depthIncr()
  24682. var mk uint8
  24683. var mv float32
  24684. hasLen := containerLen > 0
  24685. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24686. if esep {
  24687. dd.ReadMapElemKey()
  24688. }
  24689. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24690. if esep {
  24691. dd.ReadMapElemValue()
  24692. }
  24693. if dd.TryDecodeAsNil() {
  24694. if v == nil {
  24695. } else if d.h.DeleteOnNilMapValue {
  24696. delete(v, mk)
  24697. } else {
  24698. v[mk] = 0
  24699. }
  24700. continue
  24701. }
  24702. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  24703. if v != nil {
  24704. v[mk] = mv
  24705. }
  24706. }
  24707. dd.ReadMapEnd()
  24708. d.depthDecr()
  24709. return v, changed
  24710. }
  24711. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  24712. if rv.Kind() == reflect.Ptr {
  24713. vp := rv2i(rv).(*map[uint8]float64)
  24714. v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d)
  24715. if changed {
  24716. *vp = v
  24717. }
  24718. } else {
  24719. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  24720. }
  24721. }
  24722. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  24723. v, changed := f.DecMapUint8Float64V(*vp, true, d)
  24724. if changed {
  24725. *vp = v
  24726. }
  24727. }
  24728. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  24729. d *Decoder) (_ map[uint8]float64, changed bool) {
  24730. dd, esep := d.d, d.hh.hasElemSeparators()
  24731. containerLen := dd.ReadMapStart()
  24732. if canChange && v == nil {
  24733. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24734. v = make(map[uint8]float64, xlen)
  24735. changed = true
  24736. }
  24737. if containerLen == 0 {
  24738. dd.ReadMapEnd()
  24739. return v, changed
  24740. }
  24741. d.depthIncr()
  24742. var mk uint8
  24743. var mv float64
  24744. hasLen := containerLen > 0
  24745. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24746. if esep {
  24747. dd.ReadMapElemKey()
  24748. }
  24749. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24750. if esep {
  24751. dd.ReadMapElemValue()
  24752. }
  24753. if dd.TryDecodeAsNil() {
  24754. if v == nil {
  24755. } else if d.h.DeleteOnNilMapValue {
  24756. delete(v, mk)
  24757. } else {
  24758. v[mk] = 0
  24759. }
  24760. continue
  24761. }
  24762. mv = dd.DecodeFloat64()
  24763. if v != nil {
  24764. v[mk] = mv
  24765. }
  24766. }
  24767. dd.ReadMapEnd()
  24768. d.depthDecr()
  24769. return v, changed
  24770. }
  24771. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  24772. if rv.Kind() == reflect.Ptr {
  24773. vp := rv2i(rv).(*map[uint8]bool)
  24774. v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d)
  24775. if changed {
  24776. *vp = v
  24777. }
  24778. } else {
  24779. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  24780. }
  24781. }
  24782. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  24783. v, changed := f.DecMapUint8BoolV(*vp, true, d)
  24784. if changed {
  24785. *vp = v
  24786. }
  24787. }
  24788. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  24789. d *Decoder) (_ map[uint8]bool, changed bool) {
  24790. dd, esep := d.d, d.hh.hasElemSeparators()
  24791. containerLen := dd.ReadMapStart()
  24792. if canChange && v == nil {
  24793. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24794. v = make(map[uint8]bool, xlen)
  24795. changed = true
  24796. }
  24797. if containerLen == 0 {
  24798. dd.ReadMapEnd()
  24799. return v, changed
  24800. }
  24801. d.depthIncr()
  24802. var mk uint8
  24803. var mv bool
  24804. hasLen := containerLen > 0
  24805. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24806. if esep {
  24807. dd.ReadMapElemKey()
  24808. }
  24809. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24810. if esep {
  24811. dd.ReadMapElemValue()
  24812. }
  24813. if dd.TryDecodeAsNil() {
  24814. if v == nil {
  24815. } else if d.h.DeleteOnNilMapValue {
  24816. delete(v, mk)
  24817. } else {
  24818. v[mk] = false
  24819. }
  24820. continue
  24821. }
  24822. mv = dd.DecodeBool()
  24823. if v != nil {
  24824. v[mk] = mv
  24825. }
  24826. }
  24827. dd.ReadMapEnd()
  24828. d.depthDecr()
  24829. return v, changed
  24830. }
  24831. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  24832. if rv.Kind() == reflect.Ptr {
  24833. vp := rv2i(rv).(*map[uint16]interface{})
  24834. v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d)
  24835. if changed {
  24836. *vp = v
  24837. }
  24838. } else {
  24839. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  24840. }
  24841. }
  24842. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  24843. v, changed := f.DecMapUint16IntfV(*vp, true, d)
  24844. if changed {
  24845. *vp = v
  24846. }
  24847. }
  24848. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  24849. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  24850. dd, esep := d.d, d.hh.hasElemSeparators()
  24851. containerLen := dd.ReadMapStart()
  24852. if canChange && v == nil {
  24853. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24854. v = make(map[uint16]interface{}, xlen)
  24855. changed = true
  24856. }
  24857. if containerLen == 0 {
  24858. dd.ReadMapEnd()
  24859. return v, changed
  24860. }
  24861. d.depthIncr()
  24862. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  24863. var mk uint16
  24864. var mv interface{}
  24865. hasLen := containerLen > 0
  24866. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24867. if esep {
  24868. dd.ReadMapElemKey()
  24869. }
  24870. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24871. if esep {
  24872. dd.ReadMapElemValue()
  24873. }
  24874. if dd.TryDecodeAsNil() {
  24875. if v == nil {
  24876. } else if d.h.DeleteOnNilMapValue {
  24877. delete(v, mk)
  24878. } else {
  24879. v[mk] = nil
  24880. }
  24881. continue
  24882. }
  24883. if mapGet {
  24884. mv = v[mk]
  24885. } else {
  24886. mv = nil
  24887. }
  24888. d.decode(&mv)
  24889. if v != nil {
  24890. v[mk] = mv
  24891. }
  24892. }
  24893. dd.ReadMapEnd()
  24894. d.depthDecr()
  24895. return v, changed
  24896. }
  24897. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  24898. if rv.Kind() == reflect.Ptr {
  24899. vp := rv2i(rv).(*map[uint16]string)
  24900. v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d)
  24901. if changed {
  24902. *vp = v
  24903. }
  24904. } else {
  24905. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  24906. }
  24907. }
  24908. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  24909. v, changed := f.DecMapUint16StringV(*vp, true, d)
  24910. if changed {
  24911. *vp = v
  24912. }
  24913. }
  24914. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  24915. d *Decoder) (_ map[uint16]string, changed bool) {
  24916. dd, esep := d.d, d.hh.hasElemSeparators()
  24917. containerLen := dd.ReadMapStart()
  24918. if canChange && v == nil {
  24919. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24920. v = make(map[uint16]string, xlen)
  24921. changed = true
  24922. }
  24923. if containerLen == 0 {
  24924. dd.ReadMapEnd()
  24925. return v, changed
  24926. }
  24927. d.depthIncr()
  24928. var mk uint16
  24929. var mv string
  24930. hasLen := containerLen > 0
  24931. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24932. if esep {
  24933. dd.ReadMapElemKey()
  24934. }
  24935. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24936. if esep {
  24937. dd.ReadMapElemValue()
  24938. }
  24939. if dd.TryDecodeAsNil() {
  24940. if v == nil {
  24941. } else if d.h.DeleteOnNilMapValue {
  24942. delete(v, mk)
  24943. } else {
  24944. v[mk] = ""
  24945. }
  24946. continue
  24947. }
  24948. mv = dd.DecodeString()
  24949. if v != nil {
  24950. v[mk] = mv
  24951. }
  24952. }
  24953. dd.ReadMapEnd()
  24954. d.depthDecr()
  24955. return v, changed
  24956. }
  24957. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  24958. if rv.Kind() == reflect.Ptr {
  24959. vp := rv2i(rv).(*map[uint16]uint)
  24960. v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d)
  24961. if changed {
  24962. *vp = v
  24963. }
  24964. } else {
  24965. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  24966. }
  24967. }
  24968. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  24969. v, changed := f.DecMapUint16UintV(*vp, true, d)
  24970. if changed {
  24971. *vp = v
  24972. }
  24973. }
  24974. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  24975. d *Decoder) (_ map[uint16]uint, changed bool) {
  24976. dd, esep := d.d, d.hh.hasElemSeparators()
  24977. containerLen := dd.ReadMapStart()
  24978. if canChange && v == nil {
  24979. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24980. v = make(map[uint16]uint, xlen)
  24981. changed = true
  24982. }
  24983. if containerLen == 0 {
  24984. dd.ReadMapEnd()
  24985. return v, changed
  24986. }
  24987. d.depthIncr()
  24988. var mk uint16
  24989. var mv uint
  24990. hasLen := containerLen > 0
  24991. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24992. if esep {
  24993. dd.ReadMapElemKey()
  24994. }
  24995. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24996. if esep {
  24997. dd.ReadMapElemValue()
  24998. }
  24999. if dd.TryDecodeAsNil() {
  25000. if v == nil {
  25001. } else if d.h.DeleteOnNilMapValue {
  25002. delete(v, mk)
  25003. } else {
  25004. v[mk] = 0
  25005. }
  25006. continue
  25007. }
  25008. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25009. if v != nil {
  25010. v[mk] = mv
  25011. }
  25012. }
  25013. dd.ReadMapEnd()
  25014. d.depthDecr()
  25015. return v, changed
  25016. }
  25017. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  25018. if rv.Kind() == reflect.Ptr {
  25019. vp := rv2i(rv).(*map[uint16]uint8)
  25020. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d)
  25021. if changed {
  25022. *vp = v
  25023. }
  25024. } else {
  25025. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  25026. }
  25027. }
  25028. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  25029. v, changed := f.DecMapUint16Uint8V(*vp, true, d)
  25030. if changed {
  25031. *vp = v
  25032. }
  25033. }
  25034. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  25035. d *Decoder) (_ map[uint16]uint8, changed bool) {
  25036. dd, esep := d.d, d.hh.hasElemSeparators()
  25037. containerLen := dd.ReadMapStart()
  25038. if canChange && v == nil {
  25039. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25040. v = make(map[uint16]uint8, xlen)
  25041. changed = true
  25042. }
  25043. if containerLen == 0 {
  25044. dd.ReadMapEnd()
  25045. return v, changed
  25046. }
  25047. d.depthIncr()
  25048. var mk uint16
  25049. var mv uint8
  25050. hasLen := containerLen > 0
  25051. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25052. if esep {
  25053. dd.ReadMapElemKey()
  25054. }
  25055. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25056. if esep {
  25057. dd.ReadMapElemValue()
  25058. }
  25059. if dd.TryDecodeAsNil() {
  25060. if v == nil {
  25061. } else if d.h.DeleteOnNilMapValue {
  25062. delete(v, mk)
  25063. } else {
  25064. v[mk] = 0
  25065. }
  25066. continue
  25067. }
  25068. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  25069. if v != nil {
  25070. v[mk] = mv
  25071. }
  25072. }
  25073. dd.ReadMapEnd()
  25074. d.depthDecr()
  25075. return v, changed
  25076. }
  25077. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  25078. if rv.Kind() == reflect.Ptr {
  25079. vp := rv2i(rv).(*map[uint16]uint16)
  25080. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d)
  25081. if changed {
  25082. *vp = v
  25083. }
  25084. } else {
  25085. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  25086. }
  25087. }
  25088. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  25089. v, changed := f.DecMapUint16Uint16V(*vp, true, d)
  25090. if changed {
  25091. *vp = v
  25092. }
  25093. }
  25094. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  25095. d *Decoder) (_ map[uint16]uint16, changed bool) {
  25096. dd, esep := d.d, d.hh.hasElemSeparators()
  25097. containerLen := dd.ReadMapStart()
  25098. if canChange && v == nil {
  25099. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25100. v = make(map[uint16]uint16, xlen)
  25101. changed = true
  25102. }
  25103. if containerLen == 0 {
  25104. dd.ReadMapEnd()
  25105. return v, changed
  25106. }
  25107. d.depthIncr()
  25108. var mk uint16
  25109. var mv uint16
  25110. hasLen := containerLen > 0
  25111. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25112. if esep {
  25113. dd.ReadMapElemKey()
  25114. }
  25115. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25116. if esep {
  25117. dd.ReadMapElemValue()
  25118. }
  25119. if dd.TryDecodeAsNil() {
  25120. if v == nil {
  25121. } else if d.h.DeleteOnNilMapValue {
  25122. delete(v, mk)
  25123. } else {
  25124. v[mk] = 0
  25125. }
  25126. continue
  25127. }
  25128. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25129. if v != nil {
  25130. v[mk] = mv
  25131. }
  25132. }
  25133. dd.ReadMapEnd()
  25134. d.depthDecr()
  25135. return v, changed
  25136. }
  25137. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  25138. if rv.Kind() == reflect.Ptr {
  25139. vp := rv2i(rv).(*map[uint16]uint32)
  25140. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d)
  25141. if changed {
  25142. *vp = v
  25143. }
  25144. } else {
  25145. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  25146. }
  25147. }
  25148. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  25149. v, changed := f.DecMapUint16Uint32V(*vp, true, d)
  25150. if changed {
  25151. *vp = v
  25152. }
  25153. }
  25154. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  25155. d *Decoder) (_ map[uint16]uint32, changed bool) {
  25156. dd, esep := d.d, d.hh.hasElemSeparators()
  25157. containerLen := dd.ReadMapStart()
  25158. if canChange && v == nil {
  25159. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25160. v = make(map[uint16]uint32, xlen)
  25161. changed = true
  25162. }
  25163. if containerLen == 0 {
  25164. dd.ReadMapEnd()
  25165. return v, changed
  25166. }
  25167. d.depthIncr()
  25168. var mk uint16
  25169. var mv uint32
  25170. hasLen := containerLen > 0
  25171. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25172. if esep {
  25173. dd.ReadMapElemKey()
  25174. }
  25175. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25176. if esep {
  25177. dd.ReadMapElemValue()
  25178. }
  25179. if dd.TryDecodeAsNil() {
  25180. if v == nil {
  25181. } else if d.h.DeleteOnNilMapValue {
  25182. delete(v, mk)
  25183. } else {
  25184. v[mk] = 0
  25185. }
  25186. continue
  25187. }
  25188. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25189. if v != nil {
  25190. v[mk] = mv
  25191. }
  25192. }
  25193. dd.ReadMapEnd()
  25194. d.depthDecr()
  25195. return v, changed
  25196. }
  25197. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  25198. if rv.Kind() == reflect.Ptr {
  25199. vp := rv2i(rv).(*map[uint16]uint64)
  25200. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d)
  25201. if changed {
  25202. *vp = v
  25203. }
  25204. } else {
  25205. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  25206. }
  25207. }
  25208. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  25209. v, changed := f.DecMapUint16Uint64V(*vp, true, d)
  25210. if changed {
  25211. *vp = v
  25212. }
  25213. }
  25214. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  25215. d *Decoder) (_ map[uint16]uint64, changed bool) {
  25216. dd, esep := d.d, d.hh.hasElemSeparators()
  25217. containerLen := dd.ReadMapStart()
  25218. if canChange && v == nil {
  25219. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25220. v = make(map[uint16]uint64, xlen)
  25221. changed = true
  25222. }
  25223. if containerLen == 0 {
  25224. dd.ReadMapEnd()
  25225. return v, changed
  25226. }
  25227. d.depthIncr()
  25228. var mk uint16
  25229. var mv uint64
  25230. hasLen := containerLen > 0
  25231. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25232. if esep {
  25233. dd.ReadMapElemKey()
  25234. }
  25235. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25236. if esep {
  25237. dd.ReadMapElemValue()
  25238. }
  25239. if dd.TryDecodeAsNil() {
  25240. if v == nil {
  25241. } else if d.h.DeleteOnNilMapValue {
  25242. delete(v, mk)
  25243. } else {
  25244. v[mk] = 0
  25245. }
  25246. continue
  25247. }
  25248. mv = dd.DecodeUint64()
  25249. if v != nil {
  25250. v[mk] = mv
  25251. }
  25252. }
  25253. dd.ReadMapEnd()
  25254. d.depthDecr()
  25255. return v, changed
  25256. }
  25257. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  25258. if rv.Kind() == reflect.Ptr {
  25259. vp := rv2i(rv).(*map[uint16]uintptr)
  25260. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d)
  25261. if changed {
  25262. *vp = v
  25263. }
  25264. } else {
  25265. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  25266. }
  25267. }
  25268. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  25269. v, changed := f.DecMapUint16UintptrV(*vp, true, d)
  25270. if changed {
  25271. *vp = v
  25272. }
  25273. }
  25274. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  25275. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  25276. dd, esep := d.d, d.hh.hasElemSeparators()
  25277. containerLen := dd.ReadMapStart()
  25278. if canChange && v == nil {
  25279. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25280. v = make(map[uint16]uintptr, xlen)
  25281. changed = true
  25282. }
  25283. if containerLen == 0 {
  25284. dd.ReadMapEnd()
  25285. return v, changed
  25286. }
  25287. d.depthIncr()
  25288. var mk uint16
  25289. var mv uintptr
  25290. hasLen := containerLen > 0
  25291. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25292. if esep {
  25293. dd.ReadMapElemKey()
  25294. }
  25295. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25296. if esep {
  25297. dd.ReadMapElemValue()
  25298. }
  25299. if dd.TryDecodeAsNil() {
  25300. if v == nil {
  25301. } else if d.h.DeleteOnNilMapValue {
  25302. delete(v, mk)
  25303. } else {
  25304. v[mk] = 0
  25305. }
  25306. continue
  25307. }
  25308. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25309. if v != nil {
  25310. v[mk] = mv
  25311. }
  25312. }
  25313. dd.ReadMapEnd()
  25314. d.depthDecr()
  25315. return v, changed
  25316. }
  25317. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  25318. if rv.Kind() == reflect.Ptr {
  25319. vp := rv2i(rv).(*map[uint16]int)
  25320. v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d)
  25321. if changed {
  25322. *vp = v
  25323. }
  25324. } else {
  25325. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  25326. }
  25327. }
  25328. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  25329. v, changed := f.DecMapUint16IntV(*vp, true, d)
  25330. if changed {
  25331. *vp = v
  25332. }
  25333. }
  25334. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  25335. d *Decoder) (_ map[uint16]int, changed bool) {
  25336. dd, esep := d.d, d.hh.hasElemSeparators()
  25337. containerLen := dd.ReadMapStart()
  25338. if canChange && v == nil {
  25339. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25340. v = make(map[uint16]int, xlen)
  25341. changed = true
  25342. }
  25343. if containerLen == 0 {
  25344. dd.ReadMapEnd()
  25345. return v, changed
  25346. }
  25347. d.depthIncr()
  25348. var mk uint16
  25349. var mv int
  25350. hasLen := containerLen > 0
  25351. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25352. if esep {
  25353. dd.ReadMapElemKey()
  25354. }
  25355. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25356. if esep {
  25357. dd.ReadMapElemValue()
  25358. }
  25359. if dd.TryDecodeAsNil() {
  25360. if v == nil {
  25361. } else if d.h.DeleteOnNilMapValue {
  25362. delete(v, mk)
  25363. } else {
  25364. v[mk] = 0
  25365. }
  25366. continue
  25367. }
  25368. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  25369. if v != nil {
  25370. v[mk] = mv
  25371. }
  25372. }
  25373. dd.ReadMapEnd()
  25374. d.depthDecr()
  25375. return v, changed
  25376. }
  25377. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  25378. if rv.Kind() == reflect.Ptr {
  25379. vp := rv2i(rv).(*map[uint16]int8)
  25380. v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d)
  25381. if changed {
  25382. *vp = v
  25383. }
  25384. } else {
  25385. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  25386. }
  25387. }
  25388. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  25389. v, changed := f.DecMapUint16Int8V(*vp, true, d)
  25390. if changed {
  25391. *vp = v
  25392. }
  25393. }
  25394. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  25395. d *Decoder) (_ map[uint16]int8, changed bool) {
  25396. dd, esep := d.d, d.hh.hasElemSeparators()
  25397. containerLen := dd.ReadMapStart()
  25398. if canChange && v == nil {
  25399. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25400. v = make(map[uint16]int8, xlen)
  25401. changed = true
  25402. }
  25403. if containerLen == 0 {
  25404. dd.ReadMapEnd()
  25405. return v, changed
  25406. }
  25407. d.depthIncr()
  25408. var mk uint16
  25409. var mv int8
  25410. hasLen := containerLen > 0
  25411. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25412. if esep {
  25413. dd.ReadMapElemKey()
  25414. }
  25415. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25416. if esep {
  25417. dd.ReadMapElemValue()
  25418. }
  25419. if dd.TryDecodeAsNil() {
  25420. if v == nil {
  25421. } else if d.h.DeleteOnNilMapValue {
  25422. delete(v, mk)
  25423. } else {
  25424. v[mk] = 0
  25425. }
  25426. continue
  25427. }
  25428. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  25429. if v != nil {
  25430. v[mk] = mv
  25431. }
  25432. }
  25433. dd.ReadMapEnd()
  25434. d.depthDecr()
  25435. return v, changed
  25436. }
  25437. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  25438. if rv.Kind() == reflect.Ptr {
  25439. vp := rv2i(rv).(*map[uint16]int16)
  25440. v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d)
  25441. if changed {
  25442. *vp = v
  25443. }
  25444. } else {
  25445. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  25446. }
  25447. }
  25448. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  25449. v, changed := f.DecMapUint16Int16V(*vp, true, d)
  25450. if changed {
  25451. *vp = v
  25452. }
  25453. }
  25454. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  25455. d *Decoder) (_ map[uint16]int16, changed bool) {
  25456. dd, esep := d.d, d.hh.hasElemSeparators()
  25457. containerLen := dd.ReadMapStart()
  25458. if canChange && v == nil {
  25459. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25460. v = make(map[uint16]int16, xlen)
  25461. changed = true
  25462. }
  25463. if containerLen == 0 {
  25464. dd.ReadMapEnd()
  25465. return v, changed
  25466. }
  25467. d.depthIncr()
  25468. var mk uint16
  25469. var mv int16
  25470. hasLen := containerLen > 0
  25471. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25472. if esep {
  25473. dd.ReadMapElemKey()
  25474. }
  25475. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25476. if esep {
  25477. dd.ReadMapElemValue()
  25478. }
  25479. if dd.TryDecodeAsNil() {
  25480. if v == nil {
  25481. } else if d.h.DeleteOnNilMapValue {
  25482. delete(v, mk)
  25483. } else {
  25484. v[mk] = 0
  25485. }
  25486. continue
  25487. }
  25488. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  25489. if v != nil {
  25490. v[mk] = mv
  25491. }
  25492. }
  25493. dd.ReadMapEnd()
  25494. d.depthDecr()
  25495. return v, changed
  25496. }
  25497. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  25498. if rv.Kind() == reflect.Ptr {
  25499. vp := rv2i(rv).(*map[uint16]int32)
  25500. v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d)
  25501. if changed {
  25502. *vp = v
  25503. }
  25504. } else {
  25505. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  25506. }
  25507. }
  25508. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  25509. v, changed := f.DecMapUint16Int32V(*vp, true, d)
  25510. if changed {
  25511. *vp = v
  25512. }
  25513. }
  25514. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  25515. d *Decoder) (_ map[uint16]int32, changed bool) {
  25516. dd, esep := d.d, d.hh.hasElemSeparators()
  25517. containerLen := dd.ReadMapStart()
  25518. if canChange && v == nil {
  25519. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25520. v = make(map[uint16]int32, xlen)
  25521. changed = true
  25522. }
  25523. if containerLen == 0 {
  25524. dd.ReadMapEnd()
  25525. return v, changed
  25526. }
  25527. d.depthIncr()
  25528. var mk uint16
  25529. var mv int32
  25530. hasLen := containerLen > 0
  25531. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25532. if esep {
  25533. dd.ReadMapElemKey()
  25534. }
  25535. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25536. if esep {
  25537. dd.ReadMapElemValue()
  25538. }
  25539. if dd.TryDecodeAsNil() {
  25540. if v == nil {
  25541. } else if d.h.DeleteOnNilMapValue {
  25542. delete(v, mk)
  25543. } else {
  25544. v[mk] = 0
  25545. }
  25546. continue
  25547. }
  25548. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  25549. if v != nil {
  25550. v[mk] = mv
  25551. }
  25552. }
  25553. dd.ReadMapEnd()
  25554. d.depthDecr()
  25555. return v, changed
  25556. }
  25557. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  25558. if rv.Kind() == reflect.Ptr {
  25559. vp := rv2i(rv).(*map[uint16]int64)
  25560. v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d)
  25561. if changed {
  25562. *vp = v
  25563. }
  25564. } else {
  25565. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  25566. }
  25567. }
  25568. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  25569. v, changed := f.DecMapUint16Int64V(*vp, true, d)
  25570. if changed {
  25571. *vp = v
  25572. }
  25573. }
  25574. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  25575. d *Decoder) (_ map[uint16]int64, changed bool) {
  25576. dd, esep := d.d, d.hh.hasElemSeparators()
  25577. containerLen := dd.ReadMapStart()
  25578. if canChange && v == nil {
  25579. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25580. v = make(map[uint16]int64, xlen)
  25581. changed = true
  25582. }
  25583. if containerLen == 0 {
  25584. dd.ReadMapEnd()
  25585. return v, changed
  25586. }
  25587. d.depthIncr()
  25588. var mk uint16
  25589. var mv int64
  25590. hasLen := containerLen > 0
  25591. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25592. if esep {
  25593. dd.ReadMapElemKey()
  25594. }
  25595. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25596. if esep {
  25597. dd.ReadMapElemValue()
  25598. }
  25599. if dd.TryDecodeAsNil() {
  25600. if v == nil {
  25601. } else if d.h.DeleteOnNilMapValue {
  25602. delete(v, mk)
  25603. } else {
  25604. v[mk] = 0
  25605. }
  25606. continue
  25607. }
  25608. mv = dd.DecodeInt64()
  25609. if v != nil {
  25610. v[mk] = mv
  25611. }
  25612. }
  25613. dd.ReadMapEnd()
  25614. d.depthDecr()
  25615. return v, changed
  25616. }
  25617. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  25618. if rv.Kind() == reflect.Ptr {
  25619. vp := rv2i(rv).(*map[uint16]float32)
  25620. v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d)
  25621. if changed {
  25622. *vp = v
  25623. }
  25624. } else {
  25625. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  25626. }
  25627. }
  25628. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  25629. v, changed := f.DecMapUint16Float32V(*vp, true, d)
  25630. if changed {
  25631. *vp = v
  25632. }
  25633. }
  25634. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  25635. d *Decoder) (_ map[uint16]float32, changed bool) {
  25636. dd, esep := d.d, d.hh.hasElemSeparators()
  25637. containerLen := dd.ReadMapStart()
  25638. if canChange && v == nil {
  25639. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25640. v = make(map[uint16]float32, xlen)
  25641. changed = true
  25642. }
  25643. if containerLen == 0 {
  25644. dd.ReadMapEnd()
  25645. return v, changed
  25646. }
  25647. d.depthIncr()
  25648. var mk uint16
  25649. var mv float32
  25650. hasLen := containerLen > 0
  25651. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25652. if esep {
  25653. dd.ReadMapElemKey()
  25654. }
  25655. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25656. if esep {
  25657. dd.ReadMapElemValue()
  25658. }
  25659. if dd.TryDecodeAsNil() {
  25660. if v == nil {
  25661. } else if d.h.DeleteOnNilMapValue {
  25662. delete(v, mk)
  25663. } else {
  25664. v[mk] = 0
  25665. }
  25666. continue
  25667. }
  25668. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  25669. if v != nil {
  25670. v[mk] = mv
  25671. }
  25672. }
  25673. dd.ReadMapEnd()
  25674. d.depthDecr()
  25675. return v, changed
  25676. }
  25677. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  25678. if rv.Kind() == reflect.Ptr {
  25679. vp := rv2i(rv).(*map[uint16]float64)
  25680. v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d)
  25681. if changed {
  25682. *vp = v
  25683. }
  25684. } else {
  25685. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  25686. }
  25687. }
  25688. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  25689. v, changed := f.DecMapUint16Float64V(*vp, true, d)
  25690. if changed {
  25691. *vp = v
  25692. }
  25693. }
  25694. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  25695. d *Decoder) (_ map[uint16]float64, changed bool) {
  25696. dd, esep := d.d, d.hh.hasElemSeparators()
  25697. containerLen := dd.ReadMapStart()
  25698. if canChange && v == nil {
  25699. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25700. v = make(map[uint16]float64, xlen)
  25701. changed = true
  25702. }
  25703. if containerLen == 0 {
  25704. dd.ReadMapEnd()
  25705. return v, changed
  25706. }
  25707. d.depthIncr()
  25708. var mk uint16
  25709. var mv float64
  25710. hasLen := containerLen > 0
  25711. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25712. if esep {
  25713. dd.ReadMapElemKey()
  25714. }
  25715. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25716. if esep {
  25717. dd.ReadMapElemValue()
  25718. }
  25719. if dd.TryDecodeAsNil() {
  25720. if v == nil {
  25721. } else if d.h.DeleteOnNilMapValue {
  25722. delete(v, mk)
  25723. } else {
  25724. v[mk] = 0
  25725. }
  25726. continue
  25727. }
  25728. mv = dd.DecodeFloat64()
  25729. if v != nil {
  25730. v[mk] = mv
  25731. }
  25732. }
  25733. dd.ReadMapEnd()
  25734. d.depthDecr()
  25735. return v, changed
  25736. }
  25737. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  25738. if rv.Kind() == reflect.Ptr {
  25739. vp := rv2i(rv).(*map[uint16]bool)
  25740. v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d)
  25741. if changed {
  25742. *vp = v
  25743. }
  25744. } else {
  25745. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  25746. }
  25747. }
  25748. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  25749. v, changed := f.DecMapUint16BoolV(*vp, true, d)
  25750. if changed {
  25751. *vp = v
  25752. }
  25753. }
  25754. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  25755. d *Decoder) (_ map[uint16]bool, changed bool) {
  25756. dd, esep := d.d, d.hh.hasElemSeparators()
  25757. containerLen := dd.ReadMapStart()
  25758. if canChange && v == nil {
  25759. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25760. v = make(map[uint16]bool, xlen)
  25761. changed = true
  25762. }
  25763. if containerLen == 0 {
  25764. dd.ReadMapEnd()
  25765. return v, changed
  25766. }
  25767. d.depthIncr()
  25768. var mk uint16
  25769. var mv bool
  25770. hasLen := containerLen > 0
  25771. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25772. if esep {
  25773. dd.ReadMapElemKey()
  25774. }
  25775. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25776. if esep {
  25777. dd.ReadMapElemValue()
  25778. }
  25779. if dd.TryDecodeAsNil() {
  25780. if v == nil {
  25781. } else if d.h.DeleteOnNilMapValue {
  25782. delete(v, mk)
  25783. } else {
  25784. v[mk] = false
  25785. }
  25786. continue
  25787. }
  25788. mv = dd.DecodeBool()
  25789. if v != nil {
  25790. v[mk] = mv
  25791. }
  25792. }
  25793. dd.ReadMapEnd()
  25794. d.depthDecr()
  25795. return v, changed
  25796. }
  25797. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  25798. if rv.Kind() == reflect.Ptr {
  25799. vp := rv2i(rv).(*map[uint32]interface{})
  25800. v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d)
  25801. if changed {
  25802. *vp = v
  25803. }
  25804. } else {
  25805. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  25806. }
  25807. }
  25808. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  25809. v, changed := f.DecMapUint32IntfV(*vp, true, d)
  25810. if changed {
  25811. *vp = v
  25812. }
  25813. }
  25814. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  25815. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  25816. dd, esep := d.d, d.hh.hasElemSeparators()
  25817. containerLen := dd.ReadMapStart()
  25818. if canChange && v == nil {
  25819. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25820. v = make(map[uint32]interface{}, xlen)
  25821. changed = true
  25822. }
  25823. if containerLen == 0 {
  25824. dd.ReadMapEnd()
  25825. return v, changed
  25826. }
  25827. d.depthIncr()
  25828. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  25829. var mk uint32
  25830. var mv interface{}
  25831. hasLen := containerLen > 0
  25832. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25833. if esep {
  25834. dd.ReadMapElemKey()
  25835. }
  25836. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25837. if esep {
  25838. dd.ReadMapElemValue()
  25839. }
  25840. if dd.TryDecodeAsNil() {
  25841. if v == nil {
  25842. } else if d.h.DeleteOnNilMapValue {
  25843. delete(v, mk)
  25844. } else {
  25845. v[mk] = nil
  25846. }
  25847. continue
  25848. }
  25849. if mapGet {
  25850. mv = v[mk]
  25851. } else {
  25852. mv = nil
  25853. }
  25854. d.decode(&mv)
  25855. if v != nil {
  25856. v[mk] = mv
  25857. }
  25858. }
  25859. dd.ReadMapEnd()
  25860. d.depthDecr()
  25861. return v, changed
  25862. }
  25863. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  25864. if rv.Kind() == reflect.Ptr {
  25865. vp := rv2i(rv).(*map[uint32]string)
  25866. v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d)
  25867. if changed {
  25868. *vp = v
  25869. }
  25870. } else {
  25871. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  25872. }
  25873. }
  25874. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  25875. v, changed := f.DecMapUint32StringV(*vp, true, d)
  25876. if changed {
  25877. *vp = v
  25878. }
  25879. }
  25880. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  25881. d *Decoder) (_ map[uint32]string, changed bool) {
  25882. dd, esep := d.d, d.hh.hasElemSeparators()
  25883. containerLen := dd.ReadMapStart()
  25884. if canChange && v == nil {
  25885. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25886. v = make(map[uint32]string, xlen)
  25887. changed = true
  25888. }
  25889. if containerLen == 0 {
  25890. dd.ReadMapEnd()
  25891. return v, changed
  25892. }
  25893. d.depthIncr()
  25894. var mk uint32
  25895. var mv string
  25896. hasLen := containerLen > 0
  25897. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25898. if esep {
  25899. dd.ReadMapElemKey()
  25900. }
  25901. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25902. if esep {
  25903. dd.ReadMapElemValue()
  25904. }
  25905. if dd.TryDecodeAsNil() {
  25906. if v == nil {
  25907. } else if d.h.DeleteOnNilMapValue {
  25908. delete(v, mk)
  25909. } else {
  25910. v[mk] = ""
  25911. }
  25912. continue
  25913. }
  25914. mv = dd.DecodeString()
  25915. if v != nil {
  25916. v[mk] = mv
  25917. }
  25918. }
  25919. dd.ReadMapEnd()
  25920. d.depthDecr()
  25921. return v, changed
  25922. }
  25923. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  25924. if rv.Kind() == reflect.Ptr {
  25925. vp := rv2i(rv).(*map[uint32]uint)
  25926. v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d)
  25927. if changed {
  25928. *vp = v
  25929. }
  25930. } else {
  25931. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  25932. }
  25933. }
  25934. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  25935. v, changed := f.DecMapUint32UintV(*vp, true, d)
  25936. if changed {
  25937. *vp = v
  25938. }
  25939. }
  25940. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  25941. d *Decoder) (_ map[uint32]uint, changed bool) {
  25942. dd, esep := d.d, d.hh.hasElemSeparators()
  25943. containerLen := dd.ReadMapStart()
  25944. if canChange && v == nil {
  25945. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25946. v = make(map[uint32]uint, xlen)
  25947. changed = true
  25948. }
  25949. if containerLen == 0 {
  25950. dd.ReadMapEnd()
  25951. return v, changed
  25952. }
  25953. d.depthIncr()
  25954. var mk uint32
  25955. var mv uint
  25956. hasLen := containerLen > 0
  25957. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25958. if esep {
  25959. dd.ReadMapElemKey()
  25960. }
  25961. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25962. if esep {
  25963. dd.ReadMapElemValue()
  25964. }
  25965. if dd.TryDecodeAsNil() {
  25966. if v == nil {
  25967. } else if d.h.DeleteOnNilMapValue {
  25968. delete(v, mk)
  25969. } else {
  25970. v[mk] = 0
  25971. }
  25972. continue
  25973. }
  25974. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25975. if v != nil {
  25976. v[mk] = mv
  25977. }
  25978. }
  25979. dd.ReadMapEnd()
  25980. d.depthDecr()
  25981. return v, changed
  25982. }
  25983. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  25984. if rv.Kind() == reflect.Ptr {
  25985. vp := rv2i(rv).(*map[uint32]uint8)
  25986. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d)
  25987. if changed {
  25988. *vp = v
  25989. }
  25990. } else {
  25991. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  25992. }
  25993. }
  25994. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  25995. v, changed := f.DecMapUint32Uint8V(*vp, true, d)
  25996. if changed {
  25997. *vp = v
  25998. }
  25999. }
  26000. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  26001. d *Decoder) (_ map[uint32]uint8, changed bool) {
  26002. dd, esep := d.d, d.hh.hasElemSeparators()
  26003. containerLen := dd.ReadMapStart()
  26004. if canChange && v == nil {
  26005. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26006. v = make(map[uint32]uint8, xlen)
  26007. changed = true
  26008. }
  26009. if containerLen == 0 {
  26010. dd.ReadMapEnd()
  26011. return v, changed
  26012. }
  26013. d.depthIncr()
  26014. var mk uint32
  26015. var mv uint8
  26016. hasLen := containerLen > 0
  26017. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26018. if esep {
  26019. dd.ReadMapElemKey()
  26020. }
  26021. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26022. if esep {
  26023. dd.ReadMapElemValue()
  26024. }
  26025. if dd.TryDecodeAsNil() {
  26026. if v == nil {
  26027. } else if d.h.DeleteOnNilMapValue {
  26028. delete(v, mk)
  26029. } else {
  26030. v[mk] = 0
  26031. }
  26032. continue
  26033. }
  26034. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  26035. if v != nil {
  26036. v[mk] = mv
  26037. }
  26038. }
  26039. dd.ReadMapEnd()
  26040. d.depthDecr()
  26041. return v, changed
  26042. }
  26043. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  26044. if rv.Kind() == reflect.Ptr {
  26045. vp := rv2i(rv).(*map[uint32]uint16)
  26046. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d)
  26047. if changed {
  26048. *vp = v
  26049. }
  26050. } else {
  26051. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  26052. }
  26053. }
  26054. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  26055. v, changed := f.DecMapUint32Uint16V(*vp, true, d)
  26056. if changed {
  26057. *vp = v
  26058. }
  26059. }
  26060. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  26061. d *Decoder) (_ map[uint32]uint16, changed bool) {
  26062. dd, esep := d.d, d.hh.hasElemSeparators()
  26063. containerLen := dd.ReadMapStart()
  26064. if canChange && v == nil {
  26065. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26066. v = make(map[uint32]uint16, xlen)
  26067. changed = true
  26068. }
  26069. if containerLen == 0 {
  26070. dd.ReadMapEnd()
  26071. return v, changed
  26072. }
  26073. d.depthIncr()
  26074. var mk uint32
  26075. var mv uint16
  26076. hasLen := containerLen > 0
  26077. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26078. if esep {
  26079. dd.ReadMapElemKey()
  26080. }
  26081. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26082. if esep {
  26083. dd.ReadMapElemValue()
  26084. }
  26085. if dd.TryDecodeAsNil() {
  26086. if v == nil {
  26087. } else if d.h.DeleteOnNilMapValue {
  26088. delete(v, mk)
  26089. } else {
  26090. v[mk] = 0
  26091. }
  26092. continue
  26093. }
  26094. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  26095. if v != nil {
  26096. v[mk] = mv
  26097. }
  26098. }
  26099. dd.ReadMapEnd()
  26100. d.depthDecr()
  26101. return v, changed
  26102. }
  26103. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  26104. if rv.Kind() == reflect.Ptr {
  26105. vp := rv2i(rv).(*map[uint32]uint32)
  26106. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d)
  26107. if changed {
  26108. *vp = v
  26109. }
  26110. } else {
  26111. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  26112. }
  26113. }
  26114. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  26115. v, changed := f.DecMapUint32Uint32V(*vp, true, d)
  26116. if changed {
  26117. *vp = v
  26118. }
  26119. }
  26120. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  26121. d *Decoder) (_ map[uint32]uint32, changed bool) {
  26122. dd, esep := d.d, d.hh.hasElemSeparators()
  26123. containerLen := dd.ReadMapStart()
  26124. if canChange && v == nil {
  26125. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26126. v = make(map[uint32]uint32, xlen)
  26127. changed = true
  26128. }
  26129. if containerLen == 0 {
  26130. dd.ReadMapEnd()
  26131. return v, changed
  26132. }
  26133. d.depthIncr()
  26134. var mk uint32
  26135. var mv uint32
  26136. hasLen := containerLen > 0
  26137. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26138. if esep {
  26139. dd.ReadMapElemKey()
  26140. }
  26141. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26142. if esep {
  26143. dd.ReadMapElemValue()
  26144. }
  26145. if dd.TryDecodeAsNil() {
  26146. if v == nil {
  26147. } else if d.h.DeleteOnNilMapValue {
  26148. delete(v, mk)
  26149. } else {
  26150. v[mk] = 0
  26151. }
  26152. continue
  26153. }
  26154. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26155. if v != nil {
  26156. v[mk] = mv
  26157. }
  26158. }
  26159. dd.ReadMapEnd()
  26160. d.depthDecr()
  26161. return v, changed
  26162. }
  26163. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  26164. if rv.Kind() == reflect.Ptr {
  26165. vp := rv2i(rv).(*map[uint32]uint64)
  26166. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d)
  26167. if changed {
  26168. *vp = v
  26169. }
  26170. } else {
  26171. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  26172. }
  26173. }
  26174. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  26175. v, changed := f.DecMapUint32Uint64V(*vp, true, d)
  26176. if changed {
  26177. *vp = v
  26178. }
  26179. }
  26180. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  26181. d *Decoder) (_ map[uint32]uint64, changed bool) {
  26182. dd, esep := d.d, d.hh.hasElemSeparators()
  26183. containerLen := dd.ReadMapStart()
  26184. if canChange && v == nil {
  26185. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26186. v = make(map[uint32]uint64, xlen)
  26187. changed = true
  26188. }
  26189. if containerLen == 0 {
  26190. dd.ReadMapEnd()
  26191. return v, changed
  26192. }
  26193. d.depthIncr()
  26194. var mk uint32
  26195. var mv uint64
  26196. hasLen := containerLen > 0
  26197. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26198. if esep {
  26199. dd.ReadMapElemKey()
  26200. }
  26201. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26202. if esep {
  26203. dd.ReadMapElemValue()
  26204. }
  26205. if dd.TryDecodeAsNil() {
  26206. if v == nil {
  26207. } else if d.h.DeleteOnNilMapValue {
  26208. delete(v, mk)
  26209. } else {
  26210. v[mk] = 0
  26211. }
  26212. continue
  26213. }
  26214. mv = dd.DecodeUint64()
  26215. if v != nil {
  26216. v[mk] = mv
  26217. }
  26218. }
  26219. dd.ReadMapEnd()
  26220. d.depthDecr()
  26221. return v, changed
  26222. }
  26223. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  26224. if rv.Kind() == reflect.Ptr {
  26225. vp := rv2i(rv).(*map[uint32]uintptr)
  26226. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d)
  26227. if changed {
  26228. *vp = v
  26229. }
  26230. } else {
  26231. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  26232. }
  26233. }
  26234. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  26235. v, changed := f.DecMapUint32UintptrV(*vp, true, d)
  26236. if changed {
  26237. *vp = v
  26238. }
  26239. }
  26240. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  26241. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  26242. dd, esep := d.d, d.hh.hasElemSeparators()
  26243. containerLen := dd.ReadMapStart()
  26244. if canChange && v == nil {
  26245. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26246. v = make(map[uint32]uintptr, xlen)
  26247. changed = true
  26248. }
  26249. if containerLen == 0 {
  26250. dd.ReadMapEnd()
  26251. return v, changed
  26252. }
  26253. d.depthIncr()
  26254. var mk uint32
  26255. var mv uintptr
  26256. hasLen := containerLen > 0
  26257. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26258. if esep {
  26259. dd.ReadMapElemKey()
  26260. }
  26261. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26262. if esep {
  26263. dd.ReadMapElemValue()
  26264. }
  26265. if dd.TryDecodeAsNil() {
  26266. if v == nil {
  26267. } else if d.h.DeleteOnNilMapValue {
  26268. delete(v, mk)
  26269. } else {
  26270. v[mk] = 0
  26271. }
  26272. continue
  26273. }
  26274. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26275. if v != nil {
  26276. v[mk] = mv
  26277. }
  26278. }
  26279. dd.ReadMapEnd()
  26280. d.depthDecr()
  26281. return v, changed
  26282. }
  26283. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  26284. if rv.Kind() == reflect.Ptr {
  26285. vp := rv2i(rv).(*map[uint32]int)
  26286. v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d)
  26287. if changed {
  26288. *vp = v
  26289. }
  26290. } else {
  26291. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  26292. }
  26293. }
  26294. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  26295. v, changed := f.DecMapUint32IntV(*vp, true, d)
  26296. if changed {
  26297. *vp = v
  26298. }
  26299. }
  26300. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  26301. d *Decoder) (_ map[uint32]int, changed bool) {
  26302. dd, esep := d.d, d.hh.hasElemSeparators()
  26303. containerLen := dd.ReadMapStart()
  26304. if canChange && v == nil {
  26305. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26306. v = make(map[uint32]int, xlen)
  26307. changed = true
  26308. }
  26309. if containerLen == 0 {
  26310. dd.ReadMapEnd()
  26311. return v, changed
  26312. }
  26313. d.depthIncr()
  26314. var mk uint32
  26315. var mv int
  26316. hasLen := containerLen > 0
  26317. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26318. if esep {
  26319. dd.ReadMapElemKey()
  26320. }
  26321. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26322. if esep {
  26323. dd.ReadMapElemValue()
  26324. }
  26325. if dd.TryDecodeAsNil() {
  26326. if v == nil {
  26327. } else if d.h.DeleteOnNilMapValue {
  26328. delete(v, mk)
  26329. } else {
  26330. v[mk] = 0
  26331. }
  26332. continue
  26333. }
  26334. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  26335. if v != nil {
  26336. v[mk] = mv
  26337. }
  26338. }
  26339. dd.ReadMapEnd()
  26340. d.depthDecr()
  26341. return v, changed
  26342. }
  26343. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  26344. if rv.Kind() == reflect.Ptr {
  26345. vp := rv2i(rv).(*map[uint32]int8)
  26346. v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d)
  26347. if changed {
  26348. *vp = v
  26349. }
  26350. } else {
  26351. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  26352. }
  26353. }
  26354. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  26355. v, changed := f.DecMapUint32Int8V(*vp, true, d)
  26356. if changed {
  26357. *vp = v
  26358. }
  26359. }
  26360. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  26361. d *Decoder) (_ map[uint32]int8, changed bool) {
  26362. dd, esep := d.d, d.hh.hasElemSeparators()
  26363. containerLen := dd.ReadMapStart()
  26364. if canChange && v == nil {
  26365. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26366. v = make(map[uint32]int8, xlen)
  26367. changed = true
  26368. }
  26369. if containerLen == 0 {
  26370. dd.ReadMapEnd()
  26371. return v, changed
  26372. }
  26373. d.depthIncr()
  26374. var mk uint32
  26375. var mv int8
  26376. hasLen := containerLen > 0
  26377. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26378. if esep {
  26379. dd.ReadMapElemKey()
  26380. }
  26381. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26382. if esep {
  26383. dd.ReadMapElemValue()
  26384. }
  26385. if dd.TryDecodeAsNil() {
  26386. if v == nil {
  26387. } else if d.h.DeleteOnNilMapValue {
  26388. delete(v, mk)
  26389. } else {
  26390. v[mk] = 0
  26391. }
  26392. continue
  26393. }
  26394. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  26395. if v != nil {
  26396. v[mk] = mv
  26397. }
  26398. }
  26399. dd.ReadMapEnd()
  26400. d.depthDecr()
  26401. return v, changed
  26402. }
  26403. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  26404. if rv.Kind() == reflect.Ptr {
  26405. vp := rv2i(rv).(*map[uint32]int16)
  26406. v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d)
  26407. if changed {
  26408. *vp = v
  26409. }
  26410. } else {
  26411. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  26412. }
  26413. }
  26414. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  26415. v, changed := f.DecMapUint32Int16V(*vp, true, d)
  26416. if changed {
  26417. *vp = v
  26418. }
  26419. }
  26420. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  26421. d *Decoder) (_ map[uint32]int16, changed bool) {
  26422. dd, esep := d.d, d.hh.hasElemSeparators()
  26423. containerLen := dd.ReadMapStart()
  26424. if canChange && v == nil {
  26425. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26426. v = make(map[uint32]int16, xlen)
  26427. changed = true
  26428. }
  26429. if containerLen == 0 {
  26430. dd.ReadMapEnd()
  26431. return v, changed
  26432. }
  26433. d.depthIncr()
  26434. var mk uint32
  26435. var mv int16
  26436. hasLen := containerLen > 0
  26437. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26438. if esep {
  26439. dd.ReadMapElemKey()
  26440. }
  26441. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26442. if esep {
  26443. dd.ReadMapElemValue()
  26444. }
  26445. if dd.TryDecodeAsNil() {
  26446. if v == nil {
  26447. } else if d.h.DeleteOnNilMapValue {
  26448. delete(v, mk)
  26449. } else {
  26450. v[mk] = 0
  26451. }
  26452. continue
  26453. }
  26454. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  26455. if v != nil {
  26456. v[mk] = mv
  26457. }
  26458. }
  26459. dd.ReadMapEnd()
  26460. d.depthDecr()
  26461. return v, changed
  26462. }
  26463. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  26464. if rv.Kind() == reflect.Ptr {
  26465. vp := rv2i(rv).(*map[uint32]int32)
  26466. v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d)
  26467. if changed {
  26468. *vp = v
  26469. }
  26470. } else {
  26471. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  26472. }
  26473. }
  26474. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  26475. v, changed := f.DecMapUint32Int32V(*vp, true, d)
  26476. if changed {
  26477. *vp = v
  26478. }
  26479. }
  26480. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  26481. d *Decoder) (_ map[uint32]int32, changed bool) {
  26482. dd, esep := d.d, d.hh.hasElemSeparators()
  26483. containerLen := dd.ReadMapStart()
  26484. if canChange && v == nil {
  26485. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26486. v = make(map[uint32]int32, xlen)
  26487. changed = true
  26488. }
  26489. if containerLen == 0 {
  26490. dd.ReadMapEnd()
  26491. return v, changed
  26492. }
  26493. d.depthIncr()
  26494. var mk uint32
  26495. var mv int32
  26496. hasLen := containerLen > 0
  26497. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26498. if esep {
  26499. dd.ReadMapElemKey()
  26500. }
  26501. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26502. if esep {
  26503. dd.ReadMapElemValue()
  26504. }
  26505. if dd.TryDecodeAsNil() {
  26506. if v == nil {
  26507. } else if d.h.DeleteOnNilMapValue {
  26508. delete(v, mk)
  26509. } else {
  26510. v[mk] = 0
  26511. }
  26512. continue
  26513. }
  26514. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  26515. if v != nil {
  26516. v[mk] = mv
  26517. }
  26518. }
  26519. dd.ReadMapEnd()
  26520. d.depthDecr()
  26521. return v, changed
  26522. }
  26523. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  26524. if rv.Kind() == reflect.Ptr {
  26525. vp := rv2i(rv).(*map[uint32]int64)
  26526. v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d)
  26527. if changed {
  26528. *vp = v
  26529. }
  26530. } else {
  26531. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  26532. }
  26533. }
  26534. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  26535. v, changed := f.DecMapUint32Int64V(*vp, true, d)
  26536. if changed {
  26537. *vp = v
  26538. }
  26539. }
  26540. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  26541. d *Decoder) (_ map[uint32]int64, changed bool) {
  26542. dd, esep := d.d, d.hh.hasElemSeparators()
  26543. containerLen := dd.ReadMapStart()
  26544. if canChange && v == nil {
  26545. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26546. v = make(map[uint32]int64, xlen)
  26547. changed = true
  26548. }
  26549. if containerLen == 0 {
  26550. dd.ReadMapEnd()
  26551. return v, changed
  26552. }
  26553. d.depthIncr()
  26554. var mk uint32
  26555. var mv int64
  26556. hasLen := containerLen > 0
  26557. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26558. if esep {
  26559. dd.ReadMapElemKey()
  26560. }
  26561. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26562. if esep {
  26563. dd.ReadMapElemValue()
  26564. }
  26565. if dd.TryDecodeAsNil() {
  26566. if v == nil {
  26567. } else if d.h.DeleteOnNilMapValue {
  26568. delete(v, mk)
  26569. } else {
  26570. v[mk] = 0
  26571. }
  26572. continue
  26573. }
  26574. mv = dd.DecodeInt64()
  26575. if v != nil {
  26576. v[mk] = mv
  26577. }
  26578. }
  26579. dd.ReadMapEnd()
  26580. d.depthDecr()
  26581. return v, changed
  26582. }
  26583. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  26584. if rv.Kind() == reflect.Ptr {
  26585. vp := rv2i(rv).(*map[uint32]float32)
  26586. v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d)
  26587. if changed {
  26588. *vp = v
  26589. }
  26590. } else {
  26591. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  26592. }
  26593. }
  26594. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  26595. v, changed := f.DecMapUint32Float32V(*vp, true, d)
  26596. if changed {
  26597. *vp = v
  26598. }
  26599. }
  26600. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  26601. d *Decoder) (_ map[uint32]float32, changed bool) {
  26602. dd, esep := d.d, d.hh.hasElemSeparators()
  26603. containerLen := dd.ReadMapStart()
  26604. if canChange && v == nil {
  26605. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26606. v = make(map[uint32]float32, xlen)
  26607. changed = true
  26608. }
  26609. if containerLen == 0 {
  26610. dd.ReadMapEnd()
  26611. return v, changed
  26612. }
  26613. d.depthIncr()
  26614. var mk uint32
  26615. var mv float32
  26616. hasLen := containerLen > 0
  26617. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26618. if esep {
  26619. dd.ReadMapElemKey()
  26620. }
  26621. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26622. if esep {
  26623. dd.ReadMapElemValue()
  26624. }
  26625. if dd.TryDecodeAsNil() {
  26626. if v == nil {
  26627. } else if d.h.DeleteOnNilMapValue {
  26628. delete(v, mk)
  26629. } else {
  26630. v[mk] = 0
  26631. }
  26632. continue
  26633. }
  26634. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  26635. if v != nil {
  26636. v[mk] = mv
  26637. }
  26638. }
  26639. dd.ReadMapEnd()
  26640. d.depthDecr()
  26641. return v, changed
  26642. }
  26643. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  26644. if rv.Kind() == reflect.Ptr {
  26645. vp := rv2i(rv).(*map[uint32]float64)
  26646. v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d)
  26647. if changed {
  26648. *vp = v
  26649. }
  26650. } else {
  26651. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  26652. }
  26653. }
  26654. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  26655. v, changed := f.DecMapUint32Float64V(*vp, true, d)
  26656. if changed {
  26657. *vp = v
  26658. }
  26659. }
  26660. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  26661. d *Decoder) (_ map[uint32]float64, changed bool) {
  26662. dd, esep := d.d, d.hh.hasElemSeparators()
  26663. containerLen := dd.ReadMapStart()
  26664. if canChange && v == nil {
  26665. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26666. v = make(map[uint32]float64, xlen)
  26667. changed = true
  26668. }
  26669. if containerLen == 0 {
  26670. dd.ReadMapEnd()
  26671. return v, changed
  26672. }
  26673. d.depthIncr()
  26674. var mk uint32
  26675. var mv float64
  26676. hasLen := containerLen > 0
  26677. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26678. if esep {
  26679. dd.ReadMapElemKey()
  26680. }
  26681. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26682. if esep {
  26683. dd.ReadMapElemValue()
  26684. }
  26685. if dd.TryDecodeAsNil() {
  26686. if v == nil {
  26687. } else if d.h.DeleteOnNilMapValue {
  26688. delete(v, mk)
  26689. } else {
  26690. v[mk] = 0
  26691. }
  26692. continue
  26693. }
  26694. mv = dd.DecodeFloat64()
  26695. if v != nil {
  26696. v[mk] = mv
  26697. }
  26698. }
  26699. dd.ReadMapEnd()
  26700. d.depthDecr()
  26701. return v, changed
  26702. }
  26703. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  26704. if rv.Kind() == reflect.Ptr {
  26705. vp := rv2i(rv).(*map[uint32]bool)
  26706. v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d)
  26707. if changed {
  26708. *vp = v
  26709. }
  26710. } else {
  26711. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  26712. }
  26713. }
  26714. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  26715. v, changed := f.DecMapUint32BoolV(*vp, true, d)
  26716. if changed {
  26717. *vp = v
  26718. }
  26719. }
  26720. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  26721. d *Decoder) (_ map[uint32]bool, changed bool) {
  26722. dd, esep := d.d, d.hh.hasElemSeparators()
  26723. containerLen := dd.ReadMapStart()
  26724. if canChange && v == nil {
  26725. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26726. v = make(map[uint32]bool, xlen)
  26727. changed = true
  26728. }
  26729. if containerLen == 0 {
  26730. dd.ReadMapEnd()
  26731. return v, changed
  26732. }
  26733. d.depthIncr()
  26734. var mk uint32
  26735. var mv bool
  26736. hasLen := containerLen > 0
  26737. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26738. if esep {
  26739. dd.ReadMapElemKey()
  26740. }
  26741. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26742. if esep {
  26743. dd.ReadMapElemValue()
  26744. }
  26745. if dd.TryDecodeAsNil() {
  26746. if v == nil {
  26747. } else if d.h.DeleteOnNilMapValue {
  26748. delete(v, mk)
  26749. } else {
  26750. v[mk] = false
  26751. }
  26752. continue
  26753. }
  26754. mv = dd.DecodeBool()
  26755. if v != nil {
  26756. v[mk] = mv
  26757. }
  26758. }
  26759. dd.ReadMapEnd()
  26760. d.depthDecr()
  26761. return v, changed
  26762. }
  26763. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  26764. if rv.Kind() == reflect.Ptr {
  26765. vp := rv2i(rv).(*map[uint64]interface{})
  26766. v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d)
  26767. if changed {
  26768. *vp = v
  26769. }
  26770. } else {
  26771. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  26772. }
  26773. }
  26774. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  26775. v, changed := f.DecMapUint64IntfV(*vp, true, d)
  26776. if changed {
  26777. *vp = v
  26778. }
  26779. }
  26780. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  26781. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  26782. dd, esep := d.d, d.hh.hasElemSeparators()
  26783. containerLen := dd.ReadMapStart()
  26784. if canChange && v == nil {
  26785. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26786. v = make(map[uint64]interface{}, xlen)
  26787. changed = true
  26788. }
  26789. if containerLen == 0 {
  26790. dd.ReadMapEnd()
  26791. return v, changed
  26792. }
  26793. d.depthIncr()
  26794. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  26795. var mk uint64
  26796. var mv interface{}
  26797. hasLen := containerLen > 0
  26798. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26799. if esep {
  26800. dd.ReadMapElemKey()
  26801. }
  26802. mk = dd.DecodeUint64()
  26803. if esep {
  26804. dd.ReadMapElemValue()
  26805. }
  26806. if dd.TryDecodeAsNil() {
  26807. if v == nil {
  26808. } else if d.h.DeleteOnNilMapValue {
  26809. delete(v, mk)
  26810. } else {
  26811. v[mk] = nil
  26812. }
  26813. continue
  26814. }
  26815. if mapGet {
  26816. mv = v[mk]
  26817. } else {
  26818. mv = nil
  26819. }
  26820. d.decode(&mv)
  26821. if v != nil {
  26822. v[mk] = mv
  26823. }
  26824. }
  26825. dd.ReadMapEnd()
  26826. d.depthDecr()
  26827. return v, changed
  26828. }
  26829. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  26830. if rv.Kind() == reflect.Ptr {
  26831. vp := rv2i(rv).(*map[uint64]string)
  26832. v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d)
  26833. if changed {
  26834. *vp = v
  26835. }
  26836. } else {
  26837. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  26838. }
  26839. }
  26840. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  26841. v, changed := f.DecMapUint64StringV(*vp, true, d)
  26842. if changed {
  26843. *vp = v
  26844. }
  26845. }
  26846. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  26847. d *Decoder) (_ map[uint64]string, changed bool) {
  26848. dd, esep := d.d, d.hh.hasElemSeparators()
  26849. containerLen := dd.ReadMapStart()
  26850. if canChange && v == nil {
  26851. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26852. v = make(map[uint64]string, xlen)
  26853. changed = true
  26854. }
  26855. if containerLen == 0 {
  26856. dd.ReadMapEnd()
  26857. return v, changed
  26858. }
  26859. d.depthIncr()
  26860. var mk uint64
  26861. var mv string
  26862. hasLen := containerLen > 0
  26863. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26864. if esep {
  26865. dd.ReadMapElemKey()
  26866. }
  26867. mk = dd.DecodeUint64()
  26868. if esep {
  26869. dd.ReadMapElemValue()
  26870. }
  26871. if dd.TryDecodeAsNil() {
  26872. if v == nil {
  26873. } else if d.h.DeleteOnNilMapValue {
  26874. delete(v, mk)
  26875. } else {
  26876. v[mk] = ""
  26877. }
  26878. continue
  26879. }
  26880. mv = dd.DecodeString()
  26881. if v != nil {
  26882. v[mk] = mv
  26883. }
  26884. }
  26885. dd.ReadMapEnd()
  26886. d.depthDecr()
  26887. return v, changed
  26888. }
  26889. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  26890. if rv.Kind() == reflect.Ptr {
  26891. vp := rv2i(rv).(*map[uint64]uint)
  26892. v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d)
  26893. if changed {
  26894. *vp = v
  26895. }
  26896. } else {
  26897. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  26898. }
  26899. }
  26900. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  26901. v, changed := f.DecMapUint64UintV(*vp, true, d)
  26902. if changed {
  26903. *vp = v
  26904. }
  26905. }
  26906. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  26907. d *Decoder) (_ map[uint64]uint, changed bool) {
  26908. dd, esep := d.d, d.hh.hasElemSeparators()
  26909. containerLen := dd.ReadMapStart()
  26910. if canChange && v == nil {
  26911. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26912. v = make(map[uint64]uint, xlen)
  26913. changed = true
  26914. }
  26915. if containerLen == 0 {
  26916. dd.ReadMapEnd()
  26917. return v, changed
  26918. }
  26919. d.depthIncr()
  26920. var mk uint64
  26921. var mv uint
  26922. hasLen := containerLen > 0
  26923. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26924. if esep {
  26925. dd.ReadMapElemKey()
  26926. }
  26927. mk = dd.DecodeUint64()
  26928. if esep {
  26929. dd.ReadMapElemValue()
  26930. }
  26931. if dd.TryDecodeAsNil() {
  26932. if v == nil {
  26933. } else if d.h.DeleteOnNilMapValue {
  26934. delete(v, mk)
  26935. } else {
  26936. v[mk] = 0
  26937. }
  26938. continue
  26939. }
  26940. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26941. if v != nil {
  26942. v[mk] = mv
  26943. }
  26944. }
  26945. dd.ReadMapEnd()
  26946. d.depthDecr()
  26947. return v, changed
  26948. }
  26949. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  26950. if rv.Kind() == reflect.Ptr {
  26951. vp := rv2i(rv).(*map[uint64]uint8)
  26952. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d)
  26953. if changed {
  26954. *vp = v
  26955. }
  26956. } else {
  26957. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  26958. }
  26959. }
  26960. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  26961. v, changed := f.DecMapUint64Uint8V(*vp, true, d)
  26962. if changed {
  26963. *vp = v
  26964. }
  26965. }
  26966. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  26967. d *Decoder) (_ map[uint64]uint8, changed bool) {
  26968. dd, esep := d.d, d.hh.hasElemSeparators()
  26969. containerLen := dd.ReadMapStart()
  26970. if canChange && v == nil {
  26971. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26972. v = make(map[uint64]uint8, xlen)
  26973. changed = true
  26974. }
  26975. if containerLen == 0 {
  26976. dd.ReadMapEnd()
  26977. return v, changed
  26978. }
  26979. d.depthIncr()
  26980. var mk uint64
  26981. var mv uint8
  26982. hasLen := containerLen > 0
  26983. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26984. if esep {
  26985. dd.ReadMapElemKey()
  26986. }
  26987. mk = dd.DecodeUint64()
  26988. if esep {
  26989. dd.ReadMapElemValue()
  26990. }
  26991. if dd.TryDecodeAsNil() {
  26992. if v == nil {
  26993. } else if d.h.DeleteOnNilMapValue {
  26994. delete(v, mk)
  26995. } else {
  26996. v[mk] = 0
  26997. }
  26998. continue
  26999. }
  27000. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27001. if v != nil {
  27002. v[mk] = mv
  27003. }
  27004. }
  27005. dd.ReadMapEnd()
  27006. d.depthDecr()
  27007. return v, changed
  27008. }
  27009. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  27010. if rv.Kind() == reflect.Ptr {
  27011. vp := rv2i(rv).(*map[uint64]uint16)
  27012. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d)
  27013. if changed {
  27014. *vp = v
  27015. }
  27016. } else {
  27017. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  27018. }
  27019. }
  27020. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  27021. v, changed := f.DecMapUint64Uint16V(*vp, true, d)
  27022. if changed {
  27023. *vp = v
  27024. }
  27025. }
  27026. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  27027. d *Decoder) (_ map[uint64]uint16, changed bool) {
  27028. dd, esep := d.d, d.hh.hasElemSeparators()
  27029. containerLen := dd.ReadMapStart()
  27030. if canChange && v == nil {
  27031. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27032. v = make(map[uint64]uint16, xlen)
  27033. changed = true
  27034. }
  27035. if containerLen == 0 {
  27036. dd.ReadMapEnd()
  27037. return v, changed
  27038. }
  27039. d.depthIncr()
  27040. var mk uint64
  27041. var mv uint16
  27042. hasLen := containerLen > 0
  27043. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27044. if esep {
  27045. dd.ReadMapElemKey()
  27046. }
  27047. mk = dd.DecodeUint64()
  27048. if esep {
  27049. dd.ReadMapElemValue()
  27050. }
  27051. if dd.TryDecodeAsNil() {
  27052. if v == nil {
  27053. } else if d.h.DeleteOnNilMapValue {
  27054. delete(v, mk)
  27055. } else {
  27056. v[mk] = 0
  27057. }
  27058. continue
  27059. }
  27060. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  27061. if v != nil {
  27062. v[mk] = mv
  27063. }
  27064. }
  27065. dd.ReadMapEnd()
  27066. d.depthDecr()
  27067. return v, changed
  27068. }
  27069. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  27070. if rv.Kind() == reflect.Ptr {
  27071. vp := rv2i(rv).(*map[uint64]uint32)
  27072. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d)
  27073. if changed {
  27074. *vp = v
  27075. }
  27076. } else {
  27077. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  27078. }
  27079. }
  27080. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  27081. v, changed := f.DecMapUint64Uint32V(*vp, true, d)
  27082. if changed {
  27083. *vp = v
  27084. }
  27085. }
  27086. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  27087. d *Decoder) (_ map[uint64]uint32, changed bool) {
  27088. dd, esep := d.d, d.hh.hasElemSeparators()
  27089. containerLen := dd.ReadMapStart()
  27090. if canChange && v == nil {
  27091. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27092. v = make(map[uint64]uint32, xlen)
  27093. changed = true
  27094. }
  27095. if containerLen == 0 {
  27096. dd.ReadMapEnd()
  27097. return v, changed
  27098. }
  27099. d.depthIncr()
  27100. var mk uint64
  27101. var mv uint32
  27102. hasLen := containerLen > 0
  27103. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27104. if esep {
  27105. dd.ReadMapElemKey()
  27106. }
  27107. mk = dd.DecodeUint64()
  27108. if esep {
  27109. dd.ReadMapElemValue()
  27110. }
  27111. if dd.TryDecodeAsNil() {
  27112. if v == nil {
  27113. } else if d.h.DeleteOnNilMapValue {
  27114. delete(v, mk)
  27115. } else {
  27116. v[mk] = 0
  27117. }
  27118. continue
  27119. }
  27120. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  27121. if v != nil {
  27122. v[mk] = mv
  27123. }
  27124. }
  27125. dd.ReadMapEnd()
  27126. d.depthDecr()
  27127. return v, changed
  27128. }
  27129. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  27130. if rv.Kind() == reflect.Ptr {
  27131. vp := rv2i(rv).(*map[uint64]uint64)
  27132. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d)
  27133. if changed {
  27134. *vp = v
  27135. }
  27136. } else {
  27137. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  27138. }
  27139. }
  27140. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  27141. v, changed := f.DecMapUint64Uint64V(*vp, true, d)
  27142. if changed {
  27143. *vp = v
  27144. }
  27145. }
  27146. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  27147. d *Decoder) (_ map[uint64]uint64, changed bool) {
  27148. dd, esep := d.d, d.hh.hasElemSeparators()
  27149. containerLen := dd.ReadMapStart()
  27150. if canChange && v == nil {
  27151. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27152. v = make(map[uint64]uint64, xlen)
  27153. changed = true
  27154. }
  27155. if containerLen == 0 {
  27156. dd.ReadMapEnd()
  27157. return v, changed
  27158. }
  27159. d.depthIncr()
  27160. var mk uint64
  27161. var mv uint64
  27162. hasLen := containerLen > 0
  27163. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27164. if esep {
  27165. dd.ReadMapElemKey()
  27166. }
  27167. mk = dd.DecodeUint64()
  27168. if esep {
  27169. dd.ReadMapElemValue()
  27170. }
  27171. if dd.TryDecodeAsNil() {
  27172. if v == nil {
  27173. } else if d.h.DeleteOnNilMapValue {
  27174. delete(v, mk)
  27175. } else {
  27176. v[mk] = 0
  27177. }
  27178. continue
  27179. }
  27180. mv = dd.DecodeUint64()
  27181. if v != nil {
  27182. v[mk] = mv
  27183. }
  27184. }
  27185. dd.ReadMapEnd()
  27186. d.depthDecr()
  27187. return v, changed
  27188. }
  27189. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  27190. if rv.Kind() == reflect.Ptr {
  27191. vp := rv2i(rv).(*map[uint64]uintptr)
  27192. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d)
  27193. if changed {
  27194. *vp = v
  27195. }
  27196. } else {
  27197. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  27198. }
  27199. }
  27200. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  27201. v, changed := f.DecMapUint64UintptrV(*vp, true, d)
  27202. if changed {
  27203. *vp = v
  27204. }
  27205. }
  27206. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  27207. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  27208. dd, esep := d.d, d.hh.hasElemSeparators()
  27209. containerLen := dd.ReadMapStart()
  27210. if canChange && v == nil {
  27211. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27212. v = make(map[uint64]uintptr, xlen)
  27213. changed = true
  27214. }
  27215. if containerLen == 0 {
  27216. dd.ReadMapEnd()
  27217. return v, changed
  27218. }
  27219. d.depthIncr()
  27220. var mk uint64
  27221. var mv uintptr
  27222. hasLen := containerLen > 0
  27223. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27224. if esep {
  27225. dd.ReadMapElemKey()
  27226. }
  27227. mk = dd.DecodeUint64()
  27228. if esep {
  27229. dd.ReadMapElemValue()
  27230. }
  27231. if dd.TryDecodeAsNil() {
  27232. if v == nil {
  27233. } else if d.h.DeleteOnNilMapValue {
  27234. delete(v, mk)
  27235. } else {
  27236. v[mk] = 0
  27237. }
  27238. continue
  27239. }
  27240. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27241. if v != nil {
  27242. v[mk] = mv
  27243. }
  27244. }
  27245. dd.ReadMapEnd()
  27246. d.depthDecr()
  27247. return v, changed
  27248. }
  27249. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  27250. if rv.Kind() == reflect.Ptr {
  27251. vp := rv2i(rv).(*map[uint64]int)
  27252. v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d)
  27253. if changed {
  27254. *vp = v
  27255. }
  27256. } else {
  27257. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  27258. }
  27259. }
  27260. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  27261. v, changed := f.DecMapUint64IntV(*vp, true, d)
  27262. if changed {
  27263. *vp = v
  27264. }
  27265. }
  27266. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  27267. d *Decoder) (_ map[uint64]int, changed bool) {
  27268. dd, esep := d.d, d.hh.hasElemSeparators()
  27269. containerLen := dd.ReadMapStart()
  27270. if canChange && v == nil {
  27271. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27272. v = make(map[uint64]int, xlen)
  27273. changed = true
  27274. }
  27275. if containerLen == 0 {
  27276. dd.ReadMapEnd()
  27277. return v, changed
  27278. }
  27279. d.depthIncr()
  27280. var mk uint64
  27281. var mv int
  27282. hasLen := containerLen > 0
  27283. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27284. if esep {
  27285. dd.ReadMapElemKey()
  27286. }
  27287. mk = dd.DecodeUint64()
  27288. if esep {
  27289. dd.ReadMapElemValue()
  27290. }
  27291. if dd.TryDecodeAsNil() {
  27292. if v == nil {
  27293. } else if d.h.DeleteOnNilMapValue {
  27294. delete(v, mk)
  27295. } else {
  27296. v[mk] = 0
  27297. }
  27298. continue
  27299. }
  27300. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27301. if v != nil {
  27302. v[mk] = mv
  27303. }
  27304. }
  27305. dd.ReadMapEnd()
  27306. d.depthDecr()
  27307. return v, changed
  27308. }
  27309. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  27310. if rv.Kind() == reflect.Ptr {
  27311. vp := rv2i(rv).(*map[uint64]int8)
  27312. v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d)
  27313. if changed {
  27314. *vp = v
  27315. }
  27316. } else {
  27317. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  27318. }
  27319. }
  27320. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  27321. v, changed := f.DecMapUint64Int8V(*vp, true, d)
  27322. if changed {
  27323. *vp = v
  27324. }
  27325. }
  27326. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  27327. d *Decoder) (_ map[uint64]int8, changed bool) {
  27328. dd, esep := d.d, d.hh.hasElemSeparators()
  27329. containerLen := dd.ReadMapStart()
  27330. if canChange && v == nil {
  27331. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27332. v = make(map[uint64]int8, xlen)
  27333. changed = true
  27334. }
  27335. if containerLen == 0 {
  27336. dd.ReadMapEnd()
  27337. return v, changed
  27338. }
  27339. d.depthIncr()
  27340. var mk uint64
  27341. var mv int8
  27342. hasLen := containerLen > 0
  27343. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27344. if esep {
  27345. dd.ReadMapElemKey()
  27346. }
  27347. mk = dd.DecodeUint64()
  27348. if esep {
  27349. dd.ReadMapElemValue()
  27350. }
  27351. if dd.TryDecodeAsNil() {
  27352. if v == nil {
  27353. } else if d.h.DeleteOnNilMapValue {
  27354. delete(v, mk)
  27355. } else {
  27356. v[mk] = 0
  27357. }
  27358. continue
  27359. }
  27360. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  27361. if v != nil {
  27362. v[mk] = mv
  27363. }
  27364. }
  27365. dd.ReadMapEnd()
  27366. d.depthDecr()
  27367. return v, changed
  27368. }
  27369. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  27370. if rv.Kind() == reflect.Ptr {
  27371. vp := rv2i(rv).(*map[uint64]int16)
  27372. v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d)
  27373. if changed {
  27374. *vp = v
  27375. }
  27376. } else {
  27377. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  27378. }
  27379. }
  27380. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  27381. v, changed := f.DecMapUint64Int16V(*vp, true, d)
  27382. if changed {
  27383. *vp = v
  27384. }
  27385. }
  27386. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  27387. d *Decoder) (_ map[uint64]int16, changed bool) {
  27388. dd, esep := d.d, d.hh.hasElemSeparators()
  27389. containerLen := dd.ReadMapStart()
  27390. if canChange && v == nil {
  27391. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27392. v = make(map[uint64]int16, xlen)
  27393. changed = true
  27394. }
  27395. if containerLen == 0 {
  27396. dd.ReadMapEnd()
  27397. return v, changed
  27398. }
  27399. d.depthIncr()
  27400. var mk uint64
  27401. var mv int16
  27402. hasLen := containerLen > 0
  27403. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27404. if esep {
  27405. dd.ReadMapElemKey()
  27406. }
  27407. mk = dd.DecodeUint64()
  27408. if esep {
  27409. dd.ReadMapElemValue()
  27410. }
  27411. if dd.TryDecodeAsNil() {
  27412. if v == nil {
  27413. } else if d.h.DeleteOnNilMapValue {
  27414. delete(v, mk)
  27415. } else {
  27416. v[mk] = 0
  27417. }
  27418. continue
  27419. }
  27420. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  27421. if v != nil {
  27422. v[mk] = mv
  27423. }
  27424. }
  27425. dd.ReadMapEnd()
  27426. d.depthDecr()
  27427. return v, changed
  27428. }
  27429. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  27430. if rv.Kind() == reflect.Ptr {
  27431. vp := rv2i(rv).(*map[uint64]int32)
  27432. v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d)
  27433. if changed {
  27434. *vp = v
  27435. }
  27436. } else {
  27437. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  27438. }
  27439. }
  27440. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  27441. v, changed := f.DecMapUint64Int32V(*vp, true, d)
  27442. if changed {
  27443. *vp = v
  27444. }
  27445. }
  27446. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  27447. d *Decoder) (_ map[uint64]int32, changed bool) {
  27448. dd, esep := d.d, d.hh.hasElemSeparators()
  27449. containerLen := dd.ReadMapStart()
  27450. if canChange && v == nil {
  27451. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27452. v = make(map[uint64]int32, xlen)
  27453. changed = true
  27454. }
  27455. if containerLen == 0 {
  27456. dd.ReadMapEnd()
  27457. return v, changed
  27458. }
  27459. d.depthIncr()
  27460. var mk uint64
  27461. var mv int32
  27462. hasLen := containerLen > 0
  27463. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27464. if esep {
  27465. dd.ReadMapElemKey()
  27466. }
  27467. mk = dd.DecodeUint64()
  27468. if esep {
  27469. dd.ReadMapElemValue()
  27470. }
  27471. if dd.TryDecodeAsNil() {
  27472. if v == nil {
  27473. } else if d.h.DeleteOnNilMapValue {
  27474. delete(v, mk)
  27475. } else {
  27476. v[mk] = 0
  27477. }
  27478. continue
  27479. }
  27480. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  27481. if v != nil {
  27482. v[mk] = mv
  27483. }
  27484. }
  27485. dd.ReadMapEnd()
  27486. d.depthDecr()
  27487. return v, changed
  27488. }
  27489. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  27490. if rv.Kind() == reflect.Ptr {
  27491. vp := rv2i(rv).(*map[uint64]int64)
  27492. v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d)
  27493. if changed {
  27494. *vp = v
  27495. }
  27496. } else {
  27497. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  27498. }
  27499. }
  27500. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  27501. v, changed := f.DecMapUint64Int64V(*vp, true, d)
  27502. if changed {
  27503. *vp = v
  27504. }
  27505. }
  27506. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  27507. d *Decoder) (_ map[uint64]int64, changed bool) {
  27508. dd, esep := d.d, d.hh.hasElemSeparators()
  27509. containerLen := dd.ReadMapStart()
  27510. if canChange && v == nil {
  27511. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27512. v = make(map[uint64]int64, xlen)
  27513. changed = true
  27514. }
  27515. if containerLen == 0 {
  27516. dd.ReadMapEnd()
  27517. return v, changed
  27518. }
  27519. d.depthIncr()
  27520. var mk uint64
  27521. var mv int64
  27522. hasLen := containerLen > 0
  27523. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27524. if esep {
  27525. dd.ReadMapElemKey()
  27526. }
  27527. mk = dd.DecodeUint64()
  27528. if esep {
  27529. dd.ReadMapElemValue()
  27530. }
  27531. if dd.TryDecodeAsNil() {
  27532. if v == nil {
  27533. } else if d.h.DeleteOnNilMapValue {
  27534. delete(v, mk)
  27535. } else {
  27536. v[mk] = 0
  27537. }
  27538. continue
  27539. }
  27540. mv = dd.DecodeInt64()
  27541. if v != nil {
  27542. v[mk] = mv
  27543. }
  27544. }
  27545. dd.ReadMapEnd()
  27546. d.depthDecr()
  27547. return v, changed
  27548. }
  27549. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  27550. if rv.Kind() == reflect.Ptr {
  27551. vp := rv2i(rv).(*map[uint64]float32)
  27552. v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d)
  27553. if changed {
  27554. *vp = v
  27555. }
  27556. } else {
  27557. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  27558. }
  27559. }
  27560. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  27561. v, changed := f.DecMapUint64Float32V(*vp, true, d)
  27562. if changed {
  27563. *vp = v
  27564. }
  27565. }
  27566. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  27567. d *Decoder) (_ map[uint64]float32, changed bool) {
  27568. dd, esep := d.d, d.hh.hasElemSeparators()
  27569. containerLen := dd.ReadMapStart()
  27570. if canChange && v == nil {
  27571. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27572. v = make(map[uint64]float32, xlen)
  27573. changed = true
  27574. }
  27575. if containerLen == 0 {
  27576. dd.ReadMapEnd()
  27577. return v, changed
  27578. }
  27579. d.depthIncr()
  27580. var mk uint64
  27581. var mv float32
  27582. hasLen := containerLen > 0
  27583. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27584. if esep {
  27585. dd.ReadMapElemKey()
  27586. }
  27587. mk = dd.DecodeUint64()
  27588. if esep {
  27589. dd.ReadMapElemValue()
  27590. }
  27591. if dd.TryDecodeAsNil() {
  27592. if v == nil {
  27593. } else if d.h.DeleteOnNilMapValue {
  27594. delete(v, mk)
  27595. } else {
  27596. v[mk] = 0
  27597. }
  27598. continue
  27599. }
  27600. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  27601. if v != nil {
  27602. v[mk] = mv
  27603. }
  27604. }
  27605. dd.ReadMapEnd()
  27606. d.depthDecr()
  27607. return v, changed
  27608. }
  27609. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  27610. if rv.Kind() == reflect.Ptr {
  27611. vp := rv2i(rv).(*map[uint64]float64)
  27612. v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d)
  27613. if changed {
  27614. *vp = v
  27615. }
  27616. } else {
  27617. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  27618. }
  27619. }
  27620. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  27621. v, changed := f.DecMapUint64Float64V(*vp, true, d)
  27622. if changed {
  27623. *vp = v
  27624. }
  27625. }
  27626. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  27627. d *Decoder) (_ map[uint64]float64, changed bool) {
  27628. dd, esep := d.d, d.hh.hasElemSeparators()
  27629. containerLen := dd.ReadMapStart()
  27630. if canChange && v == nil {
  27631. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27632. v = make(map[uint64]float64, xlen)
  27633. changed = true
  27634. }
  27635. if containerLen == 0 {
  27636. dd.ReadMapEnd()
  27637. return v, changed
  27638. }
  27639. d.depthIncr()
  27640. var mk uint64
  27641. var mv float64
  27642. hasLen := containerLen > 0
  27643. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27644. if esep {
  27645. dd.ReadMapElemKey()
  27646. }
  27647. mk = dd.DecodeUint64()
  27648. if esep {
  27649. dd.ReadMapElemValue()
  27650. }
  27651. if dd.TryDecodeAsNil() {
  27652. if v == nil {
  27653. } else if d.h.DeleteOnNilMapValue {
  27654. delete(v, mk)
  27655. } else {
  27656. v[mk] = 0
  27657. }
  27658. continue
  27659. }
  27660. mv = dd.DecodeFloat64()
  27661. if v != nil {
  27662. v[mk] = mv
  27663. }
  27664. }
  27665. dd.ReadMapEnd()
  27666. d.depthDecr()
  27667. return v, changed
  27668. }
  27669. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  27670. if rv.Kind() == reflect.Ptr {
  27671. vp := rv2i(rv).(*map[uint64]bool)
  27672. v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d)
  27673. if changed {
  27674. *vp = v
  27675. }
  27676. } else {
  27677. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  27678. }
  27679. }
  27680. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  27681. v, changed := f.DecMapUint64BoolV(*vp, true, d)
  27682. if changed {
  27683. *vp = v
  27684. }
  27685. }
  27686. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  27687. d *Decoder) (_ map[uint64]bool, changed bool) {
  27688. dd, esep := d.d, d.hh.hasElemSeparators()
  27689. containerLen := dd.ReadMapStart()
  27690. if canChange && v == nil {
  27691. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27692. v = make(map[uint64]bool, xlen)
  27693. changed = true
  27694. }
  27695. if containerLen == 0 {
  27696. dd.ReadMapEnd()
  27697. return v, changed
  27698. }
  27699. d.depthIncr()
  27700. var mk uint64
  27701. var mv bool
  27702. hasLen := containerLen > 0
  27703. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27704. if esep {
  27705. dd.ReadMapElemKey()
  27706. }
  27707. mk = dd.DecodeUint64()
  27708. if esep {
  27709. dd.ReadMapElemValue()
  27710. }
  27711. if dd.TryDecodeAsNil() {
  27712. if v == nil {
  27713. } else if d.h.DeleteOnNilMapValue {
  27714. delete(v, mk)
  27715. } else {
  27716. v[mk] = false
  27717. }
  27718. continue
  27719. }
  27720. mv = dd.DecodeBool()
  27721. if v != nil {
  27722. v[mk] = mv
  27723. }
  27724. }
  27725. dd.ReadMapEnd()
  27726. d.depthDecr()
  27727. return v, changed
  27728. }
  27729. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  27730. if rv.Kind() == reflect.Ptr {
  27731. vp := rv2i(rv).(*map[uintptr]interface{})
  27732. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d)
  27733. if changed {
  27734. *vp = v
  27735. }
  27736. } else {
  27737. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  27738. }
  27739. }
  27740. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  27741. v, changed := f.DecMapUintptrIntfV(*vp, true, d)
  27742. if changed {
  27743. *vp = v
  27744. }
  27745. }
  27746. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  27747. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  27748. dd, esep := d.d, d.hh.hasElemSeparators()
  27749. containerLen := dd.ReadMapStart()
  27750. if canChange && v == nil {
  27751. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27752. v = make(map[uintptr]interface{}, xlen)
  27753. changed = true
  27754. }
  27755. if containerLen == 0 {
  27756. dd.ReadMapEnd()
  27757. return v, changed
  27758. }
  27759. d.depthIncr()
  27760. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  27761. var mk uintptr
  27762. var mv interface{}
  27763. hasLen := containerLen > 0
  27764. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27765. if esep {
  27766. dd.ReadMapElemKey()
  27767. }
  27768. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27769. if esep {
  27770. dd.ReadMapElemValue()
  27771. }
  27772. if dd.TryDecodeAsNil() {
  27773. if v == nil {
  27774. } else if d.h.DeleteOnNilMapValue {
  27775. delete(v, mk)
  27776. } else {
  27777. v[mk] = nil
  27778. }
  27779. continue
  27780. }
  27781. if mapGet {
  27782. mv = v[mk]
  27783. } else {
  27784. mv = nil
  27785. }
  27786. d.decode(&mv)
  27787. if v != nil {
  27788. v[mk] = mv
  27789. }
  27790. }
  27791. dd.ReadMapEnd()
  27792. d.depthDecr()
  27793. return v, changed
  27794. }
  27795. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  27796. if rv.Kind() == reflect.Ptr {
  27797. vp := rv2i(rv).(*map[uintptr]string)
  27798. v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d)
  27799. if changed {
  27800. *vp = v
  27801. }
  27802. } else {
  27803. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  27804. }
  27805. }
  27806. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  27807. v, changed := f.DecMapUintptrStringV(*vp, true, d)
  27808. if changed {
  27809. *vp = v
  27810. }
  27811. }
  27812. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  27813. d *Decoder) (_ map[uintptr]string, changed bool) {
  27814. dd, esep := d.d, d.hh.hasElemSeparators()
  27815. containerLen := dd.ReadMapStart()
  27816. if canChange && v == nil {
  27817. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27818. v = make(map[uintptr]string, xlen)
  27819. changed = true
  27820. }
  27821. if containerLen == 0 {
  27822. dd.ReadMapEnd()
  27823. return v, changed
  27824. }
  27825. d.depthIncr()
  27826. var mk uintptr
  27827. var mv string
  27828. hasLen := containerLen > 0
  27829. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27830. if esep {
  27831. dd.ReadMapElemKey()
  27832. }
  27833. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27834. if esep {
  27835. dd.ReadMapElemValue()
  27836. }
  27837. if dd.TryDecodeAsNil() {
  27838. if v == nil {
  27839. } else if d.h.DeleteOnNilMapValue {
  27840. delete(v, mk)
  27841. } else {
  27842. v[mk] = ""
  27843. }
  27844. continue
  27845. }
  27846. mv = dd.DecodeString()
  27847. if v != nil {
  27848. v[mk] = mv
  27849. }
  27850. }
  27851. dd.ReadMapEnd()
  27852. d.depthDecr()
  27853. return v, changed
  27854. }
  27855. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  27856. if rv.Kind() == reflect.Ptr {
  27857. vp := rv2i(rv).(*map[uintptr]uint)
  27858. v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d)
  27859. if changed {
  27860. *vp = v
  27861. }
  27862. } else {
  27863. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  27864. }
  27865. }
  27866. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  27867. v, changed := f.DecMapUintptrUintV(*vp, true, d)
  27868. if changed {
  27869. *vp = v
  27870. }
  27871. }
  27872. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  27873. d *Decoder) (_ map[uintptr]uint, changed bool) {
  27874. dd, esep := d.d, d.hh.hasElemSeparators()
  27875. containerLen := dd.ReadMapStart()
  27876. if canChange && v == nil {
  27877. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27878. v = make(map[uintptr]uint, xlen)
  27879. changed = true
  27880. }
  27881. if containerLen == 0 {
  27882. dd.ReadMapEnd()
  27883. return v, changed
  27884. }
  27885. d.depthIncr()
  27886. var mk uintptr
  27887. var mv uint
  27888. hasLen := containerLen > 0
  27889. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27890. if esep {
  27891. dd.ReadMapElemKey()
  27892. }
  27893. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27894. if esep {
  27895. dd.ReadMapElemValue()
  27896. }
  27897. if dd.TryDecodeAsNil() {
  27898. if v == nil {
  27899. } else if d.h.DeleteOnNilMapValue {
  27900. delete(v, mk)
  27901. } else {
  27902. v[mk] = 0
  27903. }
  27904. continue
  27905. }
  27906. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27907. if v != nil {
  27908. v[mk] = mv
  27909. }
  27910. }
  27911. dd.ReadMapEnd()
  27912. d.depthDecr()
  27913. return v, changed
  27914. }
  27915. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  27916. if rv.Kind() == reflect.Ptr {
  27917. vp := rv2i(rv).(*map[uintptr]uint8)
  27918. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d)
  27919. if changed {
  27920. *vp = v
  27921. }
  27922. } else {
  27923. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  27924. }
  27925. }
  27926. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  27927. v, changed := f.DecMapUintptrUint8V(*vp, true, d)
  27928. if changed {
  27929. *vp = v
  27930. }
  27931. }
  27932. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  27933. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  27934. dd, esep := d.d, d.hh.hasElemSeparators()
  27935. containerLen := dd.ReadMapStart()
  27936. if canChange && v == nil {
  27937. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27938. v = make(map[uintptr]uint8, xlen)
  27939. changed = true
  27940. }
  27941. if containerLen == 0 {
  27942. dd.ReadMapEnd()
  27943. return v, changed
  27944. }
  27945. d.depthIncr()
  27946. var mk uintptr
  27947. var mv uint8
  27948. hasLen := containerLen > 0
  27949. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27950. if esep {
  27951. dd.ReadMapElemKey()
  27952. }
  27953. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27954. if esep {
  27955. dd.ReadMapElemValue()
  27956. }
  27957. if dd.TryDecodeAsNil() {
  27958. if v == nil {
  27959. } else if d.h.DeleteOnNilMapValue {
  27960. delete(v, mk)
  27961. } else {
  27962. v[mk] = 0
  27963. }
  27964. continue
  27965. }
  27966. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27967. if v != nil {
  27968. v[mk] = mv
  27969. }
  27970. }
  27971. dd.ReadMapEnd()
  27972. d.depthDecr()
  27973. return v, changed
  27974. }
  27975. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  27976. if rv.Kind() == reflect.Ptr {
  27977. vp := rv2i(rv).(*map[uintptr]uint16)
  27978. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d)
  27979. if changed {
  27980. *vp = v
  27981. }
  27982. } else {
  27983. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  27984. }
  27985. }
  27986. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  27987. v, changed := f.DecMapUintptrUint16V(*vp, true, d)
  27988. if changed {
  27989. *vp = v
  27990. }
  27991. }
  27992. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  27993. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  27994. dd, esep := d.d, d.hh.hasElemSeparators()
  27995. containerLen := dd.ReadMapStart()
  27996. if canChange && v == nil {
  27997. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27998. v = make(map[uintptr]uint16, xlen)
  27999. changed = true
  28000. }
  28001. if containerLen == 0 {
  28002. dd.ReadMapEnd()
  28003. return v, changed
  28004. }
  28005. d.depthIncr()
  28006. var mk uintptr
  28007. var mv uint16
  28008. hasLen := containerLen > 0
  28009. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28010. if esep {
  28011. dd.ReadMapElemKey()
  28012. }
  28013. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28014. if esep {
  28015. dd.ReadMapElemValue()
  28016. }
  28017. if dd.TryDecodeAsNil() {
  28018. if v == nil {
  28019. } else if d.h.DeleteOnNilMapValue {
  28020. delete(v, mk)
  28021. } else {
  28022. v[mk] = 0
  28023. }
  28024. continue
  28025. }
  28026. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28027. if v != nil {
  28028. v[mk] = mv
  28029. }
  28030. }
  28031. dd.ReadMapEnd()
  28032. d.depthDecr()
  28033. return v, changed
  28034. }
  28035. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  28036. if rv.Kind() == reflect.Ptr {
  28037. vp := rv2i(rv).(*map[uintptr]uint32)
  28038. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d)
  28039. if changed {
  28040. *vp = v
  28041. }
  28042. } else {
  28043. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  28044. }
  28045. }
  28046. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  28047. v, changed := f.DecMapUintptrUint32V(*vp, true, d)
  28048. if changed {
  28049. *vp = v
  28050. }
  28051. }
  28052. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  28053. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  28054. dd, esep := d.d, d.hh.hasElemSeparators()
  28055. containerLen := dd.ReadMapStart()
  28056. if canChange && v == nil {
  28057. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28058. v = make(map[uintptr]uint32, xlen)
  28059. changed = true
  28060. }
  28061. if containerLen == 0 {
  28062. dd.ReadMapEnd()
  28063. return v, changed
  28064. }
  28065. d.depthIncr()
  28066. var mk uintptr
  28067. var mv uint32
  28068. hasLen := containerLen > 0
  28069. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28070. if esep {
  28071. dd.ReadMapElemKey()
  28072. }
  28073. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28074. if esep {
  28075. dd.ReadMapElemValue()
  28076. }
  28077. if dd.TryDecodeAsNil() {
  28078. if v == nil {
  28079. } else if d.h.DeleteOnNilMapValue {
  28080. delete(v, mk)
  28081. } else {
  28082. v[mk] = 0
  28083. }
  28084. continue
  28085. }
  28086. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  28087. if v != nil {
  28088. v[mk] = mv
  28089. }
  28090. }
  28091. dd.ReadMapEnd()
  28092. d.depthDecr()
  28093. return v, changed
  28094. }
  28095. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  28096. if rv.Kind() == reflect.Ptr {
  28097. vp := rv2i(rv).(*map[uintptr]uint64)
  28098. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d)
  28099. if changed {
  28100. *vp = v
  28101. }
  28102. } else {
  28103. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  28104. }
  28105. }
  28106. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  28107. v, changed := f.DecMapUintptrUint64V(*vp, true, d)
  28108. if changed {
  28109. *vp = v
  28110. }
  28111. }
  28112. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  28113. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  28114. dd, esep := d.d, d.hh.hasElemSeparators()
  28115. containerLen := dd.ReadMapStart()
  28116. if canChange && v == nil {
  28117. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28118. v = make(map[uintptr]uint64, xlen)
  28119. changed = true
  28120. }
  28121. if containerLen == 0 {
  28122. dd.ReadMapEnd()
  28123. return v, changed
  28124. }
  28125. d.depthIncr()
  28126. var mk uintptr
  28127. var mv uint64
  28128. hasLen := containerLen > 0
  28129. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28130. if esep {
  28131. dd.ReadMapElemKey()
  28132. }
  28133. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28134. if esep {
  28135. dd.ReadMapElemValue()
  28136. }
  28137. if dd.TryDecodeAsNil() {
  28138. if v == nil {
  28139. } else if d.h.DeleteOnNilMapValue {
  28140. delete(v, mk)
  28141. } else {
  28142. v[mk] = 0
  28143. }
  28144. continue
  28145. }
  28146. mv = dd.DecodeUint64()
  28147. if v != nil {
  28148. v[mk] = mv
  28149. }
  28150. }
  28151. dd.ReadMapEnd()
  28152. d.depthDecr()
  28153. return v, changed
  28154. }
  28155. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  28156. if rv.Kind() == reflect.Ptr {
  28157. vp := rv2i(rv).(*map[uintptr]uintptr)
  28158. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d)
  28159. if changed {
  28160. *vp = v
  28161. }
  28162. } else {
  28163. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  28164. }
  28165. }
  28166. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  28167. v, changed := f.DecMapUintptrUintptrV(*vp, true, d)
  28168. if changed {
  28169. *vp = v
  28170. }
  28171. }
  28172. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  28173. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  28174. dd, esep := d.d, d.hh.hasElemSeparators()
  28175. containerLen := dd.ReadMapStart()
  28176. if canChange && v == nil {
  28177. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28178. v = make(map[uintptr]uintptr, xlen)
  28179. changed = true
  28180. }
  28181. if containerLen == 0 {
  28182. dd.ReadMapEnd()
  28183. return v, changed
  28184. }
  28185. d.depthIncr()
  28186. var mk uintptr
  28187. var mv uintptr
  28188. hasLen := containerLen > 0
  28189. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28190. if esep {
  28191. dd.ReadMapElemKey()
  28192. }
  28193. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28194. if esep {
  28195. dd.ReadMapElemValue()
  28196. }
  28197. if dd.TryDecodeAsNil() {
  28198. if v == nil {
  28199. } else if d.h.DeleteOnNilMapValue {
  28200. delete(v, mk)
  28201. } else {
  28202. v[mk] = 0
  28203. }
  28204. continue
  28205. }
  28206. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28207. if v != nil {
  28208. v[mk] = mv
  28209. }
  28210. }
  28211. dd.ReadMapEnd()
  28212. d.depthDecr()
  28213. return v, changed
  28214. }
  28215. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  28216. if rv.Kind() == reflect.Ptr {
  28217. vp := rv2i(rv).(*map[uintptr]int)
  28218. v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d)
  28219. if changed {
  28220. *vp = v
  28221. }
  28222. } else {
  28223. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  28224. }
  28225. }
  28226. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  28227. v, changed := f.DecMapUintptrIntV(*vp, true, d)
  28228. if changed {
  28229. *vp = v
  28230. }
  28231. }
  28232. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  28233. d *Decoder) (_ map[uintptr]int, changed bool) {
  28234. dd, esep := d.d, d.hh.hasElemSeparators()
  28235. containerLen := dd.ReadMapStart()
  28236. if canChange && v == nil {
  28237. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28238. v = make(map[uintptr]int, xlen)
  28239. changed = true
  28240. }
  28241. if containerLen == 0 {
  28242. dd.ReadMapEnd()
  28243. return v, changed
  28244. }
  28245. d.depthIncr()
  28246. var mk uintptr
  28247. var mv int
  28248. hasLen := containerLen > 0
  28249. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28250. if esep {
  28251. dd.ReadMapElemKey()
  28252. }
  28253. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28254. if esep {
  28255. dd.ReadMapElemValue()
  28256. }
  28257. if dd.TryDecodeAsNil() {
  28258. if v == nil {
  28259. } else if d.h.DeleteOnNilMapValue {
  28260. delete(v, mk)
  28261. } else {
  28262. v[mk] = 0
  28263. }
  28264. continue
  28265. }
  28266. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28267. if v != nil {
  28268. v[mk] = mv
  28269. }
  28270. }
  28271. dd.ReadMapEnd()
  28272. d.depthDecr()
  28273. return v, changed
  28274. }
  28275. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  28276. if rv.Kind() == reflect.Ptr {
  28277. vp := rv2i(rv).(*map[uintptr]int8)
  28278. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d)
  28279. if changed {
  28280. *vp = v
  28281. }
  28282. } else {
  28283. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  28284. }
  28285. }
  28286. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  28287. v, changed := f.DecMapUintptrInt8V(*vp, true, d)
  28288. if changed {
  28289. *vp = v
  28290. }
  28291. }
  28292. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  28293. d *Decoder) (_ map[uintptr]int8, changed bool) {
  28294. dd, esep := d.d, d.hh.hasElemSeparators()
  28295. containerLen := dd.ReadMapStart()
  28296. if canChange && v == nil {
  28297. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28298. v = make(map[uintptr]int8, xlen)
  28299. changed = true
  28300. }
  28301. if containerLen == 0 {
  28302. dd.ReadMapEnd()
  28303. return v, changed
  28304. }
  28305. d.depthIncr()
  28306. var mk uintptr
  28307. var mv int8
  28308. hasLen := containerLen > 0
  28309. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28310. if esep {
  28311. dd.ReadMapElemKey()
  28312. }
  28313. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28314. if esep {
  28315. dd.ReadMapElemValue()
  28316. }
  28317. if dd.TryDecodeAsNil() {
  28318. if v == nil {
  28319. } else if d.h.DeleteOnNilMapValue {
  28320. delete(v, mk)
  28321. } else {
  28322. v[mk] = 0
  28323. }
  28324. continue
  28325. }
  28326. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28327. if v != nil {
  28328. v[mk] = mv
  28329. }
  28330. }
  28331. dd.ReadMapEnd()
  28332. d.depthDecr()
  28333. return v, changed
  28334. }
  28335. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  28336. if rv.Kind() == reflect.Ptr {
  28337. vp := rv2i(rv).(*map[uintptr]int16)
  28338. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d)
  28339. if changed {
  28340. *vp = v
  28341. }
  28342. } else {
  28343. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  28344. }
  28345. }
  28346. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  28347. v, changed := f.DecMapUintptrInt16V(*vp, true, d)
  28348. if changed {
  28349. *vp = v
  28350. }
  28351. }
  28352. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  28353. d *Decoder) (_ map[uintptr]int16, changed bool) {
  28354. dd, esep := d.d, d.hh.hasElemSeparators()
  28355. containerLen := dd.ReadMapStart()
  28356. if canChange && v == nil {
  28357. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28358. v = make(map[uintptr]int16, xlen)
  28359. changed = true
  28360. }
  28361. if containerLen == 0 {
  28362. dd.ReadMapEnd()
  28363. return v, changed
  28364. }
  28365. d.depthIncr()
  28366. var mk uintptr
  28367. var mv int16
  28368. hasLen := containerLen > 0
  28369. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28370. if esep {
  28371. dd.ReadMapElemKey()
  28372. }
  28373. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28374. if esep {
  28375. dd.ReadMapElemValue()
  28376. }
  28377. if dd.TryDecodeAsNil() {
  28378. if v == nil {
  28379. } else if d.h.DeleteOnNilMapValue {
  28380. delete(v, mk)
  28381. } else {
  28382. v[mk] = 0
  28383. }
  28384. continue
  28385. }
  28386. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  28387. if v != nil {
  28388. v[mk] = mv
  28389. }
  28390. }
  28391. dd.ReadMapEnd()
  28392. d.depthDecr()
  28393. return v, changed
  28394. }
  28395. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  28396. if rv.Kind() == reflect.Ptr {
  28397. vp := rv2i(rv).(*map[uintptr]int32)
  28398. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d)
  28399. if changed {
  28400. *vp = v
  28401. }
  28402. } else {
  28403. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  28404. }
  28405. }
  28406. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  28407. v, changed := f.DecMapUintptrInt32V(*vp, true, d)
  28408. if changed {
  28409. *vp = v
  28410. }
  28411. }
  28412. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  28413. d *Decoder) (_ map[uintptr]int32, changed bool) {
  28414. dd, esep := d.d, d.hh.hasElemSeparators()
  28415. containerLen := dd.ReadMapStart()
  28416. if canChange && v == nil {
  28417. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28418. v = make(map[uintptr]int32, xlen)
  28419. changed = true
  28420. }
  28421. if containerLen == 0 {
  28422. dd.ReadMapEnd()
  28423. return v, changed
  28424. }
  28425. d.depthIncr()
  28426. var mk uintptr
  28427. var mv int32
  28428. hasLen := containerLen > 0
  28429. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28430. if esep {
  28431. dd.ReadMapElemKey()
  28432. }
  28433. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28434. if esep {
  28435. dd.ReadMapElemValue()
  28436. }
  28437. if dd.TryDecodeAsNil() {
  28438. if v == nil {
  28439. } else if d.h.DeleteOnNilMapValue {
  28440. delete(v, mk)
  28441. } else {
  28442. v[mk] = 0
  28443. }
  28444. continue
  28445. }
  28446. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  28447. if v != nil {
  28448. v[mk] = mv
  28449. }
  28450. }
  28451. dd.ReadMapEnd()
  28452. d.depthDecr()
  28453. return v, changed
  28454. }
  28455. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  28456. if rv.Kind() == reflect.Ptr {
  28457. vp := rv2i(rv).(*map[uintptr]int64)
  28458. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d)
  28459. if changed {
  28460. *vp = v
  28461. }
  28462. } else {
  28463. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  28464. }
  28465. }
  28466. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  28467. v, changed := f.DecMapUintptrInt64V(*vp, true, d)
  28468. if changed {
  28469. *vp = v
  28470. }
  28471. }
  28472. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  28473. d *Decoder) (_ map[uintptr]int64, changed bool) {
  28474. dd, esep := d.d, d.hh.hasElemSeparators()
  28475. containerLen := dd.ReadMapStart()
  28476. if canChange && v == nil {
  28477. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28478. v = make(map[uintptr]int64, xlen)
  28479. changed = true
  28480. }
  28481. if containerLen == 0 {
  28482. dd.ReadMapEnd()
  28483. return v, changed
  28484. }
  28485. d.depthIncr()
  28486. var mk uintptr
  28487. var mv int64
  28488. hasLen := containerLen > 0
  28489. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28490. if esep {
  28491. dd.ReadMapElemKey()
  28492. }
  28493. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28494. if esep {
  28495. dd.ReadMapElemValue()
  28496. }
  28497. if dd.TryDecodeAsNil() {
  28498. if v == nil {
  28499. } else if d.h.DeleteOnNilMapValue {
  28500. delete(v, mk)
  28501. } else {
  28502. v[mk] = 0
  28503. }
  28504. continue
  28505. }
  28506. mv = dd.DecodeInt64()
  28507. if v != nil {
  28508. v[mk] = mv
  28509. }
  28510. }
  28511. dd.ReadMapEnd()
  28512. d.depthDecr()
  28513. return v, changed
  28514. }
  28515. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  28516. if rv.Kind() == reflect.Ptr {
  28517. vp := rv2i(rv).(*map[uintptr]float32)
  28518. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d)
  28519. if changed {
  28520. *vp = v
  28521. }
  28522. } else {
  28523. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  28524. }
  28525. }
  28526. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  28527. v, changed := f.DecMapUintptrFloat32V(*vp, true, d)
  28528. if changed {
  28529. *vp = v
  28530. }
  28531. }
  28532. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  28533. d *Decoder) (_ map[uintptr]float32, changed bool) {
  28534. dd, esep := d.d, d.hh.hasElemSeparators()
  28535. containerLen := dd.ReadMapStart()
  28536. if canChange && v == nil {
  28537. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28538. v = make(map[uintptr]float32, xlen)
  28539. changed = true
  28540. }
  28541. if containerLen == 0 {
  28542. dd.ReadMapEnd()
  28543. return v, changed
  28544. }
  28545. d.depthIncr()
  28546. var mk uintptr
  28547. var mv float32
  28548. hasLen := containerLen > 0
  28549. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28550. if esep {
  28551. dd.ReadMapElemKey()
  28552. }
  28553. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28554. if esep {
  28555. dd.ReadMapElemValue()
  28556. }
  28557. if dd.TryDecodeAsNil() {
  28558. if v == nil {
  28559. } else if d.h.DeleteOnNilMapValue {
  28560. delete(v, mk)
  28561. } else {
  28562. v[mk] = 0
  28563. }
  28564. continue
  28565. }
  28566. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  28567. if v != nil {
  28568. v[mk] = mv
  28569. }
  28570. }
  28571. dd.ReadMapEnd()
  28572. d.depthDecr()
  28573. return v, changed
  28574. }
  28575. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  28576. if rv.Kind() == reflect.Ptr {
  28577. vp := rv2i(rv).(*map[uintptr]float64)
  28578. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d)
  28579. if changed {
  28580. *vp = v
  28581. }
  28582. } else {
  28583. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  28584. }
  28585. }
  28586. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  28587. v, changed := f.DecMapUintptrFloat64V(*vp, true, d)
  28588. if changed {
  28589. *vp = v
  28590. }
  28591. }
  28592. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  28593. d *Decoder) (_ map[uintptr]float64, changed bool) {
  28594. dd, esep := d.d, d.hh.hasElemSeparators()
  28595. containerLen := dd.ReadMapStart()
  28596. if canChange && v == nil {
  28597. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28598. v = make(map[uintptr]float64, xlen)
  28599. changed = true
  28600. }
  28601. if containerLen == 0 {
  28602. dd.ReadMapEnd()
  28603. return v, changed
  28604. }
  28605. d.depthIncr()
  28606. var mk uintptr
  28607. var mv float64
  28608. hasLen := containerLen > 0
  28609. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28610. if esep {
  28611. dd.ReadMapElemKey()
  28612. }
  28613. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28614. if esep {
  28615. dd.ReadMapElemValue()
  28616. }
  28617. if dd.TryDecodeAsNil() {
  28618. if v == nil {
  28619. } else if d.h.DeleteOnNilMapValue {
  28620. delete(v, mk)
  28621. } else {
  28622. v[mk] = 0
  28623. }
  28624. continue
  28625. }
  28626. mv = dd.DecodeFloat64()
  28627. if v != nil {
  28628. v[mk] = mv
  28629. }
  28630. }
  28631. dd.ReadMapEnd()
  28632. d.depthDecr()
  28633. return v, changed
  28634. }
  28635. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  28636. if rv.Kind() == reflect.Ptr {
  28637. vp := rv2i(rv).(*map[uintptr]bool)
  28638. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d)
  28639. if changed {
  28640. *vp = v
  28641. }
  28642. } else {
  28643. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  28644. }
  28645. }
  28646. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  28647. v, changed := f.DecMapUintptrBoolV(*vp, true, d)
  28648. if changed {
  28649. *vp = v
  28650. }
  28651. }
  28652. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  28653. d *Decoder) (_ map[uintptr]bool, changed bool) {
  28654. dd, esep := d.d, d.hh.hasElemSeparators()
  28655. containerLen := dd.ReadMapStart()
  28656. if canChange && v == nil {
  28657. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28658. v = make(map[uintptr]bool, xlen)
  28659. changed = true
  28660. }
  28661. if containerLen == 0 {
  28662. dd.ReadMapEnd()
  28663. return v, changed
  28664. }
  28665. d.depthIncr()
  28666. var mk uintptr
  28667. var mv bool
  28668. hasLen := containerLen > 0
  28669. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28670. if esep {
  28671. dd.ReadMapElemKey()
  28672. }
  28673. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28674. if esep {
  28675. dd.ReadMapElemValue()
  28676. }
  28677. if dd.TryDecodeAsNil() {
  28678. if v == nil {
  28679. } else if d.h.DeleteOnNilMapValue {
  28680. delete(v, mk)
  28681. } else {
  28682. v[mk] = false
  28683. }
  28684. continue
  28685. }
  28686. mv = dd.DecodeBool()
  28687. if v != nil {
  28688. v[mk] = mv
  28689. }
  28690. }
  28691. dd.ReadMapEnd()
  28692. d.depthDecr()
  28693. return v, changed
  28694. }
  28695. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  28696. if rv.Kind() == reflect.Ptr {
  28697. vp := rv2i(rv).(*map[int]interface{})
  28698. v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d)
  28699. if changed {
  28700. *vp = v
  28701. }
  28702. } else {
  28703. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  28704. }
  28705. }
  28706. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  28707. v, changed := f.DecMapIntIntfV(*vp, true, d)
  28708. if changed {
  28709. *vp = v
  28710. }
  28711. }
  28712. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  28713. d *Decoder) (_ map[int]interface{}, changed bool) {
  28714. dd, esep := d.d, d.hh.hasElemSeparators()
  28715. containerLen := dd.ReadMapStart()
  28716. if canChange && v == nil {
  28717. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28718. v = make(map[int]interface{}, xlen)
  28719. changed = true
  28720. }
  28721. if containerLen == 0 {
  28722. dd.ReadMapEnd()
  28723. return v, changed
  28724. }
  28725. d.depthIncr()
  28726. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  28727. var mk int
  28728. var mv interface{}
  28729. hasLen := containerLen > 0
  28730. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28731. if esep {
  28732. dd.ReadMapElemKey()
  28733. }
  28734. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28735. if esep {
  28736. dd.ReadMapElemValue()
  28737. }
  28738. if dd.TryDecodeAsNil() {
  28739. if v == nil {
  28740. } else if d.h.DeleteOnNilMapValue {
  28741. delete(v, mk)
  28742. } else {
  28743. v[mk] = nil
  28744. }
  28745. continue
  28746. }
  28747. if mapGet {
  28748. mv = v[mk]
  28749. } else {
  28750. mv = nil
  28751. }
  28752. d.decode(&mv)
  28753. if v != nil {
  28754. v[mk] = mv
  28755. }
  28756. }
  28757. dd.ReadMapEnd()
  28758. d.depthDecr()
  28759. return v, changed
  28760. }
  28761. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  28762. if rv.Kind() == reflect.Ptr {
  28763. vp := rv2i(rv).(*map[int]string)
  28764. v, changed := fastpathTV.DecMapIntStringV(*vp, true, d)
  28765. if changed {
  28766. *vp = v
  28767. }
  28768. } else {
  28769. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  28770. }
  28771. }
  28772. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  28773. v, changed := f.DecMapIntStringV(*vp, true, d)
  28774. if changed {
  28775. *vp = v
  28776. }
  28777. }
  28778. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  28779. d *Decoder) (_ map[int]string, changed bool) {
  28780. dd, esep := d.d, d.hh.hasElemSeparators()
  28781. containerLen := dd.ReadMapStart()
  28782. if canChange && v == nil {
  28783. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28784. v = make(map[int]string, xlen)
  28785. changed = true
  28786. }
  28787. if containerLen == 0 {
  28788. dd.ReadMapEnd()
  28789. return v, changed
  28790. }
  28791. d.depthIncr()
  28792. var mk int
  28793. var mv string
  28794. hasLen := containerLen > 0
  28795. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28796. if esep {
  28797. dd.ReadMapElemKey()
  28798. }
  28799. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28800. if esep {
  28801. dd.ReadMapElemValue()
  28802. }
  28803. if dd.TryDecodeAsNil() {
  28804. if v == nil {
  28805. } else if d.h.DeleteOnNilMapValue {
  28806. delete(v, mk)
  28807. } else {
  28808. v[mk] = ""
  28809. }
  28810. continue
  28811. }
  28812. mv = dd.DecodeString()
  28813. if v != nil {
  28814. v[mk] = mv
  28815. }
  28816. }
  28817. dd.ReadMapEnd()
  28818. d.depthDecr()
  28819. return v, changed
  28820. }
  28821. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  28822. if rv.Kind() == reflect.Ptr {
  28823. vp := rv2i(rv).(*map[int]uint)
  28824. v, changed := fastpathTV.DecMapIntUintV(*vp, true, d)
  28825. if changed {
  28826. *vp = v
  28827. }
  28828. } else {
  28829. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  28830. }
  28831. }
  28832. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  28833. v, changed := f.DecMapIntUintV(*vp, true, d)
  28834. if changed {
  28835. *vp = v
  28836. }
  28837. }
  28838. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  28839. d *Decoder) (_ map[int]uint, changed bool) {
  28840. dd, esep := d.d, d.hh.hasElemSeparators()
  28841. containerLen := dd.ReadMapStart()
  28842. if canChange && v == nil {
  28843. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28844. v = make(map[int]uint, xlen)
  28845. changed = true
  28846. }
  28847. if containerLen == 0 {
  28848. dd.ReadMapEnd()
  28849. return v, changed
  28850. }
  28851. d.depthIncr()
  28852. var mk int
  28853. var mv uint
  28854. hasLen := containerLen > 0
  28855. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28856. if esep {
  28857. dd.ReadMapElemKey()
  28858. }
  28859. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28860. if esep {
  28861. dd.ReadMapElemValue()
  28862. }
  28863. if dd.TryDecodeAsNil() {
  28864. if v == nil {
  28865. } else if d.h.DeleteOnNilMapValue {
  28866. delete(v, mk)
  28867. } else {
  28868. v[mk] = 0
  28869. }
  28870. continue
  28871. }
  28872. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28873. if v != nil {
  28874. v[mk] = mv
  28875. }
  28876. }
  28877. dd.ReadMapEnd()
  28878. d.depthDecr()
  28879. return v, changed
  28880. }
  28881. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  28882. if rv.Kind() == reflect.Ptr {
  28883. vp := rv2i(rv).(*map[int]uint8)
  28884. v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d)
  28885. if changed {
  28886. *vp = v
  28887. }
  28888. } else {
  28889. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  28890. }
  28891. }
  28892. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  28893. v, changed := f.DecMapIntUint8V(*vp, true, d)
  28894. if changed {
  28895. *vp = v
  28896. }
  28897. }
  28898. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  28899. d *Decoder) (_ map[int]uint8, changed bool) {
  28900. dd, esep := d.d, d.hh.hasElemSeparators()
  28901. containerLen := dd.ReadMapStart()
  28902. if canChange && v == nil {
  28903. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28904. v = make(map[int]uint8, xlen)
  28905. changed = true
  28906. }
  28907. if containerLen == 0 {
  28908. dd.ReadMapEnd()
  28909. return v, changed
  28910. }
  28911. d.depthIncr()
  28912. var mk int
  28913. var mv uint8
  28914. hasLen := containerLen > 0
  28915. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28916. if esep {
  28917. dd.ReadMapElemKey()
  28918. }
  28919. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28920. if esep {
  28921. dd.ReadMapElemValue()
  28922. }
  28923. if dd.TryDecodeAsNil() {
  28924. if v == nil {
  28925. } else if d.h.DeleteOnNilMapValue {
  28926. delete(v, mk)
  28927. } else {
  28928. v[mk] = 0
  28929. }
  28930. continue
  28931. }
  28932. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  28933. if v != nil {
  28934. v[mk] = mv
  28935. }
  28936. }
  28937. dd.ReadMapEnd()
  28938. d.depthDecr()
  28939. return v, changed
  28940. }
  28941. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  28942. if rv.Kind() == reflect.Ptr {
  28943. vp := rv2i(rv).(*map[int]uint16)
  28944. v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d)
  28945. if changed {
  28946. *vp = v
  28947. }
  28948. } else {
  28949. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  28950. }
  28951. }
  28952. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  28953. v, changed := f.DecMapIntUint16V(*vp, true, d)
  28954. if changed {
  28955. *vp = v
  28956. }
  28957. }
  28958. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  28959. d *Decoder) (_ map[int]uint16, changed bool) {
  28960. dd, esep := d.d, d.hh.hasElemSeparators()
  28961. containerLen := dd.ReadMapStart()
  28962. if canChange && v == nil {
  28963. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28964. v = make(map[int]uint16, xlen)
  28965. changed = true
  28966. }
  28967. if containerLen == 0 {
  28968. dd.ReadMapEnd()
  28969. return v, changed
  28970. }
  28971. d.depthIncr()
  28972. var mk int
  28973. var mv uint16
  28974. hasLen := containerLen > 0
  28975. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28976. if esep {
  28977. dd.ReadMapElemKey()
  28978. }
  28979. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28980. if esep {
  28981. dd.ReadMapElemValue()
  28982. }
  28983. if dd.TryDecodeAsNil() {
  28984. if v == nil {
  28985. } else if d.h.DeleteOnNilMapValue {
  28986. delete(v, mk)
  28987. } else {
  28988. v[mk] = 0
  28989. }
  28990. continue
  28991. }
  28992. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28993. if v != nil {
  28994. v[mk] = mv
  28995. }
  28996. }
  28997. dd.ReadMapEnd()
  28998. d.depthDecr()
  28999. return v, changed
  29000. }
  29001. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  29002. if rv.Kind() == reflect.Ptr {
  29003. vp := rv2i(rv).(*map[int]uint32)
  29004. v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d)
  29005. if changed {
  29006. *vp = v
  29007. }
  29008. } else {
  29009. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  29010. }
  29011. }
  29012. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  29013. v, changed := f.DecMapIntUint32V(*vp, true, d)
  29014. if changed {
  29015. *vp = v
  29016. }
  29017. }
  29018. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  29019. d *Decoder) (_ map[int]uint32, changed bool) {
  29020. dd, esep := d.d, d.hh.hasElemSeparators()
  29021. containerLen := dd.ReadMapStart()
  29022. if canChange && v == nil {
  29023. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29024. v = make(map[int]uint32, xlen)
  29025. changed = true
  29026. }
  29027. if containerLen == 0 {
  29028. dd.ReadMapEnd()
  29029. return v, changed
  29030. }
  29031. d.depthIncr()
  29032. var mk int
  29033. var mv uint32
  29034. hasLen := containerLen > 0
  29035. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29036. if esep {
  29037. dd.ReadMapElemKey()
  29038. }
  29039. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29040. if esep {
  29041. dd.ReadMapElemValue()
  29042. }
  29043. if dd.TryDecodeAsNil() {
  29044. if v == nil {
  29045. } else if d.h.DeleteOnNilMapValue {
  29046. delete(v, mk)
  29047. } else {
  29048. v[mk] = 0
  29049. }
  29050. continue
  29051. }
  29052. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  29053. if v != nil {
  29054. v[mk] = mv
  29055. }
  29056. }
  29057. dd.ReadMapEnd()
  29058. d.depthDecr()
  29059. return v, changed
  29060. }
  29061. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  29062. if rv.Kind() == reflect.Ptr {
  29063. vp := rv2i(rv).(*map[int]uint64)
  29064. v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d)
  29065. if changed {
  29066. *vp = v
  29067. }
  29068. } else {
  29069. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  29070. }
  29071. }
  29072. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  29073. v, changed := f.DecMapIntUint64V(*vp, true, d)
  29074. if changed {
  29075. *vp = v
  29076. }
  29077. }
  29078. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  29079. d *Decoder) (_ map[int]uint64, changed bool) {
  29080. dd, esep := d.d, d.hh.hasElemSeparators()
  29081. containerLen := dd.ReadMapStart()
  29082. if canChange && v == nil {
  29083. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29084. v = make(map[int]uint64, xlen)
  29085. changed = true
  29086. }
  29087. if containerLen == 0 {
  29088. dd.ReadMapEnd()
  29089. return v, changed
  29090. }
  29091. d.depthIncr()
  29092. var mk int
  29093. var mv uint64
  29094. hasLen := containerLen > 0
  29095. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29096. if esep {
  29097. dd.ReadMapElemKey()
  29098. }
  29099. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29100. if esep {
  29101. dd.ReadMapElemValue()
  29102. }
  29103. if dd.TryDecodeAsNil() {
  29104. if v == nil {
  29105. } else if d.h.DeleteOnNilMapValue {
  29106. delete(v, mk)
  29107. } else {
  29108. v[mk] = 0
  29109. }
  29110. continue
  29111. }
  29112. mv = dd.DecodeUint64()
  29113. if v != nil {
  29114. v[mk] = mv
  29115. }
  29116. }
  29117. dd.ReadMapEnd()
  29118. d.depthDecr()
  29119. return v, changed
  29120. }
  29121. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  29122. if rv.Kind() == reflect.Ptr {
  29123. vp := rv2i(rv).(*map[int]uintptr)
  29124. v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d)
  29125. if changed {
  29126. *vp = v
  29127. }
  29128. } else {
  29129. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  29130. }
  29131. }
  29132. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  29133. v, changed := f.DecMapIntUintptrV(*vp, true, d)
  29134. if changed {
  29135. *vp = v
  29136. }
  29137. }
  29138. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  29139. d *Decoder) (_ map[int]uintptr, changed bool) {
  29140. dd, esep := d.d, d.hh.hasElemSeparators()
  29141. containerLen := dd.ReadMapStart()
  29142. if canChange && v == nil {
  29143. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29144. v = make(map[int]uintptr, xlen)
  29145. changed = true
  29146. }
  29147. if containerLen == 0 {
  29148. dd.ReadMapEnd()
  29149. return v, changed
  29150. }
  29151. d.depthIncr()
  29152. var mk int
  29153. var mv uintptr
  29154. hasLen := containerLen > 0
  29155. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29156. if esep {
  29157. dd.ReadMapElemKey()
  29158. }
  29159. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29160. if esep {
  29161. dd.ReadMapElemValue()
  29162. }
  29163. if dd.TryDecodeAsNil() {
  29164. if v == nil {
  29165. } else if d.h.DeleteOnNilMapValue {
  29166. delete(v, mk)
  29167. } else {
  29168. v[mk] = 0
  29169. }
  29170. continue
  29171. }
  29172. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29173. if v != nil {
  29174. v[mk] = mv
  29175. }
  29176. }
  29177. dd.ReadMapEnd()
  29178. d.depthDecr()
  29179. return v, changed
  29180. }
  29181. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  29182. if rv.Kind() == reflect.Ptr {
  29183. vp := rv2i(rv).(*map[int]int)
  29184. v, changed := fastpathTV.DecMapIntIntV(*vp, true, d)
  29185. if changed {
  29186. *vp = v
  29187. }
  29188. } else {
  29189. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  29190. }
  29191. }
  29192. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  29193. v, changed := f.DecMapIntIntV(*vp, true, d)
  29194. if changed {
  29195. *vp = v
  29196. }
  29197. }
  29198. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  29199. d *Decoder) (_ map[int]int, changed bool) {
  29200. dd, esep := d.d, d.hh.hasElemSeparators()
  29201. containerLen := dd.ReadMapStart()
  29202. if canChange && v == nil {
  29203. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29204. v = make(map[int]int, xlen)
  29205. changed = true
  29206. }
  29207. if containerLen == 0 {
  29208. dd.ReadMapEnd()
  29209. return v, changed
  29210. }
  29211. d.depthIncr()
  29212. var mk int
  29213. var mv int
  29214. hasLen := containerLen > 0
  29215. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29216. if esep {
  29217. dd.ReadMapElemKey()
  29218. }
  29219. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29220. if esep {
  29221. dd.ReadMapElemValue()
  29222. }
  29223. if dd.TryDecodeAsNil() {
  29224. if v == nil {
  29225. } else if d.h.DeleteOnNilMapValue {
  29226. delete(v, mk)
  29227. } else {
  29228. v[mk] = 0
  29229. }
  29230. continue
  29231. }
  29232. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29233. if v != nil {
  29234. v[mk] = mv
  29235. }
  29236. }
  29237. dd.ReadMapEnd()
  29238. d.depthDecr()
  29239. return v, changed
  29240. }
  29241. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  29242. if rv.Kind() == reflect.Ptr {
  29243. vp := rv2i(rv).(*map[int]int8)
  29244. v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d)
  29245. if changed {
  29246. *vp = v
  29247. }
  29248. } else {
  29249. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  29250. }
  29251. }
  29252. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  29253. v, changed := f.DecMapIntInt8V(*vp, true, d)
  29254. if changed {
  29255. *vp = v
  29256. }
  29257. }
  29258. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  29259. d *Decoder) (_ map[int]int8, changed bool) {
  29260. dd, esep := d.d, d.hh.hasElemSeparators()
  29261. containerLen := dd.ReadMapStart()
  29262. if canChange && v == nil {
  29263. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29264. v = make(map[int]int8, xlen)
  29265. changed = true
  29266. }
  29267. if containerLen == 0 {
  29268. dd.ReadMapEnd()
  29269. return v, changed
  29270. }
  29271. d.depthIncr()
  29272. var mk int
  29273. var mv int8
  29274. hasLen := containerLen > 0
  29275. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29276. if esep {
  29277. dd.ReadMapElemKey()
  29278. }
  29279. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29280. if esep {
  29281. dd.ReadMapElemValue()
  29282. }
  29283. if dd.TryDecodeAsNil() {
  29284. if v == nil {
  29285. } else if d.h.DeleteOnNilMapValue {
  29286. delete(v, mk)
  29287. } else {
  29288. v[mk] = 0
  29289. }
  29290. continue
  29291. }
  29292. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29293. if v != nil {
  29294. v[mk] = mv
  29295. }
  29296. }
  29297. dd.ReadMapEnd()
  29298. d.depthDecr()
  29299. return v, changed
  29300. }
  29301. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  29302. if rv.Kind() == reflect.Ptr {
  29303. vp := rv2i(rv).(*map[int]int16)
  29304. v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d)
  29305. if changed {
  29306. *vp = v
  29307. }
  29308. } else {
  29309. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  29310. }
  29311. }
  29312. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  29313. v, changed := f.DecMapIntInt16V(*vp, true, d)
  29314. if changed {
  29315. *vp = v
  29316. }
  29317. }
  29318. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  29319. d *Decoder) (_ map[int]int16, changed bool) {
  29320. dd, esep := d.d, d.hh.hasElemSeparators()
  29321. containerLen := dd.ReadMapStart()
  29322. if canChange && v == nil {
  29323. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29324. v = make(map[int]int16, xlen)
  29325. changed = true
  29326. }
  29327. if containerLen == 0 {
  29328. dd.ReadMapEnd()
  29329. return v, changed
  29330. }
  29331. d.depthIncr()
  29332. var mk int
  29333. var mv int16
  29334. hasLen := containerLen > 0
  29335. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29336. if esep {
  29337. dd.ReadMapElemKey()
  29338. }
  29339. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29340. if esep {
  29341. dd.ReadMapElemValue()
  29342. }
  29343. if dd.TryDecodeAsNil() {
  29344. if v == nil {
  29345. } else if d.h.DeleteOnNilMapValue {
  29346. delete(v, mk)
  29347. } else {
  29348. v[mk] = 0
  29349. }
  29350. continue
  29351. }
  29352. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29353. if v != nil {
  29354. v[mk] = mv
  29355. }
  29356. }
  29357. dd.ReadMapEnd()
  29358. d.depthDecr()
  29359. return v, changed
  29360. }
  29361. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  29362. if rv.Kind() == reflect.Ptr {
  29363. vp := rv2i(rv).(*map[int]int32)
  29364. v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d)
  29365. if changed {
  29366. *vp = v
  29367. }
  29368. } else {
  29369. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  29370. }
  29371. }
  29372. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  29373. v, changed := f.DecMapIntInt32V(*vp, true, d)
  29374. if changed {
  29375. *vp = v
  29376. }
  29377. }
  29378. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  29379. d *Decoder) (_ map[int]int32, changed bool) {
  29380. dd, esep := d.d, d.hh.hasElemSeparators()
  29381. containerLen := dd.ReadMapStart()
  29382. if canChange && v == nil {
  29383. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29384. v = make(map[int]int32, xlen)
  29385. changed = true
  29386. }
  29387. if containerLen == 0 {
  29388. dd.ReadMapEnd()
  29389. return v, changed
  29390. }
  29391. d.depthIncr()
  29392. var mk int
  29393. var mv int32
  29394. hasLen := containerLen > 0
  29395. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29396. if esep {
  29397. dd.ReadMapElemKey()
  29398. }
  29399. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29400. if esep {
  29401. dd.ReadMapElemValue()
  29402. }
  29403. if dd.TryDecodeAsNil() {
  29404. if v == nil {
  29405. } else if d.h.DeleteOnNilMapValue {
  29406. delete(v, mk)
  29407. } else {
  29408. v[mk] = 0
  29409. }
  29410. continue
  29411. }
  29412. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  29413. if v != nil {
  29414. v[mk] = mv
  29415. }
  29416. }
  29417. dd.ReadMapEnd()
  29418. d.depthDecr()
  29419. return v, changed
  29420. }
  29421. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  29422. if rv.Kind() == reflect.Ptr {
  29423. vp := rv2i(rv).(*map[int]int64)
  29424. v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d)
  29425. if changed {
  29426. *vp = v
  29427. }
  29428. } else {
  29429. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  29430. }
  29431. }
  29432. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  29433. v, changed := f.DecMapIntInt64V(*vp, true, d)
  29434. if changed {
  29435. *vp = v
  29436. }
  29437. }
  29438. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  29439. d *Decoder) (_ map[int]int64, changed bool) {
  29440. dd, esep := d.d, d.hh.hasElemSeparators()
  29441. containerLen := dd.ReadMapStart()
  29442. if canChange && v == nil {
  29443. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29444. v = make(map[int]int64, xlen)
  29445. changed = true
  29446. }
  29447. if containerLen == 0 {
  29448. dd.ReadMapEnd()
  29449. return v, changed
  29450. }
  29451. d.depthIncr()
  29452. var mk int
  29453. var mv int64
  29454. hasLen := containerLen > 0
  29455. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29456. if esep {
  29457. dd.ReadMapElemKey()
  29458. }
  29459. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29460. if esep {
  29461. dd.ReadMapElemValue()
  29462. }
  29463. if dd.TryDecodeAsNil() {
  29464. if v == nil {
  29465. } else if d.h.DeleteOnNilMapValue {
  29466. delete(v, mk)
  29467. } else {
  29468. v[mk] = 0
  29469. }
  29470. continue
  29471. }
  29472. mv = dd.DecodeInt64()
  29473. if v != nil {
  29474. v[mk] = mv
  29475. }
  29476. }
  29477. dd.ReadMapEnd()
  29478. d.depthDecr()
  29479. return v, changed
  29480. }
  29481. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  29482. if rv.Kind() == reflect.Ptr {
  29483. vp := rv2i(rv).(*map[int]float32)
  29484. v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d)
  29485. if changed {
  29486. *vp = v
  29487. }
  29488. } else {
  29489. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  29490. }
  29491. }
  29492. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  29493. v, changed := f.DecMapIntFloat32V(*vp, true, d)
  29494. if changed {
  29495. *vp = v
  29496. }
  29497. }
  29498. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  29499. d *Decoder) (_ map[int]float32, changed bool) {
  29500. dd, esep := d.d, d.hh.hasElemSeparators()
  29501. containerLen := dd.ReadMapStart()
  29502. if canChange && v == nil {
  29503. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29504. v = make(map[int]float32, xlen)
  29505. changed = true
  29506. }
  29507. if containerLen == 0 {
  29508. dd.ReadMapEnd()
  29509. return v, changed
  29510. }
  29511. d.depthIncr()
  29512. var mk int
  29513. var mv float32
  29514. hasLen := containerLen > 0
  29515. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29516. if esep {
  29517. dd.ReadMapElemKey()
  29518. }
  29519. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29520. if esep {
  29521. dd.ReadMapElemValue()
  29522. }
  29523. if dd.TryDecodeAsNil() {
  29524. if v == nil {
  29525. } else if d.h.DeleteOnNilMapValue {
  29526. delete(v, mk)
  29527. } else {
  29528. v[mk] = 0
  29529. }
  29530. continue
  29531. }
  29532. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  29533. if v != nil {
  29534. v[mk] = mv
  29535. }
  29536. }
  29537. dd.ReadMapEnd()
  29538. d.depthDecr()
  29539. return v, changed
  29540. }
  29541. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  29542. if rv.Kind() == reflect.Ptr {
  29543. vp := rv2i(rv).(*map[int]float64)
  29544. v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d)
  29545. if changed {
  29546. *vp = v
  29547. }
  29548. } else {
  29549. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  29550. }
  29551. }
  29552. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  29553. v, changed := f.DecMapIntFloat64V(*vp, true, d)
  29554. if changed {
  29555. *vp = v
  29556. }
  29557. }
  29558. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  29559. d *Decoder) (_ map[int]float64, changed bool) {
  29560. dd, esep := d.d, d.hh.hasElemSeparators()
  29561. containerLen := dd.ReadMapStart()
  29562. if canChange && v == nil {
  29563. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29564. v = make(map[int]float64, xlen)
  29565. changed = true
  29566. }
  29567. if containerLen == 0 {
  29568. dd.ReadMapEnd()
  29569. return v, changed
  29570. }
  29571. d.depthIncr()
  29572. var mk int
  29573. var mv float64
  29574. hasLen := containerLen > 0
  29575. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29576. if esep {
  29577. dd.ReadMapElemKey()
  29578. }
  29579. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29580. if esep {
  29581. dd.ReadMapElemValue()
  29582. }
  29583. if dd.TryDecodeAsNil() {
  29584. if v == nil {
  29585. } else if d.h.DeleteOnNilMapValue {
  29586. delete(v, mk)
  29587. } else {
  29588. v[mk] = 0
  29589. }
  29590. continue
  29591. }
  29592. mv = dd.DecodeFloat64()
  29593. if v != nil {
  29594. v[mk] = mv
  29595. }
  29596. }
  29597. dd.ReadMapEnd()
  29598. d.depthDecr()
  29599. return v, changed
  29600. }
  29601. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  29602. if rv.Kind() == reflect.Ptr {
  29603. vp := rv2i(rv).(*map[int]bool)
  29604. v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d)
  29605. if changed {
  29606. *vp = v
  29607. }
  29608. } else {
  29609. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  29610. }
  29611. }
  29612. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  29613. v, changed := f.DecMapIntBoolV(*vp, true, d)
  29614. if changed {
  29615. *vp = v
  29616. }
  29617. }
  29618. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  29619. d *Decoder) (_ map[int]bool, changed bool) {
  29620. dd, esep := d.d, d.hh.hasElemSeparators()
  29621. containerLen := dd.ReadMapStart()
  29622. if canChange && v == nil {
  29623. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29624. v = make(map[int]bool, xlen)
  29625. changed = true
  29626. }
  29627. if containerLen == 0 {
  29628. dd.ReadMapEnd()
  29629. return v, changed
  29630. }
  29631. d.depthIncr()
  29632. var mk int
  29633. var mv bool
  29634. hasLen := containerLen > 0
  29635. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29636. if esep {
  29637. dd.ReadMapElemKey()
  29638. }
  29639. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29640. if esep {
  29641. dd.ReadMapElemValue()
  29642. }
  29643. if dd.TryDecodeAsNil() {
  29644. if v == nil {
  29645. } else if d.h.DeleteOnNilMapValue {
  29646. delete(v, mk)
  29647. } else {
  29648. v[mk] = false
  29649. }
  29650. continue
  29651. }
  29652. mv = dd.DecodeBool()
  29653. if v != nil {
  29654. v[mk] = mv
  29655. }
  29656. }
  29657. dd.ReadMapEnd()
  29658. d.depthDecr()
  29659. return v, changed
  29660. }
  29661. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  29662. if rv.Kind() == reflect.Ptr {
  29663. vp := rv2i(rv).(*map[int8]interface{})
  29664. v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d)
  29665. if changed {
  29666. *vp = v
  29667. }
  29668. } else {
  29669. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  29670. }
  29671. }
  29672. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  29673. v, changed := f.DecMapInt8IntfV(*vp, true, d)
  29674. if changed {
  29675. *vp = v
  29676. }
  29677. }
  29678. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  29679. d *Decoder) (_ map[int8]interface{}, changed bool) {
  29680. dd, esep := d.d, d.hh.hasElemSeparators()
  29681. containerLen := dd.ReadMapStart()
  29682. if canChange && v == nil {
  29683. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29684. v = make(map[int8]interface{}, xlen)
  29685. changed = true
  29686. }
  29687. if containerLen == 0 {
  29688. dd.ReadMapEnd()
  29689. return v, changed
  29690. }
  29691. d.depthIncr()
  29692. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  29693. var mk int8
  29694. var mv interface{}
  29695. hasLen := containerLen > 0
  29696. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29697. if esep {
  29698. dd.ReadMapElemKey()
  29699. }
  29700. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29701. if esep {
  29702. dd.ReadMapElemValue()
  29703. }
  29704. if dd.TryDecodeAsNil() {
  29705. if v == nil {
  29706. } else if d.h.DeleteOnNilMapValue {
  29707. delete(v, mk)
  29708. } else {
  29709. v[mk] = nil
  29710. }
  29711. continue
  29712. }
  29713. if mapGet {
  29714. mv = v[mk]
  29715. } else {
  29716. mv = nil
  29717. }
  29718. d.decode(&mv)
  29719. if v != nil {
  29720. v[mk] = mv
  29721. }
  29722. }
  29723. dd.ReadMapEnd()
  29724. d.depthDecr()
  29725. return v, changed
  29726. }
  29727. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  29728. if rv.Kind() == reflect.Ptr {
  29729. vp := rv2i(rv).(*map[int8]string)
  29730. v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d)
  29731. if changed {
  29732. *vp = v
  29733. }
  29734. } else {
  29735. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  29736. }
  29737. }
  29738. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  29739. v, changed := f.DecMapInt8StringV(*vp, true, d)
  29740. if changed {
  29741. *vp = v
  29742. }
  29743. }
  29744. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  29745. d *Decoder) (_ map[int8]string, changed bool) {
  29746. dd, esep := d.d, d.hh.hasElemSeparators()
  29747. containerLen := dd.ReadMapStart()
  29748. if canChange && v == nil {
  29749. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29750. v = make(map[int8]string, xlen)
  29751. changed = true
  29752. }
  29753. if containerLen == 0 {
  29754. dd.ReadMapEnd()
  29755. return v, changed
  29756. }
  29757. d.depthIncr()
  29758. var mk int8
  29759. var mv string
  29760. hasLen := containerLen > 0
  29761. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29762. if esep {
  29763. dd.ReadMapElemKey()
  29764. }
  29765. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29766. if esep {
  29767. dd.ReadMapElemValue()
  29768. }
  29769. if dd.TryDecodeAsNil() {
  29770. if v == nil {
  29771. } else if d.h.DeleteOnNilMapValue {
  29772. delete(v, mk)
  29773. } else {
  29774. v[mk] = ""
  29775. }
  29776. continue
  29777. }
  29778. mv = dd.DecodeString()
  29779. if v != nil {
  29780. v[mk] = mv
  29781. }
  29782. }
  29783. dd.ReadMapEnd()
  29784. d.depthDecr()
  29785. return v, changed
  29786. }
  29787. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  29788. if rv.Kind() == reflect.Ptr {
  29789. vp := rv2i(rv).(*map[int8]uint)
  29790. v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d)
  29791. if changed {
  29792. *vp = v
  29793. }
  29794. } else {
  29795. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  29796. }
  29797. }
  29798. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  29799. v, changed := f.DecMapInt8UintV(*vp, true, d)
  29800. if changed {
  29801. *vp = v
  29802. }
  29803. }
  29804. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  29805. d *Decoder) (_ map[int8]uint, changed bool) {
  29806. dd, esep := d.d, d.hh.hasElemSeparators()
  29807. containerLen := dd.ReadMapStart()
  29808. if canChange && v == nil {
  29809. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29810. v = make(map[int8]uint, xlen)
  29811. changed = true
  29812. }
  29813. if containerLen == 0 {
  29814. dd.ReadMapEnd()
  29815. return v, changed
  29816. }
  29817. d.depthIncr()
  29818. var mk int8
  29819. var mv uint
  29820. hasLen := containerLen > 0
  29821. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29822. if esep {
  29823. dd.ReadMapElemKey()
  29824. }
  29825. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29826. if esep {
  29827. dd.ReadMapElemValue()
  29828. }
  29829. if dd.TryDecodeAsNil() {
  29830. if v == nil {
  29831. } else if d.h.DeleteOnNilMapValue {
  29832. delete(v, mk)
  29833. } else {
  29834. v[mk] = 0
  29835. }
  29836. continue
  29837. }
  29838. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29839. if v != nil {
  29840. v[mk] = mv
  29841. }
  29842. }
  29843. dd.ReadMapEnd()
  29844. d.depthDecr()
  29845. return v, changed
  29846. }
  29847. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  29848. if rv.Kind() == reflect.Ptr {
  29849. vp := rv2i(rv).(*map[int8]uint8)
  29850. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d)
  29851. if changed {
  29852. *vp = v
  29853. }
  29854. } else {
  29855. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  29856. }
  29857. }
  29858. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  29859. v, changed := f.DecMapInt8Uint8V(*vp, true, d)
  29860. if changed {
  29861. *vp = v
  29862. }
  29863. }
  29864. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  29865. d *Decoder) (_ map[int8]uint8, changed bool) {
  29866. dd, esep := d.d, d.hh.hasElemSeparators()
  29867. containerLen := dd.ReadMapStart()
  29868. if canChange && v == nil {
  29869. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29870. v = make(map[int8]uint8, xlen)
  29871. changed = true
  29872. }
  29873. if containerLen == 0 {
  29874. dd.ReadMapEnd()
  29875. return v, changed
  29876. }
  29877. d.depthIncr()
  29878. var mk int8
  29879. var mv uint8
  29880. hasLen := containerLen > 0
  29881. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29882. if esep {
  29883. dd.ReadMapElemKey()
  29884. }
  29885. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29886. if esep {
  29887. dd.ReadMapElemValue()
  29888. }
  29889. if dd.TryDecodeAsNil() {
  29890. if v == nil {
  29891. } else if d.h.DeleteOnNilMapValue {
  29892. delete(v, mk)
  29893. } else {
  29894. v[mk] = 0
  29895. }
  29896. continue
  29897. }
  29898. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  29899. if v != nil {
  29900. v[mk] = mv
  29901. }
  29902. }
  29903. dd.ReadMapEnd()
  29904. d.depthDecr()
  29905. return v, changed
  29906. }
  29907. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  29908. if rv.Kind() == reflect.Ptr {
  29909. vp := rv2i(rv).(*map[int8]uint16)
  29910. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d)
  29911. if changed {
  29912. *vp = v
  29913. }
  29914. } else {
  29915. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  29916. }
  29917. }
  29918. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  29919. v, changed := f.DecMapInt8Uint16V(*vp, true, d)
  29920. if changed {
  29921. *vp = v
  29922. }
  29923. }
  29924. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  29925. d *Decoder) (_ map[int8]uint16, changed bool) {
  29926. dd, esep := d.d, d.hh.hasElemSeparators()
  29927. containerLen := dd.ReadMapStart()
  29928. if canChange && v == nil {
  29929. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29930. v = make(map[int8]uint16, xlen)
  29931. changed = true
  29932. }
  29933. if containerLen == 0 {
  29934. dd.ReadMapEnd()
  29935. return v, changed
  29936. }
  29937. d.depthIncr()
  29938. var mk int8
  29939. var mv uint16
  29940. hasLen := containerLen > 0
  29941. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29942. if esep {
  29943. dd.ReadMapElemKey()
  29944. }
  29945. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29946. if esep {
  29947. dd.ReadMapElemValue()
  29948. }
  29949. if dd.TryDecodeAsNil() {
  29950. if v == nil {
  29951. } else if d.h.DeleteOnNilMapValue {
  29952. delete(v, mk)
  29953. } else {
  29954. v[mk] = 0
  29955. }
  29956. continue
  29957. }
  29958. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  29959. if v != nil {
  29960. v[mk] = mv
  29961. }
  29962. }
  29963. dd.ReadMapEnd()
  29964. d.depthDecr()
  29965. return v, changed
  29966. }
  29967. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  29968. if rv.Kind() == reflect.Ptr {
  29969. vp := rv2i(rv).(*map[int8]uint32)
  29970. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d)
  29971. if changed {
  29972. *vp = v
  29973. }
  29974. } else {
  29975. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  29976. }
  29977. }
  29978. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  29979. v, changed := f.DecMapInt8Uint32V(*vp, true, d)
  29980. if changed {
  29981. *vp = v
  29982. }
  29983. }
  29984. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  29985. d *Decoder) (_ map[int8]uint32, changed bool) {
  29986. dd, esep := d.d, d.hh.hasElemSeparators()
  29987. containerLen := dd.ReadMapStart()
  29988. if canChange && v == nil {
  29989. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29990. v = make(map[int8]uint32, xlen)
  29991. changed = true
  29992. }
  29993. if containerLen == 0 {
  29994. dd.ReadMapEnd()
  29995. return v, changed
  29996. }
  29997. d.depthIncr()
  29998. var mk int8
  29999. var mv uint32
  30000. hasLen := containerLen > 0
  30001. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30002. if esep {
  30003. dd.ReadMapElemKey()
  30004. }
  30005. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30006. if esep {
  30007. dd.ReadMapElemValue()
  30008. }
  30009. if dd.TryDecodeAsNil() {
  30010. if v == nil {
  30011. } else if d.h.DeleteOnNilMapValue {
  30012. delete(v, mk)
  30013. } else {
  30014. v[mk] = 0
  30015. }
  30016. continue
  30017. }
  30018. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30019. if v != nil {
  30020. v[mk] = mv
  30021. }
  30022. }
  30023. dd.ReadMapEnd()
  30024. d.depthDecr()
  30025. return v, changed
  30026. }
  30027. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  30028. if rv.Kind() == reflect.Ptr {
  30029. vp := rv2i(rv).(*map[int8]uint64)
  30030. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d)
  30031. if changed {
  30032. *vp = v
  30033. }
  30034. } else {
  30035. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  30036. }
  30037. }
  30038. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  30039. v, changed := f.DecMapInt8Uint64V(*vp, true, d)
  30040. if changed {
  30041. *vp = v
  30042. }
  30043. }
  30044. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  30045. d *Decoder) (_ map[int8]uint64, changed bool) {
  30046. dd, esep := d.d, d.hh.hasElemSeparators()
  30047. containerLen := dd.ReadMapStart()
  30048. if canChange && v == nil {
  30049. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30050. v = make(map[int8]uint64, xlen)
  30051. changed = true
  30052. }
  30053. if containerLen == 0 {
  30054. dd.ReadMapEnd()
  30055. return v, changed
  30056. }
  30057. d.depthIncr()
  30058. var mk int8
  30059. var mv uint64
  30060. hasLen := containerLen > 0
  30061. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30062. if esep {
  30063. dd.ReadMapElemKey()
  30064. }
  30065. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30066. if esep {
  30067. dd.ReadMapElemValue()
  30068. }
  30069. if dd.TryDecodeAsNil() {
  30070. if v == nil {
  30071. } else if d.h.DeleteOnNilMapValue {
  30072. delete(v, mk)
  30073. } else {
  30074. v[mk] = 0
  30075. }
  30076. continue
  30077. }
  30078. mv = dd.DecodeUint64()
  30079. if v != nil {
  30080. v[mk] = mv
  30081. }
  30082. }
  30083. dd.ReadMapEnd()
  30084. d.depthDecr()
  30085. return v, changed
  30086. }
  30087. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  30088. if rv.Kind() == reflect.Ptr {
  30089. vp := rv2i(rv).(*map[int8]uintptr)
  30090. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d)
  30091. if changed {
  30092. *vp = v
  30093. }
  30094. } else {
  30095. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  30096. }
  30097. }
  30098. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  30099. v, changed := f.DecMapInt8UintptrV(*vp, true, d)
  30100. if changed {
  30101. *vp = v
  30102. }
  30103. }
  30104. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  30105. d *Decoder) (_ map[int8]uintptr, changed bool) {
  30106. dd, esep := d.d, d.hh.hasElemSeparators()
  30107. containerLen := dd.ReadMapStart()
  30108. if canChange && v == nil {
  30109. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30110. v = make(map[int8]uintptr, xlen)
  30111. changed = true
  30112. }
  30113. if containerLen == 0 {
  30114. dd.ReadMapEnd()
  30115. return v, changed
  30116. }
  30117. d.depthIncr()
  30118. var mk int8
  30119. var mv uintptr
  30120. hasLen := containerLen > 0
  30121. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30122. if esep {
  30123. dd.ReadMapElemKey()
  30124. }
  30125. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30126. if esep {
  30127. dd.ReadMapElemValue()
  30128. }
  30129. if dd.TryDecodeAsNil() {
  30130. if v == nil {
  30131. } else if d.h.DeleteOnNilMapValue {
  30132. delete(v, mk)
  30133. } else {
  30134. v[mk] = 0
  30135. }
  30136. continue
  30137. }
  30138. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30139. if v != nil {
  30140. v[mk] = mv
  30141. }
  30142. }
  30143. dd.ReadMapEnd()
  30144. d.depthDecr()
  30145. return v, changed
  30146. }
  30147. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  30148. if rv.Kind() == reflect.Ptr {
  30149. vp := rv2i(rv).(*map[int8]int)
  30150. v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d)
  30151. if changed {
  30152. *vp = v
  30153. }
  30154. } else {
  30155. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  30156. }
  30157. }
  30158. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  30159. v, changed := f.DecMapInt8IntV(*vp, true, d)
  30160. if changed {
  30161. *vp = v
  30162. }
  30163. }
  30164. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  30165. d *Decoder) (_ map[int8]int, changed bool) {
  30166. dd, esep := d.d, d.hh.hasElemSeparators()
  30167. containerLen := dd.ReadMapStart()
  30168. if canChange && v == nil {
  30169. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30170. v = make(map[int8]int, xlen)
  30171. changed = true
  30172. }
  30173. if containerLen == 0 {
  30174. dd.ReadMapEnd()
  30175. return v, changed
  30176. }
  30177. d.depthIncr()
  30178. var mk int8
  30179. var mv int
  30180. hasLen := containerLen > 0
  30181. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30182. if esep {
  30183. dd.ReadMapElemKey()
  30184. }
  30185. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30186. if esep {
  30187. dd.ReadMapElemValue()
  30188. }
  30189. if dd.TryDecodeAsNil() {
  30190. if v == nil {
  30191. } else if d.h.DeleteOnNilMapValue {
  30192. delete(v, mk)
  30193. } else {
  30194. v[mk] = 0
  30195. }
  30196. continue
  30197. }
  30198. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  30199. if v != nil {
  30200. v[mk] = mv
  30201. }
  30202. }
  30203. dd.ReadMapEnd()
  30204. d.depthDecr()
  30205. return v, changed
  30206. }
  30207. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  30208. if rv.Kind() == reflect.Ptr {
  30209. vp := rv2i(rv).(*map[int8]int8)
  30210. v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d)
  30211. if changed {
  30212. *vp = v
  30213. }
  30214. } else {
  30215. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  30216. }
  30217. }
  30218. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  30219. v, changed := f.DecMapInt8Int8V(*vp, true, d)
  30220. if changed {
  30221. *vp = v
  30222. }
  30223. }
  30224. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  30225. d *Decoder) (_ map[int8]int8, changed bool) {
  30226. dd, esep := d.d, d.hh.hasElemSeparators()
  30227. containerLen := dd.ReadMapStart()
  30228. if canChange && v == nil {
  30229. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30230. v = make(map[int8]int8, xlen)
  30231. changed = true
  30232. }
  30233. if containerLen == 0 {
  30234. dd.ReadMapEnd()
  30235. return v, changed
  30236. }
  30237. d.depthIncr()
  30238. var mk int8
  30239. var mv int8
  30240. hasLen := containerLen > 0
  30241. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30242. if esep {
  30243. dd.ReadMapElemKey()
  30244. }
  30245. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30246. if esep {
  30247. dd.ReadMapElemValue()
  30248. }
  30249. if dd.TryDecodeAsNil() {
  30250. if v == nil {
  30251. } else if d.h.DeleteOnNilMapValue {
  30252. delete(v, mk)
  30253. } else {
  30254. v[mk] = 0
  30255. }
  30256. continue
  30257. }
  30258. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30259. if v != nil {
  30260. v[mk] = mv
  30261. }
  30262. }
  30263. dd.ReadMapEnd()
  30264. d.depthDecr()
  30265. return v, changed
  30266. }
  30267. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  30268. if rv.Kind() == reflect.Ptr {
  30269. vp := rv2i(rv).(*map[int8]int16)
  30270. v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d)
  30271. if changed {
  30272. *vp = v
  30273. }
  30274. } else {
  30275. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  30276. }
  30277. }
  30278. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  30279. v, changed := f.DecMapInt8Int16V(*vp, true, d)
  30280. if changed {
  30281. *vp = v
  30282. }
  30283. }
  30284. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  30285. d *Decoder) (_ map[int8]int16, changed bool) {
  30286. dd, esep := d.d, d.hh.hasElemSeparators()
  30287. containerLen := dd.ReadMapStart()
  30288. if canChange && v == nil {
  30289. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30290. v = make(map[int8]int16, xlen)
  30291. changed = true
  30292. }
  30293. if containerLen == 0 {
  30294. dd.ReadMapEnd()
  30295. return v, changed
  30296. }
  30297. d.depthIncr()
  30298. var mk int8
  30299. var mv int16
  30300. hasLen := containerLen > 0
  30301. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30302. if esep {
  30303. dd.ReadMapElemKey()
  30304. }
  30305. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30306. if esep {
  30307. dd.ReadMapElemValue()
  30308. }
  30309. if dd.TryDecodeAsNil() {
  30310. if v == nil {
  30311. } else if d.h.DeleteOnNilMapValue {
  30312. delete(v, mk)
  30313. } else {
  30314. v[mk] = 0
  30315. }
  30316. continue
  30317. }
  30318. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30319. if v != nil {
  30320. v[mk] = mv
  30321. }
  30322. }
  30323. dd.ReadMapEnd()
  30324. d.depthDecr()
  30325. return v, changed
  30326. }
  30327. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  30328. if rv.Kind() == reflect.Ptr {
  30329. vp := rv2i(rv).(*map[int8]int32)
  30330. v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d)
  30331. if changed {
  30332. *vp = v
  30333. }
  30334. } else {
  30335. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  30336. }
  30337. }
  30338. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  30339. v, changed := f.DecMapInt8Int32V(*vp, true, d)
  30340. if changed {
  30341. *vp = v
  30342. }
  30343. }
  30344. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  30345. d *Decoder) (_ map[int8]int32, changed bool) {
  30346. dd, esep := d.d, d.hh.hasElemSeparators()
  30347. containerLen := dd.ReadMapStart()
  30348. if canChange && v == nil {
  30349. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30350. v = make(map[int8]int32, xlen)
  30351. changed = true
  30352. }
  30353. if containerLen == 0 {
  30354. dd.ReadMapEnd()
  30355. return v, changed
  30356. }
  30357. d.depthIncr()
  30358. var mk int8
  30359. var mv int32
  30360. hasLen := containerLen > 0
  30361. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30362. if esep {
  30363. dd.ReadMapElemKey()
  30364. }
  30365. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30366. if esep {
  30367. dd.ReadMapElemValue()
  30368. }
  30369. if dd.TryDecodeAsNil() {
  30370. if v == nil {
  30371. } else if d.h.DeleteOnNilMapValue {
  30372. delete(v, mk)
  30373. } else {
  30374. v[mk] = 0
  30375. }
  30376. continue
  30377. }
  30378. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30379. if v != nil {
  30380. v[mk] = mv
  30381. }
  30382. }
  30383. dd.ReadMapEnd()
  30384. d.depthDecr()
  30385. return v, changed
  30386. }
  30387. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  30388. if rv.Kind() == reflect.Ptr {
  30389. vp := rv2i(rv).(*map[int8]int64)
  30390. v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d)
  30391. if changed {
  30392. *vp = v
  30393. }
  30394. } else {
  30395. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  30396. }
  30397. }
  30398. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  30399. v, changed := f.DecMapInt8Int64V(*vp, true, d)
  30400. if changed {
  30401. *vp = v
  30402. }
  30403. }
  30404. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  30405. d *Decoder) (_ map[int8]int64, changed bool) {
  30406. dd, esep := d.d, d.hh.hasElemSeparators()
  30407. containerLen := dd.ReadMapStart()
  30408. if canChange && v == nil {
  30409. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30410. v = make(map[int8]int64, xlen)
  30411. changed = true
  30412. }
  30413. if containerLen == 0 {
  30414. dd.ReadMapEnd()
  30415. return v, changed
  30416. }
  30417. d.depthIncr()
  30418. var mk int8
  30419. var mv int64
  30420. hasLen := containerLen > 0
  30421. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30422. if esep {
  30423. dd.ReadMapElemKey()
  30424. }
  30425. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30426. if esep {
  30427. dd.ReadMapElemValue()
  30428. }
  30429. if dd.TryDecodeAsNil() {
  30430. if v == nil {
  30431. } else if d.h.DeleteOnNilMapValue {
  30432. delete(v, mk)
  30433. } else {
  30434. v[mk] = 0
  30435. }
  30436. continue
  30437. }
  30438. mv = dd.DecodeInt64()
  30439. if v != nil {
  30440. v[mk] = mv
  30441. }
  30442. }
  30443. dd.ReadMapEnd()
  30444. d.depthDecr()
  30445. return v, changed
  30446. }
  30447. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  30448. if rv.Kind() == reflect.Ptr {
  30449. vp := rv2i(rv).(*map[int8]float32)
  30450. v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d)
  30451. if changed {
  30452. *vp = v
  30453. }
  30454. } else {
  30455. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  30456. }
  30457. }
  30458. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  30459. v, changed := f.DecMapInt8Float32V(*vp, true, d)
  30460. if changed {
  30461. *vp = v
  30462. }
  30463. }
  30464. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  30465. d *Decoder) (_ map[int8]float32, changed bool) {
  30466. dd, esep := d.d, d.hh.hasElemSeparators()
  30467. containerLen := dd.ReadMapStart()
  30468. if canChange && v == nil {
  30469. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30470. v = make(map[int8]float32, xlen)
  30471. changed = true
  30472. }
  30473. if containerLen == 0 {
  30474. dd.ReadMapEnd()
  30475. return v, changed
  30476. }
  30477. d.depthIncr()
  30478. var mk int8
  30479. var mv float32
  30480. hasLen := containerLen > 0
  30481. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30482. if esep {
  30483. dd.ReadMapElemKey()
  30484. }
  30485. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30486. if esep {
  30487. dd.ReadMapElemValue()
  30488. }
  30489. if dd.TryDecodeAsNil() {
  30490. if v == nil {
  30491. } else if d.h.DeleteOnNilMapValue {
  30492. delete(v, mk)
  30493. } else {
  30494. v[mk] = 0
  30495. }
  30496. continue
  30497. }
  30498. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  30499. if v != nil {
  30500. v[mk] = mv
  30501. }
  30502. }
  30503. dd.ReadMapEnd()
  30504. d.depthDecr()
  30505. return v, changed
  30506. }
  30507. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  30508. if rv.Kind() == reflect.Ptr {
  30509. vp := rv2i(rv).(*map[int8]float64)
  30510. v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d)
  30511. if changed {
  30512. *vp = v
  30513. }
  30514. } else {
  30515. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  30516. }
  30517. }
  30518. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  30519. v, changed := f.DecMapInt8Float64V(*vp, true, d)
  30520. if changed {
  30521. *vp = v
  30522. }
  30523. }
  30524. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  30525. d *Decoder) (_ map[int8]float64, changed bool) {
  30526. dd, esep := d.d, d.hh.hasElemSeparators()
  30527. containerLen := dd.ReadMapStart()
  30528. if canChange && v == nil {
  30529. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30530. v = make(map[int8]float64, xlen)
  30531. changed = true
  30532. }
  30533. if containerLen == 0 {
  30534. dd.ReadMapEnd()
  30535. return v, changed
  30536. }
  30537. d.depthIncr()
  30538. var mk int8
  30539. var mv float64
  30540. hasLen := containerLen > 0
  30541. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30542. if esep {
  30543. dd.ReadMapElemKey()
  30544. }
  30545. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30546. if esep {
  30547. dd.ReadMapElemValue()
  30548. }
  30549. if dd.TryDecodeAsNil() {
  30550. if v == nil {
  30551. } else if d.h.DeleteOnNilMapValue {
  30552. delete(v, mk)
  30553. } else {
  30554. v[mk] = 0
  30555. }
  30556. continue
  30557. }
  30558. mv = dd.DecodeFloat64()
  30559. if v != nil {
  30560. v[mk] = mv
  30561. }
  30562. }
  30563. dd.ReadMapEnd()
  30564. d.depthDecr()
  30565. return v, changed
  30566. }
  30567. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  30568. if rv.Kind() == reflect.Ptr {
  30569. vp := rv2i(rv).(*map[int8]bool)
  30570. v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d)
  30571. if changed {
  30572. *vp = v
  30573. }
  30574. } else {
  30575. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  30576. }
  30577. }
  30578. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  30579. v, changed := f.DecMapInt8BoolV(*vp, true, d)
  30580. if changed {
  30581. *vp = v
  30582. }
  30583. }
  30584. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  30585. d *Decoder) (_ map[int8]bool, changed bool) {
  30586. dd, esep := d.d, d.hh.hasElemSeparators()
  30587. containerLen := dd.ReadMapStart()
  30588. if canChange && v == nil {
  30589. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30590. v = make(map[int8]bool, xlen)
  30591. changed = true
  30592. }
  30593. if containerLen == 0 {
  30594. dd.ReadMapEnd()
  30595. return v, changed
  30596. }
  30597. d.depthIncr()
  30598. var mk int8
  30599. var mv bool
  30600. hasLen := containerLen > 0
  30601. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30602. if esep {
  30603. dd.ReadMapElemKey()
  30604. }
  30605. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30606. if esep {
  30607. dd.ReadMapElemValue()
  30608. }
  30609. if dd.TryDecodeAsNil() {
  30610. if v == nil {
  30611. } else if d.h.DeleteOnNilMapValue {
  30612. delete(v, mk)
  30613. } else {
  30614. v[mk] = false
  30615. }
  30616. continue
  30617. }
  30618. mv = dd.DecodeBool()
  30619. if v != nil {
  30620. v[mk] = mv
  30621. }
  30622. }
  30623. dd.ReadMapEnd()
  30624. d.depthDecr()
  30625. return v, changed
  30626. }
  30627. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  30628. if rv.Kind() == reflect.Ptr {
  30629. vp := rv2i(rv).(*map[int16]interface{})
  30630. v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d)
  30631. if changed {
  30632. *vp = v
  30633. }
  30634. } else {
  30635. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  30636. }
  30637. }
  30638. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  30639. v, changed := f.DecMapInt16IntfV(*vp, true, d)
  30640. if changed {
  30641. *vp = v
  30642. }
  30643. }
  30644. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  30645. d *Decoder) (_ map[int16]interface{}, changed bool) {
  30646. dd, esep := d.d, d.hh.hasElemSeparators()
  30647. containerLen := dd.ReadMapStart()
  30648. if canChange && v == nil {
  30649. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30650. v = make(map[int16]interface{}, xlen)
  30651. changed = true
  30652. }
  30653. if containerLen == 0 {
  30654. dd.ReadMapEnd()
  30655. return v, changed
  30656. }
  30657. d.depthIncr()
  30658. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  30659. var mk int16
  30660. var mv interface{}
  30661. hasLen := containerLen > 0
  30662. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30663. if esep {
  30664. dd.ReadMapElemKey()
  30665. }
  30666. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30667. if esep {
  30668. dd.ReadMapElemValue()
  30669. }
  30670. if dd.TryDecodeAsNil() {
  30671. if v == nil {
  30672. } else if d.h.DeleteOnNilMapValue {
  30673. delete(v, mk)
  30674. } else {
  30675. v[mk] = nil
  30676. }
  30677. continue
  30678. }
  30679. if mapGet {
  30680. mv = v[mk]
  30681. } else {
  30682. mv = nil
  30683. }
  30684. d.decode(&mv)
  30685. if v != nil {
  30686. v[mk] = mv
  30687. }
  30688. }
  30689. dd.ReadMapEnd()
  30690. d.depthDecr()
  30691. return v, changed
  30692. }
  30693. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  30694. if rv.Kind() == reflect.Ptr {
  30695. vp := rv2i(rv).(*map[int16]string)
  30696. v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d)
  30697. if changed {
  30698. *vp = v
  30699. }
  30700. } else {
  30701. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  30702. }
  30703. }
  30704. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  30705. v, changed := f.DecMapInt16StringV(*vp, true, d)
  30706. if changed {
  30707. *vp = v
  30708. }
  30709. }
  30710. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  30711. d *Decoder) (_ map[int16]string, changed bool) {
  30712. dd, esep := d.d, d.hh.hasElemSeparators()
  30713. containerLen := dd.ReadMapStart()
  30714. if canChange && v == nil {
  30715. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30716. v = make(map[int16]string, xlen)
  30717. changed = true
  30718. }
  30719. if containerLen == 0 {
  30720. dd.ReadMapEnd()
  30721. return v, changed
  30722. }
  30723. d.depthIncr()
  30724. var mk int16
  30725. var mv string
  30726. hasLen := containerLen > 0
  30727. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30728. if esep {
  30729. dd.ReadMapElemKey()
  30730. }
  30731. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30732. if esep {
  30733. dd.ReadMapElemValue()
  30734. }
  30735. if dd.TryDecodeAsNil() {
  30736. if v == nil {
  30737. } else if d.h.DeleteOnNilMapValue {
  30738. delete(v, mk)
  30739. } else {
  30740. v[mk] = ""
  30741. }
  30742. continue
  30743. }
  30744. mv = dd.DecodeString()
  30745. if v != nil {
  30746. v[mk] = mv
  30747. }
  30748. }
  30749. dd.ReadMapEnd()
  30750. d.depthDecr()
  30751. return v, changed
  30752. }
  30753. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  30754. if rv.Kind() == reflect.Ptr {
  30755. vp := rv2i(rv).(*map[int16]uint)
  30756. v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d)
  30757. if changed {
  30758. *vp = v
  30759. }
  30760. } else {
  30761. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  30762. }
  30763. }
  30764. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  30765. v, changed := f.DecMapInt16UintV(*vp, true, d)
  30766. if changed {
  30767. *vp = v
  30768. }
  30769. }
  30770. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  30771. d *Decoder) (_ map[int16]uint, changed bool) {
  30772. dd, esep := d.d, d.hh.hasElemSeparators()
  30773. containerLen := dd.ReadMapStart()
  30774. if canChange && v == nil {
  30775. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30776. v = make(map[int16]uint, xlen)
  30777. changed = true
  30778. }
  30779. if containerLen == 0 {
  30780. dd.ReadMapEnd()
  30781. return v, changed
  30782. }
  30783. d.depthIncr()
  30784. var mk int16
  30785. var mv uint
  30786. hasLen := containerLen > 0
  30787. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30788. if esep {
  30789. dd.ReadMapElemKey()
  30790. }
  30791. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30792. if esep {
  30793. dd.ReadMapElemValue()
  30794. }
  30795. if dd.TryDecodeAsNil() {
  30796. if v == nil {
  30797. } else if d.h.DeleteOnNilMapValue {
  30798. delete(v, mk)
  30799. } else {
  30800. v[mk] = 0
  30801. }
  30802. continue
  30803. }
  30804. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30805. if v != nil {
  30806. v[mk] = mv
  30807. }
  30808. }
  30809. dd.ReadMapEnd()
  30810. d.depthDecr()
  30811. return v, changed
  30812. }
  30813. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  30814. if rv.Kind() == reflect.Ptr {
  30815. vp := rv2i(rv).(*map[int16]uint8)
  30816. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d)
  30817. if changed {
  30818. *vp = v
  30819. }
  30820. } else {
  30821. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  30822. }
  30823. }
  30824. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  30825. v, changed := f.DecMapInt16Uint8V(*vp, true, d)
  30826. if changed {
  30827. *vp = v
  30828. }
  30829. }
  30830. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  30831. d *Decoder) (_ map[int16]uint8, changed bool) {
  30832. dd, esep := d.d, d.hh.hasElemSeparators()
  30833. containerLen := dd.ReadMapStart()
  30834. if canChange && v == nil {
  30835. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30836. v = make(map[int16]uint8, xlen)
  30837. changed = true
  30838. }
  30839. if containerLen == 0 {
  30840. dd.ReadMapEnd()
  30841. return v, changed
  30842. }
  30843. d.depthIncr()
  30844. var mk int16
  30845. var mv uint8
  30846. hasLen := containerLen > 0
  30847. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30848. if esep {
  30849. dd.ReadMapElemKey()
  30850. }
  30851. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30852. if esep {
  30853. dd.ReadMapElemValue()
  30854. }
  30855. if dd.TryDecodeAsNil() {
  30856. if v == nil {
  30857. } else if d.h.DeleteOnNilMapValue {
  30858. delete(v, mk)
  30859. } else {
  30860. v[mk] = 0
  30861. }
  30862. continue
  30863. }
  30864. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  30865. if v != nil {
  30866. v[mk] = mv
  30867. }
  30868. }
  30869. dd.ReadMapEnd()
  30870. d.depthDecr()
  30871. return v, changed
  30872. }
  30873. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  30874. if rv.Kind() == reflect.Ptr {
  30875. vp := rv2i(rv).(*map[int16]uint16)
  30876. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d)
  30877. if changed {
  30878. *vp = v
  30879. }
  30880. } else {
  30881. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  30882. }
  30883. }
  30884. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  30885. v, changed := f.DecMapInt16Uint16V(*vp, true, d)
  30886. if changed {
  30887. *vp = v
  30888. }
  30889. }
  30890. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  30891. d *Decoder) (_ map[int16]uint16, changed bool) {
  30892. dd, esep := d.d, d.hh.hasElemSeparators()
  30893. containerLen := dd.ReadMapStart()
  30894. if canChange && v == nil {
  30895. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  30896. v = make(map[int16]uint16, xlen)
  30897. changed = true
  30898. }
  30899. if containerLen == 0 {
  30900. dd.ReadMapEnd()
  30901. return v, changed
  30902. }
  30903. d.depthIncr()
  30904. var mk int16
  30905. var mv uint16
  30906. hasLen := containerLen > 0
  30907. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30908. if esep {
  30909. dd.ReadMapElemKey()
  30910. }
  30911. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30912. if esep {
  30913. dd.ReadMapElemValue()
  30914. }
  30915. if dd.TryDecodeAsNil() {
  30916. if v == nil {
  30917. } else if d.h.DeleteOnNilMapValue {
  30918. delete(v, mk)
  30919. } else {
  30920. v[mk] = 0
  30921. }
  30922. continue
  30923. }
  30924. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  30925. if v != nil {
  30926. v[mk] = mv
  30927. }
  30928. }
  30929. dd.ReadMapEnd()
  30930. d.depthDecr()
  30931. return v, changed
  30932. }
  30933. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  30934. if rv.Kind() == reflect.Ptr {
  30935. vp := rv2i(rv).(*map[int16]uint32)
  30936. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d)
  30937. if changed {
  30938. *vp = v
  30939. }
  30940. } else {
  30941. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  30942. }
  30943. }
  30944. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  30945. v, changed := f.DecMapInt16Uint32V(*vp, true, d)
  30946. if changed {
  30947. *vp = v
  30948. }
  30949. }
  30950. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  30951. d *Decoder) (_ map[int16]uint32, changed bool) {
  30952. dd, esep := d.d, d.hh.hasElemSeparators()
  30953. containerLen := dd.ReadMapStart()
  30954. if canChange && v == nil {
  30955. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30956. v = make(map[int16]uint32, xlen)
  30957. changed = true
  30958. }
  30959. if containerLen == 0 {
  30960. dd.ReadMapEnd()
  30961. return v, changed
  30962. }
  30963. d.depthIncr()
  30964. var mk int16
  30965. var mv uint32
  30966. hasLen := containerLen > 0
  30967. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30968. if esep {
  30969. dd.ReadMapElemKey()
  30970. }
  30971. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30972. if esep {
  30973. dd.ReadMapElemValue()
  30974. }
  30975. if dd.TryDecodeAsNil() {
  30976. if v == nil {
  30977. } else if d.h.DeleteOnNilMapValue {
  30978. delete(v, mk)
  30979. } else {
  30980. v[mk] = 0
  30981. }
  30982. continue
  30983. }
  30984. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30985. if v != nil {
  30986. v[mk] = mv
  30987. }
  30988. }
  30989. dd.ReadMapEnd()
  30990. d.depthDecr()
  30991. return v, changed
  30992. }
  30993. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  30994. if rv.Kind() == reflect.Ptr {
  30995. vp := rv2i(rv).(*map[int16]uint64)
  30996. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d)
  30997. if changed {
  30998. *vp = v
  30999. }
  31000. } else {
  31001. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  31002. }
  31003. }
  31004. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  31005. v, changed := f.DecMapInt16Uint64V(*vp, true, d)
  31006. if changed {
  31007. *vp = v
  31008. }
  31009. }
  31010. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  31011. d *Decoder) (_ map[int16]uint64, changed bool) {
  31012. dd, esep := d.d, d.hh.hasElemSeparators()
  31013. containerLen := dd.ReadMapStart()
  31014. if canChange && v == nil {
  31015. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31016. v = make(map[int16]uint64, xlen)
  31017. changed = true
  31018. }
  31019. if containerLen == 0 {
  31020. dd.ReadMapEnd()
  31021. return v, changed
  31022. }
  31023. d.depthIncr()
  31024. var mk int16
  31025. var mv uint64
  31026. hasLen := containerLen > 0
  31027. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31028. if esep {
  31029. dd.ReadMapElemKey()
  31030. }
  31031. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31032. if esep {
  31033. dd.ReadMapElemValue()
  31034. }
  31035. if dd.TryDecodeAsNil() {
  31036. if v == nil {
  31037. } else if d.h.DeleteOnNilMapValue {
  31038. delete(v, mk)
  31039. } else {
  31040. v[mk] = 0
  31041. }
  31042. continue
  31043. }
  31044. mv = dd.DecodeUint64()
  31045. if v != nil {
  31046. v[mk] = mv
  31047. }
  31048. }
  31049. dd.ReadMapEnd()
  31050. d.depthDecr()
  31051. return v, changed
  31052. }
  31053. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  31054. if rv.Kind() == reflect.Ptr {
  31055. vp := rv2i(rv).(*map[int16]uintptr)
  31056. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d)
  31057. if changed {
  31058. *vp = v
  31059. }
  31060. } else {
  31061. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  31062. }
  31063. }
  31064. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  31065. v, changed := f.DecMapInt16UintptrV(*vp, true, d)
  31066. if changed {
  31067. *vp = v
  31068. }
  31069. }
  31070. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  31071. d *Decoder) (_ map[int16]uintptr, changed bool) {
  31072. dd, esep := d.d, d.hh.hasElemSeparators()
  31073. containerLen := dd.ReadMapStart()
  31074. if canChange && v == nil {
  31075. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31076. v = make(map[int16]uintptr, xlen)
  31077. changed = true
  31078. }
  31079. if containerLen == 0 {
  31080. dd.ReadMapEnd()
  31081. return v, changed
  31082. }
  31083. d.depthIncr()
  31084. var mk int16
  31085. var mv uintptr
  31086. hasLen := containerLen > 0
  31087. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31088. if esep {
  31089. dd.ReadMapElemKey()
  31090. }
  31091. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31092. if esep {
  31093. dd.ReadMapElemValue()
  31094. }
  31095. if dd.TryDecodeAsNil() {
  31096. if v == nil {
  31097. } else if d.h.DeleteOnNilMapValue {
  31098. delete(v, mk)
  31099. } else {
  31100. v[mk] = 0
  31101. }
  31102. continue
  31103. }
  31104. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31105. if v != nil {
  31106. v[mk] = mv
  31107. }
  31108. }
  31109. dd.ReadMapEnd()
  31110. d.depthDecr()
  31111. return v, changed
  31112. }
  31113. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  31114. if rv.Kind() == reflect.Ptr {
  31115. vp := rv2i(rv).(*map[int16]int)
  31116. v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d)
  31117. if changed {
  31118. *vp = v
  31119. }
  31120. } else {
  31121. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  31122. }
  31123. }
  31124. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  31125. v, changed := f.DecMapInt16IntV(*vp, true, d)
  31126. if changed {
  31127. *vp = v
  31128. }
  31129. }
  31130. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  31131. d *Decoder) (_ map[int16]int, changed bool) {
  31132. dd, esep := d.d, d.hh.hasElemSeparators()
  31133. containerLen := dd.ReadMapStart()
  31134. if canChange && v == nil {
  31135. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31136. v = make(map[int16]int, xlen)
  31137. changed = true
  31138. }
  31139. if containerLen == 0 {
  31140. dd.ReadMapEnd()
  31141. return v, changed
  31142. }
  31143. d.depthIncr()
  31144. var mk int16
  31145. var mv int
  31146. hasLen := containerLen > 0
  31147. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31148. if esep {
  31149. dd.ReadMapElemKey()
  31150. }
  31151. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31152. if esep {
  31153. dd.ReadMapElemValue()
  31154. }
  31155. if dd.TryDecodeAsNil() {
  31156. if v == nil {
  31157. } else if d.h.DeleteOnNilMapValue {
  31158. delete(v, mk)
  31159. } else {
  31160. v[mk] = 0
  31161. }
  31162. continue
  31163. }
  31164. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  31165. if v != nil {
  31166. v[mk] = mv
  31167. }
  31168. }
  31169. dd.ReadMapEnd()
  31170. d.depthDecr()
  31171. return v, changed
  31172. }
  31173. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  31174. if rv.Kind() == reflect.Ptr {
  31175. vp := rv2i(rv).(*map[int16]int8)
  31176. v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d)
  31177. if changed {
  31178. *vp = v
  31179. }
  31180. } else {
  31181. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  31182. }
  31183. }
  31184. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  31185. v, changed := f.DecMapInt16Int8V(*vp, true, d)
  31186. if changed {
  31187. *vp = v
  31188. }
  31189. }
  31190. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  31191. d *Decoder) (_ map[int16]int8, changed bool) {
  31192. dd, esep := d.d, d.hh.hasElemSeparators()
  31193. containerLen := dd.ReadMapStart()
  31194. if canChange && v == nil {
  31195. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31196. v = make(map[int16]int8, xlen)
  31197. changed = true
  31198. }
  31199. if containerLen == 0 {
  31200. dd.ReadMapEnd()
  31201. return v, changed
  31202. }
  31203. d.depthIncr()
  31204. var mk int16
  31205. var mv int8
  31206. hasLen := containerLen > 0
  31207. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31208. if esep {
  31209. dd.ReadMapElemKey()
  31210. }
  31211. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31212. if esep {
  31213. dd.ReadMapElemValue()
  31214. }
  31215. if dd.TryDecodeAsNil() {
  31216. if v == nil {
  31217. } else if d.h.DeleteOnNilMapValue {
  31218. delete(v, mk)
  31219. } else {
  31220. v[mk] = 0
  31221. }
  31222. continue
  31223. }
  31224. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  31225. if v != nil {
  31226. v[mk] = mv
  31227. }
  31228. }
  31229. dd.ReadMapEnd()
  31230. d.depthDecr()
  31231. return v, changed
  31232. }
  31233. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  31234. if rv.Kind() == reflect.Ptr {
  31235. vp := rv2i(rv).(*map[int16]int16)
  31236. v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d)
  31237. if changed {
  31238. *vp = v
  31239. }
  31240. } else {
  31241. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  31242. }
  31243. }
  31244. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  31245. v, changed := f.DecMapInt16Int16V(*vp, true, d)
  31246. if changed {
  31247. *vp = v
  31248. }
  31249. }
  31250. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  31251. d *Decoder) (_ map[int16]int16, changed bool) {
  31252. dd, esep := d.d, d.hh.hasElemSeparators()
  31253. containerLen := dd.ReadMapStart()
  31254. if canChange && v == nil {
  31255. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  31256. v = make(map[int16]int16, xlen)
  31257. changed = true
  31258. }
  31259. if containerLen == 0 {
  31260. dd.ReadMapEnd()
  31261. return v, changed
  31262. }
  31263. d.depthIncr()
  31264. var mk int16
  31265. var mv int16
  31266. hasLen := containerLen > 0
  31267. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31268. if esep {
  31269. dd.ReadMapElemKey()
  31270. }
  31271. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31272. if esep {
  31273. dd.ReadMapElemValue()
  31274. }
  31275. if dd.TryDecodeAsNil() {
  31276. if v == nil {
  31277. } else if d.h.DeleteOnNilMapValue {
  31278. delete(v, mk)
  31279. } else {
  31280. v[mk] = 0
  31281. }
  31282. continue
  31283. }
  31284. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31285. if v != nil {
  31286. v[mk] = mv
  31287. }
  31288. }
  31289. dd.ReadMapEnd()
  31290. d.depthDecr()
  31291. return v, changed
  31292. }
  31293. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  31294. if rv.Kind() == reflect.Ptr {
  31295. vp := rv2i(rv).(*map[int16]int32)
  31296. v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d)
  31297. if changed {
  31298. *vp = v
  31299. }
  31300. } else {
  31301. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  31302. }
  31303. }
  31304. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  31305. v, changed := f.DecMapInt16Int32V(*vp, true, d)
  31306. if changed {
  31307. *vp = v
  31308. }
  31309. }
  31310. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  31311. d *Decoder) (_ map[int16]int32, changed bool) {
  31312. dd, esep := d.d, d.hh.hasElemSeparators()
  31313. containerLen := dd.ReadMapStart()
  31314. if canChange && v == nil {
  31315. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31316. v = make(map[int16]int32, xlen)
  31317. changed = true
  31318. }
  31319. if containerLen == 0 {
  31320. dd.ReadMapEnd()
  31321. return v, changed
  31322. }
  31323. d.depthIncr()
  31324. var mk int16
  31325. var mv int32
  31326. hasLen := containerLen > 0
  31327. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31328. if esep {
  31329. dd.ReadMapElemKey()
  31330. }
  31331. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31332. if esep {
  31333. dd.ReadMapElemValue()
  31334. }
  31335. if dd.TryDecodeAsNil() {
  31336. if v == nil {
  31337. } else if d.h.DeleteOnNilMapValue {
  31338. delete(v, mk)
  31339. } else {
  31340. v[mk] = 0
  31341. }
  31342. continue
  31343. }
  31344. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31345. if v != nil {
  31346. v[mk] = mv
  31347. }
  31348. }
  31349. dd.ReadMapEnd()
  31350. d.depthDecr()
  31351. return v, changed
  31352. }
  31353. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  31354. if rv.Kind() == reflect.Ptr {
  31355. vp := rv2i(rv).(*map[int16]int64)
  31356. v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d)
  31357. if changed {
  31358. *vp = v
  31359. }
  31360. } else {
  31361. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  31362. }
  31363. }
  31364. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  31365. v, changed := f.DecMapInt16Int64V(*vp, true, d)
  31366. if changed {
  31367. *vp = v
  31368. }
  31369. }
  31370. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  31371. d *Decoder) (_ map[int16]int64, changed bool) {
  31372. dd, esep := d.d, d.hh.hasElemSeparators()
  31373. containerLen := dd.ReadMapStart()
  31374. if canChange && v == nil {
  31375. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31376. v = make(map[int16]int64, xlen)
  31377. changed = true
  31378. }
  31379. if containerLen == 0 {
  31380. dd.ReadMapEnd()
  31381. return v, changed
  31382. }
  31383. d.depthIncr()
  31384. var mk int16
  31385. var mv int64
  31386. hasLen := containerLen > 0
  31387. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31388. if esep {
  31389. dd.ReadMapElemKey()
  31390. }
  31391. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31392. if esep {
  31393. dd.ReadMapElemValue()
  31394. }
  31395. if dd.TryDecodeAsNil() {
  31396. if v == nil {
  31397. } else if d.h.DeleteOnNilMapValue {
  31398. delete(v, mk)
  31399. } else {
  31400. v[mk] = 0
  31401. }
  31402. continue
  31403. }
  31404. mv = dd.DecodeInt64()
  31405. if v != nil {
  31406. v[mk] = mv
  31407. }
  31408. }
  31409. dd.ReadMapEnd()
  31410. d.depthDecr()
  31411. return v, changed
  31412. }
  31413. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  31414. if rv.Kind() == reflect.Ptr {
  31415. vp := rv2i(rv).(*map[int16]float32)
  31416. v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d)
  31417. if changed {
  31418. *vp = v
  31419. }
  31420. } else {
  31421. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  31422. }
  31423. }
  31424. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  31425. v, changed := f.DecMapInt16Float32V(*vp, true, d)
  31426. if changed {
  31427. *vp = v
  31428. }
  31429. }
  31430. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  31431. d *Decoder) (_ map[int16]float32, changed bool) {
  31432. dd, esep := d.d, d.hh.hasElemSeparators()
  31433. containerLen := dd.ReadMapStart()
  31434. if canChange && v == nil {
  31435. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31436. v = make(map[int16]float32, xlen)
  31437. changed = true
  31438. }
  31439. if containerLen == 0 {
  31440. dd.ReadMapEnd()
  31441. return v, changed
  31442. }
  31443. d.depthIncr()
  31444. var mk int16
  31445. var mv float32
  31446. hasLen := containerLen > 0
  31447. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31448. if esep {
  31449. dd.ReadMapElemKey()
  31450. }
  31451. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31452. if esep {
  31453. dd.ReadMapElemValue()
  31454. }
  31455. if dd.TryDecodeAsNil() {
  31456. if v == nil {
  31457. } else if d.h.DeleteOnNilMapValue {
  31458. delete(v, mk)
  31459. } else {
  31460. v[mk] = 0
  31461. }
  31462. continue
  31463. }
  31464. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  31465. if v != nil {
  31466. v[mk] = mv
  31467. }
  31468. }
  31469. dd.ReadMapEnd()
  31470. d.depthDecr()
  31471. return v, changed
  31472. }
  31473. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  31474. if rv.Kind() == reflect.Ptr {
  31475. vp := rv2i(rv).(*map[int16]float64)
  31476. v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d)
  31477. if changed {
  31478. *vp = v
  31479. }
  31480. } else {
  31481. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  31482. }
  31483. }
  31484. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  31485. v, changed := f.DecMapInt16Float64V(*vp, true, d)
  31486. if changed {
  31487. *vp = v
  31488. }
  31489. }
  31490. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  31491. d *Decoder) (_ map[int16]float64, changed bool) {
  31492. dd, esep := d.d, d.hh.hasElemSeparators()
  31493. containerLen := dd.ReadMapStart()
  31494. if canChange && v == nil {
  31495. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31496. v = make(map[int16]float64, xlen)
  31497. changed = true
  31498. }
  31499. if containerLen == 0 {
  31500. dd.ReadMapEnd()
  31501. return v, changed
  31502. }
  31503. d.depthIncr()
  31504. var mk int16
  31505. var mv float64
  31506. hasLen := containerLen > 0
  31507. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31508. if esep {
  31509. dd.ReadMapElemKey()
  31510. }
  31511. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31512. if esep {
  31513. dd.ReadMapElemValue()
  31514. }
  31515. if dd.TryDecodeAsNil() {
  31516. if v == nil {
  31517. } else if d.h.DeleteOnNilMapValue {
  31518. delete(v, mk)
  31519. } else {
  31520. v[mk] = 0
  31521. }
  31522. continue
  31523. }
  31524. mv = dd.DecodeFloat64()
  31525. if v != nil {
  31526. v[mk] = mv
  31527. }
  31528. }
  31529. dd.ReadMapEnd()
  31530. d.depthDecr()
  31531. return v, changed
  31532. }
  31533. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  31534. if rv.Kind() == reflect.Ptr {
  31535. vp := rv2i(rv).(*map[int16]bool)
  31536. v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d)
  31537. if changed {
  31538. *vp = v
  31539. }
  31540. } else {
  31541. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  31542. }
  31543. }
  31544. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  31545. v, changed := f.DecMapInt16BoolV(*vp, true, d)
  31546. if changed {
  31547. *vp = v
  31548. }
  31549. }
  31550. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  31551. d *Decoder) (_ map[int16]bool, changed bool) {
  31552. dd, esep := d.d, d.hh.hasElemSeparators()
  31553. containerLen := dd.ReadMapStart()
  31554. if canChange && v == nil {
  31555. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31556. v = make(map[int16]bool, xlen)
  31557. changed = true
  31558. }
  31559. if containerLen == 0 {
  31560. dd.ReadMapEnd()
  31561. return v, changed
  31562. }
  31563. d.depthIncr()
  31564. var mk int16
  31565. var mv bool
  31566. hasLen := containerLen > 0
  31567. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31568. if esep {
  31569. dd.ReadMapElemKey()
  31570. }
  31571. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31572. if esep {
  31573. dd.ReadMapElemValue()
  31574. }
  31575. if dd.TryDecodeAsNil() {
  31576. if v == nil {
  31577. } else if d.h.DeleteOnNilMapValue {
  31578. delete(v, mk)
  31579. } else {
  31580. v[mk] = false
  31581. }
  31582. continue
  31583. }
  31584. mv = dd.DecodeBool()
  31585. if v != nil {
  31586. v[mk] = mv
  31587. }
  31588. }
  31589. dd.ReadMapEnd()
  31590. d.depthDecr()
  31591. return v, changed
  31592. }
  31593. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  31594. if rv.Kind() == reflect.Ptr {
  31595. vp := rv2i(rv).(*map[int32]interface{})
  31596. v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d)
  31597. if changed {
  31598. *vp = v
  31599. }
  31600. } else {
  31601. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  31602. }
  31603. }
  31604. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  31605. v, changed := f.DecMapInt32IntfV(*vp, true, d)
  31606. if changed {
  31607. *vp = v
  31608. }
  31609. }
  31610. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  31611. d *Decoder) (_ map[int32]interface{}, changed bool) {
  31612. dd, esep := d.d, d.hh.hasElemSeparators()
  31613. containerLen := dd.ReadMapStart()
  31614. if canChange && v == nil {
  31615. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31616. v = make(map[int32]interface{}, xlen)
  31617. changed = true
  31618. }
  31619. if containerLen == 0 {
  31620. dd.ReadMapEnd()
  31621. return v, changed
  31622. }
  31623. d.depthIncr()
  31624. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  31625. var mk int32
  31626. var mv interface{}
  31627. hasLen := containerLen > 0
  31628. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31629. if esep {
  31630. dd.ReadMapElemKey()
  31631. }
  31632. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31633. if esep {
  31634. dd.ReadMapElemValue()
  31635. }
  31636. if dd.TryDecodeAsNil() {
  31637. if v == nil {
  31638. } else if d.h.DeleteOnNilMapValue {
  31639. delete(v, mk)
  31640. } else {
  31641. v[mk] = nil
  31642. }
  31643. continue
  31644. }
  31645. if mapGet {
  31646. mv = v[mk]
  31647. } else {
  31648. mv = nil
  31649. }
  31650. d.decode(&mv)
  31651. if v != nil {
  31652. v[mk] = mv
  31653. }
  31654. }
  31655. dd.ReadMapEnd()
  31656. d.depthDecr()
  31657. return v, changed
  31658. }
  31659. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  31660. if rv.Kind() == reflect.Ptr {
  31661. vp := rv2i(rv).(*map[int32]string)
  31662. v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d)
  31663. if changed {
  31664. *vp = v
  31665. }
  31666. } else {
  31667. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  31668. }
  31669. }
  31670. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  31671. v, changed := f.DecMapInt32StringV(*vp, true, d)
  31672. if changed {
  31673. *vp = v
  31674. }
  31675. }
  31676. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  31677. d *Decoder) (_ map[int32]string, changed bool) {
  31678. dd, esep := d.d, d.hh.hasElemSeparators()
  31679. containerLen := dd.ReadMapStart()
  31680. if canChange && v == nil {
  31681. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31682. v = make(map[int32]string, xlen)
  31683. changed = true
  31684. }
  31685. if containerLen == 0 {
  31686. dd.ReadMapEnd()
  31687. return v, changed
  31688. }
  31689. d.depthIncr()
  31690. var mk int32
  31691. var mv string
  31692. hasLen := containerLen > 0
  31693. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31694. if esep {
  31695. dd.ReadMapElemKey()
  31696. }
  31697. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31698. if esep {
  31699. dd.ReadMapElemValue()
  31700. }
  31701. if dd.TryDecodeAsNil() {
  31702. if v == nil {
  31703. } else if d.h.DeleteOnNilMapValue {
  31704. delete(v, mk)
  31705. } else {
  31706. v[mk] = ""
  31707. }
  31708. continue
  31709. }
  31710. mv = dd.DecodeString()
  31711. if v != nil {
  31712. v[mk] = mv
  31713. }
  31714. }
  31715. dd.ReadMapEnd()
  31716. d.depthDecr()
  31717. return v, changed
  31718. }
  31719. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  31720. if rv.Kind() == reflect.Ptr {
  31721. vp := rv2i(rv).(*map[int32]uint)
  31722. v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d)
  31723. if changed {
  31724. *vp = v
  31725. }
  31726. } else {
  31727. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  31728. }
  31729. }
  31730. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  31731. v, changed := f.DecMapInt32UintV(*vp, true, d)
  31732. if changed {
  31733. *vp = v
  31734. }
  31735. }
  31736. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  31737. d *Decoder) (_ map[int32]uint, changed bool) {
  31738. dd, esep := d.d, d.hh.hasElemSeparators()
  31739. containerLen := dd.ReadMapStart()
  31740. if canChange && v == nil {
  31741. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31742. v = make(map[int32]uint, xlen)
  31743. changed = true
  31744. }
  31745. if containerLen == 0 {
  31746. dd.ReadMapEnd()
  31747. return v, changed
  31748. }
  31749. d.depthIncr()
  31750. var mk int32
  31751. var mv uint
  31752. hasLen := containerLen > 0
  31753. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31754. if esep {
  31755. dd.ReadMapElemKey()
  31756. }
  31757. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31758. if esep {
  31759. dd.ReadMapElemValue()
  31760. }
  31761. if dd.TryDecodeAsNil() {
  31762. if v == nil {
  31763. } else if d.h.DeleteOnNilMapValue {
  31764. delete(v, mk)
  31765. } else {
  31766. v[mk] = 0
  31767. }
  31768. continue
  31769. }
  31770. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31771. if v != nil {
  31772. v[mk] = mv
  31773. }
  31774. }
  31775. dd.ReadMapEnd()
  31776. d.depthDecr()
  31777. return v, changed
  31778. }
  31779. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  31780. if rv.Kind() == reflect.Ptr {
  31781. vp := rv2i(rv).(*map[int32]uint8)
  31782. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d)
  31783. if changed {
  31784. *vp = v
  31785. }
  31786. } else {
  31787. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  31788. }
  31789. }
  31790. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  31791. v, changed := f.DecMapInt32Uint8V(*vp, true, d)
  31792. if changed {
  31793. *vp = v
  31794. }
  31795. }
  31796. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  31797. d *Decoder) (_ map[int32]uint8, changed bool) {
  31798. dd, esep := d.d, d.hh.hasElemSeparators()
  31799. containerLen := dd.ReadMapStart()
  31800. if canChange && v == nil {
  31801. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31802. v = make(map[int32]uint8, xlen)
  31803. changed = true
  31804. }
  31805. if containerLen == 0 {
  31806. dd.ReadMapEnd()
  31807. return v, changed
  31808. }
  31809. d.depthIncr()
  31810. var mk int32
  31811. var mv uint8
  31812. hasLen := containerLen > 0
  31813. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31814. if esep {
  31815. dd.ReadMapElemKey()
  31816. }
  31817. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31818. if esep {
  31819. dd.ReadMapElemValue()
  31820. }
  31821. if dd.TryDecodeAsNil() {
  31822. if v == nil {
  31823. } else if d.h.DeleteOnNilMapValue {
  31824. delete(v, mk)
  31825. } else {
  31826. v[mk] = 0
  31827. }
  31828. continue
  31829. }
  31830. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  31831. if v != nil {
  31832. v[mk] = mv
  31833. }
  31834. }
  31835. dd.ReadMapEnd()
  31836. d.depthDecr()
  31837. return v, changed
  31838. }
  31839. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  31840. if rv.Kind() == reflect.Ptr {
  31841. vp := rv2i(rv).(*map[int32]uint16)
  31842. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d)
  31843. if changed {
  31844. *vp = v
  31845. }
  31846. } else {
  31847. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  31848. }
  31849. }
  31850. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  31851. v, changed := f.DecMapInt32Uint16V(*vp, true, d)
  31852. if changed {
  31853. *vp = v
  31854. }
  31855. }
  31856. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  31857. d *Decoder) (_ map[int32]uint16, changed bool) {
  31858. dd, esep := d.d, d.hh.hasElemSeparators()
  31859. containerLen := dd.ReadMapStart()
  31860. if canChange && v == nil {
  31861. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31862. v = make(map[int32]uint16, xlen)
  31863. changed = true
  31864. }
  31865. if containerLen == 0 {
  31866. dd.ReadMapEnd()
  31867. return v, changed
  31868. }
  31869. d.depthIncr()
  31870. var mk int32
  31871. var mv uint16
  31872. hasLen := containerLen > 0
  31873. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31874. if esep {
  31875. dd.ReadMapElemKey()
  31876. }
  31877. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31878. if esep {
  31879. dd.ReadMapElemValue()
  31880. }
  31881. if dd.TryDecodeAsNil() {
  31882. if v == nil {
  31883. } else if d.h.DeleteOnNilMapValue {
  31884. delete(v, mk)
  31885. } else {
  31886. v[mk] = 0
  31887. }
  31888. continue
  31889. }
  31890. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  31891. if v != nil {
  31892. v[mk] = mv
  31893. }
  31894. }
  31895. dd.ReadMapEnd()
  31896. d.depthDecr()
  31897. return v, changed
  31898. }
  31899. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  31900. if rv.Kind() == reflect.Ptr {
  31901. vp := rv2i(rv).(*map[int32]uint32)
  31902. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d)
  31903. if changed {
  31904. *vp = v
  31905. }
  31906. } else {
  31907. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  31908. }
  31909. }
  31910. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  31911. v, changed := f.DecMapInt32Uint32V(*vp, true, d)
  31912. if changed {
  31913. *vp = v
  31914. }
  31915. }
  31916. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  31917. d *Decoder) (_ map[int32]uint32, changed bool) {
  31918. dd, esep := d.d, d.hh.hasElemSeparators()
  31919. containerLen := dd.ReadMapStart()
  31920. if canChange && v == nil {
  31921. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  31922. v = make(map[int32]uint32, xlen)
  31923. changed = true
  31924. }
  31925. if containerLen == 0 {
  31926. dd.ReadMapEnd()
  31927. return v, changed
  31928. }
  31929. d.depthIncr()
  31930. var mk int32
  31931. var mv uint32
  31932. hasLen := containerLen > 0
  31933. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31934. if esep {
  31935. dd.ReadMapElemKey()
  31936. }
  31937. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31938. if esep {
  31939. dd.ReadMapElemValue()
  31940. }
  31941. if dd.TryDecodeAsNil() {
  31942. if v == nil {
  31943. } else if d.h.DeleteOnNilMapValue {
  31944. delete(v, mk)
  31945. } else {
  31946. v[mk] = 0
  31947. }
  31948. continue
  31949. }
  31950. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  31951. if v != nil {
  31952. v[mk] = mv
  31953. }
  31954. }
  31955. dd.ReadMapEnd()
  31956. d.depthDecr()
  31957. return v, changed
  31958. }
  31959. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  31960. if rv.Kind() == reflect.Ptr {
  31961. vp := rv2i(rv).(*map[int32]uint64)
  31962. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d)
  31963. if changed {
  31964. *vp = v
  31965. }
  31966. } else {
  31967. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  31968. }
  31969. }
  31970. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  31971. v, changed := f.DecMapInt32Uint64V(*vp, true, d)
  31972. if changed {
  31973. *vp = v
  31974. }
  31975. }
  31976. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  31977. d *Decoder) (_ map[int32]uint64, changed bool) {
  31978. dd, esep := d.d, d.hh.hasElemSeparators()
  31979. containerLen := dd.ReadMapStart()
  31980. if canChange && v == nil {
  31981. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31982. v = make(map[int32]uint64, xlen)
  31983. changed = true
  31984. }
  31985. if containerLen == 0 {
  31986. dd.ReadMapEnd()
  31987. return v, changed
  31988. }
  31989. d.depthIncr()
  31990. var mk int32
  31991. var mv uint64
  31992. hasLen := containerLen > 0
  31993. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31994. if esep {
  31995. dd.ReadMapElemKey()
  31996. }
  31997. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31998. if esep {
  31999. dd.ReadMapElemValue()
  32000. }
  32001. if dd.TryDecodeAsNil() {
  32002. if v == nil {
  32003. } else if d.h.DeleteOnNilMapValue {
  32004. delete(v, mk)
  32005. } else {
  32006. v[mk] = 0
  32007. }
  32008. continue
  32009. }
  32010. mv = dd.DecodeUint64()
  32011. if v != nil {
  32012. v[mk] = mv
  32013. }
  32014. }
  32015. dd.ReadMapEnd()
  32016. d.depthDecr()
  32017. return v, changed
  32018. }
  32019. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  32020. if rv.Kind() == reflect.Ptr {
  32021. vp := rv2i(rv).(*map[int32]uintptr)
  32022. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d)
  32023. if changed {
  32024. *vp = v
  32025. }
  32026. } else {
  32027. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  32028. }
  32029. }
  32030. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  32031. v, changed := f.DecMapInt32UintptrV(*vp, true, d)
  32032. if changed {
  32033. *vp = v
  32034. }
  32035. }
  32036. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  32037. d *Decoder) (_ map[int32]uintptr, changed bool) {
  32038. dd, esep := d.d, d.hh.hasElemSeparators()
  32039. containerLen := dd.ReadMapStart()
  32040. if canChange && v == nil {
  32041. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32042. v = make(map[int32]uintptr, xlen)
  32043. changed = true
  32044. }
  32045. if containerLen == 0 {
  32046. dd.ReadMapEnd()
  32047. return v, changed
  32048. }
  32049. d.depthIncr()
  32050. var mk int32
  32051. var mv uintptr
  32052. hasLen := containerLen > 0
  32053. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32054. if esep {
  32055. dd.ReadMapElemKey()
  32056. }
  32057. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32058. if esep {
  32059. dd.ReadMapElemValue()
  32060. }
  32061. if dd.TryDecodeAsNil() {
  32062. if v == nil {
  32063. } else if d.h.DeleteOnNilMapValue {
  32064. delete(v, mk)
  32065. } else {
  32066. v[mk] = 0
  32067. }
  32068. continue
  32069. }
  32070. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32071. if v != nil {
  32072. v[mk] = mv
  32073. }
  32074. }
  32075. dd.ReadMapEnd()
  32076. d.depthDecr()
  32077. return v, changed
  32078. }
  32079. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  32080. if rv.Kind() == reflect.Ptr {
  32081. vp := rv2i(rv).(*map[int32]int)
  32082. v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d)
  32083. if changed {
  32084. *vp = v
  32085. }
  32086. } else {
  32087. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  32088. }
  32089. }
  32090. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  32091. v, changed := f.DecMapInt32IntV(*vp, true, d)
  32092. if changed {
  32093. *vp = v
  32094. }
  32095. }
  32096. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  32097. d *Decoder) (_ map[int32]int, changed bool) {
  32098. dd, esep := d.d, d.hh.hasElemSeparators()
  32099. containerLen := dd.ReadMapStart()
  32100. if canChange && v == nil {
  32101. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32102. v = make(map[int32]int, xlen)
  32103. changed = true
  32104. }
  32105. if containerLen == 0 {
  32106. dd.ReadMapEnd()
  32107. return v, changed
  32108. }
  32109. d.depthIncr()
  32110. var mk int32
  32111. var mv int
  32112. hasLen := containerLen > 0
  32113. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32114. if esep {
  32115. dd.ReadMapElemKey()
  32116. }
  32117. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32118. if esep {
  32119. dd.ReadMapElemValue()
  32120. }
  32121. if dd.TryDecodeAsNil() {
  32122. if v == nil {
  32123. } else if d.h.DeleteOnNilMapValue {
  32124. delete(v, mk)
  32125. } else {
  32126. v[mk] = 0
  32127. }
  32128. continue
  32129. }
  32130. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  32131. if v != nil {
  32132. v[mk] = mv
  32133. }
  32134. }
  32135. dd.ReadMapEnd()
  32136. d.depthDecr()
  32137. return v, changed
  32138. }
  32139. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  32140. if rv.Kind() == reflect.Ptr {
  32141. vp := rv2i(rv).(*map[int32]int8)
  32142. v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d)
  32143. if changed {
  32144. *vp = v
  32145. }
  32146. } else {
  32147. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  32148. }
  32149. }
  32150. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  32151. v, changed := f.DecMapInt32Int8V(*vp, true, d)
  32152. if changed {
  32153. *vp = v
  32154. }
  32155. }
  32156. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  32157. d *Decoder) (_ map[int32]int8, changed bool) {
  32158. dd, esep := d.d, d.hh.hasElemSeparators()
  32159. containerLen := dd.ReadMapStart()
  32160. if canChange && v == nil {
  32161. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32162. v = make(map[int32]int8, xlen)
  32163. changed = true
  32164. }
  32165. if containerLen == 0 {
  32166. dd.ReadMapEnd()
  32167. return v, changed
  32168. }
  32169. d.depthIncr()
  32170. var mk int32
  32171. var mv int8
  32172. hasLen := containerLen > 0
  32173. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32174. if esep {
  32175. dd.ReadMapElemKey()
  32176. }
  32177. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32178. if esep {
  32179. dd.ReadMapElemValue()
  32180. }
  32181. if dd.TryDecodeAsNil() {
  32182. if v == nil {
  32183. } else if d.h.DeleteOnNilMapValue {
  32184. delete(v, mk)
  32185. } else {
  32186. v[mk] = 0
  32187. }
  32188. continue
  32189. }
  32190. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  32191. if v != nil {
  32192. v[mk] = mv
  32193. }
  32194. }
  32195. dd.ReadMapEnd()
  32196. d.depthDecr()
  32197. return v, changed
  32198. }
  32199. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  32200. if rv.Kind() == reflect.Ptr {
  32201. vp := rv2i(rv).(*map[int32]int16)
  32202. v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d)
  32203. if changed {
  32204. *vp = v
  32205. }
  32206. } else {
  32207. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  32208. }
  32209. }
  32210. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  32211. v, changed := f.DecMapInt32Int16V(*vp, true, d)
  32212. if changed {
  32213. *vp = v
  32214. }
  32215. }
  32216. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  32217. d *Decoder) (_ map[int32]int16, changed bool) {
  32218. dd, esep := d.d, d.hh.hasElemSeparators()
  32219. containerLen := dd.ReadMapStart()
  32220. if canChange && v == nil {
  32221. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  32222. v = make(map[int32]int16, xlen)
  32223. changed = true
  32224. }
  32225. if containerLen == 0 {
  32226. dd.ReadMapEnd()
  32227. return v, changed
  32228. }
  32229. d.depthIncr()
  32230. var mk int32
  32231. var mv int16
  32232. hasLen := containerLen > 0
  32233. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32234. if esep {
  32235. dd.ReadMapElemKey()
  32236. }
  32237. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32238. if esep {
  32239. dd.ReadMapElemValue()
  32240. }
  32241. if dd.TryDecodeAsNil() {
  32242. if v == nil {
  32243. } else if d.h.DeleteOnNilMapValue {
  32244. delete(v, mk)
  32245. } else {
  32246. v[mk] = 0
  32247. }
  32248. continue
  32249. }
  32250. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  32251. if v != nil {
  32252. v[mk] = mv
  32253. }
  32254. }
  32255. dd.ReadMapEnd()
  32256. d.depthDecr()
  32257. return v, changed
  32258. }
  32259. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  32260. if rv.Kind() == reflect.Ptr {
  32261. vp := rv2i(rv).(*map[int32]int32)
  32262. v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d)
  32263. if changed {
  32264. *vp = v
  32265. }
  32266. } else {
  32267. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  32268. }
  32269. }
  32270. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  32271. v, changed := f.DecMapInt32Int32V(*vp, true, d)
  32272. if changed {
  32273. *vp = v
  32274. }
  32275. }
  32276. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  32277. d *Decoder) (_ map[int32]int32, changed bool) {
  32278. dd, esep := d.d, d.hh.hasElemSeparators()
  32279. containerLen := dd.ReadMapStart()
  32280. if canChange && v == nil {
  32281. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  32282. v = make(map[int32]int32, xlen)
  32283. changed = true
  32284. }
  32285. if containerLen == 0 {
  32286. dd.ReadMapEnd()
  32287. return v, changed
  32288. }
  32289. d.depthIncr()
  32290. var mk int32
  32291. var mv int32
  32292. hasLen := containerLen > 0
  32293. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32294. if esep {
  32295. dd.ReadMapElemKey()
  32296. }
  32297. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32298. if esep {
  32299. dd.ReadMapElemValue()
  32300. }
  32301. if dd.TryDecodeAsNil() {
  32302. if v == nil {
  32303. } else if d.h.DeleteOnNilMapValue {
  32304. delete(v, mk)
  32305. } else {
  32306. v[mk] = 0
  32307. }
  32308. continue
  32309. }
  32310. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32311. if v != nil {
  32312. v[mk] = mv
  32313. }
  32314. }
  32315. dd.ReadMapEnd()
  32316. d.depthDecr()
  32317. return v, changed
  32318. }
  32319. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  32320. if rv.Kind() == reflect.Ptr {
  32321. vp := rv2i(rv).(*map[int32]int64)
  32322. v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d)
  32323. if changed {
  32324. *vp = v
  32325. }
  32326. } else {
  32327. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  32328. }
  32329. }
  32330. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  32331. v, changed := f.DecMapInt32Int64V(*vp, true, d)
  32332. if changed {
  32333. *vp = v
  32334. }
  32335. }
  32336. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  32337. d *Decoder) (_ map[int32]int64, changed bool) {
  32338. dd, esep := d.d, d.hh.hasElemSeparators()
  32339. containerLen := dd.ReadMapStart()
  32340. if canChange && v == nil {
  32341. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32342. v = make(map[int32]int64, xlen)
  32343. changed = true
  32344. }
  32345. if containerLen == 0 {
  32346. dd.ReadMapEnd()
  32347. return v, changed
  32348. }
  32349. d.depthIncr()
  32350. var mk int32
  32351. var mv int64
  32352. hasLen := containerLen > 0
  32353. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32354. if esep {
  32355. dd.ReadMapElemKey()
  32356. }
  32357. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32358. if esep {
  32359. dd.ReadMapElemValue()
  32360. }
  32361. if dd.TryDecodeAsNil() {
  32362. if v == nil {
  32363. } else if d.h.DeleteOnNilMapValue {
  32364. delete(v, mk)
  32365. } else {
  32366. v[mk] = 0
  32367. }
  32368. continue
  32369. }
  32370. mv = dd.DecodeInt64()
  32371. if v != nil {
  32372. v[mk] = mv
  32373. }
  32374. }
  32375. dd.ReadMapEnd()
  32376. d.depthDecr()
  32377. return v, changed
  32378. }
  32379. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  32380. if rv.Kind() == reflect.Ptr {
  32381. vp := rv2i(rv).(*map[int32]float32)
  32382. v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d)
  32383. if changed {
  32384. *vp = v
  32385. }
  32386. } else {
  32387. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  32388. }
  32389. }
  32390. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  32391. v, changed := f.DecMapInt32Float32V(*vp, true, d)
  32392. if changed {
  32393. *vp = v
  32394. }
  32395. }
  32396. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  32397. d *Decoder) (_ map[int32]float32, changed bool) {
  32398. dd, esep := d.d, d.hh.hasElemSeparators()
  32399. containerLen := dd.ReadMapStart()
  32400. if canChange && v == nil {
  32401. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  32402. v = make(map[int32]float32, xlen)
  32403. changed = true
  32404. }
  32405. if containerLen == 0 {
  32406. dd.ReadMapEnd()
  32407. return v, changed
  32408. }
  32409. d.depthIncr()
  32410. var mk int32
  32411. var mv float32
  32412. hasLen := containerLen > 0
  32413. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32414. if esep {
  32415. dd.ReadMapElemKey()
  32416. }
  32417. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32418. if esep {
  32419. dd.ReadMapElemValue()
  32420. }
  32421. if dd.TryDecodeAsNil() {
  32422. if v == nil {
  32423. } else if d.h.DeleteOnNilMapValue {
  32424. delete(v, mk)
  32425. } else {
  32426. v[mk] = 0
  32427. }
  32428. continue
  32429. }
  32430. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  32431. if v != nil {
  32432. v[mk] = mv
  32433. }
  32434. }
  32435. dd.ReadMapEnd()
  32436. d.depthDecr()
  32437. return v, changed
  32438. }
  32439. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  32440. if rv.Kind() == reflect.Ptr {
  32441. vp := rv2i(rv).(*map[int32]float64)
  32442. v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d)
  32443. if changed {
  32444. *vp = v
  32445. }
  32446. } else {
  32447. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  32448. }
  32449. }
  32450. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  32451. v, changed := f.DecMapInt32Float64V(*vp, true, d)
  32452. if changed {
  32453. *vp = v
  32454. }
  32455. }
  32456. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  32457. d *Decoder) (_ map[int32]float64, changed bool) {
  32458. dd, esep := d.d, d.hh.hasElemSeparators()
  32459. containerLen := dd.ReadMapStart()
  32460. if canChange && v == nil {
  32461. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32462. v = make(map[int32]float64, xlen)
  32463. changed = true
  32464. }
  32465. if containerLen == 0 {
  32466. dd.ReadMapEnd()
  32467. return v, changed
  32468. }
  32469. d.depthIncr()
  32470. var mk int32
  32471. var mv float64
  32472. hasLen := containerLen > 0
  32473. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32474. if esep {
  32475. dd.ReadMapElemKey()
  32476. }
  32477. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32478. if esep {
  32479. dd.ReadMapElemValue()
  32480. }
  32481. if dd.TryDecodeAsNil() {
  32482. if v == nil {
  32483. } else if d.h.DeleteOnNilMapValue {
  32484. delete(v, mk)
  32485. } else {
  32486. v[mk] = 0
  32487. }
  32488. continue
  32489. }
  32490. mv = dd.DecodeFloat64()
  32491. if v != nil {
  32492. v[mk] = mv
  32493. }
  32494. }
  32495. dd.ReadMapEnd()
  32496. d.depthDecr()
  32497. return v, changed
  32498. }
  32499. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  32500. if rv.Kind() == reflect.Ptr {
  32501. vp := rv2i(rv).(*map[int32]bool)
  32502. v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d)
  32503. if changed {
  32504. *vp = v
  32505. }
  32506. } else {
  32507. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  32508. }
  32509. }
  32510. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  32511. v, changed := f.DecMapInt32BoolV(*vp, true, d)
  32512. if changed {
  32513. *vp = v
  32514. }
  32515. }
  32516. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  32517. d *Decoder) (_ map[int32]bool, changed bool) {
  32518. dd, esep := d.d, d.hh.hasElemSeparators()
  32519. containerLen := dd.ReadMapStart()
  32520. if canChange && v == nil {
  32521. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32522. v = make(map[int32]bool, xlen)
  32523. changed = true
  32524. }
  32525. if containerLen == 0 {
  32526. dd.ReadMapEnd()
  32527. return v, changed
  32528. }
  32529. d.depthIncr()
  32530. var mk int32
  32531. var mv bool
  32532. hasLen := containerLen > 0
  32533. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32534. if esep {
  32535. dd.ReadMapElemKey()
  32536. }
  32537. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32538. if esep {
  32539. dd.ReadMapElemValue()
  32540. }
  32541. if dd.TryDecodeAsNil() {
  32542. if v == nil {
  32543. } else if d.h.DeleteOnNilMapValue {
  32544. delete(v, mk)
  32545. } else {
  32546. v[mk] = false
  32547. }
  32548. continue
  32549. }
  32550. mv = dd.DecodeBool()
  32551. if v != nil {
  32552. v[mk] = mv
  32553. }
  32554. }
  32555. dd.ReadMapEnd()
  32556. d.depthDecr()
  32557. return v, changed
  32558. }
  32559. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  32560. if rv.Kind() == reflect.Ptr {
  32561. vp := rv2i(rv).(*map[int64]interface{})
  32562. v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d)
  32563. if changed {
  32564. *vp = v
  32565. }
  32566. } else {
  32567. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  32568. }
  32569. }
  32570. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  32571. v, changed := f.DecMapInt64IntfV(*vp, true, d)
  32572. if changed {
  32573. *vp = v
  32574. }
  32575. }
  32576. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  32577. d *Decoder) (_ map[int64]interface{}, changed bool) {
  32578. dd, esep := d.d, d.hh.hasElemSeparators()
  32579. containerLen := dd.ReadMapStart()
  32580. if canChange && v == nil {
  32581. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32582. v = make(map[int64]interface{}, xlen)
  32583. changed = true
  32584. }
  32585. if containerLen == 0 {
  32586. dd.ReadMapEnd()
  32587. return v, changed
  32588. }
  32589. d.depthIncr()
  32590. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  32591. var mk int64
  32592. var mv interface{}
  32593. hasLen := containerLen > 0
  32594. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32595. if esep {
  32596. dd.ReadMapElemKey()
  32597. }
  32598. mk = dd.DecodeInt64()
  32599. if esep {
  32600. dd.ReadMapElemValue()
  32601. }
  32602. if dd.TryDecodeAsNil() {
  32603. if v == nil {
  32604. } else if d.h.DeleteOnNilMapValue {
  32605. delete(v, mk)
  32606. } else {
  32607. v[mk] = nil
  32608. }
  32609. continue
  32610. }
  32611. if mapGet {
  32612. mv = v[mk]
  32613. } else {
  32614. mv = nil
  32615. }
  32616. d.decode(&mv)
  32617. if v != nil {
  32618. v[mk] = mv
  32619. }
  32620. }
  32621. dd.ReadMapEnd()
  32622. d.depthDecr()
  32623. return v, changed
  32624. }
  32625. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  32626. if rv.Kind() == reflect.Ptr {
  32627. vp := rv2i(rv).(*map[int64]string)
  32628. v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d)
  32629. if changed {
  32630. *vp = v
  32631. }
  32632. } else {
  32633. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  32634. }
  32635. }
  32636. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  32637. v, changed := f.DecMapInt64StringV(*vp, true, d)
  32638. if changed {
  32639. *vp = v
  32640. }
  32641. }
  32642. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  32643. d *Decoder) (_ map[int64]string, changed bool) {
  32644. dd, esep := d.d, d.hh.hasElemSeparators()
  32645. containerLen := dd.ReadMapStart()
  32646. if canChange && v == nil {
  32647. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32648. v = make(map[int64]string, xlen)
  32649. changed = true
  32650. }
  32651. if containerLen == 0 {
  32652. dd.ReadMapEnd()
  32653. return v, changed
  32654. }
  32655. d.depthIncr()
  32656. var mk int64
  32657. var mv string
  32658. hasLen := containerLen > 0
  32659. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32660. if esep {
  32661. dd.ReadMapElemKey()
  32662. }
  32663. mk = dd.DecodeInt64()
  32664. if esep {
  32665. dd.ReadMapElemValue()
  32666. }
  32667. if dd.TryDecodeAsNil() {
  32668. if v == nil {
  32669. } else if d.h.DeleteOnNilMapValue {
  32670. delete(v, mk)
  32671. } else {
  32672. v[mk] = ""
  32673. }
  32674. continue
  32675. }
  32676. mv = dd.DecodeString()
  32677. if v != nil {
  32678. v[mk] = mv
  32679. }
  32680. }
  32681. dd.ReadMapEnd()
  32682. d.depthDecr()
  32683. return v, changed
  32684. }
  32685. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  32686. if rv.Kind() == reflect.Ptr {
  32687. vp := rv2i(rv).(*map[int64]uint)
  32688. v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d)
  32689. if changed {
  32690. *vp = v
  32691. }
  32692. } else {
  32693. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  32694. }
  32695. }
  32696. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  32697. v, changed := f.DecMapInt64UintV(*vp, true, d)
  32698. if changed {
  32699. *vp = v
  32700. }
  32701. }
  32702. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  32703. d *Decoder) (_ map[int64]uint, changed bool) {
  32704. dd, esep := d.d, d.hh.hasElemSeparators()
  32705. containerLen := dd.ReadMapStart()
  32706. if canChange && v == nil {
  32707. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32708. v = make(map[int64]uint, xlen)
  32709. changed = true
  32710. }
  32711. if containerLen == 0 {
  32712. dd.ReadMapEnd()
  32713. return v, changed
  32714. }
  32715. d.depthIncr()
  32716. var mk int64
  32717. var mv uint
  32718. hasLen := containerLen > 0
  32719. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32720. if esep {
  32721. dd.ReadMapElemKey()
  32722. }
  32723. mk = dd.DecodeInt64()
  32724. if esep {
  32725. dd.ReadMapElemValue()
  32726. }
  32727. if dd.TryDecodeAsNil() {
  32728. if v == nil {
  32729. } else if d.h.DeleteOnNilMapValue {
  32730. delete(v, mk)
  32731. } else {
  32732. v[mk] = 0
  32733. }
  32734. continue
  32735. }
  32736. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32737. if v != nil {
  32738. v[mk] = mv
  32739. }
  32740. }
  32741. dd.ReadMapEnd()
  32742. d.depthDecr()
  32743. return v, changed
  32744. }
  32745. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  32746. if rv.Kind() == reflect.Ptr {
  32747. vp := rv2i(rv).(*map[int64]uint8)
  32748. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d)
  32749. if changed {
  32750. *vp = v
  32751. }
  32752. } else {
  32753. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  32754. }
  32755. }
  32756. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  32757. v, changed := f.DecMapInt64Uint8V(*vp, true, d)
  32758. if changed {
  32759. *vp = v
  32760. }
  32761. }
  32762. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  32763. d *Decoder) (_ map[int64]uint8, changed bool) {
  32764. dd, esep := d.d, d.hh.hasElemSeparators()
  32765. containerLen := dd.ReadMapStart()
  32766. if canChange && v == nil {
  32767. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32768. v = make(map[int64]uint8, xlen)
  32769. changed = true
  32770. }
  32771. if containerLen == 0 {
  32772. dd.ReadMapEnd()
  32773. return v, changed
  32774. }
  32775. d.depthIncr()
  32776. var mk int64
  32777. var mv uint8
  32778. hasLen := containerLen > 0
  32779. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32780. if esep {
  32781. dd.ReadMapElemKey()
  32782. }
  32783. mk = dd.DecodeInt64()
  32784. if esep {
  32785. dd.ReadMapElemValue()
  32786. }
  32787. if dd.TryDecodeAsNil() {
  32788. if v == nil {
  32789. } else if d.h.DeleteOnNilMapValue {
  32790. delete(v, mk)
  32791. } else {
  32792. v[mk] = 0
  32793. }
  32794. continue
  32795. }
  32796. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  32797. if v != nil {
  32798. v[mk] = mv
  32799. }
  32800. }
  32801. dd.ReadMapEnd()
  32802. d.depthDecr()
  32803. return v, changed
  32804. }
  32805. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  32806. if rv.Kind() == reflect.Ptr {
  32807. vp := rv2i(rv).(*map[int64]uint16)
  32808. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d)
  32809. if changed {
  32810. *vp = v
  32811. }
  32812. } else {
  32813. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  32814. }
  32815. }
  32816. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  32817. v, changed := f.DecMapInt64Uint16V(*vp, true, d)
  32818. if changed {
  32819. *vp = v
  32820. }
  32821. }
  32822. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  32823. d *Decoder) (_ map[int64]uint16, changed bool) {
  32824. dd, esep := d.d, d.hh.hasElemSeparators()
  32825. containerLen := dd.ReadMapStart()
  32826. if canChange && v == nil {
  32827. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32828. v = make(map[int64]uint16, xlen)
  32829. changed = true
  32830. }
  32831. if containerLen == 0 {
  32832. dd.ReadMapEnd()
  32833. return v, changed
  32834. }
  32835. d.depthIncr()
  32836. var mk int64
  32837. var mv uint16
  32838. hasLen := containerLen > 0
  32839. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32840. if esep {
  32841. dd.ReadMapElemKey()
  32842. }
  32843. mk = dd.DecodeInt64()
  32844. if esep {
  32845. dd.ReadMapElemValue()
  32846. }
  32847. if dd.TryDecodeAsNil() {
  32848. if v == nil {
  32849. } else if d.h.DeleteOnNilMapValue {
  32850. delete(v, mk)
  32851. } else {
  32852. v[mk] = 0
  32853. }
  32854. continue
  32855. }
  32856. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  32857. if v != nil {
  32858. v[mk] = mv
  32859. }
  32860. }
  32861. dd.ReadMapEnd()
  32862. d.depthDecr()
  32863. return v, changed
  32864. }
  32865. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  32866. if rv.Kind() == reflect.Ptr {
  32867. vp := rv2i(rv).(*map[int64]uint32)
  32868. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d)
  32869. if changed {
  32870. *vp = v
  32871. }
  32872. } else {
  32873. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  32874. }
  32875. }
  32876. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  32877. v, changed := f.DecMapInt64Uint32V(*vp, true, d)
  32878. if changed {
  32879. *vp = v
  32880. }
  32881. }
  32882. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  32883. d *Decoder) (_ map[int64]uint32, changed bool) {
  32884. dd, esep := d.d, d.hh.hasElemSeparators()
  32885. containerLen := dd.ReadMapStart()
  32886. if canChange && v == nil {
  32887. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32888. v = make(map[int64]uint32, xlen)
  32889. changed = true
  32890. }
  32891. if containerLen == 0 {
  32892. dd.ReadMapEnd()
  32893. return v, changed
  32894. }
  32895. d.depthIncr()
  32896. var mk int64
  32897. var mv uint32
  32898. hasLen := containerLen > 0
  32899. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32900. if esep {
  32901. dd.ReadMapElemKey()
  32902. }
  32903. mk = dd.DecodeInt64()
  32904. if esep {
  32905. dd.ReadMapElemValue()
  32906. }
  32907. if dd.TryDecodeAsNil() {
  32908. if v == nil {
  32909. } else if d.h.DeleteOnNilMapValue {
  32910. delete(v, mk)
  32911. } else {
  32912. v[mk] = 0
  32913. }
  32914. continue
  32915. }
  32916. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  32917. if v != nil {
  32918. v[mk] = mv
  32919. }
  32920. }
  32921. dd.ReadMapEnd()
  32922. d.depthDecr()
  32923. return v, changed
  32924. }
  32925. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  32926. if rv.Kind() == reflect.Ptr {
  32927. vp := rv2i(rv).(*map[int64]uint64)
  32928. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d)
  32929. if changed {
  32930. *vp = v
  32931. }
  32932. } else {
  32933. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  32934. }
  32935. }
  32936. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  32937. v, changed := f.DecMapInt64Uint64V(*vp, true, d)
  32938. if changed {
  32939. *vp = v
  32940. }
  32941. }
  32942. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  32943. d *Decoder) (_ map[int64]uint64, changed bool) {
  32944. dd, esep := d.d, d.hh.hasElemSeparators()
  32945. containerLen := dd.ReadMapStart()
  32946. if canChange && v == nil {
  32947. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32948. v = make(map[int64]uint64, xlen)
  32949. changed = true
  32950. }
  32951. if containerLen == 0 {
  32952. dd.ReadMapEnd()
  32953. return v, changed
  32954. }
  32955. d.depthIncr()
  32956. var mk int64
  32957. var mv uint64
  32958. hasLen := containerLen > 0
  32959. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32960. if esep {
  32961. dd.ReadMapElemKey()
  32962. }
  32963. mk = dd.DecodeInt64()
  32964. if esep {
  32965. dd.ReadMapElemValue()
  32966. }
  32967. if dd.TryDecodeAsNil() {
  32968. if v == nil {
  32969. } else if d.h.DeleteOnNilMapValue {
  32970. delete(v, mk)
  32971. } else {
  32972. v[mk] = 0
  32973. }
  32974. continue
  32975. }
  32976. mv = dd.DecodeUint64()
  32977. if v != nil {
  32978. v[mk] = mv
  32979. }
  32980. }
  32981. dd.ReadMapEnd()
  32982. d.depthDecr()
  32983. return v, changed
  32984. }
  32985. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  32986. if rv.Kind() == reflect.Ptr {
  32987. vp := rv2i(rv).(*map[int64]uintptr)
  32988. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d)
  32989. if changed {
  32990. *vp = v
  32991. }
  32992. } else {
  32993. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  32994. }
  32995. }
  32996. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  32997. v, changed := f.DecMapInt64UintptrV(*vp, true, d)
  32998. if changed {
  32999. *vp = v
  33000. }
  33001. }
  33002. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  33003. d *Decoder) (_ map[int64]uintptr, changed bool) {
  33004. dd, esep := d.d, d.hh.hasElemSeparators()
  33005. containerLen := dd.ReadMapStart()
  33006. if canChange && v == nil {
  33007. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33008. v = make(map[int64]uintptr, xlen)
  33009. changed = true
  33010. }
  33011. if containerLen == 0 {
  33012. dd.ReadMapEnd()
  33013. return v, changed
  33014. }
  33015. d.depthIncr()
  33016. var mk int64
  33017. var mv uintptr
  33018. hasLen := containerLen > 0
  33019. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33020. if esep {
  33021. dd.ReadMapElemKey()
  33022. }
  33023. mk = dd.DecodeInt64()
  33024. if esep {
  33025. dd.ReadMapElemValue()
  33026. }
  33027. if dd.TryDecodeAsNil() {
  33028. if v == nil {
  33029. } else if d.h.DeleteOnNilMapValue {
  33030. delete(v, mk)
  33031. } else {
  33032. v[mk] = 0
  33033. }
  33034. continue
  33035. }
  33036. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33037. if v != nil {
  33038. v[mk] = mv
  33039. }
  33040. }
  33041. dd.ReadMapEnd()
  33042. d.depthDecr()
  33043. return v, changed
  33044. }
  33045. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  33046. if rv.Kind() == reflect.Ptr {
  33047. vp := rv2i(rv).(*map[int64]int)
  33048. v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d)
  33049. if changed {
  33050. *vp = v
  33051. }
  33052. } else {
  33053. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  33054. }
  33055. }
  33056. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  33057. v, changed := f.DecMapInt64IntV(*vp, true, d)
  33058. if changed {
  33059. *vp = v
  33060. }
  33061. }
  33062. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  33063. d *Decoder) (_ map[int64]int, changed bool) {
  33064. dd, esep := d.d, d.hh.hasElemSeparators()
  33065. containerLen := dd.ReadMapStart()
  33066. if canChange && v == nil {
  33067. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33068. v = make(map[int64]int, xlen)
  33069. changed = true
  33070. }
  33071. if containerLen == 0 {
  33072. dd.ReadMapEnd()
  33073. return v, changed
  33074. }
  33075. d.depthIncr()
  33076. var mk int64
  33077. var mv int
  33078. hasLen := containerLen > 0
  33079. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33080. if esep {
  33081. dd.ReadMapElemKey()
  33082. }
  33083. mk = dd.DecodeInt64()
  33084. if esep {
  33085. dd.ReadMapElemValue()
  33086. }
  33087. if dd.TryDecodeAsNil() {
  33088. if v == nil {
  33089. } else if d.h.DeleteOnNilMapValue {
  33090. delete(v, mk)
  33091. } else {
  33092. v[mk] = 0
  33093. }
  33094. continue
  33095. }
  33096. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  33097. if v != nil {
  33098. v[mk] = mv
  33099. }
  33100. }
  33101. dd.ReadMapEnd()
  33102. d.depthDecr()
  33103. return v, changed
  33104. }
  33105. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  33106. if rv.Kind() == reflect.Ptr {
  33107. vp := rv2i(rv).(*map[int64]int8)
  33108. v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d)
  33109. if changed {
  33110. *vp = v
  33111. }
  33112. } else {
  33113. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  33114. }
  33115. }
  33116. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  33117. v, changed := f.DecMapInt64Int8V(*vp, true, d)
  33118. if changed {
  33119. *vp = v
  33120. }
  33121. }
  33122. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  33123. d *Decoder) (_ map[int64]int8, changed bool) {
  33124. dd, esep := d.d, d.hh.hasElemSeparators()
  33125. containerLen := dd.ReadMapStart()
  33126. if canChange && v == nil {
  33127. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33128. v = make(map[int64]int8, xlen)
  33129. changed = true
  33130. }
  33131. if containerLen == 0 {
  33132. dd.ReadMapEnd()
  33133. return v, changed
  33134. }
  33135. d.depthIncr()
  33136. var mk int64
  33137. var mv int8
  33138. hasLen := containerLen > 0
  33139. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33140. if esep {
  33141. dd.ReadMapElemKey()
  33142. }
  33143. mk = dd.DecodeInt64()
  33144. if esep {
  33145. dd.ReadMapElemValue()
  33146. }
  33147. if dd.TryDecodeAsNil() {
  33148. if v == nil {
  33149. } else if d.h.DeleteOnNilMapValue {
  33150. delete(v, mk)
  33151. } else {
  33152. v[mk] = 0
  33153. }
  33154. continue
  33155. }
  33156. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  33157. if v != nil {
  33158. v[mk] = mv
  33159. }
  33160. }
  33161. dd.ReadMapEnd()
  33162. d.depthDecr()
  33163. return v, changed
  33164. }
  33165. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  33166. if rv.Kind() == reflect.Ptr {
  33167. vp := rv2i(rv).(*map[int64]int16)
  33168. v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d)
  33169. if changed {
  33170. *vp = v
  33171. }
  33172. } else {
  33173. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  33174. }
  33175. }
  33176. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  33177. v, changed := f.DecMapInt64Int16V(*vp, true, d)
  33178. if changed {
  33179. *vp = v
  33180. }
  33181. }
  33182. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  33183. d *Decoder) (_ map[int64]int16, changed bool) {
  33184. dd, esep := d.d, d.hh.hasElemSeparators()
  33185. containerLen := dd.ReadMapStart()
  33186. if canChange && v == nil {
  33187. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33188. v = make(map[int64]int16, xlen)
  33189. changed = true
  33190. }
  33191. if containerLen == 0 {
  33192. dd.ReadMapEnd()
  33193. return v, changed
  33194. }
  33195. d.depthIncr()
  33196. var mk int64
  33197. var mv int16
  33198. hasLen := containerLen > 0
  33199. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33200. if esep {
  33201. dd.ReadMapElemKey()
  33202. }
  33203. mk = dd.DecodeInt64()
  33204. if esep {
  33205. dd.ReadMapElemValue()
  33206. }
  33207. if dd.TryDecodeAsNil() {
  33208. if v == nil {
  33209. } else if d.h.DeleteOnNilMapValue {
  33210. delete(v, mk)
  33211. } else {
  33212. v[mk] = 0
  33213. }
  33214. continue
  33215. }
  33216. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  33217. if v != nil {
  33218. v[mk] = mv
  33219. }
  33220. }
  33221. dd.ReadMapEnd()
  33222. d.depthDecr()
  33223. return v, changed
  33224. }
  33225. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  33226. if rv.Kind() == reflect.Ptr {
  33227. vp := rv2i(rv).(*map[int64]int32)
  33228. v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d)
  33229. if changed {
  33230. *vp = v
  33231. }
  33232. } else {
  33233. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  33234. }
  33235. }
  33236. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  33237. v, changed := f.DecMapInt64Int32V(*vp, true, d)
  33238. if changed {
  33239. *vp = v
  33240. }
  33241. }
  33242. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  33243. d *Decoder) (_ map[int64]int32, changed bool) {
  33244. dd, esep := d.d, d.hh.hasElemSeparators()
  33245. containerLen := dd.ReadMapStart()
  33246. if canChange && v == nil {
  33247. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33248. v = make(map[int64]int32, xlen)
  33249. changed = true
  33250. }
  33251. if containerLen == 0 {
  33252. dd.ReadMapEnd()
  33253. return v, changed
  33254. }
  33255. d.depthIncr()
  33256. var mk int64
  33257. var mv int32
  33258. hasLen := containerLen > 0
  33259. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33260. if esep {
  33261. dd.ReadMapElemKey()
  33262. }
  33263. mk = dd.DecodeInt64()
  33264. if esep {
  33265. dd.ReadMapElemValue()
  33266. }
  33267. if dd.TryDecodeAsNil() {
  33268. if v == nil {
  33269. } else if d.h.DeleteOnNilMapValue {
  33270. delete(v, mk)
  33271. } else {
  33272. v[mk] = 0
  33273. }
  33274. continue
  33275. }
  33276. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  33277. if v != nil {
  33278. v[mk] = mv
  33279. }
  33280. }
  33281. dd.ReadMapEnd()
  33282. d.depthDecr()
  33283. return v, changed
  33284. }
  33285. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  33286. if rv.Kind() == reflect.Ptr {
  33287. vp := rv2i(rv).(*map[int64]int64)
  33288. v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d)
  33289. if changed {
  33290. *vp = v
  33291. }
  33292. } else {
  33293. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  33294. }
  33295. }
  33296. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  33297. v, changed := f.DecMapInt64Int64V(*vp, true, d)
  33298. if changed {
  33299. *vp = v
  33300. }
  33301. }
  33302. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  33303. d *Decoder) (_ map[int64]int64, changed bool) {
  33304. dd, esep := d.d, d.hh.hasElemSeparators()
  33305. containerLen := dd.ReadMapStart()
  33306. if canChange && v == nil {
  33307. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33308. v = make(map[int64]int64, xlen)
  33309. changed = true
  33310. }
  33311. if containerLen == 0 {
  33312. dd.ReadMapEnd()
  33313. return v, changed
  33314. }
  33315. d.depthIncr()
  33316. var mk int64
  33317. var mv int64
  33318. hasLen := containerLen > 0
  33319. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33320. if esep {
  33321. dd.ReadMapElemKey()
  33322. }
  33323. mk = dd.DecodeInt64()
  33324. if esep {
  33325. dd.ReadMapElemValue()
  33326. }
  33327. if dd.TryDecodeAsNil() {
  33328. if v == nil {
  33329. } else if d.h.DeleteOnNilMapValue {
  33330. delete(v, mk)
  33331. } else {
  33332. v[mk] = 0
  33333. }
  33334. continue
  33335. }
  33336. mv = dd.DecodeInt64()
  33337. if v != nil {
  33338. v[mk] = mv
  33339. }
  33340. }
  33341. dd.ReadMapEnd()
  33342. d.depthDecr()
  33343. return v, changed
  33344. }
  33345. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  33346. if rv.Kind() == reflect.Ptr {
  33347. vp := rv2i(rv).(*map[int64]float32)
  33348. v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d)
  33349. if changed {
  33350. *vp = v
  33351. }
  33352. } else {
  33353. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  33354. }
  33355. }
  33356. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  33357. v, changed := f.DecMapInt64Float32V(*vp, true, d)
  33358. if changed {
  33359. *vp = v
  33360. }
  33361. }
  33362. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  33363. d *Decoder) (_ map[int64]float32, changed bool) {
  33364. dd, esep := d.d, d.hh.hasElemSeparators()
  33365. containerLen := dd.ReadMapStart()
  33366. if canChange && v == nil {
  33367. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33368. v = make(map[int64]float32, xlen)
  33369. changed = true
  33370. }
  33371. if containerLen == 0 {
  33372. dd.ReadMapEnd()
  33373. return v, changed
  33374. }
  33375. d.depthIncr()
  33376. var mk int64
  33377. var mv float32
  33378. hasLen := containerLen > 0
  33379. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33380. if esep {
  33381. dd.ReadMapElemKey()
  33382. }
  33383. mk = dd.DecodeInt64()
  33384. if esep {
  33385. dd.ReadMapElemValue()
  33386. }
  33387. if dd.TryDecodeAsNil() {
  33388. if v == nil {
  33389. } else if d.h.DeleteOnNilMapValue {
  33390. delete(v, mk)
  33391. } else {
  33392. v[mk] = 0
  33393. }
  33394. continue
  33395. }
  33396. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  33397. if v != nil {
  33398. v[mk] = mv
  33399. }
  33400. }
  33401. dd.ReadMapEnd()
  33402. d.depthDecr()
  33403. return v, changed
  33404. }
  33405. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  33406. if rv.Kind() == reflect.Ptr {
  33407. vp := rv2i(rv).(*map[int64]float64)
  33408. v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d)
  33409. if changed {
  33410. *vp = v
  33411. }
  33412. } else {
  33413. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  33414. }
  33415. }
  33416. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  33417. v, changed := f.DecMapInt64Float64V(*vp, true, d)
  33418. if changed {
  33419. *vp = v
  33420. }
  33421. }
  33422. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  33423. d *Decoder) (_ map[int64]float64, changed bool) {
  33424. dd, esep := d.d, d.hh.hasElemSeparators()
  33425. containerLen := dd.ReadMapStart()
  33426. if canChange && v == nil {
  33427. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33428. v = make(map[int64]float64, xlen)
  33429. changed = true
  33430. }
  33431. if containerLen == 0 {
  33432. dd.ReadMapEnd()
  33433. return v, changed
  33434. }
  33435. d.depthIncr()
  33436. var mk int64
  33437. var mv float64
  33438. hasLen := containerLen > 0
  33439. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33440. if esep {
  33441. dd.ReadMapElemKey()
  33442. }
  33443. mk = dd.DecodeInt64()
  33444. if esep {
  33445. dd.ReadMapElemValue()
  33446. }
  33447. if dd.TryDecodeAsNil() {
  33448. if v == nil {
  33449. } else if d.h.DeleteOnNilMapValue {
  33450. delete(v, mk)
  33451. } else {
  33452. v[mk] = 0
  33453. }
  33454. continue
  33455. }
  33456. mv = dd.DecodeFloat64()
  33457. if v != nil {
  33458. v[mk] = mv
  33459. }
  33460. }
  33461. dd.ReadMapEnd()
  33462. d.depthDecr()
  33463. return v, changed
  33464. }
  33465. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  33466. if rv.Kind() == reflect.Ptr {
  33467. vp := rv2i(rv).(*map[int64]bool)
  33468. v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d)
  33469. if changed {
  33470. *vp = v
  33471. }
  33472. } else {
  33473. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  33474. }
  33475. }
  33476. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  33477. v, changed := f.DecMapInt64BoolV(*vp, true, d)
  33478. if changed {
  33479. *vp = v
  33480. }
  33481. }
  33482. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  33483. d *Decoder) (_ map[int64]bool, changed bool) {
  33484. dd, esep := d.d, d.hh.hasElemSeparators()
  33485. containerLen := dd.ReadMapStart()
  33486. if canChange && v == nil {
  33487. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33488. v = make(map[int64]bool, xlen)
  33489. changed = true
  33490. }
  33491. if containerLen == 0 {
  33492. dd.ReadMapEnd()
  33493. return v, changed
  33494. }
  33495. d.depthIncr()
  33496. var mk int64
  33497. var mv bool
  33498. hasLen := containerLen > 0
  33499. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33500. if esep {
  33501. dd.ReadMapElemKey()
  33502. }
  33503. mk = dd.DecodeInt64()
  33504. if esep {
  33505. dd.ReadMapElemValue()
  33506. }
  33507. if dd.TryDecodeAsNil() {
  33508. if v == nil {
  33509. } else if d.h.DeleteOnNilMapValue {
  33510. delete(v, mk)
  33511. } else {
  33512. v[mk] = false
  33513. }
  33514. continue
  33515. }
  33516. mv = dd.DecodeBool()
  33517. if v != nil {
  33518. v[mk] = mv
  33519. }
  33520. }
  33521. dd.ReadMapEnd()
  33522. d.depthDecr()
  33523. return v, changed
  33524. }
  33525. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  33526. if rv.Kind() == reflect.Ptr {
  33527. vp := rv2i(rv).(*map[bool]interface{})
  33528. v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d)
  33529. if changed {
  33530. *vp = v
  33531. }
  33532. } else {
  33533. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  33534. }
  33535. }
  33536. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  33537. v, changed := f.DecMapBoolIntfV(*vp, true, d)
  33538. if changed {
  33539. *vp = v
  33540. }
  33541. }
  33542. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  33543. d *Decoder) (_ map[bool]interface{}, changed bool) {
  33544. dd, esep := d.d, d.hh.hasElemSeparators()
  33545. containerLen := dd.ReadMapStart()
  33546. if canChange && v == nil {
  33547. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33548. v = make(map[bool]interface{}, xlen)
  33549. changed = true
  33550. }
  33551. if containerLen == 0 {
  33552. dd.ReadMapEnd()
  33553. return v, changed
  33554. }
  33555. d.depthIncr()
  33556. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  33557. var mk bool
  33558. var mv interface{}
  33559. hasLen := containerLen > 0
  33560. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33561. if esep {
  33562. dd.ReadMapElemKey()
  33563. }
  33564. mk = dd.DecodeBool()
  33565. if esep {
  33566. dd.ReadMapElemValue()
  33567. }
  33568. if dd.TryDecodeAsNil() {
  33569. if v == nil {
  33570. } else if d.h.DeleteOnNilMapValue {
  33571. delete(v, mk)
  33572. } else {
  33573. v[mk] = nil
  33574. }
  33575. continue
  33576. }
  33577. if mapGet {
  33578. mv = v[mk]
  33579. } else {
  33580. mv = nil
  33581. }
  33582. d.decode(&mv)
  33583. if v != nil {
  33584. v[mk] = mv
  33585. }
  33586. }
  33587. dd.ReadMapEnd()
  33588. d.depthDecr()
  33589. return v, changed
  33590. }
  33591. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  33592. if rv.Kind() == reflect.Ptr {
  33593. vp := rv2i(rv).(*map[bool]string)
  33594. v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d)
  33595. if changed {
  33596. *vp = v
  33597. }
  33598. } else {
  33599. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  33600. }
  33601. }
  33602. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  33603. v, changed := f.DecMapBoolStringV(*vp, true, d)
  33604. if changed {
  33605. *vp = v
  33606. }
  33607. }
  33608. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  33609. d *Decoder) (_ map[bool]string, changed bool) {
  33610. dd, esep := d.d, d.hh.hasElemSeparators()
  33611. containerLen := dd.ReadMapStart()
  33612. if canChange && v == nil {
  33613. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33614. v = make(map[bool]string, xlen)
  33615. changed = true
  33616. }
  33617. if containerLen == 0 {
  33618. dd.ReadMapEnd()
  33619. return v, changed
  33620. }
  33621. d.depthIncr()
  33622. var mk bool
  33623. var mv string
  33624. hasLen := containerLen > 0
  33625. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33626. if esep {
  33627. dd.ReadMapElemKey()
  33628. }
  33629. mk = dd.DecodeBool()
  33630. if esep {
  33631. dd.ReadMapElemValue()
  33632. }
  33633. if dd.TryDecodeAsNil() {
  33634. if v == nil {
  33635. } else if d.h.DeleteOnNilMapValue {
  33636. delete(v, mk)
  33637. } else {
  33638. v[mk] = ""
  33639. }
  33640. continue
  33641. }
  33642. mv = dd.DecodeString()
  33643. if v != nil {
  33644. v[mk] = mv
  33645. }
  33646. }
  33647. dd.ReadMapEnd()
  33648. d.depthDecr()
  33649. return v, changed
  33650. }
  33651. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  33652. if rv.Kind() == reflect.Ptr {
  33653. vp := rv2i(rv).(*map[bool]uint)
  33654. v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d)
  33655. if changed {
  33656. *vp = v
  33657. }
  33658. } else {
  33659. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  33660. }
  33661. }
  33662. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  33663. v, changed := f.DecMapBoolUintV(*vp, true, d)
  33664. if changed {
  33665. *vp = v
  33666. }
  33667. }
  33668. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  33669. d *Decoder) (_ map[bool]uint, changed bool) {
  33670. dd, esep := d.d, d.hh.hasElemSeparators()
  33671. containerLen := dd.ReadMapStart()
  33672. if canChange && v == nil {
  33673. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33674. v = make(map[bool]uint, xlen)
  33675. changed = true
  33676. }
  33677. if containerLen == 0 {
  33678. dd.ReadMapEnd()
  33679. return v, changed
  33680. }
  33681. d.depthIncr()
  33682. var mk bool
  33683. var mv uint
  33684. hasLen := containerLen > 0
  33685. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33686. if esep {
  33687. dd.ReadMapElemKey()
  33688. }
  33689. mk = dd.DecodeBool()
  33690. if esep {
  33691. dd.ReadMapElemValue()
  33692. }
  33693. if dd.TryDecodeAsNil() {
  33694. if v == nil {
  33695. } else if d.h.DeleteOnNilMapValue {
  33696. delete(v, mk)
  33697. } else {
  33698. v[mk] = 0
  33699. }
  33700. continue
  33701. }
  33702. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33703. if v != nil {
  33704. v[mk] = mv
  33705. }
  33706. }
  33707. dd.ReadMapEnd()
  33708. d.depthDecr()
  33709. return v, changed
  33710. }
  33711. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  33712. if rv.Kind() == reflect.Ptr {
  33713. vp := rv2i(rv).(*map[bool]uint8)
  33714. v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d)
  33715. if changed {
  33716. *vp = v
  33717. }
  33718. } else {
  33719. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  33720. }
  33721. }
  33722. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  33723. v, changed := f.DecMapBoolUint8V(*vp, true, d)
  33724. if changed {
  33725. *vp = v
  33726. }
  33727. }
  33728. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  33729. d *Decoder) (_ map[bool]uint8, changed bool) {
  33730. dd, esep := d.d, d.hh.hasElemSeparators()
  33731. containerLen := dd.ReadMapStart()
  33732. if canChange && v == nil {
  33733. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33734. v = make(map[bool]uint8, xlen)
  33735. changed = true
  33736. }
  33737. if containerLen == 0 {
  33738. dd.ReadMapEnd()
  33739. return v, changed
  33740. }
  33741. d.depthIncr()
  33742. var mk bool
  33743. var mv uint8
  33744. hasLen := containerLen > 0
  33745. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33746. if esep {
  33747. dd.ReadMapElemKey()
  33748. }
  33749. mk = dd.DecodeBool()
  33750. if esep {
  33751. dd.ReadMapElemValue()
  33752. }
  33753. if dd.TryDecodeAsNil() {
  33754. if v == nil {
  33755. } else if d.h.DeleteOnNilMapValue {
  33756. delete(v, mk)
  33757. } else {
  33758. v[mk] = 0
  33759. }
  33760. continue
  33761. }
  33762. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  33763. if v != nil {
  33764. v[mk] = mv
  33765. }
  33766. }
  33767. dd.ReadMapEnd()
  33768. d.depthDecr()
  33769. return v, changed
  33770. }
  33771. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  33772. if rv.Kind() == reflect.Ptr {
  33773. vp := rv2i(rv).(*map[bool]uint16)
  33774. v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d)
  33775. if changed {
  33776. *vp = v
  33777. }
  33778. } else {
  33779. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  33780. }
  33781. }
  33782. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  33783. v, changed := f.DecMapBoolUint16V(*vp, true, d)
  33784. if changed {
  33785. *vp = v
  33786. }
  33787. }
  33788. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  33789. d *Decoder) (_ map[bool]uint16, changed bool) {
  33790. dd, esep := d.d, d.hh.hasElemSeparators()
  33791. containerLen := dd.ReadMapStart()
  33792. if canChange && v == nil {
  33793. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33794. v = make(map[bool]uint16, xlen)
  33795. changed = true
  33796. }
  33797. if containerLen == 0 {
  33798. dd.ReadMapEnd()
  33799. return v, changed
  33800. }
  33801. d.depthIncr()
  33802. var mk bool
  33803. var mv uint16
  33804. hasLen := containerLen > 0
  33805. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33806. if esep {
  33807. dd.ReadMapElemKey()
  33808. }
  33809. mk = dd.DecodeBool()
  33810. if esep {
  33811. dd.ReadMapElemValue()
  33812. }
  33813. if dd.TryDecodeAsNil() {
  33814. if v == nil {
  33815. } else if d.h.DeleteOnNilMapValue {
  33816. delete(v, mk)
  33817. } else {
  33818. v[mk] = 0
  33819. }
  33820. continue
  33821. }
  33822. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  33823. if v != nil {
  33824. v[mk] = mv
  33825. }
  33826. }
  33827. dd.ReadMapEnd()
  33828. d.depthDecr()
  33829. return v, changed
  33830. }
  33831. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  33832. if rv.Kind() == reflect.Ptr {
  33833. vp := rv2i(rv).(*map[bool]uint32)
  33834. v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d)
  33835. if changed {
  33836. *vp = v
  33837. }
  33838. } else {
  33839. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  33840. }
  33841. }
  33842. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  33843. v, changed := f.DecMapBoolUint32V(*vp, true, d)
  33844. if changed {
  33845. *vp = v
  33846. }
  33847. }
  33848. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  33849. d *Decoder) (_ map[bool]uint32, changed bool) {
  33850. dd, esep := d.d, d.hh.hasElemSeparators()
  33851. containerLen := dd.ReadMapStart()
  33852. if canChange && v == nil {
  33853. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33854. v = make(map[bool]uint32, xlen)
  33855. changed = true
  33856. }
  33857. if containerLen == 0 {
  33858. dd.ReadMapEnd()
  33859. return v, changed
  33860. }
  33861. d.depthIncr()
  33862. var mk bool
  33863. var mv uint32
  33864. hasLen := containerLen > 0
  33865. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33866. if esep {
  33867. dd.ReadMapElemKey()
  33868. }
  33869. mk = dd.DecodeBool()
  33870. if esep {
  33871. dd.ReadMapElemValue()
  33872. }
  33873. if dd.TryDecodeAsNil() {
  33874. if v == nil {
  33875. } else if d.h.DeleteOnNilMapValue {
  33876. delete(v, mk)
  33877. } else {
  33878. v[mk] = 0
  33879. }
  33880. continue
  33881. }
  33882. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  33883. if v != nil {
  33884. v[mk] = mv
  33885. }
  33886. }
  33887. dd.ReadMapEnd()
  33888. d.depthDecr()
  33889. return v, changed
  33890. }
  33891. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  33892. if rv.Kind() == reflect.Ptr {
  33893. vp := rv2i(rv).(*map[bool]uint64)
  33894. v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d)
  33895. if changed {
  33896. *vp = v
  33897. }
  33898. } else {
  33899. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  33900. }
  33901. }
  33902. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  33903. v, changed := f.DecMapBoolUint64V(*vp, true, d)
  33904. if changed {
  33905. *vp = v
  33906. }
  33907. }
  33908. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  33909. d *Decoder) (_ map[bool]uint64, changed bool) {
  33910. dd, esep := d.d, d.hh.hasElemSeparators()
  33911. containerLen := dd.ReadMapStart()
  33912. if canChange && v == nil {
  33913. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33914. v = make(map[bool]uint64, xlen)
  33915. changed = true
  33916. }
  33917. if containerLen == 0 {
  33918. dd.ReadMapEnd()
  33919. return v, changed
  33920. }
  33921. d.depthIncr()
  33922. var mk bool
  33923. var mv uint64
  33924. hasLen := containerLen > 0
  33925. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33926. if esep {
  33927. dd.ReadMapElemKey()
  33928. }
  33929. mk = dd.DecodeBool()
  33930. if esep {
  33931. dd.ReadMapElemValue()
  33932. }
  33933. if dd.TryDecodeAsNil() {
  33934. if v == nil {
  33935. } else if d.h.DeleteOnNilMapValue {
  33936. delete(v, mk)
  33937. } else {
  33938. v[mk] = 0
  33939. }
  33940. continue
  33941. }
  33942. mv = dd.DecodeUint64()
  33943. if v != nil {
  33944. v[mk] = mv
  33945. }
  33946. }
  33947. dd.ReadMapEnd()
  33948. d.depthDecr()
  33949. return v, changed
  33950. }
  33951. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  33952. if rv.Kind() == reflect.Ptr {
  33953. vp := rv2i(rv).(*map[bool]uintptr)
  33954. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d)
  33955. if changed {
  33956. *vp = v
  33957. }
  33958. } else {
  33959. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  33960. }
  33961. }
  33962. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  33963. v, changed := f.DecMapBoolUintptrV(*vp, true, d)
  33964. if changed {
  33965. *vp = v
  33966. }
  33967. }
  33968. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  33969. d *Decoder) (_ map[bool]uintptr, changed bool) {
  33970. dd, esep := d.d, d.hh.hasElemSeparators()
  33971. containerLen := dd.ReadMapStart()
  33972. if canChange && v == nil {
  33973. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33974. v = make(map[bool]uintptr, xlen)
  33975. changed = true
  33976. }
  33977. if containerLen == 0 {
  33978. dd.ReadMapEnd()
  33979. return v, changed
  33980. }
  33981. d.depthIncr()
  33982. var mk bool
  33983. var mv uintptr
  33984. hasLen := containerLen > 0
  33985. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33986. if esep {
  33987. dd.ReadMapElemKey()
  33988. }
  33989. mk = dd.DecodeBool()
  33990. if esep {
  33991. dd.ReadMapElemValue()
  33992. }
  33993. if dd.TryDecodeAsNil() {
  33994. if v == nil {
  33995. } else if d.h.DeleteOnNilMapValue {
  33996. delete(v, mk)
  33997. } else {
  33998. v[mk] = 0
  33999. }
  34000. continue
  34001. }
  34002. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  34003. if v != nil {
  34004. v[mk] = mv
  34005. }
  34006. }
  34007. dd.ReadMapEnd()
  34008. d.depthDecr()
  34009. return v, changed
  34010. }
  34011. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  34012. if rv.Kind() == reflect.Ptr {
  34013. vp := rv2i(rv).(*map[bool]int)
  34014. v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d)
  34015. if changed {
  34016. *vp = v
  34017. }
  34018. } else {
  34019. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  34020. }
  34021. }
  34022. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  34023. v, changed := f.DecMapBoolIntV(*vp, true, d)
  34024. if changed {
  34025. *vp = v
  34026. }
  34027. }
  34028. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  34029. d *Decoder) (_ map[bool]int, changed bool) {
  34030. dd, esep := d.d, d.hh.hasElemSeparators()
  34031. containerLen := dd.ReadMapStart()
  34032. if canChange && v == nil {
  34033. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34034. v = make(map[bool]int, xlen)
  34035. changed = true
  34036. }
  34037. if containerLen == 0 {
  34038. dd.ReadMapEnd()
  34039. return v, changed
  34040. }
  34041. d.depthIncr()
  34042. var mk bool
  34043. var mv int
  34044. hasLen := containerLen > 0
  34045. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34046. if esep {
  34047. dd.ReadMapElemKey()
  34048. }
  34049. mk = dd.DecodeBool()
  34050. if esep {
  34051. dd.ReadMapElemValue()
  34052. }
  34053. if dd.TryDecodeAsNil() {
  34054. if v == nil {
  34055. } else if d.h.DeleteOnNilMapValue {
  34056. delete(v, mk)
  34057. } else {
  34058. v[mk] = 0
  34059. }
  34060. continue
  34061. }
  34062. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  34063. if v != nil {
  34064. v[mk] = mv
  34065. }
  34066. }
  34067. dd.ReadMapEnd()
  34068. d.depthDecr()
  34069. return v, changed
  34070. }
  34071. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  34072. if rv.Kind() == reflect.Ptr {
  34073. vp := rv2i(rv).(*map[bool]int8)
  34074. v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d)
  34075. if changed {
  34076. *vp = v
  34077. }
  34078. } else {
  34079. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  34080. }
  34081. }
  34082. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  34083. v, changed := f.DecMapBoolInt8V(*vp, true, d)
  34084. if changed {
  34085. *vp = v
  34086. }
  34087. }
  34088. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  34089. d *Decoder) (_ map[bool]int8, changed bool) {
  34090. dd, esep := d.d, d.hh.hasElemSeparators()
  34091. containerLen := dd.ReadMapStart()
  34092. if canChange && v == nil {
  34093. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  34094. v = make(map[bool]int8, xlen)
  34095. changed = true
  34096. }
  34097. if containerLen == 0 {
  34098. dd.ReadMapEnd()
  34099. return v, changed
  34100. }
  34101. d.depthIncr()
  34102. var mk bool
  34103. var mv int8
  34104. hasLen := containerLen > 0
  34105. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34106. if esep {
  34107. dd.ReadMapElemKey()
  34108. }
  34109. mk = dd.DecodeBool()
  34110. if esep {
  34111. dd.ReadMapElemValue()
  34112. }
  34113. if dd.TryDecodeAsNil() {
  34114. if v == nil {
  34115. } else if d.h.DeleteOnNilMapValue {
  34116. delete(v, mk)
  34117. } else {
  34118. v[mk] = 0
  34119. }
  34120. continue
  34121. }
  34122. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  34123. if v != nil {
  34124. v[mk] = mv
  34125. }
  34126. }
  34127. dd.ReadMapEnd()
  34128. d.depthDecr()
  34129. return v, changed
  34130. }
  34131. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  34132. if rv.Kind() == reflect.Ptr {
  34133. vp := rv2i(rv).(*map[bool]int16)
  34134. v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d)
  34135. if changed {
  34136. *vp = v
  34137. }
  34138. } else {
  34139. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  34140. }
  34141. }
  34142. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  34143. v, changed := f.DecMapBoolInt16V(*vp, true, d)
  34144. if changed {
  34145. *vp = v
  34146. }
  34147. }
  34148. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  34149. d *Decoder) (_ map[bool]int16, changed bool) {
  34150. dd, esep := d.d, d.hh.hasElemSeparators()
  34151. containerLen := dd.ReadMapStart()
  34152. if canChange && v == nil {
  34153. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  34154. v = make(map[bool]int16, xlen)
  34155. changed = true
  34156. }
  34157. if containerLen == 0 {
  34158. dd.ReadMapEnd()
  34159. return v, changed
  34160. }
  34161. d.depthIncr()
  34162. var mk bool
  34163. var mv int16
  34164. hasLen := containerLen > 0
  34165. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34166. if esep {
  34167. dd.ReadMapElemKey()
  34168. }
  34169. mk = dd.DecodeBool()
  34170. if esep {
  34171. dd.ReadMapElemValue()
  34172. }
  34173. if dd.TryDecodeAsNil() {
  34174. if v == nil {
  34175. } else if d.h.DeleteOnNilMapValue {
  34176. delete(v, mk)
  34177. } else {
  34178. v[mk] = 0
  34179. }
  34180. continue
  34181. }
  34182. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  34183. if v != nil {
  34184. v[mk] = mv
  34185. }
  34186. }
  34187. dd.ReadMapEnd()
  34188. d.depthDecr()
  34189. return v, changed
  34190. }
  34191. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  34192. if rv.Kind() == reflect.Ptr {
  34193. vp := rv2i(rv).(*map[bool]int32)
  34194. v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d)
  34195. if changed {
  34196. *vp = v
  34197. }
  34198. } else {
  34199. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  34200. }
  34201. }
  34202. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  34203. v, changed := f.DecMapBoolInt32V(*vp, true, d)
  34204. if changed {
  34205. *vp = v
  34206. }
  34207. }
  34208. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  34209. d *Decoder) (_ map[bool]int32, changed bool) {
  34210. dd, esep := d.d, d.hh.hasElemSeparators()
  34211. containerLen := dd.ReadMapStart()
  34212. if canChange && v == nil {
  34213. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34214. v = make(map[bool]int32, xlen)
  34215. changed = true
  34216. }
  34217. if containerLen == 0 {
  34218. dd.ReadMapEnd()
  34219. return v, changed
  34220. }
  34221. d.depthIncr()
  34222. var mk bool
  34223. var mv int32
  34224. hasLen := containerLen > 0
  34225. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34226. if esep {
  34227. dd.ReadMapElemKey()
  34228. }
  34229. mk = dd.DecodeBool()
  34230. if esep {
  34231. dd.ReadMapElemValue()
  34232. }
  34233. if dd.TryDecodeAsNil() {
  34234. if v == nil {
  34235. } else if d.h.DeleteOnNilMapValue {
  34236. delete(v, mk)
  34237. } else {
  34238. v[mk] = 0
  34239. }
  34240. continue
  34241. }
  34242. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  34243. if v != nil {
  34244. v[mk] = mv
  34245. }
  34246. }
  34247. dd.ReadMapEnd()
  34248. d.depthDecr()
  34249. return v, changed
  34250. }
  34251. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  34252. if rv.Kind() == reflect.Ptr {
  34253. vp := rv2i(rv).(*map[bool]int64)
  34254. v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d)
  34255. if changed {
  34256. *vp = v
  34257. }
  34258. } else {
  34259. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  34260. }
  34261. }
  34262. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  34263. v, changed := f.DecMapBoolInt64V(*vp, true, d)
  34264. if changed {
  34265. *vp = v
  34266. }
  34267. }
  34268. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  34269. d *Decoder) (_ map[bool]int64, changed bool) {
  34270. dd, esep := d.d, d.hh.hasElemSeparators()
  34271. containerLen := dd.ReadMapStart()
  34272. if canChange && v == nil {
  34273. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34274. v = make(map[bool]int64, xlen)
  34275. changed = true
  34276. }
  34277. if containerLen == 0 {
  34278. dd.ReadMapEnd()
  34279. return v, changed
  34280. }
  34281. d.depthIncr()
  34282. var mk bool
  34283. var mv int64
  34284. hasLen := containerLen > 0
  34285. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34286. if esep {
  34287. dd.ReadMapElemKey()
  34288. }
  34289. mk = dd.DecodeBool()
  34290. if esep {
  34291. dd.ReadMapElemValue()
  34292. }
  34293. if dd.TryDecodeAsNil() {
  34294. if v == nil {
  34295. } else if d.h.DeleteOnNilMapValue {
  34296. delete(v, mk)
  34297. } else {
  34298. v[mk] = 0
  34299. }
  34300. continue
  34301. }
  34302. mv = dd.DecodeInt64()
  34303. if v != nil {
  34304. v[mk] = mv
  34305. }
  34306. }
  34307. dd.ReadMapEnd()
  34308. d.depthDecr()
  34309. return v, changed
  34310. }
  34311. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  34312. if rv.Kind() == reflect.Ptr {
  34313. vp := rv2i(rv).(*map[bool]float32)
  34314. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d)
  34315. if changed {
  34316. *vp = v
  34317. }
  34318. } else {
  34319. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  34320. }
  34321. }
  34322. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  34323. v, changed := f.DecMapBoolFloat32V(*vp, true, d)
  34324. if changed {
  34325. *vp = v
  34326. }
  34327. }
  34328. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  34329. d *Decoder) (_ map[bool]float32, changed bool) {
  34330. dd, esep := d.d, d.hh.hasElemSeparators()
  34331. containerLen := dd.ReadMapStart()
  34332. if canChange && v == nil {
  34333. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34334. v = make(map[bool]float32, xlen)
  34335. changed = true
  34336. }
  34337. if containerLen == 0 {
  34338. dd.ReadMapEnd()
  34339. return v, changed
  34340. }
  34341. d.depthIncr()
  34342. var mk bool
  34343. var mv float32
  34344. hasLen := containerLen > 0
  34345. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34346. if esep {
  34347. dd.ReadMapElemKey()
  34348. }
  34349. mk = dd.DecodeBool()
  34350. if esep {
  34351. dd.ReadMapElemValue()
  34352. }
  34353. if dd.TryDecodeAsNil() {
  34354. if v == nil {
  34355. } else if d.h.DeleteOnNilMapValue {
  34356. delete(v, mk)
  34357. } else {
  34358. v[mk] = 0
  34359. }
  34360. continue
  34361. }
  34362. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  34363. if v != nil {
  34364. v[mk] = mv
  34365. }
  34366. }
  34367. dd.ReadMapEnd()
  34368. d.depthDecr()
  34369. return v, changed
  34370. }
  34371. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  34372. if rv.Kind() == reflect.Ptr {
  34373. vp := rv2i(rv).(*map[bool]float64)
  34374. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d)
  34375. if changed {
  34376. *vp = v
  34377. }
  34378. } else {
  34379. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  34380. }
  34381. }
  34382. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  34383. v, changed := f.DecMapBoolFloat64V(*vp, true, d)
  34384. if changed {
  34385. *vp = v
  34386. }
  34387. }
  34388. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  34389. d *Decoder) (_ map[bool]float64, changed bool) {
  34390. dd, esep := d.d, d.hh.hasElemSeparators()
  34391. containerLen := dd.ReadMapStart()
  34392. if canChange && v == nil {
  34393. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34394. v = make(map[bool]float64, xlen)
  34395. changed = true
  34396. }
  34397. if containerLen == 0 {
  34398. dd.ReadMapEnd()
  34399. return v, changed
  34400. }
  34401. d.depthIncr()
  34402. var mk bool
  34403. var mv float64
  34404. hasLen := containerLen > 0
  34405. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34406. if esep {
  34407. dd.ReadMapElemKey()
  34408. }
  34409. mk = dd.DecodeBool()
  34410. if esep {
  34411. dd.ReadMapElemValue()
  34412. }
  34413. if dd.TryDecodeAsNil() {
  34414. if v == nil {
  34415. } else if d.h.DeleteOnNilMapValue {
  34416. delete(v, mk)
  34417. } else {
  34418. v[mk] = 0
  34419. }
  34420. continue
  34421. }
  34422. mv = dd.DecodeFloat64()
  34423. if v != nil {
  34424. v[mk] = mv
  34425. }
  34426. }
  34427. dd.ReadMapEnd()
  34428. d.depthDecr()
  34429. return v, changed
  34430. }
  34431. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  34432. if rv.Kind() == reflect.Ptr {
  34433. vp := rv2i(rv).(*map[bool]bool)
  34434. v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d)
  34435. if changed {
  34436. *vp = v
  34437. }
  34438. } else {
  34439. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  34440. }
  34441. }
  34442. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  34443. v, changed := f.DecMapBoolBoolV(*vp, true, d)
  34444. if changed {
  34445. *vp = v
  34446. }
  34447. }
  34448. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  34449. d *Decoder) (_ map[bool]bool, changed bool) {
  34450. dd, esep := d.d, d.hh.hasElemSeparators()
  34451. containerLen := dd.ReadMapStart()
  34452. if canChange && v == nil {
  34453. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  34454. v = make(map[bool]bool, xlen)
  34455. changed = true
  34456. }
  34457. if containerLen == 0 {
  34458. dd.ReadMapEnd()
  34459. return v, changed
  34460. }
  34461. d.depthIncr()
  34462. var mk bool
  34463. var mv bool
  34464. hasLen := containerLen > 0
  34465. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34466. if esep {
  34467. dd.ReadMapElemKey()
  34468. }
  34469. mk = dd.DecodeBool()
  34470. if esep {
  34471. dd.ReadMapElemValue()
  34472. }
  34473. if dd.TryDecodeAsNil() {
  34474. if v == nil {
  34475. } else if d.h.DeleteOnNilMapValue {
  34476. delete(v, mk)
  34477. } else {
  34478. v[mk] = false
  34479. }
  34480. continue
  34481. }
  34482. mv = dd.DecodeBool()
  34483. if v != nil {
  34484. v[mk] = mv
  34485. }
  34486. }
  34487. dd.ReadMapEnd()
  34488. d.depthDecr()
  34489. return v, changed
  34490. }