fast-path.generated.go 808 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070
  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. // Note: we use goto (instead of for loop) so this can be inlined.
  45. // h, i, j := 0, 0, len(x)
  46. var h, i uint
  47. var j = uint(len(x))
  48. LOOP:
  49. if i < j {
  50. h = i + (j-i)/2
  51. if x[h].rtid < rtid {
  52. i = h + 1
  53. } else {
  54. j = h
  55. }
  56. goto LOOP
  57. }
  58. if i < uint(len(x)) && x[i].rtid == rtid {
  59. return int(i)
  60. }
  61. return -1
  62. }
  63. type fastpathAslice []fastpathE
  64. func (x fastpathAslice) Len() int { return len(x) }
  65. func (x fastpathAslice) Less(i, j int) bool { return x[uint(i)].rtid < x[uint(j)].rtid }
  66. func (x fastpathAslice) Swap(i, j int) { x[uint(i)], x[uint(j)] = x[uint(j)], x[uint(i)] }
  67. var fastpathAV fastpathA
  68. // due to possible initialization loop error, make fastpath in an init()
  69. func init() {
  70. var i uint = 0
  71. fn := func(v interface{},
  72. fe func(*Encoder, *codecFnInfo, reflect.Value),
  73. fd func(*Decoder, *codecFnInfo, reflect.Value)) {
  74. xrt := reflect.TypeOf(v)
  75. xptr := rt2id(xrt)
  76. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  77. i++
  78. }
  79. fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
  80. fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
  81. fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
  82. fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
  83. fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
  84. fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
  85. fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
  86. fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
  87. fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
  88. fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
  89. fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
  90. fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
  91. fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
  92. fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
  93. fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
  94. fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
  95. fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
  96. fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
  97. fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
  98. fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
  99. fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
  100. fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
  101. fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
  102. fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
  103. fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
  104. fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
  105. fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
  106. fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
  107. fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
  108. fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
  109. fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
  110. fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
  111. fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
  112. fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
  113. fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
  114. fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
  115. fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
  116. fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
  117. fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
  118. fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
  119. fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
  120. fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
  121. fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
  122. fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
  123. fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
  124. fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
  125. fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
  126. fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
  127. fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
  128. fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
  129. fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
  130. fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
  131. fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
  132. fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
  133. fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
  134. fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
  135. fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
  136. fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
  137. fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
  138. fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
  139. fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
  140. fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
  141. fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
  142. fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
  143. fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
  144. fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
  145. fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
  146. fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
  147. fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
  148. fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
  149. fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
  150. fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
  151. fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
  152. fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
  153. fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
  154. fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
  155. fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
  156. fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
  157. fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
  158. fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
  159. fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
  160. fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
  161. fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
  162. fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
  163. fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
  164. fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
  165. fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
  166. fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
  167. fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
  168. fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
  169. fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
  170. fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
  171. fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
  172. fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
  173. fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
  174. fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
  175. fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
  176. fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
  177. fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
  178. fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
  179. fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
  180. fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
  181. fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
  182. fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
  183. fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
  184. fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
  185. fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
  186. fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
  187. fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
  188. fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
  189. fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
  190. fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
  191. fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
  192. fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
  193. fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
  194. fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
  195. fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
  196. fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
  197. fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
  198. fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
  199. fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
  200. fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
  201. fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
  202. fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
  203. fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
  204. fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
  205. fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
  206. fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
  207. fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
  208. fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
  209. fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
  210. fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
  211. fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
  212. fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
  213. fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
  214. fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
  215. fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
  216. fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
  217. fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
  218. fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
  219. fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
  220. fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
  221. fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
  222. fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
  223. fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
  224. fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
  225. fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
  226. fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
  227. fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
  228. fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
  229. fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
  230. fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
  231. fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
  232. fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
  233. fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
  234. fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
  235. fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
  236. fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
  237. fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
  238. fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
  239. fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
  240. fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
  241. fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
  242. fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
  243. fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
  244. fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
  245. fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
  246. fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
  247. fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
  248. fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
  249. fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
  250. fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
  251. fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
  252. fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
  253. fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
  254. fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
  255. fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
  256. fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
  257. fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
  258. fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
  259. fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
  260. fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
  261. fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
  262. fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
  263. fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
  264. fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
  265. fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
  266. fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
  267. fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
  268. fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
  269. fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
  270. fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
  271. fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
  272. fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
  273. fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
  274. fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
  275. fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
  276. fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
  277. fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
  278. fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
  279. fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
  280. fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
  281. fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
  282. fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
  283. fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
  284. fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
  285. fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
  286. fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
  287. fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
  288. fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
  289. fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
  290. fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
  291. fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
  292. fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
  293. fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
  294. fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
  295. fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
  296. fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
  297. fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
  298. fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
  299. fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
  300. fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
  301. fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
  302. fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
  303. fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
  304. fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
  305. fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
  306. fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
  307. fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
  308. fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
  309. fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
  310. fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
  311. fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
  312. fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
  313. fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
  314. fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
  315. fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
  316. fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
  317. fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
  318. fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
  319. fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
  320. fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
  321. fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
  322. fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
  323. fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
  324. fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
  325. fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
  326. fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
  327. fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
  328. fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
  329. fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
  330. fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
  331. fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
  332. fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
  333. fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
  334. fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
  335. fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
  336. fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
  337. fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
  338. fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
  339. fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
  340. fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
  341. fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
  342. fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
  343. fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
  344. fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
  345. fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
  346. fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
  347. fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
  348. fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
  349. fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
  350. sort.Sort(fastpathAslice(fastpathAV[:]))
  351. }
  352. // -- encode
  353. // -- -- fast path type switch
  354. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  355. switch v := iv.(type) {
  356. case []interface{}:
  357. fastpathTV.EncSliceIntfV(v, e)
  358. case *[]interface{}:
  359. fastpathTV.EncSliceIntfV(*v, e)
  360. case []string:
  361. fastpathTV.EncSliceStringV(v, e)
  362. case *[]string:
  363. fastpathTV.EncSliceStringV(*v, e)
  364. case []float32:
  365. fastpathTV.EncSliceFloat32V(v, e)
  366. case *[]float32:
  367. fastpathTV.EncSliceFloat32V(*v, e)
  368. case []float64:
  369. fastpathTV.EncSliceFloat64V(v, e)
  370. case *[]float64:
  371. fastpathTV.EncSliceFloat64V(*v, e)
  372. case []uint:
  373. fastpathTV.EncSliceUintV(v, e)
  374. case *[]uint:
  375. fastpathTV.EncSliceUintV(*v, e)
  376. case []uint16:
  377. fastpathTV.EncSliceUint16V(v, e)
  378. case *[]uint16:
  379. fastpathTV.EncSliceUint16V(*v, e)
  380. case []uint32:
  381. fastpathTV.EncSliceUint32V(v, e)
  382. case *[]uint32:
  383. fastpathTV.EncSliceUint32V(*v, e)
  384. case []uint64:
  385. fastpathTV.EncSliceUint64V(v, e)
  386. case *[]uint64:
  387. fastpathTV.EncSliceUint64V(*v, e)
  388. case []uintptr:
  389. fastpathTV.EncSliceUintptrV(v, e)
  390. case *[]uintptr:
  391. fastpathTV.EncSliceUintptrV(*v, e)
  392. case []int:
  393. fastpathTV.EncSliceIntV(v, e)
  394. case *[]int:
  395. fastpathTV.EncSliceIntV(*v, e)
  396. case []int8:
  397. fastpathTV.EncSliceInt8V(v, e)
  398. case *[]int8:
  399. fastpathTV.EncSliceInt8V(*v, e)
  400. case []int16:
  401. fastpathTV.EncSliceInt16V(v, e)
  402. case *[]int16:
  403. fastpathTV.EncSliceInt16V(*v, e)
  404. case []int32:
  405. fastpathTV.EncSliceInt32V(v, e)
  406. case *[]int32:
  407. fastpathTV.EncSliceInt32V(*v, e)
  408. case []int64:
  409. fastpathTV.EncSliceInt64V(v, e)
  410. case *[]int64:
  411. fastpathTV.EncSliceInt64V(*v, e)
  412. case []bool:
  413. fastpathTV.EncSliceBoolV(v, e)
  414. case *[]bool:
  415. fastpathTV.EncSliceBoolV(*v, e)
  416. case map[interface{}]interface{}:
  417. fastpathTV.EncMapIntfIntfV(v, e)
  418. case *map[interface{}]interface{}:
  419. fastpathTV.EncMapIntfIntfV(*v, e)
  420. case map[interface{}]string:
  421. fastpathTV.EncMapIntfStringV(v, e)
  422. case *map[interface{}]string:
  423. fastpathTV.EncMapIntfStringV(*v, e)
  424. case map[interface{}]uint:
  425. fastpathTV.EncMapIntfUintV(v, e)
  426. case *map[interface{}]uint:
  427. fastpathTV.EncMapIntfUintV(*v, e)
  428. case map[interface{}]uint8:
  429. fastpathTV.EncMapIntfUint8V(v, e)
  430. case *map[interface{}]uint8:
  431. fastpathTV.EncMapIntfUint8V(*v, e)
  432. case map[interface{}]uint16:
  433. fastpathTV.EncMapIntfUint16V(v, e)
  434. case *map[interface{}]uint16:
  435. fastpathTV.EncMapIntfUint16V(*v, e)
  436. case map[interface{}]uint32:
  437. fastpathTV.EncMapIntfUint32V(v, e)
  438. case *map[interface{}]uint32:
  439. fastpathTV.EncMapIntfUint32V(*v, e)
  440. case map[interface{}]uint64:
  441. fastpathTV.EncMapIntfUint64V(v, e)
  442. case *map[interface{}]uint64:
  443. fastpathTV.EncMapIntfUint64V(*v, e)
  444. case map[interface{}]uintptr:
  445. fastpathTV.EncMapIntfUintptrV(v, e)
  446. case *map[interface{}]uintptr:
  447. fastpathTV.EncMapIntfUintptrV(*v, e)
  448. case map[interface{}]int:
  449. fastpathTV.EncMapIntfIntV(v, e)
  450. case *map[interface{}]int:
  451. fastpathTV.EncMapIntfIntV(*v, e)
  452. case map[interface{}]int8:
  453. fastpathTV.EncMapIntfInt8V(v, e)
  454. case *map[interface{}]int8:
  455. fastpathTV.EncMapIntfInt8V(*v, e)
  456. case map[interface{}]int16:
  457. fastpathTV.EncMapIntfInt16V(v, e)
  458. case *map[interface{}]int16:
  459. fastpathTV.EncMapIntfInt16V(*v, e)
  460. case map[interface{}]int32:
  461. fastpathTV.EncMapIntfInt32V(v, e)
  462. case *map[interface{}]int32:
  463. fastpathTV.EncMapIntfInt32V(*v, e)
  464. case map[interface{}]int64:
  465. fastpathTV.EncMapIntfInt64V(v, e)
  466. case *map[interface{}]int64:
  467. fastpathTV.EncMapIntfInt64V(*v, e)
  468. case map[interface{}]float32:
  469. fastpathTV.EncMapIntfFloat32V(v, e)
  470. case *map[interface{}]float32:
  471. fastpathTV.EncMapIntfFloat32V(*v, e)
  472. case map[interface{}]float64:
  473. fastpathTV.EncMapIntfFloat64V(v, e)
  474. case *map[interface{}]float64:
  475. fastpathTV.EncMapIntfFloat64V(*v, e)
  476. case map[interface{}]bool:
  477. fastpathTV.EncMapIntfBoolV(v, e)
  478. case *map[interface{}]bool:
  479. fastpathTV.EncMapIntfBoolV(*v, e)
  480. case map[string]interface{}:
  481. fastpathTV.EncMapStringIntfV(v, e)
  482. case *map[string]interface{}:
  483. fastpathTV.EncMapStringIntfV(*v, e)
  484. case map[string]string:
  485. fastpathTV.EncMapStringStringV(v, e)
  486. case *map[string]string:
  487. fastpathTV.EncMapStringStringV(*v, e)
  488. case map[string]uint:
  489. fastpathTV.EncMapStringUintV(v, e)
  490. case *map[string]uint:
  491. fastpathTV.EncMapStringUintV(*v, e)
  492. case map[string]uint8:
  493. fastpathTV.EncMapStringUint8V(v, e)
  494. case *map[string]uint8:
  495. fastpathTV.EncMapStringUint8V(*v, e)
  496. case map[string]uint16:
  497. fastpathTV.EncMapStringUint16V(v, e)
  498. case *map[string]uint16:
  499. fastpathTV.EncMapStringUint16V(*v, e)
  500. case map[string]uint32:
  501. fastpathTV.EncMapStringUint32V(v, e)
  502. case *map[string]uint32:
  503. fastpathTV.EncMapStringUint32V(*v, e)
  504. case map[string]uint64:
  505. fastpathTV.EncMapStringUint64V(v, e)
  506. case *map[string]uint64:
  507. fastpathTV.EncMapStringUint64V(*v, e)
  508. case map[string]uintptr:
  509. fastpathTV.EncMapStringUintptrV(v, e)
  510. case *map[string]uintptr:
  511. fastpathTV.EncMapStringUintptrV(*v, e)
  512. case map[string]int:
  513. fastpathTV.EncMapStringIntV(v, e)
  514. case *map[string]int:
  515. fastpathTV.EncMapStringIntV(*v, e)
  516. case map[string]int8:
  517. fastpathTV.EncMapStringInt8V(v, e)
  518. case *map[string]int8:
  519. fastpathTV.EncMapStringInt8V(*v, e)
  520. case map[string]int16:
  521. fastpathTV.EncMapStringInt16V(v, e)
  522. case *map[string]int16:
  523. fastpathTV.EncMapStringInt16V(*v, e)
  524. case map[string]int32:
  525. fastpathTV.EncMapStringInt32V(v, e)
  526. case *map[string]int32:
  527. fastpathTV.EncMapStringInt32V(*v, e)
  528. case map[string]int64:
  529. fastpathTV.EncMapStringInt64V(v, e)
  530. case *map[string]int64:
  531. fastpathTV.EncMapStringInt64V(*v, e)
  532. case map[string]float32:
  533. fastpathTV.EncMapStringFloat32V(v, e)
  534. case *map[string]float32:
  535. fastpathTV.EncMapStringFloat32V(*v, e)
  536. case map[string]float64:
  537. fastpathTV.EncMapStringFloat64V(v, e)
  538. case *map[string]float64:
  539. fastpathTV.EncMapStringFloat64V(*v, e)
  540. case map[string]bool:
  541. fastpathTV.EncMapStringBoolV(v, e)
  542. case *map[string]bool:
  543. fastpathTV.EncMapStringBoolV(*v, e)
  544. case map[float32]interface{}:
  545. fastpathTV.EncMapFloat32IntfV(v, e)
  546. case *map[float32]interface{}:
  547. fastpathTV.EncMapFloat32IntfV(*v, e)
  548. case map[float32]string:
  549. fastpathTV.EncMapFloat32StringV(v, e)
  550. case *map[float32]string:
  551. fastpathTV.EncMapFloat32StringV(*v, e)
  552. case map[float32]uint:
  553. fastpathTV.EncMapFloat32UintV(v, e)
  554. case *map[float32]uint:
  555. fastpathTV.EncMapFloat32UintV(*v, e)
  556. case map[float32]uint8:
  557. fastpathTV.EncMapFloat32Uint8V(v, e)
  558. case *map[float32]uint8:
  559. fastpathTV.EncMapFloat32Uint8V(*v, e)
  560. case map[float32]uint16:
  561. fastpathTV.EncMapFloat32Uint16V(v, e)
  562. case *map[float32]uint16:
  563. fastpathTV.EncMapFloat32Uint16V(*v, e)
  564. case map[float32]uint32:
  565. fastpathTV.EncMapFloat32Uint32V(v, e)
  566. case *map[float32]uint32:
  567. fastpathTV.EncMapFloat32Uint32V(*v, e)
  568. case map[float32]uint64:
  569. fastpathTV.EncMapFloat32Uint64V(v, e)
  570. case *map[float32]uint64:
  571. fastpathTV.EncMapFloat32Uint64V(*v, e)
  572. case map[float32]uintptr:
  573. fastpathTV.EncMapFloat32UintptrV(v, e)
  574. case *map[float32]uintptr:
  575. fastpathTV.EncMapFloat32UintptrV(*v, e)
  576. case map[float32]int:
  577. fastpathTV.EncMapFloat32IntV(v, e)
  578. case *map[float32]int:
  579. fastpathTV.EncMapFloat32IntV(*v, e)
  580. case map[float32]int8:
  581. fastpathTV.EncMapFloat32Int8V(v, e)
  582. case *map[float32]int8:
  583. fastpathTV.EncMapFloat32Int8V(*v, e)
  584. case map[float32]int16:
  585. fastpathTV.EncMapFloat32Int16V(v, e)
  586. case *map[float32]int16:
  587. fastpathTV.EncMapFloat32Int16V(*v, e)
  588. case map[float32]int32:
  589. fastpathTV.EncMapFloat32Int32V(v, e)
  590. case *map[float32]int32:
  591. fastpathTV.EncMapFloat32Int32V(*v, e)
  592. case map[float32]int64:
  593. fastpathTV.EncMapFloat32Int64V(v, e)
  594. case *map[float32]int64:
  595. fastpathTV.EncMapFloat32Int64V(*v, e)
  596. case map[float32]float32:
  597. fastpathTV.EncMapFloat32Float32V(v, e)
  598. case *map[float32]float32:
  599. fastpathTV.EncMapFloat32Float32V(*v, e)
  600. case map[float32]float64:
  601. fastpathTV.EncMapFloat32Float64V(v, e)
  602. case *map[float32]float64:
  603. fastpathTV.EncMapFloat32Float64V(*v, e)
  604. case map[float32]bool:
  605. fastpathTV.EncMapFloat32BoolV(v, e)
  606. case *map[float32]bool:
  607. fastpathTV.EncMapFloat32BoolV(*v, e)
  608. case map[float64]interface{}:
  609. fastpathTV.EncMapFloat64IntfV(v, e)
  610. case *map[float64]interface{}:
  611. fastpathTV.EncMapFloat64IntfV(*v, e)
  612. case map[float64]string:
  613. fastpathTV.EncMapFloat64StringV(v, e)
  614. case *map[float64]string:
  615. fastpathTV.EncMapFloat64StringV(*v, e)
  616. case map[float64]uint:
  617. fastpathTV.EncMapFloat64UintV(v, e)
  618. case *map[float64]uint:
  619. fastpathTV.EncMapFloat64UintV(*v, e)
  620. case map[float64]uint8:
  621. fastpathTV.EncMapFloat64Uint8V(v, e)
  622. case *map[float64]uint8:
  623. fastpathTV.EncMapFloat64Uint8V(*v, e)
  624. case map[float64]uint16:
  625. fastpathTV.EncMapFloat64Uint16V(v, e)
  626. case *map[float64]uint16:
  627. fastpathTV.EncMapFloat64Uint16V(*v, e)
  628. case map[float64]uint32:
  629. fastpathTV.EncMapFloat64Uint32V(v, e)
  630. case *map[float64]uint32:
  631. fastpathTV.EncMapFloat64Uint32V(*v, e)
  632. case map[float64]uint64:
  633. fastpathTV.EncMapFloat64Uint64V(v, e)
  634. case *map[float64]uint64:
  635. fastpathTV.EncMapFloat64Uint64V(*v, e)
  636. case map[float64]uintptr:
  637. fastpathTV.EncMapFloat64UintptrV(v, e)
  638. case *map[float64]uintptr:
  639. fastpathTV.EncMapFloat64UintptrV(*v, e)
  640. case map[float64]int:
  641. fastpathTV.EncMapFloat64IntV(v, e)
  642. case *map[float64]int:
  643. fastpathTV.EncMapFloat64IntV(*v, e)
  644. case map[float64]int8:
  645. fastpathTV.EncMapFloat64Int8V(v, e)
  646. case *map[float64]int8:
  647. fastpathTV.EncMapFloat64Int8V(*v, e)
  648. case map[float64]int16:
  649. fastpathTV.EncMapFloat64Int16V(v, e)
  650. case *map[float64]int16:
  651. fastpathTV.EncMapFloat64Int16V(*v, e)
  652. case map[float64]int32:
  653. fastpathTV.EncMapFloat64Int32V(v, e)
  654. case *map[float64]int32:
  655. fastpathTV.EncMapFloat64Int32V(*v, e)
  656. case map[float64]int64:
  657. fastpathTV.EncMapFloat64Int64V(v, e)
  658. case *map[float64]int64:
  659. fastpathTV.EncMapFloat64Int64V(*v, e)
  660. case map[float64]float32:
  661. fastpathTV.EncMapFloat64Float32V(v, e)
  662. case *map[float64]float32:
  663. fastpathTV.EncMapFloat64Float32V(*v, e)
  664. case map[float64]float64:
  665. fastpathTV.EncMapFloat64Float64V(v, e)
  666. case *map[float64]float64:
  667. fastpathTV.EncMapFloat64Float64V(*v, e)
  668. case map[float64]bool:
  669. fastpathTV.EncMapFloat64BoolV(v, e)
  670. case *map[float64]bool:
  671. fastpathTV.EncMapFloat64BoolV(*v, e)
  672. case map[uint]interface{}:
  673. fastpathTV.EncMapUintIntfV(v, e)
  674. case *map[uint]interface{}:
  675. fastpathTV.EncMapUintIntfV(*v, e)
  676. case map[uint]string:
  677. fastpathTV.EncMapUintStringV(v, e)
  678. case *map[uint]string:
  679. fastpathTV.EncMapUintStringV(*v, e)
  680. case map[uint]uint:
  681. fastpathTV.EncMapUintUintV(v, e)
  682. case *map[uint]uint:
  683. fastpathTV.EncMapUintUintV(*v, e)
  684. case map[uint]uint8:
  685. fastpathTV.EncMapUintUint8V(v, e)
  686. case *map[uint]uint8:
  687. fastpathTV.EncMapUintUint8V(*v, e)
  688. case map[uint]uint16:
  689. fastpathTV.EncMapUintUint16V(v, e)
  690. case *map[uint]uint16:
  691. fastpathTV.EncMapUintUint16V(*v, e)
  692. case map[uint]uint32:
  693. fastpathTV.EncMapUintUint32V(v, e)
  694. case *map[uint]uint32:
  695. fastpathTV.EncMapUintUint32V(*v, e)
  696. case map[uint]uint64:
  697. fastpathTV.EncMapUintUint64V(v, e)
  698. case *map[uint]uint64:
  699. fastpathTV.EncMapUintUint64V(*v, e)
  700. case map[uint]uintptr:
  701. fastpathTV.EncMapUintUintptrV(v, e)
  702. case *map[uint]uintptr:
  703. fastpathTV.EncMapUintUintptrV(*v, e)
  704. case map[uint]int:
  705. fastpathTV.EncMapUintIntV(v, e)
  706. case *map[uint]int:
  707. fastpathTV.EncMapUintIntV(*v, e)
  708. case map[uint]int8:
  709. fastpathTV.EncMapUintInt8V(v, e)
  710. case *map[uint]int8:
  711. fastpathTV.EncMapUintInt8V(*v, e)
  712. case map[uint]int16:
  713. fastpathTV.EncMapUintInt16V(v, e)
  714. case *map[uint]int16:
  715. fastpathTV.EncMapUintInt16V(*v, e)
  716. case map[uint]int32:
  717. fastpathTV.EncMapUintInt32V(v, e)
  718. case *map[uint]int32:
  719. fastpathTV.EncMapUintInt32V(*v, e)
  720. case map[uint]int64:
  721. fastpathTV.EncMapUintInt64V(v, e)
  722. case *map[uint]int64:
  723. fastpathTV.EncMapUintInt64V(*v, e)
  724. case map[uint]float32:
  725. fastpathTV.EncMapUintFloat32V(v, e)
  726. case *map[uint]float32:
  727. fastpathTV.EncMapUintFloat32V(*v, e)
  728. case map[uint]float64:
  729. fastpathTV.EncMapUintFloat64V(v, e)
  730. case *map[uint]float64:
  731. fastpathTV.EncMapUintFloat64V(*v, e)
  732. case map[uint]bool:
  733. fastpathTV.EncMapUintBoolV(v, e)
  734. case *map[uint]bool:
  735. fastpathTV.EncMapUintBoolV(*v, e)
  736. case map[uint8]interface{}:
  737. fastpathTV.EncMapUint8IntfV(v, e)
  738. case *map[uint8]interface{}:
  739. fastpathTV.EncMapUint8IntfV(*v, e)
  740. case map[uint8]string:
  741. fastpathTV.EncMapUint8StringV(v, e)
  742. case *map[uint8]string:
  743. fastpathTV.EncMapUint8StringV(*v, e)
  744. case map[uint8]uint:
  745. fastpathTV.EncMapUint8UintV(v, e)
  746. case *map[uint8]uint:
  747. fastpathTV.EncMapUint8UintV(*v, e)
  748. case map[uint8]uint8:
  749. fastpathTV.EncMapUint8Uint8V(v, e)
  750. case *map[uint8]uint8:
  751. fastpathTV.EncMapUint8Uint8V(*v, e)
  752. case map[uint8]uint16:
  753. fastpathTV.EncMapUint8Uint16V(v, e)
  754. case *map[uint8]uint16:
  755. fastpathTV.EncMapUint8Uint16V(*v, e)
  756. case map[uint8]uint32:
  757. fastpathTV.EncMapUint8Uint32V(v, e)
  758. case *map[uint8]uint32:
  759. fastpathTV.EncMapUint8Uint32V(*v, e)
  760. case map[uint8]uint64:
  761. fastpathTV.EncMapUint8Uint64V(v, e)
  762. case *map[uint8]uint64:
  763. fastpathTV.EncMapUint8Uint64V(*v, e)
  764. case map[uint8]uintptr:
  765. fastpathTV.EncMapUint8UintptrV(v, e)
  766. case *map[uint8]uintptr:
  767. fastpathTV.EncMapUint8UintptrV(*v, e)
  768. case map[uint8]int:
  769. fastpathTV.EncMapUint8IntV(v, e)
  770. case *map[uint8]int:
  771. fastpathTV.EncMapUint8IntV(*v, e)
  772. case map[uint8]int8:
  773. fastpathTV.EncMapUint8Int8V(v, e)
  774. case *map[uint8]int8:
  775. fastpathTV.EncMapUint8Int8V(*v, e)
  776. case map[uint8]int16:
  777. fastpathTV.EncMapUint8Int16V(v, e)
  778. case *map[uint8]int16:
  779. fastpathTV.EncMapUint8Int16V(*v, e)
  780. case map[uint8]int32:
  781. fastpathTV.EncMapUint8Int32V(v, e)
  782. case *map[uint8]int32:
  783. fastpathTV.EncMapUint8Int32V(*v, e)
  784. case map[uint8]int64:
  785. fastpathTV.EncMapUint8Int64V(v, e)
  786. case *map[uint8]int64:
  787. fastpathTV.EncMapUint8Int64V(*v, e)
  788. case map[uint8]float32:
  789. fastpathTV.EncMapUint8Float32V(v, e)
  790. case *map[uint8]float32:
  791. fastpathTV.EncMapUint8Float32V(*v, e)
  792. case map[uint8]float64:
  793. fastpathTV.EncMapUint8Float64V(v, e)
  794. case *map[uint8]float64:
  795. fastpathTV.EncMapUint8Float64V(*v, e)
  796. case map[uint8]bool:
  797. fastpathTV.EncMapUint8BoolV(v, e)
  798. case *map[uint8]bool:
  799. fastpathTV.EncMapUint8BoolV(*v, e)
  800. case map[uint16]interface{}:
  801. fastpathTV.EncMapUint16IntfV(v, e)
  802. case *map[uint16]interface{}:
  803. fastpathTV.EncMapUint16IntfV(*v, e)
  804. case map[uint16]string:
  805. fastpathTV.EncMapUint16StringV(v, e)
  806. case *map[uint16]string:
  807. fastpathTV.EncMapUint16StringV(*v, e)
  808. case map[uint16]uint:
  809. fastpathTV.EncMapUint16UintV(v, e)
  810. case *map[uint16]uint:
  811. fastpathTV.EncMapUint16UintV(*v, e)
  812. case map[uint16]uint8:
  813. fastpathTV.EncMapUint16Uint8V(v, e)
  814. case *map[uint16]uint8:
  815. fastpathTV.EncMapUint16Uint8V(*v, e)
  816. case map[uint16]uint16:
  817. fastpathTV.EncMapUint16Uint16V(v, e)
  818. case *map[uint16]uint16:
  819. fastpathTV.EncMapUint16Uint16V(*v, e)
  820. case map[uint16]uint32:
  821. fastpathTV.EncMapUint16Uint32V(v, e)
  822. case *map[uint16]uint32:
  823. fastpathTV.EncMapUint16Uint32V(*v, e)
  824. case map[uint16]uint64:
  825. fastpathTV.EncMapUint16Uint64V(v, e)
  826. case *map[uint16]uint64:
  827. fastpathTV.EncMapUint16Uint64V(*v, e)
  828. case map[uint16]uintptr:
  829. fastpathTV.EncMapUint16UintptrV(v, e)
  830. case *map[uint16]uintptr:
  831. fastpathTV.EncMapUint16UintptrV(*v, e)
  832. case map[uint16]int:
  833. fastpathTV.EncMapUint16IntV(v, e)
  834. case *map[uint16]int:
  835. fastpathTV.EncMapUint16IntV(*v, e)
  836. case map[uint16]int8:
  837. fastpathTV.EncMapUint16Int8V(v, e)
  838. case *map[uint16]int8:
  839. fastpathTV.EncMapUint16Int8V(*v, e)
  840. case map[uint16]int16:
  841. fastpathTV.EncMapUint16Int16V(v, e)
  842. case *map[uint16]int16:
  843. fastpathTV.EncMapUint16Int16V(*v, e)
  844. case map[uint16]int32:
  845. fastpathTV.EncMapUint16Int32V(v, e)
  846. case *map[uint16]int32:
  847. fastpathTV.EncMapUint16Int32V(*v, e)
  848. case map[uint16]int64:
  849. fastpathTV.EncMapUint16Int64V(v, e)
  850. case *map[uint16]int64:
  851. fastpathTV.EncMapUint16Int64V(*v, e)
  852. case map[uint16]float32:
  853. fastpathTV.EncMapUint16Float32V(v, e)
  854. case *map[uint16]float32:
  855. fastpathTV.EncMapUint16Float32V(*v, e)
  856. case map[uint16]float64:
  857. fastpathTV.EncMapUint16Float64V(v, e)
  858. case *map[uint16]float64:
  859. fastpathTV.EncMapUint16Float64V(*v, e)
  860. case map[uint16]bool:
  861. fastpathTV.EncMapUint16BoolV(v, e)
  862. case *map[uint16]bool:
  863. fastpathTV.EncMapUint16BoolV(*v, e)
  864. case map[uint32]interface{}:
  865. fastpathTV.EncMapUint32IntfV(v, e)
  866. case *map[uint32]interface{}:
  867. fastpathTV.EncMapUint32IntfV(*v, e)
  868. case map[uint32]string:
  869. fastpathTV.EncMapUint32StringV(v, e)
  870. case *map[uint32]string:
  871. fastpathTV.EncMapUint32StringV(*v, e)
  872. case map[uint32]uint:
  873. fastpathTV.EncMapUint32UintV(v, e)
  874. case *map[uint32]uint:
  875. fastpathTV.EncMapUint32UintV(*v, e)
  876. case map[uint32]uint8:
  877. fastpathTV.EncMapUint32Uint8V(v, e)
  878. case *map[uint32]uint8:
  879. fastpathTV.EncMapUint32Uint8V(*v, e)
  880. case map[uint32]uint16:
  881. fastpathTV.EncMapUint32Uint16V(v, e)
  882. case *map[uint32]uint16:
  883. fastpathTV.EncMapUint32Uint16V(*v, e)
  884. case map[uint32]uint32:
  885. fastpathTV.EncMapUint32Uint32V(v, e)
  886. case *map[uint32]uint32:
  887. fastpathTV.EncMapUint32Uint32V(*v, e)
  888. case map[uint32]uint64:
  889. fastpathTV.EncMapUint32Uint64V(v, e)
  890. case *map[uint32]uint64:
  891. fastpathTV.EncMapUint32Uint64V(*v, e)
  892. case map[uint32]uintptr:
  893. fastpathTV.EncMapUint32UintptrV(v, e)
  894. case *map[uint32]uintptr:
  895. fastpathTV.EncMapUint32UintptrV(*v, e)
  896. case map[uint32]int:
  897. fastpathTV.EncMapUint32IntV(v, e)
  898. case *map[uint32]int:
  899. fastpathTV.EncMapUint32IntV(*v, e)
  900. case map[uint32]int8:
  901. fastpathTV.EncMapUint32Int8V(v, e)
  902. case *map[uint32]int8:
  903. fastpathTV.EncMapUint32Int8V(*v, e)
  904. case map[uint32]int16:
  905. fastpathTV.EncMapUint32Int16V(v, e)
  906. case *map[uint32]int16:
  907. fastpathTV.EncMapUint32Int16V(*v, e)
  908. case map[uint32]int32:
  909. fastpathTV.EncMapUint32Int32V(v, e)
  910. case *map[uint32]int32:
  911. fastpathTV.EncMapUint32Int32V(*v, e)
  912. case map[uint32]int64:
  913. fastpathTV.EncMapUint32Int64V(v, e)
  914. case *map[uint32]int64:
  915. fastpathTV.EncMapUint32Int64V(*v, e)
  916. case map[uint32]float32:
  917. fastpathTV.EncMapUint32Float32V(v, e)
  918. case *map[uint32]float32:
  919. fastpathTV.EncMapUint32Float32V(*v, e)
  920. case map[uint32]float64:
  921. fastpathTV.EncMapUint32Float64V(v, e)
  922. case *map[uint32]float64:
  923. fastpathTV.EncMapUint32Float64V(*v, e)
  924. case map[uint32]bool:
  925. fastpathTV.EncMapUint32BoolV(v, e)
  926. case *map[uint32]bool:
  927. fastpathTV.EncMapUint32BoolV(*v, e)
  928. case map[uint64]interface{}:
  929. fastpathTV.EncMapUint64IntfV(v, e)
  930. case *map[uint64]interface{}:
  931. fastpathTV.EncMapUint64IntfV(*v, e)
  932. case map[uint64]string:
  933. fastpathTV.EncMapUint64StringV(v, e)
  934. case *map[uint64]string:
  935. fastpathTV.EncMapUint64StringV(*v, e)
  936. case map[uint64]uint:
  937. fastpathTV.EncMapUint64UintV(v, e)
  938. case *map[uint64]uint:
  939. fastpathTV.EncMapUint64UintV(*v, e)
  940. case map[uint64]uint8:
  941. fastpathTV.EncMapUint64Uint8V(v, e)
  942. case *map[uint64]uint8:
  943. fastpathTV.EncMapUint64Uint8V(*v, e)
  944. case map[uint64]uint16:
  945. fastpathTV.EncMapUint64Uint16V(v, e)
  946. case *map[uint64]uint16:
  947. fastpathTV.EncMapUint64Uint16V(*v, e)
  948. case map[uint64]uint32:
  949. fastpathTV.EncMapUint64Uint32V(v, e)
  950. case *map[uint64]uint32:
  951. fastpathTV.EncMapUint64Uint32V(*v, e)
  952. case map[uint64]uint64:
  953. fastpathTV.EncMapUint64Uint64V(v, e)
  954. case *map[uint64]uint64:
  955. fastpathTV.EncMapUint64Uint64V(*v, e)
  956. case map[uint64]uintptr:
  957. fastpathTV.EncMapUint64UintptrV(v, e)
  958. case *map[uint64]uintptr:
  959. fastpathTV.EncMapUint64UintptrV(*v, e)
  960. case map[uint64]int:
  961. fastpathTV.EncMapUint64IntV(v, e)
  962. case *map[uint64]int:
  963. fastpathTV.EncMapUint64IntV(*v, e)
  964. case map[uint64]int8:
  965. fastpathTV.EncMapUint64Int8V(v, e)
  966. case *map[uint64]int8:
  967. fastpathTV.EncMapUint64Int8V(*v, e)
  968. case map[uint64]int16:
  969. fastpathTV.EncMapUint64Int16V(v, e)
  970. case *map[uint64]int16:
  971. fastpathTV.EncMapUint64Int16V(*v, e)
  972. case map[uint64]int32:
  973. fastpathTV.EncMapUint64Int32V(v, e)
  974. case *map[uint64]int32:
  975. fastpathTV.EncMapUint64Int32V(*v, e)
  976. case map[uint64]int64:
  977. fastpathTV.EncMapUint64Int64V(v, e)
  978. case *map[uint64]int64:
  979. fastpathTV.EncMapUint64Int64V(*v, e)
  980. case map[uint64]float32:
  981. fastpathTV.EncMapUint64Float32V(v, e)
  982. case *map[uint64]float32:
  983. fastpathTV.EncMapUint64Float32V(*v, e)
  984. case map[uint64]float64:
  985. fastpathTV.EncMapUint64Float64V(v, e)
  986. case *map[uint64]float64:
  987. fastpathTV.EncMapUint64Float64V(*v, e)
  988. case map[uint64]bool:
  989. fastpathTV.EncMapUint64BoolV(v, e)
  990. case *map[uint64]bool:
  991. fastpathTV.EncMapUint64BoolV(*v, e)
  992. case map[uintptr]interface{}:
  993. fastpathTV.EncMapUintptrIntfV(v, e)
  994. case *map[uintptr]interface{}:
  995. fastpathTV.EncMapUintptrIntfV(*v, e)
  996. case map[uintptr]string:
  997. fastpathTV.EncMapUintptrStringV(v, e)
  998. case *map[uintptr]string:
  999. fastpathTV.EncMapUintptrStringV(*v, e)
  1000. case map[uintptr]uint:
  1001. fastpathTV.EncMapUintptrUintV(v, e)
  1002. case *map[uintptr]uint:
  1003. fastpathTV.EncMapUintptrUintV(*v, e)
  1004. case map[uintptr]uint8:
  1005. fastpathTV.EncMapUintptrUint8V(v, e)
  1006. case *map[uintptr]uint8:
  1007. fastpathTV.EncMapUintptrUint8V(*v, e)
  1008. case map[uintptr]uint16:
  1009. fastpathTV.EncMapUintptrUint16V(v, e)
  1010. case *map[uintptr]uint16:
  1011. fastpathTV.EncMapUintptrUint16V(*v, e)
  1012. case map[uintptr]uint32:
  1013. fastpathTV.EncMapUintptrUint32V(v, e)
  1014. case *map[uintptr]uint32:
  1015. fastpathTV.EncMapUintptrUint32V(*v, e)
  1016. case map[uintptr]uint64:
  1017. fastpathTV.EncMapUintptrUint64V(v, e)
  1018. case *map[uintptr]uint64:
  1019. fastpathTV.EncMapUintptrUint64V(*v, e)
  1020. case map[uintptr]uintptr:
  1021. fastpathTV.EncMapUintptrUintptrV(v, e)
  1022. case *map[uintptr]uintptr:
  1023. fastpathTV.EncMapUintptrUintptrV(*v, e)
  1024. case map[uintptr]int:
  1025. fastpathTV.EncMapUintptrIntV(v, e)
  1026. case *map[uintptr]int:
  1027. fastpathTV.EncMapUintptrIntV(*v, e)
  1028. case map[uintptr]int8:
  1029. fastpathTV.EncMapUintptrInt8V(v, e)
  1030. case *map[uintptr]int8:
  1031. fastpathTV.EncMapUintptrInt8V(*v, e)
  1032. case map[uintptr]int16:
  1033. fastpathTV.EncMapUintptrInt16V(v, e)
  1034. case *map[uintptr]int16:
  1035. fastpathTV.EncMapUintptrInt16V(*v, e)
  1036. case map[uintptr]int32:
  1037. fastpathTV.EncMapUintptrInt32V(v, e)
  1038. case *map[uintptr]int32:
  1039. fastpathTV.EncMapUintptrInt32V(*v, e)
  1040. case map[uintptr]int64:
  1041. fastpathTV.EncMapUintptrInt64V(v, e)
  1042. case *map[uintptr]int64:
  1043. fastpathTV.EncMapUintptrInt64V(*v, e)
  1044. case map[uintptr]float32:
  1045. fastpathTV.EncMapUintptrFloat32V(v, e)
  1046. case *map[uintptr]float32:
  1047. fastpathTV.EncMapUintptrFloat32V(*v, e)
  1048. case map[uintptr]float64:
  1049. fastpathTV.EncMapUintptrFloat64V(v, e)
  1050. case *map[uintptr]float64:
  1051. fastpathTV.EncMapUintptrFloat64V(*v, e)
  1052. case map[uintptr]bool:
  1053. fastpathTV.EncMapUintptrBoolV(v, e)
  1054. case *map[uintptr]bool:
  1055. fastpathTV.EncMapUintptrBoolV(*v, e)
  1056. case map[int]interface{}:
  1057. fastpathTV.EncMapIntIntfV(v, e)
  1058. case *map[int]interface{}:
  1059. fastpathTV.EncMapIntIntfV(*v, e)
  1060. case map[int]string:
  1061. fastpathTV.EncMapIntStringV(v, e)
  1062. case *map[int]string:
  1063. fastpathTV.EncMapIntStringV(*v, e)
  1064. case map[int]uint:
  1065. fastpathTV.EncMapIntUintV(v, e)
  1066. case *map[int]uint:
  1067. fastpathTV.EncMapIntUintV(*v, e)
  1068. case map[int]uint8:
  1069. fastpathTV.EncMapIntUint8V(v, e)
  1070. case *map[int]uint8:
  1071. fastpathTV.EncMapIntUint8V(*v, e)
  1072. case map[int]uint16:
  1073. fastpathTV.EncMapIntUint16V(v, e)
  1074. case *map[int]uint16:
  1075. fastpathTV.EncMapIntUint16V(*v, e)
  1076. case map[int]uint32:
  1077. fastpathTV.EncMapIntUint32V(v, e)
  1078. case *map[int]uint32:
  1079. fastpathTV.EncMapIntUint32V(*v, e)
  1080. case map[int]uint64:
  1081. fastpathTV.EncMapIntUint64V(v, e)
  1082. case *map[int]uint64:
  1083. fastpathTV.EncMapIntUint64V(*v, e)
  1084. case map[int]uintptr:
  1085. fastpathTV.EncMapIntUintptrV(v, e)
  1086. case *map[int]uintptr:
  1087. fastpathTV.EncMapIntUintptrV(*v, e)
  1088. case map[int]int:
  1089. fastpathTV.EncMapIntIntV(v, e)
  1090. case *map[int]int:
  1091. fastpathTV.EncMapIntIntV(*v, e)
  1092. case map[int]int8:
  1093. fastpathTV.EncMapIntInt8V(v, e)
  1094. case *map[int]int8:
  1095. fastpathTV.EncMapIntInt8V(*v, e)
  1096. case map[int]int16:
  1097. fastpathTV.EncMapIntInt16V(v, e)
  1098. case *map[int]int16:
  1099. fastpathTV.EncMapIntInt16V(*v, e)
  1100. case map[int]int32:
  1101. fastpathTV.EncMapIntInt32V(v, e)
  1102. case *map[int]int32:
  1103. fastpathTV.EncMapIntInt32V(*v, e)
  1104. case map[int]int64:
  1105. fastpathTV.EncMapIntInt64V(v, e)
  1106. case *map[int]int64:
  1107. fastpathTV.EncMapIntInt64V(*v, e)
  1108. case map[int]float32:
  1109. fastpathTV.EncMapIntFloat32V(v, e)
  1110. case *map[int]float32:
  1111. fastpathTV.EncMapIntFloat32V(*v, e)
  1112. case map[int]float64:
  1113. fastpathTV.EncMapIntFloat64V(v, e)
  1114. case *map[int]float64:
  1115. fastpathTV.EncMapIntFloat64V(*v, e)
  1116. case map[int]bool:
  1117. fastpathTV.EncMapIntBoolV(v, e)
  1118. case *map[int]bool:
  1119. fastpathTV.EncMapIntBoolV(*v, e)
  1120. case map[int8]interface{}:
  1121. fastpathTV.EncMapInt8IntfV(v, e)
  1122. case *map[int8]interface{}:
  1123. fastpathTV.EncMapInt8IntfV(*v, e)
  1124. case map[int8]string:
  1125. fastpathTV.EncMapInt8StringV(v, e)
  1126. case *map[int8]string:
  1127. fastpathTV.EncMapInt8StringV(*v, e)
  1128. case map[int8]uint:
  1129. fastpathTV.EncMapInt8UintV(v, e)
  1130. case *map[int8]uint:
  1131. fastpathTV.EncMapInt8UintV(*v, e)
  1132. case map[int8]uint8:
  1133. fastpathTV.EncMapInt8Uint8V(v, e)
  1134. case *map[int8]uint8:
  1135. fastpathTV.EncMapInt8Uint8V(*v, e)
  1136. case map[int8]uint16:
  1137. fastpathTV.EncMapInt8Uint16V(v, e)
  1138. case *map[int8]uint16:
  1139. fastpathTV.EncMapInt8Uint16V(*v, e)
  1140. case map[int8]uint32:
  1141. fastpathTV.EncMapInt8Uint32V(v, e)
  1142. case *map[int8]uint32:
  1143. fastpathTV.EncMapInt8Uint32V(*v, e)
  1144. case map[int8]uint64:
  1145. fastpathTV.EncMapInt8Uint64V(v, e)
  1146. case *map[int8]uint64:
  1147. fastpathTV.EncMapInt8Uint64V(*v, e)
  1148. case map[int8]uintptr:
  1149. fastpathTV.EncMapInt8UintptrV(v, e)
  1150. case *map[int8]uintptr:
  1151. fastpathTV.EncMapInt8UintptrV(*v, e)
  1152. case map[int8]int:
  1153. fastpathTV.EncMapInt8IntV(v, e)
  1154. case *map[int8]int:
  1155. fastpathTV.EncMapInt8IntV(*v, e)
  1156. case map[int8]int8:
  1157. fastpathTV.EncMapInt8Int8V(v, e)
  1158. case *map[int8]int8:
  1159. fastpathTV.EncMapInt8Int8V(*v, e)
  1160. case map[int8]int16:
  1161. fastpathTV.EncMapInt8Int16V(v, e)
  1162. case *map[int8]int16:
  1163. fastpathTV.EncMapInt8Int16V(*v, e)
  1164. case map[int8]int32:
  1165. fastpathTV.EncMapInt8Int32V(v, e)
  1166. case *map[int8]int32:
  1167. fastpathTV.EncMapInt8Int32V(*v, e)
  1168. case map[int8]int64:
  1169. fastpathTV.EncMapInt8Int64V(v, e)
  1170. case *map[int8]int64:
  1171. fastpathTV.EncMapInt8Int64V(*v, e)
  1172. case map[int8]float32:
  1173. fastpathTV.EncMapInt8Float32V(v, e)
  1174. case *map[int8]float32:
  1175. fastpathTV.EncMapInt8Float32V(*v, e)
  1176. case map[int8]float64:
  1177. fastpathTV.EncMapInt8Float64V(v, e)
  1178. case *map[int8]float64:
  1179. fastpathTV.EncMapInt8Float64V(*v, e)
  1180. case map[int8]bool:
  1181. fastpathTV.EncMapInt8BoolV(v, e)
  1182. case *map[int8]bool:
  1183. fastpathTV.EncMapInt8BoolV(*v, e)
  1184. case map[int16]interface{}:
  1185. fastpathTV.EncMapInt16IntfV(v, e)
  1186. case *map[int16]interface{}:
  1187. fastpathTV.EncMapInt16IntfV(*v, e)
  1188. case map[int16]string:
  1189. fastpathTV.EncMapInt16StringV(v, e)
  1190. case *map[int16]string:
  1191. fastpathTV.EncMapInt16StringV(*v, e)
  1192. case map[int16]uint:
  1193. fastpathTV.EncMapInt16UintV(v, e)
  1194. case *map[int16]uint:
  1195. fastpathTV.EncMapInt16UintV(*v, e)
  1196. case map[int16]uint8:
  1197. fastpathTV.EncMapInt16Uint8V(v, e)
  1198. case *map[int16]uint8:
  1199. fastpathTV.EncMapInt16Uint8V(*v, e)
  1200. case map[int16]uint16:
  1201. fastpathTV.EncMapInt16Uint16V(v, e)
  1202. case *map[int16]uint16:
  1203. fastpathTV.EncMapInt16Uint16V(*v, e)
  1204. case map[int16]uint32:
  1205. fastpathTV.EncMapInt16Uint32V(v, e)
  1206. case *map[int16]uint32:
  1207. fastpathTV.EncMapInt16Uint32V(*v, e)
  1208. case map[int16]uint64:
  1209. fastpathTV.EncMapInt16Uint64V(v, e)
  1210. case *map[int16]uint64:
  1211. fastpathTV.EncMapInt16Uint64V(*v, e)
  1212. case map[int16]uintptr:
  1213. fastpathTV.EncMapInt16UintptrV(v, e)
  1214. case *map[int16]uintptr:
  1215. fastpathTV.EncMapInt16UintptrV(*v, e)
  1216. case map[int16]int:
  1217. fastpathTV.EncMapInt16IntV(v, e)
  1218. case *map[int16]int:
  1219. fastpathTV.EncMapInt16IntV(*v, e)
  1220. case map[int16]int8:
  1221. fastpathTV.EncMapInt16Int8V(v, e)
  1222. case *map[int16]int8:
  1223. fastpathTV.EncMapInt16Int8V(*v, e)
  1224. case map[int16]int16:
  1225. fastpathTV.EncMapInt16Int16V(v, e)
  1226. case *map[int16]int16:
  1227. fastpathTV.EncMapInt16Int16V(*v, e)
  1228. case map[int16]int32:
  1229. fastpathTV.EncMapInt16Int32V(v, e)
  1230. case *map[int16]int32:
  1231. fastpathTV.EncMapInt16Int32V(*v, e)
  1232. case map[int16]int64:
  1233. fastpathTV.EncMapInt16Int64V(v, e)
  1234. case *map[int16]int64:
  1235. fastpathTV.EncMapInt16Int64V(*v, e)
  1236. case map[int16]float32:
  1237. fastpathTV.EncMapInt16Float32V(v, e)
  1238. case *map[int16]float32:
  1239. fastpathTV.EncMapInt16Float32V(*v, e)
  1240. case map[int16]float64:
  1241. fastpathTV.EncMapInt16Float64V(v, e)
  1242. case *map[int16]float64:
  1243. fastpathTV.EncMapInt16Float64V(*v, e)
  1244. case map[int16]bool:
  1245. fastpathTV.EncMapInt16BoolV(v, e)
  1246. case *map[int16]bool:
  1247. fastpathTV.EncMapInt16BoolV(*v, e)
  1248. case map[int32]interface{}:
  1249. fastpathTV.EncMapInt32IntfV(v, e)
  1250. case *map[int32]interface{}:
  1251. fastpathTV.EncMapInt32IntfV(*v, e)
  1252. case map[int32]string:
  1253. fastpathTV.EncMapInt32StringV(v, e)
  1254. case *map[int32]string:
  1255. fastpathTV.EncMapInt32StringV(*v, e)
  1256. case map[int32]uint:
  1257. fastpathTV.EncMapInt32UintV(v, e)
  1258. case *map[int32]uint:
  1259. fastpathTV.EncMapInt32UintV(*v, e)
  1260. case map[int32]uint8:
  1261. fastpathTV.EncMapInt32Uint8V(v, e)
  1262. case *map[int32]uint8:
  1263. fastpathTV.EncMapInt32Uint8V(*v, e)
  1264. case map[int32]uint16:
  1265. fastpathTV.EncMapInt32Uint16V(v, e)
  1266. case *map[int32]uint16:
  1267. fastpathTV.EncMapInt32Uint16V(*v, e)
  1268. case map[int32]uint32:
  1269. fastpathTV.EncMapInt32Uint32V(v, e)
  1270. case *map[int32]uint32:
  1271. fastpathTV.EncMapInt32Uint32V(*v, e)
  1272. case map[int32]uint64:
  1273. fastpathTV.EncMapInt32Uint64V(v, e)
  1274. case *map[int32]uint64:
  1275. fastpathTV.EncMapInt32Uint64V(*v, e)
  1276. case map[int32]uintptr:
  1277. fastpathTV.EncMapInt32UintptrV(v, e)
  1278. case *map[int32]uintptr:
  1279. fastpathTV.EncMapInt32UintptrV(*v, e)
  1280. case map[int32]int:
  1281. fastpathTV.EncMapInt32IntV(v, e)
  1282. case *map[int32]int:
  1283. fastpathTV.EncMapInt32IntV(*v, e)
  1284. case map[int32]int8:
  1285. fastpathTV.EncMapInt32Int8V(v, e)
  1286. case *map[int32]int8:
  1287. fastpathTV.EncMapInt32Int8V(*v, e)
  1288. case map[int32]int16:
  1289. fastpathTV.EncMapInt32Int16V(v, e)
  1290. case *map[int32]int16:
  1291. fastpathTV.EncMapInt32Int16V(*v, e)
  1292. case map[int32]int32:
  1293. fastpathTV.EncMapInt32Int32V(v, e)
  1294. case *map[int32]int32:
  1295. fastpathTV.EncMapInt32Int32V(*v, e)
  1296. case map[int32]int64:
  1297. fastpathTV.EncMapInt32Int64V(v, e)
  1298. case *map[int32]int64:
  1299. fastpathTV.EncMapInt32Int64V(*v, e)
  1300. case map[int32]float32:
  1301. fastpathTV.EncMapInt32Float32V(v, e)
  1302. case *map[int32]float32:
  1303. fastpathTV.EncMapInt32Float32V(*v, e)
  1304. case map[int32]float64:
  1305. fastpathTV.EncMapInt32Float64V(v, e)
  1306. case *map[int32]float64:
  1307. fastpathTV.EncMapInt32Float64V(*v, e)
  1308. case map[int32]bool:
  1309. fastpathTV.EncMapInt32BoolV(v, e)
  1310. case *map[int32]bool:
  1311. fastpathTV.EncMapInt32BoolV(*v, e)
  1312. case map[int64]interface{}:
  1313. fastpathTV.EncMapInt64IntfV(v, e)
  1314. case *map[int64]interface{}:
  1315. fastpathTV.EncMapInt64IntfV(*v, e)
  1316. case map[int64]string:
  1317. fastpathTV.EncMapInt64StringV(v, e)
  1318. case *map[int64]string:
  1319. fastpathTV.EncMapInt64StringV(*v, e)
  1320. case map[int64]uint:
  1321. fastpathTV.EncMapInt64UintV(v, e)
  1322. case *map[int64]uint:
  1323. fastpathTV.EncMapInt64UintV(*v, e)
  1324. case map[int64]uint8:
  1325. fastpathTV.EncMapInt64Uint8V(v, e)
  1326. case *map[int64]uint8:
  1327. fastpathTV.EncMapInt64Uint8V(*v, e)
  1328. case map[int64]uint16:
  1329. fastpathTV.EncMapInt64Uint16V(v, e)
  1330. case *map[int64]uint16:
  1331. fastpathTV.EncMapInt64Uint16V(*v, e)
  1332. case map[int64]uint32:
  1333. fastpathTV.EncMapInt64Uint32V(v, e)
  1334. case *map[int64]uint32:
  1335. fastpathTV.EncMapInt64Uint32V(*v, e)
  1336. case map[int64]uint64:
  1337. fastpathTV.EncMapInt64Uint64V(v, e)
  1338. case *map[int64]uint64:
  1339. fastpathTV.EncMapInt64Uint64V(*v, e)
  1340. case map[int64]uintptr:
  1341. fastpathTV.EncMapInt64UintptrV(v, e)
  1342. case *map[int64]uintptr:
  1343. fastpathTV.EncMapInt64UintptrV(*v, e)
  1344. case map[int64]int:
  1345. fastpathTV.EncMapInt64IntV(v, e)
  1346. case *map[int64]int:
  1347. fastpathTV.EncMapInt64IntV(*v, e)
  1348. case map[int64]int8:
  1349. fastpathTV.EncMapInt64Int8V(v, e)
  1350. case *map[int64]int8:
  1351. fastpathTV.EncMapInt64Int8V(*v, e)
  1352. case map[int64]int16:
  1353. fastpathTV.EncMapInt64Int16V(v, e)
  1354. case *map[int64]int16:
  1355. fastpathTV.EncMapInt64Int16V(*v, e)
  1356. case map[int64]int32:
  1357. fastpathTV.EncMapInt64Int32V(v, e)
  1358. case *map[int64]int32:
  1359. fastpathTV.EncMapInt64Int32V(*v, e)
  1360. case map[int64]int64:
  1361. fastpathTV.EncMapInt64Int64V(v, e)
  1362. case *map[int64]int64:
  1363. fastpathTV.EncMapInt64Int64V(*v, e)
  1364. case map[int64]float32:
  1365. fastpathTV.EncMapInt64Float32V(v, e)
  1366. case *map[int64]float32:
  1367. fastpathTV.EncMapInt64Float32V(*v, e)
  1368. case map[int64]float64:
  1369. fastpathTV.EncMapInt64Float64V(v, e)
  1370. case *map[int64]float64:
  1371. fastpathTV.EncMapInt64Float64V(*v, e)
  1372. case map[int64]bool:
  1373. fastpathTV.EncMapInt64BoolV(v, e)
  1374. case *map[int64]bool:
  1375. fastpathTV.EncMapInt64BoolV(*v, e)
  1376. case map[bool]interface{}:
  1377. fastpathTV.EncMapBoolIntfV(v, e)
  1378. case *map[bool]interface{}:
  1379. fastpathTV.EncMapBoolIntfV(*v, e)
  1380. case map[bool]string:
  1381. fastpathTV.EncMapBoolStringV(v, e)
  1382. case *map[bool]string:
  1383. fastpathTV.EncMapBoolStringV(*v, e)
  1384. case map[bool]uint:
  1385. fastpathTV.EncMapBoolUintV(v, e)
  1386. case *map[bool]uint:
  1387. fastpathTV.EncMapBoolUintV(*v, e)
  1388. case map[bool]uint8:
  1389. fastpathTV.EncMapBoolUint8V(v, e)
  1390. case *map[bool]uint8:
  1391. fastpathTV.EncMapBoolUint8V(*v, e)
  1392. case map[bool]uint16:
  1393. fastpathTV.EncMapBoolUint16V(v, e)
  1394. case *map[bool]uint16:
  1395. fastpathTV.EncMapBoolUint16V(*v, e)
  1396. case map[bool]uint32:
  1397. fastpathTV.EncMapBoolUint32V(v, e)
  1398. case *map[bool]uint32:
  1399. fastpathTV.EncMapBoolUint32V(*v, e)
  1400. case map[bool]uint64:
  1401. fastpathTV.EncMapBoolUint64V(v, e)
  1402. case *map[bool]uint64:
  1403. fastpathTV.EncMapBoolUint64V(*v, e)
  1404. case map[bool]uintptr:
  1405. fastpathTV.EncMapBoolUintptrV(v, e)
  1406. case *map[bool]uintptr:
  1407. fastpathTV.EncMapBoolUintptrV(*v, e)
  1408. case map[bool]int:
  1409. fastpathTV.EncMapBoolIntV(v, e)
  1410. case *map[bool]int:
  1411. fastpathTV.EncMapBoolIntV(*v, e)
  1412. case map[bool]int8:
  1413. fastpathTV.EncMapBoolInt8V(v, e)
  1414. case *map[bool]int8:
  1415. fastpathTV.EncMapBoolInt8V(*v, e)
  1416. case map[bool]int16:
  1417. fastpathTV.EncMapBoolInt16V(v, e)
  1418. case *map[bool]int16:
  1419. fastpathTV.EncMapBoolInt16V(*v, e)
  1420. case map[bool]int32:
  1421. fastpathTV.EncMapBoolInt32V(v, e)
  1422. case *map[bool]int32:
  1423. fastpathTV.EncMapBoolInt32V(*v, e)
  1424. case map[bool]int64:
  1425. fastpathTV.EncMapBoolInt64V(v, e)
  1426. case *map[bool]int64:
  1427. fastpathTV.EncMapBoolInt64V(*v, e)
  1428. case map[bool]float32:
  1429. fastpathTV.EncMapBoolFloat32V(v, e)
  1430. case *map[bool]float32:
  1431. fastpathTV.EncMapBoolFloat32V(*v, e)
  1432. case map[bool]float64:
  1433. fastpathTV.EncMapBoolFloat64V(v, e)
  1434. case *map[bool]float64:
  1435. fastpathTV.EncMapBoolFloat64V(*v, e)
  1436. case map[bool]bool:
  1437. fastpathTV.EncMapBoolBoolV(v, e)
  1438. case *map[bool]bool:
  1439. fastpathTV.EncMapBoolBoolV(*v, e)
  1440. default:
  1441. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  1442. return false
  1443. }
  1444. return true
  1445. }
  1446. // -- -- fast path functions
  1447. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  1448. if f.ti.mbs {
  1449. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  1450. } else {
  1451. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  1452. }
  1453. }
  1454. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  1455. if v == nil {
  1456. e.e.EncodeNil()
  1457. return
  1458. }
  1459. ee, esep := e.e, e.hh.hasElemSeparators()
  1460. ee.WriteArrayStart(len(v))
  1461. if esep {
  1462. for _, v2 := range v {
  1463. ee.WriteArrayElem()
  1464. e.encode(v2)
  1465. }
  1466. } else {
  1467. for _, v2 := range v {
  1468. e.encode(v2)
  1469. }
  1470. }
  1471. ee.WriteArrayEnd()
  1472. }
  1473. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1474. ee, esep := e.e, e.hh.hasElemSeparators()
  1475. if len(v)%2 == 1 {
  1476. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1477. return
  1478. }
  1479. ee.WriteMapStart(len(v) / 2)
  1480. if esep {
  1481. for j, v2 := range v {
  1482. if j%2 == 0 {
  1483. ee.WriteMapElemKey()
  1484. } else {
  1485. ee.WriteMapElemValue()
  1486. }
  1487. e.encode(v2)
  1488. }
  1489. } else {
  1490. for _, v2 := range v {
  1491. e.encode(v2)
  1492. }
  1493. }
  1494. ee.WriteMapEnd()
  1495. }
  1496. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1497. if f.ti.mbs {
  1498. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1499. } else {
  1500. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1501. }
  1502. }
  1503. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1504. if v == nil {
  1505. e.e.EncodeNil()
  1506. return
  1507. }
  1508. ee, esep := e.e, e.hh.hasElemSeparators()
  1509. ee.WriteArrayStart(len(v))
  1510. if esep {
  1511. for _, v2 := range v {
  1512. ee.WriteArrayElem()
  1513. ee.EncodeStringEnc(cUTF8, v2)
  1514. }
  1515. } else {
  1516. for _, v2 := range v {
  1517. ee.EncodeStringEnc(cUTF8, v2)
  1518. }
  1519. }
  1520. ee.WriteArrayEnd()
  1521. }
  1522. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1523. ee, esep := e.e, e.hh.hasElemSeparators()
  1524. if len(v)%2 == 1 {
  1525. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1526. return
  1527. }
  1528. ee.WriteMapStart(len(v) / 2)
  1529. if esep {
  1530. for j, v2 := range v {
  1531. if j%2 == 0 {
  1532. ee.WriteMapElemKey()
  1533. } else {
  1534. ee.WriteMapElemValue()
  1535. }
  1536. ee.EncodeStringEnc(cUTF8, v2)
  1537. }
  1538. } else {
  1539. for _, v2 := range v {
  1540. ee.EncodeStringEnc(cUTF8, v2)
  1541. }
  1542. }
  1543. ee.WriteMapEnd()
  1544. }
  1545. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1546. if f.ti.mbs {
  1547. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1548. } else {
  1549. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1550. }
  1551. }
  1552. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1553. if v == nil {
  1554. e.e.EncodeNil()
  1555. return
  1556. }
  1557. ee, esep := e.e, e.hh.hasElemSeparators()
  1558. ee.WriteArrayStart(len(v))
  1559. if esep {
  1560. for _, v2 := range v {
  1561. ee.WriteArrayElem()
  1562. ee.EncodeFloat32(v2)
  1563. }
  1564. } else {
  1565. for _, v2 := range v {
  1566. ee.EncodeFloat32(v2)
  1567. }
  1568. }
  1569. ee.WriteArrayEnd()
  1570. }
  1571. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1572. ee, esep := e.e, e.hh.hasElemSeparators()
  1573. if len(v)%2 == 1 {
  1574. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1575. return
  1576. }
  1577. ee.WriteMapStart(len(v) / 2)
  1578. if esep {
  1579. for j, v2 := range v {
  1580. if j%2 == 0 {
  1581. ee.WriteMapElemKey()
  1582. } else {
  1583. ee.WriteMapElemValue()
  1584. }
  1585. ee.EncodeFloat32(v2)
  1586. }
  1587. } else {
  1588. for _, v2 := range v {
  1589. ee.EncodeFloat32(v2)
  1590. }
  1591. }
  1592. ee.WriteMapEnd()
  1593. }
  1594. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1595. if f.ti.mbs {
  1596. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1597. } else {
  1598. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1599. }
  1600. }
  1601. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1602. if v == nil {
  1603. e.e.EncodeNil()
  1604. return
  1605. }
  1606. ee, esep := e.e, e.hh.hasElemSeparators()
  1607. ee.WriteArrayStart(len(v))
  1608. if esep {
  1609. for _, v2 := range v {
  1610. ee.WriteArrayElem()
  1611. ee.EncodeFloat64(v2)
  1612. }
  1613. } else {
  1614. for _, v2 := range v {
  1615. ee.EncodeFloat64(v2)
  1616. }
  1617. }
  1618. ee.WriteArrayEnd()
  1619. }
  1620. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1621. ee, esep := e.e, e.hh.hasElemSeparators()
  1622. if len(v)%2 == 1 {
  1623. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1624. return
  1625. }
  1626. ee.WriteMapStart(len(v) / 2)
  1627. if esep {
  1628. for j, v2 := range v {
  1629. if j%2 == 0 {
  1630. ee.WriteMapElemKey()
  1631. } else {
  1632. ee.WriteMapElemValue()
  1633. }
  1634. ee.EncodeFloat64(v2)
  1635. }
  1636. } else {
  1637. for _, v2 := range v {
  1638. ee.EncodeFloat64(v2)
  1639. }
  1640. }
  1641. ee.WriteMapEnd()
  1642. }
  1643. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1644. if f.ti.mbs {
  1645. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1646. } else {
  1647. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1648. }
  1649. }
  1650. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1651. if v == nil {
  1652. e.e.EncodeNil()
  1653. return
  1654. }
  1655. ee, esep := e.e, e.hh.hasElemSeparators()
  1656. ee.WriteArrayStart(len(v))
  1657. if esep {
  1658. for _, v2 := range v {
  1659. ee.WriteArrayElem()
  1660. ee.EncodeUint(uint64(v2))
  1661. }
  1662. } else {
  1663. for _, v2 := range v {
  1664. ee.EncodeUint(uint64(v2))
  1665. }
  1666. }
  1667. ee.WriteArrayEnd()
  1668. }
  1669. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1670. ee, esep := e.e, e.hh.hasElemSeparators()
  1671. if len(v)%2 == 1 {
  1672. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1673. return
  1674. }
  1675. ee.WriteMapStart(len(v) / 2)
  1676. if esep {
  1677. for j, v2 := range v {
  1678. if j%2 == 0 {
  1679. ee.WriteMapElemKey()
  1680. } else {
  1681. ee.WriteMapElemValue()
  1682. }
  1683. ee.EncodeUint(uint64(v2))
  1684. }
  1685. } else {
  1686. for _, v2 := range v {
  1687. ee.EncodeUint(uint64(v2))
  1688. }
  1689. }
  1690. ee.WriteMapEnd()
  1691. }
  1692. func (e *Encoder) fastpathEncSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  1693. if f.ti.mbs {
  1694. fastpathTV.EncAsMapSliceUint8V(rv2i(rv).([]uint8), e)
  1695. } else {
  1696. fastpathTV.EncSliceUint8V(rv2i(rv).([]uint8), e)
  1697. }
  1698. }
  1699. func (_ fastpathT) EncSliceUint8V(v []uint8, e *Encoder) {
  1700. if v == nil {
  1701. e.e.EncodeNil()
  1702. return
  1703. }
  1704. ee, esep := e.e, e.hh.hasElemSeparators()
  1705. ee.WriteArrayStart(len(v))
  1706. if esep {
  1707. for _, v2 := range v {
  1708. ee.WriteArrayElem()
  1709. ee.EncodeUint(uint64(v2))
  1710. }
  1711. } else {
  1712. for _, v2 := range v {
  1713. ee.EncodeUint(uint64(v2))
  1714. }
  1715. }
  1716. ee.WriteArrayEnd()
  1717. }
  1718. func (_ fastpathT) EncAsMapSliceUint8V(v []uint8, e *Encoder) {
  1719. ee, esep := e.e, e.hh.hasElemSeparators()
  1720. if len(v)%2 == 1 {
  1721. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1722. return
  1723. }
  1724. ee.WriteMapStart(len(v) / 2)
  1725. if esep {
  1726. for j, v2 := range v {
  1727. if j%2 == 0 {
  1728. ee.WriteMapElemKey()
  1729. } else {
  1730. ee.WriteMapElemValue()
  1731. }
  1732. ee.EncodeUint(uint64(v2))
  1733. }
  1734. } else {
  1735. for _, v2 := range v {
  1736. ee.EncodeUint(uint64(v2))
  1737. }
  1738. }
  1739. ee.WriteMapEnd()
  1740. }
  1741. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1742. if f.ti.mbs {
  1743. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1744. } else {
  1745. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1746. }
  1747. }
  1748. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1749. if v == nil {
  1750. e.e.EncodeNil()
  1751. return
  1752. }
  1753. ee, esep := e.e, e.hh.hasElemSeparators()
  1754. ee.WriteArrayStart(len(v))
  1755. if esep {
  1756. for _, v2 := range v {
  1757. ee.WriteArrayElem()
  1758. ee.EncodeUint(uint64(v2))
  1759. }
  1760. } else {
  1761. for _, v2 := range v {
  1762. ee.EncodeUint(uint64(v2))
  1763. }
  1764. }
  1765. ee.WriteArrayEnd()
  1766. }
  1767. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1768. ee, esep := e.e, e.hh.hasElemSeparators()
  1769. if len(v)%2 == 1 {
  1770. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1771. return
  1772. }
  1773. ee.WriteMapStart(len(v) / 2)
  1774. if esep {
  1775. for j, v2 := range v {
  1776. if j%2 == 0 {
  1777. ee.WriteMapElemKey()
  1778. } else {
  1779. ee.WriteMapElemValue()
  1780. }
  1781. ee.EncodeUint(uint64(v2))
  1782. }
  1783. } else {
  1784. for _, v2 := range v {
  1785. ee.EncodeUint(uint64(v2))
  1786. }
  1787. }
  1788. ee.WriteMapEnd()
  1789. }
  1790. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1791. if f.ti.mbs {
  1792. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1793. } else {
  1794. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1795. }
  1796. }
  1797. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1798. if v == nil {
  1799. e.e.EncodeNil()
  1800. return
  1801. }
  1802. ee, esep := e.e, e.hh.hasElemSeparators()
  1803. ee.WriteArrayStart(len(v))
  1804. if esep {
  1805. for _, v2 := range v {
  1806. ee.WriteArrayElem()
  1807. ee.EncodeUint(uint64(v2))
  1808. }
  1809. } else {
  1810. for _, v2 := range v {
  1811. ee.EncodeUint(uint64(v2))
  1812. }
  1813. }
  1814. ee.WriteArrayEnd()
  1815. }
  1816. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  1817. ee, esep := e.e, e.hh.hasElemSeparators()
  1818. if len(v)%2 == 1 {
  1819. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1820. return
  1821. }
  1822. ee.WriteMapStart(len(v) / 2)
  1823. if esep {
  1824. for j, v2 := range v {
  1825. if j%2 == 0 {
  1826. ee.WriteMapElemKey()
  1827. } else {
  1828. ee.WriteMapElemValue()
  1829. }
  1830. ee.EncodeUint(uint64(v2))
  1831. }
  1832. } else {
  1833. for _, v2 := range v {
  1834. ee.EncodeUint(uint64(v2))
  1835. }
  1836. }
  1837. ee.WriteMapEnd()
  1838. }
  1839. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1840. if f.ti.mbs {
  1841. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1842. } else {
  1843. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1844. }
  1845. }
  1846. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1847. if v == nil {
  1848. e.e.EncodeNil()
  1849. return
  1850. }
  1851. ee, esep := e.e, e.hh.hasElemSeparators()
  1852. ee.WriteArrayStart(len(v))
  1853. if esep {
  1854. for _, v2 := range v {
  1855. ee.WriteArrayElem()
  1856. ee.EncodeUint(uint64(v2))
  1857. }
  1858. } else {
  1859. for _, v2 := range v {
  1860. ee.EncodeUint(uint64(v2))
  1861. }
  1862. }
  1863. ee.WriteArrayEnd()
  1864. }
  1865. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1866. ee, esep := e.e, e.hh.hasElemSeparators()
  1867. if len(v)%2 == 1 {
  1868. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1869. return
  1870. }
  1871. ee.WriteMapStart(len(v) / 2)
  1872. if esep {
  1873. for j, v2 := range v {
  1874. if j%2 == 0 {
  1875. ee.WriteMapElemKey()
  1876. } else {
  1877. ee.WriteMapElemValue()
  1878. }
  1879. ee.EncodeUint(uint64(v2))
  1880. }
  1881. } else {
  1882. for _, v2 := range v {
  1883. ee.EncodeUint(uint64(v2))
  1884. }
  1885. }
  1886. ee.WriteMapEnd()
  1887. }
  1888. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1889. if f.ti.mbs {
  1890. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1891. } else {
  1892. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1893. }
  1894. }
  1895. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1896. if v == nil {
  1897. e.e.EncodeNil()
  1898. return
  1899. }
  1900. ee, esep := e.e, e.hh.hasElemSeparators()
  1901. ee.WriteArrayStart(len(v))
  1902. if esep {
  1903. for _, v2 := range v {
  1904. ee.WriteArrayElem()
  1905. e.encode(v2)
  1906. }
  1907. } else {
  1908. for _, v2 := range v {
  1909. e.encode(v2)
  1910. }
  1911. }
  1912. ee.WriteArrayEnd()
  1913. }
  1914. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1915. ee, esep := e.e, e.hh.hasElemSeparators()
  1916. if len(v)%2 == 1 {
  1917. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1918. return
  1919. }
  1920. ee.WriteMapStart(len(v) / 2)
  1921. if esep {
  1922. for j, v2 := range v {
  1923. if j%2 == 0 {
  1924. ee.WriteMapElemKey()
  1925. } else {
  1926. ee.WriteMapElemValue()
  1927. }
  1928. e.encode(v2)
  1929. }
  1930. } else {
  1931. for _, v2 := range v {
  1932. e.encode(v2)
  1933. }
  1934. }
  1935. ee.WriteMapEnd()
  1936. }
  1937. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1938. if f.ti.mbs {
  1939. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1940. } else {
  1941. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1942. }
  1943. }
  1944. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1945. if v == nil {
  1946. e.e.EncodeNil()
  1947. return
  1948. }
  1949. ee, esep := e.e, e.hh.hasElemSeparators()
  1950. ee.WriteArrayStart(len(v))
  1951. if esep {
  1952. for _, v2 := range v {
  1953. ee.WriteArrayElem()
  1954. ee.EncodeInt(int64(v2))
  1955. }
  1956. } else {
  1957. for _, v2 := range v {
  1958. ee.EncodeInt(int64(v2))
  1959. }
  1960. }
  1961. ee.WriteArrayEnd()
  1962. }
  1963. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1964. ee, esep := e.e, e.hh.hasElemSeparators()
  1965. if len(v)%2 == 1 {
  1966. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  1967. return
  1968. }
  1969. ee.WriteMapStart(len(v) / 2)
  1970. if esep {
  1971. for j, v2 := range v {
  1972. if j%2 == 0 {
  1973. ee.WriteMapElemKey()
  1974. } else {
  1975. ee.WriteMapElemValue()
  1976. }
  1977. ee.EncodeInt(int64(v2))
  1978. }
  1979. } else {
  1980. for _, v2 := range v {
  1981. ee.EncodeInt(int64(v2))
  1982. }
  1983. }
  1984. ee.WriteMapEnd()
  1985. }
  1986. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1987. if f.ti.mbs {
  1988. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1989. } else {
  1990. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1991. }
  1992. }
  1993. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1994. if v == nil {
  1995. e.e.EncodeNil()
  1996. return
  1997. }
  1998. ee, esep := e.e, e.hh.hasElemSeparators()
  1999. ee.WriteArrayStart(len(v))
  2000. if esep {
  2001. for _, v2 := range v {
  2002. ee.WriteArrayElem()
  2003. ee.EncodeInt(int64(v2))
  2004. }
  2005. } else {
  2006. for _, v2 := range v {
  2007. ee.EncodeInt(int64(v2))
  2008. }
  2009. }
  2010. ee.WriteArrayEnd()
  2011. }
  2012. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  2013. ee, esep := e.e, e.hh.hasElemSeparators()
  2014. if len(v)%2 == 1 {
  2015. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2016. return
  2017. }
  2018. ee.WriteMapStart(len(v) / 2)
  2019. if esep {
  2020. for j, v2 := range v {
  2021. if j%2 == 0 {
  2022. ee.WriteMapElemKey()
  2023. } else {
  2024. ee.WriteMapElemValue()
  2025. }
  2026. ee.EncodeInt(int64(v2))
  2027. }
  2028. } else {
  2029. for _, v2 := range v {
  2030. ee.EncodeInt(int64(v2))
  2031. }
  2032. }
  2033. ee.WriteMapEnd()
  2034. }
  2035. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  2036. if f.ti.mbs {
  2037. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  2038. } else {
  2039. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  2040. }
  2041. }
  2042. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  2043. if v == nil {
  2044. e.e.EncodeNil()
  2045. return
  2046. }
  2047. ee, esep := e.e, e.hh.hasElemSeparators()
  2048. ee.WriteArrayStart(len(v))
  2049. if esep {
  2050. for _, v2 := range v {
  2051. ee.WriteArrayElem()
  2052. ee.EncodeInt(int64(v2))
  2053. }
  2054. } else {
  2055. for _, v2 := range v {
  2056. ee.EncodeInt(int64(v2))
  2057. }
  2058. }
  2059. ee.WriteArrayEnd()
  2060. }
  2061. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  2062. ee, esep := e.e, e.hh.hasElemSeparators()
  2063. if len(v)%2 == 1 {
  2064. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2065. return
  2066. }
  2067. ee.WriteMapStart(len(v) / 2)
  2068. if esep {
  2069. for j, v2 := range v {
  2070. if j%2 == 0 {
  2071. ee.WriteMapElemKey()
  2072. } else {
  2073. ee.WriteMapElemValue()
  2074. }
  2075. ee.EncodeInt(int64(v2))
  2076. }
  2077. } else {
  2078. for _, v2 := range v {
  2079. ee.EncodeInt(int64(v2))
  2080. }
  2081. }
  2082. ee.WriteMapEnd()
  2083. }
  2084. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  2085. if f.ti.mbs {
  2086. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  2087. } else {
  2088. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  2089. }
  2090. }
  2091. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  2092. if v == nil {
  2093. e.e.EncodeNil()
  2094. return
  2095. }
  2096. ee, esep := e.e, e.hh.hasElemSeparators()
  2097. ee.WriteArrayStart(len(v))
  2098. if esep {
  2099. for _, v2 := range v {
  2100. ee.WriteArrayElem()
  2101. ee.EncodeInt(int64(v2))
  2102. }
  2103. } else {
  2104. for _, v2 := range v {
  2105. ee.EncodeInt(int64(v2))
  2106. }
  2107. }
  2108. ee.WriteArrayEnd()
  2109. }
  2110. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  2111. ee, esep := e.e, e.hh.hasElemSeparators()
  2112. if len(v)%2 == 1 {
  2113. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2114. return
  2115. }
  2116. ee.WriteMapStart(len(v) / 2)
  2117. if esep {
  2118. for j, v2 := range v {
  2119. if j%2 == 0 {
  2120. ee.WriteMapElemKey()
  2121. } else {
  2122. ee.WriteMapElemValue()
  2123. }
  2124. ee.EncodeInt(int64(v2))
  2125. }
  2126. } else {
  2127. for _, v2 := range v {
  2128. ee.EncodeInt(int64(v2))
  2129. }
  2130. }
  2131. ee.WriteMapEnd()
  2132. }
  2133. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  2134. if f.ti.mbs {
  2135. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  2136. } else {
  2137. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  2138. }
  2139. }
  2140. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  2141. if v == nil {
  2142. e.e.EncodeNil()
  2143. return
  2144. }
  2145. ee, esep := e.e, e.hh.hasElemSeparators()
  2146. ee.WriteArrayStart(len(v))
  2147. if esep {
  2148. for _, v2 := range v {
  2149. ee.WriteArrayElem()
  2150. ee.EncodeInt(int64(v2))
  2151. }
  2152. } else {
  2153. for _, v2 := range v {
  2154. ee.EncodeInt(int64(v2))
  2155. }
  2156. }
  2157. ee.WriteArrayEnd()
  2158. }
  2159. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  2160. ee, esep := e.e, e.hh.hasElemSeparators()
  2161. if len(v)%2 == 1 {
  2162. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2163. return
  2164. }
  2165. ee.WriteMapStart(len(v) / 2)
  2166. if esep {
  2167. for j, v2 := range v {
  2168. if j%2 == 0 {
  2169. ee.WriteMapElemKey()
  2170. } else {
  2171. ee.WriteMapElemValue()
  2172. }
  2173. ee.EncodeInt(int64(v2))
  2174. }
  2175. } else {
  2176. for _, v2 := range v {
  2177. ee.EncodeInt(int64(v2))
  2178. }
  2179. }
  2180. ee.WriteMapEnd()
  2181. }
  2182. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  2183. if f.ti.mbs {
  2184. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  2185. } else {
  2186. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  2187. }
  2188. }
  2189. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  2190. if v == nil {
  2191. e.e.EncodeNil()
  2192. return
  2193. }
  2194. ee, esep := e.e, e.hh.hasElemSeparators()
  2195. ee.WriteArrayStart(len(v))
  2196. if esep {
  2197. for _, v2 := range v {
  2198. ee.WriteArrayElem()
  2199. ee.EncodeBool(v2)
  2200. }
  2201. } else {
  2202. for _, v2 := range v {
  2203. ee.EncodeBool(v2)
  2204. }
  2205. }
  2206. ee.WriteArrayEnd()
  2207. }
  2208. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  2209. ee, esep := e.e, e.hh.hasElemSeparators()
  2210. if len(v)%2 == 1 {
  2211. e.errorf("mapBySlice requires even slice length, but got %v", len(v))
  2212. return
  2213. }
  2214. ee.WriteMapStart(len(v) / 2)
  2215. if esep {
  2216. for j, v2 := range v {
  2217. if j%2 == 0 {
  2218. ee.WriteMapElemKey()
  2219. } else {
  2220. ee.WriteMapElemValue()
  2221. }
  2222. ee.EncodeBool(v2)
  2223. }
  2224. } else {
  2225. for _, v2 := range v {
  2226. ee.EncodeBool(v2)
  2227. }
  2228. }
  2229. ee.WriteMapEnd()
  2230. }
  2231. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2232. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2233. }
  2234. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2235. if v == nil {
  2236. e.e.EncodeNil()
  2237. return
  2238. }
  2239. ee, esep := e.e, e.hh.hasElemSeparators()
  2240. ee.WriteMapStart(len(v))
  2241. if e.h.Canonical {
  2242. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2243. e2 := NewEncoderBytes(&mksv, e.hh)
  2244. v2 := make([]bytesI, len(v))
  2245. var i, l uint
  2246. var vp *bytesI
  2247. for k2 := range v {
  2248. l = uint(len(mksv))
  2249. e2.MustEncode(k2)
  2250. vp = &v2[i]
  2251. vp.v = mksv[l:]
  2252. vp.i = k2
  2253. i++
  2254. }
  2255. sort.Sort(bytesISlice(v2))
  2256. if esep {
  2257. for j := range v2 {
  2258. ee.WriteMapElemKey()
  2259. e.asis(v2[j].v)
  2260. ee.WriteMapElemValue()
  2261. e.encode(v[v2[j].i])
  2262. }
  2263. } else {
  2264. for j := range v2 {
  2265. e.asis(v2[j].v)
  2266. e.encode(v[v2[j].i])
  2267. }
  2268. }
  2269. } else {
  2270. if esep {
  2271. for k2, v2 := range v {
  2272. ee.WriteMapElemKey()
  2273. e.encode(k2)
  2274. ee.WriteMapElemValue()
  2275. e.encode(v2)
  2276. }
  2277. } else {
  2278. for k2, v2 := range v {
  2279. e.encode(k2)
  2280. e.encode(v2)
  2281. }
  2282. }
  2283. }
  2284. ee.WriteMapEnd()
  2285. }
  2286. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2287. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2288. }
  2289. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2290. if v == nil {
  2291. e.e.EncodeNil()
  2292. return
  2293. }
  2294. ee, esep := e.e, e.hh.hasElemSeparators()
  2295. ee.WriteMapStart(len(v))
  2296. if e.h.Canonical {
  2297. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2298. e2 := NewEncoderBytes(&mksv, e.hh)
  2299. v2 := make([]bytesI, len(v))
  2300. var i, l uint
  2301. var vp *bytesI
  2302. for k2 := range v {
  2303. l = uint(len(mksv))
  2304. e2.MustEncode(k2)
  2305. vp = &v2[i]
  2306. vp.v = mksv[l:]
  2307. vp.i = k2
  2308. i++
  2309. }
  2310. sort.Sort(bytesISlice(v2))
  2311. if esep {
  2312. for j := range v2 {
  2313. ee.WriteMapElemKey()
  2314. e.asis(v2[j].v)
  2315. ee.WriteMapElemValue()
  2316. e.encode(v[v2[j].i])
  2317. }
  2318. } else {
  2319. for j := range v2 {
  2320. e.asis(v2[j].v)
  2321. e.encode(v[v2[j].i])
  2322. }
  2323. }
  2324. } else {
  2325. if esep {
  2326. for k2, v2 := range v {
  2327. ee.WriteMapElemKey()
  2328. e.encode(k2)
  2329. ee.WriteMapElemValue()
  2330. ee.EncodeStringEnc(cUTF8, v2)
  2331. }
  2332. } else {
  2333. for k2, v2 := range v {
  2334. e.encode(k2)
  2335. ee.EncodeStringEnc(cUTF8, v2)
  2336. }
  2337. }
  2338. }
  2339. ee.WriteMapEnd()
  2340. }
  2341. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2342. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2343. }
  2344. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2345. if v == nil {
  2346. e.e.EncodeNil()
  2347. return
  2348. }
  2349. ee, esep := e.e, e.hh.hasElemSeparators()
  2350. ee.WriteMapStart(len(v))
  2351. if e.h.Canonical {
  2352. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2353. e2 := NewEncoderBytes(&mksv, e.hh)
  2354. v2 := make([]bytesI, len(v))
  2355. var i, l uint
  2356. var vp *bytesI
  2357. for k2 := range v {
  2358. l = uint(len(mksv))
  2359. e2.MustEncode(k2)
  2360. vp = &v2[i]
  2361. vp.v = mksv[l:]
  2362. vp.i = k2
  2363. i++
  2364. }
  2365. sort.Sort(bytesISlice(v2))
  2366. if esep {
  2367. for j := range v2 {
  2368. ee.WriteMapElemKey()
  2369. e.asis(v2[j].v)
  2370. ee.WriteMapElemValue()
  2371. e.encode(v[v2[j].i])
  2372. }
  2373. } else {
  2374. for j := range v2 {
  2375. e.asis(v2[j].v)
  2376. e.encode(v[v2[j].i])
  2377. }
  2378. }
  2379. } else {
  2380. if esep {
  2381. for k2, v2 := range v {
  2382. ee.WriteMapElemKey()
  2383. e.encode(k2)
  2384. ee.WriteMapElemValue()
  2385. ee.EncodeUint(uint64(v2))
  2386. }
  2387. } else {
  2388. for k2, v2 := range v {
  2389. e.encode(k2)
  2390. ee.EncodeUint(uint64(v2))
  2391. }
  2392. }
  2393. }
  2394. ee.WriteMapEnd()
  2395. }
  2396. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2397. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2398. }
  2399. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2400. if v == nil {
  2401. e.e.EncodeNil()
  2402. return
  2403. }
  2404. ee, esep := e.e, e.hh.hasElemSeparators()
  2405. ee.WriteMapStart(len(v))
  2406. if e.h.Canonical {
  2407. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2408. e2 := NewEncoderBytes(&mksv, e.hh)
  2409. v2 := make([]bytesI, len(v))
  2410. var i, l uint
  2411. var vp *bytesI
  2412. for k2 := range v {
  2413. l = uint(len(mksv))
  2414. e2.MustEncode(k2)
  2415. vp = &v2[i]
  2416. vp.v = mksv[l:]
  2417. vp.i = k2
  2418. i++
  2419. }
  2420. sort.Sort(bytesISlice(v2))
  2421. if esep {
  2422. for j := range v2 {
  2423. ee.WriteMapElemKey()
  2424. e.asis(v2[j].v)
  2425. ee.WriteMapElemValue()
  2426. e.encode(v[v2[j].i])
  2427. }
  2428. } else {
  2429. for j := range v2 {
  2430. e.asis(v2[j].v)
  2431. e.encode(v[v2[j].i])
  2432. }
  2433. }
  2434. } else {
  2435. if esep {
  2436. for k2, v2 := range v {
  2437. ee.WriteMapElemKey()
  2438. e.encode(k2)
  2439. ee.WriteMapElemValue()
  2440. ee.EncodeUint(uint64(v2))
  2441. }
  2442. } else {
  2443. for k2, v2 := range v {
  2444. e.encode(k2)
  2445. ee.EncodeUint(uint64(v2))
  2446. }
  2447. }
  2448. }
  2449. ee.WriteMapEnd()
  2450. }
  2451. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2452. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2453. }
  2454. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2455. if v == nil {
  2456. e.e.EncodeNil()
  2457. return
  2458. }
  2459. ee, esep := e.e, e.hh.hasElemSeparators()
  2460. ee.WriteMapStart(len(v))
  2461. if e.h.Canonical {
  2462. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2463. e2 := NewEncoderBytes(&mksv, e.hh)
  2464. v2 := make([]bytesI, len(v))
  2465. var i, l uint
  2466. var vp *bytesI
  2467. for k2 := range v {
  2468. l = uint(len(mksv))
  2469. e2.MustEncode(k2)
  2470. vp = &v2[i]
  2471. vp.v = mksv[l:]
  2472. vp.i = k2
  2473. i++
  2474. }
  2475. sort.Sort(bytesISlice(v2))
  2476. if esep {
  2477. for j := range v2 {
  2478. ee.WriteMapElemKey()
  2479. e.asis(v2[j].v)
  2480. ee.WriteMapElemValue()
  2481. e.encode(v[v2[j].i])
  2482. }
  2483. } else {
  2484. for j := range v2 {
  2485. e.asis(v2[j].v)
  2486. e.encode(v[v2[j].i])
  2487. }
  2488. }
  2489. } else {
  2490. if esep {
  2491. for k2, v2 := range v {
  2492. ee.WriteMapElemKey()
  2493. e.encode(k2)
  2494. ee.WriteMapElemValue()
  2495. ee.EncodeUint(uint64(v2))
  2496. }
  2497. } else {
  2498. for k2, v2 := range v {
  2499. e.encode(k2)
  2500. ee.EncodeUint(uint64(v2))
  2501. }
  2502. }
  2503. }
  2504. ee.WriteMapEnd()
  2505. }
  2506. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2507. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2508. }
  2509. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2510. if v == nil {
  2511. e.e.EncodeNil()
  2512. return
  2513. }
  2514. ee, esep := e.e, e.hh.hasElemSeparators()
  2515. ee.WriteMapStart(len(v))
  2516. if e.h.Canonical {
  2517. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2518. e2 := NewEncoderBytes(&mksv, e.hh)
  2519. v2 := make([]bytesI, len(v))
  2520. var i, l uint
  2521. var vp *bytesI
  2522. for k2 := range v {
  2523. l = uint(len(mksv))
  2524. e2.MustEncode(k2)
  2525. vp = &v2[i]
  2526. vp.v = mksv[l:]
  2527. vp.i = k2
  2528. i++
  2529. }
  2530. sort.Sort(bytesISlice(v2))
  2531. if esep {
  2532. for j := range v2 {
  2533. ee.WriteMapElemKey()
  2534. e.asis(v2[j].v)
  2535. ee.WriteMapElemValue()
  2536. e.encode(v[v2[j].i])
  2537. }
  2538. } else {
  2539. for j := range v2 {
  2540. e.asis(v2[j].v)
  2541. e.encode(v[v2[j].i])
  2542. }
  2543. }
  2544. } else {
  2545. if esep {
  2546. for k2, v2 := range v {
  2547. ee.WriteMapElemKey()
  2548. e.encode(k2)
  2549. ee.WriteMapElemValue()
  2550. ee.EncodeUint(uint64(v2))
  2551. }
  2552. } else {
  2553. for k2, v2 := range v {
  2554. e.encode(k2)
  2555. ee.EncodeUint(uint64(v2))
  2556. }
  2557. }
  2558. }
  2559. ee.WriteMapEnd()
  2560. }
  2561. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2562. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2563. }
  2564. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2565. if v == nil {
  2566. e.e.EncodeNil()
  2567. return
  2568. }
  2569. ee, esep := e.e, e.hh.hasElemSeparators()
  2570. ee.WriteMapStart(len(v))
  2571. if e.h.Canonical {
  2572. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2573. e2 := NewEncoderBytes(&mksv, e.hh)
  2574. v2 := make([]bytesI, len(v))
  2575. var i, l uint
  2576. var vp *bytesI
  2577. for k2 := range v {
  2578. l = uint(len(mksv))
  2579. e2.MustEncode(k2)
  2580. vp = &v2[i]
  2581. vp.v = mksv[l:]
  2582. vp.i = k2
  2583. i++
  2584. }
  2585. sort.Sort(bytesISlice(v2))
  2586. if esep {
  2587. for j := range v2 {
  2588. ee.WriteMapElemKey()
  2589. e.asis(v2[j].v)
  2590. ee.WriteMapElemValue()
  2591. e.encode(v[v2[j].i])
  2592. }
  2593. } else {
  2594. for j := range v2 {
  2595. e.asis(v2[j].v)
  2596. e.encode(v[v2[j].i])
  2597. }
  2598. }
  2599. } else {
  2600. if esep {
  2601. for k2, v2 := range v {
  2602. ee.WriteMapElemKey()
  2603. e.encode(k2)
  2604. ee.WriteMapElemValue()
  2605. ee.EncodeUint(uint64(v2))
  2606. }
  2607. } else {
  2608. for k2, v2 := range v {
  2609. e.encode(k2)
  2610. ee.EncodeUint(uint64(v2))
  2611. }
  2612. }
  2613. }
  2614. ee.WriteMapEnd()
  2615. }
  2616. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2617. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2618. }
  2619. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2620. if v == nil {
  2621. e.e.EncodeNil()
  2622. return
  2623. }
  2624. ee, esep := e.e, e.hh.hasElemSeparators()
  2625. ee.WriteMapStart(len(v))
  2626. if e.h.Canonical {
  2627. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2628. e2 := NewEncoderBytes(&mksv, e.hh)
  2629. v2 := make([]bytesI, len(v))
  2630. var i, l uint
  2631. var vp *bytesI
  2632. for k2 := range v {
  2633. l = uint(len(mksv))
  2634. e2.MustEncode(k2)
  2635. vp = &v2[i]
  2636. vp.v = mksv[l:]
  2637. vp.i = k2
  2638. i++
  2639. }
  2640. sort.Sort(bytesISlice(v2))
  2641. if esep {
  2642. for j := range v2 {
  2643. ee.WriteMapElemKey()
  2644. e.asis(v2[j].v)
  2645. ee.WriteMapElemValue()
  2646. e.encode(v[v2[j].i])
  2647. }
  2648. } else {
  2649. for j := range v2 {
  2650. e.asis(v2[j].v)
  2651. e.encode(v[v2[j].i])
  2652. }
  2653. }
  2654. } else {
  2655. if esep {
  2656. for k2, v2 := range v {
  2657. ee.WriteMapElemKey()
  2658. e.encode(k2)
  2659. ee.WriteMapElemValue()
  2660. e.encode(v2)
  2661. }
  2662. } else {
  2663. for k2, v2 := range v {
  2664. e.encode(k2)
  2665. e.encode(v2)
  2666. }
  2667. }
  2668. }
  2669. ee.WriteMapEnd()
  2670. }
  2671. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2672. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2673. }
  2674. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2675. if v == nil {
  2676. e.e.EncodeNil()
  2677. return
  2678. }
  2679. ee, esep := e.e, e.hh.hasElemSeparators()
  2680. ee.WriteMapStart(len(v))
  2681. if e.h.Canonical {
  2682. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2683. e2 := NewEncoderBytes(&mksv, e.hh)
  2684. v2 := make([]bytesI, len(v))
  2685. var i, l uint
  2686. var vp *bytesI
  2687. for k2 := range v {
  2688. l = uint(len(mksv))
  2689. e2.MustEncode(k2)
  2690. vp = &v2[i]
  2691. vp.v = mksv[l:]
  2692. vp.i = k2
  2693. i++
  2694. }
  2695. sort.Sort(bytesISlice(v2))
  2696. if esep {
  2697. for j := range v2 {
  2698. ee.WriteMapElemKey()
  2699. e.asis(v2[j].v)
  2700. ee.WriteMapElemValue()
  2701. e.encode(v[v2[j].i])
  2702. }
  2703. } else {
  2704. for j := range v2 {
  2705. e.asis(v2[j].v)
  2706. e.encode(v[v2[j].i])
  2707. }
  2708. }
  2709. } else {
  2710. if esep {
  2711. for k2, v2 := range v {
  2712. ee.WriteMapElemKey()
  2713. e.encode(k2)
  2714. ee.WriteMapElemValue()
  2715. ee.EncodeInt(int64(v2))
  2716. }
  2717. } else {
  2718. for k2, v2 := range v {
  2719. e.encode(k2)
  2720. ee.EncodeInt(int64(v2))
  2721. }
  2722. }
  2723. }
  2724. ee.WriteMapEnd()
  2725. }
  2726. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2727. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2728. }
  2729. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  2730. if v == nil {
  2731. e.e.EncodeNil()
  2732. return
  2733. }
  2734. ee, esep := e.e, e.hh.hasElemSeparators()
  2735. ee.WriteMapStart(len(v))
  2736. if e.h.Canonical {
  2737. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2738. e2 := NewEncoderBytes(&mksv, e.hh)
  2739. v2 := make([]bytesI, len(v))
  2740. var i, l uint
  2741. var vp *bytesI
  2742. for k2 := range v {
  2743. l = uint(len(mksv))
  2744. e2.MustEncode(k2)
  2745. vp = &v2[i]
  2746. vp.v = mksv[l:]
  2747. vp.i = k2
  2748. i++
  2749. }
  2750. sort.Sort(bytesISlice(v2))
  2751. if esep {
  2752. for j := range v2 {
  2753. ee.WriteMapElemKey()
  2754. e.asis(v2[j].v)
  2755. ee.WriteMapElemValue()
  2756. e.encode(v[v2[j].i])
  2757. }
  2758. } else {
  2759. for j := range v2 {
  2760. e.asis(v2[j].v)
  2761. e.encode(v[v2[j].i])
  2762. }
  2763. }
  2764. } else {
  2765. if esep {
  2766. for k2, v2 := range v {
  2767. ee.WriteMapElemKey()
  2768. e.encode(k2)
  2769. ee.WriteMapElemValue()
  2770. ee.EncodeInt(int64(v2))
  2771. }
  2772. } else {
  2773. for k2, v2 := range v {
  2774. e.encode(k2)
  2775. ee.EncodeInt(int64(v2))
  2776. }
  2777. }
  2778. }
  2779. ee.WriteMapEnd()
  2780. }
  2781. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2782. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2783. }
  2784. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2785. if v == nil {
  2786. e.e.EncodeNil()
  2787. return
  2788. }
  2789. ee, esep := e.e, e.hh.hasElemSeparators()
  2790. ee.WriteMapStart(len(v))
  2791. if e.h.Canonical {
  2792. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2793. e2 := NewEncoderBytes(&mksv, e.hh)
  2794. v2 := make([]bytesI, len(v))
  2795. var i, l uint
  2796. var vp *bytesI
  2797. for k2 := range v {
  2798. l = uint(len(mksv))
  2799. e2.MustEncode(k2)
  2800. vp = &v2[i]
  2801. vp.v = mksv[l:]
  2802. vp.i = k2
  2803. i++
  2804. }
  2805. sort.Sort(bytesISlice(v2))
  2806. if esep {
  2807. for j := range v2 {
  2808. ee.WriteMapElemKey()
  2809. e.asis(v2[j].v)
  2810. ee.WriteMapElemValue()
  2811. e.encode(v[v2[j].i])
  2812. }
  2813. } else {
  2814. for j := range v2 {
  2815. e.asis(v2[j].v)
  2816. e.encode(v[v2[j].i])
  2817. }
  2818. }
  2819. } else {
  2820. if esep {
  2821. for k2, v2 := range v {
  2822. ee.WriteMapElemKey()
  2823. e.encode(k2)
  2824. ee.WriteMapElemValue()
  2825. ee.EncodeInt(int64(v2))
  2826. }
  2827. } else {
  2828. for k2, v2 := range v {
  2829. e.encode(k2)
  2830. ee.EncodeInt(int64(v2))
  2831. }
  2832. }
  2833. }
  2834. ee.WriteMapEnd()
  2835. }
  2836. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2837. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2838. }
  2839. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2840. if v == nil {
  2841. e.e.EncodeNil()
  2842. return
  2843. }
  2844. ee, esep := e.e, e.hh.hasElemSeparators()
  2845. ee.WriteMapStart(len(v))
  2846. if e.h.Canonical {
  2847. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2848. e2 := NewEncoderBytes(&mksv, e.hh)
  2849. v2 := make([]bytesI, len(v))
  2850. var i, l uint
  2851. var vp *bytesI
  2852. for k2 := range v {
  2853. l = uint(len(mksv))
  2854. e2.MustEncode(k2)
  2855. vp = &v2[i]
  2856. vp.v = mksv[l:]
  2857. vp.i = k2
  2858. i++
  2859. }
  2860. sort.Sort(bytesISlice(v2))
  2861. if esep {
  2862. for j := range v2 {
  2863. ee.WriteMapElemKey()
  2864. e.asis(v2[j].v)
  2865. ee.WriteMapElemValue()
  2866. e.encode(v[v2[j].i])
  2867. }
  2868. } else {
  2869. for j := range v2 {
  2870. e.asis(v2[j].v)
  2871. e.encode(v[v2[j].i])
  2872. }
  2873. }
  2874. } else {
  2875. if esep {
  2876. for k2, v2 := range v {
  2877. ee.WriteMapElemKey()
  2878. e.encode(k2)
  2879. ee.WriteMapElemValue()
  2880. ee.EncodeInt(int64(v2))
  2881. }
  2882. } else {
  2883. for k2, v2 := range v {
  2884. e.encode(k2)
  2885. ee.EncodeInt(int64(v2))
  2886. }
  2887. }
  2888. }
  2889. ee.WriteMapEnd()
  2890. }
  2891. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2892. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2893. }
  2894. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2895. if v == nil {
  2896. e.e.EncodeNil()
  2897. return
  2898. }
  2899. ee, esep := e.e, e.hh.hasElemSeparators()
  2900. ee.WriteMapStart(len(v))
  2901. if e.h.Canonical {
  2902. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2903. e2 := NewEncoderBytes(&mksv, e.hh)
  2904. v2 := make([]bytesI, len(v))
  2905. var i, l uint
  2906. var vp *bytesI
  2907. for k2 := range v {
  2908. l = uint(len(mksv))
  2909. e2.MustEncode(k2)
  2910. vp = &v2[i]
  2911. vp.v = mksv[l:]
  2912. vp.i = k2
  2913. i++
  2914. }
  2915. sort.Sort(bytesISlice(v2))
  2916. if esep {
  2917. for j := range v2 {
  2918. ee.WriteMapElemKey()
  2919. e.asis(v2[j].v)
  2920. ee.WriteMapElemValue()
  2921. e.encode(v[v2[j].i])
  2922. }
  2923. } else {
  2924. for j := range v2 {
  2925. e.asis(v2[j].v)
  2926. e.encode(v[v2[j].i])
  2927. }
  2928. }
  2929. } else {
  2930. if esep {
  2931. for k2, v2 := range v {
  2932. ee.WriteMapElemKey()
  2933. e.encode(k2)
  2934. ee.WriteMapElemValue()
  2935. ee.EncodeInt(int64(v2))
  2936. }
  2937. } else {
  2938. for k2, v2 := range v {
  2939. e.encode(k2)
  2940. ee.EncodeInt(int64(v2))
  2941. }
  2942. }
  2943. }
  2944. ee.WriteMapEnd()
  2945. }
  2946. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2947. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2948. }
  2949. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2950. if v == nil {
  2951. e.e.EncodeNil()
  2952. return
  2953. }
  2954. ee, esep := e.e, e.hh.hasElemSeparators()
  2955. ee.WriteMapStart(len(v))
  2956. if e.h.Canonical {
  2957. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2958. e2 := NewEncoderBytes(&mksv, e.hh)
  2959. v2 := make([]bytesI, len(v))
  2960. var i, l uint
  2961. var vp *bytesI
  2962. for k2 := range v {
  2963. l = uint(len(mksv))
  2964. e2.MustEncode(k2)
  2965. vp = &v2[i]
  2966. vp.v = mksv[l:]
  2967. vp.i = k2
  2968. i++
  2969. }
  2970. sort.Sort(bytesISlice(v2))
  2971. if esep {
  2972. for j := range v2 {
  2973. ee.WriteMapElemKey()
  2974. e.asis(v2[j].v)
  2975. ee.WriteMapElemValue()
  2976. e.encode(v[v2[j].i])
  2977. }
  2978. } else {
  2979. for j := range v2 {
  2980. e.asis(v2[j].v)
  2981. e.encode(v[v2[j].i])
  2982. }
  2983. }
  2984. } else {
  2985. if esep {
  2986. for k2, v2 := range v {
  2987. ee.WriteMapElemKey()
  2988. e.encode(k2)
  2989. ee.WriteMapElemValue()
  2990. ee.EncodeFloat32(v2)
  2991. }
  2992. } else {
  2993. for k2, v2 := range v {
  2994. e.encode(k2)
  2995. ee.EncodeFloat32(v2)
  2996. }
  2997. }
  2998. }
  2999. ee.WriteMapEnd()
  3000. }
  3001. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  3002. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  3003. }
  3004. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  3005. if v == nil {
  3006. e.e.EncodeNil()
  3007. return
  3008. }
  3009. ee, esep := e.e, e.hh.hasElemSeparators()
  3010. ee.WriteMapStart(len(v))
  3011. if e.h.Canonical {
  3012. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3013. e2 := NewEncoderBytes(&mksv, e.hh)
  3014. v2 := make([]bytesI, len(v))
  3015. var i, l uint
  3016. var vp *bytesI
  3017. for k2 := range v {
  3018. l = uint(len(mksv))
  3019. e2.MustEncode(k2)
  3020. vp = &v2[i]
  3021. vp.v = mksv[l:]
  3022. vp.i = k2
  3023. i++
  3024. }
  3025. sort.Sort(bytesISlice(v2))
  3026. if esep {
  3027. for j := range v2 {
  3028. ee.WriteMapElemKey()
  3029. e.asis(v2[j].v)
  3030. ee.WriteMapElemValue()
  3031. e.encode(v[v2[j].i])
  3032. }
  3033. } else {
  3034. for j := range v2 {
  3035. e.asis(v2[j].v)
  3036. e.encode(v[v2[j].i])
  3037. }
  3038. }
  3039. } else {
  3040. if esep {
  3041. for k2, v2 := range v {
  3042. ee.WriteMapElemKey()
  3043. e.encode(k2)
  3044. ee.WriteMapElemValue()
  3045. ee.EncodeFloat64(v2)
  3046. }
  3047. } else {
  3048. for k2, v2 := range v {
  3049. e.encode(k2)
  3050. ee.EncodeFloat64(v2)
  3051. }
  3052. }
  3053. }
  3054. ee.WriteMapEnd()
  3055. }
  3056. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  3057. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  3058. }
  3059. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  3060. if v == nil {
  3061. e.e.EncodeNil()
  3062. return
  3063. }
  3064. ee, esep := e.e, e.hh.hasElemSeparators()
  3065. ee.WriteMapStart(len(v))
  3066. if e.h.Canonical {
  3067. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3068. e2 := NewEncoderBytes(&mksv, e.hh)
  3069. v2 := make([]bytesI, len(v))
  3070. var i, l uint
  3071. var vp *bytesI
  3072. for k2 := range v {
  3073. l = uint(len(mksv))
  3074. e2.MustEncode(k2)
  3075. vp = &v2[i]
  3076. vp.v = mksv[l:]
  3077. vp.i = k2
  3078. i++
  3079. }
  3080. sort.Sort(bytesISlice(v2))
  3081. if esep {
  3082. for j := range v2 {
  3083. ee.WriteMapElemKey()
  3084. e.asis(v2[j].v)
  3085. ee.WriteMapElemValue()
  3086. e.encode(v[v2[j].i])
  3087. }
  3088. } else {
  3089. for j := range v2 {
  3090. e.asis(v2[j].v)
  3091. e.encode(v[v2[j].i])
  3092. }
  3093. }
  3094. } else {
  3095. if esep {
  3096. for k2, v2 := range v {
  3097. ee.WriteMapElemKey()
  3098. e.encode(k2)
  3099. ee.WriteMapElemValue()
  3100. ee.EncodeBool(v2)
  3101. }
  3102. } else {
  3103. for k2, v2 := range v {
  3104. e.encode(k2)
  3105. ee.EncodeBool(v2)
  3106. }
  3107. }
  3108. }
  3109. ee.WriteMapEnd()
  3110. }
  3111. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  3112. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  3113. }
  3114. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  3115. if v == nil {
  3116. e.e.EncodeNil()
  3117. return
  3118. }
  3119. ee, esep := e.e, e.hh.hasElemSeparators()
  3120. ee.WriteMapStart(len(v))
  3121. if e.h.Canonical {
  3122. v2 := make([]string, len(v))
  3123. var i uint
  3124. for k := range v {
  3125. v2[i] = string(k)
  3126. i++
  3127. }
  3128. sort.Sort(stringSlice(v2))
  3129. if esep {
  3130. for _, k2 := range v2 {
  3131. ee.WriteMapElemKey()
  3132. ee.EncodeStringEnc(cUTF8, k2)
  3133. ee.WriteMapElemValue()
  3134. e.encode(v[string(k2)])
  3135. }
  3136. } else {
  3137. for _, k2 := range v2 {
  3138. ee.EncodeStringEnc(cUTF8, k2)
  3139. e.encode(v[string(k2)])
  3140. }
  3141. }
  3142. } else {
  3143. if esep {
  3144. for k2, v2 := range v {
  3145. ee.WriteMapElemKey()
  3146. ee.EncodeStringEnc(cUTF8, k2)
  3147. ee.WriteMapElemValue()
  3148. e.encode(v2)
  3149. }
  3150. } else {
  3151. for k2, v2 := range v {
  3152. ee.EncodeStringEnc(cUTF8, k2)
  3153. e.encode(v2)
  3154. }
  3155. }
  3156. }
  3157. ee.WriteMapEnd()
  3158. }
  3159. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  3160. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  3161. }
  3162. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  3163. if v == nil {
  3164. e.e.EncodeNil()
  3165. return
  3166. }
  3167. ee, esep := e.e, e.hh.hasElemSeparators()
  3168. ee.WriteMapStart(len(v))
  3169. if e.h.Canonical {
  3170. v2 := make([]string, len(v))
  3171. var i uint
  3172. for k := range v {
  3173. v2[i] = string(k)
  3174. i++
  3175. }
  3176. sort.Sort(stringSlice(v2))
  3177. if esep {
  3178. for _, k2 := range v2 {
  3179. ee.WriteMapElemKey()
  3180. ee.EncodeStringEnc(cUTF8, k2)
  3181. ee.WriteMapElemValue()
  3182. ee.EncodeStringEnc(cUTF8, v[string(k2)])
  3183. }
  3184. } else {
  3185. for _, k2 := range v2 {
  3186. ee.EncodeStringEnc(cUTF8, k2)
  3187. ee.EncodeStringEnc(cUTF8, v[string(k2)])
  3188. }
  3189. }
  3190. } else {
  3191. if esep {
  3192. for k2, v2 := range v {
  3193. ee.WriteMapElemKey()
  3194. ee.EncodeStringEnc(cUTF8, k2)
  3195. ee.WriteMapElemValue()
  3196. ee.EncodeStringEnc(cUTF8, v2)
  3197. }
  3198. } else {
  3199. for k2, v2 := range v {
  3200. ee.EncodeStringEnc(cUTF8, k2)
  3201. ee.EncodeStringEnc(cUTF8, v2)
  3202. }
  3203. }
  3204. }
  3205. ee.WriteMapEnd()
  3206. }
  3207. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  3208. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  3209. }
  3210. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  3211. if v == nil {
  3212. e.e.EncodeNil()
  3213. return
  3214. }
  3215. ee, esep := e.e, e.hh.hasElemSeparators()
  3216. ee.WriteMapStart(len(v))
  3217. if e.h.Canonical {
  3218. v2 := make([]string, len(v))
  3219. var i uint
  3220. for k := range v {
  3221. v2[i] = string(k)
  3222. i++
  3223. }
  3224. sort.Sort(stringSlice(v2))
  3225. if esep {
  3226. for _, k2 := range v2 {
  3227. ee.WriteMapElemKey()
  3228. ee.EncodeStringEnc(cUTF8, k2)
  3229. ee.WriteMapElemValue()
  3230. ee.EncodeUint(uint64(v[string(k2)]))
  3231. }
  3232. } else {
  3233. for _, k2 := range v2 {
  3234. ee.EncodeStringEnc(cUTF8, k2)
  3235. ee.EncodeUint(uint64(v[string(k2)]))
  3236. }
  3237. }
  3238. } else {
  3239. if esep {
  3240. for k2, v2 := range v {
  3241. ee.WriteMapElemKey()
  3242. ee.EncodeStringEnc(cUTF8, k2)
  3243. ee.WriteMapElemValue()
  3244. ee.EncodeUint(uint64(v2))
  3245. }
  3246. } else {
  3247. for k2, v2 := range v {
  3248. ee.EncodeStringEnc(cUTF8, k2)
  3249. ee.EncodeUint(uint64(v2))
  3250. }
  3251. }
  3252. }
  3253. ee.WriteMapEnd()
  3254. }
  3255. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  3256. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  3257. }
  3258. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  3259. if v == nil {
  3260. e.e.EncodeNil()
  3261. return
  3262. }
  3263. ee, esep := e.e, e.hh.hasElemSeparators()
  3264. ee.WriteMapStart(len(v))
  3265. if e.h.Canonical {
  3266. v2 := make([]string, len(v))
  3267. var i uint
  3268. for k := range v {
  3269. v2[i] = string(k)
  3270. i++
  3271. }
  3272. sort.Sort(stringSlice(v2))
  3273. if esep {
  3274. for _, k2 := range v2 {
  3275. ee.WriteMapElemKey()
  3276. ee.EncodeStringEnc(cUTF8, k2)
  3277. ee.WriteMapElemValue()
  3278. ee.EncodeUint(uint64(v[string(k2)]))
  3279. }
  3280. } else {
  3281. for _, k2 := range v2 {
  3282. ee.EncodeStringEnc(cUTF8, k2)
  3283. ee.EncodeUint(uint64(v[string(k2)]))
  3284. }
  3285. }
  3286. } else {
  3287. if esep {
  3288. for k2, v2 := range v {
  3289. ee.WriteMapElemKey()
  3290. ee.EncodeStringEnc(cUTF8, k2)
  3291. ee.WriteMapElemValue()
  3292. ee.EncodeUint(uint64(v2))
  3293. }
  3294. } else {
  3295. for k2, v2 := range v {
  3296. ee.EncodeStringEnc(cUTF8, k2)
  3297. ee.EncodeUint(uint64(v2))
  3298. }
  3299. }
  3300. }
  3301. ee.WriteMapEnd()
  3302. }
  3303. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  3304. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  3305. }
  3306. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  3307. if v == nil {
  3308. e.e.EncodeNil()
  3309. return
  3310. }
  3311. ee, esep := e.e, e.hh.hasElemSeparators()
  3312. ee.WriteMapStart(len(v))
  3313. if e.h.Canonical {
  3314. v2 := make([]string, len(v))
  3315. var i uint
  3316. for k := range v {
  3317. v2[i] = string(k)
  3318. i++
  3319. }
  3320. sort.Sort(stringSlice(v2))
  3321. if esep {
  3322. for _, k2 := range v2 {
  3323. ee.WriteMapElemKey()
  3324. ee.EncodeStringEnc(cUTF8, k2)
  3325. ee.WriteMapElemValue()
  3326. ee.EncodeUint(uint64(v[string(k2)]))
  3327. }
  3328. } else {
  3329. for _, k2 := range v2 {
  3330. ee.EncodeStringEnc(cUTF8, k2)
  3331. ee.EncodeUint(uint64(v[string(k2)]))
  3332. }
  3333. }
  3334. } else {
  3335. if esep {
  3336. for k2, v2 := range v {
  3337. ee.WriteMapElemKey()
  3338. ee.EncodeStringEnc(cUTF8, k2)
  3339. ee.WriteMapElemValue()
  3340. ee.EncodeUint(uint64(v2))
  3341. }
  3342. } else {
  3343. for k2, v2 := range v {
  3344. ee.EncodeStringEnc(cUTF8, k2)
  3345. ee.EncodeUint(uint64(v2))
  3346. }
  3347. }
  3348. }
  3349. ee.WriteMapEnd()
  3350. }
  3351. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  3352. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  3353. }
  3354. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  3355. if v == nil {
  3356. e.e.EncodeNil()
  3357. return
  3358. }
  3359. ee, esep := e.e, e.hh.hasElemSeparators()
  3360. ee.WriteMapStart(len(v))
  3361. if e.h.Canonical {
  3362. v2 := make([]string, len(v))
  3363. var i uint
  3364. for k := range v {
  3365. v2[i] = string(k)
  3366. i++
  3367. }
  3368. sort.Sort(stringSlice(v2))
  3369. if esep {
  3370. for _, k2 := range v2 {
  3371. ee.WriteMapElemKey()
  3372. ee.EncodeStringEnc(cUTF8, k2)
  3373. ee.WriteMapElemValue()
  3374. ee.EncodeUint(uint64(v[string(k2)]))
  3375. }
  3376. } else {
  3377. for _, k2 := range v2 {
  3378. ee.EncodeStringEnc(cUTF8, k2)
  3379. ee.EncodeUint(uint64(v[string(k2)]))
  3380. }
  3381. }
  3382. } else {
  3383. if esep {
  3384. for k2, v2 := range v {
  3385. ee.WriteMapElemKey()
  3386. ee.EncodeStringEnc(cUTF8, k2)
  3387. ee.WriteMapElemValue()
  3388. ee.EncodeUint(uint64(v2))
  3389. }
  3390. } else {
  3391. for k2, v2 := range v {
  3392. ee.EncodeStringEnc(cUTF8, k2)
  3393. ee.EncodeUint(uint64(v2))
  3394. }
  3395. }
  3396. }
  3397. ee.WriteMapEnd()
  3398. }
  3399. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3400. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3401. }
  3402. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  3403. if v == nil {
  3404. e.e.EncodeNil()
  3405. return
  3406. }
  3407. ee, esep := e.e, e.hh.hasElemSeparators()
  3408. ee.WriteMapStart(len(v))
  3409. if e.h.Canonical {
  3410. v2 := make([]string, len(v))
  3411. var i uint
  3412. for k := range v {
  3413. v2[i] = string(k)
  3414. i++
  3415. }
  3416. sort.Sort(stringSlice(v2))
  3417. if esep {
  3418. for _, k2 := range v2 {
  3419. ee.WriteMapElemKey()
  3420. ee.EncodeStringEnc(cUTF8, k2)
  3421. ee.WriteMapElemValue()
  3422. ee.EncodeUint(uint64(v[string(k2)]))
  3423. }
  3424. } else {
  3425. for _, k2 := range v2 {
  3426. ee.EncodeStringEnc(cUTF8, k2)
  3427. ee.EncodeUint(uint64(v[string(k2)]))
  3428. }
  3429. }
  3430. } else {
  3431. if esep {
  3432. for k2, v2 := range v {
  3433. ee.WriteMapElemKey()
  3434. ee.EncodeStringEnc(cUTF8, k2)
  3435. ee.WriteMapElemValue()
  3436. ee.EncodeUint(uint64(v2))
  3437. }
  3438. } else {
  3439. for k2, v2 := range v {
  3440. ee.EncodeStringEnc(cUTF8, k2)
  3441. ee.EncodeUint(uint64(v2))
  3442. }
  3443. }
  3444. }
  3445. ee.WriteMapEnd()
  3446. }
  3447. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3448. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3449. }
  3450. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3451. if v == nil {
  3452. e.e.EncodeNil()
  3453. return
  3454. }
  3455. ee, esep := e.e, e.hh.hasElemSeparators()
  3456. ee.WriteMapStart(len(v))
  3457. if e.h.Canonical {
  3458. v2 := make([]string, len(v))
  3459. var i uint
  3460. for k := range v {
  3461. v2[i] = string(k)
  3462. i++
  3463. }
  3464. sort.Sort(stringSlice(v2))
  3465. if esep {
  3466. for _, k2 := range v2 {
  3467. ee.WriteMapElemKey()
  3468. ee.EncodeStringEnc(cUTF8, k2)
  3469. ee.WriteMapElemValue()
  3470. e.encode(v[string(k2)])
  3471. }
  3472. } else {
  3473. for _, k2 := range v2 {
  3474. ee.EncodeStringEnc(cUTF8, k2)
  3475. e.encode(v[string(k2)])
  3476. }
  3477. }
  3478. } else {
  3479. if esep {
  3480. for k2, v2 := range v {
  3481. ee.WriteMapElemKey()
  3482. ee.EncodeStringEnc(cUTF8, k2)
  3483. ee.WriteMapElemValue()
  3484. e.encode(v2)
  3485. }
  3486. } else {
  3487. for k2, v2 := range v {
  3488. ee.EncodeStringEnc(cUTF8, k2)
  3489. e.encode(v2)
  3490. }
  3491. }
  3492. }
  3493. ee.WriteMapEnd()
  3494. }
  3495. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3496. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3497. }
  3498. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  3499. if v == nil {
  3500. e.e.EncodeNil()
  3501. return
  3502. }
  3503. ee, esep := e.e, e.hh.hasElemSeparators()
  3504. ee.WriteMapStart(len(v))
  3505. if e.h.Canonical {
  3506. v2 := make([]string, len(v))
  3507. var i uint
  3508. for k := range v {
  3509. v2[i] = string(k)
  3510. i++
  3511. }
  3512. sort.Sort(stringSlice(v2))
  3513. if esep {
  3514. for _, k2 := range v2 {
  3515. ee.WriteMapElemKey()
  3516. ee.EncodeStringEnc(cUTF8, k2)
  3517. ee.WriteMapElemValue()
  3518. ee.EncodeInt(int64(v[string(k2)]))
  3519. }
  3520. } else {
  3521. for _, k2 := range v2 {
  3522. ee.EncodeStringEnc(cUTF8, k2)
  3523. ee.EncodeInt(int64(v[string(k2)]))
  3524. }
  3525. }
  3526. } else {
  3527. if esep {
  3528. for k2, v2 := range v {
  3529. ee.WriteMapElemKey()
  3530. ee.EncodeStringEnc(cUTF8, k2)
  3531. ee.WriteMapElemValue()
  3532. ee.EncodeInt(int64(v2))
  3533. }
  3534. } else {
  3535. for k2, v2 := range v {
  3536. ee.EncodeStringEnc(cUTF8, k2)
  3537. ee.EncodeInt(int64(v2))
  3538. }
  3539. }
  3540. }
  3541. ee.WriteMapEnd()
  3542. }
  3543. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3544. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3545. }
  3546. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3547. if v == nil {
  3548. e.e.EncodeNil()
  3549. return
  3550. }
  3551. ee, esep := e.e, e.hh.hasElemSeparators()
  3552. ee.WriteMapStart(len(v))
  3553. if e.h.Canonical {
  3554. v2 := make([]string, len(v))
  3555. var i uint
  3556. for k := range v {
  3557. v2[i] = string(k)
  3558. i++
  3559. }
  3560. sort.Sort(stringSlice(v2))
  3561. if esep {
  3562. for _, k2 := range v2 {
  3563. ee.WriteMapElemKey()
  3564. ee.EncodeStringEnc(cUTF8, k2)
  3565. ee.WriteMapElemValue()
  3566. ee.EncodeInt(int64(v[string(k2)]))
  3567. }
  3568. } else {
  3569. for _, k2 := range v2 {
  3570. ee.EncodeStringEnc(cUTF8, k2)
  3571. ee.EncodeInt(int64(v[string(k2)]))
  3572. }
  3573. }
  3574. } else {
  3575. if esep {
  3576. for k2, v2 := range v {
  3577. ee.WriteMapElemKey()
  3578. ee.EncodeStringEnc(cUTF8, k2)
  3579. ee.WriteMapElemValue()
  3580. ee.EncodeInt(int64(v2))
  3581. }
  3582. } else {
  3583. for k2, v2 := range v {
  3584. ee.EncodeStringEnc(cUTF8, k2)
  3585. ee.EncodeInt(int64(v2))
  3586. }
  3587. }
  3588. }
  3589. ee.WriteMapEnd()
  3590. }
  3591. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3592. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3593. }
  3594. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3595. if v == nil {
  3596. e.e.EncodeNil()
  3597. return
  3598. }
  3599. ee, esep := e.e, e.hh.hasElemSeparators()
  3600. ee.WriteMapStart(len(v))
  3601. if e.h.Canonical {
  3602. v2 := make([]string, len(v))
  3603. var i uint
  3604. for k := range v {
  3605. v2[i] = string(k)
  3606. i++
  3607. }
  3608. sort.Sort(stringSlice(v2))
  3609. if esep {
  3610. for _, k2 := range v2 {
  3611. ee.WriteMapElemKey()
  3612. ee.EncodeStringEnc(cUTF8, k2)
  3613. ee.WriteMapElemValue()
  3614. ee.EncodeInt(int64(v[string(k2)]))
  3615. }
  3616. } else {
  3617. for _, k2 := range v2 {
  3618. ee.EncodeStringEnc(cUTF8, k2)
  3619. ee.EncodeInt(int64(v[string(k2)]))
  3620. }
  3621. }
  3622. } else {
  3623. if esep {
  3624. for k2, v2 := range v {
  3625. ee.WriteMapElemKey()
  3626. ee.EncodeStringEnc(cUTF8, k2)
  3627. ee.WriteMapElemValue()
  3628. ee.EncodeInt(int64(v2))
  3629. }
  3630. } else {
  3631. for k2, v2 := range v {
  3632. ee.EncodeStringEnc(cUTF8, k2)
  3633. ee.EncodeInt(int64(v2))
  3634. }
  3635. }
  3636. }
  3637. ee.WriteMapEnd()
  3638. }
  3639. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3640. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3641. }
  3642. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3643. if v == nil {
  3644. e.e.EncodeNil()
  3645. return
  3646. }
  3647. ee, esep := e.e, e.hh.hasElemSeparators()
  3648. ee.WriteMapStart(len(v))
  3649. if e.h.Canonical {
  3650. v2 := make([]string, len(v))
  3651. var i uint
  3652. for k := range v {
  3653. v2[i] = string(k)
  3654. i++
  3655. }
  3656. sort.Sort(stringSlice(v2))
  3657. if esep {
  3658. for _, k2 := range v2 {
  3659. ee.WriteMapElemKey()
  3660. ee.EncodeStringEnc(cUTF8, k2)
  3661. ee.WriteMapElemValue()
  3662. ee.EncodeInt(int64(v[string(k2)]))
  3663. }
  3664. } else {
  3665. for _, k2 := range v2 {
  3666. ee.EncodeStringEnc(cUTF8, k2)
  3667. ee.EncodeInt(int64(v[string(k2)]))
  3668. }
  3669. }
  3670. } else {
  3671. if esep {
  3672. for k2, v2 := range v {
  3673. ee.WriteMapElemKey()
  3674. ee.EncodeStringEnc(cUTF8, k2)
  3675. ee.WriteMapElemValue()
  3676. ee.EncodeInt(int64(v2))
  3677. }
  3678. } else {
  3679. for k2, v2 := range v {
  3680. ee.EncodeStringEnc(cUTF8, k2)
  3681. ee.EncodeInt(int64(v2))
  3682. }
  3683. }
  3684. }
  3685. ee.WriteMapEnd()
  3686. }
  3687. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3688. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3689. }
  3690. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3691. if v == nil {
  3692. e.e.EncodeNil()
  3693. return
  3694. }
  3695. ee, esep := e.e, e.hh.hasElemSeparators()
  3696. ee.WriteMapStart(len(v))
  3697. if e.h.Canonical {
  3698. v2 := make([]string, len(v))
  3699. var i uint
  3700. for k := range v {
  3701. v2[i] = string(k)
  3702. i++
  3703. }
  3704. sort.Sort(stringSlice(v2))
  3705. if esep {
  3706. for _, k2 := range v2 {
  3707. ee.WriteMapElemKey()
  3708. ee.EncodeStringEnc(cUTF8, k2)
  3709. ee.WriteMapElemValue()
  3710. ee.EncodeInt(int64(v[string(k2)]))
  3711. }
  3712. } else {
  3713. for _, k2 := range v2 {
  3714. ee.EncodeStringEnc(cUTF8, k2)
  3715. ee.EncodeInt(int64(v[string(k2)]))
  3716. }
  3717. }
  3718. } else {
  3719. if esep {
  3720. for k2, v2 := range v {
  3721. ee.WriteMapElemKey()
  3722. ee.EncodeStringEnc(cUTF8, k2)
  3723. ee.WriteMapElemValue()
  3724. ee.EncodeInt(int64(v2))
  3725. }
  3726. } else {
  3727. for k2, v2 := range v {
  3728. ee.EncodeStringEnc(cUTF8, k2)
  3729. ee.EncodeInt(int64(v2))
  3730. }
  3731. }
  3732. }
  3733. ee.WriteMapEnd()
  3734. }
  3735. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3736. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3737. }
  3738. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3739. if v == nil {
  3740. e.e.EncodeNil()
  3741. return
  3742. }
  3743. ee, esep := e.e, e.hh.hasElemSeparators()
  3744. ee.WriteMapStart(len(v))
  3745. if e.h.Canonical {
  3746. v2 := make([]string, len(v))
  3747. var i uint
  3748. for k := range v {
  3749. v2[i] = string(k)
  3750. i++
  3751. }
  3752. sort.Sort(stringSlice(v2))
  3753. if esep {
  3754. for _, k2 := range v2 {
  3755. ee.WriteMapElemKey()
  3756. ee.EncodeStringEnc(cUTF8, k2)
  3757. ee.WriteMapElemValue()
  3758. ee.EncodeFloat32(v[string(k2)])
  3759. }
  3760. } else {
  3761. for _, k2 := range v2 {
  3762. ee.EncodeStringEnc(cUTF8, k2)
  3763. ee.EncodeFloat32(v[string(k2)])
  3764. }
  3765. }
  3766. } else {
  3767. if esep {
  3768. for k2, v2 := range v {
  3769. ee.WriteMapElemKey()
  3770. ee.EncodeStringEnc(cUTF8, k2)
  3771. ee.WriteMapElemValue()
  3772. ee.EncodeFloat32(v2)
  3773. }
  3774. } else {
  3775. for k2, v2 := range v {
  3776. ee.EncodeStringEnc(cUTF8, k2)
  3777. ee.EncodeFloat32(v2)
  3778. }
  3779. }
  3780. }
  3781. ee.WriteMapEnd()
  3782. }
  3783. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3784. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3785. }
  3786. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3787. if v == nil {
  3788. e.e.EncodeNil()
  3789. return
  3790. }
  3791. ee, esep := e.e, e.hh.hasElemSeparators()
  3792. ee.WriteMapStart(len(v))
  3793. if e.h.Canonical {
  3794. v2 := make([]string, len(v))
  3795. var i uint
  3796. for k := range v {
  3797. v2[i] = string(k)
  3798. i++
  3799. }
  3800. sort.Sort(stringSlice(v2))
  3801. if esep {
  3802. for _, k2 := range v2 {
  3803. ee.WriteMapElemKey()
  3804. ee.EncodeStringEnc(cUTF8, k2)
  3805. ee.WriteMapElemValue()
  3806. ee.EncodeFloat64(v[string(k2)])
  3807. }
  3808. } else {
  3809. for _, k2 := range v2 {
  3810. ee.EncodeStringEnc(cUTF8, k2)
  3811. ee.EncodeFloat64(v[string(k2)])
  3812. }
  3813. }
  3814. } else {
  3815. if esep {
  3816. for k2, v2 := range v {
  3817. ee.WriteMapElemKey()
  3818. ee.EncodeStringEnc(cUTF8, k2)
  3819. ee.WriteMapElemValue()
  3820. ee.EncodeFloat64(v2)
  3821. }
  3822. } else {
  3823. for k2, v2 := range v {
  3824. ee.EncodeStringEnc(cUTF8, k2)
  3825. ee.EncodeFloat64(v2)
  3826. }
  3827. }
  3828. }
  3829. ee.WriteMapEnd()
  3830. }
  3831. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3832. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3833. }
  3834. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3835. if v == nil {
  3836. e.e.EncodeNil()
  3837. return
  3838. }
  3839. ee, esep := e.e, e.hh.hasElemSeparators()
  3840. ee.WriteMapStart(len(v))
  3841. if e.h.Canonical {
  3842. v2 := make([]string, len(v))
  3843. var i uint
  3844. for k := range v {
  3845. v2[i] = string(k)
  3846. i++
  3847. }
  3848. sort.Sort(stringSlice(v2))
  3849. if esep {
  3850. for _, k2 := range v2 {
  3851. ee.WriteMapElemKey()
  3852. ee.EncodeStringEnc(cUTF8, k2)
  3853. ee.WriteMapElemValue()
  3854. ee.EncodeBool(v[string(k2)])
  3855. }
  3856. } else {
  3857. for _, k2 := range v2 {
  3858. ee.EncodeStringEnc(cUTF8, k2)
  3859. ee.EncodeBool(v[string(k2)])
  3860. }
  3861. }
  3862. } else {
  3863. if esep {
  3864. for k2, v2 := range v {
  3865. ee.WriteMapElemKey()
  3866. ee.EncodeStringEnc(cUTF8, k2)
  3867. ee.WriteMapElemValue()
  3868. ee.EncodeBool(v2)
  3869. }
  3870. } else {
  3871. for k2, v2 := range v {
  3872. ee.EncodeStringEnc(cUTF8, k2)
  3873. ee.EncodeBool(v2)
  3874. }
  3875. }
  3876. }
  3877. ee.WriteMapEnd()
  3878. }
  3879. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3880. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3881. }
  3882. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3883. if v == nil {
  3884. e.e.EncodeNil()
  3885. return
  3886. }
  3887. ee, esep := e.e, e.hh.hasElemSeparators()
  3888. ee.WriteMapStart(len(v))
  3889. if e.h.Canonical {
  3890. v2 := make([]float64, len(v))
  3891. var i uint
  3892. for k := range v {
  3893. v2[i] = float64(k)
  3894. i++
  3895. }
  3896. sort.Sort(floatSlice(v2))
  3897. if esep {
  3898. for _, k2 := range v2 {
  3899. ee.WriteMapElemKey()
  3900. ee.EncodeFloat32(float32(k2))
  3901. ee.WriteMapElemValue()
  3902. e.encode(v[float32(k2)])
  3903. }
  3904. } else {
  3905. for _, k2 := range v2 {
  3906. ee.EncodeFloat32(float32(k2))
  3907. e.encode(v[float32(k2)])
  3908. }
  3909. }
  3910. } else {
  3911. if esep {
  3912. for k2, v2 := range v {
  3913. ee.WriteMapElemKey()
  3914. ee.EncodeFloat32(k2)
  3915. ee.WriteMapElemValue()
  3916. e.encode(v2)
  3917. }
  3918. } else {
  3919. for k2, v2 := range v {
  3920. ee.EncodeFloat32(k2)
  3921. e.encode(v2)
  3922. }
  3923. }
  3924. }
  3925. ee.WriteMapEnd()
  3926. }
  3927. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3928. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3929. }
  3930. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3931. if v == nil {
  3932. e.e.EncodeNil()
  3933. return
  3934. }
  3935. ee, esep := e.e, e.hh.hasElemSeparators()
  3936. ee.WriteMapStart(len(v))
  3937. if e.h.Canonical {
  3938. v2 := make([]float64, len(v))
  3939. var i uint
  3940. for k := range v {
  3941. v2[i] = float64(k)
  3942. i++
  3943. }
  3944. sort.Sort(floatSlice(v2))
  3945. if esep {
  3946. for _, k2 := range v2 {
  3947. ee.WriteMapElemKey()
  3948. ee.EncodeFloat32(float32(k2))
  3949. ee.WriteMapElemValue()
  3950. ee.EncodeStringEnc(cUTF8, v[float32(k2)])
  3951. }
  3952. } else {
  3953. for _, k2 := range v2 {
  3954. ee.EncodeFloat32(float32(k2))
  3955. ee.EncodeStringEnc(cUTF8, v[float32(k2)])
  3956. }
  3957. }
  3958. } else {
  3959. if esep {
  3960. for k2, v2 := range v {
  3961. ee.WriteMapElemKey()
  3962. ee.EncodeFloat32(k2)
  3963. ee.WriteMapElemValue()
  3964. ee.EncodeStringEnc(cUTF8, v2)
  3965. }
  3966. } else {
  3967. for k2, v2 := range v {
  3968. ee.EncodeFloat32(k2)
  3969. ee.EncodeStringEnc(cUTF8, v2)
  3970. }
  3971. }
  3972. }
  3973. ee.WriteMapEnd()
  3974. }
  3975. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3976. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3977. }
  3978. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3979. if v == nil {
  3980. e.e.EncodeNil()
  3981. return
  3982. }
  3983. ee, esep := e.e, e.hh.hasElemSeparators()
  3984. ee.WriteMapStart(len(v))
  3985. if e.h.Canonical {
  3986. v2 := make([]float64, len(v))
  3987. var i uint
  3988. for k := range v {
  3989. v2[i] = float64(k)
  3990. i++
  3991. }
  3992. sort.Sort(floatSlice(v2))
  3993. if esep {
  3994. for _, k2 := range v2 {
  3995. ee.WriteMapElemKey()
  3996. ee.EncodeFloat32(float32(k2))
  3997. ee.WriteMapElemValue()
  3998. ee.EncodeUint(uint64(v[float32(k2)]))
  3999. }
  4000. } else {
  4001. for _, k2 := range v2 {
  4002. ee.EncodeFloat32(float32(k2))
  4003. ee.EncodeUint(uint64(v[float32(k2)]))
  4004. }
  4005. }
  4006. } else {
  4007. if esep {
  4008. for k2, v2 := range v {
  4009. ee.WriteMapElemKey()
  4010. ee.EncodeFloat32(k2)
  4011. ee.WriteMapElemValue()
  4012. ee.EncodeUint(uint64(v2))
  4013. }
  4014. } else {
  4015. for k2, v2 := range v {
  4016. ee.EncodeFloat32(k2)
  4017. ee.EncodeUint(uint64(v2))
  4018. }
  4019. }
  4020. }
  4021. ee.WriteMapEnd()
  4022. }
  4023. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  4024. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  4025. }
  4026. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  4027. if v == nil {
  4028. e.e.EncodeNil()
  4029. return
  4030. }
  4031. ee, esep := e.e, e.hh.hasElemSeparators()
  4032. ee.WriteMapStart(len(v))
  4033. if e.h.Canonical {
  4034. v2 := make([]float64, len(v))
  4035. var i uint
  4036. for k := range v {
  4037. v2[i] = float64(k)
  4038. i++
  4039. }
  4040. sort.Sort(floatSlice(v2))
  4041. if esep {
  4042. for _, k2 := range v2 {
  4043. ee.WriteMapElemKey()
  4044. ee.EncodeFloat32(float32(k2))
  4045. ee.WriteMapElemValue()
  4046. ee.EncodeUint(uint64(v[float32(k2)]))
  4047. }
  4048. } else {
  4049. for _, k2 := range v2 {
  4050. ee.EncodeFloat32(float32(k2))
  4051. ee.EncodeUint(uint64(v[float32(k2)]))
  4052. }
  4053. }
  4054. } else {
  4055. if esep {
  4056. for k2, v2 := range v {
  4057. ee.WriteMapElemKey()
  4058. ee.EncodeFloat32(k2)
  4059. ee.WriteMapElemValue()
  4060. ee.EncodeUint(uint64(v2))
  4061. }
  4062. } else {
  4063. for k2, v2 := range v {
  4064. ee.EncodeFloat32(k2)
  4065. ee.EncodeUint(uint64(v2))
  4066. }
  4067. }
  4068. }
  4069. ee.WriteMapEnd()
  4070. }
  4071. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  4072. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  4073. }
  4074. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  4075. if v == nil {
  4076. e.e.EncodeNil()
  4077. return
  4078. }
  4079. ee, esep := e.e, e.hh.hasElemSeparators()
  4080. ee.WriteMapStart(len(v))
  4081. if e.h.Canonical {
  4082. v2 := make([]float64, len(v))
  4083. var i uint
  4084. for k := range v {
  4085. v2[i] = float64(k)
  4086. i++
  4087. }
  4088. sort.Sort(floatSlice(v2))
  4089. if esep {
  4090. for _, k2 := range v2 {
  4091. ee.WriteMapElemKey()
  4092. ee.EncodeFloat32(float32(k2))
  4093. ee.WriteMapElemValue()
  4094. ee.EncodeUint(uint64(v[float32(k2)]))
  4095. }
  4096. } else {
  4097. for _, k2 := range v2 {
  4098. ee.EncodeFloat32(float32(k2))
  4099. ee.EncodeUint(uint64(v[float32(k2)]))
  4100. }
  4101. }
  4102. } else {
  4103. if esep {
  4104. for k2, v2 := range v {
  4105. ee.WriteMapElemKey()
  4106. ee.EncodeFloat32(k2)
  4107. ee.WriteMapElemValue()
  4108. ee.EncodeUint(uint64(v2))
  4109. }
  4110. } else {
  4111. for k2, v2 := range v {
  4112. ee.EncodeFloat32(k2)
  4113. ee.EncodeUint(uint64(v2))
  4114. }
  4115. }
  4116. }
  4117. ee.WriteMapEnd()
  4118. }
  4119. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  4120. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  4121. }
  4122. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  4123. if v == nil {
  4124. e.e.EncodeNil()
  4125. return
  4126. }
  4127. ee, esep := e.e, e.hh.hasElemSeparators()
  4128. ee.WriteMapStart(len(v))
  4129. if e.h.Canonical {
  4130. v2 := make([]float64, len(v))
  4131. var i uint
  4132. for k := range v {
  4133. v2[i] = float64(k)
  4134. i++
  4135. }
  4136. sort.Sort(floatSlice(v2))
  4137. if esep {
  4138. for _, k2 := range v2 {
  4139. ee.WriteMapElemKey()
  4140. ee.EncodeFloat32(float32(k2))
  4141. ee.WriteMapElemValue()
  4142. ee.EncodeUint(uint64(v[float32(k2)]))
  4143. }
  4144. } else {
  4145. for _, k2 := range v2 {
  4146. ee.EncodeFloat32(float32(k2))
  4147. ee.EncodeUint(uint64(v[float32(k2)]))
  4148. }
  4149. }
  4150. } else {
  4151. if esep {
  4152. for k2, v2 := range v {
  4153. ee.WriteMapElemKey()
  4154. ee.EncodeFloat32(k2)
  4155. ee.WriteMapElemValue()
  4156. ee.EncodeUint(uint64(v2))
  4157. }
  4158. } else {
  4159. for k2, v2 := range v {
  4160. ee.EncodeFloat32(k2)
  4161. ee.EncodeUint(uint64(v2))
  4162. }
  4163. }
  4164. }
  4165. ee.WriteMapEnd()
  4166. }
  4167. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  4168. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  4169. }
  4170. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  4171. if v == nil {
  4172. e.e.EncodeNil()
  4173. return
  4174. }
  4175. ee, esep := e.e, e.hh.hasElemSeparators()
  4176. ee.WriteMapStart(len(v))
  4177. if e.h.Canonical {
  4178. v2 := make([]float64, len(v))
  4179. var i uint
  4180. for k := range v {
  4181. v2[i] = float64(k)
  4182. i++
  4183. }
  4184. sort.Sort(floatSlice(v2))
  4185. if esep {
  4186. for _, k2 := range v2 {
  4187. ee.WriteMapElemKey()
  4188. ee.EncodeFloat32(float32(k2))
  4189. ee.WriteMapElemValue()
  4190. ee.EncodeUint(uint64(v[float32(k2)]))
  4191. }
  4192. } else {
  4193. for _, k2 := range v2 {
  4194. ee.EncodeFloat32(float32(k2))
  4195. ee.EncodeUint(uint64(v[float32(k2)]))
  4196. }
  4197. }
  4198. } else {
  4199. if esep {
  4200. for k2, v2 := range v {
  4201. ee.WriteMapElemKey()
  4202. ee.EncodeFloat32(k2)
  4203. ee.WriteMapElemValue()
  4204. ee.EncodeUint(uint64(v2))
  4205. }
  4206. } else {
  4207. for k2, v2 := range v {
  4208. ee.EncodeFloat32(k2)
  4209. ee.EncodeUint(uint64(v2))
  4210. }
  4211. }
  4212. }
  4213. ee.WriteMapEnd()
  4214. }
  4215. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  4216. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  4217. }
  4218. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  4219. if v == nil {
  4220. e.e.EncodeNil()
  4221. return
  4222. }
  4223. ee, esep := e.e, e.hh.hasElemSeparators()
  4224. ee.WriteMapStart(len(v))
  4225. if e.h.Canonical {
  4226. v2 := make([]float64, len(v))
  4227. var i uint
  4228. for k := range v {
  4229. v2[i] = float64(k)
  4230. i++
  4231. }
  4232. sort.Sort(floatSlice(v2))
  4233. if esep {
  4234. for _, k2 := range v2 {
  4235. ee.WriteMapElemKey()
  4236. ee.EncodeFloat32(float32(k2))
  4237. ee.WriteMapElemValue()
  4238. e.encode(v[float32(k2)])
  4239. }
  4240. } else {
  4241. for _, k2 := range v2 {
  4242. ee.EncodeFloat32(float32(k2))
  4243. e.encode(v[float32(k2)])
  4244. }
  4245. }
  4246. } else {
  4247. if esep {
  4248. for k2, v2 := range v {
  4249. ee.WriteMapElemKey()
  4250. ee.EncodeFloat32(k2)
  4251. ee.WriteMapElemValue()
  4252. e.encode(v2)
  4253. }
  4254. } else {
  4255. for k2, v2 := range v {
  4256. ee.EncodeFloat32(k2)
  4257. e.encode(v2)
  4258. }
  4259. }
  4260. }
  4261. ee.WriteMapEnd()
  4262. }
  4263. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  4264. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  4265. }
  4266. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  4267. if v == nil {
  4268. e.e.EncodeNil()
  4269. return
  4270. }
  4271. ee, esep := e.e, e.hh.hasElemSeparators()
  4272. ee.WriteMapStart(len(v))
  4273. if e.h.Canonical {
  4274. v2 := make([]float64, len(v))
  4275. var i uint
  4276. for k := range v {
  4277. v2[i] = float64(k)
  4278. i++
  4279. }
  4280. sort.Sort(floatSlice(v2))
  4281. if esep {
  4282. for _, k2 := range v2 {
  4283. ee.WriteMapElemKey()
  4284. ee.EncodeFloat32(float32(k2))
  4285. ee.WriteMapElemValue()
  4286. ee.EncodeInt(int64(v[float32(k2)]))
  4287. }
  4288. } else {
  4289. for _, k2 := range v2 {
  4290. ee.EncodeFloat32(float32(k2))
  4291. ee.EncodeInt(int64(v[float32(k2)]))
  4292. }
  4293. }
  4294. } else {
  4295. if esep {
  4296. for k2, v2 := range v {
  4297. ee.WriteMapElemKey()
  4298. ee.EncodeFloat32(k2)
  4299. ee.WriteMapElemValue()
  4300. ee.EncodeInt(int64(v2))
  4301. }
  4302. } else {
  4303. for k2, v2 := range v {
  4304. ee.EncodeFloat32(k2)
  4305. ee.EncodeInt(int64(v2))
  4306. }
  4307. }
  4308. }
  4309. ee.WriteMapEnd()
  4310. }
  4311. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  4312. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  4313. }
  4314. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  4315. if v == nil {
  4316. e.e.EncodeNil()
  4317. return
  4318. }
  4319. ee, esep := e.e, e.hh.hasElemSeparators()
  4320. ee.WriteMapStart(len(v))
  4321. if e.h.Canonical {
  4322. v2 := make([]float64, len(v))
  4323. var i uint
  4324. for k := range v {
  4325. v2[i] = float64(k)
  4326. i++
  4327. }
  4328. sort.Sort(floatSlice(v2))
  4329. if esep {
  4330. for _, k2 := range v2 {
  4331. ee.WriteMapElemKey()
  4332. ee.EncodeFloat32(float32(k2))
  4333. ee.WriteMapElemValue()
  4334. ee.EncodeInt(int64(v[float32(k2)]))
  4335. }
  4336. } else {
  4337. for _, k2 := range v2 {
  4338. ee.EncodeFloat32(float32(k2))
  4339. ee.EncodeInt(int64(v[float32(k2)]))
  4340. }
  4341. }
  4342. } else {
  4343. if esep {
  4344. for k2, v2 := range v {
  4345. ee.WriteMapElemKey()
  4346. ee.EncodeFloat32(k2)
  4347. ee.WriteMapElemValue()
  4348. ee.EncodeInt(int64(v2))
  4349. }
  4350. } else {
  4351. for k2, v2 := range v {
  4352. ee.EncodeFloat32(k2)
  4353. ee.EncodeInt(int64(v2))
  4354. }
  4355. }
  4356. }
  4357. ee.WriteMapEnd()
  4358. }
  4359. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  4360. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  4361. }
  4362. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  4363. if v == nil {
  4364. e.e.EncodeNil()
  4365. return
  4366. }
  4367. ee, esep := e.e, e.hh.hasElemSeparators()
  4368. ee.WriteMapStart(len(v))
  4369. if e.h.Canonical {
  4370. v2 := make([]float64, len(v))
  4371. var i uint
  4372. for k := range v {
  4373. v2[i] = float64(k)
  4374. i++
  4375. }
  4376. sort.Sort(floatSlice(v2))
  4377. if esep {
  4378. for _, k2 := range v2 {
  4379. ee.WriteMapElemKey()
  4380. ee.EncodeFloat32(float32(k2))
  4381. ee.WriteMapElemValue()
  4382. ee.EncodeInt(int64(v[float32(k2)]))
  4383. }
  4384. } else {
  4385. for _, k2 := range v2 {
  4386. ee.EncodeFloat32(float32(k2))
  4387. ee.EncodeInt(int64(v[float32(k2)]))
  4388. }
  4389. }
  4390. } else {
  4391. if esep {
  4392. for k2, v2 := range v {
  4393. ee.WriteMapElemKey()
  4394. ee.EncodeFloat32(k2)
  4395. ee.WriteMapElemValue()
  4396. ee.EncodeInt(int64(v2))
  4397. }
  4398. } else {
  4399. for k2, v2 := range v {
  4400. ee.EncodeFloat32(k2)
  4401. ee.EncodeInt(int64(v2))
  4402. }
  4403. }
  4404. }
  4405. ee.WriteMapEnd()
  4406. }
  4407. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  4408. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  4409. }
  4410. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  4411. if v == nil {
  4412. e.e.EncodeNil()
  4413. return
  4414. }
  4415. ee, esep := e.e, e.hh.hasElemSeparators()
  4416. ee.WriteMapStart(len(v))
  4417. if e.h.Canonical {
  4418. v2 := make([]float64, len(v))
  4419. var i uint
  4420. for k := range v {
  4421. v2[i] = float64(k)
  4422. i++
  4423. }
  4424. sort.Sort(floatSlice(v2))
  4425. if esep {
  4426. for _, k2 := range v2 {
  4427. ee.WriteMapElemKey()
  4428. ee.EncodeFloat32(float32(k2))
  4429. ee.WriteMapElemValue()
  4430. ee.EncodeInt(int64(v[float32(k2)]))
  4431. }
  4432. } else {
  4433. for _, k2 := range v2 {
  4434. ee.EncodeFloat32(float32(k2))
  4435. ee.EncodeInt(int64(v[float32(k2)]))
  4436. }
  4437. }
  4438. } else {
  4439. if esep {
  4440. for k2, v2 := range v {
  4441. ee.WriteMapElemKey()
  4442. ee.EncodeFloat32(k2)
  4443. ee.WriteMapElemValue()
  4444. ee.EncodeInt(int64(v2))
  4445. }
  4446. } else {
  4447. for k2, v2 := range v {
  4448. ee.EncodeFloat32(k2)
  4449. ee.EncodeInt(int64(v2))
  4450. }
  4451. }
  4452. }
  4453. ee.WriteMapEnd()
  4454. }
  4455. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  4456. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  4457. }
  4458. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  4459. if v == nil {
  4460. e.e.EncodeNil()
  4461. return
  4462. }
  4463. ee, esep := e.e, e.hh.hasElemSeparators()
  4464. ee.WriteMapStart(len(v))
  4465. if e.h.Canonical {
  4466. v2 := make([]float64, len(v))
  4467. var i uint
  4468. for k := range v {
  4469. v2[i] = float64(k)
  4470. i++
  4471. }
  4472. sort.Sort(floatSlice(v2))
  4473. if esep {
  4474. for _, k2 := range v2 {
  4475. ee.WriteMapElemKey()
  4476. ee.EncodeFloat32(float32(k2))
  4477. ee.WriteMapElemValue()
  4478. ee.EncodeInt(int64(v[float32(k2)]))
  4479. }
  4480. } else {
  4481. for _, k2 := range v2 {
  4482. ee.EncodeFloat32(float32(k2))
  4483. ee.EncodeInt(int64(v[float32(k2)]))
  4484. }
  4485. }
  4486. } else {
  4487. if esep {
  4488. for k2, v2 := range v {
  4489. ee.WriteMapElemKey()
  4490. ee.EncodeFloat32(k2)
  4491. ee.WriteMapElemValue()
  4492. ee.EncodeInt(int64(v2))
  4493. }
  4494. } else {
  4495. for k2, v2 := range v {
  4496. ee.EncodeFloat32(k2)
  4497. ee.EncodeInt(int64(v2))
  4498. }
  4499. }
  4500. }
  4501. ee.WriteMapEnd()
  4502. }
  4503. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  4504. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  4505. }
  4506. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  4507. if v == nil {
  4508. e.e.EncodeNil()
  4509. return
  4510. }
  4511. ee, esep := e.e, e.hh.hasElemSeparators()
  4512. ee.WriteMapStart(len(v))
  4513. if e.h.Canonical {
  4514. v2 := make([]float64, len(v))
  4515. var i uint
  4516. for k := range v {
  4517. v2[i] = float64(k)
  4518. i++
  4519. }
  4520. sort.Sort(floatSlice(v2))
  4521. if esep {
  4522. for _, k2 := range v2 {
  4523. ee.WriteMapElemKey()
  4524. ee.EncodeFloat32(float32(k2))
  4525. ee.WriteMapElemValue()
  4526. ee.EncodeFloat32(v[float32(k2)])
  4527. }
  4528. } else {
  4529. for _, k2 := range v2 {
  4530. ee.EncodeFloat32(float32(k2))
  4531. ee.EncodeFloat32(v[float32(k2)])
  4532. }
  4533. }
  4534. } else {
  4535. if esep {
  4536. for k2, v2 := range v {
  4537. ee.WriteMapElemKey()
  4538. ee.EncodeFloat32(k2)
  4539. ee.WriteMapElemValue()
  4540. ee.EncodeFloat32(v2)
  4541. }
  4542. } else {
  4543. for k2, v2 := range v {
  4544. ee.EncodeFloat32(k2)
  4545. ee.EncodeFloat32(v2)
  4546. }
  4547. }
  4548. }
  4549. ee.WriteMapEnd()
  4550. }
  4551. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4552. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4553. }
  4554. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4555. if v == nil {
  4556. e.e.EncodeNil()
  4557. return
  4558. }
  4559. ee, esep := e.e, e.hh.hasElemSeparators()
  4560. ee.WriteMapStart(len(v))
  4561. if e.h.Canonical {
  4562. v2 := make([]float64, len(v))
  4563. var i uint
  4564. for k := range v {
  4565. v2[i] = float64(k)
  4566. i++
  4567. }
  4568. sort.Sort(floatSlice(v2))
  4569. if esep {
  4570. for _, k2 := range v2 {
  4571. ee.WriteMapElemKey()
  4572. ee.EncodeFloat32(float32(k2))
  4573. ee.WriteMapElemValue()
  4574. ee.EncodeFloat64(v[float32(k2)])
  4575. }
  4576. } else {
  4577. for _, k2 := range v2 {
  4578. ee.EncodeFloat32(float32(k2))
  4579. ee.EncodeFloat64(v[float32(k2)])
  4580. }
  4581. }
  4582. } else {
  4583. if esep {
  4584. for k2, v2 := range v {
  4585. ee.WriteMapElemKey()
  4586. ee.EncodeFloat32(k2)
  4587. ee.WriteMapElemValue()
  4588. ee.EncodeFloat64(v2)
  4589. }
  4590. } else {
  4591. for k2, v2 := range v {
  4592. ee.EncodeFloat32(k2)
  4593. ee.EncodeFloat64(v2)
  4594. }
  4595. }
  4596. }
  4597. ee.WriteMapEnd()
  4598. }
  4599. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4600. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4601. }
  4602. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4603. if v == nil {
  4604. e.e.EncodeNil()
  4605. return
  4606. }
  4607. ee, esep := e.e, e.hh.hasElemSeparators()
  4608. ee.WriteMapStart(len(v))
  4609. if e.h.Canonical {
  4610. v2 := make([]float64, len(v))
  4611. var i uint
  4612. for k := range v {
  4613. v2[i] = float64(k)
  4614. i++
  4615. }
  4616. sort.Sort(floatSlice(v2))
  4617. if esep {
  4618. for _, k2 := range v2 {
  4619. ee.WriteMapElemKey()
  4620. ee.EncodeFloat32(float32(k2))
  4621. ee.WriteMapElemValue()
  4622. ee.EncodeBool(v[float32(k2)])
  4623. }
  4624. } else {
  4625. for _, k2 := range v2 {
  4626. ee.EncodeFloat32(float32(k2))
  4627. ee.EncodeBool(v[float32(k2)])
  4628. }
  4629. }
  4630. } else {
  4631. if esep {
  4632. for k2, v2 := range v {
  4633. ee.WriteMapElemKey()
  4634. ee.EncodeFloat32(k2)
  4635. ee.WriteMapElemValue()
  4636. ee.EncodeBool(v2)
  4637. }
  4638. } else {
  4639. for k2, v2 := range v {
  4640. ee.EncodeFloat32(k2)
  4641. ee.EncodeBool(v2)
  4642. }
  4643. }
  4644. }
  4645. ee.WriteMapEnd()
  4646. }
  4647. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4648. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4649. }
  4650. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4651. if v == nil {
  4652. e.e.EncodeNil()
  4653. return
  4654. }
  4655. ee, esep := e.e, e.hh.hasElemSeparators()
  4656. ee.WriteMapStart(len(v))
  4657. if e.h.Canonical {
  4658. v2 := make([]float64, len(v))
  4659. var i uint
  4660. for k := range v {
  4661. v2[i] = float64(k)
  4662. i++
  4663. }
  4664. sort.Sort(floatSlice(v2))
  4665. if esep {
  4666. for _, k2 := range v2 {
  4667. ee.WriteMapElemKey()
  4668. ee.EncodeFloat64(float64(k2))
  4669. ee.WriteMapElemValue()
  4670. e.encode(v[float64(k2)])
  4671. }
  4672. } else {
  4673. for _, k2 := range v2 {
  4674. ee.EncodeFloat64(float64(k2))
  4675. e.encode(v[float64(k2)])
  4676. }
  4677. }
  4678. } else {
  4679. if esep {
  4680. for k2, v2 := range v {
  4681. ee.WriteMapElemKey()
  4682. ee.EncodeFloat64(k2)
  4683. ee.WriteMapElemValue()
  4684. e.encode(v2)
  4685. }
  4686. } else {
  4687. for k2, v2 := range v {
  4688. ee.EncodeFloat64(k2)
  4689. e.encode(v2)
  4690. }
  4691. }
  4692. }
  4693. ee.WriteMapEnd()
  4694. }
  4695. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4696. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4697. }
  4698. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4699. if v == nil {
  4700. e.e.EncodeNil()
  4701. return
  4702. }
  4703. ee, esep := e.e, e.hh.hasElemSeparators()
  4704. ee.WriteMapStart(len(v))
  4705. if e.h.Canonical {
  4706. v2 := make([]float64, len(v))
  4707. var i uint
  4708. for k := range v {
  4709. v2[i] = float64(k)
  4710. i++
  4711. }
  4712. sort.Sort(floatSlice(v2))
  4713. if esep {
  4714. for _, k2 := range v2 {
  4715. ee.WriteMapElemKey()
  4716. ee.EncodeFloat64(float64(k2))
  4717. ee.WriteMapElemValue()
  4718. ee.EncodeStringEnc(cUTF8, v[float64(k2)])
  4719. }
  4720. } else {
  4721. for _, k2 := range v2 {
  4722. ee.EncodeFloat64(float64(k2))
  4723. ee.EncodeStringEnc(cUTF8, v[float64(k2)])
  4724. }
  4725. }
  4726. } else {
  4727. if esep {
  4728. for k2, v2 := range v {
  4729. ee.WriteMapElemKey()
  4730. ee.EncodeFloat64(k2)
  4731. ee.WriteMapElemValue()
  4732. ee.EncodeStringEnc(cUTF8, v2)
  4733. }
  4734. } else {
  4735. for k2, v2 := range v {
  4736. ee.EncodeFloat64(k2)
  4737. ee.EncodeStringEnc(cUTF8, v2)
  4738. }
  4739. }
  4740. }
  4741. ee.WriteMapEnd()
  4742. }
  4743. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4744. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4745. }
  4746. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4747. if v == nil {
  4748. e.e.EncodeNil()
  4749. return
  4750. }
  4751. ee, esep := e.e, e.hh.hasElemSeparators()
  4752. ee.WriteMapStart(len(v))
  4753. if e.h.Canonical {
  4754. v2 := make([]float64, len(v))
  4755. var i uint
  4756. for k := range v {
  4757. v2[i] = float64(k)
  4758. i++
  4759. }
  4760. sort.Sort(floatSlice(v2))
  4761. if esep {
  4762. for _, k2 := range v2 {
  4763. ee.WriteMapElemKey()
  4764. ee.EncodeFloat64(float64(k2))
  4765. ee.WriteMapElemValue()
  4766. ee.EncodeUint(uint64(v[float64(k2)]))
  4767. }
  4768. } else {
  4769. for _, k2 := range v2 {
  4770. ee.EncodeFloat64(float64(k2))
  4771. ee.EncodeUint(uint64(v[float64(k2)]))
  4772. }
  4773. }
  4774. } else {
  4775. if esep {
  4776. for k2, v2 := range v {
  4777. ee.WriteMapElemKey()
  4778. ee.EncodeFloat64(k2)
  4779. ee.WriteMapElemValue()
  4780. ee.EncodeUint(uint64(v2))
  4781. }
  4782. } else {
  4783. for k2, v2 := range v {
  4784. ee.EncodeFloat64(k2)
  4785. ee.EncodeUint(uint64(v2))
  4786. }
  4787. }
  4788. }
  4789. ee.WriteMapEnd()
  4790. }
  4791. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4792. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4793. }
  4794. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4795. if v == nil {
  4796. e.e.EncodeNil()
  4797. return
  4798. }
  4799. ee, esep := e.e, e.hh.hasElemSeparators()
  4800. ee.WriteMapStart(len(v))
  4801. if e.h.Canonical {
  4802. v2 := make([]float64, len(v))
  4803. var i uint
  4804. for k := range v {
  4805. v2[i] = float64(k)
  4806. i++
  4807. }
  4808. sort.Sort(floatSlice(v2))
  4809. if esep {
  4810. for _, k2 := range v2 {
  4811. ee.WriteMapElemKey()
  4812. ee.EncodeFloat64(float64(k2))
  4813. ee.WriteMapElemValue()
  4814. ee.EncodeUint(uint64(v[float64(k2)]))
  4815. }
  4816. } else {
  4817. for _, k2 := range v2 {
  4818. ee.EncodeFloat64(float64(k2))
  4819. ee.EncodeUint(uint64(v[float64(k2)]))
  4820. }
  4821. }
  4822. } else {
  4823. if esep {
  4824. for k2, v2 := range v {
  4825. ee.WriteMapElemKey()
  4826. ee.EncodeFloat64(k2)
  4827. ee.WriteMapElemValue()
  4828. ee.EncodeUint(uint64(v2))
  4829. }
  4830. } else {
  4831. for k2, v2 := range v {
  4832. ee.EncodeFloat64(k2)
  4833. ee.EncodeUint(uint64(v2))
  4834. }
  4835. }
  4836. }
  4837. ee.WriteMapEnd()
  4838. }
  4839. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4840. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4841. }
  4842. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4843. if v == nil {
  4844. e.e.EncodeNil()
  4845. return
  4846. }
  4847. ee, esep := e.e, e.hh.hasElemSeparators()
  4848. ee.WriteMapStart(len(v))
  4849. if e.h.Canonical {
  4850. v2 := make([]float64, len(v))
  4851. var i uint
  4852. for k := range v {
  4853. v2[i] = float64(k)
  4854. i++
  4855. }
  4856. sort.Sort(floatSlice(v2))
  4857. if esep {
  4858. for _, k2 := range v2 {
  4859. ee.WriteMapElemKey()
  4860. ee.EncodeFloat64(float64(k2))
  4861. ee.WriteMapElemValue()
  4862. ee.EncodeUint(uint64(v[float64(k2)]))
  4863. }
  4864. } else {
  4865. for _, k2 := range v2 {
  4866. ee.EncodeFloat64(float64(k2))
  4867. ee.EncodeUint(uint64(v[float64(k2)]))
  4868. }
  4869. }
  4870. } else {
  4871. if esep {
  4872. for k2, v2 := range v {
  4873. ee.WriteMapElemKey()
  4874. ee.EncodeFloat64(k2)
  4875. ee.WriteMapElemValue()
  4876. ee.EncodeUint(uint64(v2))
  4877. }
  4878. } else {
  4879. for k2, v2 := range v {
  4880. ee.EncodeFloat64(k2)
  4881. ee.EncodeUint(uint64(v2))
  4882. }
  4883. }
  4884. }
  4885. ee.WriteMapEnd()
  4886. }
  4887. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4888. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4889. }
  4890. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4891. if v == nil {
  4892. e.e.EncodeNil()
  4893. return
  4894. }
  4895. ee, esep := e.e, e.hh.hasElemSeparators()
  4896. ee.WriteMapStart(len(v))
  4897. if e.h.Canonical {
  4898. v2 := make([]float64, len(v))
  4899. var i uint
  4900. for k := range v {
  4901. v2[i] = float64(k)
  4902. i++
  4903. }
  4904. sort.Sort(floatSlice(v2))
  4905. if esep {
  4906. for _, k2 := range v2 {
  4907. ee.WriteMapElemKey()
  4908. ee.EncodeFloat64(float64(k2))
  4909. ee.WriteMapElemValue()
  4910. ee.EncodeUint(uint64(v[float64(k2)]))
  4911. }
  4912. } else {
  4913. for _, k2 := range v2 {
  4914. ee.EncodeFloat64(float64(k2))
  4915. ee.EncodeUint(uint64(v[float64(k2)]))
  4916. }
  4917. }
  4918. } else {
  4919. if esep {
  4920. for k2, v2 := range v {
  4921. ee.WriteMapElemKey()
  4922. ee.EncodeFloat64(k2)
  4923. ee.WriteMapElemValue()
  4924. ee.EncodeUint(uint64(v2))
  4925. }
  4926. } else {
  4927. for k2, v2 := range v {
  4928. ee.EncodeFloat64(k2)
  4929. ee.EncodeUint(uint64(v2))
  4930. }
  4931. }
  4932. }
  4933. ee.WriteMapEnd()
  4934. }
  4935. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4936. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4937. }
  4938. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  4939. if v == nil {
  4940. e.e.EncodeNil()
  4941. return
  4942. }
  4943. ee, esep := e.e, e.hh.hasElemSeparators()
  4944. ee.WriteMapStart(len(v))
  4945. if e.h.Canonical {
  4946. v2 := make([]float64, len(v))
  4947. var i uint
  4948. for k := range v {
  4949. v2[i] = float64(k)
  4950. i++
  4951. }
  4952. sort.Sort(floatSlice(v2))
  4953. if esep {
  4954. for _, k2 := range v2 {
  4955. ee.WriteMapElemKey()
  4956. ee.EncodeFloat64(float64(k2))
  4957. ee.WriteMapElemValue()
  4958. ee.EncodeUint(uint64(v[float64(k2)]))
  4959. }
  4960. } else {
  4961. for _, k2 := range v2 {
  4962. ee.EncodeFloat64(float64(k2))
  4963. ee.EncodeUint(uint64(v[float64(k2)]))
  4964. }
  4965. }
  4966. } else {
  4967. if esep {
  4968. for k2, v2 := range v {
  4969. ee.WriteMapElemKey()
  4970. ee.EncodeFloat64(k2)
  4971. ee.WriteMapElemValue()
  4972. ee.EncodeUint(uint64(v2))
  4973. }
  4974. } else {
  4975. for k2, v2 := range v {
  4976. ee.EncodeFloat64(k2)
  4977. ee.EncodeUint(uint64(v2))
  4978. }
  4979. }
  4980. }
  4981. ee.WriteMapEnd()
  4982. }
  4983. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4984. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4985. }
  4986. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4987. if v == nil {
  4988. e.e.EncodeNil()
  4989. return
  4990. }
  4991. ee, esep := e.e, e.hh.hasElemSeparators()
  4992. ee.WriteMapStart(len(v))
  4993. if e.h.Canonical {
  4994. v2 := make([]float64, len(v))
  4995. var i uint
  4996. for k := range v {
  4997. v2[i] = float64(k)
  4998. i++
  4999. }
  5000. sort.Sort(floatSlice(v2))
  5001. if esep {
  5002. for _, k2 := range v2 {
  5003. ee.WriteMapElemKey()
  5004. ee.EncodeFloat64(float64(k2))
  5005. ee.WriteMapElemValue()
  5006. e.encode(v[float64(k2)])
  5007. }
  5008. } else {
  5009. for _, k2 := range v2 {
  5010. ee.EncodeFloat64(float64(k2))
  5011. e.encode(v[float64(k2)])
  5012. }
  5013. }
  5014. } else {
  5015. if esep {
  5016. for k2, v2 := range v {
  5017. ee.WriteMapElemKey()
  5018. ee.EncodeFloat64(k2)
  5019. ee.WriteMapElemValue()
  5020. e.encode(v2)
  5021. }
  5022. } else {
  5023. for k2, v2 := range v {
  5024. ee.EncodeFloat64(k2)
  5025. e.encode(v2)
  5026. }
  5027. }
  5028. }
  5029. ee.WriteMapEnd()
  5030. }
  5031. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  5032. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  5033. }
  5034. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  5035. if v == nil {
  5036. e.e.EncodeNil()
  5037. return
  5038. }
  5039. ee, esep := e.e, e.hh.hasElemSeparators()
  5040. ee.WriteMapStart(len(v))
  5041. if e.h.Canonical {
  5042. v2 := make([]float64, len(v))
  5043. var i uint
  5044. for k := range v {
  5045. v2[i] = float64(k)
  5046. i++
  5047. }
  5048. sort.Sort(floatSlice(v2))
  5049. if esep {
  5050. for _, k2 := range v2 {
  5051. ee.WriteMapElemKey()
  5052. ee.EncodeFloat64(float64(k2))
  5053. ee.WriteMapElemValue()
  5054. ee.EncodeInt(int64(v[float64(k2)]))
  5055. }
  5056. } else {
  5057. for _, k2 := range v2 {
  5058. ee.EncodeFloat64(float64(k2))
  5059. ee.EncodeInt(int64(v[float64(k2)]))
  5060. }
  5061. }
  5062. } else {
  5063. if esep {
  5064. for k2, v2 := range v {
  5065. ee.WriteMapElemKey()
  5066. ee.EncodeFloat64(k2)
  5067. ee.WriteMapElemValue()
  5068. ee.EncodeInt(int64(v2))
  5069. }
  5070. } else {
  5071. for k2, v2 := range v {
  5072. ee.EncodeFloat64(k2)
  5073. ee.EncodeInt(int64(v2))
  5074. }
  5075. }
  5076. }
  5077. ee.WriteMapEnd()
  5078. }
  5079. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  5080. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  5081. }
  5082. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  5083. if v == nil {
  5084. e.e.EncodeNil()
  5085. return
  5086. }
  5087. ee, esep := e.e, e.hh.hasElemSeparators()
  5088. ee.WriteMapStart(len(v))
  5089. if e.h.Canonical {
  5090. v2 := make([]float64, len(v))
  5091. var i uint
  5092. for k := range v {
  5093. v2[i] = float64(k)
  5094. i++
  5095. }
  5096. sort.Sort(floatSlice(v2))
  5097. if esep {
  5098. for _, k2 := range v2 {
  5099. ee.WriteMapElemKey()
  5100. ee.EncodeFloat64(float64(k2))
  5101. ee.WriteMapElemValue()
  5102. ee.EncodeInt(int64(v[float64(k2)]))
  5103. }
  5104. } else {
  5105. for _, k2 := range v2 {
  5106. ee.EncodeFloat64(float64(k2))
  5107. ee.EncodeInt(int64(v[float64(k2)]))
  5108. }
  5109. }
  5110. } else {
  5111. if esep {
  5112. for k2, v2 := range v {
  5113. ee.WriteMapElemKey()
  5114. ee.EncodeFloat64(k2)
  5115. ee.WriteMapElemValue()
  5116. ee.EncodeInt(int64(v2))
  5117. }
  5118. } else {
  5119. for k2, v2 := range v {
  5120. ee.EncodeFloat64(k2)
  5121. ee.EncodeInt(int64(v2))
  5122. }
  5123. }
  5124. }
  5125. ee.WriteMapEnd()
  5126. }
  5127. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  5128. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  5129. }
  5130. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  5131. if v == nil {
  5132. e.e.EncodeNil()
  5133. return
  5134. }
  5135. ee, esep := e.e, e.hh.hasElemSeparators()
  5136. ee.WriteMapStart(len(v))
  5137. if e.h.Canonical {
  5138. v2 := make([]float64, len(v))
  5139. var i uint
  5140. for k := range v {
  5141. v2[i] = float64(k)
  5142. i++
  5143. }
  5144. sort.Sort(floatSlice(v2))
  5145. if esep {
  5146. for _, k2 := range v2 {
  5147. ee.WriteMapElemKey()
  5148. ee.EncodeFloat64(float64(k2))
  5149. ee.WriteMapElemValue()
  5150. ee.EncodeInt(int64(v[float64(k2)]))
  5151. }
  5152. } else {
  5153. for _, k2 := range v2 {
  5154. ee.EncodeFloat64(float64(k2))
  5155. ee.EncodeInt(int64(v[float64(k2)]))
  5156. }
  5157. }
  5158. } else {
  5159. if esep {
  5160. for k2, v2 := range v {
  5161. ee.WriteMapElemKey()
  5162. ee.EncodeFloat64(k2)
  5163. ee.WriteMapElemValue()
  5164. ee.EncodeInt(int64(v2))
  5165. }
  5166. } else {
  5167. for k2, v2 := range v {
  5168. ee.EncodeFloat64(k2)
  5169. ee.EncodeInt(int64(v2))
  5170. }
  5171. }
  5172. }
  5173. ee.WriteMapEnd()
  5174. }
  5175. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  5176. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  5177. }
  5178. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  5179. if v == nil {
  5180. e.e.EncodeNil()
  5181. return
  5182. }
  5183. ee, esep := e.e, e.hh.hasElemSeparators()
  5184. ee.WriteMapStart(len(v))
  5185. if e.h.Canonical {
  5186. v2 := make([]float64, len(v))
  5187. var i uint
  5188. for k := range v {
  5189. v2[i] = float64(k)
  5190. i++
  5191. }
  5192. sort.Sort(floatSlice(v2))
  5193. if esep {
  5194. for _, k2 := range v2 {
  5195. ee.WriteMapElemKey()
  5196. ee.EncodeFloat64(float64(k2))
  5197. ee.WriteMapElemValue()
  5198. ee.EncodeInt(int64(v[float64(k2)]))
  5199. }
  5200. } else {
  5201. for _, k2 := range v2 {
  5202. ee.EncodeFloat64(float64(k2))
  5203. ee.EncodeInt(int64(v[float64(k2)]))
  5204. }
  5205. }
  5206. } else {
  5207. if esep {
  5208. for k2, v2 := range v {
  5209. ee.WriteMapElemKey()
  5210. ee.EncodeFloat64(k2)
  5211. ee.WriteMapElemValue()
  5212. ee.EncodeInt(int64(v2))
  5213. }
  5214. } else {
  5215. for k2, v2 := range v {
  5216. ee.EncodeFloat64(k2)
  5217. ee.EncodeInt(int64(v2))
  5218. }
  5219. }
  5220. }
  5221. ee.WriteMapEnd()
  5222. }
  5223. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  5224. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  5225. }
  5226. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  5227. if v == nil {
  5228. e.e.EncodeNil()
  5229. return
  5230. }
  5231. ee, esep := e.e, e.hh.hasElemSeparators()
  5232. ee.WriteMapStart(len(v))
  5233. if e.h.Canonical {
  5234. v2 := make([]float64, len(v))
  5235. var i uint
  5236. for k := range v {
  5237. v2[i] = float64(k)
  5238. i++
  5239. }
  5240. sort.Sort(floatSlice(v2))
  5241. if esep {
  5242. for _, k2 := range v2 {
  5243. ee.WriteMapElemKey()
  5244. ee.EncodeFloat64(float64(k2))
  5245. ee.WriteMapElemValue()
  5246. ee.EncodeInt(int64(v[float64(k2)]))
  5247. }
  5248. } else {
  5249. for _, k2 := range v2 {
  5250. ee.EncodeFloat64(float64(k2))
  5251. ee.EncodeInt(int64(v[float64(k2)]))
  5252. }
  5253. }
  5254. } else {
  5255. if esep {
  5256. for k2, v2 := range v {
  5257. ee.WriteMapElemKey()
  5258. ee.EncodeFloat64(k2)
  5259. ee.WriteMapElemValue()
  5260. ee.EncodeInt(int64(v2))
  5261. }
  5262. } else {
  5263. for k2, v2 := range v {
  5264. ee.EncodeFloat64(k2)
  5265. ee.EncodeInt(int64(v2))
  5266. }
  5267. }
  5268. }
  5269. ee.WriteMapEnd()
  5270. }
  5271. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  5272. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  5273. }
  5274. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  5275. if v == nil {
  5276. e.e.EncodeNil()
  5277. return
  5278. }
  5279. ee, esep := e.e, e.hh.hasElemSeparators()
  5280. ee.WriteMapStart(len(v))
  5281. if e.h.Canonical {
  5282. v2 := make([]float64, len(v))
  5283. var i uint
  5284. for k := range v {
  5285. v2[i] = float64(k)
  5286. i++
  5287. }
  5288. sort.Sort(floatSlice(v2))
  5289. if esep {
  5290. for _, k2 := range v2 {
  5291. ee.WriteMapElemKey()
  5292. ee.EncodeFloat64(float64(k2))
  5293. ee.WriteMapElemValue()
  5294. ee.EncodeFloat32(v[float64(k2)])
  5295. }
  5296. } else {
  5297. for _, k2 := range v2 {
  5298. ee.EncodeFloat64(float64(k2))
  5299. ee.EncodeFloat32(v[float64(k2)])
  5300. }
  5301. }
  5302. } else {
  5303. if esep {
  5304. for k2, v2 := range v {
  5305. ee.WriteMapElemKey()
  5306. ee.EncodeFloat64(k2)
  5307. ee.WriteMapElemValue()
  5308. ee.EncodeFloat32(v2)
  5309. }
  5310. } else {
  5311. for k2, v2 := range v {
  5312. ee.EncodeFloat64(k2)
  5313. ee.EncodeFloat32(v2)
  5314. }
  5315. }
  5316. }
  5317. ee.WriteMapEnd()
  5318. }
  5319. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  5320. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  5321. }
  5322. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  5323. if v == nil {
  5324. e.e.EncodeNil()
  5325. return
  5326. }
  5327. ee, esep := e.e, e.hh.hasElemSeparators()
  5328. ee.WriteMapStart(len(v))
  5329. if e.h.Canonical {
  5330. v2 := make([]float64, len(v))
  5331. var i uint
  5332. for k := range v {
  5333. v2[i] = float64(k)
  5334. i++
  5335. }
  5336. sort.Sort(floatSlice(v2))
  5337. if esep {
  5338. for _, k2 := range v2 {
  5339. ee.WriteMapElemKey()
  5340. ee.EncodeFloat64(float64(k2))
  5341. ee.WriteMapElemValue()
  5342. ee.EncodeFloat64(v[float64(k2)])
  5343. }
  5344. } else {
  5345. for _, k2 := range v2 {
  5346. ee.EncodeFloat64(float64(k2))
  5347. ee.EncodeFloat64(v[float64(k2)])
  5348. }
  5349. }
  5350. } else {
  5351. if esep {
  5352. for k2, v2 := range v {
  5353. ee.WriteMapElemKey()
  5354. ee.EncodeFloat64(k2)
  5355. ee.WriteMapElemValue()
  5356. ee.EncodeFloat64(v2)
  5357. }
  5358. } else {
  5359. for k2, v2 := range v {
  5360. ee.EncodeFloat64(k2)
  5361. ee.EncodeFloat64(v2)
  5362. }
  5363. }
  5364. }
  5365. ee.WriteMapEnd()
  5366. }
  5367. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  5368. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  5369. }
  5370. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  5371. if v == nil {
  5372. e.e.EncodeNil()
  5373. return
  5374. }
  5375. ee, esep := e.e, e.hh.hasElemSeparators()
  5376. ee.WriteMapStart(len(v))
  5377. if e.h.Canonical {
  5378. v2 := make([]float64, len(v))
  5379. var i uint
  5380. for k := range v {
  5381. v2[i] = float64(k)
  5382. i++
  5383. }
  5384. sort.Sort(floatSlice(v2))
  5385. if esep {
  5386. for _, k2 := range v2 {
  5387. ee.WriteMapElemKey()
  5388. ee.EncodeFloat64(float64(k2))
  5389. ee.WriteMapElemValue()
  5390. ee.EncodeBool(v[float64(k2)])
  5391. }
  5392. } else {
  5393. for _, k2 := range v2 {
  5394. ee.EncodeFloat64(float64(k2))
  5395. ee.EncodeBool(v[float64(k2)])
  5396. }
  5397. }
  5398. } else {
  5399. if esep {
  5400. for k2, v2 := range v {
  5401. ee.WriteMapElemKey()
  5402. ee.EncodeFloat64(k2)
  5403. ee.WriteMapElemValue()
  5404. ee.EncodeBool(v2)
  5405. }
  5406. } else {
  5407. for k2, v2 := range v {
  5408. ee.EncodeFloat64(k2)
  5409. ee.EncodeBool(v2)
  5410. }
  5411. }
  5412. }
  5413. ee.WriteMapEnd()
  5414. }
  5415. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5416. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5417. }
  5418. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5419. if v == nil {
  5420. e.e.EncodeNil()
  5421. return
  5422. }
  5423. ee, esep := e.e, e.hh.hasElemSeparators()
  5424. ee.WriteMapStart(len(v))
  5425. if e.h.Canonical {
  5426. v2 := make([]uint64, len(v))
  5427. var i uint
  5428. for k := range v {
  5429. v2[i] = uint64(k)
  5430. i++
  5431. }
  5432. sort.Sort(uintSlice(v2))
  5433. if esep {
  5434. for _, k2 := range v2 {
  5435. ee.WriteMapElemKey()
  5436. ee.EncodeUint(uint64(uint(k2)))
  5437. ee.WriteMapElemValue()
  5438. e.encode(v[uint(k2)])
  5439. }
  5440. } else {
  5441. for _, k2 := range v2 {
  5442. ee.EncodeUint(uint64(uint(k2)))
  5443. e.encode(v[uint(k2)])
  5444. }
  5445. }
  5446. } else {
  5447. if esep {
  5448. for k2, v2 := range v {
  5449. ee.WriteMapElemKey()
  5450. ee.EncodeUint(uint64(k2))
  5451. ee.WriteMapElemValue()
  5452. e.encode(v2)
  5453. }
  5454. } else {
  5455. for k2, v2 := range v {
  5456. ee.EncodeUint(uint64(k2))
  5457. e.encode(v2)
  5458. }
  5459. }
  5460. }
  5461. ee.WriteMapEnd()
  5462. }
  5463. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  5464. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  5465. }
  5466. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  5467. if v == nil {
  5468. e.e.EncodeNil()
  5469. return
  5470. }
  5471. ee, esep := e.e, e.hh.hasElemSeparators()
  5472. ee.WriteMapStart(len(v))
  5473. if e.h.Canonical {
  5474. v2 := make([]uint64, len(v))
  5475. var i uint
  5476. for k := range v {
  5477. v2[i] = uint64(k)
  5478. i++
  5479. }
  5480. sort.Sort(uintSlice(v2))
  5481. if esep {
  5482. for _, k2 := range v2 {
  5483. ee.WriteMapElemKey()
  5484. ee.EncodeUint(uint64(uint(k2)))
  5485. ee.WriteMapElemValue()
  5486. ee.EncodeStringEnc(cUTF8, v[uint(k2)])
  5487. }
  5488. } else {
  5489. for _, k2 := range v2 {
  5490. ee.EncodeUint(uint64(uint(k2)))
  5491. ee.EncodeStringEnc(cUTF8, v[uint(k2)])
  5492. }
  5493. }
  5494. } else {
  5495. if esep {
  5496. for k2, v2 := range v {
  5497. ee.WriteMapElemKey()
  5498. ee.EncodeUint(uint64(k2))
  5499. ee.WriteMapElemValue()
  5500. ee.EncodeStringEnc(cUTF8, v2)
  5501. }
  5502. } else {
  5503. for k2, v2 := range v {
  5504. ee.EncodeUint(uint64(k2))
  5505. ee.EncodeStringEnc(cUTF8, v2)
  5506. }
  5507. }
  5508. }
  5509. ee.WriteMapEnd()
  5510. }
  5511. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  5512. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  5513. }
  5514. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  5515. if v == nil {
  5516. e.e.EncodeNil()
  5517. return
  5518. }
  5519. ee, esep := e.e, e.hh.hasElemSeparators()
  5520. ee.WriteMapStart(len(v))
  5521. if e.h.Canonical {
  5522. v2 := make([]uint64, len(v))
  5523. var i uint
  5524. for k := range v {
  5525. v2[i] = uint64(k)
  5526. i++
  5527. }
  5528. sort.Sort(uintSlice(v2))
  5529. if esep {
  5530. for _, k2 := range v2 {
  5531. ee.WriteMapElemKey()
  5532. ee.EncodeUint(uint64(uint(k2)))
  5533. ee.WriteMapElemValue()
  5534. ee.EncodeUint(uint64(v[uint(k2)]))
  5535. }
  5536. } else {
  5537. for _, k2 := range v2 {
  5538. ee.EncodeUint(uint64(uint(k2)))
  5539. ee.EncodeUint(uint64(v[uint(k2)]))
  5540. }
  5541. }
  5542. } else {
  5543. if esep {
  5544. for k2, v2 := range v {
  5545. ee.WriteMapElemKey()
  5546. ee.EncodeUint(uint64(k2))
  5547. ee.WriteMapElemValue()
  5548. ee.EncodeUint(uint64(v2))
  5549. }
  5550. } else {
  5551. for k2, v2 := range v {
  5552. ee.EncodeUint(uint64(k2))
  5553. ee.EncodeUint(uint64(v2))
  5554. }
  5555. }
  5556. }
  5557. ee.WriteMapEnd()
  5558. }
  5559. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  5560. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  5561. }
  5562. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  5563. if v == nil {
  5564. e.e.EncodeNil()
  5565. return
  5566. }
  5567. ee, esep := e.e, e.hh.hasElemSeparators()
  5568. ee.WriteMapStart(len(v))
  5569. if e.h.Canonical {
  5570. v2 := make([]uint64, len(v))
  5571. var i uint
  5572. for k := range v {
  5573. v2[i] = uint64(k)
  5574. i++
  5575. }
  5576. sort.Sort(uintSlice(v2))
  5577. if esep {
  5578. for _, k2 := range v2 {
  5579. ee.WriteMapElemKey()
  5580. ee.EncodeUint(uint64(uint(k2)))
  5581. ee.WriteMapElemValue()
  5582. ee.EncodeUint(uint64(v[uint(k2)]))
  5583. }
  5584. } else {
  5585. for _, k2 := range v2 {
  5586. ee.EncodeUint(uint64(uint(k2)))
  5587. ee.EncodeUint(uint64(v[uint(k2)]))
  5588. }
  5589. }
  5590. } else {
  5591. if esep {
  5592. for k2, v2 := range v {
  5593. ee.WriteMapElemKey()
  5594. ee.EncodeUint(uint64(k2))
  5595. ee.WriteMapElemValue()
  5596. ee.EncodeUint(uint64(v2))
  5597. }
  5598. } else {
  5599. for k2, v2 := range v {
  5600. ee.EncodeUint(uint64(k2))
  5601. ee.EncodeUint(uint64(v2))
  5602. }
  5603. }
  5604. }
  5605. ee.WriteMapEnd()
  5606. }
  5607. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  5608. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  5609. }
  5610. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  5611. if v == nil {
  5612. e.e.EncodeNil()
  5613. return
  5614. }
  5615. ee, esep := e.e, e.hh.hasElemSeparators()
  5616. ee.WriteMapStart(len(v))
  5617. if e.h.Canonical {
  5618. v2 := make([]uint64, len(v))
  5619. var i uint
  5620. for k := range v {
  5621. v2[i] = uint64(k)
  5622. i++
  5623. }
  5624. sort.Sort(uintSlice(v2))
  5625. if esep {
  5626. for _, k2 := range v2 {
  5627. ee.WriteMapElemKey()
  5628. ee.EncodeUint(uint64(uint(k2)))
  5629. ee.WriteMapElemValue()
  5630. ee.EncodeUint(uint64(v[uint(k2)]))
  5631. }
  5632. } else {
  5633. for _, k2 := range v2 {
  5634. ee.EncodeUint(uint64(uint(k2)))
  5635. ee.EncodeUint(uint64(v[uint(k2)]))
  5636. }
  5637. }
  5638. } else {
  5639. if esep {
  5640. for k2, v2 := range v {
  5641. ee.WriteMapElemKey()
  5642. ee.EncodeUint(uint64(k2))
  5643. ee.WriteMapElemValue()
  5644. ee.EncodeUint(uint64(v2))
  5645. }
  5646. } else {
  5647. for k2, v2 := range v {
  5648. ee.EncodeUint(uint64(k2))
  5649. ee.EncodeUint(uint64(v2))
  5650. }
  5651. }
  5652. }
  5653. ee.WriteMapEnd()
  5654. }
  5655. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  5656. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  5657. }
  5658. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  5659. if v == nil {
  5660. e.e.EncodeNil()
  5661. return
  5662. }
  5663. ee, esep := e.e, e.hh.hasElemSeparators()
  5664. ee.WriteMapStart(len(v))
  5665. if e.h.Canonical {
  5666. v2 := make([]uint64, len(v))
  5667. var i uint
  5668. for k := range v {
  5669. v2[i] = uint64(k)
  5670. i++
  5671. }
  5672. sort.Sort(uintSlice(v2))
  5673. if esep {
  5674. for _, k2 := range v2 {
  5675. ee.WriteMapElemKey()
  5676. ee.EncodeUint(uint64(uint(k2)))
  5677. ee.WriteMapElemValue()
  5678. ee.EncodeUint(uint64(v[uint(k2)]))
  5679. }
  5680. } else {
  5681. for _, k2 := range v2 {
  5682. ee.EncodeUint(uint64(uint(k2)))
  5683. ee.EncodeUint(uint64(v[uint(k2)]))
  5684. }
  5685. }
  5686. } else {
  5687. if esep {
  5688. for k2, v2 := range v {
  5689. ee.WriteMapElemKey()
  5690. ee.EncodeUint(uint64(k2))
  5691. ee.WriteMapElemValue()
  5692. ee.EncodeUint(uint64(v2))
  5693. }
  5694. } else {
  5695. for k2, v2 := range v {
  5696. ee.EncodeUint(uint64(k2))
  5697. ee.EncodeUint(uint64(v2))
  5698. }
  5699. }
  5700. }
  5701. ee.WriteMapEnd()
  5702. }
  5703. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  5704. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  5705. }
  5706. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  5707. if v == nil {
  5708. e.e.EncodeNil()
  5709. return
  5710. }
  5711. ee, esep := e.e, e.hh.hasElemSeparators()
  5712. ee.WriteMapStart(len(v))
  5713. if e.h.Canonical {
  5714. v2 := make([]uint64, len(v))
  5715. var i uint
  5716. for k := range v {
  5717. v2[i] = uint64(k)
  5718. i++
  5719. }
  5720. sort.Sort(uintSlice(v2))
  5721. if esep {
  5722. for _, k2 := range v2 {
  5723. ee.WriteMapElemKey()
  5724. ee.EncodeUint(uint64(uint(k2)))
  5725. ee.WriteMapElemValue()
  5726. ee.EncodeUint(uint64(v[uint(k2)]))
  5727. }
  5728. } else {
  5729. for _, k2 := range v2 {
  5730. ee.EncodeUint(uint64(uint(k2)))
  5731. ee.EncodeUint(uint64(v[uint(k2)]))
  5732. }
  5733. }
  5734. } else {
  5735. if esep {
  5736. for k2, v2 := range v {
  5737. ee.WriteMapElemKey()
  5738. ee.EncodeUint(uint64(k2))
  5739. ee.WriteMapElemValue()
  5740. ee.EncodeUint(uint64(v2))
  5741. }
  5742. } else {
  5743. for k2, v2 := range v {
  5744. ee.EncodeUint(uint64(k2))
  5745. ee.EncodeUint(uint64(v2))
  5746. }
  5747. }
  5748. }
  5749. ee.WriteMapEnd()
  5750. }
  5751. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  5752. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  5753. }
  5754. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  5755. if v == nil {
  5756. e.e.EncodeNil()
  5757. return
  5758. }
  5759. ee, esep := e.e, e.hh.hasElemSeparators()
  5760. ee.WriteMapStart(len(v))
  5761. if e.h.Canonical {
  5762. v2 := make([]uint64, len(v))
  5763. var i uint
  5764. for k := range v {
  5765. v2[i] = uint64(k)
  5766. i++
  5767. }
  5768. sort.Sort(uintSlice(v2))
  5769. if esep {
  5770. for _, k2 := range v2 {
  5771. ee.WriteMapElemKey()
  5772. ee.EncodeUint(uint64(uint(k2)))
  5773. ee.WriteMapElemValue()
  5774. e.encode(v[uint(k2)])
  5775. }
  5776. } else {
  5777. for _, k2 := range v2 {
  5778. ee.EncodeUint(uint64(uint(k2)))
  5779. e.encode(v[uint(k2)])
  5780. }
  5781. }
  5782. } else {
  5783. if esep {
  5784. for k2, v2 := range v {
  5785. ee.WriteMapElemKey()
  5786. ee.EncodeUint(uint64(k2))
  5787. ee.WriteMapElemValue()
  5788. e.encode(v2)
  5789. }
  5790. } else {
  5791. for k2, v2 := range v {
  5792. ee.EncodeUint(uint64(k2))
  5793. e.encode(v2)
  5794. }
  5795. }
  5796. }
  5797. ee.WriteMapEnd()
  5798. }
  5799. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  5800. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  5801. }
  5802. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5803. if v == nil {
  5804. e.e.EncodeNil()
  5805. return
  5806. }
  5807. ee, esep := e.e, e.hh.hasElemSeparators()
  5808. ee.WriteMapStart(len(v))
  5809. if e.h.Canonical {
  5810. v2 := make([]uint64, len(v))
  5811. var i uint
  5812. for k := range v {
  5813. v2[i] = uint64(k)
  5814. i++
  5815. }
  5816. sort.Sort(uintSlice(v2))
  5817. if esep {
  5818. for _, k2 := range v2 {
  5819. ee.WriteMapElemKey()
  5820. ee.EncodeUint(uint64(uint(k2)))
  5821. ee.WriteMapElemValue()
  5822. ee.EncodeInt(int64(v[uint(k2)]))
  5823. }
  5824. } else {
  5825. for _, k2 := range v2 {
  5826. ee.EncodeUint(uint64(uint(k2)))
  5827. ee.EncodeInt(int64(v[uint(k2)]))
  5828. }
  5829. }
  5830. } else {
  5831. if esep {
  5832. for k2, v2 := range v {
  5833. ee.WriteMapElemKey()
  5834. ee.EncodeUint(uint64(k2))
  5835. ee.WriteMapElemValue()
  5836. ee.EncodeInt(int64(v2))
  5837. }
  5838. } else {
  5839. for k2, v2 := range v {
  5840. ee.EncodeUint(uint64(k2))
  5841. ee.EncodeInt(int64(v2))
  5842. }
  5843. }
  5844. }
  5845. ee.WriteMapEnd()
  5846. }
  5847. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5848. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5849. }
  5850. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5851. if v == nil {
  5852. e.e.EncodeNil()
  5853. return
  5854. }
  5855. ee, esep := e.e, e.hh.hasElemSeparators()
  5856. ee.WriteMapStart(len(v))
  5857. if e.h.Canonical {
  5858. v2 := make([]uint64, len(v))
  5859. var i uint
  5860. for k := range v {
  5861. v2[i] = uint64(k)
  5862. i++
  5863. }
  5864. sort.Sort(uintSlice(v2))
  5865. if esep {
  5866. for _, k2 := range v2 {
  5867. ee.WriteMapElemKey()
  5868. ee.EncodeUint(uint64(uint(k2)))
  5869. ee.WriteMapElemValue()
  5870. ee.EncodeInt(int64(v[uint(k2)]))
  5871. }
  5872. } else {
  5873. for _, k2 := range v2 {
  5874. ee.EncodeUint(uint64(uint(k2)))
  5875. ee.EncodeInt(int64(v[uint(k2)]))
  5876. }
  5877. }
  5878. } else {
  5879. if esep {
  5880. for k2, v2 := range v {
  5881. ee.WriteMapElemKey()
  5882. ee.EncodeUint(uint64(k2))
  5883. ee.WriteMapElemValue()
  5884. ee.EncodeInt(int64(v2))
  5885. }
  5886. } else {
  5887. for k2, v2 := range v {
  5888. ee.EncodeUint(uint64(k2))
  5889. ee.EncodeInt(int64(v2))
  5890. }
  5891. }
  5892. }
  5893. ee.WriteMapEnd()
  5894. }
  5895. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5896. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5897. }
  5898. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5899. if v == nil {
  5900. e.e.EncodeNil()
  5901. return
  5902. }
  5903. ee, esep := e.e, e.hh.hasElemSeparators()
  5904. ee.WriteMapStart(len(v))
  5905. if e.h.Canonical {
  5906. v2 := make([]uint64, len(v))
  5907. var i uint
  5908. for k := range v {
  5909. v2[i] = uint64(k)
  5910. i++
  5911. }
  5912. sort.Sort(uintSlice(v2))
  5913. if esep {
  5914. for _, k2 := range v2 {
  5915. ee.WriteMapElemKey()
  5916. ee.EncodeUint(uint64(uint(k2)))
  5917. ee.WriteMapElemValue()
  5918. ee.EncodeInt(int64(v[uint(k2)]))
  5919. }
  5920. } else {
  5921. for _, k2 := range v2 {
  5922. ee.EncodeUint(uint64(uint(k2)))
  5923. ee.EncodeInt(int64(v[uint(k2)]))
  5924. }
  5925. }
  5926. } else {
  5927. if esep {
  5928. for k2, v2 := range v {
  5929. ee.WriteMapElemKey()
  5930. ee.EncodeUint(uint64(k2))
  5931. ee.WriteMapElemValue()
  5932. ee.EncodeInt(int64(v2))
  5933. }
  5934. } else {
  5935. for k2, v2 := range v {
  5936. ee.EncodeUint(uint64(k2))
  5937. ee.EncodeInt(int64(v2))
  5938. }
  5939. }
  5940. }
  5941. ee.WriteMapEnd()
  5942. }
  5943. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5944. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5945. }
  5946. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5947. if v == nil {
  5948. e.e.EncodeNil()
  5949. return
  5950. }
  5951. ee, esep := e.e, e.hh.hasElemSeparators()
  5952. ee.WriteMapStart(len(v))
  5953. if e.h.Canonical {
  5954. v2 := make([]uint64, len(v))
  5955. var i uint
  5956. for k := range v {
  5957. v2[i] = uint64(k)
  5958. i++
  5959. }
  5960. sort.Sort(uintSlice(v2))
  5961. if esep {
  5962. for _, k2 := range v2 {
  5963. ee.WriteMapElemKey()
  5964. ee.EncodeUint(uint64(uint(k2)))
  5965. ee.WriteMapElemValue()
  5966. ee.EncodeInt(int64(v[uint(k2)]))
  5967. }
  5968. } else {
  5969. for _, k2 := range v2 {
  5970. ee.EncodeUint(uint64(uint(k2)))
  5971. ee.EncodeInt(int64(v[uint(k2)]))
  5972. }
  5973. }
  5974. } else {
  5975. if esep {
  5976. for k2, v2 := range v {
  5977. ee.WriteMapElemKey()
  5978. ee.EncodeUint(uint64(k2))
  5979. ee.WriteMapElemValue()
  5980. ee.EncodeInt(int64(v2))
  5981. }
  5982. } else {
  5983. for k2, v2 := range v {
  5984. ee.EncodeUint(uint64(k2))
  5985. ee.EncodeInt(int64(v2))
  5986. }
  5987. }
  5988. }
  5989. ee.WriteMapEnd()
  5990. }
  5991. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5992. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5993. }
  5994. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5995. if v == nil {
  5996. e.e.EncodeNil()
  5997. return
  5998. }
  5999. ee, esep := e.e, e.hh.hasElemSeparators()
  6000. ee.WriteMapStart(len(v))
  6001. if e.h.Canonical {
  6002. v2 := make([]uint64, len(v))
  6003. var i uint
  6004. for k := range v {
  6005. v2[i] = uint64(k)
  6006. i++
  6007. }
  6008. sort.Sort(uintSlice(v2))
  6009. if esep {
  6010. for _, k2 := range v2 {
  6011. ee.WriteMapElemKey()
  6012. ee.EncodeUint(uint64(uint(k2)))
  6013. ee.WriteMapElemValue()
  6014. ee.EncodeInt(int64(v[uint(k2)]))
  6015. }
  6016. } else {
  6017. for _, k2 := range v2 {
  6018. ee.EncodeUint(uint64(uint(k2)))
  6019. ee.EncodeInt(int64(v[uint(k2)]))
  6020. }
  6021. }
  6022. } else {
  6023. if esep {
  6024. for k2, v2 := range v {
  6025. ee.WriteMapElemKey()
  6026. ee.EncodeUint(uint64(k2))
  6027. ee.WriteMapElemValue()
  6028. ee.EncodeInt(int64(v2))
  6029. }
  6030. } else {
  6031. for k2, v2 := range v {
  6032. ee.EncodeUint(uint64(k2))
  6033. ee.EncodeInt(int64(v2))
  6034. }
  6035. }
  6036. }
  6037. ee.WriteMapEnd()
  6038. }
  6039. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  6040. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  6041. }
  6042. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  6043. if v == nil {
  6044. e.e.EncodeNil()
  6045. return
  6046. }
  6047. ee, esep := e.e, e.hh.hasElemSeparators()
  6048. ee.WriteMapStart(len(v))
  6049. if e.h.Canonical {
  6050. v2 := make([]uint64, len(v))
  6051. var i uint
  6052. for k := range v {
  6053. v2[i] = uint64(k)
  6054. i++
  6055. }
  6056. sort.Sort(uintSlice(v2))
  6057. if esep {
  6058. for _, k2 := range v2 {
  6059. ee.WriteMapElemKey()
  6060. ee.EncodeUint(uint64(uint(k2)))
  6061. ee.WriteMapElemValue()
  6062. ee.EncodeFloat32(v[uint(k2)])
  6063. }
  6064. } else {
  6065. for _, k2 := range v2 {
  6066. ee.EncodeUint(uint64(uint(k2)))
  6067. ee.EncodeFloat32(v[uint(k2)])
  6068. }
  6069. }
  6070. } else {
  6071. if esep {
  6072. for k2, v2 := range v {
  6073. ee.WriteMapElemKey()
  6074. ee.EncodeUint(uint64(k2))
  6075. ee.WriteMapElemValue()
  6076. ee.EncodeFloat32(v2)
  6077. }
  6078. } else {
  6079. for k2, v2 := range v {
  6080. ee.EncodeUint(uint64(k2))
  6081. ee.EncodeFloat32(v2)
  6082. }
  6083. }
  6084. }
  6085. ee.WriteMapEnd()
  6086. }
  6087. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  6088. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  6089. }
  6090. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  6091. if v == nil {
  6092. e.e.EncodeNil()
  6093. return
  6094. }
  6095. ee, esep := e.e, e.hh.hasElemSeparators()
  6096. ee.WriteMapStart(len(v))
  6097. if e.h.Canonical {
  6098. v2 := make([]uint64, len(v))
  6099. var i uint
  6100. for k := range v {
  6101. v2[i] = uint64(k)
  6102. i++
  6103. }
  6104. sort.Sort(uintSlice(v2))
  6105. if esep {
  6106. for _, k2 := range v2 {
  6107. ee.WriteMapElemKey()
  6108. ee.EncodeUint(uint64(uint(k2)))
  6109. ee.WriteMapElemValue()
  6110. ee.EncodeFloat64(v[uint(k2)])
  6111. }
  6112. } else {
  6113. for _, k2 := range v2 {
  6114. ee.EncodeUint(uint64(uint(k2)))
  6115. ee.EncodeFloat64(v[uint(k2)])
  6116. }
  6117. }
  6118. } else {
  6119. if esep {
  6120. for k2, v2 := range v {
  6121. ee.WriteMapElemKey()
  6122. ee.EncodeUint(uint64(k2))
  6123. ee.WriteMapElemValue()
  6124. ee.EncodeFloat64(v2)
  6125. }
  6126. } else {
  6127. for k2, v2 := range v {
  6128. ee.EncodeUint(uint64(k2))
  6129. ee.EncodeFloat64(v2)
  6130. }
  6131. }
  6132. }
  6133. ee.WriteMapEnd()
  6134. }
  6135. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  6136. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  6137. }
  6138. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  6139. if v == nil {
  6140. e.e.EncodeNil()
  6141. return
  6142. }
  6143. ee, esep := e.e, e.hh.hasElemSeparators()
  6144. ee.WriteMapStart(len(v))
  6145. if e.h.Canonical {
  6146. v2 := make([]uint64, len(v))
  6147. var i uint
  6148. for k := range v {
  6149. v2[i] = uint64(k)
  6150. i++
  6151. }
  6152. sort.Sort(uintSlice(v2))
  6153. if esep {
  6154. for _, k2 := range v2 {
  6155. ee.WriteMapElemKey()
  6156. ee.EncodeUint(uint64(uint(k2)))
  6157. ee.WriteMapElemValue()
  6158. ee.EncodeBool(v[uint(k2)])
  6159. }
  6160. } else {
  6161. for _, k2 := range v2 {
  6162. ee.EncodeUint(uint64(uint(k2)))
  6163. ee.EncodeBool(v[uint(k2)])
  6164. }
  6165. }
  6166. } else {
  6167. if esep {
  6168. for k2, v2 := range v {
  6169. ee.WriteMapElemKey()
  6170. ee.EncodeUint(uint64(k2))
  6171. ee.WriteMapElemValue()
  6172. ee.EncodeBool(v2)
  6173. }
  6174. } else {
  6175. for k2, v2 := range v {
  6176. ee.EncodeUint(uint64(k2))
  6177. ee.EncodeBool(v2)
  6178. }
  6179. }
  6180. }
  6181. ee.WriteMapEnd()
  6182. }
  6183. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  6184. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  6185. }
  6186. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  6187. if v == nil {
  6188. e.e.EncodeNil()
  6189. return
  6190. }
  6191. ee, esep := e.e, e.hh.hasElemSeparators()
  6192. ee.WriteMapStart(len(v))
  6193. if e.h.Canonical {
  6194. v2 := make([]uint64, len(v))
  6195. var i uint
  6196. for k := range v {
  6197. v2[i] = uint64(k)
  6198. i++
  6199. }
  6200. sort.Sort(uintSlice(v2))
  6201. if esep {
  6202. for _, k2 := range v2 {
  6203. ee.WriteMapElemKey()
  6204. ee.EncodeUint(uint64(uint8(k2)))
  6205. ee.WriteMapElemValue()
  6206. e.encode(v[uint8(k2)])
  6207. }
  6208. } else {
  6209. for _, k2 := range v2 {
  6210. ee.EncodeUint(uint64(uint8(k2)))
  6211. e.encode(v[uint8(k2)])
  6212. }
  6213. }
  6214. } else {
  6215. if esep {
  6216. for k2, v2 := range v {
  6217. ee.WriteMapElemKey()
  6218. ee.EncodeUint(uint64(k2))
  6219. ee.WriteMapElemValue()
  6220. e.encode(v2)
  6221. }
  6222. } else {
  6223. for k2, v2 := range v {
  6224. ee.EncodeUint(uint64(k2))
  6225. e.encode(v2)
  6226. }
  6227. }
  6228. }
  6229. ee.WriteMapEnd()
  6230. }
  6231. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  6232. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  6233. }
  6234. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  6235. if v == nil {
  6236. e.e.EncodeNil()
  6237. return
  6238. }
  6239. ee, esep := e.e, e.hh.hasElemSeparators()
  6240. ee.WriteMapStart(len(v))
  6241. if e.h.Canonical {
  6242. v2 := make([]uint64, len(v))
  6243. var i uint
  6244. for k := range v {
  6245. v2[i] = uint64(k)
  6246. i++
  6247. }
  6248. sort.Sort(uintSlice(v2))
  6249. if esep {
  6250. for _, k2 := range v2 {
  6251. ee.WriteMapElemKey()
  6252. ee.EncodeUint(uint64(uint8(k2)))
  6253. ee.WriteMapElemValue()
  6254. ee.EncodeStringEnc(cUTF8, v[uint8(k2)])
  6255. }
  6256. } else {
  6257. for _, k2 := range v2 {
  6258. ee.EncodeUint(uint64(uint8(k2)))
  6259. ee.EncodeStringEnc(cUTF8, v[uint8(k2)])
  6260. }
  6261. }
  6262. } else {
  6263. if esep {
  6264. for k2, v2 := range v {
  6265. ee.WriteMapElemKey()
  6266. ee.EncodeUint(uint64(k2))
  6267. ee.WriteMapElemValue()
  6268. ee.EncodeStringEnc(cUTF8, v2)
  6269. }
  6270. } else {
  6271. for k2, v2 := range v {
  6272. ee.EncodeUint(uint64(k2))
  6273. ee.EncodeStringEnc(cUTF8, v2)
  6274. }
  6275. }
  6276. }
  6277. ee.WriteMapEnd()
  6278. }
  6279. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  6280. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  6281. }
  6282. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  6283. if v == nil {
  6284. e.e.EncodeNil()
  6285. return
  6286. }
  6287. ee, esep := e.e, e.hh.hasElemSeparators()
  6288. ee.WriteMapStart(len(v))
  6289. if e.h.Canonical {
  6290. v2 := make([]uint64, len(v))
  6291. var i uint
  6292. for k := range v {
  6293. v2[i] = uint64(k)
  6294. i++
  6295. }
  6296. sort.Sort(uintSlice(v2))
  6297. if esep {
  6298. for _, k2 := range v2 {
  6299. ee.WriteMapElemKey()
  6300. ee.EncodeUint(uint64(uint8(k2)))
  6301. ee.WriteMapElemValue()
  6302. ee.EncodeUint(uint64(v[uint8(k2)]))
  6303. }
  6304. } else {
  6305. for _, k2 := range v2 {
  6306. ee.EncodeUint(uint64(uint8(k2)))
  6307. ee.EncodeUint(uint64(v[uint8(k2)]))
  6308. }
  6309. }
  6310. } else {
  6311. if esep {
  6312. for k2, v2 := range v {
  6313. ee.WriteMapElemKey()
  6314. ee.EncodeUint(uint64(k2))
  6315. ee.WriteMapElemValue()
  6316. ee.EncodeUint(uint64(v2))
  6317. }
  6318. } else {
  6319. for k2, v2 := range v {
  6320. ee.EncodeUint(uint64(k2))
  6321. ee.EncodeUint(uint64(v2))
  6322. }
  6323. }
  6324. }
  6325. ee.WriteMapEnd()
  6326. }
  6327. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  6328. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  6329. }
  6330. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  6331. if v == nil {
  6332. e.e.EncodeNil()
  6333. return
  6334. }
  6335. ee, esep := e.e, e.hh.hasElemSeparators()
  6336. ee.WriteMapStart(len(v))
  6337. if e.h.Canonical {
  6338. v2 := make([]uint64, len(v))
  6339. var i uint
  6340. for k := range v {
  6341. v2[i] = uint64(k)
  6342. i++
  6343. }
  6344. sort.Sort(uintSlice(v2))
  6345. if esep {
  6346. for _, k2 := range v2 {
  6347. ee.WriteMapElemKey()
  6348. ee.EncodeUint(uint64(uint8(k2)))
  6349. ee.WriteMapElemValue()
  6350. ee.EncodeUint(uint64(v[uint8(k2)]))
  6351. }
  6352. } else {
  6353. for _, k2 := range v2 {
  6354. ee.EncodeUint(uint64(uint8(k2)))
  6355. ee.EncodeUint(uint64(v[uint8(k2)]))
  6356. }
  6357. }
  6358. } else {
  6359. if esep {
  6360. for k2, v2 := range v {
  6361. ee.WriteMapElemKey()
  6362. ee.EncodeUint(uint64(k2))
  6363. ee.WriteMapElemValue()
  6364. ee.EncodeUint(uint64(v2))
  6365. }
  6366. } else {
  6367. for k2, v2 := range v {
  6368. ee.EncodeUint(uint64(k2))
  6369. ee.EncodeUint(uint64(v2))
  6370. }
  6371. }
  6372. }
  6373. ee.WriteMapEnd()
  6374. }
  6375. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  6376. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  6377. }
  6378. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  6379. if v == nil {
  6380. e.e.EncodeNil()
  6381. return
  6382. }
  6383. ee, esep := e.e, e.hh.hasElemSeparators()
  6384. ee.WriteMapStart(len(v))
  6385. if e.h.Canonical {
  6386. v2 := make([]uint64, len(v))
  6387. var i uint
  6388. for k := range v {
  6389. v2[i] = uint64(k)
  6390. i++
  6391. }
  6392. sort.Sort(uintSlice(v2))
  6393. if esep {
  6394. for _, k2 := range v2 {
  6395. ee.WriteMapElemKey()
  6396. ee.EncodeUint(uint64(uint8(k2)))
  6397. ee.WriteMapElemValue()
  6398. ee.EncodeUint(uint64(v[uint8(k2)]))
  6399. }
  6400. } else {
  6401. for _, k2 := range v2 {
  6402. ee.EncodeUint(uint64(uint8(k2)))
  6403. ee.EncodeUint(uint64(v[uint8(k2)]))
  6404. }
  6405. }
  6406. } else {
  6407. if esep {
  6408. for k2, v2 := range v {
  6409. ee.WriteMapElemKey()
  6410. ee.EncodeUint(uint64(k2))
  6411. ee.WriteMapElemValue()
  6412. ee.EncodeUint(uint64(v2))
  6413. }
  6414. } else {
  6415. for k2, v2 := range v {
  6416. ee.EncodeUint(uint64(k2))
  6417. ee.EncodeUint(uint64(v2))
  6418. }
  6419. }
  6420. }
  6421. ee.WriteMapEnd()
  6422. }
  6423. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  6424. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  6425. }
  6426. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  6427. if v == nil {
  6428. e.e.EncodeNil()
  6429. return
  6430. }
  6431. ee, esep := e.e, e.hh.hasElemSeparators()
  6432. ee.WriteMapStart(len(v))
  6433. if e.h.Canonical {
  6434. v2 := make([]uint64, len(v))
  6435. var i uint
  6436. for k := range v {
  6437. v2[i] = uint64(k)
  6438. i++
  6439. }
  6440. sort.Sort(uintSlice(v2))
  6441. if esep {
  6442. for _, k2 := range v2 {
  6443. ee.WriteMapElemKey()
  6444. ee.EncodeUint(uint64(uint8(k2)))
  6445. ee.WriteMapElemValue()
  6446. ee.EncodeUint(uint64(v[uint8(k2)]))
  6447. }
  6448. } else {
  6449. for _, k2 := range v2 {
  6450. ee.EncodeUint(uint64(uint8(k2)))
  6451. ee.EncodeUint(uint64(v[uint8(k2)]))
  6452. }
  6453. }
  6454. } else {
  6455. if esep {
  6456. for k2, v2 := range v {
  6457. ee.WriteMapElemKey()
  6458. ee.EncodeUint(uint64(k2))
  6459. ee.WriteMapElemValue()
  6460. ee.EncodeUint(uint64(v2))
  6461. }
  6462. } else {
  6463. for k2, v2 := range v {
  6464. ee.EncodeUint(uint64(k2))
  6465. ee.EncodeUint(uint64(v2))
  6466. }
  6467. }
  6468. }
  6469. ee.WriteMapEnd()
  6470. }
  6471. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  6472. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  6473. }
  6474. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  6475. if v == nil {
  6476. e.e.EncodeNil()
  6477. return
  6478. }
  6479. ee, esep := e.e, e.hh.hasElemSeparators()
  6480. ee.WriteMapStart(len(v))
  6481. if e.h.Canonical {
  6482. v2 := make([]uint64, len(v))
  6483. var i uint
  6484. for k := range v {
  6485. v2[i] = uint64(k)
  6486. i++
  6487. }
  6488. sort.Sort(uintSlice(v2))
  6489. if esep {
  6490. for _, k2 := range v2 {
  6491. ee.WriteMapElemKey()
  6492. ee.EncodeUint(uint64(uint8(k2)))
  6493. ee.WriteMapElemValue()
  6494. ee.EncodeUint(uint64(v[uint8(k2)]))
  6495. }
  6496. } else {
  6497. for _, k2 := range v2 {
  6498. ee.EncodeUint(uint64(uint8(k2)))
  6499. ee.EncodeUint(uint64(v[uint8(k2)]))
  6500. }
  6501. }
  6502. } else {
  6503. if esep {
  6504. for k2, v2 := range v {
  6505. ee.WriteMapElemKey()
  6506. ee.EncodeUint(uint64(k2))
  6507. ee.WriteMapElemValue()
  6508. ee.EncodeUint(uint64(v2))
  6509. }
  6510. } else {
  6511. for k2, v2 := range v {
  6512. ee.EncodeUint(uint64(k2))
  6513. ee.EncodeUint(uint64(v2))
  6514. }
  6515. }
  6516. }
  6517. ee.WriteMapEnd()
  6518. }
  6519. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  6520. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  6521. }
  6522. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  6523. if v == nil {
  6524. e.e.EncodeNil()
  6525. return
  6526. }
  6527. ee, esep := e.e, e.hh.hasElemSeparators()
  6528. ee.WriteMapStart(len(v))
  6529. if e.h.Canonical {
  6530. v2 := make([]uint64, len(v))
  6531. var i uint
  6532. for k := range v {
  6533. v2[i] = uint64(k)
  6534. i++
  6535. }
  6536. sort.Sort(uintSlice(v2))
  6537. if esep {
  6538. for _, k2 := range v2 {
  6539. ee.WriteMapElemKey()
  6540. ee.EncodeUint(uint64(uint8(k2)))
  6541. ee.WriteMapElemValue()
  6542. e.encode(v[uint8(k2)])
  6543. }
  6544. } else {
  6545. for _, k2 := range v2 {
  6546. ee.EncodeUint(uint64(uint8(k2)))
  6547. e.encode(v[uint8(k2)])
  6548. }
  6549. }
  6550. } else {
  6551. if esep {
  6552. for k2, v2 := range v {
  6553. ee.WriteMapElemKey()
  6554. ee.EncodeUint(uint64(k2))
  6555. ee.WriteMapElemValue()
  6556. e.encode(v2)
  6557. }
  6558. } else {
  6559. for k2, v2 := range v {
  6560. ee.EncodeUint(uint64(k2))
  6561. e.encode(v2)
  6562. }
  6563. }
  6564. }
  6565. ee.WriteMapEnd()
  6566. }
  6567. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6568. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6569. }
  6570. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6571. if v == nil {
  6572. e.e.EncodeNil()
  6573. return
  6574. }
  6575. ee, esep := e.e, e.hh.hasElemSeparators()
  6576. ee.WriteMapStart(len(v))
  6577. if e.h.Canonical {
  6578. v2 := make([]uint64, len(v))
  6579. var i uint
  6580. for k := range v {
  6581. v2[i] = uint64(k)
  6582. i++
  6583. }
  6584. sort.Sort(uintSlice(v2))
  6585. if esep {
  6586. for _, k2 := range v2 {
  6587. ee.WriteMapElemKey()
  6588. ee.EncodeUint(uint64(uint8(k2)))
  6589. ee.WriteMapElemValue()
  6590. ee.EncodeInt(int64(v[uint8(k2)]))
  6591. }
  6592. } else {
  6593. for _, k2 := range v2 {
  6594. ee.EncodeUint(uint64(uint8(k2)))
  6595. ee.EncodeInt(int64(v[uint8(k2)]))
  6596. }
  6597. }
  6598. } else {
  6599. if esep {
  6600. for k2, v2 := range v {
  6601. ee.WriteMapElemKey()
  6602. ee.EncodeUint(uint64(k2))
  6603. ee.WriteMapElemValue()
  6604. ee.EncodeInt(int64(v2))
  6605. }
  6606. } else {
  6607. for k2, v2 := range v {
  6608. ee.EncodeUint(uint64(k2))
  6609. ee.EncodeInt(int64(v2))
  6610. }
  6611. }
  6612. }
  6613. ee.WriteMapEnd()
  6614. }
  6615. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6616. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6617. }
  6618. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6619. if v == nil {
  6620. e.e.EncodeNil()
  6621. return
  6622. }
  6623. ee, esep := e.e, e.hh.hasElemSeparators()
  6624. ee.WriteMapStart(len(v))
  6625. if e.h.Canonical {
  6626. v2 := make([]uint64, len(v))
  6627. var i uint
  6628. for k := range v {
  6629. v2[i] = uint64(k)
  6630. i++
  6631. }
  6632. sort.Sort(uintSlice(v2))
  6633. if esep {
  6634. for _, k2 := range v2 {
  6635. ee.WriteMapElemKey()
  6636. ee.EncodeUint(uint64(uint8(k2)))
  6637. ee.WriteMapElemValue()
  6638. ee.EncodeInt(int64(v[uint8(k2)]))
  6639. }
  6640. } else {
  6641. for _, k2 := range v2 {
  6642. ee.EncodeUint(uint64(uint8(k2)))
  6643. ee.EncodeInt(int64(v[uint8(k2)]))
  6644. }
  6645. }
  6646. } else {
  6647. if esep {
  6648. for k2, v2 := range v {
  6649. ee.WriteMapElemKey()
  6650. ee.EncodeUint(uint64(k2))
  6651. ee.WriteMapElemValue()
  6652. ee.EncodeInt(int64(v2))
  6653. }
  6654. } else {
  6655. for k2, v2 := range v {
  6656. ee.EncodeUint(uint64(k2))
  6657. ee.EncodeInt(int64(v2))
  6658. }
  6659. }
  6660. }
  6661. ee.WriteMapEnd()
  6662. }
  6663. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  6664. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  6665. }
  6666. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  6667. if v == nil {
  6668. e.e.EncodeNil()
  6669. return
  6670. }
  6671. ee, esep := e.e, e.hh.hasElemSeparators()
  6672. ee.WriteMapStart(len(v))
  6673. if e.h.Canonical {
  6674. v2 := make([]uint64, len(v))
  6675. var i uint
  6676. for k := range v {
  6677. v2[i] = uint64(k)
  6678. i++
  6679. }
  6680. sort.Sort(uintSlice(v2))
  6681. if esep {
  6682. for _, k2 := range v2 {
  6683. ee.WriteMapElemKey()
  6684. ee.EncodeUint(uint64(uint8(k2)))
  6685. ee.WriteMapElemValue()
  6686. ee.EncodeInt(int64(v[uint8(k2)]))
  6687. }
  6688. } else {
  6689. for _, k2 := range v2 {
  6690. ee.EncodeUint(uint64(uint8(k2)))
  6691. ee.EncodeInt(int64(v[uint8(k2)]))
  6692. }
  6693. }
  6694. } else {
  6695. if esep {
  6696. for k2, v2 := range v {
  6697. ee.WriteMapElemKey()
  6698. ee.EncodeUint(uint64(k2))
  6699. ee.WriteMapElemValue()
  6700. ee.EncodeInt(int64(v2))
  6701. }
  6702. } else {
  6703. for k2, v2 := range v {
  6704. ee.EncodeUint(uint64(k2))
  6705. ee.EncodeInt(int64(v2))
  6706. }
  6707. }
  6708. }
  6709. ee.WriteMapEnd()
  6710. }
  6711. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  6712. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  6713. }
  6714. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  6715. if v == nil {
  6716. e.e.EncodeNil()
  6717. return
  6718. }
  6719. ee, esep := e.e, e.hh.hasElemSeparators()
  6720. ee.WriteMapStart(len(v))
  6721. if e.h.Canonical {
  6722. v2 := make([]uint64, len(v))
  6723. var i uint
  6724. for k := range v {
  6725. v2[i] = uint64(k)
  6726. i++
  6727. }
  6728. sort.Sort(uintSlice(v2))
  6729. if esep {
  6730. for _, k2 := range v2 {
  6731. ee.WriteMapElemKey()
  6732. ee.EncodeUint(uint64(uint8(k2)))
  6733. ee.WriteMapElemValue()
  6734. ee.EncodeInt(int64(v[uint8(k2)]))
  6735. }
  6736. } else {
  6737. for _, k2 := range v2 {
  6738. ee.EncodeUint(uint64(uint8(k2)))
  6739. ee.EncodeInt(int64(v[uint8(k2)]))
  6740. }
  6741. }
  6742. } else {
  6743. if esep {
  6744. for k2, v2 := range v {
  6745. ee.WriteMapElemKey()
  6746. ee.EncodeUint(uint64(k2))
  6747. ee.WriteMapElemValue()
  6748. ee.EncodeInt(int64(v2))
  6749. }
  6750. } else {
  6751. for k2, v2 := range v {
  6752. ee.EncodeUint(uint64(k2))
  6753. ee.EncodeInt(int64(v2))
  6754. }
  6755. }
  6756. }
  6757. ee.WriteMapEnd()
  6758. }
  6759. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  6760. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  6761. }
  6762. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  6763. if v == nil {
  6764. e.e.EncodeNil()
  6765. return
  6766. }
  6767. ee, esep := e.e, e.hh.hasElemSeparators()
  6768. ee.WriteMapStart(len(v))
  6769. if e.h.Canonical {
  6770. v2 := make([]uint64, len(v))
  6771. var i uint
  6772. for k := range v {
  6773. v2[i] = uint64(k)
  6774. i++
  6775. }
  6776. sort.Sort(uintSlice(v2))
  6777. if esep {
  6778. for _, k2 := range v2 {
  6779. ee.WriteMapElemKey()
  6780. ee.EncodeUint(uint64(uint8(k2)))
  6781. ee.WriteMapElemValue()
  6782. ee.EncodeInt(int64(v[uint8(k2)]))
  6783. }
  6784. } else {
  6785. for _, k2 := range v2 {
  6786. ee.EncodeUint(uint64(uint8(k2)))
  6787. ee.EncodeInt(int64(v[uint8(k2)]))
  6788. }
  6789. }
  6790. } else {
  6791. if esep {
  6792. for k2, v2 := range v {
  6793. ee.WriteMapElemKey()
  6794. ee.EncodeUint(uint64(k2))
  6795. ee.WriteMapElemValue()
  6796. ee.EncodeInt(int64(v2))
  6797. }
  6798. } else {
  6799. for k2, v2 := range v {
  6800. ee.EncodeUint(uint64(k2))
  6801. ee.EncodeInt(int64(v2))
  6802. }
  6803. }
  6804. }
  6805. ee.WriteMapEnd()
  6806. }
  6807. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  6808. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  6809. }
  6810. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  6811. if v == nil {
  6812. e.e.EncodeNil()
  6813. return
  6814. }
  6815. ee, esep := e.e, e.hh.hasElemSeparators()
  6816. ee.WriteMapStart(len(v))
  6817. if e.h.Canonical {
  6818. v2 := make([]uint64, len(v))
  6819. var i uint
  6820. for k := range v {
  6821. v2[i] = uint64(k)
  6822. i++
  6823. }
  6824. sort.Sort(uintSlice(v2))
  6825. if esep {
  6826. for _, k2 := range v2 {
  6827. ee.WriteMapElemKey()
  6828. ee.EncodeUint(uint64(uint8(k2)))
  6829. ee.WriteMapElemValue()
  6830. ee.EncodeFloat32(v[uint8(k2)])
  6831. }
  6832. } else {
  6833. for _, k2 := range v2 {
  6834. ee.EncodeUint(uint64(uint8(k2)))
  6835. ee.EncodeFloat32(v[uint8(k2)])
  6836. }
  6837. }
  6838. } else {
  6839. if esep {
  6840. for k2, v2 := range v {
  6841. ee.WriteMapElemKey()
  6842. ee.EncodeUint(uint64(k2))
  6843. ee.WriteMapElemValue()
  6844. ee.EncodeFloat32(v2)
  6845. }
  6846. } else {
  6847. for k2, v2 := range v {
  6848. ee.EncodeUint(uint64(k2))
  6849. ee.EncodeFloat32(v2)
  6850. }
  6851. }
  6852. }
  6853. ee.WriteMapEnd()
  6854. }
  6855. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  6856. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  6857. }
  6858. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  6859. if v == nil {
  6860. e.e.EncodeNil()
  6861. return
  6862. }
  6863. ee, esep := e.e, e.hh.hasElemSeparators()
  6864. ee.WriteMapStart(len(v))
  6865. if e.h.Canonical {
  6866. v2 := make([]uint64, len(v))
  6867. var i uint
  6868. for k := range v {
  6869. v2[i] = uint64(k)
  6870. i++
  6871. }
  6872. sort.Sort(uintSlice(v2))
  6873. if esep {
  6874. for _, k2 := range v2 {
  6875. ee.WriteMapElemKey()
  6876. ee.EncodeUint(uint64(uint8(k2)))
  6877. ee.WriteMapElemValue()
  6878. ee.EncodeFloat64(v[uint8(k2)])
  6879. }
  6880. } else {
  6881. for _, k2 := range v2 {
  6882. ee.EncodeUint(uint64(uint8(k2)))
  6883. ee.EncodeFloat64(v[uint8(k2)])
  6884. }
  6885. }
  6886. } else {
  6887. if esep {
  6888. for k2, v2 := range v {
  6889. ee.WriteMapElemKey()
  6890. ee.EncodeUint(uint64(k2))
  6891. ee.WriteMapElemValue()
  6892. ee.EncodeFloat64(v2)
  6893. }
  6894. } else {
  6895. for k2, v2 := range v {
  6896. ee.EncodeUint(uint64(k2))
  6897. ee.EncodeFloat64(v2)
  6898. }
  6899. }
  6900. }
  6901. ee.WriteMapEnd()
  6902. }
  6903. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  6904. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  6905. }
  6906. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  6907. if v == nil {
  6908. e.e.EncodeNil()
  6909. return
  6910. }
  6911. ee, esep := e.e, e.hh.hasElemSeparators()
  6912. ee.WriteMapStart(len(v))
  6913. if e.h.Canonical {
  6914. v2 := make([]uint64, len(v))
  6915. var i uint
  6916. for k := range v {
  6917. v2[i] = uint64(k)
  6918. i++
  6919. }
  6920. sort.Sort(uintSlice(v2))
  6921. if esep {
  6922. for _, k2 := range v2 {
  6923. ee.WriteMapElemKey()
  6924. ee.EncodeUint(uint64(uint8(k2)))
  6925. ee.WriteMapElemValue()
  6926. ee.EncodeBool(v[uint8(k2)])
  6927. }
  6928. } else {
  6929. for _, k2 := range v2 {
  6930. ee.EncodeUint(uint64(uint8(k2)))
  6931. ee.EncodeBool(v[uint8(k2)])
  6932. }
  6933. }
  6934. } else {
  6935. if esep {
  6936. for k2, v2 := range v {
  6937. ee.WriteMapElemKey()
  6938. ee.EncodeUint(uint64(k2))
  6939. ee.WriteMapElemValue()
  6940. ee.EncodeBool(v2)
  6941. }
  6942. } else {
  6943. for k2, v2 := range v {
  6944. ee.EncodeUint(uint64(k2))
  6945. ee.EncodeBool(v2)
  6946. }
  6947. }
  6948. }
  6949. ee.WriteMapEnd()
  6950. }
  6951. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  6952. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  6953. }
  6954. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  6955. if v == nil {
  6956. e.e.EncodeNil()
  6957. return
  6958. }
  6959. ee, esep := e.e, e.hh.hasElemSeparators()
  6960. ee.WriteMapStart(len(v))
  6961. if e.h.Canonical {
  6962. v2 := make([]uint64, len(v))
  6963. var i uint
  6964. for k := range v {
  6965. v2[i] = uint64(k)
  6966. i++
  6967. }
  6968. sort.Sort(uintSlice(v2))
  6969. if esep {
  6970. for _, k2 := range v2 {
  6971. ee.WriteMapElemKey()
  6972. ee.EncodeUint(uint64(uint16(k2)))
  6973. ee.WriteMapElemValue()
  6974. e.encode(v[uint16(k2)])
  6975. }
  6976. } else {
  6977. for _, k2 := range v2 {
  6978. ee.EncodeUint(uint64(uint16(k2)))
  6979. e.encode(v[uint16(k2)])
  6980. }
  6981. }
  6982. } else {
  6983. if esep {
  6984. for k2, v2 := range v {
  6985. ee.WriteMapElemKey()
  6986. ee.EncodeUint(uint64(k2))
  6987. ee.WriteMapElemValue()
  6988. e.encode(v2)
  6989. }
  6990. } else {
  6991. for k2, v2 := range v {
  6992. ee.EncodeUint(uint64(k2))
  6993. e.encode(v2)
  6994. }
  6995. }
  6996. }
  6997. ee.WriteMapEnd()
  6998. }
  6999. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  7000. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  7001. }
  7002. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  7003. if v == nil {
  7004. e.e.EncodeNil()
  7005. return
  7006. }
  7007. ee, esep := e.e, e.hh.hasElemSeparators()
  7008. ee.WriteMapStart(len(v))
  7009. if e.h.Canonical {
  7010. v2 := make([]uint64, len(v))
  7011. var i uint
  7012. for k := range v {
  7013. v2[i] = uint64(k)
  7014. i++
  7015. }
  7016. sort.Sort(uintSlice(v2))
  7017. if esep {
  7018. for _, k2 := range v2 {
  7019. ee.WriteMapElemKey()
  7020. ee.EncodeUint(uint64(uint16(k2)))
  7021. ee.WriteMapElemValue()
  7022. ee.EncodeStringEnc(cUTF8, v[uint16(k2)])
  7023. }
  7024. } else {
  7025. for _, k2 := range v2 {
  7026. ee.EncodeUint(uint64(uint16(k2)))
  7027. ee.EncodeStringEnc(cUTF8, v[uint16(k2)])
  7028. }
  7029. }
  7030. } else {
  7031. if esep {
  7032. for k2, v2 := range v {
  7033. ee.WriteMapElemKey()
  7034. ee.EncodeUint(uint64(k2))
  7035. ee.WriteMapElemValue()
  7036. ee.EncodeStringEnc(cUTF8, v2)
  7037. }
  7038. } else {
  7039. for k2, v2 := range v {
  7040. ee.EncodeUint(uint64(k2))
  7041. ee.EncodeStringEnc(cUTF8, v2)
  7042. }
  7043. }
  7044. }
  7045. ee.WriteMapEnd()
  7046. }
  7047. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  7048. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  7049. }
  7050. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  7051. if v == nil {
  7052. e.e.EncodeNil()
  7053. return
  7054. }
  7055. ee, esep := e.e, e.hh.hasElemSeparators()
  7056. ee.WriteMapStart(len(v))
  7057. if e.h.Canonical {
  7058. v2 := make([]uint64, len(v))
  7059. var i uint
  7060. for k := range v {
  7061. v2[i] = uint64(k)
  7062. i++
  7063. }
  7064. sort.Sort(uintSlice(v2))
  7065. if esep {
  7066. for _, k2 := range v2 {
  7067. ee.WriteMapElemKey()
  7068. ee.EncodeUint(uint64(uint16(k2)))
  7069. ee.WriteMapElemValue()
  7070. ee.EncodeUint(uint64(v[uint16(k2)]))
  7071. }
  7072. } else {
  7073. for _, k2 := range v2 {
  7074. ee.EncodeUint(uint64(uint16(k2)))
  7075. ee.EncodeUint(uint64(v[uint16(k2)]))
  7076. }
  7077. }
  7078. } else {
  7079. if esep {
  7080. for k2, v2 := range v {
  7081. ee.WriteMapElemKey()
  7082. ee.EncodeUint(uint64(k2))
  7083. ee.WriteMapElemValue()
  7084. ee.EncodeUint(uint64(v2))
  7085. }
  7086. } else {
  7087. for k2, v2 := range v {
  7088. ee.EncodeUint(uint64(k2))
  7089. ee.EncodeUint(uint64(v2))
  7090. }
  7091. }
  7092. }
  7093. ee.WriteMapEnd()
  7094. }
  7095. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  7096. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  7097. }
  7098. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  7099. if v == nil {
  7100. e.e.EncodeNil()
  7101. return
  7102. }
  7103. ee, esep := e.e, e.hh.hasElemSeparators()
  7104. ee.WriteMapStart(len(v))
  7105. if e.h.Canonical {
  7106. v2 := make([]uint64, len(v))
  7107. var i uint
  7108. for k := range v {
  7109. v2[i] = uint64(k)
  7110. i++
  7111. }
  7112. sort.Sort(uintSlice(v2))
  7113. if esep {
  7114. for _, k2 := range v2 {
  7115. ee.WriteMapElemKey()
  7116. ee.EncodeUint(uint64(uint16(k2)))
  7117. ee.WriteMapElemValue()
  7118. ee.EncodeUint(uint64(v[uint16(k2)]))
  7119. }
  7120. } else {
  7121. for _, k2 := range v2 {
  7122. ee.EncodeUint(uint64(uint16(k2)))
  7123. ee.EncodeUint(uint64(v[uint16(k2)]))
  7124. }
  7125. }
  7126. } else {
  7127. if esep {
  7128. for k2, v2 := range v {
  7129. ee.WriteMapElemKey()
  7130. ee.EncodeUint(uint64(k2))
  7131. ee.WriteMapElemValue()
  7132. ee.EncodeUint(uint64(v2))
  7133. }
  7134. } else {
  7135. for k2, v2 := range v {
  7136. ee.EncodeUint(uint64(k2))
  7137. ee.EncodeUint(uint64(v2))
  7138. }
  7139. }
  7140. }
  7141. ee.WriteMapEnd()
  7142. }
  7143. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  7144. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  7145. }
  7146. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  7147. if v == nil {
  7148. e.e.EncodeNil()
  7149. return
  7150. }
  7151. ee, esep := e.e, e.hh.hasElemSeparators()
  7152. ee.WriteMapStart(len(v))
  7153. if e.h.Canonical {
  7154. v2 := make([]uint64, len(v))
  7155. var i uint
  7156. for k := range v {
  7157. v2[i] = uint64(k)
  7158. i++
  7159. }
  7160. sort.Sort(uintSlice(v2))
  7161. if esep {
  7162. for _, k2 := range v2 {
  7163. ee.WriteMapElemKey()
  7164. ee.EncodeUint(uint64(uint16(k2)))
  7165. ee.WriteMapElemValue()
  7166. ee.EncodeUint(uint64(v[uint16(k2)]))
  7167. }
  7168. } else {
  7169. for _, k2 := range v2 {
  7170. ee.EncodeUint(uint64(uint16(k2)))
  7171. ee.EncodeUint(uint64(v[uint16(k2)]))
  7172. }
  7173. }
  7174. } else {
  7175. if esep {
  7176. for k2, v2 := range v {
  7177. ee.WriteMapElemKey()
  7178. ee.EncodeUint(uint64(k2))
  7179. ee.WriteMapElemValue()
  7180. ee.EncodeUint(uint64(v2))
  7181. }
  7182. } else {
  7183. for k2, v2 := range v {
  7184. ee.EncodeUint(uint64(k2))
  7185. ee.EncodeUint(uint64(v2))
  7186. }
  7187. }
  7188. }
  7189. ee.WriteMapEnd()
  7190. }
  7191. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  7192. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  7193. }
  7194. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  7195. if v == nil {
  7196. e.e.EncodeNil()
  7197. return
  7198. }
  7199. ee, esep := e.e, e.hh.hasElemSeparators()
  7200. ee.WriteMapStart(len(v))
  7201. if e.h.Canonical {
  7202. v2 := make([]uint64, len(v))
  7203. var i uint
  7204. for k := range v {
  7205. v2[i] = uint64(k)
  7206. i++
  7207. }
  7208. sort.Sort(uintSlice(v2))
  7209. if esep {
  7210. for _, k2 := range v2 {
  7211. ee.WriteMapElemKey()
  7212. ee.EncodeUint(uint64(uint16(k2)))
  7213. ee.WriteMapElemValue()
  7214. ee.EncodeUint(uint64(v[uint16(k2)]))
  7215. }
  7216. } else {
  7217. for _, k2 := range v2 {
  7218. ee.EncodeUint(uint64(uint16(k2)))
  7219. ee.EncodeUint(uint64(v[uint16(k2)]))
  7220. }
  7221. }
  7222. } else {
  7223. if esep {
  7224. for k2, v2 := range v {
  7225. ee.WriteMapElemKey()
  7226. ee.EncodeUint(uint64(k2))
  7227. ee.WriteMapElemValue()
  7228. ee.EncodeUint(uint64(v2))
  7229. }
  7230. } else {
  7231. for k2, v2 := range v {
  7232. ee.EncodeUint(uint64(k2))
  7233. ee.EncodeUint(uint64(v2))
  7234. }
  7235. }
  7236. }
  7237. ee.WriteMapEnd()
  7238. }
  7239. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  7240. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  7241. }
  7242. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  7243. if v == nil {
  7244. e.e.EncodeNil()
  7245. return
  7246. }
  7247. ee, esep := e.e, e.hh.hasElemSeparators()
  7248. ee.WriteMapStart(len(v))
  7249. if e.h.Canonical {
  7250. v2 := make([]uint64, len(v))
  7251. var i uint
  7252. for k := range v {
  7253. v2[i] = uint64(k)
  7254. i++
  7255. }
  7256. sort.Sort(uintSlice(v2))
  7257. if esep {
  7258. for _, k2 := range v2 {
  7259. ee.WriteMapElemKey()
  7260. ee.EncodeUint(uint64(uint16(k2)))
  7261. ee.WriteMapElemValue()
  7262. ee.EncodeUint(uint64(v[uint16(k2)]))
  7263. }
  7264. } else {
  7265. for _, k2 := range v2 {
  7266. ee.EncodeUint(uint64(uint16(k2)))
  7267. ee.EncodeUint(uint64(v[uint16(k2)]))
  7268. }
  7269. }
  7270. } else {
  7271. if esep {
  7272. for k2, v2 := range v {
  7273. ee.WriteMapElemKey()
  7274. ee.EncodeUint(uint64(k2))
  7275. ee.WriteMapElemValue()
  7276. ee.EncodeUint(uint64(v2))
  7277. }
  7278. } else {
  7279. for k2, v2 := range v {
  7280. ee.EncodeUint(uint64(k2))
  7281. ee.EncodeUint(uint64(v2))
  7282. }
  7283. }
  7284. }
  7285. ee.WriteMapEnd()
  7286. }
  7287. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  7288. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  7289. }
  7290. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  7291. if v == nil {
  7292. e.e.EncodeNil()
  7293. return
  7294. }
  7295. ee, esep := e.e, e.hh.hasElemSeparators()
  7296. ee.WriteMapStart(len(v))
  7297. if e.h.Canonical {
  7298. v2 := make([]uint64, len(v))
  7299. var i uint
  7300. for k := range v {
  7301. v2[i] = uint64(k)
  7302. i++
  7303. }
  7304. sort.Sort(uintSlice(v2))
  7305. if esep {
  7306. for _, k2 := range v2 {
  7307. ee.WriteMapElemKey()
  7308. ee.EncodeUint(uint64(uint16(k2)))
  7309. ee.WriteMapElemValue()
  7310. e.encode(v[uint16(k2)])
  7311. }
  7312. } else {
  7313. for _, k2 := range v2 {
  7314. ee.EncodeUint(uint64(uint16(k2)))
  7315. e.encode(v[uint16(k2)])
  7316. }
  7317. }
  7318. } else {
  7319. if esep {
  7320. for k2, v2 := range v {
  7321. ee.WriteMapElemKey()
  7322. ee.EncodeUint(uint64(k2))
  7323. ee.WriteMapElemValue()
  7324. e.encode(v2)
  7325. }
  7326. } else {
  7327. for k2, v2 := range v {
  7328. ee.EncodeUint(uint64(k2))
  7329. e.encode(v2)
  7330. }
  7331. }
  7332. }
  7333. ee.WriteMapEnd()
  7334. }
  7335. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  7336. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  7337. }
  7338. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  7339. if v == nil {
  7340. e.e.EncodeNil()
  7341. return
  7342. }
  7343. ee, esep := e.e, e.hh.hasElemSeparators()
  7344. ee.WriteMapStart(len(v))
  7345. if e.h.Canonical {
  7346. v2 := make([]uint64, len(v))
  7347. var i uint
  7348. for k := range v {
  7349. v2[i] = uint64(k)
  7350. i++
  7351. }
  7352. sort.Sort(uintSlice(v2))
  7353. if esep {
  7354. for _, k2 := range v2 {
  7355. ee.WriteMapElemKey()
  7356. ee.EncodeUint(uint64(uint16(k2)))
  7357. ee.WriteMapElemValue()
  7358. ee.EncodeInt(int64(v[uint16(k2)]))
  7359. }
  7360. } else {
  7361. for _, k2 := range v2 {
  7362. ee.EncodeUint(uint64(uint16(k2)))
  7363. ee.EncodeInt(int64(v[uint16(k2)]))
  7364. }
  7365. }
  7366. } else {
  7367. if esep {
  7368. for k2, v2 := range v {
  7369. ee.WriteMapElemKey()
  7370. ee.EncodeUint(uint64(k2))
  7371. ee.WriteMapElemValue()
  7372. ee.EncodeInt(int64(v2))
  7373. }
  7374. } else {
  7375. for k2, v2 := range v {
  7376. ee.EncodeUint(uint64(k2))
  7377. ee.EncodeInt(int64(v2))
  7378. }
  7379. }
  7380. }
  7381. ee.WriteMapEnd()
  7382. }
  7383. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  7384. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  7385. }
  7386. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  7387. if v == nil {
  7388. e.e.EncodeNil()
  7389. return
  7390. }
  7391. ee, esep := e.e, e.hh.hasElemSeparators()
  7392. ee.WriteMapStart(len(v))
  7393. if e.h.Canonical {
  7394. v2 := make([]uint64, len(v))
  7395. var i uint
  7396. for k := range v {
  7397. v2[i] = uint64(k)
  7398. i++
  7399. }
  7400. sort.Sort(uintSlice(v2))
  7401. if esep {
  7402. for _, k2 := range v2 {
  7403. ee.WriteMapElemKey()
  7404. ee.EncodeUint(uint64(uint16(k2)))
  7405. ee.WriteMapElemValue()
  7406. ee.EncodeInt(int64(v[uint16(k2)]))
  7407. }
  7408. } else {
  7409. for _, k2 := range v2 {
  7410. ee.EncodeUint(uint64(uint16(k2)))
  7411. ee.EncodeInt(int64(v[uint16(k2)]))
  7412. }
  7413. }
  7414. } else {
  7415. if esep {
  7416. for k2, v2 := range v {
  7417. ee.WriteMapElemKey()
  7418. ee.EncodeUint(uint64(k2))
  7419. ee.WriteMapElemValue()
  7420. ee.EncodeInt(int64(v2))
  7421. }
  7422. } else {
  7423. for k2, v2 := range v {
  7424. ee.EncodeUint(uint64(k2))
  7425. ee.EncodeInt(int64(v2))
  7426. }
  7427. }
  7428. }
  7429. ee.WriteMapEnd()
  7430. }
  7431. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  7432. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  7433. }
  7434. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  7435. if v == nil {
  7436. e.e.EncodeNil()
  7437. return
  7438. }
  7439. ee, esep := e.e, e.hh.hasElemSeparators()
  7440. ee.WriteMapStart(len(v))
  7441. if e.h.Canonical {
  7442. v2 := make([]uint64, len(v))
  7443. var i uint
  7444. for k := range v {
  7445. v2[i] = uint64(k)
  7446. i++
  7447. }
  7448. sort.Sort(uintSlice(v2))
  7449. if esep {
  7450. for _, k2 := range v2 {
  7451. ee.WriteMapElemKey()
  7452. ee.EncodeUint(uint64(uint16(k2)))
  7453. ee.WriteMapElemValue()
  7454. ee.EncodeInt(int64(v[uint16(k2)]))
  7455. }
  7456. } else {
  7457. for _, k2 := range v2 {
  7458. ee.EncodeUint(uint64(uint16(k2)))
  7459. ee.EncodeInt(int64(v[uint16(k2)]))
  7460. }
  7461. }
  7462. } else {
  7463. if esep {
  7464. for k2, v2 := range v {
  7465. ee.WriteMapElemKey()
  7466. ee.EncodeUint(uint64(k2))
  7467. ee.WriteMapElemValue()
  7468. ee.EncodeInt(int64(v2))
  7469. }
  7470. } else {
  7471. for k2, v2 := range v {
  7472. ee.EncodeUint(uint64(k2))
  7473. ee.EncodeInt(int64(v2))
  7474. }
  7475. }
  7476. }
  7477. ee.WriteMapEnd()
  7478. }
  7479. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  7480. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  7481. }
  7482. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  7483. if v == nil {
  7484. e.e.EncodeNil()
  7485. return
  7486. }
  7487. ee, esep := e.e, e.hh.hasElemSeparators()
  7488. ee.WriteMapStart(len(v))
  7489. if e.h.Canonical {
  7490. v2 := make([]uint64, len(v))
  7491. var i uint
  7492. for k := range v {
  7493. v2[i] = uint64(k)
  7494. i++
  7495. }
  7496. sort.Sort(uintSlice(v2))
  7497. if esep {
  7498. for _, k2 := range v2 {
  7499. ee.WriteMapElemKey()
  7500. ee.EncodeUint(uint64(uint16(k2)))
  7501. ee.WriteMapElemValue()
  7502. ee.EncodeInt(int64(v[uint16(k2)]))
  7503. }
  7504. } else {
  7505. for _, k2 := range v2 {
  7506. ee.EncodeUint(uint64(uint16(k2)))
  7507. ee.EncodeInt(int64(v[uint16(k2)]))
  7508. }
  7509. }
  7510. } else {
  7511. if esep {
  7512. for k2, v2 := range v {
  7513. ee.WriteMapElemKey()
  7514. ee.EncodeUint(uint64(k2))
  7515. ee.WriteMapElemValue()
  7516. ee.EncodeInt(int64(v2))
  7517. }
  7518. } else {
  7519. for k2, v2 := range v {
  7520. ee.EncodeUint(uint64(k2))
  7521. ee.EncodeInt(int64(v2))
  7522. }
  7523. }
  7524. }
  7525. ee.WriteMapEnd()
  7526. }
  7527. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  7528. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  7529. }
  7530. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  7531. if v == nil {
  7532. e.e.EncodeNil()
  7533. return
  7534. }
  7535. ee, esep := e.e, e.hh.hasElemSeparators()
  7536. ee.WriteMapStart(len(v))
  7537. if e.h.Canonical {
  7538. v2 := make([]uint64, len(v))
  7539. var i uint
  7540. for k := range v {
  7541. v2[i] = uint64(k)
  7542. i++
  7543. }
  7544. sort.Sort(uintSlice(v2))
  7545. if esep {
  7546. for _, k2 := range v2 {
  7547. ee.WriteMapElemKey()
  7548. ee.EncodeUint(uint64(uint16(k2)))
  7549. ee.WriteMapElemValue()
  7550. ee.EncodeInt(int64(v[uint16(k2)]))
  7551. }
  7552. } else {
  7553. for _, k2 := range v2 {
  7554. ee.EncodeUint(uint64(uint16(k2)))
  7555. ee.EncodeInt(int64(v[uint16(k2)]))
  7556. }
  7557. }
  7558. } else {
  7559. if esep {
  7560. for k2, v2 := range v {
  7561. ee.WriteMapElemKey()
  7562. ee.EncodeUint(uint64(k2))
  7563. ee.WriteMapElemValue()
  7564. ee.EncodeInt(int64(v2))
  7565. }
  7566. } else {
  7567. for k2, v2 := range v {
  7568. ee.EncodeUint(uint64(k2))
  7569. ee.EncodeInt(int64(v2))
  7570. }
  7571. }
  7572. }
  7573. ee.WriteMapEnd()
  7574. }
  7575. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  7576. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  7577. }
  7578. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  7579. if v == nil {
  7580. e.e.EncodeNil()
  7581. return
  7582. }
  7583. ee, esep := e.e, e.hh.hasElemSeparators()
  7584. ee.WriteMapStart(len(v))
  7585. if e.h.Canonical {
  7586. v2 := make([]uint64, len(v))
  7587. var i uint
  7588. for k := range v {
  7589. v2[i] = uint64(k)
  7590. i++
  7591. }
  7592. sort.Sort(uintSlice(v2))
  7593. if esep {
  7594. for _, k2 := range v2 {
  7595. ee.WriteMapElemKey()
  7596. ee.EncodeUint(uint64(uint16(k2)))
  7597. ee.WriteMapElemValue()
  7598. ee.EncodeFloat32(v[uint16(k2)])
  7599. }
  7600. } else {
  7601. for _, k2 := range v2 {
  7602. ee.EncodeUint(uint64(uint16(k2)))
  7603. ee.EncodeFloat32(v[uint16(k2)])
  7604. }
  7605. }
  7606. } else {
  7607. if esep {
  7608. for k2, v2 := range v {
  7609. ee.WriteMapElemKey()
  7610. ee.EncodeUint(uint64(k2))
  7611. ee.WriteMapElemValue()
  7612. ee.EncodeFloat32(v2)
  7613. }
  7614. } else {
  7615. for k2, v2 := range v {
  7616. ee.EncodeUint(uint64(k2))
  7617. ee.EncodeFloat32(v2)
  7618. }
  7619. }
  7620. }
  7621. ee.WriteMapEnd()
  7622. }
  7623. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  7624. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  7625. }
  7626. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  7627. if v == nil {
  7628. e.e.EncodeNil()
  7629. return
  7630. }
  7631. ee, esep := e.e, e.hh.hasElemSeparators()
  7632. ee.WriteMapStart(len(v))
  7633. if e.h.Canonical {
  7634. v2 := make([]uint64, len(v))
  7635. var i uint
  7636. for k := range v {
  7637. v2[i] = uint64(k)
  7638. i++
  7639. }
  7640. sort.Sort(uintSlice(v2))
  7641. if esep {
  7642. for _, k2 := range v2 {
  7643. ee.WriteMapElemKey()
  7644. ee.EncodeUint(uint64(uint16(k2)))
  7645. ee.WriteMapElemValue()
  7646. ee.EncodeFloat64(v[uint16(k2)])
  7647. }
  7648. } else {
  7649. for _, k2 := range v2 {
  7650. ee.EncodeUint(uint64(uint16(k2)))
  7651. ee.EncodeFloat64(v[uint16(k2)])
  7652. }
  7653. }
  7654. } else {
  7655. if esep {
  7656. for k2, v2 := range v {
  7657. ee.WriteMapElemKey()
  7658. ee.EncodeUint(uint64(k2))
  7659. ee.WriteMapElemValue()
  7660. ee.EncodeFloat64(v2)
  7661. }
  7662. } else {
  7663. for k2, v2 := range v {
  7664. ee.EncodeUint(uint64(k2))
  7665. ee.EncodeFloat64(v2)
  7666. }
  7667. }
  7668. }
  7669. ee.WriteMapEnd()
  7670. }
  7671. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  7672. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  7673. }
  7674. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  7675. if v == nil {
  7676. e.e.EncodeNil()
  7677. return
  7678. }
  7679. ee, esep := e.e, e.hh.hasElemSeparators()
  7680. ee.WriteMapStart(len(v))
  7681. if e.h.Canonical {
  7682. v2 := make([]uint64, len(v))
  7683. var i uint
  7684. for k := range v {
  7685. v2[i] = uint64(k)
  7686. i++
  7687. }
  7688. sort.Sort(uintSlice(v2))
  7689. if esep {
  7690. for _, k2 := range v2 {
  7691. ee.WriteMapElemKey()
  7692. ee.EncodeUint(uint64(uint16(k2)))
  7693. ee.WriteMapElemValue()
  7694. ee.EncodeBool(v[uint16(k2)])
  7695. }
  7696. } else {
  7697. for _, k2 := range v2 {
  7698. ee.EncodeUint(uint64(uint16(k2)))
  7699. ee.EncodeBool(v[uint16(k2)])
  7700. }
  7701. }
  7702. } else {
  7703. if esep {
  7704. for k2, v2 := range v {
  7705. ee.WriteMapElemKey()
  7706. ee.EncodeUint(uint64(k2))
  7707. ee.WriteMapElemValue()
  7708. ee.EncodeBool(v2)
  7709. }
  7710. } else {
  7711. for k2, v2 := range v {
  7712. ee.EncodeUint(uint64(k2))
  7713. ee.EncodeBool(v2)
  7714. }
  7715. }
  7716. }
  7717. ee.WriteMapEnd()
  7718. }
  7719. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7720. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7721. }
  7722. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7723. if v == nil {
  7724. e.e.EncodeNil()
  7725. return
  7726. }
  7727. ee, esep := e.e, e.hh.hasElemSeparators()
  7728. ee.WriteMapStart(len(v))
  7729. if e.h.Canonical {
  7730. v2 := make([]uint64, len(v))
  7731. var i uint
  7732. for k := range v {
  7733. v2[i] = uint64(k)
  7734. i++
  7735. }
  7736. sort.Sort(uintSlice(v2))
  7737. if esep {
  7738. for _, k2 := range v2 {
  7739. ee.WriteMapElemKey()
  7740. ee.EncodeUint(uint64(uint32(k2)))
  7741. ee.WriteMapElemValue()
  7742. e.encode(v[uint32(k2)])
  7743. }
  7744. } else {
  7745. for _, k2 := range v2 {
  7746. ee.EncodeUint(uint64(uint32(k2)))
  7747. e.encode(v[uint32(k2)])
  7748. }
  7749. }
  7750. } else {
  7751. if esep {
  7752. for k2, v2 := range v {
  7753. ee.WriteMapElemKey()
  7754. ee.EncodeUint(uint64(k2))
  7755. ee.WriteMapElemValue()
  7756. e.encode(v2)
  7757. }
  7758. } else {
  7759. for k2, v2 := range v {
  7760. ee.EncodeUint(uint64(k2))
  7761. e.encode(v2)
  7762. }
  7763. }
  7764. }
  7765. ee.WriteMapEnd()
  7766. }
  7767. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7768. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7769. }
  7770. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7771. if v == nil {
  7772. e.e.EncodeNil()
  7773. return
  7774. }
  7775. ee, esep := e.e, e.hh.hasElemSeparators()
  7776. ee.WriteMapStart(len(v))
  7777. if e.h.Canonical {
  7778. v2 := make([]uint64, len(v))
  7779. var i uint
  7780. for k := range v {
  7781. v2[i] = uint64(k)
  7782. i++
  7783. }
  7784. sort.Sort(uintSlice(v2))
  7785. if esep {
  7786. for _, k2 := range v2 {
  7787. ee.WriteMapElemKey()
  7788. ee.EncodeUint(uint64(uint32(k2)))
  7789. ee.WriteMapElemValue()
  7790. ee.EncodeStringEnc(cUTF8, v[uint32(k2)])
  7791. }
  7792. } else {
  7793. for _, k2 := range v2 {
  7794. ee.EncodeUint(uint64(uint32(k2)))
  7795. ee.EncodeStringEnc(cUTF8, v[uint32(k2)])
  7796. }
  7797. }
  7798. } else {
  7799. if esep {
  7800. for k2, v2 := range v {
  7801. ee.WriteMapElemKey()
  7802. ee.EncodeUint(uint64(k2))
  7803. ee.WriteMapElemValue()
  7804. ee.EncodeStringEnc(cUTF8, v2)
  7805. }
  7806. } else {
  7807. for k2, v2 := range v {
  7808. ee.EncodeUint(uint64(k2))
  7809. ee.EncodeStringEnc(cUTF8, v2)
  7810. }
  7811. }
  7812. }
  7813. ee.WriteMapEnd()
  7814. }
  7815. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7816. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7817. }
  7818. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7819. if v == nil {
  7820. e.e.EncodeNil()
  7821. return
  7822. }
  7823. ee, esep := e.e, e.hh.hasElemSeparators()
  7824. ee.WriteMapStart(len(v))
  7825. if e.h.Canonical {
  7826. v2 := make([]uint64, len(v))
  7827. var i uint
  7828. for k := range v {
  7829. v2[i] = uint64(k)
  7830. i++
  7831. }
  7832. sort.Sort(uintSlice(v2))
  7833. if esep {
  7834. for _, k2 := range v2 {
  7835. ee.WriteMapElemKey()
  7836. ee.EncodeUint(uint64(uint32(k2)))
  7837. ee.WriteMapElemValue()
  7838. ee.EncodeUint(uint64(v[uint32(k2)]))
  7839. }
  7840. } else {
  7841. for _, k2 := range v2 {
  7842. ee.EncodeUint(uint64(uint32(k2)))
  7843. ee.EncodeUint(uint64(v[uint32(k2)]))
  7844. }
  7845. }
  7846. } else {
  7847. if esep {
  7848. for k2, v2 := range v {
  7849. ee.WriteMapElemKey()
  7850. ee.EncodeUint(uint64(k2))
  7851. ee.WriteMapElemValue()
  7852. ee.EncodeUint(uint64(v2))
  7853. }
  7854. } else {
  7855. for k2, v2 := range v {
  7856. ee.EncodeUint(uint64(k2))
  7857. ee.EncodeUint(uint64(v2))
  7858. }
  7859. }
  7860. }
  7861. ee.WriteMapEnd()
  7862. }
  7863. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  7864. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  7865. }
  7866. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  7867. if v == nil {
  7868. e.e.EncodeNil()
  7869. return
  7870. }
  7871. ee, esep := e.e, e.hh.hasElemSeparators()
  7872. ee.WriteMapStart(len(v))
  7873. if e.h.Canonical {
  7874. v2 := make([]uint64, len(v))
  7875. var i uint
  7876. for k := range v {
  7877. v2[i] = uint64(k)
  7878. i++
  7879. }
  7880. sort.Sort(uintSlice(v2))
  7881. if esep {
  7882. for _, k2 := range v2 {
  7883. ee.WriteMapElemKey()
  7884. ee.EncodeUint(uint64(uint32(k2)))
  7885. ee.WriteMapElemValue()
  7886. ee.EncodeUint(uint64(v[uint32(k2)]))
  7887. }
  7888. } else {
  7889. for _, k2 := range v2 {
  7890. ee.EncodeUint(uint64(uint32(k2)))
  7891. ee.EncodeUint(uint64(v[uint32(k2)]))
  7892. }
  7893. }
  7894. } else {
  7895. if esep {
  7896. for k2, v2 := range v {
  7897. ee.WriteMapElemKey()
  7898. ee.EncodeUint(uint64(k2))
  7899. ee.WriteMapElemValue()
  7900. ee.EncodeUint(uint64(v2))
  7901. }
  7902. } else {
  7903. for k2, v2 := range v {
  7904. ee.EncodeUint(uint64(k2))
  7905. ee.EncodeUint(uint64(v2))
  7906. }
  7907. }
  7908. }
  7909. ee.WriteMapEnd()
  7910. }
  7911. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  7912. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  7913. }
  7914. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  7915. if v == nil {
  7916. e.e.EncodeNil()
  7917. return
  7918. }
  7919. ee, esep := e.e, e.hh.hasElemSeparators()
  7920. ee.WriteMapStart(len(v))
  7921. if e.h.Canonical {
  7922. v2 := make([]uint64, len(v))
  7923. var i uint
  7924. for k := range v {
  7925. v2[i] = uint64(k)
  7926. i++
  7927. }
  7928. sort.Sort(uintSlice(v2))
  7929. if esep {
  7930. for _, k2 := range v2 {
  7931. ee.WriteMapElemKey()
  7932. ee.EncodeUint(uint64(uint32(k2)))
  7933. ee.WriteMapElemValue()
  7934. ee.EncodeUint(uint64(v[uint32(k2)]))
  7935. }
  7936. } else {
  7937. for _, k2 := range v2 {
  7938. ee.EncodeUint(uint64(uint32(k2)))
  7939. ee.EncodeUint(uint64(v[uint32(k2)]))
  7940. }
  7941. }
  7942. } else {
  7943. if esep {
  7944. for k2, v2 := range v {
  7945. ee.WriteMapElemKey()
  7946. ee.EncodeUint(uint64(k2))
  7947. ee.WriteMapElemValue()
  7948. ee.EncodeUint(uint64(v2))
  7949. }
  7950. } else {
  7951. for k2, v2 := range v {
  7952. ee.EncodeUint(uint64(k2))
  7953. ee.EncodeUint(uint64(v2))
  7954. }
  7955. }
  7956. }
  7957. ee.WriteMapEnd()
  7958. }
  7959. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  7960. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  7961. }
  7962. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  7963. if v == nil {
  7964. e.e.EncodeNil()
  7965. return
  7966. }
  7967. ee, esep := e.e, e.hh.hasElemSeparators()
  7968. ee.WriteMapStart(len(v))
  7969. if e.h.Canonical {
  7970. v2 := make([]uint64, len(v))
  7971. var i uint
  7972. for k := range v {
  7973. v2[i] = uint64(k)
  7974. i++
  7975. }
  7976. sort.Sort(uintSlice(v2))
  7977. if esep {
  7978. for _, k2 := range v2 {
  7979. ee.WriteMapElemKey()
  7980. ee.EncodeUint(uint64(uint32(k2)))
  7981. ee.WriteMapElemValue()
  7982. ee.EncodeUint(uint64(v[uint32(k2)]))
  7983. }
  7984. } else {
  7985. for _, k2 := range v2 {
  7986. ee.EncodeUint(uint64(uint32(k2)))
  7987. ee.EncodeUint(uint64(v[uint32(k2)]))
  7988. }
  7989. }
  7990. } else {
  7991. if esep {
  7992. for k2, v2 := range v {
  7993. ee.WriteMapElemKey()
  7994. ee.EncodeUint(uint64(k2))
  7995. ee.WriteMapElemValue()
  7996. ee.EncodeUint(uint64(v2))
  7997. }
  7998. } else {
  7999. for k2, v2 := range v {
  8000. ee.EncodeUint(uint64(k2))
  8001. ee.EncodeUint(uint64(v2))
  8002. }
  8003. }
  8004. }
  8005. ee.WriteMapEnd()
  8006. }
  8007. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  8008. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  8009. }
  8010. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  8011. if v == nil {
  8012. e.e.EncodeNil()
  8013. return
  8014. }
  8015. ee, esep := e.e, e.hh.hasElemSeparators()
  8016. ee.WriteMapStart(len(v))
  8017. if e.h.Canonical {
  8018. v2 := make([]uint64, len(v))
  8019. var i uint
  8020. for k := range v {
  8021. v2[i] = uint64(k)
  8022. i++
  8023. }
  8024. sort.Sort(uintSlice(v2))
  8025. if esep {
  8026. for _, k2 := range v2 {
  8027. ee.WriteMapElemKey()
  8028. ee.EncodeUint(uint64(uint32(k2)))
  8029. ee.WriteMapElemValue()
  8030. ee.EncodeUint(uint64(v[uint32(k2)]))
  8031. }
  8032. } else {
  8033. for _, k2 := range v2 {
  8034. ee.EncodeUint(uint64(uint32(k2)))
  8035. ee.EncodeUint(uint64(v[uint32(k2)]))
  8036. }
  8037. }
  8038. } else {
  8039. if esep {
  8040. for k2, v2 := range v {
  8041. ee.WriteMapElemKey()
  8042. ee.EncodeUint(uint64(k2))
  8043. ee.WriteMapElemValue()
  8044. ee.EncodeUint(uint64(v2))
  8045. }
  8046. } else {
  8047. for k2, v2 := range v {
  8048. ee.EncodeUint(uint64(k2))
  8049. ee.EncodeUint(uint64(v2))
  8050. }
  8051. }
  8052. }
  8053. ee.WriteMapEnd()
  8054. }
  8055. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  8056. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  8057. }
  8058. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  8059. if v == nil {
  8060. e.e.EncodeNil()
  8061. return
  8062. }
  8063. ee, esep := e.e, e.hh.hasElemSeparators()
  8064. ee.WriteMapStart(len(v))
  8065. if e.h.Canonical {
  8066. v2 := make([]uint64, len(v))
  8067. var i uint
  8068. for k := range v {
  8069. v2[i] = uint64(k)
  8070. i++
  8071. }
  8072. sort.Sort(uintSlice(v2))
  8073. if esep {
  8074. for _, k2 := range v2 {
  8075. ee.WriteMapElemKey()
  8076. ee.EncodeUint(uint64(uint32(k2)))
  8077. ee.WriteMapElemValue()
  8078. e.encode(v[uint32(k2)])
  8079. }
  8080. } else {
  8081. for _, k2 := range v2 {
  8082. ee.EncodeUint(uint64(uint32(k2)))
  8083. e.encode(v[uint32(k2)])
  8084. }
  8085. }
  8086. } else {
  8087. if esep {
  8088. for k2, v2 := range v {
  8089. ee.WriteMapElemKey()
  8090. ee.EncodeUint(uint64(k2))
  8091. ee.WriteMapElemValue()
  8092. e.encode(v2)
  8093. }
  8094. } else {
  8095. for k2, v2 := range v {
  8096. ee.EncodeUint(uint64(k2))
  8097. e.encode(v2)
  8098. }
  8099. }
  8100. }
  8101. ee.WriteMapEnd()
  8102. }
  8103. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  8104. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  8105. }
  8106. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  8107. if v == nil {
  8108. e.e.EncodeNil()
  8109. return
  8110. }
  8111. ee, esep := e.e, e.hh.hasElemSeparators()
  8112. ee.WriteMapStart(len(v))
  8113. if e.h.Canonical {
  8114. v2 := make([]uint64, len(v))
  8115. var i uint
  8116. for k := range v {
  8117. v2[i] = uint64(k)
  8118. i++
  8119. }
  8120. sort.Sort(uintSlice(v2))
  8121. if esep {
  8122. for _, k2 := range v2 {
  8123. ee.WriteMapElemKey()
  8124. ee.EncodeUint(uint64(uint32(k2)))
  8125. ee.WriteMapElemValue()
  8126. ee.EncodeInt(int64(v[uint32(k2)]))
  8127. }
  8128. } else {
  8129. for _, k2 := range v2 {
  8130. ee.EncodeUint(uint64(uint32(k2)))
  8131. ee.EncodeInt(int64(v[uint32(k2)]))
  8132. }
  8133. }
  8134. } else {
  8135. if esep {
  8136. for k2, v2 := range v {
  8137. ee.WriteMapElemKey()
  8138. ee.EncodeUint(uint64(k2))
  8139. ee.WriteMapElemValue()
  8140. ee.EncodeInt(int64(v2))
  8141. }
  8142. } else {
  8143. for k2, v2 := range v {
  8144. ee.EncodeUint(uint64(k2))
  8145. ee.EncodeInt(int64(v2))
  8146. }
  8147. }
  8148. }
  8149. ee.WriteMapEnd()
  8150. }
  8151. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  8152. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  8153. }
  8154. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  8155. if v == nil {
  8156. e.e.EncodeNil()
  8157. return
  8158. }
  8159. ee, esep := e.e, e.hh.hasElemSeparators()
  8160. ee.WriteMapStart(len(v))
  8161. if e.h.Canonical {
  8162. v2 := make([]uint64, len(v))
  8163. var i uint
  8164. for k := range v {
  8165. v2[i] = uint64(k)
  8166. i++
  8167. }
  8168. sort.Sort(uintSlice(v2))
  8169. if esep {
  8170. for _, k2 := range v2 {
  8171. ee.WriteMapElemKey()
  8172. ee.EncodeUint(uint64(uint32(k2)))
  8173. ee.WriteMapElemValue()
  8174. ee.EncodeInt(int64(v[uint32(k2)]))
  8175. }
  8176. } else {
  8177. for _, k2 := range v2 {
  8178. ee.EncodeUint(uint64(uint32(k2)))
  8179. ee.EncodeInt(int64(v[uint32(k2)]))
  8180. }
  8181. }
  8182. } else {
  8183. if esep {
  8184. for k2, v2 := range v {
  8185. ee.WriteMapElemKey()
  8186. ee.EncodeUint(uint64(k2))
  8187. ee.WriteMapElemValue()
  8188. ee.EncodeInt(int64(v2))
  8189. }
  8190. } else {
  8191. for k2, v2 := range v {
  8192. ee.EncodeUint(uint64(k2))
  8193. ee.EncodeInt(int64(v2))
  8194. }
  8195. }
  8196. }
  8197. ee.WriteMapEnd()
  8198. }
  8199. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  8200. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  8201. }
  8202. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  8203. if v == nil {
  8204. e.e.EncodeNil()
  8205. return
  8206. }
  8207. ee, esep := e.e, e.hh.hasElemSeparators()
  8208. ee.WriteMapStart(len(v))
  8209. if e.h.Canonical {
  8210. v2 := make([]uint64, len(v))
  8211. var i uint
  8212. for k := range v {
  8213. v2[i] = uint64(k)
  8214. i++
  8215. }
  8216. sort.Sort(uintSlice(v2))
  8217. if esep {
  8218. for _, k2 := range v2 {
  8219. ee.WriteMapElemKey()
  8220. ee.EncodeUint(uint64(uint32(k2)))
  8221. ee.WriteMapElemValue()
  8222. ee.EncodeInt(int64(v[uint32(k2)]))
  8223. }
  8224. } else {
  8225. for _, k2 := range v2 {
  8226. ee.EncodeUint(uint64(uint32(k2)))
  8227. ee.EncodeInt(int64(v[uint32(k2)]))
  8228. }
  8229. }
  8230. } else {
  8231. if esep {
  8232. for k2, v2 := range v {
  8233. ee.WriteMapElemKey()
  8234. ee.EncodeUint(uint64(k2))
  8235. ee.WriteMapElemValue()
  8236. ee.EncodeInt(int64(v2))
  8237. }
  8238. } else {
  8239. for k2, v2 := range v {
  8240. ee.EncodeUint(uint64(k2))
  8241. ee.EncodeInt(int64(v2))
  8242. }
  8243. }
  8244. }
  8245. ee.WriteMapEnd()
  8246. }
  8247. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  8248. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  8249. }
  8250. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  8251. if v == nil {
  8252. e.e.EncodeNil()
  8253. return
  8254. }
  8255. ee, esep := e.e, e.hh.hasElemSeparators()
  8256. ee.WriteMapStart(len(v))
  8257. if e.h.Canonical {
  8258. v2 := make([]uint64, len(v))
  8259. var i uint
  8260. for k := range v {
  8261. v2[i] = uint64(k)
  8262. i++
  8263. }
  8264. sort.Sort(uintSlice(v2))
  8265. if esep {
  8266. for _, k2 := range v2 {
  8267. ee.WriteMapElemKey()
  8268. ee.EncodeUint(uint64(uint32(k2)))
  8269. ee.WriteMapElemValue()
  8270. ee.EncodeInt(int64(v[uint32(k2)]))
  8271. }
  8272. } else {
  8273. for _, k2 := range v2 {
  8274. ee.EncodeUint(uint64(uint32(k2)))
  8275. ee.EncodeInt(int64(v[uint32(k2)]))
  8276. }
  8277. }
  8278. } else {
  8279. if esep {
  8280. for k2, v2 := range v {
  8281. ee.WriteMapElemKey()
  8282. ee.EncodeUint(uint64(k2))
  8283. ee.WriteMapElemValue()
  8284. ee.EncodeInt(int64(v2))
  8285. }
  8286. } else {
  8287. for k2, v2 := range v {
  8288. ee.EncodeUint(uint64(k2))
  8289. ee.EncodeInt(int64(v2))
  8290. }
  8291. }
  8292. }
  8293. ee.WriteMapEnd()
  8294. }
  8295. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  8296. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  8297. }
  8298. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  8299. if v == nil {
  8300. e.e.EncodeNil()
  8301. return
  8302. }
  8303. ee, esep := e.e, e.hh.hasElemSeparators()
  8304. ee.WriteMapStart(len(v))
  8305. if e.h.Canonical {
  8306. v2 := make([]uint64, len(v))
  8307. var i uint
  8308. for k := range v {
  8309. v2[i] = uint64(k)
  8310. i++
  8311. }
  8312. sort.Sort(uintSlice(v2))
  8313. if esep {
  8314. for _, k2 := range v2 {
  8315. ee.WriteMapElemKey()
  8316. ee.EncodeUint(uint64(uint32(k2)))
  8317. ee.WriteMapElemValue()
  8318. ee.EncodeInt(int64(v[uint32(k2)]))
  8319. }
  8320. } else {
  8321. for _, k2 := range v2 {
  8322. ee.EncodeUint(uint64(uint32(k2)))
  8323. ee.EncodeInt(int64(v[uint32(k2)]))
  8324. }
  8325. }
  8326. } else {
  8327. if esep {
  8328. for k2, v2 := range v {
  8329. ee.WriteMapElemKey()
  8330. ee.EncodeUint(uint64(k2))
  8331. ee.WriteMapElemValue()
  8332. ee.EncodeInt(int64(v2))
  8333. }
  8334. } else {
  8335. for k2, v2 := range v {
  8336. ee.EncodeUint(uint64(k2))
  8337. ee.EncodeInt(int64(v2))
  8338. }
  8339. }
  8340. }
  8341. ee.WriteMapEnd()
  8342. }
  8343. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  8344. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  8345. }
  8346. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  8347. if v == nil {
  8348. e.e.EncodeNil()
  8349. return
  8350. }
  8351. ee, esep := e.e, e.hh.hasElemSeparators()
  8352. ee.WriteMapStart(len(v))
  8353. if e.h.Canonical {
  8354. v2 := make([]uint64, len(v))
  8355. var i uint
  8356. for k := range v {
  8357. v2[i] = uint64(k)
  8358. i++
  8359. }
  8360. sort.Sort(uintSlice(v2))
  8361. if esep {
  8362. for _, k2 := range v2 {
  8363. ee.WriteMapElemKey()
  8364. ee.EncodeUint(uint64(uint32(k2)))
  8365. ee.WriteMapElemValue()
  8366. ee.EncodeFloat32(v[uint32(k2)])
  8367. }
  8368. } else {
  8369. for _, k2 := range v2 {
  8370. ee.EncodeUint(uint64(uint32(k2)))
  8371. ee.EncodeFloat32(v[uint32(k2)])
  8372. }
  8373. }
  8374. } else {
  8375. if esep {
  8376. for k2, v2 := range v {
  8377. ee.WriteMapElemKey()
  8378. ee.EncodeUint(uint64(k2))
  8379. ee.WriteMapElemValue()
  8380. ee.EncodeFloat32(v2)
  8381. }
  8382. } else {
  8383. for k2, v2 := range v {
  8384. ee.EncodeUint(uint64(k2))
  8385. ee.EncodeFloat32(v2)
  8386. }
  8387. }
  8388. }
  8389. ee.WriteMapEnd()
  8390. }
  8391. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  8392. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  8393. }
  8394. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  8395. if v == nil {
  8396. e.e.EncodeNil()
  8397. return
  8398. }
  8399. ee, esep := e.e, e.hh.hasElemSeparators()
  8400. ee.WriteMapStart(len(v))
  8401. if e.h.Canonical {
  8402. v2 := make([]uint64, len(v))
  8403. var i uint
  8404. for k := range v {
  8405. v2[i] = uint64(k)
  8406. i++
  8407. }
  8408. sort.Sort(uintSlice(v2))
  8409. if esep {
  8410. for _, k2 := range v2 {
  8411. ee.WriteMapElemKey()
  8412. ee.EncodeUint(uint64(uint32(k2)))
  8413. ee.WriteMapElemValue()
  8414. ee.EncodeFloat64(v[uint32(k2)])
  8415. }
  8416. } else {
  8417. for _, k2 := range v2 {
  8418. ee.EncodeUint(uint64(uint32(k2)))
  8419. ee.EncodeFloat64(v[uint32(k2)])
  8420. }
  8421. }
  8422. } else {
  8423. if esep {
  8424. for k2, v2 := range v {
  8425. ee.WriteMapElemKey()
  8426. ee.EncodeUint(uint64(k2))
  8427. ee.WriteMapElemValue()
  8428. ee.EncodeFloat64(v2)
  8429. }
  8430. } else {
  8431. for k2, v2 := range v {
  8432. ee.EncodeUint(uint64(k2))
  8433. ee.EncodeFloat64(v2)
  8434. }
  8435. }
  8436. }
  8437. ee.WriteMapEnd()
  8438. }
  8439. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  8440. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  8441. }
  8442. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  8443. if v == nil {
  8444. e.e.EncodeNil()
  8445. return
  8446. }
  8447. ee, esep := e.e, e.hh.hasElemSeparators()
  8448. ee.WriteMapStart(len(v))
  8449. if e.h.Canonical {
  8450. v2 := make([]uint64, len(v))
  8451. var i uint
  8452. for k := range v {
  8453. v2[i] = uint64(k)
  8454. i++
  8455. }
  8456. sort.Sort(uintSlice(v2))
  8457. if esep {
  8458. for _, k2 := range v2 {
  8459. ee.WriteMapElemKey()
  8460. ee.EncodeUint(uint64(uint32(k2)))
  8461. ee.WriteMapElemValue()
  8462. ee.EncodeBool(v[uint32(k2)])
  8463. }
  8464. } else {
  8465. for _, k2 := range v2 {
  8466. ee.EncodeUint(uint64(uint32(k2)))
  8467. ee.EncodeBool(v[uint32(k2)])
  8468. }
  8469. }
  8470. } else {
  8471. if esep {
  8472. for k2, v2 := range v {
  8473. ee.WriteMapElemKey()
  8474. ee.EncodeUint(uint64(k2))
  8475. ee.WriteMapElemValue()
  8476. ee.EncodeBool(v2)
  8477. }
  8478. } else {
  8479. for k2, v2 := range v {
  8480. ee.EncodeUint(uint64(k2))
  8481. ee.EncodeBool(v2)
  8482. }
  8483. }
  8484. }
  8485. ee.WriteMapEnd()
  8486. }
  8487. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  8488. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  8489. }
  8490. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  8491. if v == nil {
  8492. e.e.EncodeNil()
  8493. return
  8494. }
  8495. ee, esep := e.e, e.hh.hasElemSeparators()
  8496. ee.WriteMapStart(len(v))
  8497. if e.h.Canonical {
  8498. v2 := make([]uint64, len(v))
  8499. var i uint
  8500. for k := range v {
  8501. v2[i] = uint64(k)
  8502. i++
  8503. }
  8504. sort.Sort(uintSlice(v2))
  8505. if esep {
  8506. for _, k2 := range v2 {
  8507. ee.WriteMapElemKey()
  8508. ee.EncodeUint(uint64(uint64(k2)))
  8509. ee.WriteMapElemValue()
  8510. e.encode(v[uint64(k2)])
  8511. }
  8512. } else {
  8513. for _, k2 := range v2 {
  8514. ee.EncodeUint(uint64(uint64(k2)))
  8515. e.encode(v[uint64(k2)])
  8516. }
  8517. }
  8518. } else {
  8519. if esep {
  8520. for k2, v2 := range v {
  8521. ee.WriteMapElemKey()
  8522. ee.EncodeUint(uint64(k2))
  8523. ee.WriteMapElemValue()
  8524. e.encode(v2)
  8525. }
  8526. } else {
  8527. for k2, v2 := range v {
  8528. ee.EncodeUint(uint64(k2))
  8529. e.encode(v2)
  8530. }
  8531. }
  8532. }
  8533. ee.WriteMapEnd()
  8534. }
  8535. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  8536. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  8537. }
  8538. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  8539. if v == nil {
  8540. e.e.EncodeNil()
  8541. return
  8542. }
  8543. ee, esep := e.e, e.hh.hasElemSeparators()
  8544. ee.WriteMapStart(len(v))
  8545. if e.h.Canonical {
  8546. v2 := make([]uint64, len(v))
  8547. var i uint
  8548. for k := range v {
  8549. v2[i] = uint64(k)
  8550. i++
  8551. }
  8552. sort.Sort(uintSlice(v2))
  8553. if esep {
  8554. for _, k2 := range v2 {
  8555. ee.WriteMapElemKey()
  8556. ee.EncodeUint(uint64(uint64(k2)))
  8557. ee.WriteMapElemValue()
  8558. ee.EncodeStringEnc(cUTF8, v[uint64(k2)])
  8559. }
  8560. } else {
  8561. for _, k2 := range v2 {
  8562. ee.EncodeUint(uint64(uint64(k2)))
  8563. ee.EncodeStringEnc(cUTF8, v[uint64(k2)])
  8564. }
  8565. }
  8566. } else {
  8567. if esep {
  8568. for k2, v2 := range v {
  8569. ee.WriteMapElemKey()
  8570. ee.EncodeUint(uint64(k2))
  8571. ee.WriteMapElemValue()
  8572. ee.EncodeStringEnc(cUTF8, v2)
  8573. }
  8574. } else {
  8575. for k2, v2 := range v {
  8576. ee.EncodeUint(uint64(k2))
  8577. ee.EncodeStringEnc(cUTF8, v2)
  8578. }
  8579. }
  8580. }
  8581. ee.WriteMapEnd()
  8582. }
  8583. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  8584. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  8585. }
  8586. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  8587. if v == nil {
  8588. e.e.EncodeNil()
  8589. return
  8590. }
  8591. ee, esep := e.e, e.hh.hasElemSeparators()
  8592. ee.WriteMapStart(len(v))
  8593. if e.h.Canonical {
  8594. v2 := make([]uint64, len(v))
  8595. var i uint
  8596. for k := range v {
  8597. v2[i] = uint64(k)
  8598. i++
  8599. }
  8600. sort.Sort(uintSlice(v2))
  8601. if esep {
  8602. for _, k2 := range v2 {
  8603. ee.WriteMapElemKey()
  8604. ee.EncodeUint(uint64(uint64(k2)))
  8605. ee.WriteMapElemValue()
  8606. ee.EncodeUint(uint64(v[uint64(k2)]))
  8607. }
  8608. } else {
  8609. for _, k2 := range v2 {
  8610. ee.EncodeUint(uint64(uint64(k2)))
  8611. ee.EncodeUint(uint64(v[uint64(k2)]))
  8612. }
  8613. }
  8614. } else {
  8615. if esep {
  8616. for k2, v2 := range v {
  8617. ee.WriteMapElemKey()
  8618. ee.EncodeUint(uint64(k2))
  8619. ee.WriteMapElemValue()
  8620. ee.EncodeUint(uint64(v2))
  8621. }
  8622. } else {
  8623. for k2, v2 := range v {
  8624. ee.EncodeUint(uint64(k2))
  8625. ee.EncodeUint(uint64(v2))
  8626. }
  8627. }
  8628. }
  8629. ee.WriteMapEnd()
  8630. }
  8631. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  8632. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  8633. }
  8634. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  8635. if v == nil {
  8636. e.e.EncodeNil()
  8637. return
  8638. }
  8639. ee, esep := e.e, e.hh.hasElemSeparators()
  8640. ee.WriteMapStart(len(v))
  8641. if e.h.Canonical {
  8642. v2 := make([]uint64, len(v))
  8643. var i uint
  8644. for k := range v {
  8645. v2[i] = uint64(k)
  8646. i++
  8647. }
  8648. sort.Sort(uintSlice(v2))
  8649. if esep {
  8650. for _, k2 := range v2 {
  8651. ee.WriteMapElemKey()
  8652. ee.EncodeUint(uint64(uint64(k2)))
  8653. ee.WriteMapElemValue()
  8654. ee.EncodeUint(uint64(v[uint64(k2)]))
  8655. }
  8656. } else {
  8657. for _, k2 := range v2 {
  8658. ee.EncodeUint(uint64(uint64(k2)))
  8659. ee.EncodeUint(uint64(v[uint64(k2)]))
  8660. }
  8661. }
  8662. } else {
  8663. if esep {
  8664. for k2, v2 := range v {
  8665. ee.WriteMapElemKey()
  8666. ee.EncodeUint(uint64(k2))
  8667. ee.WriteMapElemValue()
  8668. ee.EncodeUint(uint64(v2))
  8669. }
  8670. } else {
  8671. for k2, v2 := range v {
  8672. ee.EncodeUint(uint64(k2))
  8673. ee.EncodeUint(uint64(v2))
  8674. }
  8675. }
  8676. }
  8677. ee.WriteMapEnd()
  8678. }
  8679. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  8680. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  8681. }
  8682. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  8683. if v == nil {
  8684. e.e.EncodeNil()
  8685. return
  8686. }
  8687. ee, esep := e.e, e.hh.hasElemSeparators()
  8688. ee.WriteMapStart(len(v))
  8689. if e.h.Canonical {
  8690. v2 := make([]uint64, len(v))
  8691. var i uint
  8692. for k := range v {
  8693. v2[i] = uint64(k)
  8694. i++
  8695. }
  8696. sort.Sort(uintSlice(v2))
  8697. if esep {
  8698. for _, k2 := range v2 {
  8699. ee.WriteMapElemKey()
  8700. ee.EncodeUint(uint64(uint64(k2)))
  8701. ee.WriteMapElemValue()
  8702. ee.EncodeUint(uint64(v[uint64(k2)]))
  8703. }
  8704. } else {
  8705. for _, k2 := range v2 {
  8706. ee.EncodeUint(uint64(uint64(k2)))
  8707. ee.EncodeUint(uint64(v[uint64(k2)]))
  8708. }
  8709. }
  8710. } else {
  8711. if esep {
  8712. for k2, v2 := range v {
  8713. ee.WriteMapElemKey()
  8714. ee.EncodeUint(uint64(k2))
  8715. ee.WriteMapElemValue()
  8716. ee.EncodeUint(uint64(v2))
  8717. }
  8718. } else {
  8719. for k2, v2 := range v {
  8720. ee.EncodeUint(uint64(k2))
  8721. ee.EncodeUint(uint64(v2))
  8722. }
  8723. }
  8724. }
  8725. ee.WriteMapEnd()
  8726. }
  8727. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  8728. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  8729. }
  8730. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  8731. if v == nil {
  8732. e.e.EncodeNil()
  8733. return
  8734. }
  8735. ee, esep := e.e, e.hh.hasElemSeparators()
  8736. ee.WriteMapStart(len(v))
  8737. if e.h.Canonical {
  8738. v2 := make([]uint64, len(v))
  8739. var i uint
  8740. for k := range v {
  8741. v2[i] = uint64(k)
  8742. i++
  8743. }
  8744. sort.Sort(uintSlice(v2))
  8745. if esep {
  8746. for _, k2 := range v2 {
  8747. ee.WriteMapElemKey()
  8748. ee.EncodeUint(uint64(uint64(k2)))
  8749. ee.WriteMapElemValue()
  8750. ee.EncodeUint(uint64(v[uint64(k2)]))
  8751. }
  8752. } else {
  8753. for _, k2 := range v2 {
  8754. ee.EncodeUint(uint64(uint64(k2)))
  8755. ee.EncodeUint(uint64(v[uint64(k2)]))
  8756. }
  8757. }
  8758. } else {
  8759. if esep {
  8760. for k2, v2 := range v {
  8761. ee.WriteMapElemKey()
  8762. ee.EncodeUint(uint64(k2))
  8763. ee.WriteMapElemValue()
  8764. ee.EncodeUint(uint64(v2))
  8765. }
  8766. } else {
  8767. for k2, v2 := range v {
  8768. ee.EncodeUint(uint64(k2))
  8769. ee.EncodeUint(uint64(v2))
  8770. }
  8771. }
  8772. }
  8773. ee.WriteMapEnd()
  8774. }
  8775. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  8776. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  8777. }
  8778. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  8779. if v == nil {
  8780. e.e.EncodeNil()
  8781. return
  8782. }
  8783. ee, esep := e.e, e.hh.hasElemSeparators()
  8784. ee.WriteMapStart(len(v))
  8785. if e.h.Canonical {
  8786. v2 := make([]uint64, len(v))
  8787. var i uint
  8788. for k := range v {
  8789. v2[i] = uint64(k)
  8790. i++
  8791. }
  8792. sort.Sort(uintSlice(v2))
  8793. if esep {
  8794. for _, k2 := range v2 {
  8795. ee.WriteMapElemKey()
  8796. ee.EncodeUint(uint64(uint64(k2)))
  8797. ee.WriteMapElemValue()
  8798. ee.EncodeUint(uint64(v[uint64(k2)]))
  8799. }
  8800. } else {
  8801. for _, k2 := range v2 {
  8802. ee.EncodeUint(uint64(uint64(k2)))
  8803. ee.EncodeUint(uint64(v[uint64(k2)]))
  8804. }
  8805. }
  8806. } else {
  8807. if esep {
  8808. for k2, v2 := range v {
  8809. ee.WriteMapElemKey()
  8810. ee.EncodeUint(uint64(k2))
  8811. ee.WriteMapElemValue()
  8812. ee.EncodeUint(uint64(v2))
  8813. }
  8814. } else {
  8815. for k2, v2 := range v {
  8816. ee.EncodeUint(uint64(k2))
  8817. ee.EncodeUint(uint64(v2))
  8818. }
  8819. }
  8820. }
  8821. ee.WriteMapEnd()
  8822. }
  8823. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  8824. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  8825. }
  8826. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  8827. if v == nil {
  8828. e.e.EncodeNil()
  8829. return
  8830. }
  8831. ee, esep := e.e, e.hh.hasElemSeparators()
  8832. ee.WriteMapStart(len(v))
  8833. if e.h.Canonical {
  8834. v2 := make([]uint64, len(v))
  8835. var i uint
  8836. for k := range v {
  8837. v2[i] = uint64(k)
  8838. i++
  8839. }
  8840. sort.Sort(uintSlice(v2))
  8841. if esep {
  8842. for _, k2 := range v2 {
  8843. ee.WriteMapElemKey()
  8844. ee.EncodeUint(uint64(uint64(k2)))
  8845. ee.WriteMapElemValue()
  8846. e.encode(v[uint64(k2)])
  8847. }
  8848. } else {
  8849. for _, k2 := range v2 {
  8850. ee.EncodeUint(uint64(uint64(k2)))
  8851. e.encode(v[uint64(k2)])
  8852. }
  8853. }
  8854. } else {
  8855. if esep {
  8856. for k2, v2 := range v {
  8857. ee.WriteMapElemKey()
  8858. ee.EncodeUint(uint64(k2))
  8859. ee.WriteMapElemValue()
  8860. e.encode(v2)
  8861. }
  8862. } else {
  8863. for k2, v2 := range v {
  8864. ee.EncodeUint(uint64(k2))
  8865. e.encode(v2)
  8866. }
  8867. }
  8868. }
  8869. ee.WriteMapEnd()
  8870. }
  8871. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8872. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8873. }
  8874. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8875. if v == nil {
  8876. e.e.EncodeNil()
  8877. return
  8878. }
  8879. ee, esep := e.e, e.hh.hasElemSeparators()
  8880. ee.WriteMapStart(len(v))
  8881. if e.h.Canonical {
  8882. v2 := make([]uint64, len(v))
  8883. var i uint
  8884. for k := range v {
  8885. v2[i] = uint64(k)
  8886. i++
  8887. }
  8888. sort.Sort(uintSlice(v2))
  8889. if esep {
  8890. for _, k2 := range v2 {
  8891. ee.WriteMapElemKey()
  8892. ee.EncodeUint(uint64(uint64(k2)))
  8893. ee.WriteMapElemValue()
  8894. ee.EncodeInt(int64(v[uint64(k2)]))
  8895. }
  8896. } else {
  8897. for _, k2 := range v2 {
  8898. ee.EncodeUint(uint64(uint64(k2)))
  8899. ee.EncodeInt(int64(v[uint64(k2)]))
  8900. }
  8901. }
  8902. } else {
  8903. if esep {
  8904. for k2, v2 := range v {
  8905. ee.WriteMapElemKey()
  8906. ee.EncodeUint(uint64(k2))
  8907. ee.WriteMapElemValue()
  8908. ee.EncodeInt(int64(v2))
  8909. }
  8910. } else {
  8911. for k2, v2 := range v {
  8912. ee.EncodeUint(uint64(k2))
  8913. ee.EncodeInt(int64(v2))
  8914. }
  8915. }
  8916. }
  8917. ee.WriteMapEnd()
  8918. }
  8919. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8920. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8921. }
  8922. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8923. if v == nil {
  8924. e.e.EncodeNil()
  8925. return
  8926. }
  8927. ee, esep := e.e, e.hh.hasElemSeparators()
  8928. ee.WriteMapStart(len(v))
  8929. if e.h.Canonical {
  8930. v2 := make([]uint64, len(v))
  8931. var i uint
  8932. for k := range v {
  8933. v2[i] = uint64(k)
  8934. i++
  8935. }
  8936. sort.Sort(uintSlice(v2))
  8937. if esep {
  8938. for _, k2 := range v2 {
  8939. ee.WriteMapElemKey()
  8940. ee.EncodeUint(uint64(uint64(k2)))
  8941. ee.WriteMapElemValue()
  8942. ee.EncodeInt(int64(v[uint64(k2)]))
  8943. }
  8944. } else {
  8945. for _, k2 := range v2 {
  8946. ee.EncodeUint(uint64(uint64(k2)))
  8947. ee.EncodeInt(int64(v[uint64(k2)]))
  8948. }
  8949. }
  8950. } else {
  8951. if esep {
  8952. for k2, v2 := range v {
  8953. ee.WriteMapElemKey()
  8954. ee.EncodeUint(uint64(k2))
  8955. ee.WriteMapElemValue()
  8956. ee.EncodeInt(int64(v2))
  8957. }
  8958. } else {
  8959. for k2, v2 := range v {
  8960. ee.EncodeUint(uint64(k2))
  8961. ee.EncodeInt(int64(v2))
  8962. }
  8963. }
  8964. }
  8965. ee.WriteMapEnd()
  8966. }
  8967. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8968. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8969. }
  8970. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8971. if v == nil {
  8972. e.e.EncodeNil()
  8973. return
  8974. }
  8975. ee, esep := e.e, e.hh.hasElemSeparators()
  8976. ee.WriteMapStart(len(v))
  8977. if e.h.Canonical {
  8978. v2 := make([]uint64, len(v))
  8979. var i uint
  8980. for k := range v {
  8981. v2[i] = uint64(k)
  8982. i++
  8983. }
  8984. sort.Sort(uintSlice(v2))
  8985. if esep {
  8986. for _, k2 := range v2 {
  8987. ee.WriteMapElemKey()
  8988. ee.EncodeUint(uint64(uint64(k2)))
  8989. ee.WriteMapElemValue()
  8990. ee.EncodeInt(int64(v[uint64(k2)]))
  8991. }
  8992. } else {
  8993. for _, k2 := range v2 {
  8994. ee.EncodeUint(uint64(uint64(k2)))
  8995. ee.EncodeInt(int64(v[uint64(k2)]))
  8996. }
  8997. }
  8998. } else {
  8999. if esep {
  9000. for k2, v2 := range v {
  9001. ee.WriteMapElemKey()
  9002. ee.EncodeUint(uint64(k2))
  9003. ee.WriteMapElemValue()
  9004. ee.EncodeInt(int64(v2))
  9005. }
  9006. } else {
  9007. for k2, v2 := range v {
  9008. ee.EncodeUint(uint64(k2))
  9009. ee.EncodeInt(int64(v2))
  9010. }
  9011. }
  9012. }
  9013. ee.WriteMapEnd()
  9014. }
  9015. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  9016. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  9017. }
  9018. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  9019. if v == nil {
  9020. e.e.EncodeNil()
  9021. return
  9022. }
  9023. ee, esep := e.e, e.hh.hasElemSeparators()
  9024. ee.WriteMapStart(len(v))
  9025. if e.h.Canonical {
  9026. v2 := make([]uint64, len(v))
  9027. var i uint
  9028. for k := range v {
  9029. v2[i] = uint64(k)
  9030. i++
  9031. }
  9032. sort.Sort(uintSlice(v2))
  9033. if esep {
  9034. for _, k2 := range v2 {
  9035. ee.WriteMapElemKey()
  9036. ee.EncodeUint(uint64(uint64(k2)))
  9037. ee.WriteMapElemValue()
  9038. ee.EncodeInt(int64(v[uint64(k2)]))
  9039. }
  9040. } else {
  9041. for _, k2 := range v2 {
  9042. ee.EncodeUint(uint64(uint64(k2)))
  9043. ee.EncodeInt(int64(v[uint64(k2)]))
  9044. }
  9045. }
  9046. } else {
  9047. if esep {
  9048. for k2, v2 := range v {
  9049. ee.WriteMapElemKey()
  9050. ee.EncodeUint(uint64(k2))
  9051. ee.WriteMapElemValue()
  9052. ee.EncodeInt(int64(v2))
  9053. }
  9054. } else {
  9055. for k2, v2 := range v {
  9056. ee.EncodeUint(uint64(k2))
  9057. ee.EncodeInt(int64(v2))
  9058. }
  9059. }
  9060. }
  9061. ee.WriteMapEnd()
  9062. }
  9063. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  9064. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  9065. }
  9066. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  9067. if v == nil {
  9068. e.e.EncodeNil()
  9069. return
  9070. }
  9071. ee, esep := e.e, e.hh.hasElemSeparators()
  9072. ee.WriteMapStart(len(v))
  9073. if e.h.Canonical {
  9074. v2 := make([]uint64, len(v))
  9075. var i uint
  9076. for k := range v {
  9077. v2[i] = uint64(k)
  9078. i++
  9079. }
  9080. sort.Sort(uintSlice(v2))
  9081. if esep {
  9082. for _, k2 := range v2 {
  9083. ee.WriteMapElemKey()
  9084. ee.EncodeUint(uint64(uint64(k2)))
  9085. ee.WriteMapElemValue()
  9086. ee.EncodeInt(int64(v[uint64(k2)]))
  9087. }
  9088. } else {
  9089. for _, k2 := range v2 {
  9090. ee.EncodeUint(uint64(uint64(k2)))
  9091. ee.EncodeInt(int64(v[uint64(k2)]))
  9092. }
  9093. }
  9094. } else {
  9095. if esep {
  9096. for k2, v2 := range v {
  9097. ee.WriteMapElemKey()
  9098. ee.EncodeUint(uint64(k2))
  9099. ee.WriteMapElemValue()
  9100. ee.EncodeInt(int64(v2))
  9101. }
  9102. } else {
  9103. for k2, v2 := range v {
  9104. ee.EncodeUint(uint64(k2))
  9105. ee.EncodeInt(int64(v2))
  9106. }
  9107. }
  9108. }
  9109. ee.WriteMapEnd()
  9110. }
  9111. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  9112. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  9113. }
  9114. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  9115. if v == nil {
  9116. e.e.EncodeNil()
  9117. return
  9118. }
  9119. ee, esep := e.e, e.hh.hasElemSeparators()
  9120. ee.WriteMapStart(len(v))
  9121. if e.h.Canonical {
  9122. v2 := make([]uint64, len(v))
  9123. var i uint
  9124. for k := range v {
  9125. v2[i] = uint64(k)
  9126. i++
  9127. }
  9128. sort.Sort(uintSlice(v2))
  9129. if esep {
  9130. for _, k2 := range v2 {
  9131. ee.WriteMapElemKey()
  9132. ee.EncodeUint(uint64(uint64(k2)))
  9133. ee.WriteMapElemValue()
  9134. ee.EncodeFloat32(v[uint64(k2)])
  9135. }
  9136. } else {
  9137. for _, k2 := range v2 {
  9138. ee.EncodeUint(uint64(uint64(k2)))
  9139. ee.EncodeFloat32(v[uint64(k2)])
  9140. }
  9141. }
  9142. } else {
  9143. if esep {
  9144. for k2, v2 := range v {
  9145. ee.WriteMapElemKey()
  9146. ee.EncodeUint(uint64(k2))
  9147. ee.WriteMapElemValue()
  9148. ee.EncodeFloat32(v2)
  9149. }
  9150. } else {
  9151. for k2, v2 := range v {
  9152. ee.EncodeUint(uint64(k2))
  9153. ee.EncodeFloat32(v2)
  9154. }
  9155. }
  9156. }
  9157. ee.WriteMapEnd()
  9158. }
  9159. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  9160. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  9161. }
  9162. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  9163. if v == nil {
  9164. e.e.EncodeNil()
  9165. return
  9166. }
  9167. ee, esep := e.e, e.hh.hasElemSeparators()
  9168. ee.WriteMapStart(len(v))
  9169. if e.h.Canonical {
  9170. v2 := make([]uint64, len(v))
  9171. var i uint
  9172. for k := range v {
  9173. v2[i] = uint64(k)
  9174. i++
  9175. }
  9176. sort.Sort(uintSlice(v2))
  9177. if esep {
  9178. for _, k2 := range v2 {
  9179. ee.WriteMapElemKey()
  9180. ee.EncodeUint(uint64(uint64(k2)))
  9181. ee.WriteMapElemValue()
  9182. ee.EncodeFloat64(v[uint64(k2)])
  9183. }
  9184. } else {
  9185. for _, k2 := range v2 {
  9186. ee.EncodeUint(uint64(uint64(k2)))
  9187. ee.EncodeFloat64(v[uint64(k2)])
  9188. }
  9189. }
  9190. } else {
  9191. if esep {
  9192. for k2, v2 := range v {
  9193. ee.WriteMapElemKey()
  9194. ee.EncodeUint(uint64(k2))
  9195. ee.WriteMapElemValue()
  9196. ee.EncodeFloat64(v2)
  9197. }
  9198. } else {
  9199. for k2, v2 := range v {
  9200. ee.EncodeUint(uint64(k2))
  9201. ee.EncodeFloat64(v2)
  9202. }
  9203. }
  9204. }
  9205. ee.WriteMapEnd()
  9206. }
  9207. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  9208. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  9209. }
  9210. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  9211. if v == nil {
  9212. e.e.EncodeNil()
  9213. return
  9214. }
  9215. ee, esep := e.e, e.hh.hasElemSeparators()
  9216. ee.WriteMapStart(len(v))
  9217. if e.h.Canonical {
  9218. v2 := make([]uint64, len(v))
  9219. var i uint
  9220. for k := range v {
  9221. v2[i] = uint64(k)
  9222. i++
  9223. }
  9224. sort.Sort(uintSlice(v2))
  9225. if esep {
  9226. for _, k2 := range v2 {
  9227. ee.WriteMapElemKey()
  9228. ee.EncodeUint(uint64(uint64(k2)))
  9229. ee.WriteMapElemValue()
  9230. ee.EncodeBool(v[uint64(k2)])
  9231. }
  9232. } else {
  9233. for _, k2 := range v2 {
  9234. ee.EncodeUint(uint64(uint64(k2)))
  9235. ee.EncodeBool(v[uint64(k2)])
  9236. }
  9237. }
  9238. } else {
  9239. if esep {
  9240. for k2, v2 := range v {
  9241. ee.WriteMapElemKey()
  9242. ee.EncodeUint(uint64(k2))
  9243. ee.WriteMapElemValue()
  9244. ee.EncodeBool(v2)
  9245. }
  9246. } else {
  9247. for k2, v2 := range v {
  9248. ee.EncodeUint(uint64(k2))
  9249. ee.EncodeBool(v2)
  9250. }
  9251. }
  9252. }
  9253. ee.WriteMapEnd()
  9254. }
  9255. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  9256. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  9257. }
  9258. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  9259. if v == nil {
  9260. e.e.EncodeNil()
  9261. return
  9262. }
  9263. ee, esep := e.e, e.hh.hasElemSeparators()
  9264. ee.WriteMapStart(len(v))
  9265. if e.h.Canonical {
  9266. v2 := make([]uint64, len(v))
  9267. var i uint
  9268. for k := range v {
  9269. v2[i] = uint64(k)
  9270. i++
  9271. }
  9272. sort.Sort(uintSlice(v2))
  9273. if esep {
  9274. for _, k2 := range v2 {
  9275. ee.WriteMapElemKey()
  9276. e.encode(uintptr(k2))
  9277. ee.WriteMapElemValue()
  9278. e.encode(v[uintptr(k2)])
  9279. }
  9280. } else {
  9281. for _, k2 := range v2 {
  9282. e.encode(uintptr(k2))
  9283. e.encode(v[uintptr(k2)])
  9284. }
  9285. }
  9286. } else {
  9287. if esep {
  9288. for k2, v2 := range v {
  9289. ee.WriteMapElemKey()
  9290. e.encode(k2)
  9291. ee.WriteMapElemValue()
  9292. e.encode(v2)
  9293. }
  9294. } else {
  9295. for k2, v2 := range v {
  9296. e.encode(k2)
  9297. e.encode(v2)
  9298. }
  9299. }
  9300. }
  9301. ee.WriteMapEnd()
  9302. }
  9303. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  9304. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  9305. }
  9306. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  9307. if v == nil {
  9308. e.e.EncodeNil()
  9309. return
  9310. }
  9311. ee, esep := e.e, e.hh.hasElemSeparators()
  9312. ee.WriteMapStart(len(v))
  9313. if e.h.Canonical {
  9314. v2 := make([]uint64, len(v))
  9315. var i uint
  9316. for k := range v {
  9317. v2[i] = uint64(k)
  9318. i++
  9319. }
  9320. sort.Sort(uintSlice(v2))
  9321. if esep {
  9322. for _, k2 := range v2 {
  9323. ee.WriteMapElemKey()
  9324. e.encode(uintptr(k2))
  9325. ee.WriteMapElemValue()
  9326. ee.EncodeStringEnc(cUTF8, v[uintptr(k2)])
  9327. }
  9328. } else {
  9329. for _, k2 := range v2 {
  9330. e.encode(uintptr(k2))
  9331. ee.EncodeStringEnc(cUTF8, v[uintptr(k2)])
  9332. }
  9333. }
  9334. } else {
  9335. if esep {
  9336. for k2, v2 := range v {
  9337. ee.WriteMapElemKey()
  9338. e.encode(k2)
  9339. ee.WriteMapElemValue()
  9340. ee.EncodeStringEnc(cUTF8, v2)
  9341. }
  9342. } else {
  9343. for k2, v2 := range v {
  9344. e.encode(k2)
  9345. ee.EncodeStringEnc(cUTF8, v2)
  9346. }
  9347. }
  9348. }
  9349. ee.WriteMapEnd()
  9350. }
  9351. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  9352. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  9353. }
  9354. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  9355. if v == nil {
  9356. e.e.EncodeNil()
  9357. return
  9358. }
  9359. ee, esep := e.e, e.hh.hasElemSeparators()
  9360. ee.WriteMapStart(len(v))
  9361. if e.h.Canonical {
  9362. v2 := make([]uint64, len(v))
  9363. var i uint
  9364. for k := range v {
  9365. v2[i] = uint64(k)
  9366. i++
  9367. }
  9368. sort.Sort(uintSlice(v2))
  9369. if esep {
  9370. for _, k2 := range v2 {
  9371. ee.WriteMapElemKey()
  9372. e.encode(uintptr(k2))
  9373. ee.WriteMapElemValue()
  9374. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9375. }
  9376. } else {
  9377. for _, k2 := range v2 {
  9378. e.encode(uintptr(k2))
  9379. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9380. }
  9381. }
  9382. } else {
  9383. if esep {
  9384. for k2, v2 := range v {
  9385. ee.WriteMapElemKey()
  9386. e.encode(k2)
  9387. ee.WriteMapElemValue()
  9388. ee.EncodeUint(uint64(v2))
  9389. }
  9390. } else {
  9391. for k2, v2 := range v {
  9392. e.encode(k2)
  9393. ee.EncodeUint(uint64(v2))
  9394. }
  9395. }
  9396. }
  9397. ee.WriteMapEnd()
  9398. }
  9399. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  9400. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  9401. }
  9402. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  9403. if v == nil {
  9404. e.e.EncodeNil()
  9405. return
  9406. }
  9407. ee, esep := e.e, e.hh.hasElemSeparators()
  9408. ee.WriteMapStart(len(v))
  9409. if e.h.Canonical {
  9410. v2 := make([]uint64, len(v))
  9411. var i uint
  9412. for k := range v {
  9413. v2[i] = uint64(k)
  9414. i++
  9415. }
  9416. sort.Sort(uintSlice(v2))
  9417. if esep {
  9418. for _, k2 := range v2 {
  9419. ee.WriteMapElemKey()
  9420. e.encode(uintptr(k2))
  9421. ee.WriteMapElemValue()
  9422. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9423. }
  9424. } else {
  9425. for _, k2 := range v2 {
  9426. e.encode(uintptr(k2))
  9427. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9428. }
  9429. }
  9430. } else {
  9431. if esep {
  9432. for k2, v2 := range v {
  9433. ee.WriteMapElemKey()
  9434. e.encode(k2)
  9435. ee.WriteMapElemValue()
  9436. ee.EncodeUint(uint64(v2))
  9437. }
  9438. } else {
  9439. for k2, v2 := range v {
  9440. e.encode(k2)
  9441. ee.EncodeUint(uint64(v2))
  9442. }
  9443. }
  9444. }
  9445. ee.WriteMapEnd()
  9446. }
  9447. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  9448. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  9449. }
  9450. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  9451. if v == nil {
  9452. e.e.EncodeNil()
  9453. return
  9454. }
  9455. ee, esep := e.e, e.hh.hasElemSeparators()
  9456. ee.WriteMapStart(len(v))
  9457. if e.h.Canonical {
  9458. v2 := make([]uint64, len(v))
  9459. var i uint
  9460. for k := range v {
  9461. v2[i] = uint64(k)
  9462. i++
  9463. }
  9464. sort.Sort(uintSlice(v2))
  9465. if esep {
  9466. for _, k2 := range v2 {
  9467. ee.WriteMapElemKey()
  9468. e.encode(uintptr(k2))
  9469. ee.WriteMapElemValue()
  9470. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9471. }
  9472. } else {
  9473. for _, k2 := range v2 {
  9474. e.encode(uintptr(k2))
  9475. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9476. }
  9477. }
  9478. } else {
  9479. if esep {
  9480. for k2, v2 := range v {
  9481. ee.WriteMapElemKey()
  9482. e.encode(k2)
  9483. ee.WriteMapElemValue()
  9484. ee.EncodeUint(uint64(v2))
  9485. }
  9486. } else {
  9487. for k2, v2 := range v {
  9488. e.encode(k2)
  9489. ee.EncodeUint(uint64(v2))
  9490. }
  9491. }
  9492. }
  9493. ee.WriteMapEnd()
  9494. }
  9495. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  9496. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  9497. }
  9498. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  9499. if v == nil {
  9500. e.e.EncodeNil()
  9501. return
  9502. }
  9503. ee, esep := e.e, e.hh.hasElemSeparators()
  9504. ee.WriteMapStart(len(v))
  9505. if e.h.Canonical {
  9506. v2 := make([]uint64, len(v))
  9507. var i uint
  9508. for k := range v {
  9509. v2[i] = uint64(k)
  9510. i++
  9511. }
  9512. sort.Sort(uintSlice(v2))
  9513. if esep {
  9514. for _, k2 := range v2 {
  9515. ee.WriteMapElemKey()
  9516. e.encode(uintptr(k2))
  9517. ee.WriteMapElemValue()
  9518. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9519. }
  9520. } else {
  9521. for _, k2 := range v2 {
  9522. e.encode(uintptr(k2))
  9523. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9524. }
  9525. }
  9526. } else {
  9527. if esep {
  9528. for k2, v2 := range v {
  9529. ee.WriteMapElemKey()
  9530. e.encode(k2)
  9531. ee.WriteMapElemValue()
  9532. ee.EncodeUint(uint64(v2))
  9533. }
  9534. } else {
  9535. for k2, v2 := range v {
  9536. e.encode(k2)
  9537. ee.EncodeUint(uint64(v2))
  9538. }
  9539. }
  9540. }
  9541. ee.WriteMapEnd()
  9542. }
  9543. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  9544. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  9545. }
  9546. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  9547. if v == nil {
  9548. e.e.EncodeNil()
  9549. return
  9550. }
  9551. ee, esep := e.e, e.hh.hasElemSeparators()
  9552. ee.WriteMapStart(len(v))
  9553. if e.h.Canonical {
  9554. v2 := make([]uint64, len(v))
  9555. var i uint
  9556. for k := range v {
  9557. v2[i] = uint64(k)
  9558. i++
  9559. }
  9560. sort.Sort(uintSlice(v2))
  9561. if esep {
  9562. for _, k2 := range v2 {
  9563. ee.WriteMapElemKey()
  9564. e.encode(uintptr(k2))
  9565. ee.WriteMapElemValue()
  9566. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9567. }
  9568. } else {
  9569. for _, k2 := range v2 {
  9570. e.encode(uintptr(k2))
  9571. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9572. }
  9573. }
  9574. } else {
  9575. if esep {
  9576. for k2, v2 := range v {
  9577. ee.WriteMapElemKey()
  9578. e.encode(k2)
  9579. ee.WriteMapElemValue()
  9580. ee.EncodeUint(uint64(v2))
  9581. }
  9582. } else {
  9583. for k2, v2 := range v {
  9584. e.encode(k2)
  9585. ee.EncodeUint(uint64(v2))
  9586. }
  9587. }
  9588. }
  9589. ee.WriteMapEnd()
  9590. }
  9591. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  9592. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  9593. }
  9594. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  9595. if v == nil {
  9596. e.e.EncodeNil()
  9597. return
  9598. }
  9599. ee, esep := e.e, e.hh.hasElemSeparators()
  9600. ee.WriteMapStart(len(v))
  9601. if e.h.Canonical {
  9602. v2 := make([]uint64, len(v))
  9603. var i uint
  9604. for k := range v {
  9605. v2[i] = uint64(k)
  9606. i++
  9607. }
  9608. sort.Sort(uintSlice(v2))
  9609. if esep {
  9610. for _, k2 := range v2 {
  9611. ee.WriteMapElemKey()
  9612. e.encode(uintptr(k2))
  9613. ee.WriteMapElemValue()
  9614. e.encode(v[uintptr(k2)])
  9615. }
  9616. } else {
  9617. for _, k2 := range v2 {
  9618. e.encode(uintptr(k2))
  9619. e.encode(v[uintptr(k2)])
  9620. }
  9621. }
  9622. } else {
  9623. if esep {
  9624. for k2, v2 := range v {
  9625. ee.WriteMapElemKey()
  9626. e.encode(k2)
  9627. ee.WriteMapElemValue()
  9628. e.encode(v2)
  9629. }
  9630. } else {
  9631. for k2, v2 := range v {
  9632. e.encode(k2)
  9633. e.encode(v2)
  9634. }
  9635. }
  9636. }
  9637. ee.WriteMapEnd()
  9638. }
  9639. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  9640. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  9641. }
  9642. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  9643. if v == nil {
  9644. e.e.EncodeNil()
  9645. return
  9646. }
  9647. ee, esep := e.e, e.hh.hasElemSeparators()
  9648. ee.WriteMapStart(len(v))
  9649. if e.h.Canonical {
  9650. v2 := make([]uint64, len(v))
  9651. var i uint
  9652. for k := range v {
  9653. v2[i] = uint64(k)
  9654. i++
  9655. }
  9656. sort.Sort(uintSlice(v2))
  9657. if esep {
  9658. for _, k2 := range v2 {
  9659. ee.WriteMapElemKey()
  9660. e.encode(uintptr(k2))
  9661. ee.WriteMapElemValue()
  9662. ee.EncodeInt(int64(v[uintptr(k2)]))
  9663. }
  9664. } else {
  9665. for _, k2 := range v2 {
  9666. e.encode(uintptr(k2))
  9667. ee.EncodeInt(int64(v[uintptr(k2)]))
  9668. }
  9669. }
  9670. } else {
  9671. if esep {
  9672. for k2, v2 := range v {
  9673. ee.WriteMapElemKey()
  9674. e.encode(k2)
  9675. ee.WriteMapElemValue()
  9676. ee.EncodeInt(int64(v2))
  9677. }
  9678. } else {
  9679. for k2, v2 := range v {
  9680. e.encode(k2)
  9681. ee.EncodeInt(int64(v2))
  9682. }
  9683. }
  9684. }
  9685. ee.WriteMapEnd()
  9686. }
  9687. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  9688. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  9689. }
  9690. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  9691. if v == nil {
  9692. e.e.EncodeNil()
  9693. return
  9694. }
  9695. ee, esep := e.e, e.hh.hasElemSeparators()
  9696. ee.WriteMapStart(len(v))
  9697. if e.h.Canonical {
  9698. v2 := make([]uint64, len(v))
  9699. var i uint
  9700. for k := range v {
  9701. v2[i] = uint64(k)
  9702. i++
  9703. }
  9704. sort.Sort(uintSlice(v2))
  9705. if esep {
  9706. for _, k2 := range v2 {
  9707. ee.WriteMapElemKey()
  9708. e.encode(uintptr(k2))
  9709. ee.WriteMapElemValue()
  9710. ee.EncodeInt(int64(v[uintptr(k2)]))
  9711. }
  9712. } else {
  9713. for _, k2 := range v2 {
  9714. e.encode(uintptr(k2))
  9715. ee.EncodeInt(int64(v[uintptr(k2)]))
  9716. }
  9717. }
  9718. } else {
  9719. if esep {
  9720. for k2, v2 := range v {
  9721. ee.WriteMapElemKey()
  9722. e.encode(k2)
  9723. ee.WriteMapElemValue()
  9724. ee.EncodeInt(int64(v2))
  9725. }
  9726. } else {
  9727. for k2, v2 := range v {
  9728. e.encode(k2)
  9729. ee.EncodeInt(int64(v2))
  9730. }
  9731. }
  9732. }
  9733. ee.WriteMapEnd()
  9734. }
  9735. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  9736. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  9737. }
  9738. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  9739. if v == nil {
  9740. e.e.EncodeNil()
  9741. return
  9742. }
  9743. ee, esep := e.e, e.hh.hasElemSeparators()
  9744. ee.WriteMapStart(len(v))
  9745. if e.h.Canonical {
  9746. v2 := make([]uint64, len(v))
  9747. var i uint
  9748. for k := range v {
  9749. v2[i] = uint64(k)
  9750. i++
  9751. }
  9752. sort.Sort(uintSlice(v2))
  9753. if esep {
  9754. for _, k2 := range v2 {
  9755. ee.WriteMapElemKey()
  9756. e.encode(uintptr(k2))
  9757. ee.WriteMapElemValue()
  9758. ee.EncodeInt(int64(v[uintptr(k2)]))
  9759. }
  9760. } else {
  9761. for _, k2 := range v2 {
  9762. e.encode(uintptr(k2))
  9763. ee.EncodeInt(int64(v[uintptr(k2)]))
  9764. }
  9765. }
  9766. } else {
  9767. if esep {
  9768. for k2, v2 := range v {
  9769. ee.WriteMapElemKey()
  9770. e.encode(k2)
  9771. ee.WriteMapElemValue()
  9772. ee.EncodeInt(int64(v2))
  9773. }
  9774. } else {
  9775. for k2, v2 := range v {
  9776. e.encode(k2)
  9777. ee.EncodeInt(int64(v2))
  9778. }
  9779. }
  9780. }
  9781. ee.WriteMapEnd()
  9782. }
  9783. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  9784. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  9785. }
  9786. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  9787. if v == nil {
  9788. e.e.EncodeNil()
  9789. return
  9790. }
  9791. ee, esep := e.e, e.hh.hasElemSeparators()
  9792. ee.WriteMapStart(len(v))
  9793. if e.h.Canonical {
  9794. v2 := make([]uint64, len(v))
  9795. var i uint
  9796. for k := range v {
  9797. v2[i] = uint64(k)
  9798. i++
  9799. }
  9800. sort.Sort(uintSlice(v2))
  9801. if esep {
  9802. for _, k2 := range v2 {
  9803. ee.WriteMapElemKey()
  9804. e.encode(uintptr(k2))
  9805. ee.WriteMapElemValue()
  9806. ee.EncodeInt(int64(v[uintptr(k2)]))
  9807. }
  9808. } else {
  9809. for _, k2 := range v2 {
  9810. e.encode(uintptr(k2))
  9811. ee.EncodeInt(int64(v[uintptr(k2)]))
  9812. }
  9813. }
  9814. } else {
  9815. if esep {
  9816. for k2, v2 := range v {
  9817. ee.WriteMapElemKey()
  9818. e.encode(k2)
  9819. ee.WriteMapElemValue()
  9820. ee.EncodeInt(int64(v2))
  9821. }
  9822. } else {
  9823. for k2, v2 := range v {
  9824. e.encode(k2)
  9825. ee.EncodeInt(int64(v2))
  9826. }
  9827. }
  9828. }
  9829. ee.WriteMapEnd()
  9830. }
  9831. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  9832. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  9833. }
  9834. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  9835. if v == nil {
  9836. e.e.EncodeNil()
  9837. return
  9838. }
  9839. ee, esep := e.e, e.hh.hasElemSeparators()
  9840. ee.WriteMapStart(len(v))
  9841. if e.h.Canonical {
  9842. v2 := make([]uint64, len(v))
  9843. var i uint
  9844. for k := range v {
  9845. v2[i] = uint64(k)
  9846. i++
  9847. }
  9848. sort.Sort(uintSlice(v2))
  9849. if esep {
  9850. for _, k2 := range v2 {
  9851. ee.WriteMapElemKey()
  9852. e.encode(uintptr(k2))
  9853. ee.WriteMapElemValue()
  9854. ee.EncodeInt(int64(v[uintptr(k2)]))
  9855. }
  9856. } else {
  9857. for _, k2 := range v2 {
  9858. e.encode(uintptr(k2))
  9859. ee.EncodeInt(int64(v[uintptr(k2)]))
  9860. }
  9861. }
  9862. } else {
  9863. if esep {
  9864. for k2, v2 := range v {
  9865. ee.WriteMapElemKey()
  9866. e.encode(k2)
  9867. ee.WriteMapElemValue()
  9868. ee.EncodeInt(int64(v2))
  9869. }
  9870. } else {
  9871. for k2, v2 := range v {
  9872. e.encode(k2)
  9873. ee.EncodeInt(int64(v2))
  9874. }
  9875. }
  9876. }
  9877. ee.WriteMapEnd()
  9878. }
  9879. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  9880. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  9881. }
  9882. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  9883. if v == nil {
  9884. e.e.EncodeNil()
  9885. return
  9886. }
  9887. ee, esep := e.e, e.hh.hasElemSeparators()
  9888. ee.WriteMapStart(len(v))
  9889. if e.h.Canonical {
  9890. v2 := make([]uint64, len(v))
  9891. var i uint
  9892. for k := range v {
  9893. v2[i] = uint64(k)
  9894. i++
  9895. }
  9896. sort.Sort(uintSlice(v2))
  9897. if esep {
  9898. for _, k2 := range v2 {
  9899. ee.WriteMapElemKey()
  9900. e.encode(uintptr(k2))
  9901. ee.WriteMapElemValue()
  9902. ee.EncodeFloat32(v[uintptr(k2)])
  9903. }
  9904. } else {
  9905. for _, k2 := range v2 {
  9906. e.encode(uintptr(k2))
  9907. ee.EncodeFloat32(v[uintptr(k2)])
  9908. }
  9909. }
  9910. } else {
  9911. if esep {
  9912. for k2, v2 := range v {
  9913. ee.WriteMapElemKey()
  9914. e.encode(k2)
  9915. ee.WriteMapElemValue()
  9916. ee.EncodeFloat32(v2)
  9917. }
  9918. } else {
  9919. for k2, v2 := range v {
  9920. e.encode(k2)
  9921. ee.EncodeFloat32(v2)
  9922. }
  9923. }
  9924. }
  9925. ee.WriteMapEnd()
  9926. }
  9927. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  9928. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  9929. }
  9930. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  9931. if v == nil {
  9932. e.e.EncodeNil()
  9933. return
  9934. }
  9935. ee, esep := e.e, e.hh.hasElemSeparators()
  9936. ee.WriteMapStart(len(v))
  9937. if e.h.Canonical {
  9938. v2 := make([]uint64, len(v))
  9939. var i uint
  9940. for k := range v {
  9941. v2[i] = uint64(k)
  9942. i++
  9943. }
  9944. sort.Sort(uintSlice(v2))
  9945. if esep {
  9946. for _, k2 := range v2 {
  9947. ee.WriteMapElemKey()
  9948. e.encode(uintptr(k2))
  9949. ee.WriteMapElemValue()
  9950. ee.EncodeFloat64(v[uintptr(k2)])
  9951. }
  9952. } else {
  9953. for _, k2 := range v2 {
  9954. e.encode(uintptr(k2))
  9955. ee.EncodeFloat64(v[uintptr(k2)])
  9956. }
  9957. }
  9958. } else {
  9959. if esep {
  9960. for k2, v2 := range v {
  9961. ee.WriteMapElemKey()
  9962. e.encode(k2)
  9963. ee.WriteMapElemValue()
  9964. ee.EncodeFloat64(v2)
  9965. }
  9966. } else {
  9967. for k2, v2 := range v {
  9968. e.encode(k2)
  9969. ee.EncodeFloat64(v2)
  9970. }
  9971. }
  9972. }
  9973. ee.WriteMapEnd()
  9974. }
  9975. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  9976. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  9977. }
  9978. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  9979. if v == nil {
  9980. e.e.EncodeNil()
  9981. return
  9982. }
  9983. ee, esep := e.e, e.hh.hasElemSeparators()
  9984. ee.WriteMapStart(len(v))
  9985. if e.h.Canonical {
  9986. v2 := make([]uint64, len(v))
  9987. var i uint
  9988. for k := range v {
  9989. v2[i] = uint64(k)
  9990. i++
  9991. }
  9992. sort.Sort(uintSlice(v2))
  9993. if esep {
  9994. for _, k2 := range v2 {
  9995. ee.WriteMapElemKey()
  9996. e.encode(uintptr(k2))
  9997. ee.WriteMapElemValue()
  9998. ee.EncodeBool(v[uintptr(k2)])
  9999. }
  10000. } else {
  10001. for _, k2 := range v2 {
  10002. e.encode(uintptr(k2))
  10003. ee.EncodeBool(v[uintptr(k2)])
  10004. }
  10005. }
  10006. } else {
  10007. if esep {
  10008. for k2, v2 := range v {
  10009. ee.WriteMapElemKey()
  10010. e.encode(k2)
  10011. ee.WriteMapElemValue()
  10012. ee.EncodeBool(v2)
  10013. }
  10014. } else {
  10015. for k2, v2 := range v {
  10016. e.encode(k2)
  10017. ee.EncodeBool(v2)
  10018. }
  10019. }
  10020. }
  10021. ee.WriteMapEnd()
  10022. }
  10023. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  10024. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  10025. }
  10026. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  10027. if v == nil {
  10028. e.e.EncodeNil()
  10029. return
  10030. }
  10031. ee, esep := e.e, e.hh.hasElemSeparators()
  10032. ee.WriteMapStart(len(v))
  10033. if e.h.Canonical {
  10034. v2 := make([]int64, len(v))
  10035. var i uint
  10036. for k := range v {
  10037. v2[i] = int64(k)
  10038. i++
  10039. }
  10040. sort.Sort(intSlice(v2))
  10041. if esep {
  10042. for _, k2 := range v2 {
  10043. ee.WriteMapElemKey()
  10044. ee.EncodeInt(int64(int(k2)))
  10045. ee.WriteMapElemValue()
  10046. e.encode(v[int(k2)])
  10047. }
  10048. } else {
  10049. for _, k2 := range v2 {
  10050. ee.EncodeInt(int64(int(k2)))
  10051. e.encode(v[int(k2)])
  10052. }
  10053. }
  10054. } else {
  10055. if esep {
  10056. for k2, v2 := range v {
  10057. ee.WriteMapElemKey()
  10058. ee.EncodeInt(int64(k2))
  10059. ee.WriteMapElemValue()
  10060. e.encode(v2)
  10061. }
  10062. } else {
  10063. for k2, v2 := range v {
  10064. ee.EncodeInt(int64(k2))
  10065. e.encode(v2)
  10066. }
  10067. }
  10068. }
  10069. ee.WriteMapEnd()
  10070. }
  10071. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  10072. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  10073. }
  10074. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  10075. if v == nil {
  10076. e.e.EncodeNil()
  10077. return
  10078. }
  10079. ee, esep := e.e, e.hh.hasElemSeparators()
  10080. ee.WriteMapStart(len(v))
  10081. if e.h.Canonical {
  10082. v2 := make([]int64, len(v))
  10083. var i uint
  10084. for k := range v {
  10085. v2[i] = int64(k)
  10086. i++
  10087. }
  10088. sort.Sort(intSlice(v2))
  10089. if esep {
  10090. for _, k2 := range v2 {
  10091. ee.WriteMapElemKey()
  10092. ee.EncodeInt(int64(int(k2)))
  10093. ee.WriteMapElemValue()
  10094. ee.EncodeStringEnc(cUTF8, v[int(k2)])
  10095. }
  10096. } else {
  10097. for _, k2 := range v2 {
  10098. ee.EncodeInt(int64(int(k2)))
  10099. ee.EncodeStringEnc(cUTF8, v[int(k2)])
  10100. }
  10101. }
  10102. } else {
  10103. if esep {
  10104. for k2, v2 := range v {
  10105. ee.WriteMapElemKey()
  10106. ee.EncodeInt(int64(k2))
  10107. ee.WriteMapElemValue()
  10108. ee.EncodeStringEnc(cUTF8, v2)
  10109. }
  10110. } else {
  10111. for k2, v2 := range v {
  10112. ee.EncodeInt(int64(k2))
  10113. ee.EncodeStringEnc(cUTF8, v2)
  10114. }
  10115. }
  10116. }
  10117. ee.WriteMapEnd()
  10118. }
  10119. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  10120. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  10121. }
  10122. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  10123. if v == nil {
  10124. e.e.EncodeNil()
  10125. return
  10126. }
  10127. ee, esep := e.e, e.hh.hasElemSeparators()
  10128. ee.WriteMapStart(len(v))
  10129. if e.h.Canonical {
  10130. v2 := make([]int64, len(v))
  10131. var i uint
  10132. for k := range v {
  10133. v2[i] = int64(k)
  10134. i++
  10135. }
  10136. sort.Sort(intSlice(v2))
  10137. if esep {
  10138. for _, k2 := range v2 {
  10139. ee.WriteMapElemKey()
  10140. ee.EncodeInt(int64(int(k2)))
  10141. ee.WriteMapElemValue()
  10142. ee.EncodeUint(uint64(v[int(k2)]))
  10143. }
  10144. } else {
  10145. for _, k2 := range v2 {
  10146. ee.EncodeInt(int64(int(k2)))
  10147. ee.EncodeUint(uint64(v[int(k2)]))
  10148. }
  10149. }
  10150. } else {
  10151. if esep {
  10152. for k2, v2 := range v {
  10153. ee.WriteMapElemKey()
  10154. ee.EncodeInt(int64(k2))
  10155. ee.WriteMapElemValue()
  10156. ee.EncodeUint(uint64(v2))
  10157. }
  10158. } else {
  10159. for k2, v2 := range v {
  10160. ee.EncodeInt(int64(k2))
  10161. ee.EncodeUint(uint64(v2))
  10162. }
  10163. }
  10164. }
  10165. ee.WriteMapEnd()
  10166. }
  10167. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  10168. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  10169. }
  10170. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  10171. if v == nil {
  10172. e.e.EncodeNil()
  10173. return
  10174. }
  10175. ee, esep := e.e, e.hh.hasElemSeparators()
  10176. ee.WriteMapStart(len(v))
  10177. if e.h.Canonical {
  10178. v2 := make([]int64, len(v))
  10179. var i uint
  10180. for k := range v {
  10181. v2[i] = int64(k)
  10182. i++
  10183. }
  10184. sort.Sort(intSlice(v2))
  10185. if esep {
  10186. for _, k2 := range v2 {
  10187. ee.WriteMapElemKey()
  10188. ee.EncodeInt(int64(int(k2)))
  10189. ee.WriteMapElemValue()
  10190. ee.EncodeUint(uint64(v[int(k2)]))
  10191. }
  10192. } else {
  10193. for _, k2 := range v2 {
  10194. ee.EncodeInt(int64(int(k2)))
  10195. ee.EncodeUint(uint64(v[int(k2)]))
  10196. }
  10197. }
  10198. } else {
  10199. if esep {
  10200. for k2, v2 := range v {
  10201. ee.WriteMapElemKey()
  10202. ee.EncodeInt(int64(k2))
  10203. ee.WriteMapElemValue()
  10204. ee.EncodeUint(uint64(v2))
  10205. }
  10206. } else {
  10207. for k2, v2 := range v {
  10208. ee.EncodeInt(int64(k2))
  10209. ee.EncodeUint(uint64(v2))
  10210. }
  10211. }
  10212. }
  10213. ee.WriteMapEnd()
  10214. }
  10215. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  10216. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  10217. }
  10218. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  10219. if v == nil {
  10220. e.e.EncodeNil()
  10221. return
  10222. }
  10223. ee, esep := e.e, e.hh.hasElemSeparators()
  10224. ee.WriteMapStart(len(v))
  10225. if e.h.Canonical {
  10226. v2 := make([]int64, len(v))
  10227. var i uint
  10228. for k := range v {
  10229. v2[i] = int64(k)
  10230. i++
  10231. }
  10232. sort.Sort(intSlice(v2))
  10233. if esep {
  10234. for _, k2 := range v2 {
  10235. ee.WriteMapElemKey()
  10236. ee.EncodeInt(int64(int(k2)))
  10237. ee.WriteMapElemValue()
  10238. ee.EncodeUint(uint64(v[int(k2)]))
  10239. }
  10240. } else {
  10241. for _, k2 := range v2 {
  10242. ee.EncodeInt(int64(int(k2)))
  10243. ee.EncodeUint(uint64(v[int(k2)]))
  10244. }
  10245. }
  10246. } else {
  10247. if esep {
  10248. for k2, v2 := range v {
  10249. ee.WriteMapElemKey()
  10250. ee.EncodeInt(int64(k2))
  10251. ee.WriteMapElemValue()
  10252. ee.EncodeUint(uint64(v2))
  10253. }
  10254. } else {
  10255. for k2, v2 := range v {
  10256. ee.EncodeInt(int64(k2))
  10257. ee.EncodeUint(uint64(v2))
  10258. }
  10259. }
  10260. }
  10261. ee.WriteMapEnd()
  10262. }
  10263. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  10264. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  10265. }
  10266. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  10267. if v == nil {
  10268. e.e.EncodeNil()
  10269. return
  10270. }
  10271. ee, esep := e.e, e.hh.hasElemSeparators()
  10272. ee.WriteMapStart(len(v))
  10273. if e.h.Canonical {
  10274. v2 := make([]int64, len(v))
  10275. var i uint
  10276. for k := range v {
  10277. v2[i] = int64(k)
  10278. i++
  10279. }
  10280. sort.Sort(intSlice(v2))
  10281. if esep {
  10282. for _, k2 := range v2 {
  10283. ee.WriteMapElemKey()
  10284. ee.EncodeInt(int64(int(k2)))
  10285. ee.WriteMapElemValue()
  10286. ee.EncodeUint(uint64(v[int(k2)]))
  10287. }
  10288. } else {
  10289. for _, k2 := range v2 {
  10290. ee.EncodeInt(int64(int(k2)))
  10291. ee.EncodeUint(uint64(v[int(k2)]))
  10292. }
  10293. }
  10294. } else {
  10295. if esep {
  10296. for k2, v2 := range v {
  10297. ee.WriteMapElemKey()
  10298. ee.EncodeInt(int64(k2))
  10299. ee.WriteMapElemValue()
  10300. ee.EncodeUint(uint64(v2))
  10301. }
  10302. } else {
  10303. for k2, v2 := range v {
  10304. ee.EncodeInt(int64(k2))
  10305. ee.EncodeUint(uint64(v2))
  10306. }
  10307. }
  10308. }
  10309. ee.WriteMapEnd()
  10310. }
  10311. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  10312. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  10313. }
  10314. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  10315. if v == nil {
  10316. e.e.EncodeNil()
  10317. return
  10318. }
  10319. ee, esep := e.e, e.hh.hasElemSeparators()
  10320. ee.WriteMapStart(len(v))
  10321. if e.h.Canonical {
  10322. v2 := make([]int64, len(v))
  10323. var i uint
  10324. for k := range v {
  10325. v2[i] = int64(k)
  10326. i++
  10327. }
  10328. sort.Sort(intSlice(v2))
  10329. if esep {
  10330. for _, k2 := range v2 {
  10331. ee.WriteMapElemKey()
  10332. ee.EncodeInt(int64(int(k2)))
  10333. ee.WriteMapElemValue()
  10334. ee.EncodeUint(uint64(v[int(k2)]))
  10335. }
  10336. } else {
  10337. for _, k2 := range v2 {
  10338. ee.EncodeInt(int64(int(k2)))
  10339. ee.EncodeUint(uint64(v[int(k2)]))
  10340. }
  10341. }
  10342. } else {
  10343. if esep {
  10344. for k2, v2 := range v {
  10345. ee.WriteMapElemKey()
  10346. ee.EncodeInt(int64(k2))
  10347. ee.WriteMapElemValue()
  10348. ee.EncodeUint(uint64(v2))
  10349. }
  10350. } else {
  10351. for k2, v2 := range v {
  10352. ee.EncodeInt(int64(k2))
  10353. ee.EncodeUint(uint64(v2))
  10354. }
  10355. }
  10356. }
  10357. ee.WriteMapEnd()
  10358. }
  10359. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  10360. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  10361. }
  10362. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  10363. if v == nil {
  10364. e.e.EncodeNil()
  10365. return
  10366. }
  10367. ee, esep := e.e, e.hh.hasElemSeparators()
  10368. ee.WriteMapStart(len(v))
  10369. if e.h.Canonical {
  10370. v2 := make([]int64, len(v))
  10371. var i uint
  10372. for k := range v {
  10373. v2[i] = int64(k)
  10374. i++
  10375. }
  10376. sort.Sort(intSlice(v2))
  10377. if esep {
  10378. for _, k2 := range v2 {
  10379. ee.WriteMapElemKey()
  10380. ee.EncodeInt(int64(int(k2)))
  10381. ee.WriteMapElemValue()
  10382. e.encode(v[int(k2)])
  10383. }
  10384. } else {
  10385. for _, k2 := range v2 {
  10386. ee.EncodeInt(int64(int(k2)))
  10387. e.encode(v[int(k2)])
  10388. }
  10389. }
  10390. } else {
  10391. if esep {
  10392. for k2, v2 := range v {
  10393. ee.WriteMapElemKey()
  10394. ee.EncodeInt(int64(k2))
  10395. ee.WriteMapElemValue()
  10396. e.encode(v2)
  10397. }
  10398. } else {
  10399. for k2, v2 := range v {
  10400. ee.EncodeInt(int64(k2))
  10401. e.encode(v2)
  10402. }
  10403. }
  10404. }
  10405. ee.WriteMapEnd()
  10406. }
  10407. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  10408. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  10409. }
  10410. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  10411. if v == nil {
  10412. e.e.EncodeNil()
  10413. return
  10414. }
  10415. ee, esep := e.e, e.hh.hasElemSeparators()
  10416. ee.WriteMapStart(len(v))
  10417. if e.h.Canonical {
  10418. v2 := make([]int64, len(v))
  10419. var i uint
  10420. for k := range v {
  10421. v2[i] = int64(k)
  10422. i++
  10423. }
  10424. sort.Sort(intSlice(v2))
  10425. if esep {
  10426. for _, k2 := range v2 {
  10427. ee.WriteMapElemKey()
  10428. ee.EncodeInt(int64(int(k2)))
  10429. ee.WriteMapElemValue()
  10430. ee.EncodeInt(int64(v[int(k2)]))
  10431. }
  10432. } else {
  10433. for _, k2 := range v2 {
  10434. ee.EncodeInt(int64(int(k2)))
  10435. ee.EncodeInt(int64(v[int(k2)]))
  10436. }
  10437. }
  10438. } else {
  10439. if esep {
  10440. for k2, v2 := range v {
  10441. ee.WriteMapElemKey()
  10442. ee.EncodeInt(int64(k2))
  10443. ee.WriteMapElemValue()
  10444. ee.EncodeInt(int64(v2))
  10445. }
  10446. } else {
  10447. for k2, v2 := range v {
  10448. ee.EncodeInt(int64(k2))
  10449. ee.EncodeInt(int64(v2))
  10450. }
  10451. }
  10452. }
  10453. ee.WriteMapEnd()
  10454. }
  10455. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  10456. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  10457. }
  10458. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  10459. if v == nil {
  10460. e.e.EncodeNil()
  10461. return
  10462. }
  10463. ee, esep := e.e, e.hh.hasElemSeparators()
  10464. ee.WriteMapStart(len(v))
  10465. if e.h.Canonical {
  10466. v2 := make([]int64, len(v))
  10467. var i uint
  10468. for k := range v {
  10469. v2[i] = int64(k)
  10470. i++
  10471. }
  10472. sort.Sort(intSlice(v2))
  10473. if esep {
  10474. for _, k2 := range v2 {
  10475. ee.WriteMapElemKey()
  10476. ee.EncodeInt(int64(int(k2)))
  10477. ee.WriteMapElemValue()
  10478. ee.EncodeInt(int64(v[int(k2)]))
  10479. }
  10480. } else {
  10481. for _, k2 := range v2 {
  10482. ee.EncodeInt(int64(int(k2)))
  10483. ee.EncodeInt(int64(v[int(k2)]))
  10484. }
  10485. }
  10486. } else {
  10487. if esep {
  10488. for k2, v2 := range v {
  10489. ee.WriteMapElemKey()
  10490. ee.EncodeInt(int64(k2))
  10491. ee.WriteMapElemValue()
  10492. ee.EncodeInt(int64(v2))
  10493. }
  10494. } else {
  10495. for k2, v2 := range v {
  10496. ee.EncodeInt(int64(k2))
  10497. ee.EncodeInt(int64(v2))
  10498. }
  10499. }
  10500. }
  10501. ee.WriteMapEnd()
  10502. }
  10503. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  10504. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  10505. }
  10506. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  10507. if v == nil {
  10508. e.e.EncodeNil()
  10509. return
  10510. }
  10511. ee, esep := e.e, e.hh.hasElemSeparators()
  10512. ee.WriteMapStart(len(v))
  10513. if e.h.Canonical {
  10514. v2 := make([]int64, len(v))
  10515. var i uint
  10516. for k := range v {
  10517. v2[i] = int64(k)
  10518. i++
  10519. }
  10520. sort.Sort(intSlice(v2))
  10521. if esep {
  10522. for _, k2 := range v2 {
  10523. ee.WriteMapElemKey()
  10524. ee.EncodeInt(int64(int(k2)))
  10525. ee.WriteMapElemValue()
  10526. ee.EncodeInt(int64(v[int(k2)]))
  10527. }
  10528. } else {
  10529. for _, k2 := range v2 {
  10530. ee.EncodeInt(int64(int(k2)))
  10531. ee.EncodeInt(int64(v[int(k2)]))
  10532. }
  10533. }
  10534. } else {
  10535. if esep {
  10536. for k2, v2 := range v {
  10537. ee.WriteMapElemKey()
  10538. ee.EncodeInt(int64(k2))
  10539. ee.WriteMapElemValue()
  10540. ee.EncodeInt(int64(v2))
  10541. }
  10542. } else {
  10543. for k2, v2 := range v {
  10544. ee.EncodeInt(int64(k2))
  10545. ee.EncodeInt(int64(v2))
  10546. }
  10547. }
  10548. }
  10549. ee.WriteMapEnd()
  10550. }
  10551. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  10552. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  10553. }
  10554. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  10555. if v == nil {
  10556. e.e.EncodeNil()
  10557. return
  10558. }
  10559. ee, esep := e.e, e.hh.hasElemSeparators()
  10560. ee.WriteMapStart(len(v))
  10561. if e.h.Canonical {
  10562. v2 := make([]int64, len(v))
  10563. var i uint
  10564. for k := range v {
  10565. v2[i] = int64(k)
  10566. i++
  10567. }
  10568. sort.Sort(intSlice(v2))
  10569. if esep {
  10570. for _, k2 := range v2 {
  10571. ee.WriteMapElemKey()
  10572. ee.EncodeInt(int64(int(k2)))
  10573. ee.WriteMapElemValue()
  10574. ee.EncodeInt(int64(v[int(k2)]))
  10575. }
  10576. } else {
  10577. for _, k2 := range v2 {
  10578. ee.EncodeInt(int64(int(k2)))
  10579. ee.EncodeInt(int64(v[int(k2)]))
  10580. }
  10581. }
  10582. } else {
  10583. if esep {
  10584. for k2, v2 := range v {
  10585. ee.WriteMapElemKey()
  10586. ee.EncodeInt(int64(k2))
  10587. ee.WriteMapElemValue()
  10588. ee.EncodeInt(int64(v2))
  10589. }
  10590. } else {
  10591. for k2, v2 := range v {
  10592. ee.EncodeInt(int64(k2))
  10593. ee.EncodeInt(int64(v2))
  10594. }
  10595. }
  10596. }
  10597. ee.WriteMapEnd()
  10598. }
  10599. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  10600. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  10601. }
  10602. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  10603. if v == nil {
  10604. e.e.EncodeNil()
  10605. return
  10606. }
  10607. ee, esep := e.e, e.hh.hasElemSeparators()
  10608. ee.WriteMapStart(len(v))
  10609. if e.h.Canonical {
  10610. v2 := make([]int64, len(v))
  10611. var i uint
  10612. for k := range v {
  10613. v2[i] = int64(k)
  10614. i++
  10615. }
  10616. sort.Sort(intSlice(v2))
  10617. if esep {
  10618. for _, k2 := range v2 {
  10619. ee.WriteMapElemKey()
  10620. ee.EncodeInt(int64(int(k2)))
  10621. ee.WriteMapElemValue()
  10622. ee.EncodeInt(int64(v[int(k2)]))
  10623. }
  10624. } else {
  10625. for _, k2 := range v2 {
  10626. ee.EncodeInt(int64(int(k2)))
  10627. ee.EncodeInt(int64(v[int(k2)]))
  10628. }
  10629. }
  10630. } else {
  10631. if esep {
  10632. for k2, v2 := range v {
  10633. ee.WriteMapElemKey()
  10634. ee.EncodeInt(int64(k2))
  10635. ee.WriteMapElemValue()
  10636. ee.EncodeInt(int64(v2))
  10637. }
  10638. } else {
  10639. for k2, v2 := range v {
  10640. ee.EncodeInt(int64(k2))
  10641. ee.EncodeInt(int64(v2))
  10642. }
  10643. }
  10644. }
  10645. ee.WriteMapEnd()
  10646. }
  10647. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  10648. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  10649. }
  10650. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  10651. if v == nil {
  10652. e.e.EncodeNil()
  10653. return
  10654. }
  10655. ee, esep := e.e, e.hh.hasElemSeparators()
  10656. ee.WriteMapStart(len(v))
  10657. if e.h.Canonical {
  10658. v2 := make([]int64, len(v))
  10659. var i uint
  10660. for k := range v {
  10661. v2[i] = int64(k)
  10662. i++
  10663. }
  10664. sort.Sort(intSlice(v2))
  10665. if esep {
  10666. for _, k2 := range v2 {
  10667. ee.WriteMapElemKey()
  10668. ee.EncodeInt(int64(int(k2)))
  10669. ee.WriteMapElemValue()
  10670. ee.EncodeFloat32(v[int(k2)])
  10671. }
  10672. } else {
  10673. for _, k2 := range v2 {
  10674. ee.EncodeInt(int64(int(k2)))
  10675. ee.EncodeFloat32(v[int(k2)])
  10676. }
  10677. }
  10678. } else {
  10679. if esep {
  10680. for k2, v2 := range v {
  10681. ee.WriteMapElemKey()
  10682. ee.EncodeInt(int64(k2))
  10683. ee.WriteMapElemValue()
  10684. ee.EncodeFloat32(v2)
  10685. }
  10686. } else {
  10687. for k2, v2 := range v {
  10688. ee.EncodeInt(int64(k2))
  10689. ee.EncodeFloat32(v2)
  10690. }
  10691. }
  10692. }
  10693. ee.WriteMapEnd()
  10694. }
  10695. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  10696. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  10697. }
  10698. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  10699. if v == nil {
  10700. e.e.EncodeNil()
  10701. return
  10702. }
  10703. ee, esep := e.e, e.hh.hasElemSeparators()
  10704. ee.WriteMapStart(len(v))
  10705. if e.h.Canonical {
  10706. v2 := make([]int64, len(v))
  10707. var i uint
  10708. for k := range v {
  10709. v2[i] = int64(k)
  10710. i++
  10711. }
  10712. sort.Sort(intSlice(v2))
  10713. if esep {
  10714. for _, k2 := range v2 {
  10715. ee.WriteMapElemKey()
  10716. ee.EncodeInt(int64(int(k2)))
  10717. ee.WriteMapElemValue()
  10718. ee.EncodeFloat64(v[int(k2)])
  10719. }
  10720. } else {
  10721. for _, k2 := range v2 {
  10722. ee.EncodeInt(int64(int(k2)))
  10723. ee.EncodeFloat64(v[int(k2)])
  10724. }
  10725. }
  10726. } else {
  10727. if esep {
  10728. for k2, v2 := range v {
  10729. ee.WriteMapElemKey()
  10730. ee.EncodeInt(int64(k2))
  10731. ee.WriteMapElemValue()
  10732. ee.EncodeFloat64(v2)
  10733. }
  10734. } else {
  10735. for k2, v2 := range v {
  10736. ee.EncodeInt(int64(k2))
  10737. ee.EncodeFloat64(v2)
  10738. }
  10739. }
  10740. }
  10741. ee.WriteMapEnd()
  10742. }
  10743. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  10744. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  10745. }
  10746. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  10747. if v == nil {
  10748. e.e.EncodeNil()
  10749. return
  10750. }
  10751. ee, esep := e.e, e.hh.hasElemSeparators()
  10752. ee.WriteMapStart(len(v))
  10753. if e.h.Canonical {
  10754. v2 := make([]int64, len(v))
  10755. var i uint
  10756. for k := range v {
  10757. v2[i] = int64(k)
  10758. i++
  10759. }
  10760. sort.Sort(intSlice(v2))
  10761. if esep {
  10762. for _, k2 := range v2 {
  10763. ee.WriteMapElemKey()
  10764. ee.EncodeInt(int64(int(k2)))
  10765. ee.WriteMapElemValue()
  10766. ee.EncodeBool(v[int(k2)])
  10767. }
  10768. } else {
  10769. for _, k2 := range v2 {
  10770. ee.EncodeInt(int64(int(k2)))
  10771. ee.EncodeBool(v[int(k2)])
  10772. }
  10773. }
  10774. } else {
  10775. if esep {
  10776. for k2, v2 := range v {
  10777. ee.WriteMapElemKey()
  10778. ee.EncodeInt(int64(k2))
  10779. ee.WriteMapElemValue()
  10780. ee.EncodeBool(v2)
  10781. }
  10782. } else {
  10783. for k2, v2 := range v {
  10784. ee.EncodeInt(int64(k2))
  10785. ee.EncodeBool(v2)
  10786. }
  10787. }
  10788. }
  10789. ee.WriteMapEnd()
  10790. }
  10791. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  10792. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  10793. }
  10794. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  10795. if v == nil {
  10796. e.e.EncodeNil()
  10797. return
  10798. }
  10799. ee, esep := e.e, e.hh.hasElemSeparators()
  10800. ee.WriteMapStart(len(v))
  10801. if e.h.Canonical {
  10802. v2 := make([]int64, len(v))
  10803. var i uint
  10804. for k := range v {
  10805. v2[i] = int64(k)
  10806. i++
  10807. }
  10808. sort.Sort(intSlice(v2))
  10809. if esep {
  10810. for _, k2 := range v2 {
  10811. ee.WriteMapElemKey()
  10812. ee.EncodeInt(int64(int8(k2)))
  10813. ee.WriteMapElemValue()
  10814. e.encode(v[int8(k2)])
  10815. }
  10816. } else {
  10817. for _, k2 := range v2 {
  10818. ee.EncodeInt(int64(int8(k2)))
  10819. e.encode(v[int8(k2)])
  10820. }
  10821. }
  10822. } else {
  10823. if esep {
  10824. for k2, v2 := range v {
  10825. ee.WriteMapElemKey()
  10826. ee.EncodeInt(int64(k2))
  10827. ee.WriteMapElemValue()
  10828. e.encode(v2)
  10829. }
  10830. } else {
  10831. for k2, v2 := range v {
  10832. ee.EncodeInt(int64(k2))
  10833. e.encode(v2)
  10834. }
  10835. }
  10836. }
  10837. ee.WriteMapEnd()
  10838. }
  10839. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  10840. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  10841. }
  10842. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  10843. if v == nil {
  10844. e.e.EncodeNil()
  10845. return
  10846. }
  10847. ee, esep := e.e, e.hh.hasElemSeparators()
  10848. ee.WriteMapStart(len(v))
  10849. if e.h.Canonical {
  10850. v2 := make([]int64, len(v))
  10851. var i uint
  10852. for k := range v {
  10853. v2[i] = int64(k)
  10854. i++
  10855. }
  10856. sort.Sort(intSlice(v2))
  10857. if esep {
  10858. for _, k2 := range v2 {
  10859. ee.WriteMapElemKey()
  10860. ee.EncodeInt(int64(int8(k2)))
  10861. ee.WriteMapElemValue()
  10862. ee.EncodeStringEnc(cUTF8, v[int8(k2)])
  10863. }
  10864. } else {
  10865. for _, k2 := range v2 {
  10866. ee.EncodeInt(int64(int8(k2)))
  10867. ee.EncodeStringEnc(cUTF8, v[int8(k2)])
  10868. }
  10869. }
  10870. } else {
  10871. if esep {
  10872. for k2, v2 := range v {
  10873. ee.WriteMapElemKey()
  10874. ee.EncodeInt(int64(k2))
  10875. ee.WriteMapElemValue()
  10876. ee.EncodeStringEnc(cUTF8, v2)
  10877. }
  10878. } else {
  10879. for k2, v2 := range v {
  10880. ee.EncodeInt(int64(k2))
  10881. ee.EncodeStringEnc(cUTF8, v2)
  10882. }
  10883. }
  10884. }
  10885. ee.WriteMapEnd()
  10886. }
  10887. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  10888. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  10889. }
  10890. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  10891. if v == nil {
  10892. e.e.EncodeNil()
  10893. return
  10894. }
  10895. ee, esep := e.e, e.hh.hasElemSeparators()
  10896. ee.WriteMapStart(len(v))
  10897. if e.h.Canonical {
  10898. v2 := make([]int64, len(v))
  10899. var i uint
  10900. for k := range v {
  10901. v2[i] = int64(k)
  10902. i++
  10903. }
  10904. sort.Sort(intSlice(v2))
  10905. if esep {
  10906. for _, k2 := range v2 {
  10907. ee.WriteMapElemKey()
  10908. ee.EncodeInt(int64(int8(k2)))
  10909. ee.WriteMapElemValue()
  10910. ee.EncodeUint(uint64(v[int8(k2)]))
  10911. }
  10912. } else {
  10913. for _, k2 := range v2 {
  10914. ee.EncodeInt(int64(int8(k2)))
  10915. ee.EncodeUint(uint64(v[int8(k2)]))
  10916. }
  10917. }
  10918. } else {
  10919. if esep {
  10920. for k2, v2 := range v {
  10921. ee.WriteMapElemKey()
  10922. ee.EncodeInt(int64(k2))
  10923. ee.WriteMapElemValue()
  10924. ee.EncodeUint(uint64(v2))
  10925. }
  10926. } else {
  10927. for k2, v2 := range v {
  10928. ee.EncodeInt(int64(k2))
  10929. ee.EncodeUint(uint64(v2))
  10930. }
  10931. }
  10932. }
  10933. ee.WriteMapEnd()
  10934. }
  10935. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  10936. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  10937. }
  10938. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  10939. if v == nil {
  10940. e.e.EncodeNil()
  10941. return
  10942. }
  10943. ee, esep := e.e, e.hh.hasElemSeparators()
  10944. ee.WriteMapStart(len(v))
  10945. if e.h.Canonical {
  10946. v2 := make([]int64, len(v))
  10947. var i uint
  10948. for k := range v {
  10949. v2[i] = int64(k)
  10950. i++
  10951. }
  10952. sort.Sort(intSlice(v2))
  10953. if esep {
  10954. for _, k2 := range v2 {
  10955. ee.WriteMapElemKey()
  10956. ee.EncodeInt(int64(int8(k2)))
  10957. ee.WriteMapElemValue()
  10958. ee.EncodeUint(uint64(v[int8(k2)]))
  10959. }
  10960. } else {
  10961. for _, k2 := range v2 {
  10962. ee.EncodeInt(int64(int8(k2)))
  10963. ee.EncodeUint(uint64(v[int8(k2)]))
  10964. }
  10965. }
  10966. } else {
  10967. if esep {
  10968. for k2, v2 := range v {
  10969. ee.WriteMapElemKey()
  10970. ee.EncodeInt(int64(k2))
  10971. ee.WriteMapElemValue()
  10972. ee.EncodeUint(uint64(v2))
  10973. }
  10974. } else {
  10975. for k2, v2 := range v {
  10976. ee.EncodeInt(int64(k2))
  10977. ee.EncodeUint(uint64(v2))
  10978. }
  10979. }
  10980. }
  10981. ee.WriteMapEnd()
  10982. }
  10983. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  10984. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  10985. }
  10986. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  10987. if v == nil {
  10988. e.e.EncodeNil()
  10989. return
  10990. }
  10991. ee, esep := e.e, e.hh.hasElemSeparators()
  10992. ee.WriteMapStart(len(v))
  10993. if e.h.Canonical {
  10994. v2 := make([]int64, len(v))
  10995. var i uint
  10996. for k := range v {
  10997. v2[i] = int64(k)
  10998. i++
  10999. }
  11000. sort.Sort(intSlice(v2))
  11001. if esep {
  11002. for _, k2 := range v2 {
  11003. ee.WriteMapElemKey()
  11004. ee.EncodeInt(int64(int8(k2)))
  11005. ee.WriteMapElemValue()
  11006. ee.EncodeUint(uint64(v[int8(k2)]))
  11007. }
  11008. } else {
  11009. for _, k2 := range v2 {
  11010. ee.EncodeInt(int64(int8(k2)))
  11011. ee.EncodeUint(uint64(v[int8(k2)]))
  11012. }
  11013. }
  11014. } else {
  11015. if esep {
  11016. for k2, v2 := range v {
  11017. ee.WriteMapElemKey()
  11018. ee.EncodeInt(int64(k2))
  11019. ee.WriteMapElemValue()
  11020. ee.EncodeUint(uint64(v2))
  11021. }
  11022. } else {
  11023. for k2, v2 := range v {
  11024. ee.EncodeInt(int64(k2))
  11025. ee.EncodeUint(uint64(v2))
  11026. }
  11027. }
  11028. }
  11029. ee.WriteMapEnd()
  11030. }
  11031. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  11032. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  11033. }
  11034. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  11035. if v == nil {
  11036. e.e.EncodeNil()
  11037. return
  11038. }
  11039. ee, esep := e.e, e.hh.hasElemSeparators()
  11040. ee.WriteMapStart(len(v))
  11041. if e.h.Canonical {
  11042. v2 := make([]int64, len(v))
  11043. var i uint
  11044. for k := range v {
  11045. v2[i] = int64(k)
  11046. i++
  11047. }
  11048. sort.Sort(intSlice(v2))
  11049. if esep {
  11050. for _, k2 := range v2 {
  11051. ee.WriteMapElemKey()
  11052. ee.EncodeInt(int64(int8(k2)))
  11053. ee.WriteMapElemValue()
  11054. ee.EncodeUint(uint64(v[int8(k2)]))
  11055. }
  11056. } else {
  11057. for _, k2 := range v2 {
  11058. ee.EncodeInt(int64(int8(k2)))
  11059. ee.EncodeUint(uint64(v[int8(k2)]))
  11060. }
  11061. }
  11062. } else {
  11063. if esep {
  11064. for k2, v2 := range v {
  11065. ee.WriteMapElemKey()
  11066. ee.EncodeInt(int64(k2))
  11067. ee.WriteMapElemValue()
  11068. ee.EncodeUint(uint64(v2))
  11069. }
  11070. } else {
  11071. for k2, v2 := range v {
  11072. ee.EncodeInt(int64(k2))
  11073. ee.EncodeUint(uint64(v2))
  11074. }
  11075. }
  11076. }
  11077. ee.WriteMapEnd()
  11078. }
  11079. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  11080. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  11081. }
  11082. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  11083. if v == nil {
  11084. e.e.EncodeNil()
  11085. return
  11086. }
  11087. ee, esep := e.e, e.hh.hasElemSeparators()
  11088. ee.WriteMapStart(len(v))
  11089. if e.h.Canonical {
  11090. v2 := make([]int64, len(v))
  11091. var i uint
  11092. for k := range v {
  11093. v2[i] = int64(k)
  11094. i++
  11095. }
  11096. sort.Sort(intSlice(v2))
  11097. if esep {
  11098. for _, k2 := range v2 {
  11099. ee.WriteMapElemKey()
  11100. ee.EncodeInt(int64(int8(k2)))
  11101. ee.WriteMapElemValue()
  11102. ee.EncodeUint(uint64(v[int8(k2)]))
  11103. }
  11104. } else {
  11105. for _, k2 := range v2 {
  11106. ee.EncodeInt(int64(int8(k2)))
  11107. ee.EncodeUint(uint64(v[int8(k2)]))
  11108. }
  11109. }
  11110. } else {
  11111. if esep {
  11112. for k2, v2 := range v {
  11113. ee.WriteMapElemKey()
  11114. ee.EncodeInt(int64(k2))
  11115. ee.WriteMapElemValue()
  11116. ee.EncodeUint(uint64(v2))
  11117. }
  11118. } else {
  11119. for k2, v2 := range v {
  11120. ee.EncodeInt(int64(k2))
  11121. ee.EncodeUint(uint64(v2))
  11122. }
  11123. }
  11124. }
  11125. ee.WriteMapEnd()
  11126. }
  11127. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  11128. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  11129. }
  11130. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  11131. if v == nil {
  11132. e.e.EncodeNil()
  11133. return
  11134. }
  11135. ee, esep := e.e, e.hh.hasElemSeparators()
  11136. ee.WriteMapStart(len(v))
  11137. if e.h.Canonical {
  11138. v2 := make([]int64, len(v))
  11139. var i uint
  11140. for k := range v {
  11141. v2[i] = int64(k)
  11142. i++
  11143. }
  11144. sort.Sort(intSlice(v2))
  11145. if esep {
  11146. for _, k2 := range v2 {
  11147. ee.WriteMapElemKey()
  11148. ee.EncodeInt(int64(int8(k2)))
  11149. ee.WriteMapElemValue()
  11150. e.encode(v[int8(k2)])
  11151. }
  11152. } else {
  11153. for _, k2 := range v2 {
  11154. ee.EncodeInt(int64(int8(k2)))
  11155. e.encode(v[int8(k2)])
  11156. }
  11157. }
  11158. } else {
  11159. if esep {
  11160. for k2, v2 := range v {
  11161. ee.WriteMapElemKey()
  11162. ee.EncodeInt(int64(k2))
  11163. ee.WriteMapElemValue()
  11164. e.encode(v2)
  11165. }
  11166. } else {
  11167. for k2, v2 := range v {
  11168. ee.EncodeInt(int64(k2))
  11169. e.encode(v2)
  11170. }
  11171. }
  11172. }
  11173. ee.WriteMapEnd()
  11174. }
  11175. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  11176. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  11177. }
  11178. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  11179. if v == nil {
  11180. e.e.EncodeNil()
  11181. return
  11182. }
  11183. ee, esep := e.e, e.hh.hasElemSeparators()
  11184. ee.WriteMapStart(len(v))
  11185. if e.h.Canonical {
  11186. v2 := make([]int64, len(v))
  11187. var i uint
  11188. for k := range v {
  11189. v2[i] = int64(k)
  11190. i++
  11191. }
  11192. sort.Sort(intSlice(v2))
  11193. if esep {
  11194. for _, k2 := range v2 {
  11195. ee.WriteMapElemKey()
  11196. ee.EncodeInt(int64(int8(k2)))
  11197. ee.WriteMapElemValue()
  11198. ee.EncodeInt(int64(v[int8(k2)]))
  11199. }
  11200. } else {
  11201. for _, k2 := range v2 {
  11202. ee.EncodeInt(int64(int8(k2)))
  11203. ee.EncodeInt(int64(v[int8(k2)]))
  11204. }
  11205. }
  11206. } else {
  11207. if esep {
  11208. for k2, v2 := range v {
  11209. ee.WriteMapElemKey()
  11210. ee.EncodeInt(int64(k2))
  11211. ee.WriteMapElemValue()
  11212. ee.EncodeInt(int64(v2))
  11213. }
  11214. } else {
  11215. for k2, v2 := range v {
  11216. ee.EncodeInt(int64(k2))
  11217. ee.EncodeInt(int64(v2))
  11218. }
  11219. }
  11220. }
  11221. ee.WriteMapEnd()
  11222. }
  11223. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  11224. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  11225. }
  11226. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  11227. if v == nil {
  11228. e.e.EncodeNil()
  11229. return
  11230. }
  11231. ee, esep := e.e, e.hh.hasElemSeparators()
  11232. ee.WriteMapStart(len(v))
  11233. if e.h.Canonical {
  11234. v2 := make([]int64, len(v))
  11235. var i uint
  11236. for k := range v {
  11237. v2[i] = int64(k)
  11238. i++
  11239. }
  11240. sort.Sort(intSlice(v2))
  11241. if esep {
  11242. for _, k2 := range v2 {
  11243. ee.WriteMapElemKey()
  11244. ee.EncodeInt(int64(int8(k2)))
  11245. ee.WriteMapElemValue()
  11246. ee.EncodeInt(int64(v[int8(k2)]))
  11247. }
  11248. } else {
  11249. for _, k2 := range v2 {
  11250. ee.EncodeInt(int64(int8(k2)))
  11251. ee.EncodeInt(int64(v[int8(k2)]))
  11252. }
  11253. }
  11254. } else {
  11255. if esep {
  11256. for k2, v2 := range v {
  11257. ee.WriteMapElemKey()
  11258. ee.EncodeInt(int64(k2))
  11259. ee.WriteMapElemValue()
  11260. ee.EncodeInt(int64(v2))
  11261. }
  11262. } else {
  11263. for k2, v2 := range v {
  11264. ee.EncodeInt(int64(k2))
  11265. ee.EncodeInt(int64(v2))
  11266. }
  11267. }
  11268. }
  11269. ee.WriteMapEnd()
  11270. }
  11271. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  11272. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  11273. }
  11274. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  11275. if v == nil {
  11276. e.e.EncodeNil()
  11277. return
  11278. }
  11279. ee, esep := e.e, e.hh.hasElemSeparators()
  11280. ee.WriteMapStart(len(v))
  11281. if e.h.Canonical {
  11282. v2 := make([]int64, len(v))
  11283. var i uint
  11284. for k := range v {
  11285. v2[i] = int64(k)
  11286. i++
  11287. }
  11288. sort.Sort(intSlice(v2))
  11289. if esep {
  11290. for _, k2 := range v2 {
  11291. ee.WriteMapElemKey()
  11292. ee.EncodeInt(int64(int8(k2)))
  11293. ee.WriteMapElemValue()
  11294. ee.EncodeInt(int64(v[int8(k2)]))
  11295. }
  11296. } else {
  11297. for _, k2 := range v2 {
  11298. ee.EncodeInt(int64(int8(k2)))
  11299. ee.EncodeInt(int64(v[int8(k2)]))
  11300. }
  11301. }
  11302. } else {
  11303. if esep {
  11304. for k2, v2 := range v {
  11305. ee.WriteMapElemKey()
  11306. ee.EncodeInt(int64(k2))
  11307. ee.WriteMapElemValue()
  11308. ee.EncodeInt(int64(v2))
  11309. }
  11310. } else {
  11311. for k2, v2 := range v {
  11312. ee.EncodeInt(int64(k2))
  11313. ee.EncodeInt(int64(v2))
  11314. }
  11315. }
  11316. }
  11317. ee.WriteMapEnd()
  11318. }
  11319. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  11320. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  11321. }
  11322. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  11323. if v == nil {
  11324. e.e.EncodeNil()
  11325. return
  11326. }
  11327. ee, esep := e.e, e.hh.hasElemSeparators()
  11328. ee.WriteMapStart(len(v))
  11329. if e.h.Canonical {
  11330. v2 := make([]int64, len(v))
  11331. var i uint
  11332. for k := range v {
  11333. v2[i] = int64(k)
  11334. i++
  11335. }
  11336. sort.Sort(intSlice(v2))
  11337. if esep {
  11338. for _, k2 := range v2 {
  11339. ee.WriteMapElemKey()
  11340. ee.EncodeInt(int64(int8(k2)))
  11341. ee.WriteMapElemValue()
  11342. ee.EncodeInt(int64(v[int8(k2)]))
  11343. }
  11344. } else {
  11345. for _, k2 := range v2 {
  11346. ee.EncodeInt(int64(int8(k2)))
  11347. ee.EncodeInt(int64(v[int8(k2)]))
  11348. }
  11349. }
  11350. } else {
  11351. if esep {
  11352. for k2, v2 := range v {
  11353. ee.WriteMapElemKey()
  11354. ee.EncodeInt(int64(k2))
  11355. ee.WriteMapElemValue()
  11356. ee.EncodeInt(int64(v2))
  11357. }
  11358. } else {
  11359. for k2, v2 := range v {
  11360. ee.EncodeInt(int64(k2))
  11361. ee.EncodeInt(int64(v2))
  11362. }
  11363. }
  11364. }
  11365. ee.WriteMapEnd()
  11366. }
  11367. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  11368. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  11369. }
  11370. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  11371. if v == nil {
  11372. e.e.EncodeNil()
  11373. return
  11374. }
  11375. ee, esep := e.e, e.hh.hasElemSeparators()
  11376. ee.WriteMapStart(len(v))
  11377. if e.h.Canonical {
  11378. v2 := make([]int64, len(v))
  11379. var i uint
  11380. for k := range v {
  11381. v2[i] = int64(k)
  11382. i++
  11383. }
  11384. sort.Sort(intSlice(v2))
  11385. if esep {
  11386. for _, k2 := range v2 {
  11387. ee.WriteMapElemKey()
  11388. ee.EncodeInt(int64(int8(k2)))
  11389. ee.WriteMapElemValue()
  11390. ee.EncodeInt(int64(v[int8(k2)]))
  11391. }
  11392. } else {
  11393. for _, k2 := range v2 {
  11394. ee.EncodeInt(int64(int8(k2)))
  11395. ee.EncodeInt(int64(v[int8(k2)]))
  11396. }
  11397. }
  11398. } else {
  11399. if esep {
  11400. for k2, v2 := range v {
  11401. ee.WriteMapElemKey()
  11402. ee.EncodeInt(int64(k2))
  11403. ee.WriteMapElemValue()
  11404. ee.EncodeInt(int64(v2))
  11405. }
  11406. } else {
  11407. for k2, v2 := range v {
  11408. ee.EncodeInt(int64(k2))
  11409. ee.EncodeInt(int64(v2))
  11410. }
  11411. }
  11412. }
  11413. ee.WriteMapEnd()
  11414. }
  11415. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  11416. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  11417. }
  11418. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  11419. if v == nil {
  11420. e.e.EncodeNil()
  11421. return
  11422. }
  11423. ee, esep := e.e, e.hh.hasElemSeparators()
  11424. ee.WriteMapStart(len(v))
  11425. if e.h.Canonical {
  11426. v2 := make([]int64, len(v))
  11427. var i uint
  11428. for k := range v {
  11429. v2[i] = int64(k)
  11430. i++
  11431. }
  11432. sort.Sort(intSlice(v2))
  11433. if esep {
  11434. for _, k2 := range v2 {
  11435. ee.WriteMapElemKey()
  11436. ee.EncodeInt(int64(int8(k2)))
  11437. ee.WriteMapElemValue()
  11438. ee.EncodeFloat32(v[int8(k2)])
  11439. }
  11440. } else {
  11441. for _, k2 := range v2 {
  11442. ee.EncodeInt(int64(int8(k2)))
  11443. ee.EncodeFloat32(v[int8(k2)])
  11444. }
  11445. }
  11446. } else {
  11447. if esep {
  11448. for k2, v2 := range v {
  11449. ee.WriteMapElemKey()
  11450. ee.EncodeInt(int64(k2))
  11451. ee.WriteMapElemValue()
  11452. ee.EncodeFloat32(v2)
  11453. }
  11454. } else {
  11455. for k2, v2 := range v {
  11456. ee.EncodeInt(int64(k2))
  11457. ee.EncodeFloat32(v2)
  11458. }
  11459. }
  11460. }
  11461. ee.WriteMapEnd()
  11462. }
  11463. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  11464. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  11465. }
  11466. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  11467. if v == nil {
  11468. e.e.EncodeNil()
  11469. return
  11470. }
  11471. ee, esep := e.e, e.hh.hasElemSeparators()
  11472. ee.WriteMapStart(len(v))
  11473. if e.h.Canonical {
  11474. v2 := make([]int64, len(v))
  11475. var i uint
  11476. for k := range v {
  11477. v2[i] = int64(k)
  11478. i++
  11479. }
  11480. sort.Sort(intSlice(v2))
  11481. if esep {
  11482. for _, k2 := range v2 {
  11483. ee.WriteMapElemKey()
  11484. ee.EncodeInt(int64(int8(k2)))
  11485. ee.WriteMapElemValue()
  11486. ee.EncodeFloat64(v[int8(k2)])
  11487. }
  11488. } else {
  11489. for _, k2 := range v2 {
  11490. ee.EncodeInt(int64(int8(k2)))
  11491. ee.EncodeFloat64(v[int8(k2)])
  11492. }
  11493. }
  11494. } else {
  11495. if esep {
  11496. for k2, v2 := range v {
  11497. ee.WriteMapElemKey()
  11498. ee.EncodeInt(int64(k2))
  11499. ee.WriteMapElemValue()
  11500. ee.EncodeFloat64(v2)
  11501. }
  11502. } else {
  11503. for k2, v2 := range v {
  11504. ee.EncodeInt(int64(k2))
  11505. ee.EncodeFloat64(v2)
  11506. }
  11507. }
  11508. }
  11509. ee.WriteMapEnd()
  11510. }
  11511. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  11512. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  11513. }
  11514. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  11515. if v == nil {
  11516. e.e.EncodeNil()
  11517. return
  11518. }
  11519. ee, esep := e.e, e.hh.hasElemSeparators()
  11520. ee.WriteMapStart(len(v))
  11521. if e.h.Canonical {
  11522. v2 := make([]int64, len(v))
  11523. var i uint
  11524. for k := range v {
  11525. v2[i] = int64(k)
  11526. i++
  11527. }
  11528. sort.Sort(intSlice(v2))
  11529. if esep {
  11530. for _, k2 := range v2 {
  11531. ee.WriteMapElemKey()
  11532. ee.EncodeInt(int64(int8(k2)))
  11533. ee.WriteMapElemValue()
  11534. ee.EncodeBool(v[int8(k2)])
  11535. }
  11536. } else {
  11537. for _, k2 := range v2 {
  11538. ee.EncodeInt(int64(int8(k2)))
  11539. ee.EncodeBool(v[int8(k2)])
  11540. }
  11541. }
  11542. } else {
  11543. if esep {
  11544. for k2, v2 := range v {
  11545. ee.WriteMapElemKey()
  11546. ee.EncodeInt(int64(k2))
  11547. ee.WriteMapElemValue()
  11548. ee.EncodeBool(v2)
  11549. }
  11550. } else {
  11551. for k2, v2 := range v {
  11552. ee.EncodeInt(int64(k2))
  11553. ee.EncodeBool(v2)
  11554. }
  11555. }
  11556. }
  11557. ee.WriteMapEnd()
  11558. }
  11559. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  11560. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  11561. }
  11562. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  11563. if v == nil {
  11564. e.e.EncodeNil()
  11565. return
  11566. }
  11567. ee, esep := e.e, e.hh.hasElemSeparators()
  11568. ee.WriteMapStart(len(v))
  11569. if e.h.Canonical {
  11570. v2 := make([]int64, len(v))
  11571. var i uint
  11572. for k := range v {
  11573. v2[i] = int64(k)
  11574. i++
  11575. }
  11576. sort.Sort(intSlice(v2))
  11577. if esep {
  11578. for _, k2 := range v2 {
  11579. ee.WriteMapElemKey()
  11580. ee.EncodeInt(int64(int16(k2)))
  11581. ee.WriteMapElemValue()
  11582. e.encode(v[int16(k2)])
  11583. }
  11584. } else {
  11585. for _, k2 := range v2 {
  11586. ee.EncodeInt(int64(int16(k2)))
  11587. e.encode(v[int16(k2)])
  11588. }
  11589. }
  11590. } else {
  11591. if esep {
  11592. for k2, v2 := range v {
  11593. ee.WriteMapElemKey()
  11594. ee.EncodeInt(int64(k2))
  11595. ee.WriteMapElemValue()
  11596. e.encode(v2)
  11597. }
  11598. } else {
  11599. for k2, v2 := range v {
  11600. ee.EncodeInt(int64(k2))
  11601. e.encode(v2)
  11602. }
  11603. }
  11604. }
  11605. ee.WriteMapEnd()
  11606. }
  11607. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  11608. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  11609. }
  11610. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  11611. if v == nil {
  11612. e.e.EncodeNil()
  11613. return
  11614. }
  11615. ee, esep := e.e, e.hh.hasElemSeparators()
  11616. ee.WriteMapStart(len(v))
  11617. if e.h.Canonical {
  11618. v2 := make([]int64, len(v))
  11619. var i uint
  11620. for k := range v {
  11621. v2[i] = int64(k)
  11622. i++
  11623. }
  11624. sort.Sort(intSlice(v2))
  11625. if esep {
  11626. for _, k2 := range v2 {
  11627. ee.WriteMapElemKey()
  11628. ee.EncodeInt(int64(int16(k2)))
  11629. ee.WriteMapElemValue()
  11630. ee.EncodeStringEnc(cUTF8, v[int16(k2)])
  11631. }
  11632. } else {
  11633. for _, k2 := range v2 {
  11634. ee.EncodeInt(int64(int16(k2)))
  11635. ee.EncodeStringEnc(cUTF8, v[int16(k2)])
  11636. }
  11637. }
  11638. } else {
  11639. if esep {
  11640. for k2, v2 := range v {
  11641. ee.WriteMapElemKey()
  11642. ee.EncodeInt(int64(k2))
  11643. ee.WriteMapElemValue()
  11644. ee.EncodeStringEnc(cUTF8, v2)
  11645. }
  11646. } else {
  11647. for k2, v2 := range v {
  11648. ee.EncodeInt(int64(k2))
  11649. ee.EncodeStringEnc(cUTF8, v2)
  11650. }
  11651. }
  11652. }
  11653. ee.WriteMapEnd()
  11654. }
  11655. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  11656. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  11657. }
  11658. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  11659. if v == nil {
  11660. e.e.EncodeNil()
  11661. return
  11662. }
  11663. ee, esep := e.e, e.hh.hasElemSeparators()
  11664. ee.WriteMapStart(len(v))
  11665. if e.h.Canonical {
  11666. v2 := make([]int64, len(v))
  11667. var i uint
  11668. for k := range v {
  11669. v2[i] = int64(k)
  11670. i++
  11671. }
  11672. sort.Sort(intSlice(v2))
  11673. if esep {
  11674. for _, k2 := range v2 {
  11675. ee.WriteMapElemKey()
  11676. ee.EncodeInt(int64(int16(k2)))
  11677. ee.WriteMapElemValue()
  11678. ee.EncodeUint(uint64(v[int16(k2)]))
  11679. }
  11680. } else {
  11681. for _, k2 := range v2 {
  11682. ee.EncodeInt(int64(int16(k2)))
  11683. ee.EncodeUint(uint64(v[int16(k2)]))
  11684. }
  11685. }
  11686. } else {
  11687. if esep {
  11688. for k2, v2 := range v {
  11689. ee.WriteMapElemKey()
  11690. ee.EncodeInt(int64(k2))
  11691. ee.WriteMapElemValue()
  11692. ee.EncodeUint(uint64(v2))
  11693. }
  11694. } else {
  11695. for k2, v2 := range v {
  11696. ee.EncodeInt(int64(k2))
  11697. ee.EncodeUint(uint64(v2))
  11698. }
  11699. }
  11700. }
  11701. ee.WriteMapEnd()
  11702. }
  11703. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  11704. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  11705. }
  11706. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  11707. if v == nil {
  11708. e.e.EncodeNil()
  11709. return
  11710. }
  11711. ee, esep := e.e, e.hh.hasElemSeparators()
  11712. ee.WriteMapStart(len(v))
  11713. if e.h.Canonical {
  11714. v2 := make([]int64, len(v))
  11715. var i uint
  11716. for k := range v {
  11717. v2[i] = int64(k)
  11718. i++
  11719. }
  11720. sort.Sort(intSlice(v2))
  11721. if esep {
  11722. for _, k2 := range v2 {
  11723. ee.WriteMapElemKey()
  11724. ee.EncodeInt(int64(int16(k2)))
  11725. ee.WriteMapElemValue()
  11726. ee.EncodeUint(uint64(v[int16(k2)]))
  11727. }
  11728. } else {
  11729. for _, k2 := range v2 {
  11730. ee.EncodeInt(int64(int16(k2)))
  11731. ee.EncodeUint(uint64(v[int16(k2)]))
  11732. }
  11733. }
  11734. } else {
  11735. if esep {
  11736. for k2, v2 := range v {
  11737. ee.WriteMapElemKey()
  11738. ee.EncodeInt(int64(k2))
  11739. ee.WriteMapElemValue()
  11740. ee.EncodeUint(uint64(v2))
  11741. }
  11742. } else {
  11743. for k2, v2 := range v {
  11744. ee.EncodeInt(int64(k2))
  11745. ee.EncodeUint(uint64(v2))
  11746. }
  11747. }
  11748. }
  11749. ee.WriteMapEnd()
  11750. }
  11751. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  11752. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  11753. }
  11754. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  11755. if v == nil {
  11756. e.e.EncodeNil()
  11757. return
  11758. }
  11759. ee, esep := e.e, e.hh.hasElemSeparators()
  11760. ee.WriteMapStart(len(v))
  11761. if e.h.Canonical {
  11762. v2 := make([]int64, len(v))
  11763. var i uint
  11764. for k := range v {
  11765. v2[i] = int64(k)
  11766. i++
  11767. }
  11768. sort.Sort(intSlice(v2))
  11769. if esep {
  11770. for _, k2 := range v2 {
  11771. ee.WriteMapElemKey()
  11772. ee.EncodeInt(int64(int16(k2)))
  11773. ee.WriteMapElemValue()
  11774. ee.EncodeUint(uint64(v[int16(k2)]))
  11775. }
  11776. } else {
  11777. for _, k2 := range v2 {
  11778. ee.EncodeInt(int64(int16(k2)))
  11779. ee.EncodeUint(uint64(v[int16(k2)]))
  11780. }
  11781. }
  11782. } else {
  11783. if esep {
  11784. for k2, v2 := range v {
  11785. ee.WriteMapElemKey()
  11786. ee.EncodeInt(int64(k2))
  11787. ee.WriteMapElemValue()
  11788. ee.EncodeUint(uint64(v2))
  11789. }
  11790. } else {
  11791. for k2, v2 := range v {
  11792. ee.EncodeInt(int64(k2))
  11793. ee.EncodeUint(uint64(v2))
  11794. }
  11795. }
  11796. }
  11797. ee.WriteMapEnd()
  11798. }
  11799. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  11800. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  11801. }
  11802. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  11803. if v == nil {
  11804. e.e.EncodeNil()
  11805. return
  11806. }
  11807. ee, esep := e.e, e.hh.hasElemSeparators()
  11808. ee.WriteMapStart(len(v))
  11809. if e.h.Canonical {
  11810. v2 := make([]int64, len(v))
  11811. var i uint
  11812. for k := range v {
  11813. v2[i] = int64(k)
  11814. i++
  11815. }
  11816. sort.Sort(intSlice(v2))
  11817. if esep {
  11818. for _, k2 := range v2 {
  11819. ee.WriteMapElemKey()
  11820. ee.EncodeInt(int64(int16(k2)))
  11821. ee.WriteMapElemValue()
  11822. ee.EncodeUint(uint64(v[int16(k2)]))
  11823. }
  11824. } else {
  11825. for _, k2 := range v2 {
  11826. ee.EncodeInt(int64(int16(k2)))
  11827. ee.EncodeUint(uint64(v[int16(k2)]))
  11828. }
  11829. }
  11830. } else {
  11831. if esep {
  11832. for k2, v2 := range v {
  11833. ee.WriteMapElemKey()
  11834. ee.EncodeInt(int64(k2))
  11835. ee.WriteMapElemValue()
  11836. ee.EncodeUint(uint64(v2))
  11837. }
  11838. } else {
  11839. for k2, v2 := range v {
  11840. ee.EncodeInt(int64(k2))
  11841. ee.EncodeUint(uint64(v2))
  11842. }
  11843. }
  11844. }
  11845. ee.WriteMapEnd()
  11846. }
  11847. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  11848. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  11849. }
  11850. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  11851. if v == nil {
  11852. e.e.EncodeNil()
  11853. return
  11854. }
  11855. ee, esep := e.e, e.hh.hasElemSeparators()
  11856. ee.WriteMapStart(len(v))
  11857. if e.h.Canonical {
  11858. v2 := make([]int64, len(v))
  11859. var i uint
  11860. for k := range v {
  11861. v2[i] = int64(k)
  11862. i++
  11863. }
  11864. sort.Sort(intSlice(v2))
  11865. if esep {
  11866. for _, k2 := range v2 {
  11867. ee.WriteMapElemKey()
  11868. ee.EncodeInt(int64(int16(k2)))
  11869. ee.WriteMapElemValue()
  11870. ee.EncodeUint(uint64(v[int16(k2)]))
  11871. }
  11872. } else {
  11873. for _, k2 := range v2 {
  11874. ee.EncodeInt(int64(int16(k2)))
  11875. ee.EncodeUint(uint64(v[int16(k2)]))
  11876. }
  11877. }
  11878. } else {
  11879. if esep {
  11880. for k2, v2 := range v {
  11881. ee.WriteMapElemKey()
  11882. ee.EncodeInt(int64(k2))
  11883. ee.WriteMapElemValue()
  11884. ee.EncodeUint(uint64(v2))
  11885. }
  11886. } else {
  11887. for k2, v2 := range v {
  11888. ee.EncodeInt(int64(k2))
  11889. ee.EncodeUint(uint64(v2))
  11890. }
  11891. }
  11892. }
  11893. ee.WriteMapEnd()
  11894. }
  11895. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  11896. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  11897. }
  11898. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  11899. if v == nil {
  11900. e.e.EncodeNil()
  11901. return
  11902. }
  11903. ee, esep := e.e, e.hh.hasElemSeparators()
  11904. ee.WriteMapStart(len(v))
  11905. if e.h.Canonical {
  11906. v2 := make([]int64, len(v))
  11907. var i uint
  11908. for k := range v {
  11909. v2[i] = int64(k)
  11910. i++
  11911. }
  11912. sort.Sort(intSlice(v2))
  11913. if esep {
  11914. for _, k2 := range v2 {
  11915. ee.WriteMapElemKey()
  11916. ee.EncodeInt(int64(int16(k2)))
  11917. ee.WriteMapElemValue()
  11918. e.encode(v[int16(k2)])
  11919. }
  11920. } else {
  11921. for _, k2 := range v2 {
  11922. ee.EncodeInt(int64(int16(k2)))
  11923. e.encode(v[int16(k2)])
  11924. }
  11925. }
  11926. } else {
  11927. if esep {
  11928. for k2, v2 := range v {
  11929. ee.WriteMapElemKey()
  11930. ee.EncodeInt(int64(k2))
  11931. ee.WriteMapElemValue()
  11932. e.encode(v2)
  11933. }
  11934. } else {
  11935. for k2, v2 := range v {
  11936. ee.EncodeInt(int64(k2))
  11937. e.encode(v2)
  11938. }
  11939. }
  11940. }
  11941. ee.WriteMapEnd()
  11942. }
  11943. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  11944. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  11945. }
  11946. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  11947. if v == nil {
  11948. e.e.EncodeNil()
  11949. return
  11950. }
  11951. ee, esep := e.e, e.hh.hasElemSeparators()
  11952. ee.WriteMapStart(len(v))
  11953. if e.h.Canonical {
  11954. v2 := make([]int64, len(v))
  11955. var i uint
  11956. for k := range v {
  11957. v2[i] = int64(k)
  11958. i++
  11959. }
  11960. sort.Sort(intSlice(v2))
  11961. if esep {
  11962. for _, k2 := range v2 {
  11963. ee.WriteMapElemKey()
  11964. ee.EncodeInt(int64(int16(k2)))
  11965. ee.WriteMapElemValue()
  11966. ee.EncodeInt(int64(v[int16(k2)]))
  11967. }
  11968. } else {
  11969. for _, k2 := range v2 {
  11970. ee.EncodeInt(int64(int16(k2)))
  11971. ee.EncodeInt(int64(v[int16(k2)]))
  11972. }
  11973. }
  11974. } else {
  11975. if esep {
  11976. for k2, v2 := range v {
  11977. ee.WriteMapElemKey()
  11978. ee.EncodeInt(int64(k2))
  11979. ee.WriteMapElemValue()
  11980. ee.EncodeInt(int64(v2))
  11981. }
  11982. } else {
  11983. for k2, v2 := range v {
  11984. ee.EncodeInt(int64(k2))
  11985. ee.EncodeInt(int64(v2))
  11986. }
  11987. }
  11988. }
  11989. ee.WriteMapEnd()
  11990. }
  11991. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  11992. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  11993. }
  11994. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  11995. if v == nil {
  11996. e.e.EncodeNil()
  11997. return
  11998. }
  11999. ee, esep := e.e, e.hh.hasElemSeparators()
  12000. ee.WriteMapStart(len(v))
  12001. if e.h.Canonical {
  12002. v2 := make([]int64, len(v))
  12003. var i uint
  12004. for k := range v {
  12005. v2[i] = int64(k)
  12006. i++
  12007. }
  12008. sort.Sort(intSlice(v2))
  12009. if esep {
  12010. for _, k2 := range v2 {
  12011. ee.WriteMapElemKey()
  12012. ee.EncodeInt(int64(int16(k2)))
  12013. ee.WriteMapElemValue()
  12014. ee.EncodeInt(int64(v[int16(k2)]))
  12015. }
  12016. } else {
  12017. for _, k2 := range v2 {
  12018. ee.EncodeInt(int64(int16(k2)))
  12019. ee.EncodeInt(int64(v[int16(k2)]))
  12020. }
  12021. }
  12022. } else {
  12023. if esep {
  12024. for k2, v2 := range v {
  12025. ee.WriteMapElemKey()
  12026. ee.EncodeInt(int64(k2))
  12027. ee.WriteMapElemValue()
  12028. ee.EncodeInt(int64(v2))
  12029. }
  12030. } else {
  12031. for k2, v2 := range v {
  12032. ee.EncodeInt(int64(k2))
  12033. ee.EncodeInt(int64(v2))
  12034. }
  12035. }
  12036. }
  12037. ee.WriteMapEnd()
  12038. }
  12039. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  12040. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  12041. }
  12042. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  12043. if v == nil {
  12044. e.e.EncodeNil()
  12045. return
  12046. }
  12047. ee, esep := e.e, e.hh.hasElemSeparators()
  12048. ee.WriteMapStart(len(v))
  12049. if e.h.Canonical {
  12050. v2 := make([]int64, len(v))
  12051. var i uint
  12052. for k := range v {
  12053. v2[i] = int64(k)
  12054. i++
  12055. }
  12056. sort.Sort(intSlice(v2))
  12057. if esep {
  12058. for _, k2 := range v2 {
  12059. ee.WriteMapElemKey()
  12060. ee.EncodeInt(int64(int16(k2)))
  12061. ee.WriteMapElemValue()
  12062. ee.EncodeInt(int64(v[int16(k2)]))
  12063. }
  12064. } else {
  12065. for _, k2 := range v2 {
  12066. ee.EncodeInt(int64(int16(k2)))
  12067. ee.EncodeInt(int64(v[int16(k2)]))
  12068. }
  12069. }
  12070. } else {
  12071. if esep {
  12072. for k2, v2 := range v {
  12073. ee.WriteMapElemKey()
  12074. ee.EncodeInt(int64(k2))
  12075. ee.WriteMapElemValue()
  12076. ee.EncodeInt(int64(v2))
  12077. }
  12078. } else {
  12079. for k2, v2 := range v {
  12080. ee.EncodeInt(int64(k2))
  12081. ee.EncodeInt(int64(v2))
  12082. }
  12083. }
  12084. }
  12085. ee.WriteMapEnd()
  12086. }
  12087. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  12088. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  12089. }
  12090. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  12091. if v == nil {
  12092. e.e.EncodeNil()
  12093. return
  12094. }
  12095. ee, esep := e.e, e.hh.hasElemSeparators()
  12096. ee.WriteMapStart(len(v))
  12097. if e.h.Canonical {
  12098. v2 := make([]int64, len(v))
  12099. var i uint
  12100. for k := range v {
  12101. v2[i] = int64(k)
  12102. i++
  12103. }
  12104. sort.Sort(intSlice(v2))
  12105. if esep {
  12106. for _, k2 := range v2 {
  12107. ee.WriteMapElemKey()
  12108. ee.EncodeInt(int64(int16(k2)))
  12109. ee.WriteMapElemValue()
  12110. ee.EncodeInt(int64(v[int16(k2)]))
  12111. }
  12112. } else {
  12113. for _, k2 := range v2 {
  12114. ee.EncodeInt(int64(int16(k2)))
  12115. ee.EncodeInt(int64(v[int16(k2)]))
  12116. }
  12117. }
  12118. } else {
  12119. if esep {
  12120. for k2, v2 := range v {
  12121. ee.WriteMapElemKey()
  12122. ee.EncodeInt(int64(k2))
  12123. ee.WriteMapElemValue()
  12124. ee.EncodeInt(int64(v2))
  12125. }
  12126. } else {
  12127. for k2, v2 := range v {
  12128. ee.EncodeInt(int64(k2))
  12129. ee.EncodeInt(int64(v2))
  12130. }
  12131. }
  12132. }
  12133. ee.WriteMapEnd()
  12134. }
  12135. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  12136. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  12137. }
  12138. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  12139. if v == nil {
  12140. e.e.EncodeNil()
  12141. return
  12142. }
  12143. ee, esep := e.e, e.hh.hasElemSeparators()
  12144. ee.WriteMapStart(len(v))
  12145. if e.h.Canonical {
  12146. v2 := make([]int64, len(v))
  12147. var i uint
  12148. for k := range v {
  12149. v2[i] = int64(k)
  12150. i++
  12151. }
  12152. sort.Sort(intSlice(v2))
  12153. if esep {
  12154. for _, k2 := range v2 {
  12155. ee.WriteMapElemKey()
  12156. ee.EncodeInt(int64(int16(k2)))
  12157. ee.WriteMapElemValue()
  12158. ee.EncodeInt(int64(v[int16(k2)]))
  12159. }
  12160. } else {
  12161. for _, k2 := range v2 {
  12162. ee.EncodeInt(int64(int16(k2)))
  12163. ee.EncodeInt(int64(v[int16(k2)]))
  12164. }
  12165. }
  12166. } else {
  12167. if esep {
  12168. for k2, v2 := range v {
  12169. ee.WriteMapElemKey()
  12170. ee.EncodeInt(int64(k2))
  12171. ee.WriteMapElemValue()
  12172. ee.EncodeInt(int64(v2))
  12173. }
  12174. } else {
  12175. for k2, v2 := range v {
  12176. ee.EncodeInt(int64(k2))
  12177. ee.EncodeInt(int64(v2))
  12178. }
  12179. }
  12180. }
  12181. ee.WriteMapEnd()
  12182. }
  12183. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  12184. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  12185. }
  12186. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  12187. if v == nil {
  12188. e.e.EncodeNil()
  12189. return
  12190. }
  12191. ee, esep := e.e, e.hh.hasElemSeparators()
  12192. ee.WriteMapStart(len(v))
  12193. if e.h.Canonical {
  12194. v2 := make([]int64, len(v))
  12195. var i uint
  12196. for k := range v {
  12197. v2[i] = int64(k)
  12198. i++
  12199. }
  12200. sort.Sort(intSlice(v2))
  12201. if esep {
  12202. for _, k2 := range v2 {
  12203. ee.WriteMapElemKey()
  12204. ee.EncodeInt(int64(int16(k2)))
  12205. ee.WriteMapElemValue()
  12206. ee.EncodeFloat32(v[int16(k2)])
  12207. }
  12208. } else {
  12209. for _, k2 := range v2 {
  12210. ee.EncodeInt(int64(int16(k2)))
  12211. ee.EncodeFloat32(v[int16(k2)])
  12212. }
  12213. }
  12214. } else {
  12215. if esep {
  12216. for k2, v2 := range v {
  12217. ee.WriteMapElemKey()
  12218. ee.EncodeInt(int64(k2))
  12219. ee.WriteMapElemValue()
  12220. ee.EncodeFloat32(v2)
  12221. }
  12222. } else {
  12223. for k2, v2 := range v {
  12224. ee.EncodeInt(int64(k2))
  12225. ee.EncodeFloat32(v2)
  12226. }
  12227. }
  12228. }
  12229. ee.WriteMapEnd()
  12230. }
  12231. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  12232. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  12233. }
  12234. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  12235. if v == nil {
  12236. e.e.EncodeNil()
  12237. return
  12238. }
  12239. ee, esep := e.e, e.hh.hasElemSeparators()
  12240. ee.WriteMapStart(len(v))
  12241. if e.h.Canonical {
  12242. v2 := make([]int64, len(v))
  12243. var i uint
  12244. for k := range v {
  12245. v2[i] = int64(k)
  12246. i++
  12247. }
  12248. sort.Sort(intSlice(v2))
  12249. if esep {
  12250. for _, k2 := range v2 {
  12251. ee.WriteMapElemKey()
  12252. ee.EncodeInt(int64(int16(k2)))
  12253. ee.WriteMapElemValue()
  12254. ee.EncodeFloat64(v[int16(k2)])
  12255. }
  12256. } else {
  12257. for _, k2 := range v2 {
  12258. ee.EncodeInt(int64(int16(k2)))
  12259. ee.EncodeFloat64(v[int16(k2)])
  12260. }
  12261. }
  12262. } else {
  12263. if esep {
  12264. for k2, v2 := range v {
  12265. ee.WriteMapElemKey()
  12266. ee.EncodeInt(int64(k2))
  12267. ee.WriteMapElemValue()
  12268. ee.EncodeFloat64(v2)
  12269. }
  12270. } else {
  12271. for k2, v2 := range v {
  12272. ee.EncodeInt(int64(k2))
  12273. ee.EncodeFloat64(v2)
  12274. }
  12275. }
  12276. }
  12277. ee.WriteMapEnd()
  12278. }
  12279. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  12280. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  12281. }
  12282. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  12283. if v == nil {
  12284. e.e.EncodeNil()
  12285. return
  12286. }
  12287. ee, esep := e.e, e.hh.hasElemSeparators()
  12288. ee.WriteMapStart(len(v))
  12289. if e.h.Canonical {
  12290. v2 := make([]int64, len(v))
  12291. var i uint
  12292. for k := range v {
  12293. v2[i] = int64(k)
  12294. i++
  12295. }
  12296. sort.Sort(intSlice(v2))
  12297. if esep {
  12298. for _, k2 := range v2 {
  12299. ee.WriteMapElemKey()
  12300. ee.EncodeInt(int64(int16(k2)))
  12301. ee.WriteMapElemValue()
  12302. ee.EncodeBool(v[int16(k2)])
  12303. }
  12304. } else {
  12305. for _, k2 := range v2 {
  12306. ee.EncodeInt(int64(int16(k2)))
  12307. ee.EncodeBool(v[int16(k2)])
  12308. }
  12309. }
  12310. } else {
  12311. if esep {
  12312. for k2, v2 := range v {
  12313. ee.WriteMapElemKey()
  12314. ee.EncodeInt(int64(k2))
  12315. ee.WriteMapElemValue()
  12316. ee.EncodeBool(v2)
  12317. }
  12318. } else {
  12319. for k2, v2 := range v {
  12320. ee.EncodeInt(int64(k2))
  12321. ee.EncodeBool(v2)
  12322. }
  12323. }
  12324. }
  12325. ee.WriteMapEnd()
  12326. }
  12327. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  12328. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  12329. }
  12330. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  12331. if v == nil {
  12332. e.e.EncodeNil()
  12333. return
  12334. }
  12335. ee, esep := e.e, e.hh.hasElemSeparators()
  12336. ee.WriteMapStart(len(v))
  12337. if e.h.Canonical {
  12338. v2 := make([]int64, len(v))
  12339. var i uint
  12340. for k := range v {
  12341. v2[i] = int64(k)
  12342. i++
  12343. }
  12344. sort.Sort(intSlice(v2))
  12345. if esep {
  12346. for _, k2 := range v2 {
  12347. ee.WriteMapElemKey()
  12348. ee.EncodeInt(int64(int32(k2)))
  12349. ee.WriteMapElemValue()
  12350. e.encode(v[int32(k2)])
  12351. }
  12352. } else {
  12353. for _, k2 := range v2 {
  12354. ee.EncodeInt(int64(int32(k2)))
  12355. e.encode(v[int32(k2)])
  12356. }
  12357. }
  12358. } else {
  12359. if esep {
  12360. for k2, v2 := range v {
  12361. ee.WriteMapElemKey()
  12362. ee.EncodeInt(int64(k2))
  12363. ee.WriteMapElemValue()
  12364. e.encode(v2)
  12365. }
  12366. } else {
  12367. for k2, v2 := range v {
  12368. ee.EncodeInt(int64(k2))
  12369. e.encode(v2)
  12370. }
  12371. }
  12372. }
  12373. ee.WriteMapEnd()
  12374. }
  12375. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  12376. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  12377. }
  12378. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  12379. if v == nil {
  12380. e.e.EncodeNil()
  12381. return
  12382. }
  12383. ee, esep := e.e, e.hh.hasElemSeparators()
  12384. ee.WriteMapStart(len(v))
  12385. if e.h.Canonical {
  12386. v2 := make([]int64, len(v))
  12387. var i uint
  12388. for k := range v {
  12389. v2[i] = int64(k)
  12390. i++
  12391. }
  12392. sort.Sort(intSlice(v2))
  12393. if esep {
  12394. for _, k2 := range v2 {
  12395. ee.WriteMapElemKey()
  12396. ee.EncodeInt(int64(int32(k2)))
  12397. ee.WriteMapElemValue()
  12398. ee.EncodeStringEnc(cUTF8, v[int32(k2)])
  12399. }
  12400. } else {
  12401. for _, k2 := range v2 {
  12402. ee.EncodeInt(int64(int32(k2)))
  12403. ee.EncodeStringEnc(cUTF8, v[int32(k2)])
  12404. }
  12405. }
  12406. } else {
  12407. if esep {
  12408. for k2, v2 := range v {
  12409. ee.WriteMapElemKey()
  12410. ee.EncodeInt(int64(k2))
  12411. ee.WriteMapElemValue()
  12412. ee.EncodeStringEnc(cUTF8, v2)
  12413. }
  12414. } else {
  12415. for k2, v2 := range v {
  12416. ee.EncodeInt(int64(k2))
  12417. ee.EncodeStringEnc(cUTF8, v2)
  12418. }
  12419. }
  12420. }
  12421. ee.WriteMapEnd()
  12422. }
  12423. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  12424. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  12425. }
  12426. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  12427. if v == nil {
  12428. e.e.EncodeNil()
  12429. return
  12430. }
  12431. ee, esep := e.e, e.hh.hasElemSeparators()
  12432. ee.WriteMapStart(len(v))
  12433. if e.h.Canonical {
  12434. v2 := make([]int64, len(v))
  12435. var i uint
  12436. for k := range v {
  12437. v2[i] = int64(k)
  12438. i++
  12439. }
  12440. sort.Sort(intSlice(v2))
  12441. if esep {
  12442. for _, k2 := range v2 {
  12443. ee.WriteMapElemKey()
  12444. ee.EncodeInt(int64(int32(k2)))
  12445. ee.WriteMapElemValue()
  12446. ee.EncodeUint(uint64(v[int32(k2)]))
  12447. }
  12448. } else {
  12449. for _, k2 := range v2 {
  12450. ee.EncodeInt(int64(int32(k2)))
  12451. ee.EncodeUint(uint64(v[int32(k2)]))
  12452. }
  12453. }
  12454. } else {
  12455. if esep {
  12456. for k2, v2 := range v {
  12457. ee.WriteMapElemKey()
  12458. ee.EncodeInt(int64(k2))
  12459. ee.WriteMapElemValue()
  12460. ee.EncodeUint(uint64(v2))
  12461. }
  12462. } else {
  12463. for k2, v2 := range v {
  12464. ee.EncodeInt(int64(k2))
  12465. ee.EncodeUint(uint64(v2))
  12466. }
  12467. }
  12468. }
  12469. ee.WriteMapEnd()
  12470. }
  12471. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  12472. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  12473. }
  12474. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  12475. if v == nil {
  12476. e.e.EncodeNil()
  12477. return
  12478. }
  12479. ee, esep := e.e, e.hh.hasElemSeparators()
  12480. ee.WriteMapStart(len(v))
  12481. if e.h.Canonical {
  12482. v2 := make([]int64, len(v))
  12483. var i uint
  12484. for k := range v {
  12485. v2[i] = int64(k)
  12486. i++
  12487. }
  12488. sort.Sort(intSlice(v2))
  12489. if esep {
  12490. for _, k2 := range v2 {
  12491. ee.WriteMapElemKey()
  12492. ee.EncodeInt(int64(int32(k2)))
  12493. ee.WriteMapElemValue()
  12494. ee.EncodeUint(uint64(v[int32(k2)]))
  12495. }
  12496. } else {
  12497. for _, k2 := range v2 {
  12498. ee.EncodeInt(int64(int32(k2)))
  12499. ee.EncodeUint(uint64(v[int32(k2)]))
  12500. }
  12501. }
  12502. } else {
  12503. if esep {
  12504. for k2, v2 := range v {
  12505. ee.WriteMapElemKey()
  12506. ee.EncodeInt(int64(k2))
  12507. ee.WriteMapElemValue()
  12508. ee.EncodeUint(uint64(v2))
  12509. }
  12510. } else {
  12511. for k2, v2 := range v {
  12512. ee.EncodeInt(int64(k2))
  12513. ee.EncodeUint(uint64(v2))
  12514. }
  12515. }
  12516. }
  12517. ee.WriteMapEnd()
  12518. }
  12519. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  12520. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  12521. }
  12522. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  12523. if v == nil {
  12524. e.e.EncodeNil()
  12525. return
  12526. }
  12527. ee, esep := e.e, e.hh.hasElemSeparators()
  12528. ee.WriteMapStart(len(v))
  12529. if e.h.Canonical {
  12530. v2 := make([]int64, len(v))
  12531. var i uint
  12532. for k := range v {
  12533. v2[i] = int64(k)
  12534. i++
  12535. }
  12536. sort.Sort(intSlice(v2))
  12537. if esep {
  12538. for _, k2 := range v2 {
  12539. ee.WriteMapElemKey()
  12540. ee.EncodeInt(int64(int32(k2)))
  12541. ee.WriteMapElemValue()
  12542. ee.EncodeUint(uint64(v[int32(k2)]))
  12543. }
  12544. } else {
  12545. for _, k2 := range v2 {
  12546. ee.EncodeInt(int64(int32(k2)))
  12547. ee.EncodeUint(uint64(v[int32(k2)]))
  12548. }
  12549. }
  12550. } else {
  12551. if esep {
  12552. for k2, v2 := range v {
  12553. ee.WriteMapElemKey()
  12554. ee.EncodeInt(int64(k2))
  12555. ee.WriteMapElemValue()
  12556. ee.EncodeUint(uint64(v2))
  12557. }
  12558. } else {
  12559. for k2, v2 := range v {
  12560. ee.EncodeInt(int64(k2))
  12561. ee.EncodeUint(uint64(v2))
  12562. }
  12563. }
  12564. }
  12565. ee.WriteMapEnd()
  12566. }
  12567. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  12568. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  12569. }
  12570. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  12571. if v == nil {
  12572. e.e.EncodeNil()
  12573. return
  12574. }
  12575. ee, esep := e.e, e.hh.hasElemSeparators()
  12576. ee.WriteMapStart(len(v))
  12577. if e.h.Canonical {
  12578. v2 := make([]int64, len(v))
  12579. var i uint
  12580. for k := range v {
  12581. v2[i] = int64(k)
  12582. i++
  12583. }
  12584. sort.Sort(intSlice(v2))
  12585. if esep {
  12586. for _, k2 := range v2 {
  12587. ee.WriteMapElemKey()
  12588. ee.EncodeInt(int64(int32(k2)))
  12589. ee.WriteMapElemValue()
  12590. ee.EncodeUint(uint64(v[int32(k2)]))
  12591. }
  12592. } else {
  12593. for _, k2 := range v2 {
  12594. ee.EncodeInt(int64(int32(k2)))
  12595. ee.EncodeUint(uint64(v[int32(k2)]))
  12596. }
  12597. }
  12598. } else {
  12599. if esep {
  12600. for k2, v2 := range v {
  12601. ee.WriteMapElemKey()
  12602. ee.EncodeInt(int64(k2))
  12603. ee.WriteMapElemValue()
  12604. ee.EncodeUint(uint64(v2))
  12605. }
  12606. } else {
  12607. for k2, v2 := range v {
  12608. ee.EncodeInt(int64(k2))
  12609. ee.EncodeUint(uint64(v2))
  12610. }
  12611. }
  12612. }
  12613. ee.WriteMapEnd()
  12614. }
  12615. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  12616. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  12617. }
  12618. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  12619. if v == nil {
  12620. e.e.EncodeNil()
  12621. return
  12622. }
  12623. ee, esep := e.e, e.hh.hasElemSeparators()
  12624. ee.WriteMapStart(len(v))
  12625. if e.h.Canonical {
  12626. v2 := make([]int64, len(v))
  12627. var i uint
  12628. for k := range v {
  12629. v2[i] = int64(k)
  12630. i++
  12631. }
  12632. sort.Sort(intSlice(v2))
  12633. if esep {
  12634. for _, k2 := range v2 {
  12635. ee.WriteMapElemKey()
  12636. ee.EncodeInt(int64(int32(k2)))
  12637. ee.WriteMapElemValue()
  12638. ee.EncodeUint(uint64(v[int32(k2)]))
  12639. }
  12640. } else {
  12641. for _, k2 := range v2 {
  12642. ee.EncodeInt(int64(int32(k2)))
  12643. ee.EncodeUint(uint64(v[int32(k2)]))
  12644. }
  12645. }
  12646. } else {
  12647. if esep {
  12648. for k2, v2 := range v {
  12649. ee.WriteMapElemKey()
  12650. ee.EncodeInt(int64(k2))
  12651. ee.WriteMapElemValue()
  12652. ee.EncodeUint(uint64(v2))
  12653. }
  12654. } else {
  12655. for k2, v2 := range v {
  12656. ee.EncodeInt(int64(k2))
  12657. ee.EncodeUint(uint64(v2))
  12658. }
  12659. }
  12660. }
  12661. ee.WriteMapEnd()
  12662. }
  12663. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  12664. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  12665. }
  12666. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  12667. if v == nil {
  12668. e.e.EncodeNil()
  12669. return
  12670. }
  12671. ee, esep := e.e, e.hh.hasElemSeparators()
  12672. ee.WriteMapStart(len(v))
  12673. if e.h.Canonical {
  12674. v2 := make([]int64, len(v))
  12675. var i uint
  12676. for k := range v {
  12677. v2[i] = int64(k)
  12678. i++
  12679. }
  12680. sort.Sort(intSlice(v2))
  12681. if esep {
  12682. for _, k2 := range v2 {
  12683. ee.WriteMapElemKey()
  12684. ee.EncodeInt(int64(int32(k2)))
  12685. ee.WriteMapElemValue()
  12686. e.encode(v[int32(k2)])
  12687. }
  12688. } else {
  12689. for _, k2 := range v2 {
  12690. ee.EncodeInt(int64(int32(k2)))
  12691. e.encode(v[int32(k2)])
  12692. }
  12693. }
  12694. } else {
  12695. if esep {
  12696. for k2, v2 := range v {
  12697. ee.WriteMapElemKey()
  12698. ee.EncodeInt(int64(k2))
  12699. ee.WriteMapElemValue()
  12700. e.encode(v2)
  12701. }
  12702. } else {
  12703. for k2, v2 := range v {
  12704. ee.EncodeInt(int64(k2))
  12705. e.encode(v2)
  12706. }
  12707. }
  12708. }
  12709. ee.WriteMapEnd()
  12710. }
  12711. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  12712. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  12713. }
  12714. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  12715. if v == nil {
  12716. e.e.EncodeNil()
  12717. return
  12718. }
  12719. ee, esep := e.e, e.hh.hasElemSeparators()
  12720. ee.WriteMapStart(len(v))
  12721. if e.h.Canonical {
  12722. v2 := make([]int64, len(v))
  12723. var i uint
  12724. for k := range v {
  12725. v2[i] = int64(k)
  12726. i++
  12727. }
  12728. sort.Sort(intSlice(v2))
  12729. if esep {
  12730. for _, k2 := range v2 {
  12731. ee.WriteMapElemKey()
  12732. ee.EncodeInt(int64(int32(k2)))
  12733. ee.WriteMapElemValue()
  12734. ee.EncodeInt(int64(v[int32(k2)]))
  12735. }
  12736. } else {
  12737. for _, k2 := range v2 {
  12738. ee.EncodeInt(int64(int32(k2)))
  12739. ee.EncodeInt(int64(v[int32(k2)]))
  12740. }
  12741. }
  12742. } else {
  12743. if esep {
  12744. for k2, v2 := range v {
  12745. ee.WriteMapElemKey()
  12746. ee.EncodeInt(int64(k2))
  12747. ee.WriteMapElemValue()
  12748. ee.EncodeInt(int64(v2))
  12749. }
  12750. } else {
  12751. for k2, v2 := range v {
  12752. ee.EncodeInt(int64(k2))
  12753. ee.EncodeInt(int64(v2))
  12754. }
  12755. }
  12756. }
  12757. ee.WriteMapEnd()
  12758. }
  12759. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  12760. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  12761. }
  12762. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  12763. if v == nil {
  12764. e.e.EncodeNil()
  12765. return
  12766. }
  12767. ee, esep := e.e, e.hh.hasElemSeparators()
  12768. ee.WriteMapStart(len(v))
  12769. if e.h.Canonical {
  12770. v2 := make([]int64, len(v))
  12771. var i uint
  12772. for k := range v {
  12773. v2[i] = int64(k)
  12774. i++
  12775. }
  12776. sort.Sort(intSlice(v2))
  12777. if esep {
  12778. for _, k2 := range v2 {
  12779. ee.WriteMapElemKey()
  12780. ee.EncodeInt(int64(int32(k2)))
  12781. ee.WriteMapElemValue()
  12782. ee.EncodeInt(int64(v[int32(k2)]))
  12783. }
  12784. } else {
  12785. for _, k2 := range v2 {
  12786. ee.EncodeInt(int64(int32(k2)))
  12787. ee.EncodeInt(int64(v[int32(k2)]))
  12788. }
  12789. }
  12790. } else {
  12791. if esep {
  12792. for k2, v2 := range v {
  12793. ee.WriteMapElemKey()
  12794. ee.EncodeInt(int64(k2))
  12795. ee.WriteMapElemValue()
  12796. ee.EncodeInt(int64(v2))
  12797. }
  12798. } else {
  12799. for k2, v2 := range v {
  12800. ee.EncodeInt(int64(k2))
  12801. ee.EncodeInt(int64(v2))
  12802. }
  12803. }
  12804. }
  12805. ee.WriteMapEnd()
  12806. }
  12807. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  12808. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  12809. }
  12810. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  12811. if v == nil {
  12812. e.e.EncodeNil()
  12813. return
  12814. }
  12815. ee, esep := e.e, e.hh.hasElemSeparators()
  12816. ee.WriteMapStart(len(v))
  12817. if e.h.Canonical {
  12818. v2 := make([]int64, len(v))
  12819. var i uint
  12820. for k := range v {
  12821. v2[i] = int64(k)
  12822. i++
  12823. }
  12824. sort.Sort(intSlice(v2))
  12825. if esep {
  12826. for _, k2 := range v2 {
  12827. ee.WriteMapElemKey()
  12828. ee.EncodeInt(int64(int32(k2)))
  12829. ee.WriteMapElemValue()
  12830. ee.EncodeInt(int64(v[int32(k2)]))
  12831. }
  12832. } else {
  12833. for _, k2 := range v2 {
  12834. ee.EncodeInt(int64(int32(k2)))
  12835. ee.EncodeInt(int64(v[int32(k2)]))
  12836. }
  12837. }
  12838. } else {
  12839. if esep {
  12840. for k2, v2 := range v {
  12841. ee.WriteMapElemKey()
  12842. ee.EncodeInt(int64(k2))
  12843. ee.WriteMapElemValue()
  12844. ee.EncodeInt(int64(v2))
  12845. }
  12846. } else {
  12847. for k2, v2 := range v {
  12848. ee.EncodeInt(int64(k2))
  12849. ee.EncodeInt(int64(v2))
  12850. }
  12851. }
  12852. }
  12853. ee.WriteMapEnd()
  12854. }
  12855. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  12856. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  12857. }
  12858. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  12859. if v == nil {
  12860. e.e.EncodeNil()
  12861. return
  12862. }
  12863. ee, esep := e.e, e.hh.hasElemSeparators()
  12864. ee.WriteMapStart(len(v))
  12865. if e.h.Canonical {
  12866. v2 := make([]int64, len(v))
  12867. var i uint
  12868. for k := range v {
  12869. v2[i] = int64(k)
  12870. i++
  12871. }
  12872. sort.Sort(intSlice(v2))
  12873. if esep {
  12874. for _, k2 := range v2 {
  12875. ee.WriteMapElemKey()
  12876. ee.EncodeInt(int64(int32(k2)))
  12877. ee.WriteMapElemValue()
  12878. ee.EncodeInt(int64(v[int32(k2)]))
  12879. }
  12880. } else {
  12881. for _, k2 := range v2 {
  12882. ee.EncodeInt(int64(int32(k2)))
  12883. ee.EncodeInt(int64(v[int32(k2)]))
  12884. }
  12885. }
  12886. } else {
  12887. if esep {
  12888. for k2, v2 := range v {
  12889. ee.WriteMapElemKey()
  12890. ee.EncodeInt(int64(k2))
  12891. ee.WriteMapElemValue()
  12892. ee.EncodeInt(int64(v2))
  12893. }
  12894. } else {
  12895. for k2, v2 := range v {
  12896. ee.EncodeInt(int64(k2))
  12897. ee.EncodeInt(int64(v2))
  12898. }
  12899. }
  12900. }
  12901. ee.WriteMapEnd()
  12902. }
  12903. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  12904. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  12905. }
  12906. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  12907. if v == nil {
  12908. e.e.EncodeNil()
  12909. return
  12910. }
  12911. ee, esep := e.e, e.hh.hasElemSeparators()
  12912. ee.WriteMapStart(len(v))
  12913. if e.h.Canonical {
  12914. v2 := make([]int64, len(v))
  12915. var i uint
  12916. for k := range v {
  12917. v2[i] = int64(k)
  12918. i++
  12919. }
  12920. sort.Sort(intSlice(v2))
  12921. if esep {
  12922. for _, k2 := range v2 {
  12923. ee.WriteMapElemKey()
  12924. ee.EncodeInt(int64(int32(k2)))
  12925. ee.WriteMapElemValue()
  12926. ee.EncodeInt(int64(v[int32(k2)]))
  12927. }
  12928. } else {
  12929. for _, k2 := range v2 {
  12930. ee.EncodeInt(int64(int32(k2)))
  12931. ee.EncodeInt(int64(v[int32(k2)]))
  12932. }
  12933. }
  12934. } else {
  12935. if esep {
  12936. for k2, v2 := range v {
  12937. ee.WriteMapElemKey()
  12938. ee.EncodeInt(int64(k2))
  12939. ee.WriteMapElemValue()
  12940. ee.EncodeInt(int64(v2))
  12941. }
  12942. } else {
  12943. for k2, v2 := range v {
  12944. ee.EncodeInt(int64(k2))
  12945. ee.EncodeInt(int64(v2))
  12946. }
  12947. }
  12948. }
  12949. ee.WriteMapEnd()
  12950. }
  12951. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  12952. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  12953. }
  12954. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  12955. if v == nil {
  12956. e.e.EncodeNil()
  12957. return
  12958. }
  12959. ee, esep := e.e, e.hh.hasElemSeparators()
  12960. ee.WriteMapStart(len(v))
  12961. if e.h.Canonical {
  12962. v2 := make([]int64, len(v))
  12963. var i uint
  12964. for k := range v {
  12965. v2[i] = int64(k)
  12966. i++
  12967. }
  12968. sort.Sort(intSlice(v2))
  12969. if esep {
  12970. for _, k2 := range v2 {
  12971. ee.WriteMapElemKey()
  12972. ee.EncodeInt(int64(int32(k2)))
  12973. ee.WriteMapElemValue()
  12974. ee.EncodeFloat32(v[int32(k2)])
  12975. }
  12976. } else {
  12977. for _, k2 := range v2 {
  12978. ee.EncodeInt(int64(int32(k2)))
  12979. ee.EncodeFloat32(v[int32(k2)])
  12980. }
  12981. }
  12982. } else {
  12983. if esep {
  12984. for k2, v2 := range v {
  12985. ee.WriteMapElemKey()
  12986. ee.EncodeInt(int64(k2))
  12987. ee.WriteMapElemValue()
  12988. ee.EncodeFloat32(v2)
  12989. }
  12990. } else {
  12991. for k2, v2 := range v {
  12992. ee.EncodeInt(int64(k2))
  12993. ee.EncodeFloat32(v2)
  12994. }
  12995. }
  12996. }
  12997. ee.WriteMapEnd()
  12998. }
  12999. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  13000. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  13001. }
  13002. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  13003. if v == nil {
  13004. e.e.EncodeNil()
  13005. return
  13006. }
  13007. ee, esep := e.e, e.hh.hasElemSeparators()
  13008. ee.WriteMapStart(len(v))
  13009. if e.h.Canonical {
  13010. v2 := make([]int64, len(v))
  13011. var i uint
  13012. for k := range v {
  13013. v2[i] = int64(k)
  13014. i++
  13015. }
  13016. sort.Sort(intSlice(v2))
  13017. if esep {
  13018. for _, k2 := range v2 {
  13019. ee.WriteMapElemKey()
  13020. ee.EncodeInt(int64(int32(k2)))
  13021. ee.WriteMapElemValue()
  13022. ee.EncodeFloat64(v[int32(k2)])
  13023. }
  13024. } else {
  13025. for _, k2 := range v2 {
  13026. ee.EncodeInt(int64(int32(k2)))
  13027. ee.EncodeFloat64(v[int32(k2)])
  13028. }
  13029. }
  13030. } else {
  13031. if esep {
  13032. for k2, v2 := range v {
  13033. ee.WriteMapElemKey()
  13034. ee.EncodeInt(int64(k2))
  13035. ee.WriteMapElemValue()
  13036. ee.EncodeFloat64(v2)
  13037. }
  13038. } else {
  13039. for k2, v2 := range v {
  13040. ee.EncodeInt(int64(k2))
  13041. ee.EncodeFloat64(v2)
  13042. }
  13043. }
  13044. }
  13045. ee.WriteMapEnd()
  13046. }
  13047. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  13048. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  13049. }
  13050. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  13051. if v == nil {
  13052. e.e.EncodeNil()
  13053. return
  13054. }
  13055. ee, esep := e.e, e.hh.hasElemSeparators()
  13056. ee.WriteMapStart(len(v))
  13057. if e.h.Canonical {
  13058. v2 := make([]int64, len(v))
  13059. var i uint
  13060. for k := range v {
  13061. v2[i] = int64(k)
  13062. i++
  13063. }
  13064. sort.Sort(intSlice(v2))
  13065. if esep {
  13066. for _, k2 := range v2 {
  13067. ee.WriteMapElemKey()
  13068. ee.EncodeInt(int64(int32(k2)))
  13069. ee.WriteMapElemValue()
  13070. ee.EncodeBool(v[int32(k2)])
  13071. }
  13072. } else {
  13073. for _, k2 := range v2 {
  13074. ee.EncodeInt(int64(int32(k2)))
  13075. ee.EncodeBool(v[int32(k2)])
  13076. }
  13077. }
  13078. } else {
  13079. if esep {
  13080. for k2, v2 := range v {
  13081. ee.WriteMapElemKey()
  13082. ee.EncodeInt(int64(k2))
  13083. ee.WriteMapElemValue()
  13084. ee.EncodeBool(v2)
  13085. }
  13086. } else {
  13087. for k2, v2 := range v {
  13088. ee.EncodeInt(int64(k2))
  13089. ee.EncodeBool(v2)
  13090. }
  13091. }
  13092. }
  13093. ee.WriteMapEnd()
  13094. }
  13095. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  13096. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  13097. }
  13098. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  13099. if v == nil {
  13100. e.e.EncodeNil()
  13101. return
  13102. }
  13103. ee, esep := e.e, e.hh.hasElemSeparators()
  13104. ee.WriteMapStart(len(v))
  13105. if e.h.Canonical {
  13106. v2 := make([]int64, len(v))
  13107. var i uint
  13108. for k := range v {
  13109. v2[i] = int64(k)
  13110. i++
  13111. }
  13112. sort.Sort(intSlice(v2))
  13113. if esep {
  13114. for _, k2 := range v2 {
  13115. ee.WriteMapElemKey()
  13116. ee.EncodeInt(int64(int64(k2)))
  13117. ee.WriteMapElemValue()
  13118. e.encode(v[int64(k2)])
  13119. }
  13120. } else {
  13121. for _, k2 := range v2 {
  13122. ee.EncodeInt(int64(int64(k2)))
  13123. e.encode(v[int64(k2)])
  13124. }
  13125. }
  13126. } else {
  13127. if esep {
  13128. for k2, v2 := range v {
  13129. ee.WriteMapElemKey()
  13130. ee.EncodeInt(int64(k2))
  13131. ee.WriteMapElemValue()
  13132. e.encode(v2)
  13133. }
  13134. } else {
  13135. for k2, v2 := range v {
  13136. ee.EncodeInt(int64(k2))
  13137. e.encode(v2)
  13138. }
  13139. }
  13140. }
  13141. ee.WriteMapEnd()
  13142. }
  13143. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  13144. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  13145. }
  13146. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  13147. if v == nil {
  13148. e.e.EncodeNil()
  13149. return
  13150. }
  13151. ee, esep := e.e, e.hh.hasElemSeparators()
  13152. ee.WriteMapStart(len(v))
  13153. if e.h.Canonical {
  13154. v2 := make([]int64, len(v))
  13155. var i uint
  13156. for k := range v {
  13157. v2[i] = int64(k)
  13158. i++
  13159. }
  13160. sort.Sort(intSlice(v2))
  13161. if esep {
  13162. for _, k2 := range v2 {
  13163. ee.WriteMapElemKey()
  13164. ee.EncodeInt(int64(int64(k2)))
  13165. ee.WriteMapElemValue()
  13166. ee.EncodeStringEnc(cUTF8, v[int64(k2)])
  13167. }
  13168. } else {
  13169. for _, k2 := range v2 {
  13170. ee.EncodeInt(int64(int64(k2)))
  13171. ee.EncodeStringEnc(cUTF8, v[int64(k2)])
  13172. }
  13173. }
  13174. } else {
  13175. if esep {
  13176. for k2, v2 := range v {
  13177. ee.WriteMapElemKey()
  13178. ee.EncodeInt(int64(k2))
  13179. ee.WriteMapElemValue()
  13180. ee.EncodeStringEnc(cUTF8, v2)
  13181. }
  13182. } else {
  13183. for k2, v2 := range v {
  13184. ee.EncodeInt(int64(k2))
  13185. ee.EncodeStringEnc(cUTF8, v2)
  13186. }
  13187. }
  13188. }
  13189. ee.WriteMapEnd()
  13190. }
  13191. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  13192. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  13193. }
  13194. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  13195. if v == nil {
  13196. e.e.EncodeNil()
  13197. return
  13198. }
  13199. ee, esep := e.e, e.hh.hasElemSeparators()
  13200. ee.WriteMapStart(len(v))
  13201. if e.h.Canonical {
  13202. v2 := make([]int64, len(v))
  13203. var i uint
  13204. for k := range v {
  13205. v2[i] = int64(k)
  13206. i++
  13207. }
  13208. sort.Sort(intSlice(v2))
  13209. if esep {
  13210. for _, k2 := range v2 {
  13211. ee.WriteMapElemKey()
  13212. ee.EncodeInt(int64(int64(k2)))
  13213. ee.WriteMapElemValue()
  13214. ee.EncodeUint(uint64(v[int64(k2)]))
  13215. }
  13216. } else {
  13217. for _, k2 := range v2 {
  13218. ee.EncodeInt(int64(int64(k2)))
  13219. ee.EncodeUint(uint64(v[int64(k2)]))
  13220. }
  13221. }
  13222. } else {
  13223. if esep {
  13224. for k2, v2 := range v {
  13225. ee.WriteMapElemKey()
  13226. ee.EncodeInt(int64(k2))
  13227. ee.WriteMapElemValue()
  13228. ee.EncodeUint(uint64(v2))
  13229. }
  13230. } else {
  13231. for k2, v2 := range v {
  13232. ee.EncodeInt(int64(k2))
  13233. ee.EncodeUint(uint64(v2))
  13234. }
  13235. }
  13236. }
  13237. ee.WriteMapEnd()
  13238. }
  13239. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  13240. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  13241. }
  13242. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  13243. if v == nil {
  13244. e.e.EncodeNil()
  13245. return
  13246. }
  13247. ee, esep := e.e, e.hh.hasElemSeparators()
  13248. ee.WriteMapStart(len(v))
  13249. if e.h.Canonical {
  13250. v2 := make([]int64, len(v))
  13251. var i uint
  13252. for k := range v {
  13253. v2[i] = int64(k)
  13254. i++
  13255. }
  13256. sort.Sort(intSlice(v2))
  13257. if esep {
  13258. for _, k2 := range v2 {
  13259. ee.WriteMapElemKey()
  13260. ee.EncodeInt(int64(int64(k2)))
  13261. ee.WriteMapElemValue()
  13262. ee.EncodeUint(uint64(v[int64(k2)]))
  13263. }
  13264. } else {
  13265. for _, k2 := range v2 {
  13266. ee.EncodeInt(int64(int64(k2)))
  13267. ee.EncodeUint(uint64(v[int64(k2)]))
  13268. }
  13269. }
  13270. } else {
  13271. if esep {
  13272. for k2, v2 := range v {
  13273. ee.WriteMapElemKey()
  13274. ee.EncodeInt(int64(k2))
  13275. ee.WriteMapElemValue()
  13276. ee.EncodeUint(uint64(v2))
  13277. }
  13278. } else {
  13279. for k2, v2 := range v {
  13280. ee.EncodeInt(int64(k2))
  13281. ee.EncodeUint(uint64(v2))
  13282. }
  13283. }
  13284. }
  13285. ee.WriteMapEnd()
  13286. }
  13287. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  13288. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  13289. }
  13290. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  13291. if v == nil {
  13292. e.e.EncodeNil()
  13293. return
  13294. }
  13295. ee, esep := e.e, e.hh.hasElemSeparators()
  13296. ee.WriteMapStart(len(v))
  13297. if e.h.Canonical {
  13298. v2 := make([]int64, len(v))
  13299. var i uint
  13300. for k := range v {
  13301. v2[i] = int64(k)
  13302. i++
  13303. }
  13304. sort.Sort(intSlice(v2))
  13305. if esep {
  13306. for _, k2 := range v2 {
  13307. ee.WriteMapElemKey()
  13308. ee.EncodeInt(int64(int64(k2)))
  13309. ee.WriteMapElemValue()
  13310. ee.EncodeUint(uint64(v[int64(k2)]))
  13311. }
  13312. } else {
  13313. for _, k2 := range v2 {
  13314. ee.EncodeInt(int64(int64(k2)))
  13315. ee.EncodeUint(uint64(v[int64(k2)]))
  13316. }
  13317. }
  13318. } else {
  13319. if esep {
  13320. for k2, v2 := range v {
  13321. ee.WriteMapElemKey()
  13322. ee.EncodeInt(int64(k2))
  13323. ee.WriteMapElemValue()
  13324. ee.EncodeUint(uint64(v2))
  13325. }
  13326. } else {
  13327. for k2, v2 := range v {
  13328. ee.EncodeInt(int64(k2))
  13329. ee.EncodeUint(uint64(v2))
  13330. }
  13331. }
  13332. }
  13333. ee.WriteMapEnd()
  13334. }
  13335. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  13336. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  13337. }
  13338. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  13339. if v == nil {
  13340. e.e.EncodeNil()
  13341. return
  13342. }
  13343. ee, esep := e.e, e.hh.hasElemSeparators()
  13344. ee.WriteMapStart(len(v))
  13345. if e.h.Canonical {
  13346. v2 := make([]int64, len(v))
  13347. var i uint
  13348. for k := range v {
  13349. v2[i] = int64(k)
  13350. i++
  13351. }
  13352. sort.Sort(intSlice(v2))
  13353. if esep {
  13354. for _, k2 := range v2 {
  13355. ee.WriteMapElemKey()
  13356. ee.EncodeInt(int64(int64(k2)))
  13357. ee.WriteMapElemValue()
  13358. ee.EncodeUint(uint64(v[int64(k2)]))
  13359. }
  13360. } else {
  13361. for _, k2 := range v2 {
  13362. ee.EncodeInt(int64(int64(k2)))
  13363. ee.EncodeUint(uint64(v[int64(k2)]))
  13364. }
  13365. }
  13366. } else {
  13367. if esep {
  13368. for k2, v2 := range v {
  13369. ee.WriteMapElemKey()
  13370. ee.EncodeInt(int64(k2))
  13371. ee.WriteMapElemValue()
  13372. ee.EncodeUint(uint64(v2))
  13373. }
  13374. } else {
  13375. for k2, v2 := range v {
  13376. ee.EncodeInt(int64(k2))
  13377. ee.EncodeUint(uint64(v2))
  13378. }
  13379. }
  13380. }
  13381. ee.WriteMapEnd()
  13382. }
  13383. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  13384. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  13385. }
  13386. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  13387. if v == nil {
  13388. e.e.EncodeNil()
  13389. return
  13390. }
  13391. ee, esep := e.e, e.hh.hasElemSeparators()
  13392. ee.WriteMapStart(len(v))
  13393. if e.h.Canonical {
  13394. v2 := make([]int64, len(v))
  13395. var i uint
  13396. for k := range v {
  13397. v2[i] = int64(k)
  13398. i++
  13399. }
  13400. sort.Sort(intSlice(v2))
  13401. if esep {
  13402. for _, k2 := range v2 {
  13403. ee.WriteMapElemKey()
  13404. ee.EncodeInt(int64(int64(k2)))
  13405. ee.WriteMapElemValue()
  13406. ee.EncodeUint(uint64(v[int64(k2)]))
  13407. }
  13408. } else {
  13409. for _, k2 := range v2 {
  13410. ee.EncodeInt(int64(int64(k2)))
  13411. ee.EncodeUint(uint64(v[int64(k2)]))
  13412. }
  13413. }
  13414. } else {
  13415. if esep {
  13416. for k2, v2 := range v {
  13417. ee.WriteMapElemKey()
  13418. ee.EncodeInt(int64(k2))
  13419. ee.WriteMapElemValue()
  13420. ee.EncodeUint(uint64(v2))
  13421. }
  13422. } else {
  13423. for k2, v2 := range v {
  13424. ee.EncodeInt(int64(k2))
  13425. ee.EncodeUint(uint64(v2))
  13426. }
  13427. }
  13428. }
  13429. ee.WriteMapEnd()
  13430. }
  13431. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  13432. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  13433. }
  13434. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  13435. if v == nil {
  13436. e.e.EncodeNil()
  13437. return
  13438. }
  13439. ee, esep := e.e, e.hh.hasElemSeparators()
  13440. ee.WriteMapStart(len(v))
  13441. if e.h.Canonical {
  13442. v2 := make([]int64, len(v))
  13443. var i uint
  13444. for k := range v {
  13445. v2[i] = int64(k)
  13446. i++
  13447. }
  13448. sort.Sort(intSlice(v2))
  13449. if esep {
  13450. for _, k2 := range v2 {
  13451. ee.WriteMapElemKey()
  13452. ee.EncodeInt(int64(int64(k2)))
  13453. ee.WriteMapElemValue()
  13454. e.encode(v[int64(k2)])
  13455. }
  13456. } else {
  13457. for _, k2 := range v2 {
  13458. ee.EncodeInt(int64(int64(k2)))
  13459. e.encode(v[int64(k2)])
  13460. }
  13461. }
  13462. } else {
  13463. if esep {
  13464. for k2, v2 := range v {
  13465. ee.WriteMapElemKey()
  13466. ee.EncodeInt(int64(k2))
  13467. ee.WriteMapElemValue()
  13468. e.encode(v2)
  13469. }
  13470. } else {
  13471. for k2, v2 := range v {
  13472. ee.EncodeInt(int64(k2))
  13473. e.encode(v2)
  13474. }
  13475. }
  13476. }
  13477. ee.WriteMapEnd()
  13478. }
  13479. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  13480. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  13481. }
  13482. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  13483. if v == nil {
  13484. e.e.EncodeNil()
  13485. return
  13486. }
  13487. ee, esep := e.e, e.hh.hasElemSeparators()
  13488. ee.WriteMapStart(len(v))
  13489. if e.h.Canonical {
  13490. v2 := make([]int64, len(v))
  13491. var i uint
  13492. for k := range v {
  13493. v2[i] = int64(k)
  13494. i++
  13495. }
  13496. sort.Sort(intSlice(v2))
  13497. if esep {
  13498. for _, k2 := range v2 {
  13499. ee.WriteMapElemKey()
  13500. ee.EncodeInt(int64(int64(k2)))
  13501. ee.WriteMapElemValue()
  13502. ee.EncodeInt(int64(v[int64(k2)]))
  13503. }
  13504. } else {
  13505. for _, k2 := range v2 {
  13506. ee.EncodeInt(int64(int64(k2)))
  13507. ee.EncodeInt(int64(v[int64(k2)]))
  13508. }
  13509. }
  13510. } else {
  13511. if esep {
  13512. for k2, v2 := range v {
  13513. ee.WriteMapElemKey()
  13514. ee.EncodeInt(int64(k2))
  13515. ee.WriteMapElemValue()
  13516. ee.EncodeInt(int64(v2))
  13517. }
  13518. } else {
  13519. for k2, v2 := range v {
  13520. ee.EncodeInt(int64(k2))
  13521. ee.EncodeInt(int64(v2))
  13522. }
  13523. }
  13524. }
  13525. ee.WriteMapEnd()
  13526. }
  13527. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  13528. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  13529. }
  13530. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  13531. if v == nil {
  13532. e.e.EncodeNil()
  13533. return
  13534. }
  13535. ee, esep := e.e, e.hh.hasElemSeparators()
  13536. ee.WriteMapStart(len(v))
  13537. if e.h.Canonical {
  13538. v2 := make([]int64, len(v))
  13539. var i uint
  13540. for k := range v {
  13541. v2[i] = int64(k)
  13542. i++
  13543. }
  13544. sort.Sort(intSlice(v2))
  13545. if esep {
  13546. for _, k2 := range v2 {
  13547. ee.WriteMapElemKey()
  13548. ee.EncodeInt(int64(int64(k2)))
  13549. ee.WriteMapElemValue()
  13550. ee.EncodeInt(int64(v[int64(k2)]))
  13551. }
  13552. } else {
  13553. for _, k2 := range v2 {
  13554. ee.EncodeInt(int64(int64(k2)))
  13555. ee.EncodeInt(int64(v[int64(k2)]))
  13556. }
  13557. }
  13558. } else {
  13559. if esep {
  13560. for k2, v2 := range v {
  13561. ee.WriteMapElemKey()
  13562. ee.EncodeInt(int64(k2))
  13563. ee.WriteMapElemValue()
  13564. ee.EncodeInt(int64(v2))
  13565. }
  13566. } else {
  13567. for k2, v2 := range v {
  13568. ee.EncodeInt(int64(k2))
  13569. ee.EncodeInt(int64(v2))
  13570. }
  13571. }
  13572. }
  13573. ee.WriteMapEnd()
  13574. }
  13575. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  13576. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  13577. }
  13578. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  13579. if v == nil {
  13580. e.e.EncodeNil()
  13581. return
  13582. }
  13583. ee, esep := e.e, e.hh.hasElemSeparators()
  13584. ee.WriteMapStart(len(v))
  13585. if e.h.Canonical {
  13586. v2 := make([]int64, len(v))
  13587. var i uint
  13588. for k := range v {
  13589. v2[i] = int64(k)
  13590. i++
  13591. }
  13592. sort.Sort(intSlice(v2))
  13593. if esep {
  13594. for _, k2 := range v2 {
  13595. ee.WriteMapElemKey()
  13596. ee.EncodeInt(int64(int64(k2)))
  13597. ee.WriteMapElemValue()
  13598. ee.EncodeInt(int64(v[int64(k2)]))
  13599. }
  13600. } else {
  13601. for _, k2 := range v2 {
  13602. ee.EncodeInt(int64(int64(k2)))
  13603. ee.EncodeInt(int64(v[int64(k2)]))
  13604. }
  13605. }
  13606. } else {
  13607. if esep {
  13608. for k2, v2 := range v {
  13609. ee.WriteMapElemKey()
  13610. ee.EncodeInt(int64(k2))
  13611. ee.WriteMapElemValue()
  13612. ee.EncodeInt(int64(v2))
  13613. }
  13614. } else {
  13615. for k2, v2 := range v {
  13616. ee.EncodeInt(int64(k2))
  13617. ee.EncodeInt(int64(v2))
  13618. }
  13619. }
  13620. }
  13621. ee.WriteMapEnd()
  13622. }
  13623. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  13624. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  13625. }
  13626. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  13627. if v == nil {
  13628. e.e.EncodeNil()
  13629. return
  13630. }
  13631. ee, esep := e.e, e.hh.hasElemSeparators()
  13632. ee.WriteMapStart(len(v))
  13633. if e.h.Canonical {
  13634. v2 := make([]int64, len(v))
  13635. var i uint
  13636. for k := range v {
  13637. v2[i] = int64(k)
  13638. i++
  13639. }
  13640. sort.Sort(intSlice(v2))
  13641. if esep {
  13642. for _, k2 := range v2 {
  13643. ee.WriteMapElemKey()
  13644. ee.EncodeInt(int64(int64(k2)))
  13645. ee.WriteMapElemValue()
  13646. ee.EncodeInt(int64(v[int64(k2)]))
  13647. }
  13648. } else {
  13649. for _, k2 := range v2 {
  13650. ee.EncodeInt(int64(int64(k2)))
  13651. ee.EncodeInt(int64(v[int64(k2)]))
  13652. }
  13653. }
  13654. } else {
  13655. if esep {
  13656. for k2, v2 := range v {
  13657. ee.WriteMapElemKey()
  13658. ee.EncodeInt(int64(k2))
  13659. ee.WriteMapElemValue()
  13660. ee.EncodeInt(int64(v2))
  13661. }
  13662. } else {
  13663. for k2, v2 := range v {
  13664. ee.EncodeInt(int64(k2))
  13665. ee.EncodeInt(int64(v2))
  13666. }
  13667. }
  13668. }
  13669. ee.WriteMapEnd()
  13670. }
  13671. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  13672. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  13673. }
  13674. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  13675. if v == nil {
  13676. e.e.EncodeNil()
  13677. return
  13678. }
  13679. ee, esep := e.e, e.hh.hasElemSeparators()
  13680. ee.WriteMapStart(len(v))
  13681. if e.h.Canonical {
  13682. v2 := make([]int64, len(v))
  13683. var i uint
  13684. for k := range v {
  13685. v2[i] = int64(k)
  13686. i++
  13687. }
  13688. sort.Sort(intSlice(v2))
  13689. if esep {
  13690. for _, k2 := range v2 {
  13691. ee.WriteMapElemKey()
  13692. ee.EncodeInt(int64(int64(k2)))
  13693. ee.WriteMapElemValue()
  13694. ee.EncodeInt(int64(v[int64(k2)]))
  13695. }
  13696. } else {
  13697. for _, k2 := range v2 {
  13698. ee.EncodeInt(int64(int64(k2)))
  13699. ee.EncodeInt(int64(v[int64(k2)]))
  13700. }
  13701. }
  13702. } else {
  13703. if esep {
  13704. for k2, v2 := range v {
  13705. ee.WriteMapElemKey()
  13706. ee.EncodeInt(int64(k2))
  13707. ee.WriteMapElemValue()
  13708. ee.EncodeInt(int64(v2))
  13709. }
  13710. } else {
  13711. for k2, v2 := range v {
  13712. ee.EncodeInt(int64(k2))
  13713. ee.EncodeInt(int64(v2))
  13714. }
  13715. }
  13716. }
  13717. ee.WriteMapEnd()
  13718. }
  13719. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  13720. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  13721. }
  13722. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  13723. if v == nil {
  13724. e.e.EncodeNil()
  13725. return
  13726. }
  13727. ee, esep := e.e, e.hh.hasElemSeparators()
  13728. ee.WriteMapStart(len(v))
  13729. if e.h.Canonical {
  13730. v2 := make([]int64, len(v))
  13731. var i uint
  13732. for k := range v {
  13733. v2[i] = int64(k)
  13734. i++
  13735. }
  13736. sort.Sort(intSlice(v2))
  13737. if esep {
  13738. for _, k2 := range v2 {
  13739. ee.WriteMapElemKey()
  13740. ee.EncodeInt(int64(int64(k2)))
  13741. ee.WriteMapElemValue()
  13742. ee.EncodeFloat32(v[int64(k2)])
  13743. }
  13744. } else {
  13745. for _, k2 := range v2 {
  13746. ee.EncodeInt(int64(int64(k2)))
  13747. ee.EncodeFloat32(v[int64(k2)])
  13748. }
  13749. }
  13750. } else {
  13751. if esep {
  13752. for k2, v2 := range v {
  13753. ee.WriteMapElemKey()
  13754. ee.EncodeInt(int64(k2))
  13755. ee.WriteMapElemValue()
  13756. ee.EncodeFloat32(v2)
  13757. }
  13758. } else {
  13759. for k2, v2 := range v {
  13760. ee.EncodeInt(int64(k2))
  13761. ee.EncodeFloat32(v2)
  13762. }
  13763. }
  13764. }
  13765. ee.WriteMapEnd()
  13766. }
  13767. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  13768. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  13769. }
  13770. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  13771. if v == nil {
  13772. e.e.EncodeNil()
  13773. return
  13774. }
  13775. ee, esep := e.e, e.hh.hasElemSeparators()
  13776. ee.WriteMapStart(len(v))
  13777. if e.h.Canonical {
  13778. v2 := make([]int64, len(v))
  13779. var i uint
  13780. for k := range v {
  13781. v2[i] = int64(k)
  13782. i++
  13783. }
  13784. sort.Sort(intSlice(v2))
  13785. if esep {
  13786. for _, k2 := range v2 {
  13787. ee.WriteMapElemKey()
  13788. ee.EncodeInt(int64(int64(k2)))
  13789. ee.WriteMapElemValue()
  13790. ee.EncodeFloat64(v[int64(k2)])
  13791. }
  13792. } else {
  13793. for _, k2 := range v2 {
  13794. ee.EncodeInt(int64(int64(k2)))
  13795. ee.EncodeFloat64(v[int64(k2)])
  13796. }
  13797. }
  13798. } else {
  13799. if esep {
  13800. for k2, v2 := range v {
  13801. ee.WriteMapElemKey()
  13802. ee.EncodeInt(int64(k2))
  13803. ee.WriteMapElemValue()
  13804. ee.EncodeFloat64(v2)
  13805. }
  13806. } else {
  13807. for k2, v2 := range v {
  13808. ee.EncodeInt(int64(k2))
  13809. ee.EncodeFloat64(v2)
  13810. }
  13811. }
  13812. }
  13813. ee.WriteMapEnd()
  13814. }
  13815. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  13816. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  13817. }
  13818. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  13819. if v == nil {
  13820. e.e.EncodeNil()
  13821. return
  13822. }
  13823. ee, esep := e.e, e.hh.hasElemSeparators()
  13824. ee.WriteMapStart(len(v))
  13825. if e.h.Canonical {
  13826. v2 := make([]int64, len(v))
  13827. var i uint
  13828. for k := range v {
  13829. v2[i] = int64(k)
  13830. i++
  13831. }
  13832. sort.Sort(intSlice(v2))
  13833. if esep {
  13834. for _, k2 := range v2 {
  13835. ee.WriteMapElemKey()
  13836. ee.EncodeInt(int64(int64(k2)))
  13837. ee.WriteMapElemValue()
  13838. ee.EncodeBool(v[int64(k2)])
  13839. }
  13840. } else {
  13841. for _, k2 := range v2 {
  13842. ee.EncodeInt(int64(int64(k2)))
  13843. ee.EncodeBool(v[int64(k2)])
  13844. }
  13845. }
  13846. } else {
  13847. if esep {
  13848. for k2, v2 := range v {
  13849. ee.WriteMapElemKey()
  13850. ee.EncodeInt(int64(k2))
  13851. ee.WriteMapElemValue()
  13852. ee.EncodeBool(v2)
  13853. }
  13854. } else {
  13855. for k2, v2 := range v {
  13856. ee.EncodeInt(int64(k2))
  13857. ee.EncodeBool(v2)
  13858. }
  13859. }
  13860. }
  13861. ee.WriteMapEnd()
  13862. }
  13863. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  13864. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  13865. }
  13866. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  13867. if v == nil {
  13868. e.e.EncodeNil()
  13869. return
  13870. }
  13871. ee, esep := e.e, e.hh.hasElemSeparators()
  13872. ee.WriteMapStart(len(v))
  13873. if e.h.Canonical {
  13874. v2 := make([]bool, len(v))
  13875. var i uint
  13876. for k := range v {
  13877. v2[i] = bool(k)
  13878. i++
  13879. }
  13880. sort.Sort(boolSlice(v2))
  13881. if esep {
  13882. for _, k2 := range v2 {
  13883. ee.WriteMapElemKey()
  13884. ee.EncodeBool(bool(k2))
  13885. ee.WriteMapElemValue()
  13886. e.encode(v[bool(k2)])
  13887. }
  13888. } else {
  13889. for _, k2 := range v2 {
  13890. ee.EncodeBool(bool(k2))
  13891. e.encode(v[bool(k2)])
  13892. }
  13893. }
  13894. } else {
  13895. if esep {
  13896. for k2, v2 := range v {
  13897. ee.WriteMapElemKey()
  13898. ee.EncodeBool(k2)
  13899. ee.WriteMapElemValue()
  13900. e.encode(v2)
  13901. }
  13902. } else {
  13903. for k2, v2 := range v {
  13904. ee.EncodeBool(k2)
  13905. e.encode(v2)
  13906. }
  13907. }
  13908. }
  13909. ee.WriteMapEnd()
  13910. }
  13911. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  13912. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  13913. }
  13914. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  13915. if v == nil {
  13916. e.e.EncodeNil()
  13917. return
  13918. }
  13919. ee, esep := e.e, e.hh.hasElemSeparators()
  13920. ee.WriteMapStart(len(v))
  13921. if e.h.Canonical {
  13922. v2 := make([]bool, len(v))
  13923. var i uint
  13924. for k := range v {
  13925. v2[i] = bool(k)
  13926. i++
  13927. }
  13928. sort.Sort(boolSlice(v2))
  13929. if esep {
  13930. for _, k2 := range v2 {
  13931. ee.WriteMapElemKey()
  13932. ee.EncodeBool(bool(k2))
  13933. ee.WriteMapElemValue()
  13934. ee.EncodeStringEnc(cUTF8, v[bool(k2)])
  13935. }
  13936. } else {
  13937. for _, k2 := range v2 {
  13938. ee.EncodeBool(bool(k2))
  13939. ee.EncodeStringEnc(cUTF8, v[bool(k2)])
  13940. }
  13941. }
  13942. } else {
  13943. if esep {
  13944. for k2, v2 := range v {
  13945. ee.WriteMapElemKey()
  13946. ee.EncodeBool(k2)
  13947. ee.WriteMapElemValue()
  13948. ee.EncodeStringEnc(cUTF8, v2)
  13949. }
  13950. } else {
  13951. for k2, v2 := range v {
  13952. ee.EncodeBool(k2)
  13953. ee.EncodeStringEnc(cUTF8, v2)
  13954. }
  13955. }
  13956. }
  13957. ee.WriteMapEnd()
  13958. }
  13959. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  13960. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  13961. }
  13962. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  13963. if v == nil {
  13964. e.e.EncodeNil()
  13965. return
  13966. }
  13967. ee, esep := e.e, e.hh.hasElemSeparators()
  13968. ee.WriteMapStart(len(v))
  13969. if e.h.Canonical {
  13970. v2 := make([]bool, len(v))
  13971. var i uint
  13972. for k := range v {
  13973. v2[i] = bool(k)
  13974. i++
  13975. }
  13976. sort.Sort(boolSlice(v2))
  13977. if esep {
  13978. for _, k2 := range v2 {
  13979. ee.WriteMapElemKey()
  13980. ee.EncodeBool(bool(k2))
  13981. ee.WriteMapElemValue()
  13982. ee.EncodeUint(uint64(v[bool(k2)]))
  13983. }
  13984. } else {
  13985. for _, k2 := range v2 {
  13986. ee.EncodeBool(bool(k2))
  13987. ee.EncodeUint(uint64(v[bool(k2)]))
  13988. }
  13989. }
  13990. } else {
  13991. if esep {
  13992. for k2, v2 := range v {
  13993. ee.WriteMapElemKey()
  13994. ee.EncodeBool(k2)
  13995. ee.WriteMapElemValue()
  13996. ee.EncodeUint(uint64(v2))
  13997. }
  13998. } else {
  13999. for k2, v2 := range v {
  14000. ee.EncodeBool(k2)
  14001. ee.EncodeUint(uint64(v2))
  14002. }
  14003. }
  14004. }
  14005. ee.WriteMapEnd()
  14006. }
  14007. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  14008. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  14009. }
  14010. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  14011. if v == nil {
  14012. e.e.EncodeNil()
  14013. return
  14014. }
  14015. ee, esep := e.e, e.hh.hasElemSeparators()
  14016. ee.WriteMapStart(len(v))
  14017. if e.h.Canonical {
  14018. v2 := make([]bool, len(v))
  14019. var i uint
  14020. for k := range v {
  14021. v2[i] = bool(k)
  14022. i++
  14023. }
  14024. sort.Sort(boolSlice(v2))
  14025. if esep {
  14026. for _, k2 := range v2 {
  14027. ee.WriteMapElemKey()
  14028. ee.EncodeBool(bool(k2))
  14029. ee.WriteMapElemValue()
  14030. ee.EncodeUint(uint64(v[bool(k2)]))
  14031. }
  14032. } else {
  14033. for _, k2 := range v2 {
  14034. ee.EncodeBool(bool(k2))
  14035. ee.EncodeUint(uint64(v[bool(k2)]))
  14036. }
  14037. }
  14038. } else {
  14039. if esep {
  14040. for k2, v2 := range v {
  14041. ee.WriteMapElemKey()
  14042. ee.EncodeBool(k2)
  14043. ee.WriteMapElemValue()
  14044. ee.EncodeUint(uint64(v2))
  14045. }
  14046. } else {
  14047. for k2, v2 := range v {
  14048. ee.EncodeBool(k2)
  14049. ee.EncodeUint(uint64(v2))
  14050. }
  14051. }
  14052. }
  14053. ee.WriteMapEnd()
  14054. }
  14055. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  14056. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  14057. }
  14058. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  14059. if v == nil {
  14060. e.e.EncodeNil()
  14061. return
  14062. }
  14063. ee, esep := e.e, e.hh.hasElemSeparators()
  14064. ee.WriteMapStart(len(v))
  14065. if e.h.Canonical {
  14066. v2 := make([]bool, len(v))
  14067. var i uint
  14068. for k := range v {
  14069. v2[i] = bool(k)
  14070. i++
  14071. }
  14072. sort.Sort(boolSlice(v2))
  14073. if esep {
  14074. for _, k2 := range v2 {
  14075. ee.WriteMapElemKey()
  14076. ee.EncodeBool(bool(k2))
  14077. ee.WriteMapElemValue()
  14078. ee.EncodeUint(uint64(v[bool(k2)]))
  14079. }
  14080. } else {
  14081. for _, k2 := range v2 {
  14082. ee.EncodeBool(bool(k2))
  14083. ee.EncodeUint(uint64(v[bool(k2)]))
  14084. }
  14085. }
  14086. } else {
  14087. if esep {
  14088. for k2, v2 := range v {
  14089. ee.WriteMapElemKey()
  14090. ee.EncodeBool(k2)
  14091. ee.WriteMapElemValue()
  14092. ee.EncodeUint(uint64(v2))
  14093. }
  14094. } else {
  14095. for k2, v2 := range v {
  14096. ee.EncodeBool(k2)
  14097. ee.EncodeUint(uint64(v2))
  14098. }
  14099. }
  14100. }
  14101. ee.WriteMapEnd()
  14102. }
  14103. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  14104. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  14105. }
  14106. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  14107. if v == nil {
  14108. e.e.EncodeNil()
  14109. return
  14110. }
  14111. ee, esep := e.e, e.hh.hasElemSeparators()
  14112. ee.WriteMapStart(len(v))
  14113. if e.h.Canonical {
  14114. v2 := make([]bool, len(v))
  14115. var i uint
  14116. for k := range v {
  14117. v2[i] = bool(k)
  14118. i++
  14119. }
  14120. sort.Sort(boolSlice(v2))
  14121. if esep {
  14122. for _, k2 := range v2 {
  14123. ee.WriteMapElemKey()
  14124. ee.EncodeBool(bool(k2))
  14125. ee.WriteMapElemValue()
  14126. ee.EncodeUint(uint64(v[bool(k2)]))
  14127. }
  14128. } else {
  14129. for _, k2 := range v2 {
  14130. ee.EncodeBool(bool(k2))
  14131. ee.EncodeUint(uint64(v[bool(k2)]))
  14132. }
  14133. }
  14134. } else {
  14135. if esep {
  14136. for k2, v2 := range v {
  14137. ee.WriteMapElemKey()
  14138. ee.EncodeBool(k2)
  14139. ee.WriteMapElemValue()
  14140. ee.EncodeUint(uint64(v2))
  14141. }
  14142. } else {
  14143. for k2, v2 := range v {
  14144. ee.EncodeBool(k2)
  14145. ee.EncodeUint(uint64(v2))
  14146. }
  14147. }
  14148. }
  14149. ee.WriteMapEnd()
  14150. }
  14151. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  14152. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  14153. }
  14154. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  14155. if v == nil {
  14156. e.e.EncodeNil()
  14157. return
  14158. }
  14159. ee, esep := e.e, e.hh.hasElemSeparators()
  14160. ee.WriteMapStart(len(v))
  14161. if e.h.Canonical {
  14162. v2 := make([]bool, len(v))
  14163. var i uint
  14164. for k := range v {
  14165. v2[i] = bool(k)
  14166. i++
  14167. }
  14168. sort.Sort(boolSlice(v2))
  14169. if esep {
  14170. for _, k2 := range v2 {
  14171. ee.WriteMapElemKey()
  14172. ee.EncodeBool(bool(k2))
  14173. ee.WriteMapElemValue()
  14174. ee.EncodeUint(uint64(v[bool(k2)]))
  14175. }
  14176. } else {
  14177. for _, k2 := range v2 {
  14178. ee.EncodeBool(bool(k2))
  14179. ee.EncodeUint(uint64(v[bool(k2)]))
  14180. }
  14181. }
  14182. } else {
  14183. if esep {
  14184. for k2, v2 := range v {
  14185. ee.WriteMapElemKey()
  14186. ee.EncodeBool(k2)
  14187. ee.WriteMapElemValue()
  14188. ee.EncodeUint(uint64(v2))
  14189. }
  14190. } else {
  14191. for k2, v2 := range v {
  14192. ee.EncodeBool(k2)
  14193. ee.EncodeUint(uint64(v2))
  14194. }
  14195. }
  14196. }
  14197. ee.WriteMapEnd()
  14198. }
  14199. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  14200. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  14201. }
  14202. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  14203. if v == nil {
  14204. e.e.EncodeNil()
  14205. return
  14206. }
  14207. ee, esep := e.e, e.hh.hasElemSeparators()
  14208. ee.WriteMapStart(len(v))
  14209. if e.h.Canonical {
  14210. v2 := make([]bool, len(v))
  14211. var i uint
  14212. for k := range v {
  14213. v2[i] = bool(k)
  14214. i++
  14215. }
  14216. sort.Sort(boolSlice(v2))
  14217. if esep {
  14218. for _, k2 := range v2 {
  14219. ee.WriteMapElemKey()
  14220. ee.EncodeBool(bool(k2))
  14221. ee.WriteMapElemValue()
  14222. e.encode(v[bool(k2)])
  14223. }
  14224. } else {
  14225. for _, k2 := range v2 {
  14226. ee.EncodeBool(bool(k2))
  14227. e.encode(v[bool(k2)])
  14228. }
  14229. }
  14230. } else {
  14231. if esep {
  14232. for k2, v2 := range v {
  14233. ee.WriteMapElemKey()
  14234. ee.EncodeBool(k2)
  14235. ee.WriteMapElemValue()
  14236. e.encode(v2)
  14237. }
  14238. } else {
  14239. for k2, v2 := range v {
  14240. ee.EncodeBool(k2)
  14241. e.encode(v2)
  14242. }
  14243. }
  14244. }
  14245. ee.WriteMapEnd()
  14246. }
  14247. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  14248. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  14249. }
  14250. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  14251. if v == nil {
  14252. e.e.EncodeNil()
  14253. return
  14254. }
  14255. ee, esep := e.e, e.hh.hasElemSeparators()
  14256. ee.WriteMapStart(len(v))
  14257. if e.h.Canonical {
  14258. v2 := make([]bool, len(v))
  14259. var i uint
  14260. for k := range v {
  14261. v2[i] = bool(k)
  14262. i++
  14263. }
  14264. sort.Sort(boolSlice(v2))
  14265. if esep {
  14266. for _, k2 := range v2 {
  14267. ee.WriteMapElemKey()
  14268. ee.EncodeBool(bool(k2))
  14269. ee.WriteMapElemValue()
  14270. ee.EncodeInt(int64(v[bool(k2)]))
  14271. }
  14272. } else {
  14273. for _, k2 := range v2 {
  14274. ee.EncodeBool(bool(k2))
  14275. ee.EncodeInt(int64(v[bool(k2)]))
  14276. }
  14277. }
  14278. } else {
  14279. if esep {
  14280. for k2, v2 := range v {
  14281. ee.WriteMapElemKey()
  14282. ee.EncodeBool(k2)
  14283. ee.WriteMapElemValue()
  14284. ee.EncodeInt(int64(v2))
  14285. }
  14286. } else {
  14287. for k2, v2 := range v {
  14288. ee.EncodeBool(k2)
  14289. ee.EncodeInt(int64(v2))
  14290. }
  14291. }
  14292. }
  14293. ee.WriteMapEnd()
  14294. }
  14295. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  14296. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  14297. }
  14298. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  14299. if v == nil {
  14300. e.e.EncodeNil()
  14301. return
  14302. }
  14303. ee, esep := e.e, e.hh.hasElemSeparators()
  14304. ee.WriteMapStart(len(v))
  14305. if e.h.Canonical {
  14306. v2 := make([]bool, len(v))
  14307. var i uint
  14308. for k := range v {
  14309. v2[i] = bool(k)
  14310. i++
  14311. }
  14312. sort.Sort(boolSlice(v2))
  14313. if esep {
  14314. for _, k2 := range v2 {
  14315. ee.WriteMapElemKey()
  14316. ee.EncodeBool(bool(k2))
  14317. ee.WriteMapElemValue()
  14318. ee.EncodeInt(int64(v[bool(k2)]))
  14319. }
  14320. } else {
  14321. for _, k2 := range v2 {
  14322. ee.EncodeBool(bool(k2))
  14323. ee.EncodeInt(int64(v[bool(k2)]))
  14324. }
  14325. }
  14326. } else {
  14327. if esep {
  14328. for k2, v2 := range v {
  14329. ee.WriteMapElemKey()
  14330. ee.EncodeBool(k2)
  14331. ee.WriteMapElemValue()
  14332. ee.EncodeInt(int64(v2))
  14333. }
  14334. } else {
  14335. for k2, v2 := range v {
  14336. ee.EncodeBool(k2)
  14337. ee.EncodeInt(int64(v2))
  14338. }
  14339. }
  14340. }
  14341. ee.WriteMapEnd()
  14342. }
  14343. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  14344. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  14345. }
  14346. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  14347. if v == nil {
  14348. e.e.EncodeNil()
  14349. return
  14350. }
  14351. ee, esep := e.e, e.hh.hasElemSeparators()
  14352. ee.WriteMapStart(len(v))
  14353. if e.h.Canonical {
  14354. v2 := make([]bool, len(v))
  14355. var i uint
  14356. for k := range v {
  14357. v2[i] = bool(k)
  14358. i++
  14359. }
  14360. sort.Sort(boolSlice(v2))
  14361. if esep {
  14362. for _, k2 := range v2 {
  14363. ee.WriteMapElemKey()
  14364. ee.EncodeBool(bool(k2))
  14365. ee.WriteMapElemValue()
  14366. ee.EncodeInt(int64(v[bool(k2)]))
  14367. }
  14368. } else {
  14369. for _, k2 := range v2 {
  14370. ee.EncodeBool(bool(k2))
  14371. ee.EncodeInt(int64(v[bool(k2)]))
  14372. }
  14373. }
  14374. } else {
  14375. if esep {
  14376. for k2, v2 := range v {
  14377. ee.WriteMapElemKey()
  14378. ee.EncodeBool(k2)
  14379. ee.WriteMapElemValue()
  14380. ee.EncodeInt(int64(v2))
  14381. }
  14382. } else {
  14383. for k2, v2 := range v {
  14384. ee.EncodeBool(k2)
  14385. ee.EncodeInt(int64(v2))
  14386. }
  14387. }
  14388. }
  14389. ee.WriteMapEnd()
  14390. }
  14391. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  14392. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  14393. }
  14394. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  14395. if v == nil {
  14396. e.e.EncodeNil()
  14397. return
  14398. }
  14399. ee, esep := e.e, e.hh.hasElemSeparators()
  14400. ee.WriteMapStart(len(v))
  14401. if e.h.Canonical {
  14402. v2 := make([]bool, len(v))
  14403. var i uint
  14404. for k := range v {
  14405. v2[i] = bool(k)
  14406. i++
  14407. }
  14408. sort.Sort(boolSlice(v2))
  14409. if esep {
  14410. for _, k2 := range v2 {
  14411. ee.WriteMapElemKey()
  14412. ee.EncodeBool(bool(k2))
  14413. ee.WriteMapElemValue()
  14414. ee.EncodeInt(int64(v[bool(k2)]))
  14415. }
  14416. } else {
  14417. for _, k2 := range v2 {
  14418. ee.EncodeBool(bool(k2))
  14419. ee.EncodeInt(int64(v[bool(k2)]))
  14420. }
  14421. }
  14422. } else {
  14423. if esep {
  14424. for k2, v2 := range v {
  14425. ee.WriteMapElemKey()
  14426. ee.EncodeBool(k2)
  14427. ee.WriteMapElemValue()
  14428. ee.EncodeInt(int64(v2))
  14429. }
  14430. } else {
  14431. for k2, v2 := range v {
  14432. ee.EncodeBool(k2)
  14433. ee.EncodeInt(int64(v2))
  14434. }
  14435. }
  14436. }
  14437. ee.WriteMapEnd()
  14438. }
  14439. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  14440. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  14441. }
  14442. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  14443. if v == nil {
  14444. e.e.EncodeNil()
  14445. return
  14446. }
  14447. ee, esep := e.e, e.hh.hasElemSeparators()
  14448. ee.WriteMapStart(len(v))
  14449. if e.h.Canonical {
  14450. v2 := make([]bool, len(v))
  14451. var i uint
  14452. for k := range v {
  14453. v2[i] = bool(k)
  14454. i++
  14455. }
  14456. sort.Sort(boolSlice(v2))
  14457. if esep {
  14458. for _, k2 := range v2 {
  14459. ee.WriteMapElemKey()
  14460. ee.EncodeBool(bool(k2))
  14461. ee.WriteMapElemValue()
  14462. ee.EncodeInt(int64(v[bool(k2)]))
  14463. }
  14464. } else {
  14465. for _, k2 := range v2 {
  14466. ee.EncodeBool(bool(k2))
  14467. ee.EncodeInt(int64(v[bool(k2)]))
  14468. }
  14469. }
  14470. } else {
  14471. if esep {
  14472. for k2, v2 := range v {
  14473. ee.WriteMapElemKey()
  14474. ee.EncodeBool(k2)
  14475. ee.WriteMapElemValue()
  14476. ee.EncodeInt(int64(v2))
  14477. }
  14478. } else {
  14479. for k2, v2 := range v {
  14480. ee.EncodeBool(k2)
  14481. ee.EncodeInt(int64(v2))
  14482. }
  14483. }
  14484. }
  14485. ee.WriteMapEnd()
  14486. }
  14487. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  14488. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  14489. }
  14490. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  14491. if v == nil {
  14492. e.e.EncodeNil()
  14493. return
  14494. }
  14495. ee, esep := e.e, e.hh.hasElemSeparators()
  14496. ee.WriteMapStart(len(v))
  14497. if e.h.Canonical {
  14498. v2 := make([]bool, len(v))
  14499. var i uint
  14500. for k := range v {
  14501. v2[i] = bool(k)
  14502. i++
  14503. }
  14504. sort.Sort(boolSlice(v2))
  14505. if esep {
  14506. for _, k2 := range v2 {
  14507. ee.WriteMapElemKey()
  14508. ee.EncodeBool(bool(k2))
  14509. ee.WriteMapElemValue()
  14510. ee.EncodeFloat32(v[bool(k2)])
  14511. }
  14512. } else {
  14513. for _, k2 := range v2 {
  14514. ee.EncodeBool(bool(k2))
  14515. ee.EncodeFloat32(v[bool(k2)])
  14516. }
  14517. }
  14518. } else {
  14519. if esep {
  14520. for k2, v2 := range v {
  14521. ee.WriteMapElemKey()
  14522. ee.EncodeBool(k2)
  14523. ee.WriteMapElemValue()
  14524. ee.EncodeFloat32(v2)
  14525. }
  14526. } else {
  14527. for k2, v2 := range v {
  14528. ee.EncodeBool(k2)
  14529. ee.EncodeFloat32(v2)
  14530. }
  14531. }
  14532. }
  14533. ee.WriteMapEnd()
  14534. }
  14535. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  14536. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  14537. }
  14538. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  14539. if v == nil {
  14540. e.e.EncodeNil()
  14541. return
  14542. }
  14543. ee, esep := e.e, e.hh.hasElemSeparators()
  14544. ee.WriteMapStart(len(v))
  14545. if e.h.Canonical {
  14546. v2 := make([]bool, len(v))
  14547. var i uint
  14548. for k := range v {
  14549. v2[i] = bool(k)
  14550. i++
  14551. }
  14552. sort.Sort(boolSlice(v2))
  14553. if esep {
  14554. for _, k2 := range v2 {
  14555. ee.WriteMapElemKey()
  14556. ee.EncodeBool(bool(k2))
  14557. ee.WriteMapElemValue()
  14558. ee.EncodeFloat64(v[bool(k2)])
  14559. }
  14560. } else {
  14561. for _, k2 := range v2 {
  14562. ee.EncodeBool(bool(k2))
  14563. ee.EncodeFloat64(v[bool(k2)])
  14564. }
  14565. }
  14566. } else {
  14567. if esep {
  14568. for k2, v2 := range v {
  14569. ee.WriteMapElemKey()
  14570. ee.EncodeBool(k2)
  14571. ee.WriteMapElemValue()
  14572. ee.EncodeFloat64(v2)
  14573. }
  14574. } else {
  14575. for k2, v2 := range v {
  14576. ee.EncodeBool(k2)
  14577. ee.EncodeFloat64(v2)
  14578. }
  14579. }
  14580. }
  14581. ee.WriteMapEnd()
  14582. }
  14583. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  14584. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  14585. }
  14586. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  14587. if v == nil {
  14588. e.e.EncodeNil()
  14589. return
  14590. }
  14591. ee, esep := e.e, e.hh.hasElemSeparators()
  14592. ee.WriteMapStart(len(v))
  14593. if e.h.Canonical {
  14594. v2 := make([]bool, len(v))
  14595. var i uint
  14596. for k := range v {
  14597. v2[i] = bool(k)
  14598. i++
  14599. }
  14600. sort.Sort(boolSlice(v2))
  14601. if esep {
  14602. for _, k2 := range v2 {
  14603. ee.WriteMapElemKey()
  14604. ee.EncodeBool(bool(k2))
  14605. ee.WriteMapElemValue()
  14606. ee.EncodeBool(v[bool(k2)])
  14607. }
  14608. } else {
  14609. for _, k2 := range v2 {
  14610. ee.EncodeBool(bool(k2))
  14611. ee.EncodeBool(v[bool(k2)])
  14612. }
  14613. }
  14614. } else {
  14615. if esep {
  14616. for k2, v2 := range v {
  14617. ee.WriteMapElemKey()
  14618. ee.EncodeBool(k2)
  14619. ee.WriteMapElemValue()
  14620. ee.EncodeBool(v2)
  14621. }
  14622. } else {
  14623. for k2, v2 := range v {
  14624. ee.EncodeBool(k2)
  14625. ee.EncodeBool(v2)
  14626. }
  14627. }
  14628. }
  14629. ee.WriteMapEnd()
  14630. }
  14631. // -- decode
  14632. // -- -- fast path type switch
  14633. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  14634. var changed bool
  14635. switch v := iv.(type) {
  14636. case []interface{}:
  14637. var v2 []interface{}
  14638. v2, changed = fastpathTV.DecSliceIntfV(v, false, d)
  14639. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14640. copy(v, v2)
  14641. }
  14642. case *[]interface{}:
  14643. var v2 []interface{}
  14644. v2, changed = fastpathTV.DecSliceIntfV(*v, true, d)
  14645. if changed {
  14646. *v = v2
  14647. }
  14648. case []string:
  14649. var v2 []string
  14650. v2, changed = fastpathTV.DecSliceStringV(v, false, d)
  14651. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14652. copy(v, v2)
  14653. }
  14654. case *[]string:
  14655. var v2 []string
  14656. v2, changed = fastpathTV.DecSliceStringV(*v, true, d)
  14657. if changed {
  14658. *v = v2
  14659. }
  14660. case []float32:
  14661. var v2 []float32
  14662. v2, changed = fastpathTV.DecSliceFloat32V(v, false, d)
  14663. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14664. copy(v, v2)
  14665. }
  14666. case *[]float32:
  14667. var v2 []float32
  14668. v2, changed = fastpathTV.DecSliceFloat32V(*v, true, d)
  14669. if changed {
  14670. *v = v2
  14671. }
  14672. case []float64:
  14673. var v2 []float64
  14674. v2, changed = fastpathTV.DecSliceFloat64V(v, false, d)
  14675. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14676. copy(v, v2)
  14677. }
  14678. case *[]float64:
  14679. var v2 []float64
  14680. v2, changed = fastpathTV.DecSliceFloat64V(*v, true, d)
  14681. if changed {
  14682. *v = v2
  14683. }
  14684. case []uint:
  14685. var v2 []uint
  14686. v2, changed = fastpathTV.DecSliceUintV(v, false, d)
  14687. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14688. copy(v, v2)
  14689. }
  14690. case *[]uint:
  14691. var v2 []uint
  14692. v2, changed = fastpathTV.DecSliceUintV(*v, true, d)
  14693. if changed {
  14694. *v = v2
  14695. }
  14696. case []uint16:
  14697. var v2 []uint16
  14698. v2, changed = fastpathTV.DecSliceUint16V(v, false, d)
  14699. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14700. copy(v, v2)
  14701. }
  14702. case *[]uint16:
  14703. var v2 []uint16
  14704. v2, changed = fastpathTV.DecSliceUint16V(*v, true, d)
  14705. if changed {
  14706. *v = v2
  14707. }
  14708. case []uint32:
  14709. var v2 []uint32
  14710. v2, changed = fastpathTV.DecSliceUint32V(v, false, d)
  14711. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14712. copy(v, v2)
  14713. }
  14714. case *[]uint32:
  14715. var v2 []uint32
  14716. v2, changed = fastpathTV.DecSliceUint32V(*v, true, d)
  14717. if changed {
  14718. *v = v2
  14719. }
  14720. case []uint64:
  14721. var v2 []uint64
  14722. v2, changed = fastpathTV.DecSliceUint64V(v, false, d)
  14723. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14724. copy(v, v2)
  14725. }
  14726. case *[]uint64:
  14727. var v2 []uint64
  14728. v2, changed = fastpathTV.DecSliceUint64V(*v, true, d)
  14729. if changed {
  14730. *v = v2
  14731. }
  14732. case []uintptr:
  14733. var v2 []uintptr
  14734. v2, changed = fastpathTV.DecSliceUintptrV(v, false, d)
  14735. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14736. copy(v, v2)
  14737. }
  14738. case *[]uintptr:
  14739. var v2 []uintptr
  14740. v2, changed = fastpathTV.DecSliceUintptrV(*v, true, d)
  14741. if changed {
  14742. *v = v2
  14743. }
  14744. case []int:
  14745. var v2 []int
  14746. v2, changed = fastpathTV.DecSliceIntV(v, false, d)
  14747. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14748. copy(v, v2)
  14749. }
  14750. case *[]int:
  14751. var v2 []int
  14752. v2, changed = fastpathTV.DecSliceIntV(*v, true, d)
  14753. if changed {
  14754. *v = v2
  14755. }
  14756. case []int8:
  14757. var v2 []int8
  14758. v2, changed = fastpathTV.DecSliceInt8V(v, false, d)
  14759. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14760. copy(v, v2)
  14761. }
  14762. case *[]int8:
  14763. var v2 []int8
  14764. v2, changed = fastpathTV.DecSliceInt8V(*v, true, d)
  14765. if changed {
  14766. *v = v2
  14767. }
  14768. case []int16:
  14769. var v2 []int16
  14770. v2, changed = fastpathTV.DecSliceInt16V(v, false, d)
  14771. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14772. copy(v, v2)
  14773. }
  14774. case *[]int16:
  14775. var v2 []int16
  14776. v2, changed = fastpathTV.DecSliceInt16V(*v, true, d)
  14777. if changed {
  14778. *v = v2
  14779. }
  14780. case []int32:
  14781. var v2 []int32
  14782. v2, changed = fastpathTV.DecSliceInt32V(v, false, d)
  14783. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14784. copy(v, v2)
  14785. }
  14786. case *[]int32:
  14787. var v2 []int32
  14788. v2, changed = fastpathTV.DecSliceInt32V(*v, true, d)
  14789. if changed {
  14790. *v = v2
  14791. }
  14792. case []int64:
  14793. var v2 []int64
  14794. v2, changed = fastpathTV.DecSliceInt64V(v, false, d)
  14795. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14796. copy(v, v2)
  14797. }
  14798. case *[]int64:
  14799. var v2 []int64
  14800. v2, changed = fastpathTV.DecSliceInt64V(*v, true, d)
  14801. if changed {
  14802. *v = v2
  14803. }
  14804. case []bool:
  14805. var v2 []bool
  14806. v2, changed = fastpathTV.DecSliceBoolV(v, false, d)
  14807. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14808. copy(v, v2)
  14809. }
  14810. case *[]bool:
  14811. var v2 []bool
  14812. v2, changed = fastpathTV.DecSliceBoolV(*v, true, d)
  14813. if changed {
  14814. *v = v2
  14815. }
  14816. case map[interface{}]interface{}:
  14817. fastpathTV.DecMapIntfIntfV(v, false, d)
  14818. case *map[interface{}]interface{}:
  14819. var v2 map[interface{}]interface{}
  14820. v2, changed = fastpathTV.DecMapIntfIntfV(*v, true, d)
  14821. if changed {
  14822. *v = v2
  14823. }
  14824. case map[interface{}]string:
  14825. fastpathTV.DecMapIntfStringV(v, false, d)
  14826. case *map[interface{}]string:
  14827. var v2 map[interface{}]string
  14828. v2, changed = fastpathTV.DecMapIntfStringV(*v, true, d)
  14829. if changed {
  14830. *v = v2
  14831. }
  14832. case map[interface{}]uint:
  14833. fastpathTV.DecMapIntfUintV(v, false, d)
  14834. case *map[interface{}]uint:
  14835. var v2 map[interface{}]uint
  14836. v2, changed = fastpathTV.DecMapIntfUintV(*v, true, d)
  14837. if changed {
  14838. *v = v2
  14839. }
  14840. case map[interface{}]uint8:
  14841. fastpathTV.DecMapIntfUint8V(v, false, d)
  14842. case *map[interface{}]uint8:
  14843. var v2 map[interface{}]uint8
  14844. v2, changed = fastpathTV.DecMapIntfUint8V(*v, true, d)
  14845. if changed {
  14846. *v = v2
  14847. }
  14848. case map[interface{}]uint16:
  14849. fastpathTV.DecMapIntfUint16V(v, false, d)
  14850. case *map[interface{}]uint16:
  14851. var v2 map[interface{}]uint16
  14852. v2, changed = fastpathTV.DecMapIntfUint16V(*v, true, d)
  14853. if changed {
  14854. *v = v2
  14855. }
  14856. case map[interface{}]uint32:
  14857. fastpathTV.DecMapIntfUint32V(v, false, d)
  14858. case *map[interface{}]uint32:
  14859. var v2 map[interface{}]uint32
  14860. v2, changed = fastpathTV.DecMapIntfUint32V(*v, true, d)
  14861. if changed {
  14862. *v = v2
  14863. }
  14864. case map[interface{}]uint64:
  14865. fastpathTV.DecMapIntfUint64V(v, false, d)
  14866. case *map[interface{}]uint64:
  14867. var v2 map[interface{}]uint64
  14868. v2, changed = fastpathTV.DecMapIntfUint64V(*v, true, d)
  14869. if changed {
  14870. *v = v2
  14871. }
  14872. case map[interface{}]uintptr:
  14873. fastpathTV.DecMapIntfUintptrV(v, false, d)
  14874. case *map[interface{}]uintptr:
  14875. var v2 map[interface{}]uintptr
  14876. v2, changed = fastpathTV.DecMapIntfUintptrV(*v, true, d)
  14877. if changed {
  14878. *v = v2
  14879. }
  14880. case map[interface{}]int:
  14881. fastpathTV.DecMapIntfIntV(v, false, d)
  14882. case *map[interface{}]int:
  14883. var v2 map[interface{}]int
  14884. v2, changed = fastpathTV.DecMapIntfIntV(*v, true, d)
  14885. if changed {
  14886. *v = v2
  14887. }
  14888. case map[interface{}]int8:
  14889. fastpathTV.DecMapIntfInt8V(v, false, d)
  14890. case *map[interface{}]int8:
  14891. var v2 map[interface{}]int8
  14892. v2, changed = fastpathTV.DecMapIntfInt8V(*v, true, d)
  14893. if changed {
  14894. *v = v2
  14895. }
  14896. case map[interface{}]int16:
  14897. fastpathTV.DecMapIntfInt16V(v, false, d)
  14898. case *map[interface{}]int16:
  14899. var v2 map[interface{}]int16
  14900. v2, changed = fastpathTV.DecMapIntfInt16V(*v, true, d)
  14901. if changed {
  14902. *v = v2
  14903. }
  14904. case map[interface{}]int32:
  14905. fastpathTV.DecMapIntfInt32V(v, false, d)
  14906. case *map[interface{}]int32:
  14907. var v2 map[interface{}]int32
  14908. v2, changed = fastpathTV.DecMapIntfInt32V(*v, true, d)
  14909. if changed {
  14910. *v = v2
  14911. }
  14912. case map[interface{}]int64:
  14913. fastpathTV.DecMapIntfInt64V(v, false, d)
  14914. case *map[interface{}]int64:
  14915. var v2 map[interface{}]int64
  14916. v2, changed = fastpathTV.DecMapIntfInt64V(*v, true, d)
  14917. if changed {
  14918. *v = v2
  14919. }
  14920. case map[interface{}]float32:
  14921. fastpathTV.DecMapIntfFloat32V(v, false, d)
  14922. case *map[interface{}]float32:
  14923. var v2 map[interface{}]float32
  14924. v2, changed = fastpathTV.DecMapIntfFloat32V(*v, true, d)
  14925. if changed {
  14926. *v = v2
  14927. }
  14928. case map[interface{}]float64:
  14929. fastpathTV.DecMapIntfFloat64V(v, false, d)
  14930. case *map[interface{}]float64:
  14931. var v2 map[interface{}]float64
  14932. v2, changed = fastpathTV.DecMapIntfFloat64V(*v, true, d)
  14933. if changed {
  14934. *v = v2
  14935. }
  14936. case map[interface{}]bool:
  14937. fastpathTV.DecMapIntfBoolV(v, false, d)
  14938. case *map[interface{}]bool:
  14939. var v2 map[interface{}]bool
  14940. v2, changed = fastpathTV.DecMapIntfBoolV(*v, true, d)
  14941. if changed {
  14942. *v = v2
  14943. }
  14944. case map[string]interface{}:
  14945. fastpathTV.DecMapStringIntfV(v, false, d)
  14946. case *map[string]interface{}:
  14947. var v2 map[string]interface{}
  14948. v2, changed = fastpathTV.DecMapStringIntfV(*v, true, d)
  14949. if changed {
  14950. *v = v2
  14951. }
  14952. case map[string]string:
  14953. fastpathTV.DecMapStringStringV(v, false, d)
  14954. case *map[string]string:
  14955. var v2 map[string]string
  14956. v2, changed = fastpathTV.DecMapStringStringV(*v, true, d)
  14957. if changed {
  14958. *v = v2
  14959. }
  14960. case map[string]uint:
  14961. fastpathTV.DecMapStringUintV(v, false, d)
  14962. case *map[string]uint:
  14963. var v2 map[string]uint
  14964. v2, changed = fastpathTV.DecMapStringUintV(*v, true, d)
  14965. if changed {
  14966. *v = v2
  14967. }
  14968. case map[string]uint8:
  14969. fastpathTV.DecMapStringUint8V(v, false, d)
  14970. case *map[string]uint8:
  14971. var v2 map[string]uint8
  14972. v2, changed = fastpathTV.DecMapStringUint8V(*v, true, d)
  14973. if changed {
  14974. *v = v2
  14975. }
  14976. case map[string]uint16:
  14977. fastpathTV.DecMapStringUint16V(v, false, d)
  14978. case *map[string]uint16:
  14979. var v2 map[string]uint16
  14980. v2, changed = fastpathTV.DecMapStringUint16V(*v, true, d)
  14981. if changed {
  14982. *v = v2
  14983. }
  14984. case map[string]uint32:
  14985. fastpathTV.DecMapStringUint32V(v, false, d)
  14986. case *map[string]uint32:
  14987. var v2 map[string]uint32
  14988. v2, changed = fastpathTV.DecMapStringUint32V(*v, true, d)
  14989. if changed {
  14990. *v = v2
  14991. }
  14992. case map[string]uint64:
  14993. fastpathTV.DecMapStringUint64V(v, false, d)
  14994. case *map[string]uint64:
  14995. var v2 map[string]uint64
  14996. v2, changed = fastpathTV.DecMapStringUint64V(*v, true, d)
  14997. if changed {
  14998. *v = v2
  14999. }
  15000. case map[string]uintptr:
  15001. fastpathTV.DecMapStringUintptrV(v, false, d)
  15002. case *map[string]uintptr:
  15003. var v2 map[string]uintptr
  15004. v2, changed = fastpathTV.DecMapStringUintptrV(*v, true, d)
  15005. if changed {
  15006. *v = v2
  15007. }
  15008. case map[string]int:
  15009. fastpathTV.DecMapStringIntV(v, false, d)
  15010. case *map[string]int:
  15011. var v2 map[string]int
  15012. v2, changed = fastpathTV.DecMapStringIntV(*v, true, d)
  15013. if changed {
  15014. *v = v2
  15015. }
  15016. case map[string]int8:
  15017. fastpathTV.DecMapStringInt8V(v, false, d)
  15018. case *map[string]int8:
  15019. var v2 map[string]int8
  15020. v2, changed = fastpathTV.DecMapStringInt8V(*v, true, d)
  15021. if changed {
  15022. *v = v2
  15023. }
  15024. case map[string]int16:
  15025. fastpathTV.DecMapStringInt16V(v, false, d)
  15026. case *map[string]int16:
  15027. var v2 map[string]int16
  15028. v2, changed = fastpathTV.DecMapStringInt16V(*v, true, d)
  15029. if changed {
  15030. *v = v2
  15031. }
  15032. case map[string]int32:
  15033. fastpathTV.DecMapStringInt32V(v, false, d)
  15034. case *map[string]int32:
  15035. var v2 map[string]int32
  15036. v2, changed = fastpathTV.DecMapStringInt32V(*v, true, d)
  15037. if changed {
  15038. *v = v2
  15039. }
  15040. case map[string]int64:
  15041. fastpathTV.DecMapStringInt64V(v, false, d)
  15042. case *map[string]int64:
  15043. var v2 map[string]int64
  15044. v2, changed = fastpathTV.DecMapStringInt64V(*v, true, d)
  15045. if changed {
  15046. *v = v2
  15047. }
  15048. case map[string]float32:
  15049. fastpathTV.DecMapStringFloat32V(v, false, d)
  15050. case *map[string]float32:
  15051. var v2 map[string]float32
  15052. v2, changed = fastpathTV.DecMapStringFloat32V(*v, true, d)
  15053. if changed {
  15054. *v = v2
  15055. }
  15056. case map[string]float64:
  15057. fastpathTV.DecMapStringFloat64V(v, false, d)
  15058. case *map[string]float64:
  15059. var v2 map[string]float64
  15060. v2, changed = fastpathTV.DecMapStringFloat64V(*v, true, d)
  15061. if changed {
  15062. *v = v2
  15063. }
  15064. case map[string]bool:
  15065. fastpathTV.DecMapStringBoolV(v, false, d)
  15066. case *map[string]bool:
  15067. var v2 map[string]bool
  15068. v2, changed = fastpathTV.DecMapStringBoolV(*v, true, d)
  15069. if changed {
  15070. *v = v2
  15071. }
  15072. case map[float32]interface{}:
  15073. fastpathTV.DecMapFloat32IntfV(v, false, d)
  15074. case *map[float32]interface{}:
  15075. var v2 map[float32]interface{}
  15076. v2, changed = fastpathTV.DecMapFloat32IntfV(*v, true, d)
  15077. if changed {
  15078. *v = v2
  15079. }
  15080. case map[float32]string:
  15081. fastpathTV.DecMapFloat32StringV(v, false, d)
  15082. case *map[float32]string:
  15083. var v2 map[float32]string
  15084. v2, changed = fastpathTV.DecMapFloat32StringV(*v, true, d)
  15085. if changed {
  15086. *v = v2
  15087. }
  15088. case map[float32]uint:
  15089. fastpathTV.DecMapFloat32UintV(v, false, d)
  15090. case *map[float32]uint:
  15091. var v2 map[float32]uint
  15092. v2, changed = fastpathTV.DecMapFloat32UintV(*v, true, d)
  15093. if changed {
  15094. *v = v2
  15095. }
  15096. case map[float32]uint8:
  15097. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  15098. case *map[float32]uint8:
  15099. var v2 map[float32]uint8
  15100. v2, changed = fastpathTV.DecMapFloat32Uint8V(*v, true, d)
  15101. if changed {
  15102. *v = v2
  15103. }
  15104. case map[float32]uint16:
  15105. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  15106. case *map[float32]uint16:
  15107. var v2 map[float32]uint16
  15108. v2, changed = fastpathTV.DecMapFloat32Uint16V(*v, true, d)
  15109. if changed {
  15110. *v = v2
  15111. }
  15112. case map[float32]uint32:
  15113. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  15114. case *map[float32]uint32:
  15115. var v2 map[float32]uint32
  15116. v2, changed = fastpathTV.DecMapFloat32Uint32V(*v, true, d)
  15117. if changed {
  15118. *v = v2
  15119. }
  15120. case map[float32]uint64:
  15121. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  15122. case *map[float32]uint64:
  15123. var v2 map[float32]uint64
  15124. v2, changed = fastpathTV.DecMapFloat32Uint64V(*v, true, d)
  15125. if changed {
  15126. *v = v2
  15127. }
  15128. case map[float32]uintptr:
  15129. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  15130. case *map[float32]uintptr:
  15131. var v2 map[float32]uintptr
  15132. v2, changed = fastpathTV.DecMapFloat32UintptrV(*v, true, d)
  15133. if changed {
  15134. *v = v2
  15135. }
  15136. case map[float32]int:
  15137. fastpathTV.DecMapFloat32IntV(v, false, d)
  15138. case *map[float32]int:
  15139. var v2 map[float32]int
  15140. v2, changed = fastpathTV.DecMapFloat32IntV(*v, true, d)
  15141. if changed {
  15142. *v = v2
  15143. }
  15144. case map[float32]int8:
  15145. fastpathTV.DecMapFloat32Int8V(v, false, d)
  15146. case *map[float32]int8:
  15147. var v2 map[float32]int8
  15148. v2, changed = fastpathTV.DecMapFloat32Int8V(*v, true, d)
  15149. if changed {
  15150. *v = v2
  15151. }
  15152. case map[float32]int16:
  15153. fastpathTV.DecMapFloat32Int16V(v, false, d)
  15154. case *map[float32]int16:
  15155. var v2 map[float32]int16
  15156. v2, changed = fastpathTV.DecMapFloat32Int16V(*v, true, d)
  15157. if changed {
  15158. *v = v2
  15159. }
  15160. case map[float32]int32:
  15161. fastpathTV.DecMapFloat32Int32V(v, false, d)
  15162. case *map[float32]int32:
  15163. var v2 map[float32]int32
  15164. v2, changed = fastpathTV.DecMapFloat32Int32V(*v, true, d)
  15165. if changed {
  15166. *v = v2
  15167. }
  15168. case map[float32]int64:
  15169. fastpathTV.DecMapFloat32Int64V(v, false, d)
  15170. case *map[float32]int64:
  15171. var v2 map[float32]int64
  15172. v2, changed = fastpathTV.DecMapFloat32Int64V(*v, true, d)
  15173. if changed {
  15174. *v = v2
  15175. }
  15176. case map[float32]float32:
  15177. fastpathTV.DecMapFloat32Float32V(v, false, d)
  15178. case *map[float32]float32:
  15179. var v2 map[float32]float32
  15180. v2, changed = fastpathTV.DecMapFloat32Float32V(*v, true, d)
  15181. if changed {
  15182. *v = v2
  15183. }
  15184. case map[float32]float64:
  15185. fastpathTV.DecMapFloat32Float64V(v, false, d)
  15186. case *map[float32]float64:
  15187. var v2 map[float32]float64
  15188. v2, changed = fastpathTV.DecMapFloat32Float64V(*v, true, d)
  15189. if changed {
  15190. *v = v2
  15191. }
  15192. case map[float32]bool:
  15193. fastpathTV.DecMapFloat32BoolV(v, false, d)
  15194. case *map[float32]bool:
  15195. var v2 map[float32]bool
  15196. v2, changed = fastpathTV.DecMapFloat32BoolV(*v, true, d)
  15197. if changed {
  15198. *v = v2
  15199. }
  15200. case map[float64]interface{}:
  15201. fastpathTV.DecMapFloat64IntfV(v, false, d)
  15202. case *map[float64]interface{}:
  15203. var v2 map[float64]interface{}
  15204. v2, changed = fastpathTV.DecMapFloat64IntfV(*v, true, d)
  15205. if changed {
  15206. *v = v2
  15207. }
  15208. case map[float64]string:
  15209. fastpathTV.DecMapFloat64StringV(v, false, d)
  15210. case *map[float64]string:
  15211. var v2 map[float64]string
  15212. v2, changed = fastpathTV.DecMapFloat64StringV(*v, true, d)
  15213. if changed {
  15214. *v = v2
  15215. }
  15216. case map[float64]uint:
  15217. fastpathTV.DecMapFloat64UintV(v, false, d)
  15218. case *map[float64]uint:
  15219. var v2 map[float64]uint
  15220. v2, changed = fastpathTV.DecMapFloat64UintV(*v, true, d)
  15221. if changed {
  15222. *v = v2
  15223. }
  15224. case map[float64]uint8:
  15225. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  15226. case *map[float64]uint8:
  15227. var v2 map[float64]uint8
  15228. v2, changed = fastpathTV.DecMapFloat64Uint8V(*v, true, d)
  15229. if changed {
  15230. *v = v2
  15231. }
  15232. case map[float64]uint16:
  15233. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  15234. case *map[float64]uint16:
  15235. var v2 map[float64]uint16
  15236. v2, changed = fastpathTV.DecMapFloat64Uint16V(*v, true, d)
  15237. if changed {
  15238. *v = v2
  15239. }
  15240. case map[float64]uint32:
  15241. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  15242. case *map[float64]uint32:
  15243. var v2 map[float64]uint32
  15244. v2, changed = fastpathTV.DecMapFloat64Uint32V(*v, true, d)
  15245. if changed {
  15246. *v = v2
  15247. }
  15248. case map[float64]uint64:
  15249. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  15250. case *map[float64]uint64:
  15251. var v2 map[float64]uint64
  15252. v2, changed = fastpathTV.DecMapFloat64Uint64V(*v, true, d)
  15253. if changed {
  15254. *v = v2
  15255. }
  15256. case map[float64]uintptr:
  15257. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  15258. case *map[float64]uintptr:
  15259. var v2 map[float64]uintptr
  15260. v2, changed = fastpathTV.DecMapFloat64UintptrV(*v, true, d)
  15261. if changed {
  15262. *v = v2
  15263. }
  15264. case map[float64]int:
  15265. fastpathTV.DecMapFloat64IntV(v, false, d)
  15266. case *map[float64]int:
  15267. var v2 map[float64]int
  15268. v2, changed = fastpathTV.DecMapFloat64IntV(*v, true, d)
  15269. if changed {
  15270. *v = v2
  15271. }
  15272. case map[float64]int8:
  15273. fastpathTV.DecMapFloat64Int8V(v, false, d)
  15274. case *map[float64]int8:
  15275. var v2 map[float64]int8
  15276. v2, changed = fastpathTV.DecMapFloat64Int8V(*v, true, d)
  15277. if changed {
  15278. *v = v2
  15279. }
  15280. case map[float64]int16:
  15281. fastpathTV.DecMapFloat64Int16V(v, false, d)
  15282. case *map[float64]int16:
  15283. var v2 map[float64]int16
  15284. v2, changed = fastpathTV.DecMapFloat64Int16V(*v, true, d)
  15285. if changed {
  15286. *v = v2
  15287. }
  15288. case map[float64]int32:
  15289. fastpathTV.DecMapFloat64Int32V(v, false, d)
  15290. case *map[float64]int32:
  15291. var v2 map[float64]int32
  15292. v2, changed = fastpathTV.DecMapFloat64Int32V(*v, true, d)
  15293. if changed {
  15294. *v = v2
  15295. }
  15296. case map[float64]int64:
  15297. fastpathTV.DecMapFloat64Int64V(v, false, d)
  15298. case *map[float64]int64:
  15299. var v2 map[float64]int64
  15300. v2, changed = fastpathTV.DecMapFloat64Int64V(*v, true, d)
  15301. if changed {
  15302. *v = v2
  15303. }
  15304. case map[float64]float32:
  15305. fastpathTV.DecMapFloat64Float32V(v, false, d)
  15306. case *map[float64]float32:
  15307. var v2 map[float64]float32
  15308. v2, changed = fastpathTV.DecMapFloat64Float32V(*v, true, d)
  15309. if changed {
  15310. *v = v2
  15311. }
  15312. case map[float64]float64:
  15313. fastpathTV.DecMapFloat64Float64V(v, false, d)
  15314. case *map[float64]float64:
  15315. var v2 map[float64]float64
  15316. v2, changed = fastpathTV.DecMapFloat64Float64V(*v, true, d)
  15317. if changed {
  15318. *v = v2
  15319. }
  15320. case map[float64]bool:
  15321. fastpathTV.DecMapFloat64BoolV(v, false, d)
  15322. case *map[float64]bool:
  15323. var v2 map[float64]bool
  15324. v2, changed = fastpathTV.DecMapFloat64BoolV(*v, true, d)
  15325. if changed {
  15326. *v = v2
  15327. }
  15328. case map[uint]interface{}:
  15329. fastpathTV.DecMapUintIntfV(v, false, d)
  15330. case *map[uint]interface{}:
  15331. var v2 map[uint]interface{}
  15332. v2, changed = fastpathTV.DecMapUintIntfV(*v, true, d)
  15333. if changed {
  15334. *v = v2
  15335. }
  15336. case map[uint]string:
  15337. fastpathTV.DecMapUintStringV(v, false, d)
  15338. case *map[uint]string:
  15339. var v2 map[uint]string
  15340. v2, changed = fastpathTV.DecMapUintStringV(*v, true, d)
  15341. if changed {
  15342. *v = v2
  15343. }
  15344. case map[uint]uint:
  15345. fastpathTV.DecMapUintUintV(v, false, d)
  15346. case *map[uint]uint:
  15347. var v2 map[uint]uint
  15348. v2, changed = fastpathTV.DecMapUintUintV(*v, true, d)
  15349. if changed {
  15350. *v = v2
  15351. }
  15352. case map[uint]uint8:
  15353. fastpathTV.DecMapUintUint8V(v, false, d)
  15354. case *map[uint]uint8:
  15355. var v2 map[uint]uint8
  15356. v2, changed = fastpathTV.DecMapUintUint8V(*v, true, d)
  15357. if changed {
  15358. *v = v2
  15359. }
  15360. case map[uint]uint16:
  15361. fastpathTV.DecMapUintUint16V(v, false, d)
  15362. case *map[uint]uint16:
  15363. var v2 map[uint]uint16
  15364. v2, changed = fastpathTV.DecMapUintUint16V(*v, true, d)
  15365. if changed {
  15366. *v = v2
  15367. }
  15368. case map[uint]uint32:
  15369. fastpathTV.DecMapUintUint32V(v, false, d)
  15370. case *map[uint]uint32:
  15371. var v2 map[uint]uint32
  15372. v2, changed = fastpathTV.DecMapUintUint32V(*v, true, d)
  15373. if changed {
  15374. *v = v2
  15375. }
  15376. case map[uint]uint64:
  15377. fastpathTV.DecMapUintUint64V(v, false, d)
  15378. case *map[uint]uint64:
  15379. var v2 map[uint]uint64
  15380. v2, changed = fastpathTV.DecMapUintUint64V(*v, true, d)
  15381. if changed {
  15382. *v = v2
  15383. }
  15384. case map[uint]uintptr:
  15385. fastpathTV.DecMapUintUintptrV(v, false, d)
  15386. case *map[uint]uintptr:
  15387. var v2 map[uint]uintptr
  15388. v2, changed = fastpathTV.DecMapUintUintptrV(*v, true, d)
  15389. if changed {
  15390. *v = v2
  15391. }
  15392. case map[uint]int:
  15393. fastpathTV.DecMapUintIntV(v, false, d)
  15394. case *map[uint]int:
  15395. var v2 map[uint]int
  15396. v2, changed = fastpathTV.DecMapUintIntV(*v, true, d)
  15397. if changed {
  15398. *v = v2
  15399. }
  15400. case map[uint]int8:
  15401. fastpathTV.DecMapUintInt8V(v, false, d)
  15402. case *map[uint]int8:
  15403. var v2 map[uint]int8
  15404. v2, changed = fastpathTV.DecMapUintInt8V(*v, true, d)
  15405. if changed {
  15406. *v = v2
  15407. }
  15408. case map[uint]int16:
  15409. fastpathTV.DecMapUintInt16V(v, false, d)
  15410. case *map[uint]int16:
  15411. var v2 map[uint]int16
  15412. v2, changed = fastpathTV.DecMapUintInt16V(*v, true, d)
  15413. if changed {
  15414. *v = v2
  15415. }
  15416. case map[uint]int32:
  15417. fastpathTV.DecMapUintInt32V(v, false, d)
  15418. case *map[uint]int32:
  15419. var v2 map[uint]int32
  15420. v2, changed = fastpathTV.DecMapUintInt32V(*v, true, d)
  15421. if changed {
  15422. *v = v2
  15423. }
  15424. case map[uint]int64:
  15425. fastpathTV.DecMapUintInt64V(v, false, d)
  15426. case *map[uint]int64:
  15427. var v2 map[uint]int64
  15428. v2, changed = fastpathTV.DecMapUintInt64V(*v, true, d)
  15429. if changed {
  15430. *v = v2
  15431. }
  15432. case map[uint]float32:
  15433. fastpathTV.DecMapUintFloat32V(v, false, d)
  15434. case *map[uint]float32:
  15435. var v2 map[uint]float32
  15436. v2, changed = fastpathTV.DecMapUintFloat32V(*v, true, d)
  15437. if changed {
  15438. *v = v2
  15439. }
  15440. case map[uint]float64:
  15441. fastpathTV.DecMapUintFloat64V(v, false, d)
  15442. case *map[uint]float64:
  15443. var v2 map[uint]float64
  15444. v2, changed = fastpathTV.DecMapUintFloat64V(*v, true, d)
  15445. if changed {
  15446. *v = v2
  15447. }
  15448. case map[uint]bool:
  15449. fastpathTV.DecMapUintBoolV(v, false, d)
  15450. case *map[uint]bool:
  15451. var v2 map[uint]bool
  15452. v2, changed = fastpathTV.DecMapUintBoolV(*v, true, d)
  15453. if changed {
  15454. *v = v2
  15455. }
  15456. case map[uint8]interface{}:
  15457. fastpathTV.DecMapUint8IntfV(v, false, d)
  15458. case *map[uint8]interface{}:
  15459. var v2 map[uint8]interface{}
  15460. v2, changed = fastpathTV.DecMapUint8IntfV(*v, true, d)
  15461. if changed {
  15462. *v = v2
  15463. }
  15464. case map[uint8]string:
  15465. fastpathTV.DecMapUint8StringV(v, false, d)
  15466. case *map[uint8]string:
  15467. var v2 map[uint8]string
  15468. v2, changed = fastpathTV.DecMapUint8StringV(*v, true, d)
  15469. if changed {
  15470. *v = v2
  15471. }
  15472. case map[uint8]uint:
  15473. fastpathTV.DecMapUint8UintV(v, false, d)
  15474. case *map[uint8]uint:
  15475. var v2 map[uint8]uint
  15476. v2, changed = fastpathTV.DecMapUint8UintV(*v, true, d)
  15477. if changed {
  15478. *v = v2
  15479. }
  15480. case map[uint8]uint8:
  15481. fastpathTV.DecMapUint8Uint8V(v, false, d)
  15482. case *map[uint8]uint8:
  15483. var v2 map[uint8]uint8
  15484. v2, changed = fastpathTV.DecMapUint8Uint8V(*v, true, d)
  15485. if changed {
  15486. *v = v2
  15487. }
  15488. case map[uint8]uint16:
  15489. fastpathTV.DecMapUint8Uint16V(v, false, d)
  15490. case *map[uint8]uint16:
  15491. var v2 map[uint8]uint16
  15492. v2, changed = fastpathTV.DecMapUint8Uint16V(*v, true, d)
  15493. if changed {
  15494. *v = v2
  15495. }
  15496. case map[uint8]uint32:
  15497. fastpathTV.DecMapUint8Uint32V(v, false, d)
  15498. case *map[uint8]uint32:
  15499. var v2 map[uint8]uint32
  15500. v2, changed = fastpathTV.DecMapUint8Uint32V(*v, true, d)
  15501. if changed {
  15502. *v = v2
  15503. }
  15504. case map[uint8]uint64:
  15505. fastpathTV.DecMapUint8Uint64V(v, false, d)
  15506. case *map[uint8]uint64:
  15507. var v2 map[uint8]uint64
  15508. v2, changed = fastpathTV.DecMapUint8Uint64V(*v, true, d)
  15509. if changed {
  15510. *v = v2
  15511. }
  15512. case map[uint8]uintptr:
  15513. fastpathTV.DecMapUint8UintptrV(v, false, d)
  15514. case *map[uint8]uintptr:
  15515. var v2 map[uint8]uintptr
  15516. v2, changed = fastpathTV.DecMapUint8UintptrV(*v, true, d)
  15517. if changed {
  15518. *v = v2
  15519. }
  15520. case map[uint8]int:
  15521. fastpathTV.DecMapUint8IntV(v, false, d)
  15522. case *map[uint8]int:
  15523. var v2 map[uint8]int
  15524. v2, changed = fastpathTV.DecMapUint8IntV(*v, true, d)
  15525. if changed {
  15526. *v = v2
  15527. }
  15528. case map[uint8]int8:
  15529. fastpathTV.DecMapUint8Int8V(v, false, d)
  15530. case *map[uint8]int8:
  15531. var v2 map[uint8]int8
  15532. v2, changed = fastpathTV.DecMapUint8Int8V(*v, true, d)
  15533. if changed {
  15534. *v = v2
  15535. }
  15536. case map[uint8]int16:
  15537. fastpathTV.DecMapUint8Int16V(v, false, d)
  15538. case *map[uint8]int16:
  15539. var v2 map[uint8]int16
  15540. v2, changed = fastpathTV.DecMapUint8Int16V(*v, true, d)
  15541. if changed {
  15542. *v = v2
  15543. }
  15544. case map[uint8]int32:
  15545. fastpathTV.DecMapUint8Int32V(v, false, d)
  15546. case *map[uint8]int32:
  15547. var v2 map[uint8]int32
  15548. v2, changed = fastpathTV.DecMapUint8Int32V(*v, true, d)
  15549. if changed {
  15550. *v = v2
  15551. }
  15552. case map[uint8]int64:
  15553. fastpathTV.DecMapUint8Int64V(v, false, d)
  15554. case *map[uint8]int64:
  15555. var v2 map[uint8]int64
  15556. v2, changed = fastpathTV.DecMapUint8Int64V(*v, true, d)
  15557. if changed {
  15558. *v = v2
  15559. }
  15560. case map[uint8]float32:
  15561. fastpathTV.DecMapUint8Float32V(v, false, d)
  15562. case *map[uint8]float32:
  15563. var v2 map[uint8]float32
  15564. v2, changed = fastpathTV.DecMapUint8Float32V(*v, true, d)
  15565. if changed {
  15566. *v = v2
  15567. }
  15568. case map[uint8]float64:
  15569. fastpathTV.DecMapUint8Float64V(v, false, d)
  15570. case *map[uint8]float64:
  15571. var v2 map[uint8]float64
  15572. v2, changed = fastpathTV.DecMapUint8Float64V(*v, true, d)
  15573. if changed {
  15574. *v = v2
  15575. }
  15576. case map[uint8]bool:
  15577. fastpathTV.DecMapUint8BoolV(v, false, d)
  15578. case *map[uint8]bool:
  15579. var v2 map[uint8]bool
  15580. v2, changed = fastpathTV.DecMapUint8BoolV(*v, true, d)
  15581. if changed {
  15582. *v = v2
  15583. }
  15584. case map[uint16]interface{}:
  15585. fastpathTV.DecMapUint16IntfV(v, false, d)
  15586. case *map[uint16]interface{}:
  15587. var v2 map[uint16]interface{}
  15588. v2, changed = fastpathTV.DecMapUint16IntfV(*v, true, d)
  15589. if changed {
  15590. *v = v2
  15591. }
  15592. case map[uint16]string:
  15593. fastpathTV.DecMapUint16StringV(v, false, d)
  15594. case *map[uint16]string:
  15595. var v2 map[uint16]string
  15596. v2, changed = fastpathTV.DecMapUint16StringV(*v, true, d)
  15597. if changed {
  15598. *v = v2
  15599. }
  15600. case map[uint16]uint:
  15601. fastpathTV.DecMapUint16UintV(v, false, d)
  15602. case *map[uint16]uint:
  15603. var v2 map[uint16]uint
  15604. v2, changed = fastpathTV.DecMapUint16UintV(*v, true, d)
  15605. if changed {
  15606. *v = v2
  15607. }
  15608. case map[uint16]uint8:
  15609. fastpathTV.DecMapUint16Uint8V(v, false, d)
  15610. case *map[uint16]uint8:
  15611. var v2 map[uint16]uint8
  15612. v2, changed = fastpathTV.DecMapUint16Uint8V(*v, true, d)
  15613. if changed {
  15614. *v = v2
  15615. }
  15616. case map[uint16]uint16:
  15617. fastpathTV.DecMapUint16Uint16V(v, false, d)
  15618. case *map[uint16]uint16:
  15619. var v2 map[uint16]uint16
  15620. v2, changed = fastpathTV.DecMapUint16Uint16V(*v, true, d)
  15621. if changed {
  15622. *v = v2
  15623. }
  15624. case map[uint16]uint32:
  15625. fastpathTV.DecMapUint16Uint32V(v, false, d)
  15626. case *map[uint16]uint32:
  15627. var v2 map[uint16]uint32
  15628. v2, changed = fastpathTV.DecMapUint16Uint32V(*v, true, d)
  15629. if changed {
  15630. *v = v2
  15631. }
  15632. case map[uint16]uint64:
  15633. fastpathTV.DecMapUint16Uint64V(v, false, d)
  15634. case *map[uint16]uint64:
  15635. var v2 map[uint16]uint64
  15636. v2, changed = fastpathTV.DecMapUint16Uint64V(*v, true, d)
  15637. if changed {
  15638. *v = v2
  15639. }
  15640. case map[uint16]uintptr:
  15641. fastpathTV.DecMapUint16UintptrV(v, false, d)
  15642. case *map[uint16]uintptr:
  15643. var v2 map[uint16]uintptr
  15644. v2, changed = fastpathTV.DecMapUint16UintptrV(*v, true, d)
  15645. if changed {
  15646. *v = v2
  15647. }
  15648. case map[uint16]int:
  15649. fastpathTV.DecMapUint16IntV(v, false, d)
  15650. case *map[uint16]int:
  15651. var v2 map[uint16]int
  15652. v2, changed = fastpathTV.DecMapUint16IntV(*v, true, d)
  15653. if changed {
  15654. *v = v2
  15655. }
  15656. case map[uint16]int8:
  15657. fastpathTV.DecMapUint16Int8V(v, false, d)
  15658. case *map[uint16]int8:
  15659. var v2 map[uint16]int8
  15660. v2, changed = fastpathTV.DecMapUint16Int8V(*v, true, d)
  15661. if changed {
  15662. *v = v2
  15663. }
  15664. case map[uint16]int16:
  15665. fastpathTV.DecMapUint16Int16V(v, false, d)
  15666. case *map[uint16]int16:
  15667. var v2 map[uint16]int16
  15668. v2, changed = fastpathTV.DecMapUint16Int16V(*v, true, d)
  15669. if changed {
  15670. *v = v2
  15671. }
  15672. case map[uint16]int32:
  15673. fastpathTV.DecMapUint16Int32V(v, false, d)
  15674. case *map[uint16]int32:
  15675. var v2 map[uint16]int32
  15676. v2, changed = fastpathTV.DecMapUint16Int32V(*v, true, d)
  15677. if changed {
  15678. *v = v2
  15679. }
  15680. case map[uint16]int64:
  15681. fastpathTV.DecMapUint16Int64V(v, false, d)
  15682. case *map[uint16]int64:
  15683. var v2 map[uint16]int64
  15684. v2, changed = fastpathTV.DecMapUint16Int64V(*v, true, d)
  15685. if changed {
  15686. *v = v2
  15687. }
  15688. case map[uint16]float32:
  15689. fastpathTV.DecMapUint16Float32V(v, false, d)
  15690. case *map[uint16]float32:
  15691. var v2 map[uint16]float32
  15692. v2, changed = fastpathTV.DecMapUint16Float32V(*v, true, d)
  15693. if changed {
  15694. *v = v2
  15695. }
  15696. case map[uint16]float64:
  15697. fastpathTV.DecMapUint16Float64V(v, false, d)
  15698. case *map[uint16]float64:
  15699. var v2 map[uint16]float64
  15700. v2, changed = fastpathTV.DecMapUint16Float64V(*v, true, d)
  15701. if changed {
  15702. *v = v2
  15703. }
  15704. case map[uint16]bool:
  15705. fastpathTV.DecMapUint16BoolV(v, false, d)
  15706. case *map[uint16]bool:
  15707. var v2 map[uint16]bool
  15708. v2, changed = fastpathTV.DecMapUint16BoolV(*v, true, d)
  15709. if changed {
  15710. *v = v2
  15711. }
  15712. case map[uint32]interface{}:
  15713. fastpathTV.DecMapUint32IntfV(v, false, d)
  15714. case *map[uint32]interface{}:
  15715. var v2 map[uint32]interface{}
  15716. v2, changed = fastpathTV.DecMapUint32IntfV(*v, true, d)
  15717. if changed {
  15718. *v = v2
  15719. }
  15720. case map[uint32]string:
  15721. fastpathTV.DecMapUint32StringV(v, false, d)
  15722. case *map[uint32]string:
  15723. var v2 map[uint32]string
  15724. v2, changed = fastpathTV.DecMapUint32StringV(*v, true, d)
  15725. if changed {
  15726. *v = v2
  15727. }
  15728. case map[uint32]uint:
  15729. fastpathTV.DecMapUint32UintV(v, false, d)
  15730. case *map[uint32]uint:
  15731. var v2 map[uint32]uint
  15732. v2, changed = fastpathTV.DecMapUint32UintV(*v, true, d)
  15733. if changed {
  15734. *v = v2
  15735. }
  15736. case map[uint32]uint8:
  15737. fastpathTV.DecMapUint32Uint8V(v, false, d)
  15738. case *map[uint32]uint8:
  15739. var v2 map[uint32]uint8
  15740. v2, changed = fastpathTV.DecMapUint32Uint8V(*v, true, d)
  15741. if changed {
  15742. *v = v2
  15743. }
  15744. case map[uint32]uint16:
  15745. fastpathTV.DecMapUint32Uint16V(v, false, d)
  15746. case *map[uint32]uint16:
  15747. var v2 map[uint32]uint16
  15748. v2, changed = fastpathTV.DecMapUint32Uint16V(*v, true, d)
  15749. if changed {
  15750. *v = v2
  15751. }
  15752. case map[uint32]uint32:
  15753. fastpathTV.DecMapUint32Uint32V(v, false, d)
  15754. case *map[uint32]uint32:
  15755. var v2 map[uint32]uint32
  15756. v2, changed = fastpathTV.DecMapUint32Uint32V(*v, true, d)
  15757. if changed {
  15758. *v = v2
  15759. }
  15760. case map[uint32]uint64:
  15761. fastpathTV.DecMapUint32Uint64V(v, false, d)
  15762. case *map[uint32]uint64:
  15763. var v2 map[uint32]uint64
  15764. v2, changed = fastpathTV.DecMapUint32Uint64V(*v, true, d)
  15765. if changed {
  15766. *v = v2
  15767. }
  15768. case map[uint32]uintptr:
  15769. fastpathTV.DecMapUint32UintptrV(v, false, d)
  15770. case *map[uint32]uintptr:
  15771. var v2 map[uint32]uintptr
  15772. v2, changed = fastpathTV.DecMapUint32UintptrV(*v, true, d)
  15773. if changed {
  15774. *v = v2
  15775. }
  15776. case map[uint32]int:
  15777. fastpathTV.DecMapUint32IntV(v, false, d)
  15778. case *map[uint32]int:
  15779. var v2 map[uint32]int
  15780. v2, changed = fastpathTV.DecMapUint32IntV(*v, true, d)
  15781. if changed {
  15782. *v = v2
  15783. }
  15784. case map[uint32]int8:
  15785. fastpathTV.DecMapUint32Int8V(v, false, d)
  15786. case *map[uint32]int8:
  15787. var v2 map[uint32]int8
  15788. v2, changed = fastpathTV.DecMapUint32Int8V(*v, true, d)
  15789. if changed {
  15790. *v = v2
  15791. }
  15792. case map[uint32]int16:
  15793. fastpathTV.DecMapUint32Int16V(v, false, d)
  15794. case *map[uint32]int16:
  15795. var v2 map[uint32]int16
  15796. v2, changed = fastpathTV.DecMapUint32Int16V(*v, true, d)
  15797. if changed {
  15798. *v = v2
  15799. }
  15800. case map[uint32]int32:
  15801. fastpathTV.DecMapUint32Int32V(v, false, d)
  15802. case *map[uint32]int32:
  15803. var v2 map[uint32]int32
  15804. v2, changed = fastpathTV.DecMapUint32Int32V(*v, true, d)
  15805. if changed {
  15806. *v = v2
  15807. }
  15808. case map[uint32]int64:
  15809. fastpathTV.DecMapUint32Int64V(v, false, d)
  15810. case *map[uint32]int64:
  15811. var v2 map[uint32]int64
  15812. v2, changed = fastpathTV.DecMapUint32Int64V(*v, true, d)
  15813. if changed {
  15814. *v = v2
  15815. }
  15816. case map[uint32]float32:
  15817. fastpathTV.DecMapUint32Float32V(v, false, d)
  15818. case *map[uint32]float32:
  15819. var v2 map[uint32]float32
  15820. v2, changed = fastpathTV.DecMapUint32Float32V(*v, true, d)
  15821. if changed {
  15822. *v = v2
  15823. }
  15824. case map[uint32]float64:
  15825. fastpathTV.DecMapUint32Float64V(v, false, d)
  15826. case *map[uint32]float64:
  15827. var v2 map[uint32]float64
  15828. v2, changed = fastpathTV.DecMapUint32Float64V(*v, true, d)
  15829. if changed {
  15830. *v = v2
  15831. }
  15832. case map[uint32]bool:
  15833. fastpathTV.DecMapUint32BoolV(v, false, d)
  15834. case *map[uint32]bool:
  15835. var v2 map[uint32]bool
  15836. v2, changed = fastpathTV.DecMapUint32BoolV(*v, true, d)
  15837. if changed {
  15838. *v = v2
  15839. }
  15840. case map[uint64]interface{}:
  15841. fastpathTV.DecMapUint64IntfV(v, false, d)
  15842. case *map[uint64]interface{}:
  15843. var v2 map[uint64]interface{}
  15844. v2, changed = fastpathTV.DecMapUint64IntfV(*v, true, d)
  15845. if changed {
  15846. *v = v2
  15847. }
  15848. case map[uint64]string:
  15849. fastpathTV.DecMapUint64StringV(v, false, d)
  15850. case *map[uint64]string:
  15851. var v2 map[uint64]string
  15852. v2, changed = fastpathTV.DecMapUint64StringV(*v, true, d)
  15853. if changed {
  15854. *v = v2
  15855. }
  15856. case map[uint64]uint:
  15857. fastpathTV.DecMapUint64UintV(v, false, d)
  15858. case *map[uint64]uint:
  15859. var v2 map[uint64]uint
  15860. v2, changed = fastpathTV.DecMapUint64UintV(*v, true, d)
  15861. if changed {
  15862. *v = v2
  15863. }
  15864. case map[uint64]uint8:
  15865. fastpathTV.DecMapUint64Uint8V(v, false, d)
  15866. case *map[uint64]uint8:
  15867. var v2 map[uint64]uint8
  15868. v2, changed = fastpathTV.DecMapUint64Uint8V(*v, true, d)
  15869. if changed {
  15870. *v = v2
  15871. }
  15872. case map[uint64]uint16:
  15873. fastpathTV.DecMapUint64Uint16V(v, false, d)
  15874. case *map[uint64]uint16:
  15875. var v2 map[uint64]uint16
  15876. v2, changed = fastpathTV.DecMapUint64Uint16V(*v, true, d)
  15877. if changed {
  15878. *v = v2
  15879. }
  15880. case map[uint64]uint32:
  15881. fastpathTV.DecMapUint64Uint32V(v, false, d)
  15882. case *map[uint64]uint32:
  15883. var v2 map[uint64]uint32
  15884. v2, changed = fastpathTV.DecMapUint64Uint32V(*v, true, d)
  15885. if changed {
  15886. *v = v2
  15887. }
  15888. case map[uint64]uint64:
  15889. fastpathTV.DecMapUint64Uint64V(v, false, d)
  15890. case *map[uint64]uint64:
  15891. var v2 map[uint64]uint64
  15892. v2, changed = fastpathTV.DecMapUint64Uint64V(*v, true, d)
  15893. if changed {
  15894. *v = v2
  15895. }
  15896. case map[uint64]uintptr:
  15897. fastpathTV.DecMapUint64UintptrV(v, false, d)
  15898. case *map[uint64]uintptr:
  15899. var v2 map[uint64]uintptr
  15900. v2, changed = fastpathTV.DecMapUint64UintptrV(*v, true, d)
  15901. if changed {
  15902. *v = v2
  15903. }
  15904. case map[uint64]int:
  15905. fastpathTV.DecMapUint64IntV(v, false, d)
  15906. case *map[uint64]int:
  15907. var v2 map[uint64]int
  15908. v2, changed = fastpathTV.DecMapUint64IntV(*v, true, d)
  15909. if changed {
  15910. *v = v2
  15911. }
  15912. case map[uint64]int8:
  15913. fastpathTV.DecMapUint64Int8V(v, false, d)
  15914. case *map[uint64]int8:
  15915. var v2 map[uint64]int8
  15916. v2, changed = fastpathTV.DecMapUint64Int8V(*v, true, d)
  15917. if changed {
  15918. *v = v2
  15919. }
  15920. case map[uint64]int16:
  15921. fastpathTV.DecMapUint64Int16V(v, false, d)
  15922. case *map[uint64]int16:
  15923. var v2 map[uint64]int16
  15924. v2, changed = fastpathTV.DecMapUint64Int16V(*v, true, d)
  15925. if changed {
  15926. *v = v2
  15927. }
  15928. case map[uint64]int32:
  15929. fastpathTV.DecMapUint64Int32V(v, false, d)
  15930. case *map[uint64]int32:
  15931. var v2 map[uint64]int32
  15932. v2, changed = fastpathTV.DecMapUint64Int32V(*v, true, d)
  15933. if changed {
  15934. *v = v2
  15935. }
  15936. case map[uint64]int64:
  15937. fastpathTV.DecMapUint64Int64V(v, false, d)
  15938. case *map[uint64]int64:
  15939. var v2 map[uint64]int64
  15940. v2, changed = fastpathTV.DecMapUint64Int64V(*v, true, d)
  15941. if changed {
  15942. *v = v2
  15943. }
  15944. case map[uint64]float32:
  15945. fastpathTV.DecMapUint64Float32V(v, false, d)
  15946. case *map[uint64]float32:
  15947. var v2 map[uint64]float32
  15948. v2, changed = fastpathTV.DecMapUint64Float32V(*v, true, d)
  15949. if changed {
  15950. *v = v2
  15951. }
  15952. case map[uint64]float64:
  15953. fastpathTV.DecMapUint64Float64V(v, false, d)
  15954. case *map[uint64]float64:
  15955. var v2 map[uint64]float64
  15956. v2, changed = fastpathTV.DecMapUint64Float64V(*v, true, d)
  15957. if changed {
  15958. *v = v2
  15959. }
  15960. case map[uint64]bool:
  15961. fastpathTV.DecMapUint64BoolV(v, false, d)
  15962. case *map[uint64]bool:
  15963. var v2 map[uint64]bool
  15964. v2, changed = fastpathTV.DecMapUint64BoolV(*v, true, d)
  15965. if changed {
  15966. *v = v2
  15967. }
  15968. case map[uintptr]interface{}:
  15969. fastpathTV.DecMapUintptrIntfV(v, false, d)
  15970. case *map[uintptr]interface{}:
  15971. var v2 map[uintptr]interface{}
  15972. v2, changed = fastpathTV.DecMapUintptrIntfV(*v, true, d)
  15973. if changed {
  15974. *v = v2
  15975. }
  15976. case map[uintptr]string:
  15977. fastpathTV.DecMapUintptrStringV(v, false, d)
  15978. case *map[uintptr]string:
  15979. var v2 map[uintptr]string
  15980. v2, changed = fastpathTV.DecMapUintptrStringV(*v, true, d)
  15981. if changed {
  15982. *v = v2
  15983. }
  15984. case map[uintptr]uint:
  15985. fastpathTV.DecMapUintptrUintV(v, false, d)
  15986. case *map[uintptr]uint:
  15987. var v2 map[uintptr]uint
  15988. v2, changed = fastpathTV.DecMapUintptrUintV(*v, true, d)
  15989. if changed {
  15990. *v = v2
  15991. }
  15992. case map[uintptr]uint8:
  15993. fastpathTV.DecMapUintptrUint8V(v, false, d)
  15994. case *map[uintptr]uint8:
  15995. var v2 map[uintptr]uint8
  15996. v2, changed = fastpathTV.DecMapUintptrUint8V(*v, true, d)
  15997. if changed {
  15998. *v = v2
  15999. }
  16000. case map[uintptr]uint16:
  16001. fastpathTV.DecMapUintptrUint16V(v, false, d)
  16002. case *map[uintptr]uint16:
  16003. var v2 map[uintptr]uint16
  16004. v2, changed = fastpathTV.DecMapUintptrUint16V(*v, true, d)
  16005. if changed {
  16006. *v = v2
  16007. }
  16008. case map[uintptr]uint32:
  16009. fastpathTV.DecMapUintptrUint32V(v, false, d)
  16010. case *map[uintptr]uint32:
  16011. var v2 map[uintptr]uint32
  16012. v2, changed = fastpathTV.DecMapUintptrUint32V(*v, true, d)
  16013. if changed {
  16014. *v = v2
  16015. }
  16016. case map[uintptr]uint64:
  16017. fastpathTV.DecMapUintptrUint64V(v, false, d)
  16018. case *map[uintptr]uint64:
  16019. var v2 map[uintptr]uint64
  16020. v2, changed = fastpathTV.DecMapUintptrUint64V(*v, true, d)
  16021. if changed {
  16022. *v = v2
  16023. }
  16024. case map[uintptr]uintptr:
  16025. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  16026. case *map[uintptr]uintptr:
  16027. var v2 map[uintptr]uintptr
  16028. v2, changed = fastpathTV.DecMapUintptrUintptrV(*v, true, d)
  16029. if changed {
  16030. *v = v2
  16031. }
  16032. case map[uintptr]int:
  16033. fastpathTV.DecMapUintptrIntV(v, false, d)
  16034. case *map[uintptr]int:
  16035. var v2 map[uintptr]int
  16036. v2, changed = fastpathTV.DecMapUintptrIntV(*v, true, d)
  16037. if changed {
  16038. *v = v2
  16039. }
  16040. case map[uintptr]int8:
  16041. fastpathTV.DecMapUintptrInt8V(v, false, d)
  16042. case *map[uintptr]int8:
  16043. var v2 map[uintptr]int8
  16044. v2, changed = fastpathTV.DecMapUintptrInt8V(*v, true, d)
  16045. if changed {
  16046. *v = v2
  16047. }
  16048. case map[uintptr]int16:
  16049. fastpathTV.DecMapUintptrInt16V(v, false, d)
  16050. case *map[uintptr]int16:
  16051. var v2 map[uintptr]int16
  16052. v2, changed = fastpathTV.DecMapUintptrInt16V(*v, true, d)
  16053. if changed {
  16054. *v = v2
  16055. }
  16056. case map[uintptr]int32:
  16057. fastpathTV.DecMapUintptrInt32V(v, false, d)
  16058. case *map[uintptr]int32:
  16059. var v2 map[uintptr]int32
  16060. v2, changed = fastpathTV.DecMapUintptrInt32V(*v, true, d)
  16061. if changed {
  16062. *v = v2
  16063. }
  16064. case map[uintptr]int64:
  16065. fastpathTV.DecMapUintptrInt64V(v, false, d)
  16066. case *map[uintptr]int64:
  16067. var v2 map[uintptr]int64
  16068. v2, changed = fastpathTV.DecMapUintptrInt64V(*v, true, d)
  16069. if changed {
  16070. *v = v2
  16071. }
  16072. case map[uintptr]float32:
  16073. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  16074. case *map[uintptr]float32:
  16075. var v2 map[uintptr]float32
  16076. v2, changed = fastpathTV.DecMapUintptrFloat32V(*v, true, d)
  16077. if changed {
  16078. *v = v2
  16079. }
  16080. case map[uintptr]float64:
  16081. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  16082. case *map[uintptr]float64:
  16083. var v2 map[uintptr]float64
  16084. v2, changed = fastpathTV.DecMapUintptrFloat64V(*v, true, d)
  16085. if changed {
  16086. *v = v2
  16087. }
  16088. case map[uintptr]bool:
  16089. fastpathTV.DecMapUintptrBoolV(v, false, d)
  16090. case *map[uintptr]bool:
  16091. var v2 map[uintptr]bool
  16092. v2, changed = fastpathTV.DecMapUintptrBoolV(*v, true, d)
  16093. if changed {
  16094. *v = v2
  16095. }
  16096. case map[int]interface{}:
  16097. fastpathTV.DecMapIntIntfV(v, false, d)
  16098. case *map[int]interface{}:
  16099. var v2 map[int]interface{}
  16100. v2, changed = fastpathTV.DecMapIntIntfV(*v, true, d)
  16101. if changed {
  16102. *v = v2
  16103. }
  16104. case map[int]string:
  16105. fastpathTV.DecMapIntStringV(v, false, d)
  16106. case *map[int]string:
  16107. var v2 map[int]string
  16108. v2, changed = fastpathTV.DecMapIntStringV(*v, true, d)
  16109. if changed {
  16110. *v = v2
  16111. }
  16112. case map[int]uint:
  16113. fastpathTV.DecMapIntUintV(v, false, d)
  16114. case *map[int]uint:
  16115. var v2 map[int]uint
  16116. v2, changed = fastpathTV.DecMapIntUintV(*v, true, d)
  16117. if changed {
  16118. *v = v2
  16119. }
  16120. case map[int]uint8:
  16121. fastpathTV.DecMapIntUint8V(v, false, d)
  16122. case *map[int]uint8:
  16123. var v2 map[int]uint8
  16124. v2, changed = fastpathTV.DecMapIntUint8V(*v, true, d)
  16125. if changed {
  16126. *v = v2
  16127. }
  16128. case map[int]uint16:
  16129. fastpathTV.DecMapIntUint16V(v, false, d)
  16130. case *map[int]uint16:
  16131. var v2 map[int]uint16
  16132. v2, changed = fastpathTV.DecMapIntUint16V(*v, true, d)
  16133. if changed {
  16134. *v = v2
  16135. }
  16136. case map[int]uint32:
  16137. fastpathTV.DecMapIntUint32V(v, false, d)
  16138. case *map[int]uint32:
  16139. var v2 map[int]uint32
  16140. v2, changed = fastpathTV.DecMapIntUint32V(*v, true, d)
  16141. if changed {
  16142. *v = v2
  16143. }
  16144. case map[int]uint64:
  16145. fastpathTV.DecMapIntUint64V(v, false, d)
  16146. case *map[int]uint64:
  16147. var v2 map[int]uint64
  16148. v2, changed = fastpathTV.DecMapIntUint64V(*v, true, d)
  16149. if changed {
  16150. *v = v2
  16151. }
  16152. case map[int]uintptr:
  16153. fastpathTV.DecMapIntUintptrV(v, false, d)
  16154. case *map[int]uintptr:
  16155. var v2 map[int]uintptr
  16156. v2, changed = fastpathTV.DecMapIntUintptrV(*v, true, d)
  16157. if changed {
  16158. *v = v2
  16159. }
  16160. case map[int]int:
  16161. fastpathTV.DecMapIntIntV(v, false, d)
  16162. case *map[int]int:
  16163. var v2 map[int]int
  16164. v2, changed = fastpathTV.DecMapIntIntV(*v, true, d)
  16165. if changed {
  16166. *v = v2
  16167. }
  16168. case map[int]int8:
  16169. fastpathTV.DecMapIntInt8V(v, false, d)
  16170. case *map[int]int8:
  16171. var v2 map[int]int8
  16172. v2, changed = fastpathTV.DecMapIntInt8V(*v, true, d)
  16173. if changed {
  16174. *v = v2
  16175. }
  16176. case map[int]int16:
  16177. fastpathTV.DecMapIntInt16V(v, false, d)
  16178. case *map[int]int16:
  16179. var v2 map[int]int16
  16180. v2, changed = fastpathTV.DecMapIntInt16V(*v, true, d)
  16181. if changed {
  16182. *v = v2
  16183. }
  16184. case map[int]int32:
  16185. fastpathTV.DecMapIntInt32V(v, false, d)
  16186. case *map[int]int32:
  16187. var v2 map[int]int32
  16188. v2, changed = fastpathTV.DecMapIntInt32V(*v, true, d)
  16189. if changed {
  16190. *v = v2
  16191. }
  16192. case map[int]int64:
  16193. fastpathTV.DecMapIntInt64V(v, false, d)
  16194. case *map[int]int64:
  16195. var v2 map[int]int64
  16196. v2, changed = fastpathTV.DecMapIntInt64V(*v, true, d)
  16197. if changed {
  16198. *v = v2
  16199. }
  16200. case map[int]float32:
  16201. fastpathTV.DecMapIntFloat32V(v, false, d)
  16202. case *map[int]float32:
  16203. var v2 map[int]float32
  16204. v2, changed = fastpathTV.DecMapIntFloat32V(*v, true, d)
  16205. if changed {
  16206. *v = v2
  16207. }
  16208. case map[int]float64:
  16209. fastpathTV.DecMapIntFloat64V(v, false, d)
  16210. case *map[int]float64:
  16211. var v2 map[int]float64
  16212. v2, changed = fastpathTV.DecMapIntFloat64V(*v, true, d)
  16213. if changed {
  16214. *v = v2
  16215. }
  16216. case map[int]bool:
  16217. fastpathTV.DecMapIntBoolV(v, false, d)
  16218. case *map[int]bool:
  16219. var v2 map[int]bool
  16220. v2, changed = fastpathTV.DecMapIntBoolV(*v, true, d)
  16221. if changed {
  16222. *v = v2
  16223. }
  16224. case map[int8]interface{}:
  16225. fastpathTV.DecMapInt8IntfV(v, false, d)
  16226. case *map[int8]interface{}:
  16227. var v2 map[int8]interface{}
  16228. v2, changed = fastpathTV.DecMapInt8IntfV(*v, true, d)
  16229. if changed {
  16230. *v = v2
  16231. }
  16232. case map[int8]string:
  16233. fastpathTV.DecMapInt8StringV(v, false, d)
  16234. case *map[int8]string:
  16235. var v2 map[int8]string
  16236. v2, changed = fastpathTV.DecMapInt8StringV(*v, true, d)
  16237. if changed {
  16238. *v = v2
  16239. }
  16240. case map[int8]uint:
  16241. fastpathTV.DecMapInt8UintV(v, false, d)
  16242. case *map[int8]uint:
  16243. var v2 map[int8]uint
  16244. v2, changed = fastpathTV.DecMapInt8UintV(*v, true, d)
  16245. if changed {
  16246. *v = v2
  16247. }
  16248. case map[int8]uint8:
  16249. fastpathTV.DecMapInt8Uint8V(v, false, d)
  16250. case *map[int8]uint8:
  16251. var v2 map[int8]uint8
  16252. v2, changed = fastpathTV.DecMapInt8Uint8V(*v, true, d)
  16253. if changed {
  16254. *v = v2
  16255. }
  16256. case map[int8]uint16:
  16257. fastpathTV.DecMapInt8Uint16V(v, false, d)
  16258. case *map[int8]uint16:
  16259. var v2 map[int8]uint16
  16260. v2, changed = fastpathTV.DecMapInt8Uint16V(*v, true, d)
  16261. if changed {
  16262. *v = v2
  16263. }
  16264. case map[int8]uint32:
  16265. fastpathTV.DecMapInt8Uint32V(v, false, d)
  16266. case *map[int8]uint32:
  16267. var v2 map[int8]uint32
  16268. v2, changed = fastpathTV.DecMapInt8Uint32V(*v, true, d)
  16269. if changed {
  16270. *v = v2
  16271. }
  16272. case map[int8]uint64:
  16273. fastpathTV.DecMapInt8Uint64V(v, false, d)
  16274. case *map[int8]uint64:
  16275. var v2 map[int8]uint64
  16276. v2, changed = fastpathTV.DecMapInt8Uint64V(*v, true, d)
  16277. if changed {
  16278. *v = v2
  16279. }
  16280. case map[int8]uintptr:
  16281. fastpathTV.DecMapInt8UintptrV(v, false, d)
  16282. case *map[int8]uintptr:
  16283. var v2 map[int8]uintptr
  16284. v2, changed = fastpathTV.DecMapInt8UintptrV(*v, true, d)
  16285. if changed {
  16286. *v = v2
  16287. }
  16288. case map[int8]int:
  16289. fastpathTV.DecMapInt8IntV(v, false, d)
  16290. case *map[int8]int:
  16291. var v2 map[int8]int
  16292. v2, changed = fastpathTV.DecMapInt8IntV(*v, true, d)
  16293. if changed {
  16294. *v = v2
  16295. }
  16296. case map[int8]int8:
  16297. fastpathTV.DecMapInt8Int8V(v, false, d)
  16298. case *map[int8]int8:
  16299. var v2 map[int8]int8
  16300. v2, changed = fastpathTV.DecMapInt8Int8V(*v, true, d)
  16301. if changed {
  16302. *v = v2
  16303. }
  16304. case map[int8]int16:
  16305. fastpathTV.DecMapInt8Int16V(v, false, d)
  16306. case *map[int8]int16:
  16307. var v2 map[int8]int16
  16308. v2, changed = fastpathTV.DecMapInt8Int16V(*v, true, d)
  16309. if changed {
  16310. *v = v2
  16311. }
  16312. case map[int8]int32:
  16313. fastpathTV.DecMapInt8Int32V(v, false, d)
  16314. case *map[int8]int32:
  16315. var v2 map[int8]int32
  16316. v2, changed = fastpathTV.DecMapInt8Int32V(*v, true, d)
  16317. if changed {
  16318. *v = v2
  16319. }
  16320. case map[int8]int64:
  16321. fastpathTV.DecMapInt8Int64V(v, false, d)
  16322. case *map[int8]int64:
  16323. var v2 map[int8]int64
  16324. v2, changed = fastpathTV.DecMapInt8Int64V(*v, true, d)
  16325. if changed {
  16326. *v = v2
  16327. }
  16328. case map[int8]float32:
  16329. fastpathTV.DecMapInt8Float32V(v, false, d)
  16330. case *map[int8]float32:
  16331. var v2 map[int8]float32
  16332. v2, changed = fastpathTV.DecMapInt8Float32V(*v, true, d)
  16333. if changed {
  16334. *v = v2
  16335. }
  16336. case map[int8]float64:
  16337. fastpathTV.DecMapInt8Float64V(v, false, d)
  16338. case *map[int8]float64:
  16339. var v2 map[int8]float64
  16340. v2, changed = fastpathTV.DecMapInt8Float64V(*v, true, d)
  16341. if changed {
  16342. *v = v2
  16343. }
  16344. case map[int8]bool:
  16345. fastpathTV.DecMapInt8BoolV(v, false, d)
  16346. case *map[int8]bool:
  16347. var v2 map[int8]bool
  16348. v2, changed = fastpathTV.DecMapInt8BoolV(*v, true, d)
  16349. if changed {
  16350. *v = v2
  16351. }
  16352. case map[int16]interface{}:
  16353. fastpathTV.DecMapInt16IntfV(v, false, d)
  16354. case *map[int16]interface{}:
  16355. var v2 map[int16]interface{}
  16356. v2, changed = fastpathTV.DecMapInt16IntfV(*v, true, d)
  16357. if changed {
  16358. *v = v2
  16359. }
  16360. case map[int16]string:
  16361. fastpathTV.DecMapInt16StringV(v, false, d)
  16362. case *map[int16]string:
  16363. var v2 map[int16]string
  16364. v2, changed = fastpathTV.DecMapInt16StringV(*v, true, d)
  16365. if changed {
  16366. *v = v2
  16367. }
  16368. case map[int16]uint:
  16369. fastpathTV.DecMapInt16UintV(v, false, d)
  16370. case *map[int16]uint:
  16371. var v2 map[int16]uint
  16372. v2, changed = fastpathTV.DecMapInt16UintV(*v, true, d)
  16373. if changed {
  16374. *v = v2
  16375. }
  16376. case map[int16]uint8:
  16377. fastpathTV.DecMapInt16Uint8V(v, false, d)
  16378. case *map[int16]uint8:
  16379. var v2 map[int16]uint8
  16380. v2, changed = fastpathTV.DecMapInt16Uint8V(*v, true, d)
  16381. if changed {
  16382. *v = v2
  16383. }
  16384. case map[int16]uint16:
  16385. fastpathTV.DecMapInt16Uint16V(v, false, d)
  16386. case *map[int16]uint16:
  16387. var v2 map[int16]uint16
  16388. v2, changed = fastpathTV.DecMapInt16Uint16V(*v, true, d)
  16389. if changed {
  16390. *v = v2
  16391. }
  16392. case map[int16]uint32:
  16393. fastpathTV.DecMapInt16Uint32V(v, false, d)
  16394. case *map[int16]uint32:
  16395. var v2 map[int16]uint32
  16396. v2, changed = fastpathTV.DecMapInt16Uint32V(*v, true, d)
  16397. if changed {
  16398. *v = v2
  16399. }
  16400. case map[int16]uint64:
  16401. fastpathTV.DecMapInt16Uint64V(v, false, d)
  16402. case *map[int16]uint64:
  16403. var v2 map[int16]uint64
  16404. v2, changed = fastpathTV.DecMapInt16Uint64V(*v, true, d)
  16405. if changed {
  16406. *v = v2
  16407. }
  16408. case map[int16]uintptr:
  16409. fastpathTV.DecMapInt16UintptrV(v, false, d)
  16410. case *map[int16]uintptr:
  16411. var v2 map[int16]uintptr
  16412. v2, changed = fastpathTV.DecMapInt16UintptrV(*v, true, d)
  16413. if changed {
  16414. *v = v2
  16415. }
  16416. case map[int16]int:
  16417. fastpathTV.DecMapInt16IntV(v, false, d)
  16418. case *map[int16]int:
  16419. var v2 map[int16]int
  16420. v2, changed = fastpathTV.DecMapInt16IntV(*v, true, d)
  16421. if changed {
  16422. *v = v2
  16423. }
  16424. case map[int16]int8:
  16425. fastpathTV.DecMapInt16Int8V(v, false, d)
  16426. case *map[int16]int8:
  16427. var v2 map[int16]int8
  16428. v2, changed = fastpathTV.DecMapInt16Int8V(*v, true, d)
  16429. if changed {
  16430. *v = v2
  16431. }
  16432. case map[int16]int16:
  16433. fastpathTV.DecMapInt16Int16V(v, false, d)
  16434. case *map[int16]int16:
  16435. var v2 map[int16]int16
  16436. v2, changed = fastpathTV.DecMapInt16Int16V(*v, true, d)
  16437. if changed {
  16438. *v = v2
  16439. }
  16440. case map[int16]int32:
  16441. fastpathTV.DecMapInt16Int32V(v, false, d)
  16442. case *map[int16]int32:
  16443. var v2 map[int16]int32
  16444. v2, changed = fastpathTV.DecMapInt16Int32V(*v, true, d)
  16445. if changed {
  16446. *v = v2
  16447. }
  16448. case map[int16]int64:
  16449. fastpathTV.DecMapInt16Int64V(v, false, d)
  16450. case *map[int16]int64:
  16451. var v2 map[int16]int64
  16452. v2, changed = fastpathTV.DecMapInt16Int64V(*v, true, d)
  16453. if changed {
  16454. *v = v2
  16455. }
  16456. case map[int16]float32:
  16457. fastpathTV.DecMapInt16Float32V(v, false, d)
  16458. case *map[int16]float32:
  16459. var v2 map[int16]float32
  16460. v2, changed = fastpathTV.DecMapInt16Float32V(*v, true, d)
  16461. if changed {
  16462. *v = v2
  16463. }
  16464. case map[int16]float64:
  16465. fastpathTV.DecMapInt16Float64V(v, false, d)
  16466. case *map[int16]float64:
  16467. var v2 map[int16]float64
  16468. v2, changed = fastpathTV.DecMapInt16Float64V(*v, true, d)
  16469. if changed {
  16470. *v = v2
  16471. }
  16472. case map[int16]bool:
  16473. fastpathTV.DecMapInt16BoolV(v, false, d)
  16474. case *map[int16]bool:
  16475. var v2 map[int16]bool
  16476. v2, changed = fastpathTV.DecMapInt16BoolV(*v, true, d)
  16477. if changed {
  16478. *v = v2
  16479. }
  16480. case map[int32]interface{}:
  16481. fastpathTV.DecMapInt32IntfV(v, false, d)
  16482. case *map[int32]interface{}:
  16483. var v2 map[int32]interface{}
  16484. v2, changed = fastpathTV.DecMapInt32IntfV(*v, true, d)
  16485. if changed {
  16486. *v = v2
  16487. }
  16488. case map[int32]string:
  16489. fastpathTV.DecMapInt32StringV(v, false, d)
  16490. case *map[int32]string:
  16491. var v2 map[int32]string
  16492. v2, changed = fastpathTV.DecMapInt32StringV(*v, true, d)
  16493. if changed {
  16494. *v = v2
  16495. }
  16496. case map[int32]uint:
  16497. fastpathTV.DecMapInt32UintV(v, false, d)
  16498. case *map[int32]uint:
  16499. var v2 map[int32]uint
  16500. v2, changed = fastpathTV.DecMapInt32UintV(*v, true, d)
  16501. if changed {
  16502. *v = v2
  16503. }
  16504. case map[int32]uint8:
  16505. fastpathTV.DecMapInt32Uint8V(v, false, d)
  16506. case *map[int32]uint8:
  16507. var v2 map[int32]uint8
  16508. v2, changed = fastpathTV.DecMapInt32Uint8V(*v, true, d)
  16509. if changed {
  16510. *v = v2
  16511. }
  16512. case map[int32]uint16:
  16513. fastpathTV.DecMapInt32Uint16V(v, false, d)
  16514. case *map[int32]uint16:
  16515. var v2 map[int32]uint16
  16516. v2, changed = fastpathTV.DecMapInt32Uint16V(*v, true, d)
  16517. if changed {
  16518. *v = v2
  16519. }
  16520. case map[int32]uint32:
  16521. fastpathTV.DecMapInt32Uint32V(v, false, d)
  16522. case *map[int32]uint32:
  16523. var v2 map[int32]uint32
  16524. v2, changed = fastpathTV.DecMapInt32Uint32V(*v, true, d)
  16525. if changed {
  16526. *v = v2
  16527. }
  16528. case map[int32]uint64:
  16529. fastpathTV.DecMapInt32Uint64V(v, false, d)
  16530. case *map[int32]uint64:
  16531. var v2 map[int32]uint64
  16532. v2, changed = fastpathTV.DecMapInt32Uint64V(*v, true, d)
  16533. if changed {
  16534. *v = v2
  16535. }
  16536. case map[int32]uintptr:
  16537. fastpathTV.DecMapInt32UintptrV(v, false, d)
  16538. case *map[int32]uintptr:
  16539. var v2 map[int32]uintptr
  16540. v2, changed = fastpathTV.DecMapInt32UintptrV(*v, true, d)
  16541. if changed {
  16542. *v = v2
  16543. }
  16544. case map[int32]int:
  16545. fastpathTV.DecMapInt32IntV(v, false, d)
  16546. case *map[int32]int:
  16547. var v2 map[int32]int
  16548. v2, changed = fastpathTV.DecMapInt32IntV(*v, true, d)
  16549. if changed {
  16550. *v = v2
  16551. }
  16552. case map[int32]int8:
  16553. fastpathTV.DecMapInt32Int8V(v, false, d)
  16554. case *map[int32]int8:
  16555. var v2 map[int32]int8
  16556. v2, changed = fastpathTV.DecMapInt32Int8V(*v, true, d)
  16557. if changed {
  16558. *v = v2
  16559. }
  16560. case map[int32]int16:
  16561. fastpathTV.DecMapInt32Int16V(v, false, d)
  16562. case *map[int32]int16:
  16563. var v2 map[int32]int16
  16564. v2, changed = fastpathTV.DecMapInt32Int16V(*v, true, d)
  16565. if changed {
  16566. *v = v2
  16567. }
  16568. case map[int32]int32:
  16569. fastpathTV.DecMapInt32Int32V(v, false, d)
  16570. case *map[int32]int32:
  16571. var v2 map[int32]int32
  16572. v2, changed = fastpathTV.DecMapInt32Int32V(*v, true, d)
  16573. if changed {
  16574. *v = v2
  16575. }
  16576. case map[int32]int64:
  16577. fastpathTV.DecMapInt32Int64V(v, false, d)
  16578. case *map[int32]int64:
  16579. var v2 map[int32]int64
  16580. v2, changed = fastpathTV.DecMapInt32Int64V(*v, true, d)
  16581. if changed {
  16582. *v = v2
  16583. }
  16584. case map[int32]float32:
  16585. fastpathTV.DecMapInt32Float32V(v, false, d)
  16586. case *map[int32]float32:
  16587. var v2 map[int32]float32
  16588. v2, changed = fastpathTV.DecMapInt32Float32V(*v, true, d)
  16589. if changed {
  16590. *v = v2
  16591. }
  16592. case map[int32]float64:
  16593. fastpathTV.DecMapInt32Float64V(v, false, d)
  16594. case *map[int32]float64:
  16595. var v2 map[int32]float64
  16596. v2, changed = fastpathTV.DecMapInt32Float64V(*v, true, d)
  16597. if changed {
  16598. *v = v2
  16599. }
  16600. case map[int32]bool:
  16601. fastpathTV.DecMapInt32BoolV(v, false, d)
  16602. case *map[int32]bool:
  16603. var v2 map[int32]bool
  16604. v2, changed = fastpathTV.DecMapInt32BoolV(*v, true, d)
  16605. if changed {
  16606. *v = v2
  16607. }
  16608. case map[int64]interface{}:
  16609. fastpathTV.DecMapInt64IntfV(v, false, d)
  16610. case *map[int64]interface{}:
  16611. var v2 map[int64]interface{}
  16612. v2, changed = fastpathTV.DecMapInt64IntfV(*v, true, d)
  16613. if changed {
  16614. *v = v2
  16615. }
  16616. case map[int64]string:
  16617. fastpathTV.DecMapInt64StringV(v, false, d)
  16618. case *map[int64]string:
  16619. var v2 map[int64]string
  16620. v2, changed = fastpathTV.DecMapInt64StringV(*v, true, d)
  16621. if changed {
  16622. *v = v2
  16623. }
  16624. case map[int64]uint:
  16625. fastpathTV.DecMapInt64UintV(v, false, d)
  16626. case *map[int64]uint:
  16627. var v2 map[int64]uint
  16628. v2, changed = fastpathTV.DecMapInt64UintV(*v, true, d)
  16629. if changed {
  16630. *v = v2
  16631. }
  16632. case map[int64]uint8:
  16633. fastpathTV.DecMapInt64Uint8V(v, false, d)
  16634. case *map[int64]uint8:
  16635. var v2 map[int64]uint8
  16636. v2, changed = fastpathTV.DecMapInt64Uint8V(*v, true, d)
  16637. if changed {
  16638. *v = v2
  16639. }
  16640. case map[int64]uint16:
  16641. fastpathTV.DecMapInt64Uint16V(v, false, d)
  16642. case *map[int64]uint16:
  16643. var v2 map[int64]uint16
  16644. v2, changed = fastpathTV.DecMapInt64Uint16V(*v, true, d)
  16645. if changed {
  16646. *v = v2
  16647. }
  16648. case map[int64]uint32:
  16649. fastpathTV.DecMapInt64Uint32V(v, false, d)
  16650. case *map[int64]uint32:
  16651. var v2 map[int64]uint32
  16652. v2, changed = fastpathTV.DecMapInt64Uint32V(*v, true, d)
  16653. if changed {
  16654. *v = v2
  16655. }
  16656. case map[int64]uint64:
  16657. fastpathTV.DecMapInt64Uint64V(v, false, d)
  16658. case *map[int64]uint64:
  16659. var v2 map[int64]uint64
  16660. v2, changed = fastpathTV.DecMapInt64Uint64V(*v, true, d)
  16661. if changed {
  16662. *v = v2
  16663. }
  16664. case map[int64]uintptr:
  16665. fastpathTV.DecMapInt64UintptrV(v, false, d)
  16666. case *map[int64]uintptr:
  16667. var v2 map[int64]uintptr
  16668. v2, changed = fastpathTV.DecMapInt64UintptrV(*v, true, d)
  16669. if changed {
  16670. *v = v2
  16671. }
  16672. case map[int64]int:
  16673. fastpathTV.DecMapInt64IntV(v, false, d)
  16674. case *map[int64]int:
  16675. var v2 map[int64]int
  16676. v2, changed = fastpathTV.DecMapInt64IntV(*v, true, d)
  16677. if changed {
  16678. *v = v2
  16679. }
  16680. case map[int64]int8:
  16681. fastpathTV.DecMapInt64Int8V(v, false, d)
  16682. case *map[int64]int8:
  16683. var v2 map[int64]int8
  16684. v2, changed = fastpathTV.DecMapInt64Int8V(*v, true, d)
  16685. if changed {
  16686. *v = v2
  16687. }
  16688. case map[int64]int16:
  16689. fastpathTV.DecMapInt64Int16V(v, false, d)
  16690. case *map[int64]int16:
  16691. var v2 map[int64]int16
  16692. v2, changed = fastpathTV.DecMapInt64Int16V(*v, true, d)
  16693. if changed {
  16694. *v = v2
  16695. }
  16696. case map[int64]int32:
  16697. fastpathTV.DecMapInt64Int32V(v, false, d)
  16698. case *map[int64]int32:
  16699. var v2 map[int64]int32
  16700. v2, changed = fastpathTV.DecMapInt64Int32V(*v, true, d)
  16701. if changed {
  16702. *v = v2
  16703. }
  16704. case map[int64]int64:
  16705. fastpathTV.DecMapInt64Int64V(v, false, d)
  16706. case *map[int64]int64:
  16707. var v2 map[int64]int64
  16708. v2, changed = fastpathTV.DecMapInt64Int64V(*v, true, d)
  16709. if changed {
  16710. *v = v2
  16711. }
  16712. case map[int64]float32:
  16713. fastpathTV.DecMapInt64Float32V(v, false, d)
  16714. case *map[int64]float32:
  16715. var v2 map[int64]float32
  16716. v2, changed = fastpathTV.DecMapInt64Float32V(*v, true, d)
  16717. if changed {
  16718. *v = v2
  16719. }
  16720. case map[int64]float64:
  16721. fastpathTV.DecMapInt64Float64V(v, false, d)
  16722. case *map[int64]float64:
  16723. var v2 map[int64]float64
  16724. v2, changed = fastpathTV.DecMapInt64Float64V(*v, true, d)
  16725. if changed {
  16726. *v = v2
  16727. }
  16728. case map[int64]bool:
  16729. fastpathTV.DecMapInt64BoolV(v, false, d)
  16730. case *map[int64]bool:
  16731. var v2 map[int64]bool
  16732. v2, changed = fastpathTV.DecMapInt64BoolV(*v, true, d)
  16733. if changed {
  16734. *v = v2
  16735. }
  16736. case map[bool]interface{}:
  16737. fastpathTV.DecMapBoolIntfV(v, false, d)
  16738. case *map[bool]interface{}:
  16739. var v2 map[bool]interface{}
  16740. v2, changed = fastpathTV.DecMapBoolIntfV(*v, true, d)
  16741. if changed {
  16742. *v = v2
  16743. }
  16744. case map[bool]string:
  16745. fastpathTV.DecMapBoolStringV(v, false, d)
  16746. case *map[bool]string:
  16747. var v2 map[bool]string
  16748. v2, changed = fastpathTV.DecMapBoolStringV(*v, true, d)
  16749. if changed {
  16750. *v = v2
  16751. }
  16752. case map[bool]uint:
  16753. fastpathTV.DecMapBoolUintV(v, false, d)
  16754. case *map[bool]uint:
  16755. var v2 map[bool]uint
  16756. v2, changed = fastpathTV.DecMapBoolUintV(*v, true, d)
  16757. if changed {
  16758. *v = v2
  16759. }
  16760. case map[bool]uint8:
  16761. fastpathTV.DecMapBoolUint8V(v, false, d)
  16762. case *map[bool]uint8:
  16763. var v2 map[bool]uint8
  16764. v2, changed = fastpathTV.DecMapBoolUint8V(*v, true, d)
  16765. if changed {
  16766. *v = v2
  16767. }
  16768. case map[bool]uint16:
  16769. fastpathTV.DecMapBoolUint16V(v, false, d)
  16770. case *map[bool]uint16:
  16771. var v2 map[bool]uint16
  16772. v2, changed = fastpathTV.DecMapBoolUint16V(*v, true, d)
  16773. if changed {
  16774. *v = v2
  16775. }
  16776. case map[bool]uint32:
  16777. fastpathTV.DecMapBoolUint32V(v, false, d)
  16778. case *map[bool]uint32:
  16779. var v2 map[bool]uint32
  16780. v2, changed = fastpathTV.DecMapBoolUint32V(*v, true, d)
  16781. if changed {
  16782. *v = v2
  16783. }
  16784. case map[bool]uint64:
  16785. fastpathTV.DecMapBoolUint64V(v, false, d)
  16786. case *map[bool]uint64:
  16787. var v2 map[bool]uint64
  16788. v2, changed = fastpathTV.DecMapBoolUint64V(*v, true, d)
  16789. if changed {
  16790. *v = v2
  16791. }
  16792. case map[bool]uintptr:
  16793. fastpathTV.DecMapBoolUintptrV(v, false, d)
  16794. case *map[bool]uintptr:
  16795. var v2 map[bool]uintptr
  16796. v2, changed = fastpathTV.DecMapBoolUintptrV(*v, true, d)
  16797. if changed {
  16798. *v = v2
  16799. }
  16800. case map[bool]int:
  16801. fastpathTV.DecMapBoolIntV(v, false, d)
  16802. case *map[bool]int:
  16803. var v2 map[bool]int
  16804. v2, changed = fastpathTV.DecMapBoolIntV(*v, true, d)
  16805. if changed {
  16806. *v = v2
  16807. }
  16808. case map[bool]int8:
  16809. fastpathTV.DecMapBoolInt8V(v, false, d)
  16810. case *map[bool]int8:
  16811. var v2 map[bool]int8
  16812. v2, changed = fastpathTV.DecMapBoolInt8V(*v, true, d)
  16813. if changed {
  16814. *v = v2
  16815. }
  16816. case map[bool]int16:
  16817. fastpathTV.DecMapBoolInt16V(v, false, d)
  16818. case *map[bool]int16:
  16819. var v2 map[bool]int16
  16820. v2, changed = fastpathTV.DecMapBoolInt16V(*v, true, d)
  16821. if changed {
  16822. *v = v2
  16823. }
  16824. case map[bool]int32:
  16825. fastpathTV.DecMapBoolInt32V(v, false, d)
  16826. case *map[bool]int32:
  16827. var v2 map[bool]int32
  16828. v2, changed = fastpathTV.DecMapBoolInt32V(*v, true, d)
  16829. if changed {
  16830. *v = v2
  16831. }
  16832. case map[bool]int64:
  16833. fastpathTV.DecMapBoolInt64V(v, false, d)
  16834. case *map[bool]int64:
  16835. var v2 map[bool]int64
  16836. v2, changed = fastpathTV.DecMapBoolInt64V(*v, true, d)
  16837. if changed {
  16838. *v = v2
  16839. }
  16840. case map[bool]float32:
  16841. fastpathTV.DecMapBoolFloat32V(v, false, d)
  16842. case *map[bool]float32:
  16843. var v2 map[bool]float32
  16844. v2, changed = fastpathTV.DecMapBoolFloat32V(*v, true, d)
  16845. if changed {
  16846. *v = v2
  16847. }
  16848. case map[bool]float64:
  16849. fastpathTV.DecMapBoolFloat64V(v, false, d)
  16850. case *map[bool]float64:
  16851. var v2 map[bool]float64
  16852. v2, changed = fastpathTV.DecMapBoolFloat64V(*v, true, d)
  16853. if changed {
  16854. *v = v2
  16855. }
  16856. case map[bool]bool:
  16857. fastpathTV.DecMapBoolBoolV(v, false, d)
  16858. case *map[bool]bool:
  16859. var v2 map[bool]bool
  16860. v2, changed = fastpathTV.DecMapBoolBoolV(*v, true, d)
  16861. if changed {
  16862. *v = v2
  16863. }
  16864. default:
  16865. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  16866. return false
  16867. }
  16868. return true
  16869. }
  16870. func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool {
  16871. switch v := iv.(type) {
  16872. case *[]interface{}:
  16873. *v = nil
  16874. case *[]string:
  16875. *v = nil
  16876. case *[]float32:
  16877. *v = nil
  16878. case *[]float64:
  16879. *v = nil
  16880. case *[]uint:
  16881. *v = nil
  16882. case *[]uint8:
  16883. *v = nil
  16884. case *[]uint16:
  16885. *v = nil
  16886. case *[]uint32:
  16887. *v = nil
  16888. case *[]uint64:
  16889. *v = nil
  16890. case *[]uintptr:
  16891. *v = nil
  16892. case *[]int:
  16893. *v = nil
  16894. case *[]int8:
  16895. *v = nil
  16896. case *[]int16:
  16897. *v = nil
  16898. case *[]int32:
  16899. *v = nil
  16900. case *[]int64:
  16901. *v = nil
  16902. case *[]bool:
  16903. *v = nil
  16904. case *map[interface{}]interface{}:
  16905. *v = nil
  16906. case *map[interface{}]string:
  16907. *v = nil
  16908. case *map[interface{}]uint:
  16909. *v = nil
  16910. case *map[interface{}]uint8:
  16911. *v = nil
  16912. case *map[interface{}]uint16:
  16913. *v = nil
  16914. case *map[interface{}]uint32:
  16915. *v = nil
  16916. case *map[interface{}]uint64:
  16917. *v = nil
  16918. case *map[interface{}]uintptr:
  16919. *v = nil
  16920. case *map[interface{}]int:
  16921. *v = nil
  16922. case *map[interface{}]int8:
  16923. *v = nil
  16924. case *map[interface{}]int16:
  16925. *v = nil
  16926. case *map[interface{}]int32:
  16927. *v = nil
  16928. case *map[interface{}]int64:
  16929. *v = nil
  16930. case *map[interface{}]float32:
  16931. *v = nil
  16932. case *map[interface{}]float64:
  16933. *v = nil
  16934. case *map[interface{}]bool:
  16935. *v = nil
  16936. case *map[string]interface{}:
  16937. *v = nil
  16938. case *map[string]string:
  16939. *v = nil
  16940. case *map[string]uint:
  16941. *v = nil
  16942. case *map[string]uint8:
  16943. *v = nil
  16944. case *map[string]uint16:
  16945. *v = nil
  16946. case *map[string]uint32:
  16947. *v = nil
  16948. case *map[string]uint64:
  16949. *v = nil
  16950. case *map[string]uintptr:
  16951. *v = nil
  16952. case *map[string]int:
  16953. *v = nil
  16954. case *map[string]int8:
  16955. *v = nil
  16956. case *map[string]int16:
  16957. *v = nil
  16958. case *map[string]int32:
  16959. *v = nil
  16960. case *map[string]int64:
  16961. *v = nil
  16962. case *map[string]float32:
  16963. *v = nil
  16964. case *map[string]float64:
  16965. *v = nil
  16966. case *map[string]bool:
  16967. *v = nil
  16968. case *map[float32]interface{}:
  16969. *v = nil
  16970. case *map[float32]string:
  16971. *v = nil
  16972. case *map[float32]uint:
  16973. *v = nil
  16974. case *map[float32]uint8:
  16975. *v = nil
  16976. case *map[float32]uint16:
  16977. *v = nil
  16978. case *map[float32]uint32:
  16979. *v = nil
  16980. case *map[float32]uint64:
  16981. *v = nil
  16982. case *map[float32]uintptr:
  16983. *v = nil
  16984. case *map[float32]int:
  16985. *v = nil
  16986. case *map[float32]int8:
  16987. *v = nil
  16988. case *map[float32]int16:
  16989. *v = nil
  16990. case *map[float32]int32:
  16991. *v = nil
  16992. case *map[float32]int64:
  16993. *v = nil
  16994. case *map[float32]float32:
  16995. *v = nil
  16996. case *map[float32]float64:
  16997. *v = nil
  16998. case *map[float32]bool:
  16999. *v = nil
  17000. case *map[float64]interface{}:
  17001. *v = nil
  17002. case *map[float64]string:
  17003. *v = nil
  17004. case *map[float64]uint:
  17005. *v = nil
  17006. case *map[float64]uint8:
  17007. *v = nil
  17008. case *map[float64]uint16:
  17009. *v = nil
  17010. case *map[float64]uint32:
  17011. *v = nil
  17012. case *map[float64]uint64:
  17013. *v = nil
  17014. case *map[float64]uintptr:
  17015. *v = nil
  17016. case *map[float64]int:
  17017. *v = nil
  17018. case *map[float64]int8:
  17019. *v = nil
  17020. case *map[float64]int16:
  17021. *v = nil
  17022. case *map[float64]int32:
  17023. *v = nil
  17024. case *map[float64]int64:
  17025. *v = nil
  17026. case *map[float64]float32:
  17027. *v = nil
  17028. case *map[float64]float64:
  17029. *v = nil
  17030. case *map[float64]bool:
  17031. *v = nil
  17032. case *map[uint]interface{}:
  17033. *v = nil
  17034. case *map[uint]string:
  17035. *v = nil
  17036. case *map[uint]uint:
  17037. *v = nil
  17038. case *map[uint]uint8:
  17039. *v = nil
  17040. case *map[uint]uint16:
  17041. *v = nil
  17042. case *map[uint]uint32:
  17043. *v = nil
  17044. case *map[uint]uint64:
  17045. *v = nil
  17046. case *map[uint]uintptr:
  17047. *v = nil
  17048. case *map[uint]int:
  17049. *v = nil
  17050. case *map[uint]int8:
  17051. *v = nil
  17052. case *map[uint]int16:
  17053. *v = nil
  17054. case *map[uint]int32:
  17055. *v = nil
  17056. case *map[uint]int64:
  17057. *v = nil
  17058. case *map[uint]float32:
  17059. *v = nil
  17060. case *map[uint]float64:
  17061. *v = nil
  17062. case *map[uint]bool:
  17063. *v = nil
  17064. case *map[uint8]interface{}:
  17065. *v = nil
  17066. case *map[uint8]string:
  17067. *v = nil
  17068. case *map[uint8]uint:
  17069. *v = nil
  17070. case *map[uint8]uint8:
  17071. *v = nil
  17072. case *map[uint8]uint16:
  17073. *v = nil
  17074. case *map[uint8]uint32:
  17075. *v = nil
  17076. case *map[uint8]uint64:
  17077. *v = nil
  17078. case *map[uint8]uintptr:
  17079. *v = nil
  17080. case *map[uint8]int:
  17081. *v = nil
  17082. case *map[uint8]int8:
  17083. *v = nil
  17084. case *map[uint8]int16:
  17085. *v = nil
  17086. case *map[uint8]int32:
  17087. *v = nil
  17088. case *map[uint8]int64:
  17089. *v = nil
  17090. case *map[uint8]float32:
  17091. *v = nil
  17092. case *map[uint8]float64:
  17093. *v = nil
  17094. case *map[uint8]bool:
  17095. *v = nil
  17096. case *map[uint16]interface{}:
  17097. *v = nil
  17098. case *map[uint16]string:
  17099. *v = nil
  17100. case *map[uint16]uint:
  17101. *v = nil
  17102. case *map[uint16]uint8:
  17103. *v = nil
  17104. case *map[uint16]uint16:
  17105. *v = nil
  17106. case *map[uint16]uint32:
  17107. *v = nil
  17108. case *map[uint16]uint64:
  17109. *v = nil
  17110. case *map[uint16]uintptr:
  17111. *v = nil
  17112. case *map[uint16]int:
  17113. *v = nil
  17114. case *map[uint16]int8:
  17115. *v = nil
  17116. case *map[uint16]int16:
  17117. *v = nil
  17118. case *map[uint16]int32:
  17119. *v = nil
  17120. case *map[uint16]int64:
  17121. *v = nil
  17122. case *map[uint16]float32:
  17123. *v = nil
  17124. case *map[uint16]float64:
  17125. *v = nil
  17126. case *map[uint16]bool:
  17127. *v = nil
  17128. case *map[uint32]interface{}:
  17129. *v = nil
  17130. case *map[uint32]string:
  17131. *v = nil
  17132. case *map[uint32]uint:
  17133. *v = nil
  17134. case *map[uint32]uint8:
  17135. *v = nil
  17136. case *map[uint32]uint16:
  17137. *v = nil
  17138. case *map[uint32]uint32:
  17139. *v = nil
  17140. case *map[uint32]uint64:
  17141. *v = nil
  17142. case *map[uint32]uintptr:
  17143. *v = nil
  17144. case *map[uint32]int:
  17145. *v = nil
  17146. case *map[uint32]int8:
  17147. *v = nil
  17148. case *map[uint32]int16:
  17149. *v = nil
  17150. case *map[uint32]int32:
  17151. *v = nil
  17152. case *map[uint32]int64:
  17153. *v = nil
  17154. case *map[uint32]float32:
  17155. *v = nil
  17156. case *map[uint32]float64:
  17157. *v = nil
  17158. case *map[uint32]bool:
  17159. *v = nil
  17160. case *map[uint64]interface{}:
  17161. *v = nil
  17162. case *map[uint64]string:
  17163. *v = nil
  17164. case *map[uint64]uint:
  17165. *v = nil
  17166. case *map[uint64]uint8:
  17167. *v = nil
  17168. case *map[uint64]uint16:
  17169. *v = nil
  17170. case *map[uint64]uint32:
  17171. *v = nil
  17172. case *map[uint64]uint64:
  17173. *v = nil
  17174. case *map[uint64]uintptr:
  17175. *v = nil
  17176. case *map[uint64]int:
  17177. *v = nil
  17178. case *map[uint64]int8:
  17179. *v = nil
  17180. case *map[uint64]int16:
  17181. *v = nil
  17182. case *map[uint64]int32:
  17183. *v = nil
  17184. case *map[uint64]int64:
  17185. *v = nil
  17186. case *map[uint64]float32:
  17187. *v = nil
  17188. case *map[uint64]float64:
  17189. *v = nil
  17190. case *map[uint64]bool:
  17191. *v = nil
  17192. case *map[uintptr]interface{}:
  17193. *v = nil
  17194. case *map[uintptr]string:
  17195. *v = nil
  17196. case *map[uintptr]uint:
  17197. *v = nil
  17198. case *map[uintptr]uint8:
  17199. *v = nil
  17200. case *map[uintptr]uint16:
  17201. *v = nil
  17202. case *map[uintptr]uint32:
  17203. *v = nil
  17204. case *map[uintptr]uint64:
  17205. *v = nil
  17206. case *map[uintptr]uintptr:
  17207. *v = nil
  17208. case *map[uintptr]int:
  17209. *v = nil
  17210. case *map[uintptr]int8:
  17211. *v = nil
  17212. case *map[uintptr]int16:
  17213. *v = nil
  17214. case *map[uintptr]int32:
  17215. *v = nil
  17216. case *map[uintptr]int64:
  17217. *v = nil
  17218. case *map[uintptr]float32:
  17219. *v = nil
  17220. case *map[uintptr]float64:
  17221. *v = nil
  17222. case *map[uintptr]bool:
  17223. *v = nil
  17224. case *map[int]interface{}:
  17225. *v = nil
  17226. case *map[int]string:
  17227. *v = nil
  17228. case *map[int]uint:
  17229. *v = nil
  17230. case *map[int]uint8:
  17231. *v = nil
  17232. case *map[int]uint16:
  17233. *v = nil
  17234. case *map[int]uint32:
  17235. *v = nil
  17236. case *map[int]uint64:
  17237. *v = nil
  17238. case *map[int]uintptr:
  17239. *v = nil
  17240. case *map[int]int:
  17241. *v = nil
  17242. case *map[int]int8:
  17243. *v = nil
  17244. case *map[int]int16:
  17245. *v = nil
  17246. case *map[int]int32:
  17247. *v = nil
  17248. case *map[int]int64:
  17249. *v = nil
  17250. case *map[int]float32:
  17251. *v = nil
  17252. case *map[int]float64:
  17253. *v = nil
  17254. case *map[int]bool:
  17255. *v = nil
  17256. case *map[int8]interface{}:
  17257. *v = nil
  17258. case *map[int8]string:
  17259. *v = nil
  17260. case *map[int8]uint:
  17261. *v = nil
  17262. case *map[int8]uint8:
  17263. *v = nil
  17264. case *map[int8]uint16:
  17265. *v = nil
  17266. case *map[int8]uint32:
  17267. *v = nil
  17268. case *map[int8]uint64:
  17269. *v = nil
  17270. case *map[int8]uintptr:
  17271. *v = nil
  17272. case *map[int8]int:
  17273. *v = nil
  17274. case *map[int8]int8:
  17275. *v = nil
  17276. case *map[int8]int16:
  17277. *v = nil
  17278. case *map[int8]int32:
  17279. *v = nil
  17280. case *map[int8]int64:
  17281. *v = nil
  17282. case *map[int8]float32:
  17283. *v = nil
  17284. case *map[int8]float64:
  17285. *v = nil
  17286. case *map[int8]bool:
  17287. *v = nil
  17288. case *map[int16]interface{}:
  17289. *v = nil
  17290. case *map[int16]string:
  17291. *v = nil
  17292. case *map[int16]uint:
  17293. *v = nil
  17294. case *map[int16]uint8:
  17295. *v = nil
  17296. case *map[int16]uint16:
  17297. *v = nil
  17298. case *map[int16]uint32:
  17299. *v = nil
  17300. case *map[int16]uint64:
  17301. *v = nil
  17302. case *map[int16]uintptr:
  17303. *v = nil
  17304. case *map[int16]int:
  17305. *v = nil
  17306. case *map[int16]int8:
  17307. *v = nil
  17308. case *map[int16]int16:
  17309. *v = nil
  17310. case *map[int16]int32:
  17311. *v = nil
  17312. case *map[int16]int64:
  17313. *v = nil
  17314. case *map[int16]float32:
  17315. *v = nil
  17316. case *map[int16]float64:
  17317. *v = nil
  17318. case *map[int16]bool:
  17319. *v = nil
  17320. case *map[int32]interface{}:
  17321. *v = nil
  17322. case *map[int32]string:
  17323. *v = nil
  17324. case *map[int32]uint:
  17325. *v = nil
  17326. case *map[int32]uint8:
  17327. *v = nil
  17328. case *map[int32]uint16:
  17329. *v = nil
  17330. case *map[int32]uint32:
  17331. *v = nil
  17332. case *map[int32]uint64:
  17333. *v = nil
  17334. case *map[int32]uintptr:
  17335. *v = nil
  17336. case *map[int32]int:
  17337. *v = nil
  17338. case *map[int32]int8:
  17339. *v = nil
  17340. case *map[int32]int16:
  17341. *v = nil
  17342. case *map[int32]int32:
  17343. *v = nil
  17344. case *map[int32]int64:
  17345. *v = nil
  17346. case *map[int32]float32:
  17347. *v = nil
  17348. case *map[int32]float64:
  17349. *v = nil
  17350. case *map[int32]bool:
  17351. *v = nil
  17352. case *map[int64]interface{}:
  17353. *v = nil
  17354. case *map[int64]string:
  17355. *v = nil
  17356. case *map[int64]uint:
  17357. *v = nil
  17358. case *map[int64]uint8:
  17359. *v = nil
  17360. case *map[int64]uint16:
  17361. *v = nil
  17362. case *map[int64]uint32:
  17363. *v = nil
  17364. case *map[int64]uint64:
  17365. *v = nil
  17366. case *map[int64]uintptr:
  17367. *v = nil
  17368. case *map[int64]int:
  17369. *v = nil
  17370. case *map[int64]int8:
  17371. *v = nil
  17372. case *map[int64]int16:
  17373. *v = nil
  17374. case *map[int64]int32:
  17375. *v = nil
  17376. case *map[int64]int64:
  17377. *v = nil
  17378. case *map[int64]float32:
  17379. *v = nil
  17380. case *map[int64]float64:
  17381. *v = nil
  17382. case *map[int64]bool:
  17383. *v = nil
  17384. case *map[bool]interface{}:
  17385. *v = nil
  17386. case *map[bool]string:
  17387. *v = nil
  17388. case *map[bool]uint:
  17389. *v = nil
  17390. case *map[bool]uint8:
  17391. *v = nil
  17392. case *map[bool]uint16:
  17393. *v = nil
  17394. case *map[bool]uint32:
  17395. *v = nil
  17396. case *map[bool]uint64:
  17397. *v = nil
  17398. case *map[bool]uintptr:
  17399. *v = nil
  17400. case *map[bool]int:
  17401. *v = nil
  17402. case *map[bool]int8:
  17403. *v = nil
  17404. case *map[bool]int16:
  17405. *v = nil
  17406. case *map[bool]int32:
  17407. *v = nil
  17408. case *map[bool]int64:
  17409. *v = nil
  17410. case *map[bool]float32:
  17411. *v = nil
  17412. case *map[bool]float64:
  17413. *v = nil
  17414. case *map[bool]bool:
  17415. *v = nil
  17416. default:
  17417. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  17418. return false
  17419. }
  17420. return true
  17421. }
  17422. // -- -- fast path functions
  17423. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  17424. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17425. vp := rv2i(rv).(*[]interface{})
  17426. v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d)
  17427. if changed {
  17428. *vp = v
  17429. }
  17430. } else {
  17431. v := rv2i(rv).([]interface{})
  17432. v2, changed := fastpathTV.DecSliceIntfV(v, !array, d)
  17433. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17434. copy(v, v2)
  17435. }
  17436. }
  17437. }
  17438. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  17439. v, changed := f.DecSliceIntfV(*vp, true, d)
  17440. if changed {
  17441. *vp = v
  17442. }
  17443. }
  17444. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  17445. dd := d.d
  17446. slh, containerLenS := d.decSliceHelperStart()
  17447. if containerLenS == 0 {
  17448. if canChange {
  17449. if v == nil {
  17450. v = []interface{}{}
  17451. } else if len(v) != 0 {
  17452. v = v[:0]
  17453. }
  17454. changed = true
  17455. }
  17456. slh.End()
  17457. return v, changed
  17458. }
  17459. d.depthIncr()
  17460. hasLen := containerLenS > 0
  17461. var xlen int
  17462. if hasLen && canChange {
  17463. if containerLenS > cap(v) {
  17464. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17465. if xlen <= cap(v) {
  17466. v = v[:uint(xlen)]
  17467. } else {
  17468. v = make([]interface{}, uint(xlen))
  17469. }
  17470. changed = true
  17471. } else if containerLenS != len(v) {
  17472. v = v[:containerLenS]
  17473. changed = true
  17474. }
  17475. }
  17476. var j int
  17477. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17478. if j == 0 && len(v) == 0 && canChange {
  17479. if hasLen {
  17480. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17481. } else {
  17482. xlen = 8
  17483. }
  17484. v = make([]interface{}, uint(xlen))
  17485. changed = true
  17486. }
  17487. // if indefinite, etc, then expand the slice if necessary
  17488. var decodeIntoBlank bool
  17489. if j >= len(v) {
  17490. if canChange {
  17491. v = append(v, nil)
  17492. changed = true
  17493. } else {
  17494. d.arrayCannotExpand(len(v), j+1)
  17495. decodeIntoBlank = true
  17496. }
  17497. }
  17498. slh.ElemContainerState(j)
  17499. if decodeIntoBlank {
  17500. d.swallow()
  17501. } else if dd.TryDecodeAsNil() {
  17502. v[uint(j)] = nil
  17503. } else {
  17504. d.decode(&v[uint(j)])
  17505. }
  17506. }
  17507. if canChange {
  17508. if j < len(v) {
  17509. v = v[:uint(j)]
  17510. changed = true
  17511. } else if j == 0 && v == nil {
  17512. v = make([]interface{}, 0)
  17513. changed = true
  17514. }
  17515. }
  17516. slh.End()
  17517. d.depthDecr()
  17518. return v, changed
  17519. }
  17520. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  17521. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17522. vp := rv2i(rv).(*[]string)
  17523. v, changed := fastpathTV.DecSliceStringV(*vp, !array, d)
  17524. if changed {
  17525. *vp = v
  17526. }
  17527. } else {
  17528. v := rv2i(rv).([]string)
  17529. v2, changed := fastpathTV.DecSliceStringV(v, !array, d)
  17530. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17531. copy(v, v2)
  17532. }
  17533. }
  17534. }
  17535. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  17536. v, changed := f.DecSliceStringV(*vp, true, d)
  17537. if changed {
  17538. *vp = v
  17539. }
  17540. }
  17541. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  17542. dd := d.d
  17543. slh, containerLenS := d.decSliceHelperStart()
  17544. if containerLenS == 0 {
  17545. if canChange {
  17546. if v == nil {
  17547. v = []string{}
  17548. } else if len(v) != 0 {
  17549. v = v[:0]
  17550. }
  17551. changed = true
  17552. }
  17553. slh.End()
  17554. return v, changed
  17555. }
  17556. d.depthIncr()
  17557. hasLen := containerLenS > 0
  17558. var xlen int
  17559. if hasLen && canChange {
  17560. if containerLenS > cap(v) {
  17561. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17562. if xlen <= cap(v) {
  17563. v = v[:uint(xlen)]
  17564. } else {
  17565. v = make([]string, uint(xlen))
  17566. }
  17567. changed = true
  17568. } else if containerLenS != len(v) {
  17569. v = v[:containerLenS]
  17570. changed = true
  17571. }
  17572. }
  17573. var j int
  17574. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17575. if j == 0 && len(v) == 0 && canChange {
  17576. if hasLen {
  17577. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17578. } else {
  17579. xlen = 8
  17580. }
  17581. v = make([]string, uint(xlen))
  17582. changed = true
  17583. }
  17584. // if indefinite, etc, then expand the slice if necessary
  17585. var decodeIntoBlank bool
  17586. if j >= len(v) {
  17587. if canChange {
  17588. v = append(v, "")
  17589. changed = true
  17590. } else {
  17591. d.arrayCannotExpand(len(v), j+1)
  17592. decodeIntoBlank = true
  17593. }
  17594. }
  17595. slh.ElemContainerState(j)
  17596. if decodeIntoBlank {
  17597. d.swallow()
  17598. } else if dd.TryDecodeAsNil() {
  17599. v[uint(j)] = ""
  17600. } else {
  17601. v[uint(j)] = dd.DecodeString()
  17602. }
  17603. }
  17604. if canChange {
  17605. if j < len(v) {
  17606. v = v[:uint(j)]
  17607. changed = true
  17608. } else if j == 0 && v == nil {
  17609. v = make([]string, 0)
  17610. changed = true
  17611. }
  17612. }
  17613. slh.End()
  17614. d.depthDecr()
  17615. return v, changed
  17616. }
  17617. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  17618. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17619. vp := rv2i(rv).(*[]float32)
  17620. v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d)
  17621. if changed {
  17622. *vp = v
  17623. }
  17624. } else {
  17625. v := rv2i(rv).([]float32)
  17626. v2, changed := fastpathTV.DecSliceFloat32V(v, !array, d)
  17627. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17628. copy(v, v2)
  17629. }
  17630. }
  17631. }
  17632. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  17633. v, changed := f.DecSliceFloat32V(*vp, true, d)
  17634. if changed {
  17635. *vp = v
  17636. }
  17637. }
  17638. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  17639. dd := d.d
  17640. slh, containerLenS := d.decSliceHelperStart()
  17641. if containerLenS == 0 {
  17642. if canChange {
  17643. if v == nil {
  17644. v = []float32{}
  17645. } else if len(v) != 0 {
  17646. v = v[:0]
  17647. }
  17648. changed = true
  17649. }
  17650. slh.End()
  17651. return v, changed
  17652. }
  17653. d.depthIncr()
  17654. hasLen := containerLenS > 0
  17655. var xlen int
  17656. if hasLen && canChange {
  17657. if containerLenS > cap(v) {
  17658. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17659. if xlen <= cap(v) {
  17660. v = v[:uint(xlen)]
  17661. } else {
  17662. v = make([]float32, uint(xlen))
  17663. }
  17664. changed = true
  17665. } else if containerLenS != len(v) {
  17666. v = v[:containerLenS]
  17667. changed = true
  17668. }
  17669. }
  17670. var j int
  17671. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17672. if j == 0 && len(v) == 0 && canChange {
  17673. if hasLen {
  17674. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17675. } else {
  17676. xlen = 8
  17677. }
  17678. v = make([]float32, uint(xlen))
  17679. changed = true
  17680. }
  17681. // if indefinite, etc, then expand the slice if necessary
  17682. var decodeIntoBlank bool
  17683. if j >= len(v) {
  17684. if canChange {
  17685. v = append(v, 0)
  17686. changed = true
  17687. } else {
  17688. d.arrayCannotExpand(len(v), j+1)
  17689. decodeIntoBlank = true
  17690. }
  17691. }
  17692. slh.ElemContainerState(j)
  17693. if decodeIntoBlank {
  17694. d.swallow()
  17695. } else if dd.TryDecodeAsNil() {
  17696. v[uint(j)] = 0
  17697. } else {
  17698. v[uint(j)] = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  17699. }
  17700. }
  17701. if canChange {
  17702. if j < len(v) {
  17703. v = v[:uint(j)]
  17704. changed = true
  17705. } else if j == 0 && v == nil {
  17706. v = make([]float32, 0)
  17707. changed = true
  17708. }
  17709. }
  17710. slh.End()
  17711. d.depthDecr()
  17712. return v, changed
  17713. }
  17714. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  17715. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17716. vp := rv2i(rv).(*[]float64)
  17717. v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d)
  17718. if changed {
  17719. *vp = v
  17720. }
  17721. } else {
  17722. v := rv2i(rv).([]float64)
  17723. v2, changed := fastpathTV.DecSliceFloat64V(v, !array, d)
  17724. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17725. copy(v, v2)
  17726. }
  17727. }
  17728. }
  17729. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  17730. v, changed := f.DecSliceFloat64V(*vp, true, d)
  17731. if changed {
  17732. *vp = v
  17733. }
  17734. }
  17735. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  17736. dd := d.d
  17737. slh, containerLenS := d.decSliceHelperStart()
  17738. if containerLenS == 0 {
  17739. if canChange {
  17740. if v == nil {
  17741. v = []float64{}
  17742. } else if len(v) != 0 {
  17743. v = v[:0]
  17744. }
  17745. changed = true
  17746. }
  17747. slh.End()
  17748. return v, changed
  17749. }
  17750. d.depthIncr()
  17751. hasLen := containerLenS > 0
  17752. var xlen int
  17753. if hasLen && canChange {
  17754. if containerLenS > cap(v) {
  17755. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17756. if xlen <= cap(v) {
  17757. v = v[:uint(xlen)]
  17758. } else {
  17759. v = make([]float64, uint(xlen))
  17760. }
  17761. changed = true
  17762. } else if containerLenS != len(v) {
  17763. v = v[:containerLenS]
  17764. changed = true
  17765. }
  17766. }
  17767. var j int
  17768. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17769. if j == 0 && len(v) == 0 && canChange {
  17770. if hasLen {
  17771. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17772. } else {
  17773. xlen = 8
  17774. }
  17775. v = make([]float64, uint(xlen))
  17776. changed = true
  17777. }
  17778. // if indefinite, etc, then expand the slice if necessary
  17779. var decodeIntoBlank bool
  17780. if j >= len(v) {
  17781. if canChange {
  17782. v = append(v, 0)
  17783. changed = true
  17784. } else {
  17785. d.arrayCannotExpand(len(v), j+1)
  17786. decodeIntoBlank = true
  17787. }
  17788. }
  17789. slh.ElemContainerState(j)
  17790. if decodeIntoBlank {
  17791. d.swallow()
  17792. } else if dd.TryDecodeAsNil() {
  17793. v[uint(j)] = 0
  17794. } else {
  17795. v[uint(j)] = dd.DecodeFloat64()
  17796. }
  17797. }
  17798. if canChange {
  17799. if j < len(v) {
  17800. v = v[:uint(j)]
  17801. changed = true
  17802. } else if j == 0 && v == nil {
  17803. v = make([]float64, 0)
  17804. changed = true
  17805. }
  17806. }
  17807. slh.End()
  17808. d.depthDecr()
  17809. return v, changed
  17810. }
  17811. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  17812. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17813. vp := rv2i(rv).(*[]uint)
  17814. v, changed := fastpathTV.DecSliceUintV(*vp, !array, d)
  17815. if changed {
  17816. *vp = v
  17817. }
  17818. } else {
  17819. v := rv2i(rv).([]uint)
  17820. v2, changed := fastpathTV.DecSliceUintV(v, !array, d)
  17821. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17822. copy(v, v2)
  17823. }
  17824. }
  17825. }
  17826. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  17827. v, changed := f.DecSliceUintV(*vp, true, d)
  17828. if changed {
  17829. *vp = v
  17830. }
  17831. }
  17832. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  17833. dd := d.d
  17834. slh, containerLenS := d.decSliceHelperStart()
  17835. if containerLenS == 0 {
  17836. if canChange {
  17837. if v == nil {
  17838. v = []uint{}
  17839. } else if len(v) != 0 {
  17840. v = v[:0]
  17841. }
  17842. changed = true
  17843. }
  17844. slh.End()
  17845. return v, changed
  17846. }
  17847. d.depthIncr()
  17848. hasLen := containerLenS > 0
  17849. var xlen int
  17850. if hasLen && canChange {
  17851. if containerLenS > cap(v) {
  17852. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17853. if xlen <= cap(v) {
  17854. v = v[:uint(xlen)]
  17855. } else {
  17856. v = make([]uint, uint(xlen))
  17857. }
  17858. changed = true
  17859. } else if containerLenS != len(v) {
  17860. v = v[:containerLenS]
  17861. changed = true
  17862. }
  17863. }
  17864. var j int
  17865. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17866. if j == 0 && len(v) == 0 && canChange {
  17867. if hasLen {
  17868. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17869. } else {
  17870. xlen = 8
  17871. }
  17872. v = make([]uint, uint(xlen))
  17873. changed = true
  17874. }
  17875. // if indefinite, etc, then expand the slice if necessary
  17876. var decodeIntoBlank bool
  17877. if j >= len(v) {
  17878. if canChange {
  17879. v = append(v, 0)
  17880. changed = true
  17881. } else {
  17882. d.arrayCannotExpand(len(v), j+1)
  17883. decodeIntoBlank = true
  17884. }
  17885. }
  17886. slh.ElemContainerState(j)
  17887. if decodeIntoBlank {
  17888. d.swallow()
  17889. } else if dd.TryDecodeAsNil() {
  17890. v[uint(j)] = 0
  17891. } else {
  17892. v[uint(j)] = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  17893. }
  17894. }
  17895. if canChange {
  17896. if j < len(v) {
  17897. v = v[:uint(j)]
  17898. changed = true
  17899. } else if j == 0 && v == nil {
  17900. v = make([]uint, 0)
  17901. changed = true
  17902. }
  17903. }
  17904. slh.End()
  17905. d.depthDecr()
  17906. return v, changed
  17907. }
  17908. func (d *Decoder) fastpathDecSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  17909. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17910. vp := rv2i(rv).(*[]uint8)
  17911. v, changed := fastpathTV.DecSliceUint8V(*vp, !array, d)
  17912. if changed {
  17913. *vp = v
  17914. }
  17915. } else {
  17916. v := rv2i(rv).([]uint8)
  17917. v2, changed := fastpathTV.DecSliceUint8V(v, !array, d)
  17918. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17919. copy(v, v2)
  17920. }
  17921. }
  17922. }
  17923. func (f fastpathT) DecSliceUint8X(vp *[]uint8, d *Decoder) {
  17924. v, changed := f.DecSliceUint8V(*vp, true, d)
  17925. if changed {
  17926. *vp = v
  17927. }
  17928. }
  17929. func (_ fastpathT) DecSliceUint8V(v []uint8, canChange bool, d *Decoder) (_ []uint8, changed bool) {
  17930. dd := d.d
  17931. slh, containerLenS := d.decSliceHelperStart()
  17932. if containerLenS == 0 {
  17933. if canChange {
  17934. if v == nil {
  17935. v = []uint8{}
  17936. } else if len(v) != 0 {
  17937. v = v[:0]
  17938. }
  17939. changed = true
  17940. }
  17941. slh.End()
  17942. return v, changed
  17943. }
  17944. d.depthIncr()
  17945. hasLen := containerLenS > 0
  17946. var xlen int
  17947. if hasLen && canChange {
  17948. if containerLenS > cap(v) {
  17949. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17950. if xlen <= cap(v) {
  17951. v = v[:uint(xlen)]
  17952. } else {
  17953. v = make([]uint8, uint(xlen))
  17954. }
  17955. changed = true
  17956. } else if containerLenS != len(v) {
  17957. v = v[:containerLenS]
  17958. changed = true
  17959. }
  17960. }
  17961. var j int
  17962. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17963. if j == 0 && len(v) == 0 && canChange {
  17964. if hasLen {
  17965. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17966. } else {
  17967. xlen = 8
  17968. }
  17969. v = make([]uint8, uint(xlen))
  17970. changed = true
  17971. }
  17972. // if indefinite, etc, then expand the slice if necessary
  17973. var decodeIntoBlank bool
  17974. if j >= len(v) {
  17975. if canChange {
  17976. v = append(v, 0)
  17977. changed = true
  17978. } else {
  17979. d.arrayCannotExpand(len(v), j+1)
  17980. decodeIntoBlank = true
  17981. }
  17982. }
  17983. slh.ElemContainerState(j)
  17984. if decodeIntoBlank {
  17985. d.swallow()
  17986. } else if dd.TryDecodeAsNil() {
  17987. v[uint(j)] = 0
  17988. } else {
  17989. v[uint(j)] = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  17990. }
  17991. }
  17992. if canChange {
  17993. if j < len(v) {
  17994. v = v[:uint(j)]
  17995. changed = true
  17996. } else if j == 0 && v == nil {
  17997. v = make([]uint8, 0)
  17998. changed = true
  17999. }
  18000. }
  18001. slh.End()
  18002. d.depthDecr()
  18003. return v, changed
  18004. }
  18005. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  18006. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18007. vp := rv2i(rv).(*[]uint16)
  18008. v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d)
  18009. if changed {
  18010. *vp = v
  18011. }
  18012. } else {
  18013. v := rv2i(rv).([]uint16)
  18014. v2, changed := fastpathTV.DecSliceUint16V(v, !array, d)
  18015. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18016. copy(v, v2)
  18017. }
  18018. }
  18019. }
  18020. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  18021. v, changed := f.DecSliceUint16V(*vp, true, d)
  18022. if changed {
  18023. *vp = v
  18024. }
  18025. }
  18026. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  18027. dd := d.d
  18028. slh, containerLenS := d.decSliceHelperStart()
  18029. if containerLenS == 0 {
  18030. if canChange {
  18031. if v == nil {
  18032. v = []uint16{}
  18033. } else if len(v) != 0 {
  18034. v = v[:0]
  18035. }
  18036. changed = true
  18037. }
  18038. slh.End()
  18039. return v, changed
  18040. }
  18041. d.depthIncr()
  18042. hasLen := containerLenS > 0
  18043. var xlen int
  18044. if hasLen && canChange {
  18045. if containerLenS > cap(v) {
  18046. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18047. if xlen <= cap(v) {
  18048. v = v[:uint(xlen)]
  18049. } else {
  18050. v = make([]uint16, uint(xlen))
  18051. }
  18052. changed = true
  18053. } else if containerLenS != len(v) {
  18054. v = v[:containerLenS]
  18055. changed = true
  18056. }
  18057. }
  18058. var j int
  18059. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18060. if j == 0 && len(v) == 0 && canChange {
  18061. if hasLen {
  18062. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18063. } else {
  18064. xlen = 8
  18065. }
  18066. v = make([]uint16, uint(xlen))
  18067. changed = true
  18068. }
  18069. // if indefinite, etc, then expand the slice if necessary
  18070. var decodeIntoBlank bool
  18071. if j >= len(v) {
  18072. if canChange {
  18073. v = append(v, 0)
  18074. changed = true
  18075. } else {
  18076. d.arrayCannotExpand(len(v), j+1)
  18077. decodeIntoBlank = true
  18078. }
  18079. }
  18080. slh.ElemContainerState(j)
  18081. if decodeIntoBlank {
  18082. d.swallow()
  18083. } else if dd.TryDecodeAsNil() {
  18084. v[uint(j)] = 0
  18085. } else {
  18086. v[uint(j)] = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  18087. }
  18088. }
  18089. if canChange {
  18090. if j < len(v) {
  18091. v = v[:uint(j)]
  18092. changed = true
  18093. } else if j == 0 && v == nil {
  18094. v = make([]uint16, 0)
  18095. changed = true
  18096. }
  18097. }
  18098. slh.End()
  18099. d.depthDecr()
  18100. return v, changed
  18101. }
  18102. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  18103. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18104. vp := rv2i(rv).(*[]uint32)
  18105. v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d)
  18106. if changed {
  18107. *vp = v
  18108. }
  18109. } else {
  18110. v := rv2i(rv).([]uint32)
  18111. v2, changed := fastpathTV.DecSliceUint32V(v, !array, d)
  18112. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18113. copy(v, v2)
  18114. }
  18115. }
  18116. }
  18117. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  18118. v, changed := f.DecSliceUint32V(*vp, true, d)
  18119. if changed {
  18120. *vp = v
  18121. }
  18122. }
  18123. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  18124. dd := d.d
  18125. slh, containerLenS := d.decSliceHelperStart()
  18126. if containerLenS == 0 {
  18127. if canChange {
  18128. if v == nil {
  18129. v = []uint32{}
  18130. } else if len(v) != 0 {
  18131. v = v[:0]
  18132. }
  18133. changed = true
  18134. }
  18135. slh.End()
  18136. return v, changed
  18137. }
  18138. d.depthIncr()
  18139. hasLen := containerLenS > 0
  18140. var xlen int
  18141. if hasLen && canChange {
  18142. if containerLenS > cap(v) {
  18143. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18144. if xlen <= cap(v) {
  18145. v = v[:uint(xlen)]
  18146. } else {
  18147. v = make([]uint32, uint(xlen))
  18148. }
  18149. changed = true
  18150. } else if containerLenS != len(v) {
  18151. v = v[:containerLenS]
  18152. changed = true
  18153. }
  18154. }
  18155. var j int
  18156. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18157. if j == 0 && len(v) == 0 && canChange {
  18158. if hasLen {
  18159. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18160. } else {
  18161. xlen = 8
  18162. }
  18163. v = make([]uint32, uint(xlen))
  18164. changed = true
  18165. }
  18166. // if indefinite, etc, then expand the slice if necessary
  18167. var decodeIntoBlank bool
  18168. if j >= len(v) {
  18169. if canChange {
  18170. v = append(v, 0)
  18171. changed = true
  18172. } else {
  18173. d.arrayCannotExpand(len(v), j+1)
  18174. decodeIntoBlank = true
  18175. }
  18176. }
  18177. slh.ElemContainerState(j)
  18178. if decodeIntoBlank {
  18179. d.swallow()
  18180. } else if dd.TryDecodeAsNil() {
  18181. v[uint(j)] = 0
  18182. } else {
  18183. v[uint(j)] = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  18184. }
  18185. }
  18186. if canChange {
  18187. if j < len(v) {
  18188. v = v[:uint(j)]
  18189. changed = true
  18190. } else if j == 0 && v == nil {
  18191. v = make([]uint32, 0)
  18192. changed = true
  18193. }
  18194. }
  18195. slh.End()
  18196. d.depthDecr()
  18197. return v, changed
  18198. }
  18199. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  18200. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18201. vp := rv2i(rv).(*[]uint64)
  18202. v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d)
  18203. if changed {
  18204. *vp = v
  18205. }
  18206. } else {
  18207. v := rv2i(rv).([]uint64)
  18208. v2, changed := fastpathTV.DecSliceUint64V(v, !array, d)
  18209. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18210. copy(v, v2)
  18211. }
  18212. }
  18213. }
  18214. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  18215. v, changed := f.DecSliceUint64V(*vp, true, d)
  18216. if changed {
  18217. *vp = v
  18218. }
  18219. }
  18220. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  18221. dd := d.d
  18222. slh, containerLenS := d.decSliceHelperStart()
  18223. if containerLenS == 0 {
  18224. if canChange {
  18225. if v == nil {
  18226. v = []uint64{}
  18227. } else if len(v) != 0 {
  18228. v = v[:0]
  18229. }
  18230. changed = true
  18231. }
  18232. slh.End()
  18233. return v, changed
  18234. }
  18235. d.depthIncr()
  18236. hasLen := containerLenS > 0
  18237. var xlen int
  18238. if hasLen && canChange {
  18239. if containerLenS > cap(v) {
  18240. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18241. if xlen <= cap(v) {
  18242. v = v[:uint(xlen)]
  18243. } else {
  18244. v = make([]uint64, uint(xlen))
  18245. }
  18246. changed = true
  18247. } else if containerLenS != len(v) {
  18248. v = v[:containerLenS]
  18249. changed = true
  18250. }
  18251. }
  18252. var j int
  18253. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18254. if j == 0 && len(v) == 0 && canChange {
  18255. if hasLen {
  18256. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18257. } else {
  18258. xlen = 8
  18259. }
  18260. v = make([]uint64, uint(xlen))
  18261. changed = true
  18262. }
  18263. // if indefinite, etc, then expand the slice if necessary
  18264. var decodeIntoBlank bool
  18265. if j >= len(v) {
  18266. if canChange {
  18267. v = append(v, 0)
  18268. changed = true
  18269. } else {
  18270. d.arrayCannotExpand(len(v), j+1)
  18271. decodeIntoBlank = true
  18272. }
  18273. }
  18274. slh.ElemContainerState(j)
  18275. if decodeIntoBlank {
  18276. d.swallow()
  18277. } else if dd.TryDecodeAsNil() {
  18278. v[uint(j)] = 0
  18279. } else {
  18280. v[uint(j)] = dd.DecodeUint64()
  18281. }
  18282. }
  18283. if canChange {
  18284. if j < len(v) {
  18285. v = v[:uint(j)]
  18286. changed = true
  18287. } else if j == 0 && v == nil {
  18288. v = make([]uint64, 0)
  18289. changed = true
  18290. }
  18291. }
  18292. slh.End()
  18293. d.depthDecr()
  18294. return v, changed
  18295. }
  18296. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  18297. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18298. vp := rv2i(rv).(*[]uintptr)
  18299. v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d)
  18300. if changed {
  18301. *vp = v
  18302. }
  18303. } else {
  18304. v := rv2i(rv).([]uintptr)
  18305. v2, changed := fastpathTV.DecSliceUintptrV(v, !array, d)
  18306. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18307. copy(v, v2)
  18308. }
  18309. }
  18310. }
  18311. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  18312. v, changed := f.DecSliceUintptrV(*vp, true, d)
  18313. if changed {
  18314. *vp = v
  18315. }
  18316. }
  18317. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  18318. dd := d.d
  18319. slh, containerLenS := d.decSliceHelperStart()
  18320. if containerLenS == 0 {
  18321. if canChange {
  18322. if v == nil {
  18323. v = []uintptr{}
  18324. } else if len(v) != 0 {
  18325. v = v[:0]
  18326. }
  18327. changed = true
  18328. }
  18329. slh.End()
  18330. return v, changed
  18331. }
  18332. d.depthIncr()
  18333. hasLen := containerLenS > 0
  18334. var xlen int
  18335. if hasLen && canChange {
  18336. if containerLenS > cap(v) {
  18337. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18338. if xlen <= cap(v) {
  18339. v = v[:uint(xlen)]
  18340. } else {
  18341. v = make([]uintptr, uint(xlen))
  18342. }
  18343. changed = true
  18344. } else if containerLenS != len(v) {
  18345. v = v[:containerLenS]
  18346. changed = true
  18347. }
  18348. }
  18349. var j int
  18350. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18351. if j == 0 && len(v) == 0 && canChange {
  18352. if hasLen {
  18353. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18354. } else {
  18355. xlen = 8
  18356. }
  18357. v = make([]uintptr, uint(xlen))
  18358. changed = true
  18359. }
  18360. // if indefinite, etc, then expand the slice if necessary
  18361. var decodeIntoBlank bool
  18362. if j >= len(v) {
  18363. if canChange {
  18364. v = append(v, 0)
  18365. changed = true
  18366. } else {
  18367. d.arrayCannotExpand(len(v), j+1)
  18368. decodeIntoBlank = true
  18369. }
  18370. }
  18371. slh.ElemContainerState(j)
  18372. if decodeIntoBlank {
  18373. d.swallow()
  18374. } else if dd.TryDecodeAsNil() {
  18375. v[uint(j)] = 0
  18376. } else {
  18377. v[uint(j)] = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  18378. }
  18379. }
  18380. if canChange {
  18381. if j < len(v) {
  18382. v = v[:uint(j)]
  18383. changed = true
  18384. } else if j == 0 && v == nil {
  18385. v = make([]uintptr, 0)
  18386. changed = true
  18387. }
  18388. }
  18389. slh.End()
  18390. d.depthDecr()
  18391. return v, changed
  18392. }
  18393. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  18394. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18395. vp := rv2i(rv).(*[]int)
  18396. v, changed := fastpathTV.DecSliceIntV(*vp, !array, d)
  18397. if changed {
  18398. *vp = v
  18399. }
  18400. } else {
  18401. v := rv2i(rv).([]int)
  18402. v2, changed := fastpathTV.DecSliceIntV(v, !array, d)
  18403. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18404. copy(v, v2)
  18405. }
  18406. }
  18407. }
  18408. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  18409. v, changed := f.DecSliceIntV(*vp, true, d)
  18410. if changed {
  18411. *vp = v
  18412. }
  18413. }
  18414. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  18415. dd := d.d
  18416. slh, containerLenS := d.decSliceHelperStart()
  18417. if containerLenS == 0 {
  18418. if canChange {
  18419. if v == nil {
  18420. v = []int{}
  18421. } else if len(v) != 0 {
  18422. v = v[:0]
  18423. }
  18424. changed = true
  18425. }
  18426. slh.End()
  18427. return v, changed
  18428. }
  18429. d.depthIncr()
  18430. hasLen := containerLenS > 0
  18431. var xlen int
  18432. if hasLen && canChange {
  18433. if containerLenS > cap(v) {
  18434. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18435. if xlen <= cap(v) {
  18436. v = v[:uint(xlen)]
  18437. } else {
  18438. v = make([]int, uint(xlen))
  18439. }
  18440. changed = true
  18441. } else if containerLenS != len(v) {
  18442. v = v[:containerLenS]
  18443. changed = true
  18444. }
  18445. }
  18446. var j int
  18447. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18448. if j == 0 && len(v) == 0 && canChange {
  18449. if hasLen {
  18450. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18451. } else {
  18452. xlen = 8
  18453. }
  18454. v = make([]int, uint(xlen))
  18455. changed = true
  18456. }
  18457. // if indefinite, etc, then expand the slice if necessary
  18458. var decodeIntoBlank bool
  18459. if j >= len(v) {
  18460. if canChange {
  18461. v = append(v, 0)
  18462. changed = true
  18463. } else {
  18464. d.arrayCannotExpand(len(v), j+1)
  18465. decodeIntoBlank = true
  18466. }
  18467. }
  18468. slh.ElemContainerState(j)
  18469. if decodeIntoBlank {
  18470. d.swallow()
  18471. } else if dd.TryDecodeAsNil() {
  18472. v[uint(j)] = 0
  18473. } else {
  18474. v[uint(j)] = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  18475. }
  18476. }
  18477. if canChange {
  18478. if j < len(v) {
  18479. v = v[:uint(j)]
  18480. changed = true
  18481. } else if j == 0 && v == nil {
  18482. v = make([]int, 0)
  18483. changed = true
  18484. }
  18485. }
  18486. slh.End()
  18487. d.depthDecr()
  18488. return v, changed
  18489. }
  18490. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  18491. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18492. vp := rv2i(rv).(*[]int8)
  18493. v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d)
  18494. if changed {
  18495. *vp = v
  18496. }
  18497. } else {
  18498. v := rv2i(rv).([]int8)
  18499. v2, changed := fastpathTV.DecSliceInt8V(v, !array, d)
  18500. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18501. copy(v, v2)
  18502. }
  18503. }
  18504. }
  18505. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  18506. v, changed := f.DecSliceInt8V(*vp, true, d)
  18507. if changed {
  18508. *vp = v
  18509. }
  18510. }
  18511. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  18512. dd := d.d
  18513. slh, containerLenS := d.decSliceHelperStart()
  18514. if containerLenS == 0 {
  18515. if canChange {
  18516. if v == nil {
  18517. v = []int8{}
  18518. } else if len(v) != 0 {
  18519. v = v[:0]
  18520. }
  18521. changed = true
  18522. }
  18523. slh.End()
  18524. return v, changed
  18525. }
  18526. d.depthIncr()
  18527. hasLen := containerLenS > 0
  18528. var xlen int
  18529. if hasLen && canChange {
  18530. if containerLenS > cap(v) {
  18531. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18532. if xlen <= cap(v) {
  18533. v = v[:uint(xlen)]
  18534. } else {
  18535. v = make([]int8, uint(xlen))
  18536. }
  18537. changed = true
  18538. } else if containerLenS != len(v) {
  18539. v = v[:containerLenS]
  18540. changed = true
  18541. }
  18542. }
  18543. var j int
  18544. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18545. if j == 0 && len(v) == 0 && canChange {
  18546. if hasLen {
  18547. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18548. } else {
  18549. xlen = 8
  18550. }
  18551. v = make([]int8, uint(xlen))
  18552. changed = true
  18553. }
  18554. // if indefinite, etc, then expand the slice if necessary
  18555. var decodeIntoBlank bool
  18556. if j >= len(v) {
  18557. if canChange {
  18558. v = append(v, 0)
  18559. changed = true
  18560. } else {
  18561. d.arrayCannotExpand(len(v), j+1)
  18562. decodeIntoBlank = true
  18563. }
  18564. }
  18565. slh.ElemContainerState(j)
  18566. if decodeIntoBlank {
  18567. d.swallow()
  18568. } else if dd.TryDecodeAsNil() {
  18569. v[uint(j)] = 0
  18570. } else {
  18571. v[uint(j)] = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  18572. }
  18573. }
  18574. if canChange {
  18575. if j < len(v) {
  18576. v = v[:uint(j)]
  18577. changed = true
  18578. } else if j == 0 && v == nil {
  18579. v = make([]int8, 0)
  18580. changed = true
  18581. }
  18582. }
  18583. slh.End()
  18584. d.depthDecr()
  18585. return v, changed
  18586. }
  18587. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  18588. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18589. vp := rv2i(rv).(*[]int16)
  18590. v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d)
  18591. if changed {
  18592. *vp = v
  18593. }
  18594. } else {
  18595. v := rv2i(rv).([]int16)
  18596. v2, changed := fastpathTV.DecSliceInt16V(v, !array, d)
  18597. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18598. copy(v, v2)
  18599. }
  18600. }
  18601. }
  18602. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  18603. v, changed := f.DecSliceInt16V(*vp, true, d)
  18604. if changed {
  18605. *vp = v
  18606. }
  18607. }
  18608. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  18609. dd := d.d
  18610. slh, containerLenS := d.decSliceHelperStart()
  18611. if containerLenS == 0 {
  18612. if canChange {
  18613. if v == nil {
  18614. v = []int16{}
  18615. } else if len(v) != 0 {
  18616. v = v[:0]
  18617. }
  18618. changed = true
  18619. }
  18620. slh.End()
  18621. return v, changed
  18622. }
  18623. d.depthIncr()
  18624. hasLen := containerLenS > 0
  18625. var xlen int
  18626. if hasLen && canChange {
  18627. if containerLenS > cap(v) {
  18628. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18629. if xlen <= cap(v) {
  18630. v = v[:uint(xlen)]
  18631. } else {
  18632. v = make([]int16, uint(xlen))
  18633. }
  18634. changed = true
  18635. } else if containerLenS != len(v) {
  18636. v = v[:containerLenS]
  18637. changed = true
  18638. }
  18639. }
  18640. var j int
  18641. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18642. if j == 0 && len(v) == 0 && canChange {
  18643. if hasLen {
  18644. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18645. } else {
  18646. xlen = 8
  18647. }
  18648. v = make([]int16, uint(xlen))
  18649. changed = true
  18650. }
  18651. // if indefinite, etc, then expand the slice if necessary
  18652. var decodeIntoBlank bool
  18653. if j >= len(v) {
  18654. if canChange {
  18655. v = append(v, 0)
  18656. changed = true
  18657. } else {
  18658. d.arrayCannotExpand(len(v), j+1)
  18659. decodeIntoBlank = true
  18660. }
  18661. }
  18662. slh.ElemContainerState(j)
  18663. if decodeIntoBlank {
  18664. d.swallow()
  18665. } else if dd.TryDecodeAsNil() {
  18666. v[uint(j)] = 0
  18667. } else {
  18668. v[uint(j)] = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  18669. }
  18670. }
  18671. if canChange {
  18672. if j < len(v) {
  18673. v = v[:uint(j)]
  18674. changed = true
  18675. } else if j == 0 && v == nil {
  18676. v = make([]int16, 0)
  18677. changed = true
  18678. }
  18679. }
  18680. slh.End()
  18681. d.depthDecr()
  18682. return v, changed
  18683. }
  18684. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  18685. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18686. vp := rv2i(rv).(*[]int32)
  18687. v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d)
  18688. if changed {
  18689. *vp = v
  18690. }
  18691. } else {
  18692. v := rv2i(rv).([]int32)
  18693. v2, changed := fastpathTV.DecSliceInt32V(v, !array, d)
  18694. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18695. copy(v, v2)
  18696. }
  18697. }
  18698. }
  18699. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  18700. v, changed := f.DecSliceInt32V(*vp, true, d)
  18701. if changed {
  18702. *vp = v
  18703. }
  18704. }
  18705. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  18706. dd := d.d
  18707. slh, containerLenS := d.decSliceHelperStart()
  18708. if containerLenS == 0 {
  18709. if canChange {
  18710. if v == nil {
  18711. v = []int32{}
  18712. } else if len(v) != 0 {
  18713. v = v[:0]
  18714. }
  18715. changed = true
  18716. }
  18717. slh.End()
  18718. return v, changed
  18719. }
  18720. d.depthIncr()
  18721. hasLen := containerLenS > 0
  18722. var xlen int
  18723. if hasLen && canChange {
  18724. if containerLenS > cap(v) {
  18725. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18726. if xlen <= cap(v) {
  18727. v = v[:uint(xlen)]
  18728. } else {
  18729. v = make([]int32, uint(xlen))
  18730. }
  18731. changed = true
  18732. } else if containerLenS != len(v) {
  18733. v = v[:containerLenS]
  18734. changed = true
  18735. }
  18736. }
  18737. var j int
  18738. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18739. if j == 0 && len(v) == 0 && canChange {
  18740. if hasLen {
  18741. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18742. } else {
  18743. xlen = 8
  18744. }
  18745. v = make([]int32, uint(xlen))
  18746. changed = true
  18747. }
  18748. // if indefinite, etc, then expand the slice if necessary
  18749. var decodeIntoBlank bool
  18750. if j >= len(v) {
  18751. if canChange {
  18752. v = append(v, 0)
  18753. changed = true
  18754. } else {
  18755. d.arrayCannotExpand(len(v), j+1)
  18756. decodeIntoBlank = true
  18757. }
  18758. }
  18759. slh.ElemContainerState(j)
  18760. if decodeIntoBlank {
  18761. d.swallow()
  18762. } else if dd.TryDecodeAsNil() {
  18763. v[uint(j)] = 0
  18764. } else {
  18765. v[uint(j)] = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  18766. }
  18767. }
  18768. if canChange {
  18769. if j < len(v) {
  18770. v = v[:uint(j)]
  18771. changed = true
  18772. } else if j == 0 && v == nil {
  18773. v = make([]int32, 0)
  18774. changed = true
  18775. }
  18776. }
  18777. slh.End()
  18778. d.depthDecr()
  18779. return v, changed
  18780. }
  18781. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  18782. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18783. vp := rv2i(rv).(*[]int64)
  18784. v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d)
  18785. if changed {
  18786. *vp = v
  18787. }
  18788. } else {
  18789. v := rv2i(rv).([]int64)
  18790. v2, changed := fastpathTV.DecSliceInt64V(v, !array, d)
  18791. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18792. copy(v, v2)
  18793. }
  18794. }
  18795. }
  18796. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  18797. v, changed := f.DecSliceInt64V(*vp, true, d)
  18798. if changed {
  18799. *vp = v
  18800. }
  18801. }
  18802. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  18803. dd := d.d
  18804. slh, containerLenS := d.decSliceHelperStart()
  18805. if containerLenS == 0 {
  18806. if canChange {
  18807. if v == nil {
  18808. v = []int64{}
  18809. } else if len(v) != 0 {
  18810. v = v[:0]
  18811. }
  18812. changed = true
  18813. }
  18814. slh.End()
  18815. return v, changed
  18816. }
  18817. d.depthIncr()
  18818. hasLen := containerLenS > 0
  18819. var xlen int
  18820. if hasLen && canChange {
  18821. if containerLenS > cap(v) {
  18822. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18823. if xlen <= cap(v) {
  18824. v = v[:uint(xlen)]
  18825. } else {
  18826. v = make([]int64, uint(xlen))
  18827. }
  18828. changed = true
  18829. } else if containerLenS != len(v) {
  18830. v = v[:containerLenS]
  18831. changed = true
  18832. }
  18833. }
  18834. var j int
  18835. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18836. if j == 0 && len(v) == 0 && canChange {
  18837. if hasLen {
  18838. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18839. } else {
  18840. xlen = 8
  18841. }
  18842. v = make([]int64, uint(xlen))
  18843. changed = true
  18844. }
  18845. // if indefinite, etc, then expand the slice if necessary
  18846. var decodeIntoBlank bool
  18847. if j >= len(v) {
  18848. if canChange {
  18849. v = append(v, 0)
  18850. changed = true
  18851. } else {
  18852. d.arrayCannotExpand(len(v), j+1)
  18853. decodeIntoBlank = true
  18854. }
  18855. }
  18856. slh.ElemContainerState(j)
  18857. if decodeIntoBlank {
  18858. d.swallow()
  18859. } else if dd.TryDecodeAsNil() {
  18860. v[uint(j)] = 0
  18861. } else {
  18862. v[uint(j)] = dd.DecodeInt64()
  18863. }
  18864. }
  18865. if canChange {
  18866. if j < len(v) {
  18867. v = v[:uint(j)]
  18868. changed = true
  18869. } else if j == 0 && v == nil {
  18870. v = make([]int64, 0)
  18871. changed = true
  18872. }
  18873. }
  18874. slh.End()
  18875. d.depthDecr()
  18876. return v, changed
  18877. }
  18878. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  18879. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18880. vp := rv2i(rv).(*[]bool)
  18881. v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d)
  18882. if changed {
  18883. *vp = v
  18884. }
  18885. } else {
  18886. v := rv2i(rv).([]bool)
  18887. v2, changed := fastpathTV.DecSliceBoolV(v, !array, d)
  18888. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18889. copy(v, v2)
  18890. }
  18891. }
  18892. }
  18893. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  18894. v, changed := f.DecSliceBoolV(*vp, true, d)
  18895. if changed {
  18896. *vp = v
  18897. }
  18898. }
  18899. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  18900. dd := d.d
  18901. slh, containerLenS := d.decSliceHelperStart()
  18902. if containerLenS == 0 {
  18903. if canChange {
  18904. if v == nil {
  18905. v = []bool{}
  18906. } else if len(v) != 0 {
  18907. v = v[:0]
  18908. }
  18909. changed = true
  18910. }
  18911. slh.End()
  18912. return v, changed
  18913. }
  18914. d.depthIncr()
  18915. hasLen := containerLenS > 0
  18916. var xlen int
  18917. if hasLen && canChange {
  18918. if containerLenS > cap(v) {
  18919. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18920. if xlen <= cap(v) {
  18921. v = v[:uint(xlen)]
  18922. } else {
  18923. v = make([]bool, uint(xlen))
  18924. }
  18925. changed = true
  18926. } else if containerLenS != len(v) {
  18927. v = v[:containerLenS]
  18928. changed = true
  18929. }
  18930. }
  18931. var j int
  18932. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18933. if j == 0 && len(v) == 0 && canChange {
  18934. if hasLen {
  18935. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18936. } else {
  18937. xlen = 8
  18938. }
  18939. v = make([]bool, uint(xlen))
  18940. changed = true
  18941. }
  18942. // if indefinite, etc, then expand the slice if necessary
  18943. var decodeIntoBlank bool
  18944. if j >= len(v) {
  18945. if canChange {
  18946. v = append(v, false)
  18947. changed = true
  18948. } else {
  18949. d.arrayCannotExpand(len(v), j+1)
  18950. decodeIntoBlank = true
  18951. }
  18952. }
  18953. slh.ElemContainerState(j)
  18954. if decodeIntoBlank {
  18955. d.swallow()
  18956. } else if dd.TryDecodeAsNil() {
  18957. v[uint(j)] = false
  18958. } else {
  18959. v[uint(j)] = dd.DecodeBool()
  18960. }
  18961. }
  18962. if canChange {
  18963. if j < len(v) {
  18964. v = v[:uint(j)]
  18965. changed = true
  18966. } else if j == 0 && v == nil {
  18967. v = make([]bool, 0)
  18968. changed = true
  18969. }
  18970. }
  18971. slh.End()
  18972. d.depthDecr()
  18973. return v, changed
  18974. }
  18975. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  18976. if rv.Kind() == reflect.Ptr {
  18977. vp := rv2i(rv).(*map[interface{}]interface{})
  18978. v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d)
  18979. if changed {
  18980. *vp = v
  18981. }
  18982. } else {
  18983. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  18984. }
  18985. }
  18986. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  18987. v, changed := f.DecMapIntfIntfV(*vp, true, d)
  18988. if changed {
  18989. *vp = v
  18990. }
  18991. }
  18992. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  18993. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  18994. dd, esep := d.d, d.hh.hasElemSeparators()
  18995. containerLen := dd.ReadMapStart()
  18996. if canChange && v == nil {
  18997. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18998. v = make(map[interface{}]interface{}, xlen)
  18999. changed = true
  19000. }
  19001. if containerLen == 0 {
  19002. dd.ReadMapEnd()
  19003. return v, changed
  19004. }
  19005. d.depthIncr()
  19006. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  19007. var mk interface{}
  19008. var mv interface{}
  19009. hasLen := containerLen > 0
  19010. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19011. if esep {
  19012. dd.ReadMapElemKey()
  19013. }
  19014. mk = nil
  19015. d.decode(&mk)
  19016. if bv, bok := mk.([]byte); bok {
  19017. mk = d.string(bv)
  19018. }
  19019. if esep {
  19020. dd.ReadMapElemValue()
  19021. }
  19022. if dd.TryDecodeAsNil() {
  19023. if v == nil {
  19024. } else if d.h.DeleteOnNilMapValue {
  19025. delete(v, mk)
  19026. } else {
  19027. v[mk] = nil
  19028. }
  19029. continue
  19030. }
  19031. if mapGet {
  19032. mv = v[mk]
  19033. } else {
  19034. mv = nil
  19035. }
  19036. d.decode(&mv)
  19037. if v != nil {
  19038. v[mk] = mv
  19039. }
  19040. }
  19041. dd.ReadMapEnd()
  19042. d.depthDecr()
  19043. return v, changed
  19044. }
  19045. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  19046. if rv.Kind() == reflect.Ptr {
  19047. vp := rv2i(rv).(*map[interface{}]string)
  19048. v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d)
  19049. if changed {
  19050. *vp = v
  19051. }
  19052. } else {
  19053. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  19054. }
  19055. }
  19056. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  19057. v, changed := f.DecMapIntfStringV(*vp, true, d)
  19058. if changed {
  19059. *vp = v
  19060. }
  19061. }
  19062. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  19063. d *Decoder) (_ map[interface{}]string, changed bool) {
  19064. dd, esep := d.d, d.hh.hasElemSeparators()
  19065. containerLen := dd.ReadMapStart()
  19066. if canChange && v == nil {
  19067. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19068. v = make(map[interface{}]string, xlen)
  19069. changed = true
  19070. }
  19071. if containerLen == 0 {
  19072. dd.ReadMapEnd()
  19073. return v, changed
  19074. }
  19075. d.depthIncr()
  19076. var mk interface{}
  19077. var mv string
  19078. hasLen := containerLen > 0
  19079. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19080. if esep {
  19081. dd.ReadMapElemKey()
  19082. }
  19083. mk = nil
  19084. d.decode(&mk)
  19085. if bv, bok := mk.([]byte); bok {
  19086. mk = d.string(bv)
  19087. }
  19088. if esep {
  19089. dd.ReadMapElemValue()
  19090. }
  19091. if dd.TryDecodeAsNil() {
  19092. if v == nil {
  19093. } else if d.h.DeleteOnNilMapValue {
  19094. delete(v, mk)
  19095. } else {
  19096. v[mk] = ""
  19097. }
  19098. continue
  19099. }
  19100. mv = dd.DecodeString()
  19101. if v != nil {
  19102. v[mk] = mv
  19103. }
  19104. }
  19105. dd.ReadMapEnd()
  19106. d.depthDecr()
  19107. return v, changed
  19108. }
  19109. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  19110. if rv.Kind() == reflect.Ptr {
  19111. vp := rv2i(rv).(*map[interface{}]uint)
  19112. v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d)
  19113. if changed {
  19114. *vp = v
  19115. }
  19116. } else {
  19117. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  19118. }
  19119. }
  19120. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  19121. v, changed := f.DecMapIntfUintV(*vp, true, d)
  19122. if changed {
  19123. *vp = v
  19124. }
  19125. }
  19126. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  19127. d *Decoder) (_ map[interface{}]uint, changed bool) {
  19128. dd, esep := d.d, d.hh.hasElemSeparators()
  19129. containerLen := dd.ReadMapStart()
  19130. if canChange && v == nil {
  19131. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19132. v = make(map[interface{}]uint, xlen)
  19133. changed = true
  19134. }
  19135. if containerLen == 0 {
  19136. dd.ReadMapEnd()
  19137. return v, changed
  19138. }
  19139. d.depthIncr()
  19140. var mk interface{}
  19141. var mv uint
  19142. hasLen := containerLen > 0
  19143. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19144. if esep {
  19145. dd.ReadMapElemKey()
  19146. }
  19147. mk = nil
  19148. d.decode(&mk)
  19149. if bv, bok := mk.([]byte); bok {
  19150. mk = d.string(bv)
  19151. }
  19152. if esep {
  19153. dd.ReadMapElemValue()
  19154. }
  19155. if dd.TryDecodeAsNil() {
  19156. if v == nil {
  19157. } else if d.h.DeleteOnNilMapValue {
  19158. delete(v, mk)
  19159. } else {
  19160. v[mk] = 0
  19161. }
  19162. continue
  19163. }
  19164. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19165. if v != nil {
  19166. v[mk] = mv
  19167. }
  19168. }
  19169. dd.ReadMapEnd()
  19170. d.depthDecr()
  19171. return v, changed
  19172. }
  19173. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  19174. if rv.Kind() == reflect.Ptr {
  19175. vp := rv2i(rv).(*map[interface{}]uint8)
  19176. v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d)
  19177. if changed {
  19178. *vp = v
  19179. }
  19180. } else {
  19181. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  19182. }
  19183. }
  19184. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  19185. v, changed := f.DecMapIntfUint8V(*vp, true, d)
  19186. if changed {
  19187. *vp = v
  19188. }
  19189. }
  19190. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  19191. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  19192. dd, esep := d.d, d.hh.hasElemSeparators()
  19193. containerLen := dd.ReadMapStart()
  19194. if canChange && v == nil {
  19195. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19196. v = make(map[interface{}]uint8, xlen)
  19197. changed = true
  19198. }
  19199. if containerLen == 0 {
  19200. dd.ReadMapEnd()
  19201. return v, changed
  19202. }
  19203. d.depthIncr()
  19204. var mk interface{}
  19205. var mv uint8
  19206. hasLen := containerLen > 0
  19207. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19208. if esep {
  19209. dd.ReadMapElemKey()
  19210. }
  19211. mk = nil
  19212. d.decode(&mk)
  19213. if bv, bok := mk.([]byte); bok {
  19214. mk = d.string(bv)
  19215. }
  19216. if esep {
  19217. dd.ReadMapElemValue()
  19218. }
  19219. if dd.TryDecodeAsNil() {
  19220. if v == nil {
  19221. } else if d.h.DeleteOnNilMapValue {
  19222. delete(v, mk)
  19223. } else {
  19224. v[mk] = 0
  19225. }
  19226. continue
  19227. }
  19228. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  19229. if v != nil {
  19230. v[mk] = mv
  19231. }
  19232. }
  19233. dd.ReadMapEnd()
  19234. d.depthDecr()
  19235. return v, changed
  19236. }
  19237. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  19238. if rv.Kind() == reflect.Ptr {
  19239. vp := rv2i(rv).(*map[interface{}]uint16)
  19240. v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d)
  19241. if changed {
  19242. *vp = v
  19243. }
  19244. } else {
  19245. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  19246. }
  19247. }
  19248. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  19249. v, changed := f.DecMapIntfUint16V(*vp, true, d)
  19250. if changed {
  19251. *vp = v
  19252. }
  19253. }
  19254. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  19255. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  19256. dd, esep := d.d, d.hh.hasElemSeparators()
  19257. containerLen := dd.ReadMapStart()
  19258. if canChange && v == nil {
  19259. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19260. v = make(map[interface{}]uint16, xlen)
  19261. changed = true
  19262. }
  19263. if containerLen == 0 {
  19264. dd.ReadMapEnd()
  19265. return v, changed
  19266. }
  19267. d.depthIncr()
  19268. var mk interface{}
  19269. var mv uint16
  19270. hasLen := containerLen > 0
  19271. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19272. if esep {
  19273. dd.ReadMapElemKey()
  19274. }
  19275. mk = nil
  19276. d.decode(&mk)
  19277. if bv, bok := mk.([]byte); bok {
  19278. mk = d.string(bv)
  19279. }
  19280. if esep {
  19281. dd.ReadMapElemValue()
  19282. }
  19283. if dd.TryDecodeAsNil() {
  19284. if v == nil {
  19285. } else if d.h.DeleteOnNilMapValue {
  19286. delete(v, mk)
  19287. } else {
  19288. v[mk] = 0
  19289. }
  19290. continue
  19291. }
  19292. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  19293. if v != nil {
  19294. v[mk] = mv
  19295. }
  19296. }
  19297. dd.ReadMapEnd()
  19298. d.depthDecr()
  19299. return v, changed
  19300. }
  19301. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  19302. if rv.Kind() == reflect.Ptr {
  19303. vp := rv2i(rv).(*map[interface{}]uint32)
  19304. v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d)
  19305. if changed {
  19306. *vp = v
  19307. }
  19308. } else {
  19309. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  19310. }
  19311. }
  19312. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  19313. v, changed := f.DecMapIntfUint32V(*vp, true, d)
  19314. if changed {
  19315. *vp = v
  19316. }
  19317. }
  19318. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  19319. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  19320. dd, esep := d.d, d.hh.hasElemSeparators()
  19321. containerLen := dd.ReadMapStart()
  19322. if canChange && v == nil {
  19323. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19324. v = make(map[interface{}]uint32, xlen)
  19325. changed = true
  19326. }
  19327. if containerLen == 0 {
  19328. dd.ReadMapEnd()
  19329. return v, changed
  19330. }
  19331. d.depthIncr()
  19332. var mk interface{}
  19333. var mv uint32
  19334. hasLen := containerLen > 0
  19335. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19336. if esep {
  19337. dd.ReadMapElemKey()
  19338. }
  19339. mk = nil
  19340. d.decode(&mk)
  19341. if bv, bok := mk.([]byte); bok {
  19342. mk = d.string(bv)
  19343. }
  19344. if esep {
  19345. dd.ReadMapElemValue()
  19346. }
  19347. if dd.TryDecodeAsNil() {
  19348. if v == nil {
  19349. } else if d.h.DeleteOnNilMapValue {
  19350. delete(v, mk)
  19351. } else {
  19352. v[mk] = 0
  19353. }
  19354. continue
  19355. }
  19356. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  19357. if v != nil {
  19358. v[mk] = mv
  19359. }
  19360. }
  19361. dd.ReadMapEnd()
  19362. d.depthDecr()
  19363. return v, changed
  19364. }
  19365. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  19366. if rv.Kind() == reflect.Ptr {
  19367. vp := rv2i(rv).(*map[interface{}]uint64)
  19368. v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d)
  19369. if changed {
  19370. *vp = v
  19371. }
  19372. } else {
  19373. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  19374. }
  19375. }
  19376. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  19377. v, changed := f.DecMapIntfUint64V(*vp, true, d)
  19378. if changed {
  19379. *vp = v
  19380. }
  19381. }
  19382. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  19383. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  19384. dd, esep := d.d, d.hh.hasElemSeparators()
  19385. containerLen := dd.ReadMapStart()
  19386. if canChange && v == nil {
  19387. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19388. v = make(map[interface{}]uint64, xlen)
  19389. changed = true
  19390. }
  19391. if containerLen == 0 {
  19392. dd.ReadMapEnd()
  19393. return v, changed
  19394. }
  19395. d.depthIncr()
  19396. var mk interface{}
  19397. var mv uint64
  19398. hasLen := containerLen > 0
  19399. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19400. if esep {
  19401. dd.ReadMapElemKey()
  19402. }
  19403. mk = nil
  19404. d.decode(&mk)
  19405. if bv, bok := mk.([]byte); bok {
  19406. mk = d.string(bv)
  19407. }
  19408. if esep {
  19409. dd.ReadMapElemValue()
  19410. }
  19411. if dd.TryDecodeAsNil() {
  19412. if v == nil {
  19413. } else if d.h.DeleteOnNilMapValue {
  19414. delete(v, mk)
  19415. } else {
  19416. v[mk] = 0
  19417. }
  19418. continue
  19419. }
  19420. mv = dd.DecodeUint64()
  19421. if v != nil {
  19422. v[mk] = mv
  19423. }
  19424. }
  19425. dd.ReadMapEnd()
  19426. d.depthDecr()
  19427. return v, changed
  19428. }
  19429. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  19430. if rv.Kind() == reflect.Ptr {
  19431. vp := rv2i(rv).(*map[interface{}]uintptr)
  19432. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d)
  19433. if changed {
  19434. *vp = v
  19435. }
  19436. } else {
  19437. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  19438. }
  19439. }
  19440. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  19441. v, changed := f.DecMapIntfUintptrV(*vp, true, d)
  19442. if changed {
  19443. *vp = v
  19444. }
  19445. }
  19446. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  19447. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  19448. dd, esep := d.d, d.hh.hasElemSeparators()
  19449. containerLen := dd.ReadMapStart()
  19450. if canChange && v == nil {
  19451. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19452. v = make(map[interface{}]uintptr, xlen)
  19453. changed = true
  19454. }
  19455. if containerLen == 0 {
  19456. dd.ReadMapEnd()
  19457. return v, changed
  19458. }
  19459. d.depthIncr()
  19460. var mk interface{}
  19461. var mv uintptr
  19462. hasLen := containerLen > 0
  19463. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19464. if esep {
  19465. dd.ReadMapElemKey()
  19466. }
  19467. mk = nil
  19468. d.decode(&mk)
  19469. if bv, bok := mk.([]byte); bok {
  19470. mk = d.string(bv)
  19471. }
  19472. if esep {
  19473. dd.ReadMapElemValue()
  19474. }
  19475. if dd.TryDecodeAsNil() {
  19476. if v == nil {
  19477. } else if d.h.DeleteOnNilMapValue {
  19478. delete(v, mk)
  19479. } else {
  19480. v[mk] = 0
  19481. }
  19482. continue
  19483. }
  19484. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19485. if v != nil {
  19486. v[mk] = mv
  19487. }
  19488. }
  19489. dd.ReadMapEnd()
  19490. d.depthDecr()
  19491. return v, changed
  19492. }
  19493. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  19494. if rv.Kind() == reflect.Ptr {
  19495. vp := rv2i(rv).(*map[interface{}]int)
  19496. v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d)
  19497. if changed {
  19498. *vp = v
  19499. }
  19500. } else {
  19501. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  19502. }
  19503. }
  19504. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  19505. v, changed := f.DecMapIntfIntV(*vp, true, d)
  19506. if changed {
  19507. *vp = v
  19508. }
  19509. }
  19510. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  19511. d *Decoder) (_ map[interface{}]int, changed bool) {
  19512. dd, esep := d.d, d.hh.hasElemSeparators()
  19513. containerLen := dd.ReadMapStart()
  19514. if canChange && v == nil {
  19515. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19516. v = make(map[interface{}]int, xlen)
  19517. changed = true
  19518. }
  19519. if containerLen == 0 {
  19520. dd.ReadMapEnd()
  19521. return v, changed
  19522. }
  19523. d.depthIncr()
  19524. var mk interface{}
  19525. var mv int
  19526. hasLen := containerLen > 0
  19527. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19528. if esep {
  19529. dd.ReadMapElemKey()
  19530. }
  19531. mk = nil
  19532. d.decode(&mk)
  19533. if bv, bok := mk.([]byte); bok {
  19534. mk = d.string(bv)
  19535. }
  19536. if esep {
  19537. dd.ReadMapElemValue()
  19538. }
  19539. if dd.TryDecodeAsNil() {
  19540. if v == nil {
  19541. } else if d.h.DeleteOnNilMapValue {
  19542. delete(v, mk)
  19543. } else {
  19544. v[mk] = 0
  19545. }
  19546. continue
  19547. }
  19548. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  19549. if v != nil {
  19550. v[mk] = mv
  19551. }
  19552. }
  19553. dd.ReadMapEnd()
  19554. d.depthDecr()
  19555. return v, changed
  19556. }
  19557. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  19558. if rv.Kind() == reflect.Ptr {
  19559. vp := rv2i(rv).(*map[interface{}]int8)
  19560. v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d)
  19561. if changed {
  19562. *vp = v
  19563. }
  19564. } else {
  19565. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  19566. }
  19567. }
  19568. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  19569. v, changed := f.DecMapIntfInt8V(*vp, true, d)
  19570. if changed {
  19571. *vp = v
  19572. }
  19573. }
  19574. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  19575. d *Decoder) (_ map[interface{}]int8, changed bool) {
  19576. dd, esep := d.d, d.hh.hasElemSeparators()
  19577. containerLen := dd.ReadMapStart()
  19578. if canChange && v == nil {
  19579. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19580. v = make(map[interface{}]int8, xlen)
  19581. changed = true
  19582. }
  19583. if containerLen == 0 {
  19584. dd.ReadMapEnd()
  19585. return v, changed
  19586. }
  19587. d.depthIncr()
  19588. var mk interface{}
  19589. var mv int8
  19590. hasLen := containerLen > 0
  19591. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19592. if esep {
  19593. dd.ReadMapElemKey()
  19594. }
  19595. mk = nil
  19596. d.decode(&mk)
  19597. if bv, bok := mk.([]byte); bok {
  19598. mk = d.string(bv)
  19599. }
  19600. if esep {
  19601. dd.ReadMapElemValue()
  19602. }
  19603. if dd.TryDecodeAsNil() {
  19604. if v == nil {
  19605. } else if d.h.DeleteOnNilMapValue {
  19606. delete(v, mk)
  19607. } else {
  19608. v[mk] = 0
  19609. }
  19610. continue
  19611. }
  19612. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  19613. if v != nil {
  19614. v[mk] = mv
  19615. }
  19616. }
  19617. dd.ReadMapEnd()
  19618. d.depthDecr()
  19619. return v, changed
  19620. }
  19621. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  19622. if rv.Kind() == reflect.Ptr {
  19623. vp := rv2i(rv).(*map[interface{}]int16)
  19624. v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d)
  19625. if changed {
  19626. *vp = v
  19627. }
  19628. } else {
  19629. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  19630. }
  19631. }
  19632. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  19633. v, changed := f.DecMapIntfInt16V(*vp, true, d)
  19634. if changed {
  19635. *vp = v
  19636. }
  19637. }
  19638. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  19639. d *Decoder) (_ map[interface{}]int16, changed bool) {
  19640. dd, esep := d.d, d.hh.hasElemSeparators()
  19641. containerLen := dd.ReadMapStart()
  19642. if canChange && v == nil {
  19643. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19644. v = make(map[interface{}]int16, xlen)
  19645. changed = true
  19646. }
  19647. if containerLen == 0 {
  19648. dd.ReadMapEnd()
  19649. return v, changed
  19650. }
  19651. d.depthIncr()
  19652. var mk interface{}
  19653. var mv int16
  19654. hasLen := containerLen > 0
  19655. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19656. if esep {
  19657. dd.ReadMapElemKey()
  19658. }
  19659. mk = nil
  19660. d.decode(&mk)
  19661. if bv, bok := mk.([]byte); bok {
  19662. mk = d.string(bv)
  19663. }
  19664. if esep {
  19665. dd.ReadMapElemValue()
  19666. }
  19667. if dd.TryDecodeAsNil() {
  19668. if v == nil {
  19669. } else if d.h.DeleteOnNilMapValue {
  19670. delete(v, mk)
  19671. } else {
  19672. v[mk] = 0
  19673. }
  19674. continue
  19675. }
  19676. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  19677. if v != nil {
  19678. v[mk] = mv
  19679. }
  19680. }
  19681. dd.ReadMapEnd()
  19682. d.depthDecr()
  19683. return v, changed
  19684. }
  19685. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  19686. if rv.Kind() == reflect.Ptr {
  19687. vp := rv2i(rv).(*map[interface{}]int32)
  19688. v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d)
  19689. if changed {
  19690. *vp = v
  19691. }
  19692. } else {
  19693. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  19694. }
  19695. }
  19696. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  19697. v, changed := f.DecMapIntfInt32V(*vp, true, d)
  19698. if changed {
  19699. *vp = v
  19700. }
  19701. }
  19702. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  19703. d *Decoder) (_ map[interface{}]int32, changed bool) {
  19704. dd, esep := d.d, d.hh.hasElemSeparators()
  19705. containerLen := dd.ReadMapStart()
  19706. if canChange && v == nil {
  19707. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19708. v = make(map[interface{}]int32, xlen)
  19709. changed = true
  19710. }
  19711. if containerLen == 0 {
  19712. dd.ReadMapEnd()
  19713. return v, changed
  19714. }
  19715. d.depthIncr()
  19716. var mk interface{}
  19717. var mv int32
  19718. hasLen := containerLen > 0
  19719. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19720. if esep {
  19721. dd.ReadMapElemKey()
  19722. }
  19723. mk = nil
  19724. d.decode(&mk)
  19725. if bv, bok := mk.([]byte); bok {
  19726. mk = d.string(bv)
  19727. }
  19728. if esep {
  19729. dd.ReadMapElemValue()
  19730. }
  19731. if dd.TryDecodeAsNil() {
  19732. if v == nil {
  19733. } else if d.h.DeleteOnNilMapValue {
  19734. delete(v, mk)
  19735. } else {
  19736. v[mk] = 0
  19737. }
  19738. continue
  19739. }
  19740. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  19741. if v != nil {
  19742. v[mk] = mv
  19743. }
  19744. }
  19745. dd.ReadMapEnd()
  19746. d.depthDecr()
  19747. return v, changed
  19748. }
  19749. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  19750. if rv.Kind() == reflect.Ptr {
  19751. vp := rv2i(rv).(*map[interface{}]int64)
  19752. v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d)
  19753. if changed {
  19754. *vp = v
  19755. }
  19756. } else {
  19757. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  19758. }
  19759. }
  19760. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  19761. v, changed := f.DecMapIntfInt64V(*vp, true, d)
  19762. if changed {
  19763. *vp = v
  19764. }
  19765. }
  19766. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  19767. d *Decoder) (_ map[interface{}]int64, changed bool) {
  19768. dd, esep := d.d, d.hh.hasElemSeparators()
  19769. containerLen := dd.ReadMapStart()
  19770. if canChange && v == nil {
  19771. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19772. v = make(map[interface{}]int64, xlen)
  19773. changed = true
  19774. }
  19775. if containerLen == 0 {
  19776. dd.ReadMapEnd()
  19777. return v, changed
  19778. }
  19779. d.depthIncr()
  19780. var mk interface{}
  19781. var mv int64
  19782. hasLen := containerLen > 0
  19783. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19784. if esep {
  19785. dd.ReadMapElemKey()
  19786. }
  19787. mk = nil
  19788. d.decode(&mk)
  19789. if bv, bok := mk.([]byte); bok {
  19790. mk = d.string(bv)
  19791. }
  19792. if esep {
  19793. dd.ReadMapElemValue()
  19794. }
  19795. if dd.TryDecodeAsNil() {
  19796. if v == nil {
  19797. } else if d.h.DeleteOnNilMapValue {
  19798. delete(v, mk)
  19799. } else {
  19800. v[mk] = 0
  19801. }
  19802. continue
  19803. }
  19804. mv = dd.DecodeInt64()
  19805. if v != nil {
  19806. v[mk] = mv
  19807. }
  19808. }
  19809. dd.ReadMapEnd()
  19810. d.depthDecr()
  19811. return v, changed
  19812. }
  19813. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  19814. if rv.Kind() == reflect.Ptr {
  19815. vp := rv2i(rv).(*map[interface{}]float32)
  19816. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d)
  19817. if changed {
  19818. *vp = v
  19819. }
  19820. } else {
  19821. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  19822. }
  19823. }
  19824. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  19825. v, changed := f.DecMapIntfFloat32V(*vp, true, d)
  19826. if changed {
  19827. *vp = v
  19828. }
  19829. }
  19830. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  19831. d *Decoder) (_ map[interface{}]float32, changed bool) {
  19832. dd, esep := d.d, d.hh.hasElemSeparators()
  19833. containerLen := dd.ReadMapStart()
  19834. if canChange && v == nil {
  19835. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19836. v = make(map[interface{}]float32, xlen)
  19837. changed = true
  19838. }
  19839. if containerLen == 0 {
  19840. dd.ReadMapEnd()
  19841. return v, changed
  19842. }
  19843. d.depthIncr()
  19844. var mk interface{}
  19845. var mv float32
  19846. hasLen := containerLen > 0
  19847. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19848. if esep {
  19849. dd.ReadMapElemKey()
  19850. }
  19851. mk = nil
  19852. d.decode(&mk)
  19853. if bv, bok := mk.([]byte); bok {
  19854. mk = d.string(bv)
  19855. }
  19856. if esep {
  19857. dd.ReadMapElemValue()
  19858. }
  19859. if dd.TryDecodeAsNil() {
  19860. if v == nil {
  19861. } else if d.h.DeleteOnNilMapValue {
  19862. delete(v, mk)
  19863. } else {
  19864. v[mk] = 0
  19865. }
  19866. continue
  19867. }
  19868. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19869. if v != nil {
  19870. v[mk] = mv
  19871. }
  19872. }
  19873. dd.ReadMapEnd()
  19874. d.depthDecr()
  19875. return v, changed
  19876. }
  19877. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  19878. if rv.Kind() == reflect.Ptr {
  19879. vp := rv2i(rv).(*map[interface{}]float64)
  19880. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d)
  19881. if changed {
  19882. *vp = v
  19883. }
  19884. } else {
  19885. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  19886. }
  19887. }
  19888. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  19889. v, changed := f.DecMapIntfFloat64V(*vp, true, d)
  19890. if changed {
  19891. *vp = v
  19892. }
  19893. }
  19894. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  19895. d *Decoder) (_ map[interface{}]float64, changed bool) {
  19896. dd, esep := d.d, d.hh.hasElemSeparators()
  19897. containerLen := dd.ReadMapStart()
  19898. if canChange && v == nil {
  19899. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19900. v = make(map[interface{}]float64, xlen)
  19901. changed = true
  19902. }
  19903. if containerLen == 0 {
  19904. dd.ReadMapEnd()
  19905. return v, changed
  19906. }
  19907. d.depthIncr()
  19908. var mk interface{}
  19909. var mv float64
  19910. hasLen := containerLen > 0
  19911. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19912. if esep {
  19913. dd.ReadMapElemKey()
  19914. }
  19915. mk = nil
  19916. d.decode(&mk)
  19917. if bv, bok := mk.([]byte); bok {
  19918. mk = d.string(bv)
  19919. }
  19920. if esep {
  19921. dd.ReadMapElemValue()
  19922. }
  19923. if dd.TryDecodeAsNil() {
  19924. if v == nil {
  19925. } else if d.h.DeleteOnNilMapValue {
  19926. delete(v, mk)
  19927. } else {
  19928. v[mk] = 0
  19929. }
  19930. continue
  19931. }
  19932. mv = dd.DecodeFloat64()
  19933. if v != nil {
  19934. v[mk] = mv
  19935. }
  19936. }
  19937. dd.ReadMapEnd()
  19938. d.depthDecr()
  19939. return v, changed
  19940. }
  19941. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  19942. if rv.Kind() == reflect.Ptr {
  19943. vp := rv2i(rv).(*map[interface{}]bool)
  19944. v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d)
  19945. if changed {
  19946. *vp = v
  19947. }
  19948. } else {
  19949. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  19950. }
  19951. }
  19952. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  19953. v, changed := f.DecMapIntfBoolV(*vp, true, d)
  19954. if changed {
  19955. *vp = v
  19956. }
  19957. }
  19958. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  19959. d *Decoder) (_ map[interface{}]bool, changed bool) {
  19960. dd, esep := d.d, d.hh.hasElemSeparators()
  19961. containerLen := dd.ReadMapStart()
  19962. if canChange && v == nil {
  19963. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19964. v = make(map[interface{}]bool, xlen)
  19965. changed = true
  19966. }
  19967. if containerLen == 0 {
  19968. dd.ReadMapEnd()
  19969. return v, changed
  19970. }
  19971. d.depthIncr()
  19972. var mk interface{}
  19973. var mv bool
  19974. hasLen := containerLen > 0
  19975. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19976. if esep {
  19977. dd.ReadMapElemKey()
  19978. }
  19979. mk = nil
  19980. d.decode(&mk)
  19981. if bv, bok := mk.([]byte); bok {
  19982. mk = d.string(bv)
  19983. }
  19984. if esep {
  19985. dd.ReadMapElemValue()
  19986. }
  19987. if dd.TryDecodeAsNil() {
  19988. if v == nil {
  19989. } else if d.h.DeleteOnNilMapValue {
  19990. delete(v, mk)
  19991. } else {
  19992. v[mk] = false
  19993. }
  19994. continue
  19995. }
  19996. mv = dd.DecodeBool()
  19997. if v != nil {
  19998. v[mk] = mv
  19999. }
  20000. }
  20001. dd.ReadMapEnd()
  20002. d.depthDecr()
  20003. return v, changed
  20004. }
  20005. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  20006. if rv.Kind() == reflect.Ptr {
  20007. vp := rv2i(rv).(*map[string]interface{})
  20008. v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d)
  20009. if changed {
  20010. *vp = v
  20011. }
  20012. } else {
  20013. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  20014. }
  20015. }
  20016. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  20017. v, changed := f.DecMapStringIntfV(*vp, true, d)
  20018. if changed {
  20019. *vp = v
  20020. }
  20021. }
  20022. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  20023. d *Decoder) (_ map[string]interface{}, changed bool) {
  20024. dd, esep := d.d, d.hh.hasElemSeparators()
  20025. containerLen := dd.ReadMapStart()
  20026. if canChange && v == nil {
  20027. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20028. v = make(map[string]interface{}, xlen)
  20029. changed = true
  20030. }
  20031. if containerLen == 0 {
  20032. dd.ReadMapEnd()
  20033. return v, changed
  20034. }
  20035. d.depthIncr()
  20036. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  20037. var mk string
  20038. var mv interface{}
  20039. hasLen := containerLen > 0
  20040. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20041. if esep {
  20042. dd.ReadMapElemKey()
  20043. }
  20044. mk = dd.DecodeString()
  20045. if esep {
  20046. dd.ReadMapElemValue()
  20047. }
  20048. if dd.TryDecodeAsNil() {
  20049. if v == nil {
  20050. } else if d.h.DeleteOnNilMapValue {
  20051. delete(v, mk)
  20052. } else {
  20053. v[mk] = nil
  20054. }
  20055. continue
  20056. }
  20057. if mapGet {
  20058. mv = v[mk]
  20059. } else {
  20060. mv = nil
  20061. }
  20062. d.decode(&mv)
  20063. if v != nil {
  20064. v[mk] = mv
  20065. }
  20066. }
  20067. dd.ReadMapEnd()
  20068. d.depthDecr()
  20069. return v, changed
  20070. }
  20071. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  20072. if rv.Kind() == reflect.Ptr {
  20073. vp := rv2i(rv).(*map[string]string)
  20074. v, changed := fastpathTV.DecMapStringStringV(*vp, true, d)
  20075. if changed {
  20076. *vp = v
  20077. }
  20078. } else {
  20079. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  20080. }
  20081. }
  20082. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  20083. v, changed := f.DecMapStringStringV(*vp, true, d)
  20084. if changed {
  20085. *vp = v
  20086. }
  20087. }
  20088. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  20089. d *Decoder) (_ map[string]string, changed bool) {
  20090. dd, esep := d.d, d.hh.hasElemSeparators()
  20091. containerLen := dd.ReadMapStart()
  20092. if canChange && v == nil {
  20093. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20094. v = make(map[string]string, xlen)
  20095. changed = true
  20096. }
  20097. if containerLen == 0 {
  20098. dd.ReadMapEnd()
  20099. return v, changed
  20100. }
  20101. d.depthIncr()
  20102. var mk string
  20103. var mv string
  20104. hasLen := containerLen > 0
  20105. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20106. if esep {
  20107. dd.ReadMapElemKey()
  20108. }
  20109. mk = dd.DecodeString()
  20110. if esep {
  20111. dd.ReadMapElemValue()
  20112. }
  20113. if dd.TryDecodeAsNil() {
  20114. if v == nil {
  20115. } else if d.h.DeleteOnNilMapValue {
  20116. delete(v, mk)
  20117. } else {
  20118. v[mk] = ""
  20119. }
  20120. continue
  20121. }
  20122. mv = dd.DecodeString()
  20123. if v != nil {
  20124. v[mk] = mv
  20125. }
  20126. }
  20127. dd.ReadMapEnd()
  20128. d.depthDecr()
  20129. return v, changed
  20130. }
  20131. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  20132. if rv.Kind() == reflect.Ptr {
  20133. vp := rv2i(rv).(*map[string]uint)
  20134. v, changed := fastpathTV.DecMapStringUintV(*vp, true, d)
  20135. if changed {
  20136. *vp = v
  20137. }
  20138. } else {
  20139. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  20140. }
  20141. }
  20142. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  20143. v, changed := f.DecMapStringUintV(*vp, true, d)
  20144. if changed {
  20145. *vp = v
  20146. }
  20147. }
  20148. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  20149. d *Decoder) (_ map[string]uint, changed bool) {
  20150. dd, esep := d.d, d.hh.hasElemSeparators()
  20151. containerLen := dd.ReadMapStart()
  20152. if canChange && v == nil {
  20153. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20154. v = make(map[string]uint, xlen)
  20155. changed = true
  20156. }
  20157. if containerLen == 0 {
  20158. dd.ReadMapEnd()
  20159. return v, changed
  20160. }
  20161. d.depthIncr()
  20162. var mk string
  20163. var mv uint
  20164. hasLen := containerLen > 0
  20165. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20166. if esep {
  20167. dd.ReadMapElemKey()
  20168. }
  20169. mk = dd.DecodeString()
  20170. if esep {
  20171. dd.ReadMapElemValue()
  20172. }
  20173. if dd.TryDecodeAsNil() {
  20174. if v == nil {
  20175. } else if d.h.DeleteOnNilMapValue {
  20176. delete(v, mk)
  20177. } else {
  20178. v[mk] = 0
  20179. }
  20180. continue
  20181. }
  20182. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20183. if v != nil {
  20184. v[mk] = mv
  20185. }
  20186. }
  20187. dd.ReadMapEnd()
  20188. d.depthDecr()
  20189. return v, changed
  20190. }
  20191. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  20192. if rv.Kind() == reflect.Ptr {
  20193. vp := rv2i(rv).(*map[string]uint8)
  20194. v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d)
  20195. if changed {
  20196. *vp = v
  20197. }
  20198. } else {
  20199. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  20200. }
  20201. }
  20202. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  20203. v, changed := f.DecMapStringUint8V(*vp, true, d)
  20204. if changed {
  20205. *vp = v
  20206. }
  20207. }
  20208. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  20209. d *Decoder) (_ map[string]uint8, changed bool) {
  20210. dd, esep := d.d, d.hh.hasElemSeparators()
  20211. containerLen := dd.ReadMapStart()
  20212. if canChange && v == nil {
  20213. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20214. v = make(map[string]uint8, xlen)
  20215. changed = true
  20216. }
  20217. if containerLen == 0 {
  20218. dd.ReadMapEnd()
  20219. return v, changed
  20220. }
  20221. d.depthIncr()
  20222. var mk string
  20223. var mv uint8
  20224. hasLen := containerLen > 0
  20225. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20226. if esep {
  20227. dd.ReadMapElemKey()
  20228. }
  20229. mk = dd.DecodeString()
  20230. if esep {
  20231. dd.ReadMapElemValue()
  20232. }
  20233. if dd.TryDecodeAsNil() {
  20234. if v == nil {
  20235. } else if d.h.DeleteOnNilMapValue {
  20236. delete(v, mk)
  20237. } else {
  20238. v[mk] = 0
  20239. }
  20240. continue
  20241. }
  20242. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  20243. if v != nil {
  20244. v[mk] = mv
  20245. }
  20246. }
  20247. dd.ReadMapEnd()
  20248. d.depthDecr()
  20249. return v, changed
  20250. }
  20251. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  20252. if rv.Kind() == reflect.Ptr {
  20253. vp := rv2i(rv).(*map[string]uint16)
  20254. v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d)
  20255. if changed {
  20256. *vp = v
  20257. }
  20258. } else {
  20259. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  20260. }
  20261. }
  20262. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  20263. v, changed := f.DecMapStringUint16V(*vp, true, d)
  20264. if changed {
  20265. *vp = v
  20266. }
  20267. }
  20268. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  20269. d *Decoder) (_ map[string]uint16, changed bool) {
  20270. dd, esep := d.d, d.hh.hasElemSeparators()
  20271. containerLen := dd.ReadMapStart()
  20272. if canChange && v == nil {
  20273. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20274. v = make(map[string]uint16, xlen)
  20275. changed = true
  20276. }
  20277. if containerLen == 0 {
  20278. dd.ReadMapEnd()
  20279. return v, changed
  20280. }
  20281. d.depthIncr()
  20282. var mk string
  20283. var mv uint16
  20284. hasLen := containerLen > 0
  20285. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20286. if esep {
  20287. dd.ReadMapElemKey()
  20288. }
  20289. mk = dd.DecodeString()
  20290. if esep {
  20291. dd.ReadMapElemValue()
  20292. }
  20293. if dd.TryDecodeAsNil() {
  20294. if v == nil {
  20295. } else if d.h.DeleteOnNilMapValue {
  20296. delete(v, mk)
  20297. } else {
  20298. v[mk] = 0
  20299. }
  20300. continue
  20301. }
  20302. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  20303. if v != nil {
  20304. v[mk] = mv
  20305. }
  20306. }
  20307. dd.ReadMapEnd()
  20308. d.depthDecr()
  20309. return v, changed
  20310. }
  20311. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  20312. if rv.Kind() == reflect.Ptr {
  20313. vp := rv2i(rv).(*map[string]uint32)
  20314. v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d)
  20315. if changed {
  20316. *vp = v
  20317. }
  20318. } else {
  20319. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  20320. }
  20321. }
  20322. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  20323. v, changed := f.DecMapStringUint32V(*vp, true, d)
  20324. if changed {
  20325. *vp = v
  20326. }
  20327. }
  20328. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  20329. d *Decoder) (_ map[string]uint32, changed bool) {
  20330. dd, esep := d.d, d.hh.hasElemSeparators()
  20331. containerLen := dd.ReadMapStart()
  20332. if canChange && v == nil {
  20333. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20334. v = make(map[string]uint32, xlen)
  20335. changed = true
  20336. }
  20337. if containerLen == 0 {
  20338. dd.ReadMapEnd()
  20339. return v, changed
  20340. }
  20341. d.depthIncr()
  20342. var mk string
  20343. var mv uint32
  20344. hasLen := containerLen > 0
  20345. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20346. if esep {
  20347. dd.ReadMapElemKey()
  20348. }
  20349. mk = dd.DecodeString()
  20350. if esep {
  20351. dd.ReadMapElemValue()
  20352. }
  20353. if dd.TryDecodeAsNil() {
  20354. if v == nil {
  20355. } else if d.h.DeleteOnNilMapValue {
  20356. delete(v, mk)
  20357. } else {
  20358. v[mk] = 0
  20359. }
  20360. continue
  20361. }
  20362. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  20363. if v != nil {
  20364. v[mk] = mv
  20365. }
  20366. }
  20367. dd.ReadMapEnd()
  20368. d.depthDecr()
  20369. return v, changed
  20370. }
  20371. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  20372. if rv.Kind() == reflect.Ptr {
  20373. vp := rv2i(rv).(*map[string]uint64)
  20374. v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d)
  20375. if changed {
  20376. *vp = v
  20377. }
  20378. } else {
  20379. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  20380. }
  20381. }
  20382. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  20383. v, changed := f.DecMapStringUint64V(*vp, true, d)
  20384. if changed {
  20385. *vp = v
  20386. }
  20387. }
  20388. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  20389. d *Decoder) (_ map[string]uint64, changed bool) {
  20390. dd, esep := d.d, d.hh.hasElemSeparators()
  20391. containerLen := dd.ReadMapStart()
  20392. if canChange && v == nil {
  20393. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20394. v = make(map[string]uint64, xlen)
  20395. changed = true
  20396. }
  20397. if containerLen == 0 {
  20398. dd.ReadMapEnd()
  20399. return v, changed
  20400. }
  20401. d.depthIncr()
  20402. var mk string
  20403. var mv uint64
  20404. hasLen := containerLen > 0
  20405. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20406. if esep {
  20407. dd.ReadMapElemKey()
  20408. }
  20409. mk = dd.DecodeString()
  20410. if esep {
  20411. dd.ReadMapElemValue()
  20412. }
  20413. if dd.TryDecodeAsNil() {
  20414. if v == nil {
  20415. } else if d.h.DeleteOnNilMapValue {
  20416. delete(v, mk)
  20417. } else {
  20418. v[mk] = 0
  20419. }
  20420. continue
  20421. }
  20422. mv = dd.DecodeUint64()
  20423. if v != nil {
  20424. v[mk] = mv
  20425. }
  20426. }
  20427. dd.ReadMapEnd()
  20428. d.depthDecr()
  20429. return v, changed
  20430. }
  20431. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  20432. if rv.Kind() == reflect.Ptr {
  20433. vp := rv2i(rv).(*map[string]uintptr)
  20434. v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d)
  20435. if changed {
  20436. *vp = v
  20437. }
  20438. } else {
  20439. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  20440. }
  20441. }
  20442. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  20443. v, changed := f.DecMapStringUintptrV(*vp, true, d)
  20444. if changed {
  20445. *vp = v
  20446. }
  20447. }
  20448. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  20449. d *Decoder) (_ map[string]uintptr, changed bool) {
  20450. dd, esep := d.d, d.hh.hasElemSeparators()
  20451. containerLen := dd.ReadMapStart()
  20452. if canChange && v == nil {
  20453. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20454. v = make(map[string]uintptr, xlen)
  20455. changed = true
  20456. }
  20457. if containerLen == 0 {
  20458. dd.ReadMapEnd()
  20459. return v, changed
  20460. }
  20461. d.depthIncr()
  20462. var mk string
  20463. var mv uintptr
  20464. hasLen := containerLen > 0
  20465. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20466. if esep {
  20467. dd.ReadMapElemKey()
  20468. }
  20469. mk = dd.DecodeString()
  20470. if esep {
  20471. dd.ReadMapElemValue()
  20472. }
  20473. if dd.TryDecodeAsNil() {
  20474. if v == nil {
  20475. } else if d.h.DeleteOnNilMapValue {
  20476. delete(v, mk)
  20477. } else {
  20478. v[mk] = 0
  20479. }
  20480. continue
  20481. }
  20482. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20483. if v != nil {
  20484. v[mk] = mv
  20485. }
  20486. }
  20487. dd.ReadMapEnd()
  20488. d.depthDecr()
  20489. return v, changed
  20490. }
  20491. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  20492. if rv.Kind() == reflect.Ptr {
  20493. vp := rv2i(rv).(*map[string]int)
  20494. v, changed := fastpathTV.DecMapStringIntV(*vp, true, d)
  20495. if changed {
  20496. *vp = v
  20497. }
  20498. } else {
  20499. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  20500. }
  20501. }
  20502. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  20503. v, changed := f.DecMapStringIntV(*vp, true, d)
  20504. if changed {
  20505. *vp = v
  20506. }
  20507. }
  20508. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  20509. d *Decoder) (_ map[string]int, changed bool) {
  20510. dd, esep := d.d, d.hh.hasElemSeparators()
  20511. containerLen := dd.ReadMapStart()
  20512. if canChange && v == nil {
  20513. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20514. v = make(map[string]int, xlen)
  20515. changed = true
  20516. }
  20517. if containerLen == 0 {
  20518. dd.ReadMapEnd()
  20519. return v, changed
  20520. }
  20521. d.depthIncr()
  20522. var mk string
  20523. var mv int
  20524. hasLen := containerLen > 0
  20525. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20526. if esep {
  20527. dd.ReadMapElemKey()
  20528. }
  20529. mk = dd.DecodeString()
  20530. if esep {
  20531. dd.ReadMapElemValue()
  20532. }
  20533. if dd.TryDecodeAsNil() {
  20534. if v == nil {
  20535. } else if d.h.DeleteOnNilMapValue {
  20536. delete(v, mk)
  20537. } else {
  20538. v[mk] = 0
  20539. }
  20540. continue
  20541. }
  20542. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  20543. if v != nil {
  20544. v[mk] = mv
  20545. }
  20546. }
  20547. dd.ReadMapEnd()
  20548. d.depthDecr()
  20549. return v, changed
  20550. }
  20551. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  20552. if rv.Kind() == reflect.Ptr {
  20553. vp := rv2i(rv).(*map[string]int8)
  20554. v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d)
  20555. if changed {
  20556. *vp = v
  20557. }
  20558. } else {
  20559. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  20560. }
  20561. }
  20562. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  20563. v, changed := f.DecMapStringInt8V(*vp, true, d)
  20564. if changed {
  20565. *vp = v
  20566. }
  20567. }
  20568. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  20569. d *Decoder) (_ map[string]int8, changed bool) {
  20570. dd, esep := d.d, d.hh.hasElemSeparators()
  20571. containerLen := dd.ReadMapStart()
  20572. if canChange && v == nil {
  20573. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20574. v = make(map[string]int8, xlen)
  20575. changed = true
  20576. }
  20577. if containerLen == 0 {
  20578. dd.ReadMapEnd()
  20579. return v, changed
  20580. }
  20581. d.depthIncr()
  20582. var mk string
  20583. var mv int8
  20584. hasLen := containerLen > 0
  20585. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20586. if esep {
  20587. dd.ReadMapElemKey()
  20588. }
  20589. mk = dd.DecodeString()
  20590. if esep {
  20591. dd.ReadMapElemValue()
  20592. }
  20593. if dd.TryDecodeAsNil() {
  20594. if v == nil {
  20595. } else if d.h.DeleteOnNilMapValue {
  20596. delete(v, mk)
  20597. } else {
  20598. v[mk] = 0
  20599. }
  20600. continue
  20601. }
  20602. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  20603. if v != nil {
  20604. v[mk] = mv
  20605. }
  20606. }
  20607. dd.ReadMapEnd()
  20608. d.depthDecr()
  20609. return v, changed
  20610. }
  20611. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  20612. if rv.Kind() == reflect.Ptr {
  20613. vp := rv2i(rv).(*map[string]int16)
  20614. v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d)
  20615. if changed {
  20616. *vp = v
  20617. }
  20618. } else {
  20619. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  20620. }
  20621. }
  20622. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  20623. v, changed := f.DecMapStringInt16V(*vp, true, d)
  20624. if changed {
  20625. *vp = v
  20626. }
  20627. }
  20628. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  20629. d *Decoder) (_ map[string]int16, changed bool) {
  20630. dd, esep := d.d, d.hh.hasElemSeparators()
  20631. containerLen := dd.ReadMapStart()
  20632. if canChange && v == nil {
  20633. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20634. v = make(map[string]int16, xlen)
  20635. changed = true
  20636. }
  20637. if containerLen == 0 {
  20638. dd.ReadMapEnd()
  20639. return v, changed
  20640. }
  20641. d.depthIncr()
  20642. var mk string
  20643. var mv int16
  20644. hasLen := containerLen > 0
  20645. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20646. if esep {
  20647. dd.ReadMapElemKey()
  20648. }
  20649. mk = dd.DecodeString()
  20650. if esep {
  20651. dd.ReadMapElemValue()
  20652. }
  20653. if dd.TryDecodeAsNil() {
  20654. if v == nil {
  20655. } else if d.h.DeleteOnNilMapValue {
  20656. delete(v, mk)
  20657. } else {
  20658. v[mk] = 0
  20659. }
  20660. continue
  20661. }
  20662. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  20663. if v != nil {
  20664. v[mk] = mv
  20665. }
  20666. }
  20667. dd.ReadMapEnd()
  20668. d.depthDecr()
  20669. return v, changed
  20670. }
  20671. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  20672. if rv.Kind() == reflect.Ptr {
  20673. vp := rv2i(rv).(*map[string]int32)
  20674. v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d)
  20675. if changed {
  20676. *vp = v
  20677. }
  20678. } else {
  20679. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  20680. }
  20681. }
  20682. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  20683. v, changed := f.DecMapStringInt32V(*vp, true, d)
  20684. if changed {
  20685. *vp = v
  20686. }
  20687. }
  20688. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  20689. d *Decoder) (_ map[string]int32, changed bool) {
  20690. dd, esep := d.d, d.hh.hasElemSeparators()
  20691. containerLen := dd.ReadMapStart()
  20692. if canChange && v == nil {
  20693. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20694. v = make(map[string]int32, xlen)
  20695. changed = true
  20696. }
  20697. if containerLen == 0 {
  20698. dd.ReadMapEnd()
  20699. return v, changed
  20700. }
  20701. d.depthIncr()
  20702. var mk string
  20703. var mv int32
  20704. hasLen := containerLen > 0
  20705. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20706. if esep {
  20707. dd.ReadMapElemKey()
  20708. }
  20709. mk = dd.DecodeString()
  20710. if esep {
  20711. dd.ReadMapElemValue()
  20712. }
  20713. if dd.TryDecodeAsNil() {
  20714. if v == nil {
  20715. } else if d.h.DeleteOnNilMapValue {
  20716. delete(v, mk)
  20717. } else {
  20718. v[mk] = 0
  20719. }
  20720. continue
  20721. }
  20722. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  20723. if v != nil {
  20724. v[mk] = mv
  20725. }
  20726. }
  20727. dd.ReadMapEnd()
  20728. d.depthDecr()
  20729. return v, changed
  20730. }
  20731. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  20732. if rv.Kind() == reflect.Ptr {
  20733. vp := rv2i(rv).(*map[string]int64)
  20734. v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d)
  20735. if changed {
  20736. *vp = v
  20737. }
  20738. } else {
  20739. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  20740. }
  20741. }
  20742. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  20743. v, changed := f.DecMapStringInt64V(*vp, true, d)
  20744. if changed {
  20745. *vp = v
  20746. }
  20747. }
  20748. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  20749. d *Decoder) (_ map[string]int64, changed bool) {
  20750. dd, esep := d.d, d.hh.hasElemSeparators()
  20751. containerLen := dd.ReadMapStart()
  20752. if canChange && v == nil {
  20753. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20754. v = make(map[string]int64, xlen)
  20755. changed = true
  20756. }
  20757. if containerLen == 0 {
  20758. dd.ReadMapEnd()
  20759. return v, changed
  20760. }
  20761. d.depthIncr()
  20762. var mk string
  20763. var mv int64
  20764. hasLen := containerLen > 0
  20765. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20766. if esep {
  20767. dd.ReadMapElemKey()
  20768. }
  20769. mk = dd.DecodeString()
  20770. if esep {
  20771. dd.ReadMapElemValue()
  20772. }
  20773. if dd.TryDecodeAsNil() {
  20774. if v == nil {
  20775. } else if d.h.DeleteOnNilMapValue {
  20776. delete(v, mk)
  20777. } else {
  20778. v[mk] = 0
  20779. }
  20780. continue
  20781. }
  20782. mv = dd.DecodeInt64()
  20783. if v != nil {
  20784. v[mk] = mv
  20785. }
  20786. }
  20787. dd.ReadMapEnd()
  20788. d.depthDecr()
  20789. return v, changed
  20790. }
  20791. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  20792. if rv.Kind() == reflect.Ptr {
  20793. vp := rv2i(rv).(*map[string]float32)
  20794. v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d)
  20795. if changed {
  20796. *vp = v
  20797. }
  20798. } else {
  20799. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  20800. }
  20801. }
  20802. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  20803. v, changed := f.DecMapStringFloat32V(*vp, true, d)
  20804. if changed {
  20805. *vp = v
  20806. }
  20807. }
  20808. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  20809. d *Decoder) (_ map[string]float32, changed bool) {
  20810. dd, esep := d.d, d.hh.hasElemSeparators()
  20811. containerLen := dd.ReadMapStart()
  20812. if canChange && v == nil {
  20813. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20814. v = make(map[string]float32, xlen)
  20815. changed = true
  20816. }
  20817. if containerLen == 0 {
  20818. dd.ReadMapEnd()
  20819. return v, changed
  20820. }
  20821. d.depthIncr()
  20822. var mk string
  20823. var mv float32
  20824. hasLen := containerLen > 0
  20825. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20826. if esep {
  20827. dd.ReadMapElemKey()
  20828. }
  20829. mk = dd.DecodeString()
  20830. if esep {
  20831. dd.ReadMapElemValue()
  20832. }
  20833. if dd.TryDecodeAsNil() {
  20834. if v == nil {
  20835. } else if d.h.DeleteOnNilMapValue {
  20836. delete(v, mk)
  20837. } else {
  20838. v[mk] = 0
  20839. }
  20840. continue
  20841. }
  20842. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20843. if v != nil {
  20844. v[mk] = mv
  20845. }
  20846. }
  20847. dd.ReadMapEnd()
  20848. d.depthDecr()
  20849. return v, changed
  20850. }
  20851. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  20852. if rv.Kind() == reflect.Ptr {
  20853. vp := rv2i(rv).(*map[string]float64)
  20854. v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d)
  20855. if changed {
  20856. *vp = v
  20857. }
  20858. } else {
  20859. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  20860. }
  20861. }
  20862. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  20863. v, changed := f.DecMapStringFloat64V(*vp, true, d)
  20864. if changed {
  20865. *vp = v
  20866. }
  20867. }
  20868. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  20869. d *Decoder) (_ map[string]float64, changed bool) {
  20870. dd, esep := d.d, d.hh.hasElemSeparators()
  20871. containerLen := dd.ReadMapStart()
  20872. if canChange && v == nil {
  20873. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20874. v = make(map[string]float64, xlen)
  20875. changed = true
  20876. }
  20877. if containerLen == 0 {
  20878. dd.ReadMapEnd()
  20879. return v, changed
  20880. }
  20881. d.depthIncr()
  20882. var mk string
  20883. var mv float64
  20884. hasLen := containerLen > 0
  20885. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20886. if esep {
  20887. dd.ReadMapElemKey()
  20888. }
  20889. mk = dd.DecodeString()
  20890. if esep {
  20891. dd.ReadMapElemValue()
  20892. }
  20893. if dd.TryDecodeAsNil() {
  20894. if v == nil {
  20895. } else if d.h.DeleteOnNilMapValue {
  20896. delete(v, mk)
  20897. } else {
  20898. v[mk] = 0
  20899. }
  20900. continue
  20901. }
  20902. mv = dd.DecodeFloat64()
  20903. if v != nil {
  20904. v[mk] = mv
  20905. }
  20906. }
  20907. dd.ReadMapEnd()
  20908. d.depthDecr()
  20909. return v, changed
  20910. }
  20911. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  20912. if rv.Kind() == reflect.Ptr {
  20913. vp := rv2i(rv).(*map[string]bool)
  20914. v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d)
  20915. if changed {
  20916. *vp = v
  20917. }
  20918. } else {
  20919. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  20920. }
  20921. }
  20922. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  20923. v, changed := f.DecMapStringBoolV(*vp, true, d)
  20924. if changed {
  20925. *vp = v
  20926. }
  20927. }
  20928. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  20929. d *Decoder) (_ map[string]bool, changed bool) {
  20930. dd, esep := d.d, d.hh.hasElemSeparators()
  20931. containerLen := dd.ReadMapStart()
  20932. if canChange && v == nil {
  20933. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20934. v = make(map[string]bool, xlen)
  20935. changed = true
  20936. }
  20937. if containerLen == 0 {
  20938. dd.ReadMapEnd()
  20939. return v, changed
  20940. }
  20941. d.depthIncr()
  20942. var mk string
  20943. var mv bool
  20944. hasLen := containerLen > 0
  20945. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20946. if esep {
  20947. dd.ReadMapElemKey()
  20948. }
  20949. mk = dd.DecodeString()
  20950. if esep {
  20951. dd.ReadMapElemValue()
  20952. }
  20953. if dd.TryDecodeAsNil() {
  20954. if v == nil {
  20955. } else if d.h.DeleteOnNilMapValue {
  20956. delete(v, mk)
  20957. } else {
  20958. v[mk] = false
  20959. }
  20960. continue
  20961. }
  20962. mv = dd.DecodeBool()
  20963. if v != nil {
  20964. v[mk] = mv
  20965. }
  20966. }
  20967. dd.ReadMapEnd()
  20968. d.depthDecr()
  20969. return v, changed
  20970. }
  20971. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  20972. if rv.Kind() == reflect.Ptr {
  20973. vp := rv2i(rv).(*map[float32]interface{})
  20974. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d)
  20975. if changed {
  20976. *vp = v
  20977. }
  20978. } else {
  20979. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  20980. }
  20981. }
  20982. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  20983. v, changed := f.DecMapFloat32IntfV(*vp, true, d)
  20984. if changed {
  20985. *vp = v
  20986. }
  20987. }
  20988. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  20989. d *Decoder) (_ map[float32]interface{}, changed bool) {
  20990. dd, esep := d.d, d.hh.hasElemSeparators()
  20991. containerLen := dd.ReadMapStart()
  20992. if canChange && v == nil {
  20993. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20994. v = make(map[float32]interface{}, xlen)
  20995. changed = true
  20996. }
  20997. if containerLen == 0 {
  20998. dd.ReadMapEnd()
  20999. return v, changed
  21000. }
  21001. d.depthIncr()
  21002. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21003. var mk float32
  21004. var mv interface{}
  21005. hasLen := containerLen > 0
  21006. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21007. if esep {
  21008. dd.ReadMapElemKey()
  21009. }
  21010. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21011. if esep {
  21012. dd.ReadMapElemValue()
  21013. }
  21014. if dd.TryDecodeAsNil() {
  21015. if v == nil {
  21016. } else if d.h.DeleteOnNilMapValue {
  21017. delete(v, mk)
  21018. } else {
  21019. v[mk] = nil
  21020. }
  21021. continue
  21022. }
  21023. if mapGet {
  21024. mv = v[mk]
  21025. } else {
  21026. mv = nil
  21027. }
  21028. d.decode(&mv)
  21029. if v != nil {
  21030. v[mk] = mv
  21031. }
  21032. }
  21033. dd.ReadMapEnd()
  21034. d.depthDecr()
  21035. return v, changed
  21036. }
  21037. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  21038. if rv.Kind() == reflect.Ptr {
  21039. vp := rv2i(rv).(*map[float32]string)
  21040. v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d)
  21041. if changed {
  21042. *vp = v
  21043. }
  21044. } else {
  21045. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  21046. }
  21047. }
  21048. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  21049. v, changed := f.DecMapFloat32StringV(*vp, true, d)
  21050. if changed {
  21051. *vp = v
  21052. }
  21053. }
  21054. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  21055. d *Decoder) (_ map[float32]string, changed bool) {
  21056. dd, esep := d.d, d.hh.hasElemSeparators()
  21057. containerLen := dd.ReadMapStart()
  21058. if canChange && v == nil {
  21059. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21060. v = make(map[float32]string, xlen)
  21061. changed = true
  21062. }
  21063. if containerLen == 0 {
  21064. dd.ReadMapEnd()
  21065. return v, changed
  21066. }
  21067. d.depthIncr()
  21068. var mk float32
  21069. var mv string
  21070. hasLen := containerLen > 0
  21071. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21072. if esep {
  21073. dd.ReadMapElemKey()
  21074. }
  21075. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21076. if esep {
  21077. dd.ReadMapElemValue()
  21078. }
  21079. if dd.TryDecodeAsNil() {
  21080. if v == nil {
  21081. } else if d.h.DeleteOnNilMapValue {
  21082. delete(v, mk)
  21083. } else {
  21084. v[mk] = ""
  21085. }
  21086. continue
  21087. }
  21088. mv = dd.DecodeString()
  21089. if v != nil {
  21090. v[mk] = mv
  21091. }
  21092. }
  21093. dd.ReadMapEnd()
  21094. d.depthDecr()
  21095. return v, changed
  21096. }
  21097. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  21098. if rv.Kind() == reflect.Ptr {
  21099. vp := rv2i(rv).(*map[float32]uint)
  21100. v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d)
  21101. if changed {
  21102. *vp = v
  21103. }
  21104. } else {
  21105. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  21106. }
  21107. }
  21108. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  21109. v, changed := f.DecMapFloat32UintV(*vp, true, d)
  21110. if changed {
  21111. *vp = v
  21112. }
  21113. }
  21114. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  21115. d *Decoder) (_ map[float32]uint, changed bool) {
  21116. dd, esep := d.d, d.hh.hasElemSeparators()
  21117. containerLen := dd.ReadMapStart()
  21118. if canChange && v == nil {
  21119. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21120. v = make(map[float32]uint, xlen)
  21121. changed = true
  21122. }
  21123. if containerLen == 0 {
  21124. dd.ReadMapEnd()
  21125. return v, changed
  21126. }
  21127. d.depthIncr()
  21128. var mk float32
  21129. var mv uint
  21130. hasLen := containerLen > 0
  21131. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21132. if esep {
  21133. dd.ReadMapElemKey()
  21134. }
  21135. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21136. if esep {
  21137. dd.ReadMapElemValue()
  21138. }
  21139. if dd.TryDecodeAsNil() {
  21140. if v == nil {
  21141. } else if d.h.DeleteOnNilMapValue {
  21142. delete(v, mk)
  21143. } else {
  21144. v[mk] = 0
  21145. }
  21146. continue
  21147. }
  21148. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21149. if v != nil {
  21150. v[mk] = mv
  21151. }
  21152. }
  21153. dd.ReadMapEnd()
  21154. d.depthDecr()
  21155. return v, changed
  21156. }
  21157. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  21158. if rv.Kind() == reflect.Ptr {
  21159. vp := rv2i(rv).(*map[float32]uint8)
  21160. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d)
  21161. if changed {
  21162. *vp = v
  21163. }
  21164. } else {
  21165. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  21166. }
  21167. }
  21168. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  21169. v, changed := f.DecMapFloat32Uint8V(*vp, true, d)
  21170. if changed {
  21171. *vp = v
  21172. }
  21173. }
  21174. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  21175. d *Decoder) (_ map[float32]uint8, changed bool) {
  21176. dd, esep := d.d, d.hh.hasElemSeparators()
  21177. containerLen := dd.ReadMapStart()
  21178. if canChange && v == nil {
  21179. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21180. v = make(map[float32]uint8, xlen)
  21181. changed = true
  21182. }
  21183. if containerLen == 0 {
  21184. dd.ReadMapEnd()
  21185. return v, changed
  21186. }
  21187. d.depthIncr()
  21188. var mk float32
  21189. var mv uint8
  21190. hasLen := containerLen > 0
  21191. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21192. if esep {
  21193. dd.ReadMapElemKey()
  21194. }
  21195. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21196. if esep {
  21197. dd.ReadMapElemValue()
  21198. }
  21199. if dd.TryDecodeAsNil() {
  21200. if v == nil {
  21201. } else if d.h.DeleteOnNilMapValue {
  21202. delete(v, mk)
  21203. } else {
  21204. v[mk] = 0
  21205. }
  21206. continue
  21207. }
  21208. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  21209. if v != nil {
  21210. v[mk] = mv
  21211. }
  21212. }
  21213. dd.ReadMapEnd()
  21214. d.depthDecr()
  21215. return v, changed
  21216. }
  21217. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  21218. if rv.Kind() == reflect.Ptr {
  21219. vp := rv2i(rv).(*map[float32]uint16)
  21220. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d)
  21221. if changed {
  21222. *vp = v
  21223. }
  21224. } else {
  21225. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  21226. }
  21227. }
  21228. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  21229. v, changed := f.DecMapFloat32Uint16V(*vp, true, d)
  21230. if changed {
  21231. *vp = v
  21232. }
  21233. }
  21234. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  21235. d *Decoder) (_ map[float32]uint16, changed bool) {
  21236. dd, esep := d.d, d.hh.hasElemSeparators()
  21237. containerLen := dd.ReadMapStart()
  21238. if canChange && v == nil {
  21239. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21240. v = make(map[float32]uint16, xlen)
  21241. changed = true
  21242. }
  21243. if containerLen == 0 {
  21244. dd.ReadMapEnd()
  21245. return v, changed
  21246. }
  21247. d.depthIncr()
  21248. var mk float32
  21249. var mv uint16
  21250. hasLen := containerLen > 0
  21251. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21252. if esep {
  21253. dd.ReadMapElemKey()
  21254. }
  21255. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21256. if esep {
  21257. dd.ReadMapElemValue()
  21258. }
  21259. if dd.TryDecodeAsNil() {
  21260. if v == nil {
  21261. } else if d.h.DeleteOnNilMapValue {
  21262. delete(v, mk)
  21263. } else {
  21264. v[mk] = 0
  21265. }
  21266. continue
  21267. }
  21268. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  21269. if v != nil {
  21270. v[mk] = mv
  21271. }
  21272. }
  21273. dd.ReadMapEnd()
  21274. d.depthDecr()
  21275. return v, changed
  21276. }
  21277. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  21278. if rv.Kind() == reflect.Ptr {
  21279. vp := rv2i(rv).(*map[float32]uint32)
  21280. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d)
  21281. if changed {
  21282. *vp = v
  21283. }
  21284. } else {
  21285. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  21286. }
  21287. }
  21288. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  21289. v, changed := f.DecMapFloat32Uint32V(*vp, true, d)
  21290. if changed {
  21291. *vp = v
  21292. }
  21293. }
  21294. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  21295. d *Decoder) (_ map[float32]uint32, changed bool) {
  21296. dd, esep := d.d, d.hh.hasElemSeparators()
  21297. containerLen := dd.ReadMapStart()
  21298. if canChange && v == nil {
  21299. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21300. v = make(map[float32]uint32, xlen)
  21301. changed = true
  21302. }
  21303. if containerLen == 0 {
  21304. dd.ReadMapEnd()
  21305. return v, changed
  21306. }
  21307. d.depthIncr()
  21308. var mk float32
  21309. var mv uint32
  21310. hasLen := containerLen > 0
  21311. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21312. if esep {
  21313. dd.ReadMapElemKey()
  21314. }
  21315. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21316. if esep {
  21317. dd.ReadMapElemValue()
  21318. }
  21319. if dd.TryDecodeAsNil() {
  21320. if v == nil {
  21321. } else if d.h.DeleteOnNilMapValue {
  21322. delete(v, mk)
  21323. } else {
  21324. v[mk] = 0
  21325. }
  21326. continue
  21327. }
  21328. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  21329. if v != nil {
  21330. v[mk] = mv
  21331. }
  21332. }
  21333. dd.ReadMapEnd()
  21334. d.depthDecr()
  21335. return v, changed
  21336. }
  21337. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  21338. if rv.Kind() == reflect.Ptr {
  21339. vp := rv2i(rv).(*map[float32]uint64)
  21340. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d)
  21341. if changed {
  21342. *vp = v
  21343. }
  21344. } else {
  21345. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  21346. }
  21347. }
  21348. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  21349. v, changed := f.DecMapFloat32Uint64V(*vp, true, d)
  21350. if changed {
  21351. *vp = v
  21352. }
  21353. }
  21354. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  21355. d *Decoder) (_ map[float32]uint64, changed bool) {
  21356. dd, esep := d.d, d.hh.hasElemSeparators()
  21357. containerLen := dd.ReadMapStart()
  21358. if canChange && v == nil {
  21359. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21360. v = make(map[float32]uint64, xlen)
  21361. changed = true
  21362. }
  21363. if containerLen == 0 {
  21364. dd.ReadMapEnd()
  21365. return v, changed
  21366. }
  21367. d.depthIncr()
  21368. var mk float32
  21369. var mv uint64
  21370. hasLen := containerLen > 0
  21371. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21372. if esep {
  21373. dd.ReadMapElemKey()
  21374. }
  21375. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21376. if esep {
  21377. dd.ReadMapElemValue()
  21378. }
  21379. if dd.TryDecodeAsNil() {
  21380. if v == nil {
  21381. } else if d.h.DeleteOnNilMapValue {
  21382. delete(v, mk)
  21383. } else {
  21384. v[mk] = 0
  21385. }
  21386. continue
  21387. }
  21388. mv = dd.DecodeUint64()
  21389. if v != nil {
  21390. v[mk] = mv
  21391. }
  21392. }
  21393. dd.ReadMapEnd()
  21394. d.depthDecr()
  21395. return v, changed
  21396. }
  21397. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  21398. if rv.Kind() == reflect.Ptr {
  21399. vp := rv2i(rv).(*map[float32]uintptr)
  21400. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d)
  21401. if changed {
  21402. *vp = v
  21403. }
  21404. } else {
  21405. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  21406. }
  21407. }
  21408. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  21409. v, changed := f.DecMapFloat32UintptrV(*vp, true, d)
  21410. if changed {
  21411. *vp = v
  21412. }
  21413. }
  21414. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  21415. d *Decoder) (_ map[float32]uintptr, changed bool) {
  21416. dd, esep := d.d, d.hh.hasElemSeparators()
  21417. containerLen := dd.ReadMapStart()
  21418. if canChange && v == nil {
  21419. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21420. v = make(map[float32]uintptr, xlen)
  21421. changed = true
  21422. }
  21423. if containerLen == 0 {
  21424. dd.ReadMapEnd()
  21425. return v, changed
  21426. }
  21427. d.depthIncr()
  21428. var mk float32
  21429. var mv uintptr
  21430. hasLen := containerLen > 0
  21431. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21432. if esep {
  21433. dd.ReadMapElemKey()
  21434. }
  21435. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21436. if esep {
  21437. dd.ReadMapElemValue()
  21438. }
  21439. if dd.TryDecodeAsNil() {
  21440. if v == nil {
  21441. } else if d.h.DeleteOnNilMapValue {
  21442. delete(v, mk)
  21443. } else {
  21444. v[mk] = 0
  21445. }
  21446. continue
  21447. }
  21448. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21449. if v != nil {
  21450. v[mk] = mv
  21451. }
  21452. }
  21453. dd.ReadMapEnd()
  21454. d.depthDecr()
  21455. return v, changed
  21456. }
  21457. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  21458. if rv.Kind() == reflect.Ptr {
  21459. vp := rv2i(rv).(*map[float32]int)
  21460. v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d)
  21461. if changed {
  21462. *vp = v
  21463. }
  21464. } else {
  21465. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  21466. }
  21467. }
  21468. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  21469. v, changed := f.DecMapFloat32IntV(*vp, true, d)
  21470. if changed {
  21471. *vp = v
  21472. }
  21473. }
  21474. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  21475. d *Decoder) (_ map[float32]int, changed bool) {
  21476. dd, esep := d.d, d.hh.hasElemSeparators()
  21477. containerLen := dd.ReadMapStart()
  21478. if canChange && v == nil {
  21479. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21480. v = make(map[float32]int, xlen)
  21481. changed = true
  21482. }
  21483. if containerLen == 0 {
  21484. dd.ReadMapEnd()
  21485. return v, changed
  21486. }
  21487. d.depthIncr()
  21488. var mk float32
  21489. var mv int
  21490. hasLen := containerLen > 0
  21491. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21492. if esep {
  21493. dd.ReadMapElemKey()
  21494. }
  21495. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21496. if esep {
  21497. dd.ReadMapElemValue()
  21498. }
  21499. if dd.TryDecodeAsNil() {
  21500. if v == nil {
  21501. } else if d.h.DeleteOnNilMapValue {
  21502. delete(v, mk)
  21503. } else {
  21504. v[mk] = 0
  21505. }
  21506. continue
  21507. }
  21508. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  21509. if v != nil {
  21510. v[mk] = mv
  21511. }
  21512. }
  21513. dd.ReadMapEnd()
  21514. d.depthDecr()
  21515. return v, changed
  21516. }
  21517. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  21518. if rv.Kind() == reflect.Ptr {
  21519. vp := rv2i(rv).(*map[float32]int8)
  21520. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d)
  21521. if changed {
  21522. *vp = v
  21523. }
  21524. } else {
  21525. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  21526. }
  21527. }
  21528. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  21529. v, changed := f.DecMapFloat32Int8V(*vp, true, d)
  21530. if changed {
  21531. *vp = v
  21532. }
  21533. }
  21534. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  21535. d *Decoder) (_ map[float32]int8, changed bool) {
  21536. dd, esep := d.d, d.hh.hasElemSeparators()
  21537. containerLen := dd.ReadMapStart()
  21538. if canChange && v == nil {
  21539. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21540. v = make(map[float32]int8, xlen)
  21541. changed = true
  21542. }
  21543. if containerLen == 0 {
  21544. dd.ReadMapEnd()
  21545. return v, changed
  21546. }
  21547. d.depthIncr()
  21548. var mk float32
  21549. var mv int8
  21550. hasLen := containerLen > 0
  21551. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21552. if esep {
  21553. dd.ReadMapElemKey()
  21554. }
  21555. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21556. if esep {
  21557. dd.ReadMapElemValue()
  21558. }
  21559. if dd.TryDecodeAsNil() {
  21560. if v == nil {
  21561. } else if d.h.DeleteOnNilMapValue {
  21562. delete(v, mk)
  21563. } else {
  21564. v[mk] = 0
  21565. }
  21566. continue
  21567. }
  21568. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  21569. if v != nil {
  21570. v[mk] = mv
  21571. }
  21572. }
  21573. dd.ReadMapEnd()
  21574. d.depthDecr()
  21575. return v, changed
  21576. }
  21577. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  21578. if rv.Kind() == reflect.Ptr {
  21579. vp := rv2i(rv).(*map[float32]int16)
  21580. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d)
  21581. if changed {
  21582. *vp = v
  21583. }
  21584. } else {
  21585. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  21586. }
  21587. }
  21588. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  21589. v, changed := f.DecMapFloat32Int16V(*vp, true, d)
  21590. if changed {
  21591. *vp = v
  21592. }
  21593. }
  21594. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  21595. d *Decoder) (_ map[float32]int16, changed bool) {
  21596. dd, esep := d.d, d.hh.hasElemSeparators()
  21597. containerLen := dd.ReadMapStart()
  21598. if canChange && v == nil {
  21599. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21600. v = make(map[float32]int16, xlen)
  21601. changed = true
  21602. }
  21603. if containerLen == 0 {
  21604. dd.ReadMapEnd()
  21605. return v, changed
  21606. }
  21607. d.depthIncr()
  21608. var mk float32
  21609. var mv int16
  21610. hasLen := containerLen > 0
  21611. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21612. if esep {
  21613. dd.ReadMapElemKey()
  21614. }
  21615. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21616. if esep {
  21617. dd.ReadMapElemValue()
  21618. }
  21619. if dd.TryDecodeAsNil() {
  21620. if v == nil {
  21621. } else if d.h.DeleteOnNilMapValue {
  21622. delete(v, mk)
  21623. } else {
  21624. v[mk] = 0
  21625. }
  21626. continue
  21627. }
  21628. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  21629. if v != nil {
  21630. v[mk] = mv
  21631. }
  21632. }
  21633. dd.ReadMapEnd()
  21634. d.depthDecr()
  21635. return v, changed
  21636. }
  21637. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  21638. if rv.Kind() == reflect.Ptr {
  21639. vp := rv2i(rv).(*map[float32]int32)
  21640. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d)
  21641. if changed {
  21642. *vp = v
  21643. }
  21644. } else {
  21645. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  21646. }
  21647. }
  21648. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  21649. v, changed := f.DecMapFloat32Int32V(*vp, true, d)
  21650. if changed {
  21651. *vp = v
  21652. }
  21653. }
  21654. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  21655. d *Decoder) (_ map[float32]int32, changed bool) {
  21656. dd, esep := d.d, d.hh.hasElemSeparators()
  21657. containerLen := dd.ReadMapStart()
  21658. if canChange && v == nil {
  21659. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21660. v = make(map[float32]int32, xlen)
  21661. changed = true
  21662. }
  21663. if containerLen == 0 {
  21664. dd.ReadMapEnd()
  21665. return v, changed
  21666. }
  21667. d.depthIncr()
  21668. var mk float32
  21669. var mv int32
  21670. hasLen := containerLen > 0
  21671. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21672. if esep {
  21673. dd.ReadMapElemKey()
  21674. }
  21675. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21676. if esep {
  21677. dd.ReadMapElemValue()
  21678. }
  21679. if dd.TryDecodeAsNil() {
  21680. if v == nil {
  21681. } else if d.h.DeleteOnNilMapValue {
  21682. delete(v, mk)
  21683. } else {
  21684. v[mk] = 0
  21685. }
  21686. continue
  21687. }
  21688. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  21689. if v != nil {
  21690. v[mk] = mv
  21691. }
  21692. }
  21693. dd.ReadMapEnd()
  21694. d.depthDecr()
  21695. return v, changed
  21696. }
  21697. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  21698. if rv.Kind() == reflect.Ptr {
  21699. vp := rv2i(rv).(*map[float32]int64)
  21700. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d)
  21701. if changed {
  21702. *vp = v
  21703. }
  21704. } else {
  21705. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  21706. }
  21707. }
  21708. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  21709. v, changed := f.DecMapFloat32Int64V(*vp, true, d)
  21710. if changed {
  21711. *vp = v
  21712. }
  21713. }
  21714. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  21715. d *Decoder) (_ map[float32]int64, changed bool) {
  21716. dd, esep := d.d, d.hh.hasElemSeparators()
  21717. containerLen := dd.ReadMapStart()
  21718. if canChange && v == nil {
  21719. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21720. v = make(map[float32]int64, xlen)
  21721. changed = true
  21722. }
  21723. if containerLen == 0 {
  21724. dd.ReadMapEnd()
  21725. return v, changed
  21726. }
  21727. d.depthIncr()
  21728. var mk float32
  21729. var mv int64
  21730. hasLen := containerLen > 0
  21731. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21732. if esep {
  21733. dd.ReadMapElemKey()
  21734. }
  21735. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21736. if esep {
  21737. dd.ReadMapElemValue()
  21738. }
  21739. if dd.TryDecodeAsNil() {
  21740. if v == nil {
  21741. } else if d.h.DeleteOnNilMapValue {
  21742. delete(v, mk)
  21743. } else {
  21744. v[mk] = 0
  21745. }
  21746. continue
  21747. }
  21748. mv = dd.DecodeInt64()
  21749. if v != nil {
  21750. v[mk] = mv
  21751. }
  21752. }
  21753. dd.ReadMapEnd()
  21754. d.depthDecr()
  21755. return v, changed
  21756. }
  21757. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  21758. if rv.Kind() == reflect.Ptr {
  21759. vp := rv2i(rv).(*map[float32]float32)
  21760. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d)
  21761. if changed {
  21762. *vp = v
  21763. }
  21764. } else {
  21765. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  21766. }
  21767. }
  21768. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  21769. v, changed := f.DecMapFloat32Float32V(*vp, true, d)
  21770. if changed {
  21771. *vp = v
  21772. }
  21773. }
  21774. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  21775. d *Decoder) (_ map[float32]float32, changed bool) {
  21776. dd, esep := d.d, d.hh.hasElemSeparators()
  21777. containerLen := dd.ReadMapStart()
  21778. if canChange && v == nil {
  21779. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21780. v = make(map[float32]float32, xlen)
  21781. changed = true
  21782. }
  21783. if containerLen == 0 {
  21784. dd.ReadMapEnd()
  21785. return v, changed
  21786. }
  21787. d.depthIncr()
  21788. var mk float32
  21789. var mv float32
  21790. hasLen := containerLen > 0
  21791. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21792. if esep {
  21793. dd.ReadMapElemKey()
  21794. }
  21795. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21796. if esep {
  21797. dd.ReadMapElemValue()
  21798. }
  21799. if dd.TryDecodeAsNil() {
  21800. if v == nil {
  21801. } else if d.h.DeleteOnNilMapValue {
  21802. delete(v, mk)
  21803. } else {
  21804. v[mk] = 0
  21805. }
  21806. continue
  21807. }
  21808. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21809. if v != nil {
  21810. v[mk] = mv
  21811. }
  21812. }
  21813. dd.ReadMapEnd()
  21814. d.depthDecr()
  21815. return v, changed
  21816. }
  21817. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  21818. if rv.Kind() == reflect.Ptr {
  21819. vp := rv2i(rv).(*map[float32]float64)
  21820. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d)
  21821. if changed {
  21822. *vp = v
  21823. }
  21824. } else {
  21825. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  21826. }
  21827. }
  21828. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  21829. v, changed := f.DecMapFloat32Float64V(*vp, true, d)
  21830. if changed {
  21831. *vp = v
  21832. }
  21833. }
  21834. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  21835. d *Decoder) (_ map[float32]float64, changed bool) {
  21836. dd, esep := d.d, d.hh.hasElemSeparators()
  21837. containerLen := dd.ReadMapStart()
  21838. if canChange && v == nil {
  21839. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21840. v = make(map[float32]float64, xlen)
  21841. changed = true
  21842. }
  21843. if containerLen == 0 {
  21844. dd.ReadMapEnd()
  21845. return v, changed
  21846. }
  21847. d.depthIncr()
  21848. var mk float32
  21849. var mv float64
  21850. hasLen := containerLen > 0
  21851. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21852. if esep {
  21853. dd.ReadMapElemKey()
  21854. }
  21855. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21856. if esep {
  21857. dd.ReadMapElemValue()
  21858. }
  21859. if dd.TryDecodeAsNil() {
  21860. if v == nil {
  21861. } else if d.h.DeleteOnNilMapValue {
  21862. delete(v, mk)
  21863. } else {
  21864. v[mk] = 0
  21865. }
  21866. continue
  21867. }
  21868. mv = dd.DecodeFloat64()
  21869. if v != nil {
  21870. v[mk] = mv
  21871. }
  21872. }
  21873. dd.ReadMapEnd()
  21874. d.depthDecr()
  21875. return v, changed
  21876. }
  21877. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  21878. if rv.Kind() == reflect.Ptr {
  21879. vp := rv2i(rv).(*map[float32]bool)
  21880. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d)
  21881. if changed {
  21882. *vp = v
  21883. }
  21884. } else {
  21885. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  21886. }
  21887. }
  21888. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  21889. v, changed := f.DecMapFloat32BoolV(*vp, true, d)
  21890. if changed {
  21891. *vp = v
  21892. }
  21893. }
  21894. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  21895. d *Decoder) (_ map[float32]bool, changed bool) {
  21896. dd, esep := d.d, d.hh.hasElemSeparators()
  21897. containerLen := dd.ReadMapStart()
  21898. if canChange && v == nil {
  21899. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21900. v = make(map[float32]bool, xlen)
  21901. changed = true
  21902. }
  21903. if containerLen == 0 {
  21904. dd.ReadMapEnd()
  21905. return v, changed
  21906. }
  21907. d.depthIncr()
  21908. var mk float32
  21909. var mv bool
  21910. hasLen := containerLen > 0
  21911. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21912. if esep {
  21913. dd.ReadMapElemKey()
  21914. }
  21915. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21916. if esep {
  21917. dd.ReadMapElemValue()
  21918. }
  21919. if dd.TryDecodeAsNil() {
  21920. if v == nil {
  21921. } else if d.h.DeleteOnNilMapValue {
  21922. delete(v, mk)
  21923. } else {
  21924. v[mk] = false
  21925. }
  21926. continue
  21927. }
  21928. mv = dd.DecodeBool()
  21929. if v != nil {
  21930. v[mk] = mv
  21931. }
  21932. }
  21933. dd.ReadMapEnd()
  21934. d.depthDecr()
  21935. return v, changed
  21936. }
  21937. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  21938. if rv.Kind() == reflect.Ptr {
  21939. vp := rv2i(rv).(*map[float64]interface{})
  21940. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d)
  21941. if changed {
  21942. *vp = v
  21943. }
  21944. } else {
  21945. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  21946. }
  21947. }
  21948. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  21949. v, changed := f.DecMapFloat64IntfV(*vp, true, d)
  21950. if changed {
  21951. *vp = v
  21952. }
  21953. }
  21954. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  21955. d *Decoder) (_ map[float64]interface{}, changed bool) {
  21956. dd, esep := d.d, d.hh.hasElemSeparators()
  21957. containerLen := dd.ReadMapStart()
  21958. if canChange && v == nil {
  21959. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21960. v = make(map[float64]interface{}, xlen)
  21961. changed = true
  21962. }
  21963. if containerLen == 0 {
  21964. dd.ReadMapEnd()
  21965. return v, changed
  21966. }
  21967. d.depthIncr()
  21968. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21969. var mk float64
  21970. var mv interface{}
  21971. hasLen := containerLen > 0
  21972. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21973. if esep {
  21974. dd.ReadMapElemKey()
  21975. }
  21976. mk = dd.DecodeFloat64()
  21977. if esep {
  21978. dd.ReadMapElemValue()
  21979. }
  21980. if dd.TryDecodeAsNil() {
  21981. if v == nil {
  21982. } else if d.h.DeleteOnNilMapValue {
  21983. delete(v, mk)
  21984. } else {
  21985. v[mk] = nil
  21986. }
  21987. continue
  21988. }
  21989. if mapGet {
  21990. mv = v[mk]
  21991. } else {
  21992. mv = nil
  21993. }
  21994. d.decode(&mv)
  21995. if v != nil {
  21996. v[mk] = mv
  21997. }
  21998. }
  21999. dd.ReadMapEnd()
  22000. d.depthDecr()
  22001. return v, changed
  22002. }
  22003. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  22004. if rv.Kind() == reflect.Ptr {
  22005. vp := rv2i(rv).(*map[float64]string)
  22006. v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d)
  22007. if changed {
  22008. *vp = v
  22009. }
  22010. } else {
  22011. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  22012. }
  22013. }
  22014. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  22015. v, changed := f.DecMapFloat64StringV(*vp, true, d)
  22016. if changed {
  22017. *vp = v
  22018. }
  22019. }
  22020. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  22021. d *Decoder) (_ map[float64]string, changed bool) {
  22022. dd, esep := d.d, d.hh.hasElemSeparators()
  22023. containerLen := dd.ReadMapStart()
  22024. if canChange && v == nil {
  22025. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22026. v = make(map[float64]string, xlen)
  22027. changed = true
  22028. }
  22029. if containerLen == 0 {
  22030. dd.ReadMapEnd()
  22031. return v, changed
  22032. }
  22033. d.depthIncr()
  22034. var mk float64
  22035. var mv string
  22036. hasLen := containerLen > 0
  22037. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22038. if esep {
  22039. dd.ReadMapElemKey()
  22040. }
  22041. mk = dd.DecodeFloat64()
  22042. if esep {
  22043. dd.ReadMapElemValue()
  22044. }
  22045. if dd.TryDecodeAsNil() {
  22046. if v == nil {
  22047. } else if d.h.DeleteOnNilMapValue {
  22048. delete(v, mk)
  22049. } else {
  22050. v[mk] = ""
  22051. }
  22052. continue
  22053. }
  22054. mv = dd.DecodeString()
  22055. if v != nil {
  22056. v[mk] = mv
  22057. }
  22058. }
  22059. dd.ReadMapEnd()
  22060. d.depthDecr()
  22061. return v, changed
  22062. }
  22063. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  22064. if rv.Kind() == reflect.Ptr {
  22065. vp := rv2i(rv).(*map[float64]uint)
  22066. v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d)
  22067. if changed {
  22068. *vp = v
  22069. }
  22070. } else {
  22071. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  22072. }
  22073. }
  22074. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  22075. v, changed := f.DecMapFloat64UintV(*vp, true, d)
  22076. if changed {
  22077. *vp = v
  22078. }
  22079. }
  22080. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  22081. d *Decoder) (_ map[float64]uint, changed bool) {
  22082. dd, esep := d.d, d.hh.hasElemSeparators()
  22083. containerLen := dd.ReadMapStart()
  22084. if canChange && v == nil {
  22085. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22086. v = make(map[float64]uint, xlen)
  22087. changed = true
  22088. }
  22089. if containerLen == 0 {
  22090. dd.ReadMapEnd()
  22091. return v, changed
  22092. }
  22093. d.depthIncr()
  22094. var mk float64
  22095. var mv uint
  22096. hasLen := containerLen > 0
  22097. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22098. if esep {
  22099. dd.ReadMapElemKey()
  22100. }
  22101. mk = dd.DecodeFloat64()
  22102. if esep {
  22103. dd.ReadMapElemValue()
  22104. }
  22105. if dd.TryDecodeAsNil() {
  22106. if v == nil {
  22107. } else if d.h.DeleteOnNilMapValue {
  22108. delete(v, mk)
  22109. } else {
  22110. v[mk] = 0
  22111. }
  22112. continue
  22113. }
  22114. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22115. if v != nil {
  22116. v[mk] = mv
  22117. }
  22118. }
  22119. dd.ReadMapEnd()
  22120. d.depthDecr()
  22121. return v, changed
  22122. }
  22123. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  22124. if rv.Kind() == reflect.Ptr {
  22125. vp := rv2i(rv).(*map[float64]uint8)
  22126. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d)
  22127. if changed {
  22128. *vp = v
  22129. }
  22130. } else {
  22131. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  22132. }
  22133. }
  22134. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  22135. v, changed := f.DecMapFloat64Uint8V(*vp, true, d)
  22136. if changed {
  22137. *vp = v
  22138. }
  22139. }
  22140. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  22141. d *Decoder) (_ map[float64]uint8, changed bool) {
  22142. dd, esep := d.d, d.hh.hasElemSeparators()
  22143. containerLen := dd.ReadMapStart()
  22144. if canChange && v == nil {
  22145. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22146. v = make(map[float64]uint8, xlen)
  22147. changed = true
  22148. }
  22149. if containerLen == 0 {
  22150. dd.ReadMapEnd()
  22151. return v, changed
  22152. }
  22153. d.depthIncr()
  22154. var mk float64
  22155. var mv uint8
  22156. hasLen := containerLen > 0
  22157. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22158. if esep {
  22159. dd.ReadMapElemKey()
  22160. }
  22161. mk = dd.DecodeFloat64()
  22162. if esep {
  22163. dd.ReadMapElemValue()
  22164. }
  22165. if dd.TryDecodeAsNil() {
  22166. if v == nil {
  22167. } else if d.h.DeleteOnNilMapValue {
  22168. delete(v, mk)
  22169. } else {
  22170. v[mk] = 0
  22171. }
  22172. continue
  22173. }
  22174. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22175. if v != nil {
  22176. v[mk] = mv
  22177. }
  22178. }
  22179. dd.ReadMapEnd()
  22180. d.depthDecr()
  22181. return v, changed
  22182. }
  22183. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  22184. if rv.Kind() == reflect.Ptr {
  22185. vp := rv2i(rv).(*map[float64]uint16)
  22186. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d)
  22187. if changed {
  22188. *vp = v
  22189. }
  22190. } else {
  22191. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  22192. }
  22193. }
  22194. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  22195. v, changed := f.DecMapFloat64Uint16V(*vp, true, d)
  22196. if changed {
  22197. *vp = v
  22198. }
  22199. }
  22200. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  22201. d *Decoder) (_ map[float64]uint16, changed bool) {
  22202. dd, esep := d.d, d.hh.hasElemSeparators()
  22203. containerLen := dd.ReadMapStart()
  22204. if canChange && v == nil {
  22205. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22206. v = make(map[float64]uint16, xlen)
  22207. changed = true
  22208. }
  22209. if containerLen == 0 {
  22210. dd.ReadMapEnd()
  22211. return v, changed
  22212. }
  22213. d.depthIncr()
  22214. var mk float64
  22215. var mv uint16
  22216. hasLen := containerLen > 0
  22217. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22218. if esep {
  22219. dd.ReadMapElemKey()
  22220. }
  22221. mk = dd.DecodeFloat64()
  22222. if esep {
  22223. dd.ReadMapElemValue()
  22224. }
  22225. if dd.TryDecodeAsNil() {
  22226. if v == nil {
  22227. } else if d.h.DeleteOnNilMapValue {
  22228. delete(v, mk)
  22229. } else {
  22230. v[mk] = 0
  22231. }
  22232. continue
  22233. }
  22234. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  22235. if v != nil {
  22236. v[mk] = mv
  22237. }
  22238. }
  22239. dd.ReadMapEnd()
  22240. d.depthDecr()
  22241. return v, changed
  22242. }
  22243. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  22244. if rv.Kind() == reflect.Ptr {
  22245. vp := rv2i(rv).(*map[float64]uint32)
  22246. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d)
  22247. if changed {
  22248. *vp = v
  22249. }
  22250. } else {
  22251. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  22252. }
  22253. }
  22254. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  22255. v, changed := f.DecMapFloat64Uint32V(*vp, true, d)
  22256. if changed {
  22257. *vp = v
  22258. }
  22259. }
  22260. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  22261. d *Decoder) (_ map[float64]uint32, changed bool) {
  22262. dd, esep := d.d, d.hh.hasElemSeparators()
  22263. containerLen := dd.ReadMapStart()
  22264. if canChange && v == nil {
  22265. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22266. v = make(map[float64]uint32, xlen)
  22267. changed = true
  22268. }
  22269. if containerLen == 0 {
  22270. dd.ReadMapEnd()
  22271. return v, changed
  22272. }
  22273. d.depthIncr()
  22274. var mk float64
  22275. var mv uint32
  22276. hasLen := containerLen > 0
  22277. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22278. if esep {
  22279. dd.ReadMapElemKey()
  22280. }
  22281. mk = dd.DecodeFloat64()
  22282. if esep {
  22283. dd.ReadMapElemValue()
  22284. }
  22285. if dd.TryDecodeAsNil() {
  22286. if v == nil {
  22287. } else if d.h.DeleteOnNilMapValue {
  22288. delete(v, mk)
  22289. } else {
  22290. v[mk] = 0
  22291. }
  22292. continue
  22293. }
  22294. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  22295. if v != nil {
  22296. v[mk] = mv
  22297. }
  22298. }
  22299. dd.ReadMapEnd()
  22300. d.depthDecr()
  22301. return v, changed
  22302. }
  22303. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  22304. if rv.Kind() == reflect.Ptr {
  22305. vp := rv2i(rv).(*map[float64]uint64)
  22306. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d)
  22307. if changed {
  22308. *vp = v
  22309. }
  22310. } else {
  22311. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  22312. }
  22313. }
  22314. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  22315. v, changed := f.DecMapFloat64Uint64V(*vp, true, d)
  22316. if changed {
  22317. *vp = v
  22318. }
  22319. }
  22320. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  22321. d *Decoder) (_ map[float64]uint64, changed bool) {
  22322. dd, esep := d.d, d.hh.hasElemSeparators()
  22323. containerLen := dd.ReadMapStart()
  22324. if canChange && v == nil {
  22325. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22326. v = make(map[float64]uint64, xlen)
  22327. changed = true
  22328. }
  22329. if containerLen == 0 {
  22330. dd.ReadMapEnd()
  22331. return v, changed
  22332. }
  22333. d.depthIncr()
  22334. var mk float64
  22335. var mv uint64
  22336. hasLen := containerLen > 0
  22337. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22338. if esep {
  22339. dd.ReadMapElemKey()
  22340. }
  22341. mk = dd.DecodeFloat64()
  22342. if esep {
  22343. dd.ReadMapElemValue()
  22344. }
  22345. if dd.TryDecodeAsNil() {
  22346. if v == nil {
  22347. } else if d.h.DeleteOnNilMapValue {
  22348. delete(v, mk)
  22349. } else {
  22350. v[mk] = 0
  22351. }
  22352. continue
  22353. }
  22354. mv = dd.DecodeUint64()
  22355. if v != nil {
  22356. v[mk] = mv
  22357. }
  22358. }
  22359. dd.ReadMapEnd()
  22360. d.depthDecr()
  22361. return v, changed
  22362. }
  22363. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  22364. if rv.Kind() == reflect.Ptr {
  22365. vp := rv2i(rv).(*map[float64]uintptr)
  22366. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d)
  22367. if changed {
  22368. *vp = v
  22369. }
  22370. } else {
  22371. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  22372. }
  22373. }
  22374. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  22375. v, changed := f.DecMapFloat64UintptrV(*vp, true, d)
  22376. if changed {
  22377. *vp = v
  22378. }
  22379. }
  22380. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  22381. d *Decoder) (_ map[float64]uintptr, changed bool) {
  22382. dd, esep := d.d, d.hh.hasElemSeparators()
  22383. containerLen := dd.ReadMapStart()
  22384. if canChange && v == nil {
  22385. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22386. v = make(map[float64]uintptr, xlen)
  22387. changed = true
  22388. }
  22389. if containerLen == 0 {
  22390. dd.ReadMapEnd()
  22391. return v, changed
  22392. }
  22393. d.depthIncr()
  22394. var mk float64
  22395. var mv uintptr
  22396. hasLen := containerLen > 0
  22397. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22398. if esep {
  22399. dd.ReadMapElemKey()
  22400. }
  22401. mk = dd.DecodeFloat64()
  22402. if esep {
  22403. dd.ReadMapElemValue()
  22404. }
  22405. if dd.TryDecodeAsNil() {
  22406. if v == nil {
  22407. } else if d.h.DeleteOnNilMapValue {
  22408. delete(v, mk)
  22409. } else {
  22410. v[mk] = 0
  22411. }
  22412. continue
  22413. }
  22414. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22415. if v != nil {
  22416. v[mk] = mv
  22417. }
  22418. }
  22419. dd.ReadMapEnd()
  22420. d.depthDecr()
  22421. return v, changed
  22422. }
  22423. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  22424. if rv.Kind() == reflect.Ptr {
  22425. vp := rv2i(rv).(*map[float64]int)
  22426. v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d)
  22427. if changed {
  22428. *vp = v
  22429. }
  22430. } else {
  22431. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  22432. }
  22433. }
  22434. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  22435. v, changed := f.DecMapFloat64IntV(*vp, true, d)
  22436. if changed {
  22437. *vp = v
  22438. }
  22439. }
  22440. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  22441. d *Decoder) (_ map[float64]int, changed bool) {
  22442. dd, esep := d.d, d.hh.hasElemSeparators()
  22443. containerLen := dd.ReadMapStart()
  22444. if canChange && v == nil {
  22445. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22446. v = make(map[float64]int, xlen)
  22447. changed = true
  22448. }
  22449. if containerLen == 0 {
  22450. dd.ReadMapEnd()
  22451. return v, changed
  22452. }
  22453. d.depthIncr()
  22454. var mk float64
  22455. var mv int
  22456. hasLen := containerLen > 0
  22457. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22458. if esep {
  22459. dd.ReadMapElemKey()
  22460. }
  22461. mk = dd.DecodeFloat64()
  22462. if esep {
  22463. dd.ReadMapElemValue()
  22464. }
  22465. if dd.TryDecodeAsNil() {
  22466. if v == nil {
  22467. } else if d.h.DeleteOnNilMapValue {
  22468. delete(v, mk)
  22469. } else {
  22470. v[mk] = 0
  22471. }
  22472. continue
  22473. }
  22474. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  22475. if v != nil {
  22476. v[mk] = mv
  22477. }
  22478. }
  22479. dd.ReadMapEnd()
  22480. d.depthDecr()
  22481. return v, changed
  22482. }
  22483. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  22484. if rv.Kind() == reflect.Ptr {
  22485. vp := rv2i(rv).(*map[float64]int8)
  22486. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d)
  22487. if changed {
  22488. *vp = v
  22489. }
  22490. } else {
  22491. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  22492. }
  22493. }
  22494. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  22495. v, changed := f.DecMapFloat64Int8V(*vp, true, d)
  22496. if changed {
  22497. *vp = v
  22498. }
  22499. }
  22500. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  22501. d *Decoder) (_ map[float64]int8, changed bool) {
  22502. dd, esep := d.d, d.hh.hasElemSeparators()
  22503. containerLen := dd.ReadMapStart()
  22504. if canChange && v == nil {
  22505. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22506. v = make(map[float64]int8, xlen)
  22507. changed = true
  22508. }
  22509. if containerLen == 0 {
  22510. dd.ReadMapEnd()
  22511. return v, changed
  22512. }
  22513. d.depthIncr()
  22514. var mk float64
  22515. var mv int8
  22516. hasLen := containerLen > 0
  22517. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22518. if esep {
  22519. dd.ReadMapElemKey()
  22520. }
  22521. mk = dd.DecodeFloat64()
  22522. if esep {
  22523. dd.ReadMapElemValue()
  22524. }
  22525. if dd.TryDecodeAsNil() {
  22526. if v == nil {
  22527. } else if d.h.DeleteOnNilMapValue {
  22528. delete(v, mk)
  22529. } else {
  22530. v[mk] = 0
  22531. }
  22532. continue
  22533. }
  22534. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  22535. if v != nil {
  22536. v[mk] = mv
  22537. }
  22538. }
  22539. dd.ReadMapEnd()
  22540. d.depthDecr()
  22541. return v, changed
  22542. }
  22543. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  22544. if rv.Kind() == reflect.Ptr {
  22545. vp := rv2i(rv).(*map[float64]int16)
  22546. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d)
  22547. if changed {
  22548. *vp = v
  22549. }
  22550. } else {
  22551. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  22552. }
  22553. }
  22554. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  22555. v, changed := f.DecMapFloat64Int16V(*vp, true, d)
  22556. if changed {
  22557. *vp = v
  22558. }
  22559. }
  22560. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  22561. d *Decoder) (_ map[float64]int16, changed bool) {
  22562. dd, esep := d.d, d.hh.hasElemSeparators()
  22563. containerLen := dd.ReadMapStart()
  22564. if canChange && v == nil {
  22565. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22566. v = make(map[float64]int16, xlen)
  22567. changed = true
  22568. }
  22569. if containerLen == 0 {
  22570. dd.ReadMapEnd()
  22571. return v, changed
  22572. }
  22573. d.depthIncr()
  22574. var mk float64
  22575. var mv int16
  22576. hasLen := containerLen > 0
  22577. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22578. if esep {
  22579. dd.ReadMapElemKey()
  22580. }
  22581. mk = dd.DecodeFloat64()
  22582. if esep {
  22583. dd.ReadMapElemValue()
  22584. }
  22585. if dd.TryDecodeAsNil() {
  22586. if v == nil {
  22587. } else if d.h.DeleteOnNilMapValue {
  22588. delete(v, mk)
  22589. } else {
  22590. v[mk] = 0
  22591. }
  22592. continue
  22593. }
  22594. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  22595. if v != nil {
  22596. v[mk] = mv
  22597. }
  22598. }
  22599. dd.ReadMapEnd()
  22600. d.depthDecr()
  22601. return v, changed
  22602. }
  22603. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  22604. if rv.Kind() == reflect.Ptr {
  22605. vp := rv2i(rv).(*map[float64]int32)
  22606. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d)
  22607. if changed {
  22608. *vp = v
  22609. }
  22610. } else {
  22611. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  22612. }
  22613. }
  22614. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  22615. v, changed := f.DecMapFloat64Int32V(*vp, true, d)
  22616. if changed {
  22617. *vp = v
  22618. }
  22619. }
  22620. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  22621. d *Decoder) (_ map[float64]int32, changed bool) {
  22622. dd, esep := d.d, d.hh.hasElemSeparators()
  22623. containerLen := dd.ReadMapStart()
  22624. if canChange && v == nil {
  22625. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22626. v = make(map[float64]int32, xlen)
  22627. changed = true
  22628. }
  22629. if containerLen == 0 {
  22630. dd.ReadMapEnd()
  22631. return v, changed
  22632. }
  22633. d.depthIncr()
  22634. var mk float64
  22635. var mv int32
  22636. hasLen := containerLen > 0
  22637. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22638. if esep {
  22639. dd.ReadMapElemKey()
  22640. }
  22641. mk = dd.DecodeFloat64()
  22642. if esep {
  22643. dd.ReadMapElemValue()
  22644. }
  22645. if dd.TryDecodeAsNil() {
  22646. if v == nil {
  22647. } else if d.h.DeleteOnNilMapValue {
  22648. delete(v, mk)
  22649. } else {
  22650. v[mk] = 0
  22651. }
  22652. continue
  22653. }
  22654. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  22655. if v != nil {
  22656. v[mk] = mv
  22657. }
  22658. }
  22659. dd.ReadMapEnd()
  22660. d.depthDecr()
  22661. return v, changed
  22662. }
  22663. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  22664. if rv.Kind() == reflect.Ptr {
  22665. vp := rv2i(rv).(*map[float64]int64)
  22666. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d)
  22667. if changed {
  22668. *vp = v
  22669. }
  22670. } else {
  22671. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  22672. }
  22673. }
  22674. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  22675. v, changed := f.DecMapFloat64Int64V(*vp, true, d)
  22676. if changed {
  22677. *vp = v
  22678. }
  22679. }
  22680. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  22681. d *Decoder) (_ map[float64]int64, changed bool) {
  22682. dd, esep := d.d, d.hh.hasElemSeparators()
  22683. containerLen := dd.ReadMapStart()
  22684. if canChange && v == nil {
  22685. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22686. v = make(map[float64]int64, xlen)
  22687. changed = true
  22688. }
  22689. if containerLen == 0 {
  22690. dd.ReadMapEnd()
  22691. return v, changed
  22692. }
  22693. d.depthIncr()
  22694. var mk float64
  22695. var mv int64
  22696. hasLen := containerLen > 0
  22697. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22698. if esep {
  22699. dd.ReadMapElemKey()
  22700. }
  22701. mk = dd.DecodeFloat64()
  22702. if esep {
  22703. dd.ReadMapElemValue()
  22704. }
  22705. if dd.TryDecodeAsNil() {
  22706. if v == nil {
  22707. } else if d.h.DeleteOnNilMapValue {
  22708. delete(v, mk)
  22709. } else {
  22710. v[mk] = 0
  22711. }
  22712. continue
  22713. }
  22714. mv = dd.DecodeInt64()
  22715. if v != nil {
  22716. v[mk] = mv
  22717. }
  22718. }
  22719. dd.ReadMapEnd()
  22720. d.depthDecr()
  22721. return v, changed
  22722. }
  22723. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  22724. if rv.Kind() == reflect.Ptr {
  22725. vp := rv2i(rv).(*map[float64]float32)
  22726. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d)
  22727. if changed {
  22728. *vp = v
  22729. }
  22730. } else {
  22731. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  22732. }
  22733. }
  22734. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  22735. v, changed := f.DecMapFloat64Float32V(*vp, true, d)
  22736. if changed {
  22737. *vp = v
  22738. }
  22739. }
  22740. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  22741. d *Decoder) (_ map[float64]float32, changed bool) {
  22742. dd, esep := d.d, d.hh.hasElemSeparators()
  22743. containerLen := dd.ReadMapStart()
  22744. if canChange && v == nil {
  22745. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22746. v = make(map[float64]float32, xlen)
  22747. changed = true
  22748. }
  22749. if containerLen == 0 {
  22750. dd.ReadMapEnd()
  22751. return v, changed
  22752. }
  22753. d.depthIncr()
  22754. var mk float64
  22755. var mv float32
  22756. hasLen := containerLen > 0
  22757. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22758. if esep {
  22759. dd.ReadMapElemKey()
  22760. }
  22761. mk = dd.DecodeFloat64()
  22762. if esep {
  22763. dd.ReadMapElemValue()
  22764. }
  22765. if dd.TryDecodeAsNil() {
  22766. if v == nil {
  22767. } else if d.h.DeleteOnNilMapValue {
  22768. delete(v, mk)
  22769. } else {
  22770. v[mk] = 0
  22771. }
  22772. continue
  22773. }
  22774. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  22775. if v != nil {
  22776. v[mk] = mv
  22777. }
  22778. }
  22779. dd.ReadMapEnd()
  22780. d.depthDecr()
  22781. return v, changed
  22782. }
  22783. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  22784. if rv.Kind() == reflect.Ptr {
  22785. vp := rv2i(rv).(*map[float64]float64)
  22786. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d)
  22787. if changed {
  22788. *vp = v
  22789. }
  22790. } else {
  22791. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  22792. }
  22793. }
  22794. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  22795. v, changed := f.DecMapFloat64Float64V(*vp, true, d)
  22796. if changed {
  22797. *vp = v
  22798. }
  22799. }
  22800. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  22801. d *Decoder) (_ map[float64]float64, changed bool) {
  22802. dd, esep := d.d, d.hh.hasElemSeparators()
  22803. containerLen := dd.ReadMapStart()
  22804. if canChange && v == nil {
  22805. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22806. v = make(map[float64]float64, xlen)
  22807. changed = true
  22808. }
  22809. if containerLen == 0 {
  22810. dd.ReadMapEnd()
  22811. return v, changed
  22812. }
  22813. d.depthIncr()
  22814. var mk float64
  22815. var mv float64
  22816. hasLen := containerLen > 0
  22817. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22818. if esep {
  22819. dd.ReadMapElemKey()
  22820. }
  22821. mk = dd.DecodeFloat64()
  22822. if esep {
  22823. dd.ReadMapElemValue()
  22824. }
  22825. if dd.TryDecodeAsNil() {
  22826. if v == nil {
  22827. } else if d.h.DeleteOnNilMapValue {
  22828. delete(v, mk)
  22829. } else {
  22830. v[mk] = 0
  22831. }
  22832. continue
  22833. }
  22834. mv = dd.DecodeFloat64()
  22835. if v != nil {
  22836. v[mk] = mv
  22837. }
  22838. }
  22839. dd.ReadMapEnd()
  22840. d.depthDecr()
  22841. return v, changed
  22842. }
  22843. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  22844. if rv.Kind() == reflect.Ptr {
  22845. vp := rv2i(rv).(*map[float64]bool)
  22846. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d)
  22847. if changed {
  22848. *vp = v
  22849. }
  22850. } else {
  22851. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  22852. }
  22853. }
  22854. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  22855. v, changed := f.DecMapFloat64BoolV(*vp, true, d)
  22856. if changed {
  22857. *vp = v
  22858. }
  22859. }
  22860. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  22861. d *Decoder) (_ map[float64]bool, changed bool) {
  22862. dd, esep := d.d, d.hh.hasElemSeparators()
  22863. containerLen := dd.ReadMapStart()
  22864. if canChange && v == nil {
  22865. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22866. v = make(map[float64]bool, xlen)
  22867. changed = true
  22868. }
  22869. if containerLen == 0 {
  22870. dd.ReadMapEnd()
  22871. return v, changed
  22872. }
  22873. d.depthIncr()
  22874. var mk float64
  22875. var mv bool
  22876. hasLen := containerLen > 0
  22877. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22878. if esep {
  22879. dd.ReadMapElemKey()
  22880. }
  22881. mk = dd.DecodeFloat64()
  22882. if esep {
  22883. dd.ReadMapElemValue()
  22884. }
  22885. if dd.TryDecodeAsNil() {
  22886. if v == nil {
  22887. } else if d.h.DeleteOnNilMapValue {
  22888. delete(v, mk)
  22889. } else {
  22890. v[mk] = false
  22891. }
  22892. continue
  22893. }
  22894. mv = dd.DecodeBool()
  22895. if v != nil {
  22896. v[mk] = mv
  22897. }
  22898. }
  22899. dd.ReadMapEnd()
  22900. d.depthDecr()
  22901. return v, changed
  22902. }
  22903. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  22904. if rv.Kind() == reflect.Ptr {
  22905. vp := rv2i(rv).(*map[uint]interface{})
  22906. v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d)
  22907. if changed {
  22908. *vp = v
  22909. }
  22910. } else {
  22911. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  22912. }
  22913. }
  22914. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  22915. v, changed := f.DecMapUintIntfV(*vp, true, d)
  22916. if changed {
  22917. *vp = v
  22918. }
  22919. }
  22920. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  22921. d *Decoder) (_ map[uint]interface{}, changed bool) {
  22922. dd, esep := d.d, d.hh.hasElemSeparators()
  22923. containerLen := dd.ReadMapStart()
  22924. if canChange && v == nil {
  22925. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22926. v = make(map[uint]interface{}, xlen)
  22927. changed = true
  22928. }
  22929. if containerLen == 0 {
  22930. dd.ReadMapEnd()
  22931. return v, changed
  22932. }
  22933. d.depthIncr()
  22934. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  22935. var mk uint
  22936. var mv interface{}
  22937. hasLen := containerLen > 0
  22938. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22939. if esep {
  22940. dd.ReadMapElemKey()
  22941. }
  22942. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22943. if esep {
  22944. dd.ReadMapElemValue()
  22945. }
  22946. if dd.TryDecodeAsNil() {
  22947. if v == nil {
  22948. } else if d.h.DeleteOnNilMapValue {
  22949. delete(v, mk)
  22950. } else {
  22951. v[mk] = nil
  22952. }
  22953. continue
  22954. }
  22955. if mapGet {
  22956. mv = v[mk]
  22957. } else {
  22958. mv = nil
  22959. }
  22960. d.decode(&mv)
  22961. if v != nil {
  22962. v[mk] = mv
  22963. }
  22964. }
  22965. dd.ReadMapEnd()
  22966. d.depthDecr()
  22967. return v, changed
  22968. }
  22969. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  22970. if rv.Kind() == reflect.Ptr {
  22971. vp := rv2i(rv).(*map[uint]string)
  22972. v, changed := fastpathTV.DecMapUintStringV(*vp, true, d)
  22973. if changed {
  22974. *vp = v
  22975. }
  22976. } else {
  22977. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  22978. }
  22979. }
  22980. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  22981. v, changed := f.DecMapUintStringV(*vp, true, d)
  22982. if changed {
  22983. *vp = v
  22984. }
  22985. }
  22986. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  22987. d *Decoder) (_ map[uint]string, changed bool) {
  22988. dd, esep := d.d, d.hh.hasElemSeparators()
  22989. containerLen := dd.ReadMapStart()
  22990. if canChange && v == nil {
  22991. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22992. v = make(map[uint]string, xlen)
  22993. changed = true
  22994. }
  22995. if containerLen == 0 {
  22996. dd.ReadMapEnd()
  22997. return v, changed
  22998. }
  22999. d.depthIncr()
  23000. var mk uint
  23001. var mv string
  23002. hasLen := containerLen > 0
  23003. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23004. if esep {
  23005. dd.ReadMapElemKey()
  23006. }
  23007. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23008. if esep {
  23009. dd.ReadMapElemValue()
  23010. }
  23011. if dd.TryDecodeAsNil() {
  23012. if v == nil {
  23013. } else if d.h.DeleteOnNilMapValue {
  23014. delete(v, mk)
  23015. } else {
  23016. v[mk] = ""
  23017. }
  23018. continue
  23019. }
  23020. mv = dd.DecodeString()
  23021. if v != nil {
  23022. v[mk] = mv
  23023. }
  23024. }
  23025. dd.ReadMapEnd()
  23026. d.depthDecr()
  23027. return v, changed
  23028. }
  23029. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  23030. if rv.Kind() == reflect.Ptr {
  23031. vp := rv2i(rv).(*map[uint]uint)
  23032. v, changed := fastpathTV.DecMapUintUintV(*vp, true, d)
  23033. if changed {
  23034. *vp = v
  23035. }
  23036. } else {
  23037. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  23038. }
  23039. }
  23040. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  23041. v, changed := f.DecMapUintUintV(*vp, true, d)
  23042. if changed {
  23043. *vp = v
  23044. }
  23045. }
  23046. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  23047. d *Decoder) (_ map[uint]uint, changed bool) {
  23048. dd, esep := d.d, d.hh.hasElemSeparators()
  23049. containerLen := dd.ReadMapStart()
  23050. if canChange && v == nil {
  23051. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23052. v = make(map[uint]uint, xlen)
  23053. changed = true
  23054. }
  23055. if containerLen == 0 {
  23056. dd.ReadMapEnd()
  23057. return v, changed
  23058. }
  23059. d.depthIncr()
  23060. var mk uint
  23061. var mv uint
  23062. hasLen := containerLen > 0
  23063. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23064. if esep {
  23065. dd.ReadMapElemKey()
  23066. }
  23067. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23068. if esep {
  23069. dd.ReadMapElemValue()
  23070. }
  23071. if dd.TryDecodeAsNil() {
  23072. if v == nil {
  23073. } else if d.h.DeleteOnNilMapValue {
  23074. delete(v, mk)
  23075. } else {
  23076. v[mk] = 0
  23077. }
  23078. continue
  23079. }
  23080. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23081. if v != nil {
  23082. v[mk] = mv
  23083. }
  23084. }
  23085. dd.ReadMapEnd()
  23086. d.depthDecr()
  23087. return v, changed
  23088. }
  23089. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  23090. if rv.Kind() == reflect.Ptr {
  23091. vp := rv2i(rv).(*map[uint]uint8)
  23092. v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d)
  23093. if changed {
  23094. *vp = v
  23095. }
  23096. } else {
  23097. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  23098. }
  23099. }
  23100. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  23101. v, changed := f.DecMapUintUint8V(*vp, true, d)
  23102. if changed {
  23103. *vp = v
  23104. }
  23105. }
  23106. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  23107. d *Decoder) (_ map[uint]uint8, changed bool) {
  23108. dd, esep := d.d, d.hh.hasElemSeparators()
  23109. containerLen := dd.ReadMapStart()
  23110. if canChange && v == nil {
  23111. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23112. v = make(map[uint]uint8, xlen)
  23113. changed = true
  23114. }
  23115. if containerLen == 0 {
  23116. dd.ReadMapEnd()
  23117. return v, changed
  23118. }
  23119. d.depthIncr()
  23120. var mk uint
  23121. var mv uint8
  23122. hasLen := containerLen > 0
  23123. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23124. if esep {
  23125. dd.ReadMapElemKey()
  23126. }
  23127. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23128. if esep {
  23129. dd.ReadMapElemValue()
  23130. }
  23131. if dd.TryDecodeAsNil() {
  23132. if v == nil {
  23133. } else if d.h.DeleteOnNilMapValue {
  23134. delete(v, mk)
  23135. } else {
  23136. v[mk] = 0
  23137. }
  23138. continue
  23139. }
  23140. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23141. if v != nil {
  23142. v[mk] = mv
  23143. }
  23144. }
  23145. dd.ReadMapEnd()
  23146. d.depthDecr()
  23147. return v, changed
  23148. }
  23149. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  23150. if rv.Kind() == reflect.Ptr {
  23151. vp := rv2i(rv).(*map[uint]uint16)
  23152. v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d)
  23153. if changed {
  23154. *vp = v
  23155. }
  23156. } else {
  23157. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  23158. }
  23159. }
  23160. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  23161. v, changed := f.DecMapUintUint16V(*vp, true, d)
  23162. if changed {
  23163. *vp = v
  23164. }
  23165. }
  23166. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  23167. d *Decoder) (_ map[uint]uint16, changed bool) {
  23168. dd, esep := d.d, d.hh.hasElemSeparators()
  23169. containerLen := dd.ReadMapStart()
  23170. if canChange && v == nil {
  23171. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23172. v = make(map[uint]uint16, xlen)
  23173. changed = true
  23174. }
  23175. if containerLen == 0 {
  23176. dd.ReadMapEnd()
  23177. return v, changed
  23178. }
  23179. d.depthIncr()
  23180. var mk uint
  23181. var mv uint16
  23182. hasLen := containerLen > 0
  23183. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23184. if esep {
  23185. dd.ReadMapElemKey()
  23186. }
  23187. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23188. if esep {
  23189. dd.ReadMapElemValue()
  23190. }
  23191. if dd.TryDecodeAsNil() {
  23192. if v == nil {
  23193. } else if d.h.DeleteOnNilMapValue {
  23194. delete(v, mk)
  23195. } else {
  23196. v[mk] = 0
  23197. }
  23198. continue
  23199. }
  23200. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23201. if v != nil {
  23202. v[mk] = mv
  23203. }
  23204. }
  23205. dd.ReadMapEnd()
  23206. d.depthDecr()
  23207. return v, changed
  23208. }
  23209. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  23210. if rv.Kind() == reflect.Ptr {
  23211. vp := rv2i(rv).(*map[uint]uint32)
  23212. v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d)
  23213. if changed {
  23214. *vp = v
  23215. }
  23216. } else {
  23217. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  23218. }
  23219. }
  23220. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  23221. v, changed := f.DecMapUintUint32V(*vp, true, d)
  23222. if changed {
  23223. *vp = v
  23224. }
  23225. }
  23226. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  23227. d *Decoder) (_ map[uint]uint32, changed bool) {
  23228. dd, esep := d.d, d.hh.hasElemSeparators()
  23229. containerLen := dd.ReadMapStart()
  23230. if canChange && v == nil {
  23231. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23232. v = make(map[uint]uint32, xlen)
  23233. changed = true
  23234. }
  23235. if containerLen == 0 {
  23236. dd.ReadMapEnd()
  23237. return v, changed
  23238. }
  23239. d.depthIncr()
  23240. var mk uint
  23241. var mv uint32
  23242. hasLen := containerLen > 0
  23243. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23244. if esep {
  23245. dd.ReadMapElemKey()
  23246. }
  23247. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23248. if esep {
  23249. dd.ReadMapElemValue()
  23250. }
  23251. if dd.TryDecodeAsNil() {
  23252. if v == nil {
  23253. } else if d.h.DeleteOnNilMapValue {
  23254. delete(v, mk)
  23255. } else {
  23256. v[mk] = 0
  23257. }
  23258. continue
  23259. }
  23260. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  23261. if v != nil {
  23262. v[mk] = mv
  23263. }
  23264. }
  23265. dd.ReadMapEnd()
  23266. d.depthDecr()
  23267. return v, changed
  23268. }
  23269. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  23270. if rv.Kind() == reflect.Ptr {
  23271. vp := rv2i(rv).(*map[uint]uint64)
  23272. v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d)
  23273. if changed {
  23274. *vp = v
  23275. }
  23276. } else {
  23277. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  23278. }
  23279. }
  23280. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  23281. v, changed := f.DecMapUintUint64V(*vp, true, d)
  23282. if changed {
  23283. *vp = v
  23284. }
  23285. }
  23286. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  23287. d *Decoder) (_ map[uint]uint64, changed bool) {
  23288. dd, esep := d.d, d.hh.hasElemSeparators()
  23289. containerLen := dd.ReadMapStart()
  23290. if canChange && v == nil {
  23291. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23292. v = make(map[uint]uint64, xlen)
  23293. changed = true
  23294. }
  23295. if containerLen == 0 {
  23296. dd.ReadMapEnd()
  23297. return v, changed
  23298. }
  23299. d.depthIncr()
  23300. var mk uint
  23301. var mv uint64
  23302. hasLen := containerLen > 0
  23303. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23304. if esep {
  23305. dd.ReadMapElemKey()
  23306. }
  23307. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23308. if esep {
  23309. dd.ReadMapElemValue()
  23310. }
  23311. if dd.TryDecodeAsNil() {
  23312. if v == nil {
  23313. } else if d.h.DeleteOnNilMapValue {
  23314. delete(v, mk)
  23315. } else {
  23316. v[mk] = 0
  23317. }
  23318. continue
  23319. }
  23320. mv = dd.DecodeUint64()
  23321. if v != nil {
  23322. v[mk] = mv
  23323. }
  23324. }
  23325. dd.ReadMapEnd()
  23326. d.depthDecr()
  23327. return v, changed
  23328. }
  23329. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  23330. if rv.Kind() == reflect.Ptr {
  23331. vp := rv2i(rv).(*map[uint]uintptr)
  23332. v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d)
  23333. if changed {
  23334. *vp = v
  23335. }
  23336. } else {
  23337. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  23338. }
  23339. }
  23340. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  23341. v, changed := f.DecMapUintUintptrV(*vp, true, d)
  23342. if changed {
  23343. *vp = v
  23344. }
  23345. }
  23346. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  23347. d *Decoder) (_ map[uint]uintptr, changed bool) {
  23348. dd, esep := d.d, d.hh.hasElemSeparators()
  23349. containerLen := dd.ReadMapStart()
  23350. if canChange && v == nil {
  23351. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23352. v = make(map[uint]uintptr, xlen)
  23353. changed = true
  23354. }
  23355. if containerLen == 0 {
  23356. dd.ReadMapEnd()
  23357. return v, changed
  23358. }
  23359. d.depthIncr()
  23360. var mk uint
  23361. var mv uintptr
  23362. hasLen := containerLen > 0
  23363. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23364. if esep {
  23365. dd.ReadMapElemKey()
  23366. }
  23367. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23368. if esep {
  23369. dd.ReadMapElemValue()
  23370. }
  23371. if dd.TryDecodeAsNil() {
  23372. if v == nil {
  23373. } else if d.h.DeleteOnNilMapValue {
  23374. delete(v, mk)
  23375. } else {
  23376. v[mk] = 0
  23377. }
  23378. continue
  23379. }
  23380. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23381. if v != nil {
  23382. v[mk] = mv
  23383. }
  23384. }
  23385. dd.ReadMapEnd()
  23386. d.depthDecr()
  23387. return v, changed
  23388. }
  23389. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  23390. if rv.Kind() == reflect.Ptr {
  23391. vp := rv2i(rv).(*map[uint]int)
  23392. v, changed := fastpathTV.DecMapUintIntV(*vp, true, d)
  23393. if changed {
  23394. *vp = v
  23395. }
  23396. } else {
  23397. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  23398. }
  23399. }
  23400. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  23401. v, changed := f.DecMapUintIntV(*vp, true, d)
  23402. if changed {
  23403. *vp = v
  23404. }
  23405. }
  23406. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  23407. d *Decoder) (_ map[uint]int, changed bool) {
  23408. dd, esep := d.d, d.hh.hasElemSeparators()
  23409. containerLen := dd.ReadMapStart()
  23410. if canChange && v == nil {
  23411. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23412. v = make(map[uint]int, xlen)
  23413. changed = true
  23414. }
  23415. if containerLen == 0 {
  23416. dd.ReadMapEnd()
  23417. return v, changed
  23418. }
  23419. d.depthIncr()
  23420. var mk uint
  23421. var mv int
  23422. hasLen := containerLen > 0
  23423. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23424. if esep {
  23425. dd.ReadMapElemKey()
  23426. }
  23427. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23428. if esep {
  23429. dd.ReadMapElemValue()
  23430. }
  23431. if dd.TryDecodeAsNil() {
  23432. if v == nil {
  23433. } else if d.h.DeleteOnNilMapValue {
  23434. delete(v, mk)
  23435. } else {
  23436. v[mk] = 0
  23437. }
  23438. continue
  23439. }
  23440. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  23441. if v != nil {
  23442. v[mk] = mv
  23443. }
  23444. }
  23445. dd.ReadMapEnd()
  23446. d.depthDecr()
  23447. return v, changed
  23448. }
  23449. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  23450. if rv.Kind() == reflect.Ptr {
  23451. vp := rv2i(rv).(*map[uint]int8)
  23452. v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d)
  23453. if changed {
  23454. *vp = v
  23455. }
  23456. } else {
  23457. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  23458. }
  23459. }
  23460. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  23461. v, changed := f.DecMapUintInt8V(*vp, true, d)
  23462. if changed {
  23463. *vp = v
  23464. }
  23465. }
  23466. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  23467. d *Decoder) (_ map[uint]int8, changed bool) {
  23468. dd, esep := d.d, d.hh.hasElemSeparators()
  23469. containerLen := dd.ReadMapStart()
  23470. if canChange && v == nil {
  23471. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23472. v = make(map[uint]int8, xlen)
  23473. changed = true
  23474. }
  23475. if containerLen == 0 {
  23476. dd.ReadMapEnd()
  23477. return v, changed
  23478. }
  23479. d.depthIncr()
  23480. var mk uint
  23481. var mv int8
  23482. hasLen := containerLen > 0
  23483. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23484. if esep {
  23485. dd.ReadMapElemKey()
  23486. }
  23487. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23488. if esep {
  23489. dd.ReadMapElemValue()
  23490. }
  23491. if dd.TryDecodeAsNil() {
  23492. if v == nil {
  23493. } else if d.h.DeleteOnNilMapValue {
  23494. delete(v, mk)
  23495. } else {
  23496. v[mk] = 0
  23497. }
  23498. continue
  23499. }
  23500. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  23501. if v != nil {
  23502. v[mk] = mv
  23503. }
  23504. }
  23505. dd.ReadMapEnd()
  23506. d.depthDecr()
  23507. return v, changed
  23508. }
  23509. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  23510. if rv.Kind() == reflect.Ptr {
  23511. vp := rv2i(rv).(*map[uint]int16)
  23512. v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d)
  23513. if changed {
  23514. *vp = v
  23515. }
  23516. } else {
  23517. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  23518. }
  23519. }
  23520. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  23521. v, changed := f.DecMapUintInt16V(*vp, true, d)
  23522. if changed {
  23523. *vp = v
  23524. }
  23525. }
  23526. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  23527. d *Decoder) (_ map[uint]int16, changed bool) {
  23528. dd, esep := d.d, d.hh.hasElemSeparators()
  23529. containerLen := dd.ReadMapStart()
  23530. if canChange && v == nil {
  23531. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23532. v = make(map[uint]int16, xlen)
  23533. changed = true
  23534. }
  23535. if containerLen == 0 {
  23536. dd.ReadMapEnd()
  23537. return v, changed
  23538. }
  23539. d.depthIncr()
  23540. var mk uint
  23541. var mv int16
  23542. hasLen := containerLen > 0
  23543. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23544. if esep {
  23545. dd.ReadMapElemKey()
  23546. }
  23547. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23548. if esep {
  23549. dd.ReadMapElemValue()
  23550. }
  23551. if dd.TryDecodeAsNil() {
  23552. if v == nil {
  23553. } else if d.h.DeleteOnNilMapValue {
  23554. delete(v, mk)
  23555. } else {
  23556. v[mk] = 0
  23557. }
  23558. continue
  23559. }
  23560. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  23561. if v != nil {
  23562. v[mk] = mv
  23563. }
  23564. }
  23565. dd.ReadMapEnd()
  23566. d.depthDecr()
  23567. return v, changed
  23568. }
  23569. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  23570. if rv.Kind() == reflect.Ptr {
  23571. vp := rv2i(rv).(*map[uint]int32)
  23572. v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d)
  23573. if changed {
  23574. *vp = v
  23575. }
  23576. } else {
  23577. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  23578. }
  23579. }
  23580. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  23581. v, changed := f.DecMapUintInt32V(*vp, true, d)
  23582. if changed {
  23583. *vp = v
  23584. }
  23585. }
  23586. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  23587. d *Decoder) (_ map[uint]int32, changed bool) {
  23588. dd, esep := d.d, d.hh.hasElemSeparators()
  23589. containerLen := dd.ReadMapStart()
  23590. if canChange && v == nil {
  23591. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23592. v = make(map[uint]int32, xlen)
  23593. changed = true
  23594. }
  23595. if containerLen == 0 {
  23596. dd.ReadMapEnd()
  23597. return v, changed
  23598. }
  23599. d.depthIncr()
  23600. var mk uint
  23601. var mv int32
  23602. hasLen := containerLen > 0
  23603. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23604. if esep {
  23605. dd.ReadMapElemKey()
  23606. }
  23607. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23608. if esep {
  23609. dd.ReadMapElemValue()
  23610. }
  23611. if dd.TryDecodeAsNil() {
  23612. if v == nil {
  23613. } else if d.h.DeleteOnNilMapValue {
  23614. delete(v, mk)
  23615. } else {
  23616. v[mk] = 0
  23617. }
  23618. continue
  23619. }
  23620. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  23621. if v != nil {
  23622. v[mk] = mv
  23623. }
  23624. }
  23625. dd.ReadMapEnd()
  23626. d.depthDecr()
  23627. return v, changed
  23628. }
  23629. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  23630. if rv.Kind() == reflect.Ptr {
  23631. vp := rv2i(rv).(*map[uint]int64)
  23632. v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d)
  23633. if changed {
  23634. *vp = v
  23635. }
  23636. } else {
  23637. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  23638. }
  23639. }
  23640. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  23641. v, changed := f.DecMapUintInt64V(*vp, true, d)
  23642. if changed {
  23643. *vp = v
  23644. }
  23645. }
  23646. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  23647. d *Decoder) (_ map[uint]int64, changed bool) {
  23648. dd, esep := d.d, d.hh.hasElemSeparators()
  23649. containerLen := dd.ReadMapStart()
  23650. if canChange && v == nil {
  23651. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23652. v = make(map[uint]int64, xlen)
  23653. changed = true
  23654. }
  23655. if containerLen == 0 {
  23656. dd.ReadMapEnd()
  23657. return v, changed
  23658. }
  23659. d.depthIncr()
  23660. var mk uint
  23661. var mv int64
  23662. hasLen := containerLen > 0
  23663. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23664. if esep {
  23665. dd.ReadMapElemKey()
  23666. }
  23667. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23668. if esep {
  23669. dd.ReadMapElemValue()
  23670. }
  23671. if dd.TryDecodeAsNil() {
  23672. if v == nil {
  23673. } else if d.h.DeleteOnNilMapValue {
  23674. delete(v, mk)
  23675. } else {
  23676. v[mk] = 0
  23677. }
  23678. continue
  23679. }
  23680. mv = dd.DecodeInt64()
  23681. if v != nil {
  23682. v[mk] = mv
  23683. }
  23684. }
  23685. dd.ReadMapEnd()
  23686. d.depthDecr()
  23687. return v, changed
  23688. }
  23689. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  23690. if rv.Kind() == reflect.Ptr {
  23691. vp := rv2i(rv).(*map[uint]float32)
  23692. v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d)
  23693. if changed {
  23694. *vp = v
  23695. }
  23696. } else {
  23697. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  23698. }
  23699. }
  23700. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  23701. v, changed := f.DecMapUintFloat32V(*vp, true, d)
  23702. if changed {
  23703. *vp = v
  23704. }
  23705. }
  23706. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  23707. d *Decoder) (_ map[uint]float32, changed bool) {
  23708. dd, esep := d.d, d.hh.hasElemSeparators()
  23709. containerLen := dd.ReadMapStart()
  23710. if canChange && v == nil {
  23711. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23712. v = make(map[uint]float32, xlen)
  23713. changed = true
  23714. }
  23715. if containerLen == 0 {
  23716. dd.ReadMapEnd()
  23717. return v, changed
  23718. }
  23719. d.depthIncr()
  23720. var mk uint
  23721. var mv float32
  23722. hasLen := containerLen > 0
  23723. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23724. if esep {
  23725. dd.ReadMapElemKey()
  23726. }
  23727. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23728. if esep {
  23729. dd.ReadMapElemValue()
  23730. }
  23731. if dd.TryDecodeAsNil() {
  23732. if v == nil {
  23733. } else if d.h.DeleteOnNilMapValue {
  23734. delete(v, mk)
  23735. } else {
  23736. v[mk] = 0
  23737. }
  23738. continue
  23739. }
  23740. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  23741. if v != nil {
  23742. v[mk] = mv
  23743. }
  23744. }
  23745. dd.ReadMapEnd()
  23746. d.depthDecr()
  23747. return v, changed
  23748. }
  23749. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  23750. if rv.Kind() == reflect.Ptr {
  23751. vp := rv2i(rv).(*map[uint]float64)
  23752. v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d)
  23753. if changed {
  23754. *vp = v
  23755. }
  23756. } else {
  23757. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  23758. }
  23759. }
  23760. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  23761. v, changed := f.DecMapUintFloat64V(*vp, true, d)
  23762. if changed {
  23763. *vp = v
  23764. }
  23765. }
  23766. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  23767. d *Decoder) (_ map[uint]float64, changed bool) {
  23768. dd, esep := d.d, d.hh.hasElemSeparators()
  23769. containerLen := dd.ReadMapStart()
  23770. if canChange && v == nil {
  23771. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23772. v = make(map[uint]float64, xlen)
  23773. changed = true
  23774. }
  23775. if containerLen == 0 {
  23776. dd.ReadMapEnd()
  23777. return v, changed
  23778. }
  23779. d.depthIncr()
  23780. var mk uint
  23781. var mv float64
  23782. hasLen := containerLen > 0
  23783. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23784. if esep {
  23785. dd.ReadMapElemKey()
  23786. }
  23787. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23788. if esep {
  23789. dd.ReadMapElemValue()
  23790. }
  23791. if dd.TryDecodeAsNil() {
  23792. if v == nil {
  23793. } else if d.h.DeleteOnNilMapValue {
  23794. delete(v, mk)
  23795. } else {
  23796. v[mk] = 0
  23797. }
  23798. continue
  23799. }
  23800. mv = dd.DecodeFloat64()
  23801. if v != nil {
  23802. v[mk] = mv
  23803. }
  23804. }
  23805. dd.ReadMapEnd()
  23806. d.depthDecr()
  23807. return v, changed
  23808. }
  23809. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  23810. if rv.Kind() == reflect.Ptr {
  23811. vp := rv2i(rv).(*map[uint]bool)
  23812. v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d)
  23813. if changed {
  23814. *vp = v
  23815. }
  23816. } else {
  23817. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  23818. }
  23819. }
  23820. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  23821. v, changed := f.DecMapUintBoolV(*vp, true, d)
  23822. if changed {
  23823. *vp = v
  23824. }
  23825. }
  23826. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  23827. d *Decoder) (_ map[uint]bool, changed bool) {
  23828. dd, esep := d.d, d.hh.hasElemSeparators()
  23829. containerLen := dd.ReadMapStart()
  23830. if canChange && v == nil {
  23831. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23832. v = make(map[uint]bool, xlen)
  23833. changed = true
  23834. }
  23835. if containerLen == 0 {
  23836. dd.ReadMapEnd()
  23837. return v, changed
  23838. }
  23839. d.depthIncr()
  23840. var mk uint
  23841. var mv bool
  23842. hasLen := containerLen > 0
  23843. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23844. if esep {
  23845. dd.ReadMapElemKey()
  23846. }
  23847. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23848. if esep {
  23849. dd.ReadMapElemValue()
  23850. }
  23851. if dd.TryDecodeAsNil() {
  23852. if v == nil {
  23853. } else if d.h.DeleteOnNilMapValue {
  23854. delete(v, mk)
  23855. } else {
  23856. v[mk] = false
  23857. }
  23858. continue
  23859. }
  23860. mv = dd.DecodeBool()
  23861. if v != nil {
  23862. v[mk] = mv
  23863. }
  23864. }
  23865. dd.ReadMapEnd()
  23866. d.depthDecr()
  23867. return v, changed
  23868. }
  23869. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  23870. if rv.Kind() == reflect.Ptr {
  23871. vp := rv2i(rv).(*map[uint8]interface{})
  23872. v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d)
  23873. if changed {
  23874. *vp = v
  23875. }
  23876. } else {
  23877. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  23878. }
  23879. }
  23880. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  23881. v, changed := f.DecMapUint8IntfV(*vp, true, d)
  23882. if changed {
  23883. *vp = v
  23884. }
  23885. }
  23886. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  23887. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  23888. dd, esep := d.d, d.hh.hasElemSeparators()
  23889. containerLen := dd.ReadMapStart()
  23890. if canChange && v == nil {
  23891. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23892. v = make(map[uint8]interface{}, xlen)
  23893. changed = true
  23894. }
  23895. if containerLen == 0 {
  23896. dd.ReadMapEnd()
  23897. return v, changed
  23898. }
  23899. d.depthIncr()
  23900. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  23901. var mk uint8
  23902. var mv interface{}
  23903. hasLen := containerLen > 0
  23904. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23905. if esep {
  23906. dd.ReadMapElemKey()
  23907. }
  23908. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23909. if esep {
  23910. dd.ReadMapElemValue()
  23911. }
  23912. if dd.TryDecodeAsNil() {
  23913. if v == nil {
  23914. } else if d.h.DeleteOnNilMapValue {
  23915. delete(v, mk)
  23916. } else {
  23917. v[mk] = nil
  23918. }
  23919. continue
  23920. }
  23921. if mapGet {
  23922. mv = v[mk]
  23923. } else {
  23924. mv = nil
  23925. }
  23926. d.decode(&mv)
  23927. if v != nil {
  23928. v[mk] = mv
  23929. }
  23930. }
  23931. dd.ReadMapEnd()
  23932. d.depthDecr()
  23933. return v, changed
  23934. }
  23935. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  23936. if rv.Kind() == reflect.Ptr {
  23937. vp := rv2i(rv).(*map[uint8]string)
  23938. v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d)
  23939. if changed {
  23940. *vp = v
  23941. }
  23942. } else {
  23943. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  23944. }
  23945. }
  23946. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  23947. v, changed := f.DecMapUint8StringV(*vp, true, d)
  23948. if changed {
  23949. *vp = v
  23950. }
  23951. }
  23952. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  23953. d *Decoder) (_ map[uint8]string, changed bool) {
  23954. dd, esep := d.d, d.hh.hasElemSeparators()
  23955. containerLen := dd.ReadMapStart()
  23956. if canChange && v == nil {
  23957. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23958. v = make(map[uint8]string, xlen)
  23959. changed = true
  23960. }
  23961. if containerLen == 0 {
  23962. dd.ReadMapEnd()
  23963. return v, changed
  23964. }
  23965. d.depthIncr()
  23966. var mk uint8
  23967. var mv string
  23968. hasLen := containerLen > 0
  23969. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23970. if esep {
  23971. dd.ReadMapElemKey()
  23972. }
  23973. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23974. if esep {
  23975. dd.ReadMapElemValue()
  23976. }
  23977. if dd.TryDecodeAsNil() {
  23978. if v == nil {
  23979. } else if d.h.DeleteOnNilMapValue {
  23980. delete(v, mk)
  23981. } else {
  23982. v[mk] = ""
  23983. }
  23984. continue
  23985. }
  23986. mv = dd.DecodeString()
  23987. if v != nil {
  23988. v[mk] = mv
  23989. }
  23990. }
  23991. dd.ReadMapEnd()
  23992. d.depthDecr()
  23993. return v, changed
  23994. }
  23995. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  23996. if rv.Kind() == reflect.Ptr {
  23997. vp := rv2i(rv).(*map[uint8]uint)
  23998. v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d)
  23999. if changed {
  24000. *vp = v
  24001. }
  24002. } else {
  24003. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  24004. }
  24005. }
  24006. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  24007. v, changed := f.DecMapUint8UintV(*vp, true, d)
  24008. if changed {
  24009. *vp = v
  24010. }
  24011. }
  24012. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  24013. d *Decoder) (_ map[uint8]uint, changed bool) {
  24014. dd, esep := d.d, d.hh.hasElemSeparators()
  24015. containerLen := dd.ReadMapStart()
  24016. if canChange && v == nil {
  24017. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24018. v = make(map[uint8]uint, xlen)
  24019. changed = true
  24020. }
  24021. if containerLen == 0 {
  24022. dd.ReadMapEnd()
  24023. return v, changed
  24024. }
  24025. d.depthIncr()
  24026. var mk uint8
  24027. var mv uint
  24028. hasLen := containerLen > 0
  24029. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24030. if esep {
  24031. dd.ReadMapElemKey()
  24032. }
  24033. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24034. if esep {
  24035. dd.ReadMapElemValue()
  24036. }
  24037. if dd.TryDecodeAsNil() {
  24038. if v == nil {
  24039. } else if d.h.DeleteOnNilMapValue {
  24040. delete(v, mk)
  24041. } else {
  24042. v[mk] = 0
  24043. }
  24044. continue
  24045. }
  24046. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24047. if v != nil {
  24048. v[mk] = mv
  24049. }
  24050. }
  24051. dd.ReadMapEnd()
  24052. d.depthDecr()
  24053. return v, changed
  24054. }
  24055. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  24056. if rv.Kind() == reflect.Ptr {
  24057. vp := rv2i(rv).(*map[uint8]uint8)
  24058. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d)
  24059. if changed {
  24060. *vp = v
  24061. }
  24062. } else {
  24063. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  24064. }
  24065. }
  24066. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  24067. v, changed := f.DecMapUint8Uint8V(*vp, true, d)
  24068. if changed {
  24069. *vp = v
  24070. }
  24071. }
  24072. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  24073. d *Decoder) (_ map[uint8]uint8, changed bool) {
  24074. dd, esep := d.d, d.hh.hasElemSeparators()
  24075. containerLen := dd.ReadMapStart()
  24076. if canChange && v == nil {
  24077. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24078. v = make(map[uint8]uint8, xlen)
  24079. changed = true
  24080. }
  24081. if containerLen == 0 {
  24082. dd.ReadMapEnd()
  24083. return v, changed
  24084. }
  24085. d.depthIncr()
  24086. var mk uint8
  24087. var mv uint8
  24088. hasLen := containerLen > 0
  24089. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24090. if esep {
  24091. dd.ReadMapElemKey()
  24092. }
  24093. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24094. if esep {
  24095. dd.ReadMapElemValue()
  24096. }
  24097. if dd.TryDecodeAsNil() {
  24098. if v == nil {
  24099. } else if d.h.DeleteOnNilMapValue {
  24100. delete(v, mk)
  24101. } else {
  24102. v[mk] = 0
  24103. }
  24104. continue
  24105. }
  24106. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24107. if v != nil {
  24108. v[mk] = mv
  24109. }
  24110. }
  24111. dd.ReadMapEnd()
  24112. d.depthDecr()
  24113. return v, changed
  24114. }
  24115. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  24116. if rv.Kind() == reflect.Ptr {
  24117. vp := rv2i(rv).(*map[uint8]uint16)
  24118. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d)
  24119. if changed {
  24120. *vp = v
  24121. }
  24122. } else {
  24123. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  24124. }
  24125. }
  24126. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  24127. v, changed := f.DecMapUint8Uint16V(*vp, true, d)
  24128. if changed {
  24129. *vp = v
  24130. }
  24131. }
  24132. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  24133. d *Decoder) (_ map[uint8]uint16, changed bool) {
  24134. dd, esep := d.d, d.hh.hasElemSeparators()
  24135. containerLen := dd.ReadMapStart()
  24136. if canChange && v == nil {
  24137. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24138. v = make(map[uint8]uint16, xlen)
  24139. changed = true
  24140. }
  24141. if containerLen == 0 {
  24142. dd.ReadMapEnd()
  24143. return v, changed
  24144. }
  24145. d.depthIncr()
  24146. var mk uint8
  24147. var mv uint16
  24148. hasLen := containerLen > 0
  24149. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24150. if esep {
  24151. dd.ReadMapElemKey()
  24152. }
  24153. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24154. if esep {
  24155. dd.ReadMapElemValue()
  24156. }
  24157. if dd.TryDecodeAsNil() {
  24158. if v == nil {
  24159. } else if d.h.DeleteOnNilMapValue {
  24160. delete(v, mk)
  24161. } else {
  24162. v[mk] = 0
  24163. }
  24164. continue
  24165. }
  24166. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24167. if v != nil {
  24168. v[mk] = mv
  24169. }
  24170. }
  24171. dd.ReadMapEnd()
  24172. d.depthDecr()
  24173. return v, changed
  24174. }
  24175. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  24176. if rv.Kind() == reflect.Ptr {
  24177. vp := rv2i(rv).(*map[uint8]uint32)
  24178. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d)
  24179. if changed {
  24180. *vp = v
  24181. }
  24182. } else {
  24183. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  24184. }
  24185. }
  24186. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  24187. v, changed := f.DecMapUint8Uint32V(*vp, true, d)
  24188. if changed {
  24189. *vp = v
  24190. }
  24191. }
  24192. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  24193. d *Decoder) (_ map[uint8]uint32, changed bool) {
  24194. dd, esep := d.d, d.hh.hasElemSeparators()
  24195. containerLen := dd.ReadMapStart()
  24196. if canChange && v == nil {
  24197. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24198. v = make(map[uint8]uint32, xlen)
  24199. changed = true
  24200. }
  24201. if containerLen == 0 {
  24202. dd.ReadMapEnd()
  24203. return v, changed
  24204. }
  24205. d.depthIncr()
  24206. var mk uint8
  24207. var mv uint32
  24208. hasLen := containerLen > 0
  24209. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24210. if esep {
  24211. dd.ReadMapElemKey()
  24212. }
  24213. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24214. if esep {
  24215. dd.ReadMapElemValue()
  24216. }
  24217. if dd.TryDecodeAsNil() {
  24218. if v == nil {
  24219. } else if d.h.DeleteOnNilMapValue {
  24220. delete(v, mk)
  24221. } else {
  24222. v[mk] = 0
  24223. }
  24224. continue
  24225. }
  24226. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24227. if v != nil {
  24228. v[mk] = mv
  24229. }
  24230. }
  24231. dd.ReadMapEnd()
  24232. d.depthDecr()
  24233. return v, changed
  24234. }
  24235. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  24236. if rv.Kind() == reflect.Ptr {
  24237. vp := rv2i(rv).(*map[uint8]uint64)
  24238. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d)
  24239. if changed {
  24240. *vp = v
  24241. }
  24242. } else {
  24243. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  24244. }
  24245. }
  24246. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  24247. v, changed := f.DecMapUint8Uint64V(*vp, true, d)
  24248. if changed {
  24249. *vp = v
  24250. }
  24251. }
  24252. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  24253. d *Decoder) (_ map[uint8]uint64, changed bool) {
  24254. dd, esep := d.d, d.hh.hasElemSeparators()
  24255. containerLen := dd.ReadMapStart()
  24256. if canChange && v == nil {
  24257. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24258. v = make(map[uint8]uint64, xlen)
  24259. changed = true
  24260. }
  24261. if containerLen == 0 {
  24262. dd.ReadMapEnd()
  24263. return v, changed
  24264. }
  24265. d.depthIncr()
  24266. var mk uint8
  24267. var mv uint64
  24268. hasLen := containerLen > 0
  24269. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24270. if esep {
  24271. dd.ReadMapElemKey()
  24272. }
  24273. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24274. if esep {
  24275. dd.ReadMapElemValue()
  24276. }
  24277. if dd.TryDecodeAsNil() {
  24278. if v == nil {
  24279. } else if d.h.DeleteOnNilMapValue {
  24280. delete(v, mk)
  24281. } else {
  24282. v[mk] = 0
  24283. }
  24284. continue
  24285. }
  24286. mv = dd.DecodeUint64()
  24287. if v != nil {
  24288. v[mk] = mv
  24289. }
  24290. }
  24291. dd.ReadMapEnd()
  24292. d.depthDecr()
  24293. return v, changed
  24294. }
  24295. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  24296. if rv.Kind() == reflect.Ptr {
  24297. vp := rv2i(rv).(*map[uint8]uintptr)
  24298. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d)
  24299. if changed {
  24300. *vp = v
  24301. }
  24302. } else {
  24303. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  24304. }
  24305. }
  24306. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  24307. v, changed := f.DecMapUint8UintptrV(*vp, true, d)
  24308. if changed {
  24309. *vp = v
  24310. }
  24311. }
  24312. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  24313. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  24314. dd, esep := d.d, d.hh.hasElemSeparators()
  24315. containerLen := dd.ReadMapStart()
  24316. if canChange && v == nil {
  24317. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24318. v = make(map[uint8]uintptr, xlen)
  24319. changed = true
  24320. }
  24321. if containerLen == 0 {
  24322. dd.ReadMapEnd()
  24323. return v, changed
  24324. }
  24325. d.depthIncr()
  24326. var mk uint8
  24327. var mv uintptr
  24328. hasLen := containerLen > 0
  24329. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24330. if esep {
  24331. dd.ReadMapElemKey()
  24332. }
  24333. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24334. if esep {
  24335. dd.ReadMapElemValue()
  24336. }
  24337. if dd.TryDecodeAsNil() {
  24338. if v == nil {
  24339. } else if d.h.DeleteOnNilMapValue {
  24340. delete(v, mk)
  24341. } else {
  24342. v[mk] = 0
  24343. }
  24344. continue
  24345. }
  24346. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24347. if v != nil {
  24348. v[mk] = mv
  24349. }
  24350. }
  24351. dd.ReadMapEnd()
  24352. d.depthDecr()
  24353. return v, changed
  24354. }
  24355. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  24356. if rv.Kind() == reflect.Ptr {
  24357. vp := rv2i(rv).(*map[uint8]int)
  24358. v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d)
  24359. if changed {
  24360. *vp = v
  24361. }
  24362. } else {
  24363. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  24364. }
  24365. }
  24366. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  24367. v, changed := f.DecMapUint8IntV(*vp, true, d)
  24368. if changed {
  24369. *vp = v
  24370. }
  24371. }
  24372. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  24373. d *Decoder) (_ map[uint8]int, changed bool) {
  24374. dd, esep := d.d, d.hh.hasElemSeparators()
  24375. containerLen := dd.ReadMapStart()
  24376. if canChange && v == nil {
  24377. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24378. v = make(map[uint8]int, xlen)
  24379. changed = true
  24380. }
  24381. if containerLen == 0 {
  24382. dd.ReadMapEnd()
  24383. return v, changed
  24384. }
  24385. d.depthIncr()
  24386. var mk uint8
  24387. var mv int
  24388. hasLen := containerLen > 0
  24389. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24390. if esep {
  24391. dd.ReadMapElemKey()
  24392. }
  24393. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24394. if esep {
  24395. dd.ReadMapElemValue()
  24396. }
  24397. if dd.TryDecodeAsNil() {
  24398. if v == nil {
  24399. } else if d.h.DeleteOnNilMapValue {
  24400. delete(v, mk)
  24401. } else {
  24402. v[mk] = 0
  24403. }
  24404. continue
  24405. }
  24406. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  24407. if v != nil {
  24408. v[mk] = mv
  24409. }
  24410. }
  24411. dd.ReadMapEnd()
  24412. d.depthDecr()
  24413. return v, changed
  24414. }
  24415. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  24416. if rv.Kind() == reflect.Ptr {
  24417. vp := rv2i(rv).(*map[uint8]int8)
  24418. v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d)
  24419. if changed {
  24420. *vp = v
  24421. }
  24422. } else {
  24423. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  24424. }
  24425. }
  24426. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  24427. v, changed := f.DecMapUint8Int8V(*vp, true, d)
  24428. if changed {
  24429. *vp = v
  24430. }
  24431. }
  24432. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  24433. d *Decoder) (_ map[uint8]int8, changed bool) {
  24434. dd, esep := d.d, d.hh.hasElemSeparators()
  24435. containerLen := dd.ReadMapStart()
  24436. if canChange && v == nil {
  24437. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24438. v = make(map[uint8]int8, xlen)
  24439. changed = true
  24440. }
  24441. if containerLen == 0 {
  24442. dd.ReadMapEnd()
  24443. return v, changed
  24444. }
  24445. d.depthIncr()
  24446. var mk uint8
  24447. var mv int8
  24448. hasLen := containerLen > 0
  24449. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24450. if esep {
  24451. dd.ReadMapElemKey()
  24452. }
  24453. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24454. if esep {
  24455. dd.ReadMapElemValue()
  24456. }
  24457. if dd.TryDecodeAsNil() {
  24458. if v == nil {
  24459. } else if d.h.DeleteOnNilMapValue {
  24460. delete(v, mk)
  24461. } else {
  24462. v[mk] = 0
  24463. }
  24464. continue
  24465. }
  24466. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  24467. if v != nil {
  24468. v[mk] = mv
  24469. }
  24470. }
  24471. dd.ReadMapEnd()
  24472. d.depthDecr()
  24473. return v, changed
  24474. }
  24475. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  24476. if rv.Kind() == reflect.Ptr {
  24477. vp := rv2i(rv).(*map[uint8]int16)
  24478. v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d)
  24479. if changed {
  24480. *vp = v
  24481. }
  24482. } else {
  24483. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  24484. }
  24485. }
  24486. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  24487. v, changed := f.DecMapUint8Int16V(*vp, true, d)
  24488. if changed {
  24489. *vp = v
  24490. }
  24491. }
  24492. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  24493. d *Decoder) (_ map[uint8]int16, changed bool) {
  24494. dd, esep := d.d, d.hh.hasElemSeparators()
  24495. containerLen := dd.ReadMapStart()
  24496. if canChange && v == nil {
  24497. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24498. v = make(map[uint8]int16, xlen)
  24499. changed = true
  24500. }
  24501. if containerLen == 0 {
  24502. dd.ReadMapEnd()
  24503. return v, changed
  24504. }
  24505. d.depthIncr()
  24506. var mk uint8
  24507. var mv int16
  24508. hasLen := containerLen > 0
  24509. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24510. if esep {
  24511. dd.ReadMapElemKey()
  24512. }
  24513. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24514. if esep {
  24515. dd.ReadMapElemValue()
  24516. }
  24517. if dd.TryDecodeAsNil() {
  24518. if v == nil {
  24519. } else if d.h.DeleteOnNilMapValue {
  24520. delete(v, mk)
  24521. } else {
  24522. v[mk] = 0
  24523. }
  24524. continue
  24525. }
  24526. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  24527. if v != nil {
  24528. v[mk] = mv
  24529. }
  24530. }
  24531. dd.ReadMapEnd()
  24532. d.depthDecr()
  24533. return v, changed
  24534. }
  24535. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  24536. if rv.Kind() == reflect.Ptr {
  24537. vp := rv2i(rv).(*map[uint8]int32)
  24538. v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d)
  24539. if changed {
  24540. *vp = v
  24541. }
  24542. } else {
  24543. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  24544. }
  24545. }
  24546. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  24547. v, changed := f.DecMapUint8Int32V(*vp, true, d)
  24548. if changed {
  24549. *vp = v
  24550. }
  24551. }
  24552. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  24553. d *Decoder) (_ map[uint8]int32, changed bool) {
  24554. dd, esep := d.d, d.hh.hasElemSeparators()
  24555. containerLen := dd.ReadMapStart()
  24556. if canChange && v == nil {
  24557. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24558. v = make(map[uint8]int32, xlen)
  24559. changed = true
  24560. }
  24561. if containerLen == 0 {
  24562. dd.ReadMapEnd()
  24563. return v, changed
  24564. }
  24565. d.depthIncr()
  24566. var mk uint8
  24567. var mv int32
  24568. hasLen := containerLen > 0
  24569. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24570. if esep {
  24571. dd.ReadMapElemKey()
  24572. }
  24573. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24574. if esep {
  24575. dd.ReadMapElemValue()
  24576. }
  24577. if dd.TryDecodeAsNil() {
  24578. if v == nil {
  24579. } else if d.h.DeleteOnNilMapValue {
  24580. delete(v, mk)
  24581. } else {
  24582. v[mk] = 0
  24583. }
  24584. continue
  24585. }
  24586. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  24587. if v != nil {
  24588. v[mk] = mv
  24589. }
  24590. }
  24591. dd.ReadMapEnd()
  24592. d.depthDecr()
  24593. return v, changed
  24594. }
  24595. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  24596. if rv.Kind() == reflect.Ptr {
  24597. vp := rv2i(rv).(*map[uint8]int64)
  24598. v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d)
  24599. if changed {
  24600. *vp = v
  24601. }
  24602. } else {
  24603. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  24604. }
  24605. }
  24606. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  24607. v, changed := f.DecMapUint8Int64V(*vp, true, d)
  24608. if changed {
  24609. *vp = v
  24610. }
  24611. }
  24612. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  24613. d *Decoder) (_ map[uint8]int64, changed bool) {
  24614. dd, esep := d.d, d.hh.hasElemSeparators()
  24615. containerLen := dd.ReadMapStart()
  24616. if canChange && v == nil {
  24617. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24618. v = make(map[uint8]int64, xlen)
  24619. changed = true
  24620. }
  24621. if containerLen == 0 {
  24622. dd.ReadMapEnd()
  24623. return v, changed
  24624. }
  24625. d.depthIncr()
  24626. var mk uint8
  24627. var mv int64
  24628. hasLen := containerLen > 0
  24629. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24630. if esep {
  24631. dd.ReadMapElemKey()
  24632. }
  24633. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24634. if esep {
  24635. dd.ReadMapElemValue()
  24636. }
  24637. if dd.TryDecodeAsNil() {
  24638. if v == nil {
  24639. } else if d.h.DeleteOnNilMapValue {
  24640. delete(v, mk)
  24641. } else {
  24642. v[mk] = 0
  24643. }
  24644. continue
  24645. }
  24646. mv = dd.DecodeInt64()
  24647. if v != nil {
  24648. v[mk] = mv
  24649. }
  24650. }
  24651. dd.ReadMapEnd()
  24652. d.depthDecr()
  24653. return v, changed
  24654. }
  24655. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  24656. if rv.Kind() == reflect.Ptr {
  24657. vp := rv2i(rv).(*map[uint8]float32)
  24658. v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d)
  24659. if changed {
  24660. *vp = v
  24661. }
  24662. } else {
  24663. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  24664. }
  24665. }
  24666. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  24667. v, changed := f.DecMapUint8Float32V(*vp, true, d)
  24668. if changed {
  24669. *vp = v
  24670. }
  24671. }
  24672. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  24673. d *Decoder) (_ map[uint8]float32, changed bool) {
  24674. dd, esep := d.d, d.hh.hasElemSeparators()
  24675. containerLen := dd.ReadMapStart()
  24676. if canChange && v == nil {
  24677. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24678. v = make(map[uint8]float32, xlen)
  24679. changed = true
  24680. }
  24681. if containerLen == 0 {
  24682. dd.ReadMapEnd()
  24683. return v, changed
  24684. }
  24685. d.depthIncr()
  24686. var mk uint8
  24687. var mv float32
  24688. hasLen := containerLen > 0
  24689. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24690. if esep {
  24691. dd.ReadMapElemKey()
  24692. }
  24693. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24694. if esep {
  24695. dd.ReadMapElemValue()
  24696. }
  24697. if dd.TryDecodeAsNil() {
  24698. if v == nil {
  24699. } else if d.h.DeleteOnNilMapValue {
  24700. delete(v, mk)
  24701. } else {
  24702. v[mk] = 0
  24703. }
  24704. continue
  24705. }
  24706. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  24707. if v != nil {
  24708. v[mk] = mv
  24709. }
  24710. }
  24711. dd.ReadMapEnd()
  24712. d.depthDecr()
  24713. return v, changed
  24714. }
  24715. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  24716. if rv.Kind() == reflect.Ptr {
  24717. vp := rv2i(rv).(*map[uint8]float64)
  24718. v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d)
  24719. if changed {
  24720. *vp = v
  24721. }
  24722. } else {
  24723. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  24724. }
  24725. }
  24726. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  24727. v, changed := f.DecMapUint8Float64V(*vp, true, d)
  24728. if changed {
  24729. *vp = v
  24730. }
  24731. }
  24732. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  24733. d *Decoder) (_ map[uint8]float64, changed bool) {
  24734. dd, esep := d.d, d.hh.hasElemSeparators()
  24735. containerLen := dd.ReadMapStart()
  24736. if canChange && v == nil {
  24737. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24738. v = make(map[uint8]float64, xlen)
  24739. changed = true
  24740. }
  24741. if containerLen == 0 {
  24742. dd.ReadMapEnd()
  24743. return v, changed
  24744. }
  24745. d.depthIncr()
  24746. var mk uint8
  24747. var mv float64
  24748. hasLen := containerLen > 0
  24749. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24750. if esep {
  24751. dd.ReadMapElemKey()
  24752. }
  24753. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24754. if esep {
  24755. dd.ReadMapElemValue()
  24756. }
  24757. if dd.TryDecodeAsNil() {
  24758. if v == nil {
  24759. } else if d.h.DeleteOnNilMapValue {
  24760. delete(v, mk)
  24761. } else {
  24762. v[mk] = 0
  24763. }
  24764. continue
  24765. }
  24766. mv = dd.DecodeFloat64()
  24767. if v != nil {
  24768. v[mk] = mv
  24769. }
  24770. }
  24771. dd.ReadMapEnd()
  24772. d.depthDecr()
  24773. return v, changed
  24774. }
  24775. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  24776. if rv.Kind() == reflect.Ptr {
  24777. vp := rv2i(rv).(*map[uint8]bool)
  24778. v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d)
  24779. if changed {
  24780. *vp = v
  24781. }
  24782. } else {
  24783. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  24784. }
  24785. }
  24786. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  24787. v, changed := f.DecMapUint8BoolV(*vp, true, d)
  24788. if changed {
  24789. *vp = v
  24790. }
  24791. }
  24792. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  24793. d *Decoder) (_ map[uint8]bool, changed bool) {
  24794. dd, esep := d.d, d.hh.hasElemSeparators()
  24795. containerLen := dd.ReadMapStart()
  24796. if canChange && v == nil {
  24797. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24798. v = make(map[uint8]bool, xlen)
  24799. changed = true
  24800. }
  24801. if containerLen == 0 {
  24802. dd.ReadMapEnd()
  24803. return v, changed
  24804. }
  24805. d.depthIncr()
  24806. var mk uint8
  24807. var mv bool
  24808. hasLen := containerLen > 0
  24809. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24810. if esep {
  24811. dd.ReadMapElemKey()
  24812. }
  24813. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24814. if esep {
  24815. dd.ReadMapElemValue()
  24816. }
  24817. if dd.TryDecodeAsNil() {
  24818. if v == nil {
  24819. } else if d.h.DeleteOnNilMapValue {
  24820. delete(v, mk)
  24821. } else {
  24822. v[mk] = false
  24823. }
  24824. continue
  24825. }
  24826. mv = dd.DecodeBool()
  24827. if v != nil {
  24828. v[mk] = mv
  24829. }
  24830. }
  24831. dd.ReadMapEnd()
  24832. d.depthDecr()
  24833. return v, changed
  24834. }
  24835. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  24836. if rv.Kind() == reflect.Ptr {
  24837. vp := rv2i(rv).(*map[uint16]interface{})
  24838. v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d)
  24839. if changed {
  24840. *vp = v
  24841. }
  24842. } else {
  24843. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  24844. }
  24845. }
  24846. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  24847. v, changed := f.DecMapUint16IntfV(*vp, true, d)
  24848. if changed {
  24849. *vp = v
  24850. }
  24851. }
  24852. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  24853. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  24854. dd, esep := d.d, d.hh.hasElemSeparators()
  24855. containerLen := dd.ReadMapStart()
  24856. if canChange && v == nil {
  24857. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24858. v = make(map[uint16]interface{}, xlen)
  24859. changed = true
  24860. }
  24861. if containerLen == 0 {
  24862. dd.ReadMapEnd()
  24863. return v, changed
  24864. }
  24865. d.depthIncr()
  24866. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  24867. var mk uint16
  24868. var mv interface{}
  24869. hasLen := containerLen > 0
  24870. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24871. if esep {
  24872. dd.ReadMapElemKey()
  24873. }
  24874. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24875. if esep {
  24876. dd.ReadMapElemValue()
  24877. }
  24878. if dd.TryDecodeAsNil() {
  24879. if v == nil {
  24880. } else if d.h.DeleteOnNilMapValue {
  24881. delete(v, mk)
  24882. } else {
  24883. v[mk] = nil
  24884. }
  24885. continue
  24886. }
  24887. if mapGet {
  24888. mv = v[mk]
  24889. } else {
  24890. mv = nil
  24891. }
  24892. d.decode(&mv)
  24893. if v != nil {
  24894. v[mk] = mv
  24895. }
  24896. }
  24897. dd.ReadMapEnd()
  24898. d.depthDecr()
  24899. return v, changed
  24900. }
  24901. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  24902. if rv.Kind() == reflect.Ptr {
  24903. vp := rv2i(rv).(*map[uint16]string)
  24904. v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d)
  24905. if changed {
  24906. *vp = v
  24907. }
  24908. } else {
  24909. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  24910. }
  24911. }
  24912. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  24913. v, changed := f.DecMapUint16StringV(*vp, true, d)
  24914. if changed {
  24915. *vp = v
  24916. }
  24917. }
  24918. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  24919. d *Decoder) (_ map[uint16]string, changed bool) {
  24920. dd, esep := d.d, d.hh.hasElemSeparators()
  24921. containerLen := dd.ReadMapStart()
  24922. if canChange && v == nil {
  24923. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24924. v = make(map[uint16]string, xlen)
  24925. changed = true
  24926. }
  24927. if containerLen == 0 {
  24928. dd.ReadMapEnd()
  24929. return v, changed
  24930. }
  24931. d.depthIncr()
  24932. var mk uint16
  24933. var mv string
  24934. hasLen := containerLen > 0
  24935. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24936. if esep {
  24937. dd.ReadMapElemKey()
  24938. }
  24939. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24940. if esep {
  24941. dd.ReadMapElemValue()
  24942. }
  24943. if dd.TryDecodeAsNil() {
  24944. if v == nil {
  24945. } else if d.h.DeleteOnNilMapValue {
  24946. delete(v, mk)
  24947. } else {
  24948. v[mk] = ""
  24949. }
  24950. continue
  24951. }
  24952. mv = dd.DecodeString()
  24953. if v != nil {
  24954. v[mk] = mv
  24955. }
  24956. }
  24957. dd.ReadMapEnd()
  24958. d.depthDecr()
  24959. return v, changed
  24960. }
  24961. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  24962. if rv.Kind() == reflect.Ptr {
  24963. vp := rv2i(rv).(*map[uint16]uint)
  24964. v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d)
  24965. if changed {
  24966. *vp = v
  24967. }
  24968. } else {
  24969. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  24970. }
  24971. }
  24972. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  24973. v, changed := f.DecMapUint16UintV(*vp, true, d)
  24974. if changed {
  24975. *vp = v
  24976. }
  24977. }
  24978. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  24979. d *Decoder) (_ map[uint16]uint, changed bool) {
  24980. dd, esep := d.d, d.hh.hasElemSeparators()
  24981. containerLen := dd.ReadMapStart()
  24982. if canChange && v == nil {
  24983. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24984. v = make(map[uint16]uint, xlen)
  24985. changed = true
  24986. }
  24987. if containerLen == 0 {
  24988. dd.ReadMapEnd()
  24989. return v, changed
  24990. }
  24991. d.depthIncr()
  24992. var mk uint16
  24993. var mv uint
  24994. hasLen := containerLen > 0
  24995. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24996. if esep {
  24997. dd.ReadMapElemKey()
  24998. }
  24999. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25000. if esep {
  25001. dd.ReadMapElemValue()
  25002. }
  25003. if dd.TryDecodeAsNil() {
  25004. if v == nil {
  25005. } else if d.h.DeleteOnNilMapValue {
  25006. delete(v, mk)
  25007. } else {
  25008. v[mk] = 0
  25009. }
  25010. continue
  25011. }
  25012. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25013. if v != nil {
  25014. v[mk] = mv
  25015. }
  25016. }
  25017. dd.ReadMapEnd()
  25018. d.depthDecr()
  25019. return v, changed
  25020. }
  25021. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  25022. if rv.Kind() == reflect.Ptr {
  25023. vp := rv2i(rv).(*map[uint16]uint8)
  25024. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d)
  25025. if changed {
  25026. *vp = v
  25027. }
  25028. } else {
  25029. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  25030. }
  25031. }
  25032. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  25033. v, changed := f.DecMapUint16Uint8V(*vp, true, d)
  25034. if changed {
  25035. *vp = v
  25036. }
  25037. }
  25038. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  25039. d *Decoder) (_ map[uint16]uint8, changed bool) {
  25040. dd, esep := d.d, d.hh.hasElemSeparators()
  25041. containerLen := dd.ReadMapStart()
  25042. if canChange && v == nil {
  25043. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25044. v = make(map[uint16]uint8, xlen)
  25045. changed = true
  25046. }
  25047. if containerLen == 0 {
  25048. dd.ReadMapEnd()
  25049. return v, changed
  25050. }
  25051. d.depthIncr()
  25052. var mk uint16
  25053. var mv uint8
  25054. hasLen := containerLen > 0
  25055. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25056. if esep {
  25057. dd.ReadMapElemKey()
  25058. }
  25059. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25060. if esep {
  25061. dd.ReadMapElemValue()
  25062. }
  25063. if dd.TryDecodeAsNil() {
  25064. if v == nil {
  25065. } else if d.h.DeleteOnNilMapValue {
  25066. delete(v, mk)
  25067. } else {
  25068. v[mk] = 0
  25069. }
  25070. continue
  25071. }
  25072. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  25073. if v != nil {
  25074. v[mk] = mv
  25075. }
  25076. }
  25077. dd.ReadMapEnd()
  25078. d.depthDecr()
  25079. return v, changed
  25080. }
  25081. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  25082. if rv.Kind() == reflect.Ptr {
  25083. vp := rv2i(rv).(*map[uint16]uint16)
  25084. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d)
  25085. if changed {
  25086. *vp = v
  25087. }
  25088. } else {
  25089. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  25090. }
  25091. }
  25092. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  25093. v, changed := f.DecMapUint16Uint16V(*vp, true, d)
  25094. if changed {
  25095. *vp = v
  25096. }
  25097. }
  25098. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  25099. d *Decoder) (_ map[uint16]uint16, changed bool) {
  25100. dd, esep := d.d, d.hh.hasElemSeparators()
  25101. containerLen := dd.ReadMapStart()
  25102. if canChange && v == nil {
  25103. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25104. v = make(map[uint16]uint16, xlen)
  25105. changed = true
  25106. }
  25107. if containerLen == 0 {
  25108. dd.ReadMapEnd()
  25109. return v, changed
  25110. }
  25111. d.depthIncr()
  25112. var mk uint16
  25113. var mv uint16
  25114. hasLen := containerLen > 0
  25115. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25116. if esep {
  25117. dd.ReadMapElemKey()
  25118. }
  25119. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25120. if esep {
  25121. dd.ReadMapElemValue()
  25122. }
  25123. if dd.TryDecodeAsNil() {
  25124. if v == nil {
  25125. } else if d.h.DeleteOnNilMapValue {
  25126. delete(v, mk)
  25127. } else {
  25128. v[mk] = 0
  25129. }
  25130. continue
  25131. }
  25132. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25133. if v != nil {
  25134. v[mk] = mv
  25135. }
  25136. }
  25137. dd.ReadMapEnd()
  25138. d.depthDecr()
  25139. return v, changed
  25140. }
  25141. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  25142. if rv.Kind() == reflect.Ptr {
  25143. vp := rv2i(rv).(*map[uint16]uint32)
  25144. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d)
  25145. if changed {
  25146. *vp = v
  25147. }
  25148. } else {
  25149. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  25150. }
  25151. }
  25152. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  25153. v, changed := f.DecMapUint16Uint32V(*vp, true, d)
  25154. if changed {
  25155. *vp = v
  25156. }
  25157. }
  25158. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  25159. d *Decoder) (_ map[uint16]uint32, changed bool) {
  25160. dd, esep := d.d, d.hh.hasElemSeparators()
  25161. containerLen := dd.ReadMapStart()
  25162. if canChange && v == nil {
  25163. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25164. v = make(map[uint16]uint32, xlen)
  25165. changed = true
  25166. }
  25167. if containerLen == 0 {
  25168. dd.ReadMapEnd()
  25169. return v, changed
  25170. }
  25171. d.depthIncr()
  25172. var mk uint16
  25173. var mv uint32
  25174. hasLen := containerLen > 0
  25175. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25176. if esep {
  25177. dd.ReadMapElemKey()
  25178. }
  25179. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25180. if esep {
  25181. dd.ReadMapElemValue()
  25182. }
  25183. if dd.TryDecodeAsNil() {
  25184. if v == nil {
  25185. } else if d.h.DeleteOnNilMapValue {
  25186. delete(v, mk)
  25187. } else {
  25188. v[mk] = 0
  25189. }
  25190. continue
  25191. }
  25192. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25193. if v != nil {
  25194. v[mk] = mv
  25195. }
  25196. }
  25197. dd.ReadMapEnd()
  25198. d.depthDecr()
  25199. return v, changed
  25200. }
  25201. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  25202. if rv.Kind() == reflect.Ptr {
  25203. vp := rv2i(rv).(*map[uint16]uint64)
  25204. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d)
  25205. if changed {
  25206. *vp = v
  25207. }
  25208. } else {
  25209. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  25210. }
  25211. }
  25212. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  25213. v, changed := f.DecMapUint16Uint64V(*vp, true, d)
  25214. if changed {
  25215. *vp = v
  25216. }
  25217. }
  25218. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  25219. d *Decoder) (_ map[uint16]uint64, changed bool) {
  25220. dd, esep := d.d, d.hh.hasElemSeparators()
  25221. containerLen := dd.ReadMapStart()
  25222. if canChange && v == nil {
  25223. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25224. v = make(map[uint16]uint64, xlen)
  25225. changed = true
  25226. }
  25227. if containerLen == 0 {
  25228. dd.ReadMapEnd()
  25229. return v, changed
  25230. }
  25231. d.depthIncr()
  25232. var mk uint16
  25233. var mv uint64
  25234. hasLen := containerLen > 0
  25235. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25236. if esep {
  25237. dd.ReadMapElemKey()
  25238. }
  25239. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25240. if esep {
  25241. dd.ReadMapElemValue()
  25242. }
  25243. if dd.TryDecodeAsNil() {
  25244. if v == nil {
  25245. } else if d.h.DeleteOnNilMapValue {
  25246. delete(v, mk)
  25247. } else {
  25248. v[mk] = 0
  25249. }
  25250. continue
  25251. }
  25252. mv = dd.DecodeUint64()
  25253. if v != nil {
  25254. v[mk] = mv
  25255. }
  25256. }
  25257. dd.ReadMapEnd()
  25258. d.depthDecr()
  25259. return v, changed
  25260. }
  25261. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  25262. if rv.Kind() == reflect.Ptr {
  25263. vp := rv2i(rv).(*map[uint16]uintptr)
  25264. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d)
  25265. if changed {
  25266. *vp = v
  25267. }
  25268. } else {
  25269. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  25270. }
  25271. }
  25272. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  25273. v, changed := f.DecMapUint16UintptrV(*vp, true, d)
  25274. if changed {
  25275. *vp = v
  25276. }
  25277. }
  25278. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  25279. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  25280. dd, esep := d.d, d.hh.hasElemSeparators()
  25281. containerLen := dd.ReadMapStart()
  25282. if canChange && v == nil {
  25283. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25284. v = make(map[uint16]uintptr, xlen)
  25285. changed = true
  25286. }
  25287. if containerLen == 0 {
  25288. dd.ReadMapEnd()
  25289. return v, changed
  25290. }
  25291. d.depthIncr()
  25292. var mk uint16
  25293. var mv uintptr
  25294. hasLen := containerLen > 0
  25295. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25296. if esep {
  25297. dd.ReadMapElemKey()
  25298. }
  25299. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25300. if esep {
  25301. dd.ReadMapElemValue()
  25302. }
  25303. if dd.TryDecodeAsNil() {
  25304. if v == nil {
  25305. } else if d.h.DeleteOnNilMapValue {
  25306. delete(v, mk)
  25307. } else {
  25308. v[mk] = 0
  25309. }
  25310. continue
  25311. }
  25312. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25313. if v != nil {
  25314. v[mk] = mv
  25315. }
  25316. }
  25317. dd.ReadMapEnd()
  25318. d.depthDecr()
  25319. return v, changed
  25320. }
  25321. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  25322. if rv.Kind() == reflect.Ptr {
  25323. vp := rv2i(rv).(*map[uint16]int)
  25324. v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d)
  25325. if changed {
  25326. *vp = v
  25327. }
  25328. } else {
  25329. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  25330. }
  25331. }
  25332. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  25333. v, changed := f.DecMapUint16IntV(*vp, true, d)
  25334. if changed {
  25335. *vp = v
  25336. }
  25337. }
  25338. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  25339. d *Decoder) (_ map[uint16]int, changed bool) {
  25340. dd, esep := d.d, d.hh.hasElemSeparators()
  25341. containerLen := dd.ReadMapStart()
  25342. if canChange && v == nil {
  25343. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25344. v = make(map[uint16]int, xlen)
  25345. changed = true
  25346. }
  25347. if containerLen == 0 {
  25348. dd.ReadMapEnd()
  25349. return v, changed
  25350. }
  25351. d.depthIncr()
  25352. var mk uint16
  25353. var mv int
  25354. hasLen := containerLen > 0
  25355. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25356. if esep {
  25357. dd.ReadMapElemKey()
  25358. }
  25359. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25360. if esep {
  25361. dd.ReadMapElemValue()
  25362. }
  25363. if dd.TryDecodeAsNil() {
  25364. if v == nil {
  25365. } else if d.h.DeleteOnNilMapValue {
  25366. delete(v, mk)
  25367. } else {
  25368. v[mk] = 0
  25369. }
  25370. continue
  25371. }
  25372. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  25373. if v != nil {
  25374. v[mk] = mv
  25375. }
  25376. }
  25377. dd.ReadMapEnd()
  25378. d.depthDecr()
  25379. return v, changed
  25380. }
  25381. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  25382. if rv.Kind() == reflect.Ptr {
  25383. vp := rv2i(rv).(*map[uint16]int8)
  25384. v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d)
  25385. if changed {
  25386. *vp = v
  25387. }
  25388. } else {
  25389. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  25390. }
  25391. }
  25392. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  25393. v, changed := f.DecMapUint16Int8V(*vp, true, d)
  25394. if changed {
  25395. *vp = v
  25396. }
  25397. }
  25398. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  25399. d *Decoder) (_ map[uint16]int8, changed bool) {
  25400. dd, esep := d.d, d.hh.hasElemSeparators()
  25401. containerLen := dd.ReadMapStart()
  25402. if canChange && v == nil {
  25403. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25404. v = make(map[uint16]int8, xlen)
  25405. changed = true
  25406. }
  25407. if containerLen == 0 {
  25408. dd.ReadMapEnd()
  25409. return v, changed
  25410. }
  25411. d.depthIncr()
  25412. var mk uint16
  25413. var mv int8
  25414. hasLen := containerLen > 0
  25415. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25416. if esep {
  25417. dd.ReadMapElemKey()
  25418. }
  25419. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25420. if esep {
  25421. dd.ReadMapElemValue()
  25422. }
  25423. if dd.TryDecodeAsNil() {
  25424. if v == nil {
  25425. } else if d.h.DeleteOnNilMapValue {
  25426. delete(v, mk)
  25427. } else {
  25428. v[mk] = 0
  25429. }
  25430. continue
  25431. }
  25432. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  25433. if v != nil {
  25434. v[mk] = mv
  25435. }
  25436. }
  25437. dd.ReadMapEnd()
  25438. d.depthDecr()
  25439. return v, changed
  25440. }
  25441. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  25442. if rv.Kind() == reflect.Ptr {
  25443. vp := rv2i(rv).(*map[uint16]int16)
  25444. v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d)
  25445. if changed {
  25446. *vp = v
  25447. }
  25448. } else {
  25449. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  25450. }
  25451. }
  25452. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  25453. v, changed := f.DecMapUint16Int16V(*vp, true, d)
  25454. if changed {
  25455. *vp = v
  25456. }
  25457. }
  25458. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  25459. d *Decoder) (_ map[uint16]int16, changed bool) {
  25460. dd, esep := d.d, d.hh.hasElemSeparators()
  25461. containerLen := dd.ReadMapStart()
  25462. if canChange && v == nil {
  25463. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25464. v = make(map[uint16]int16, xlen)
  25465. changed = true
  25466. }
  25467. if containerLen == 0 {
  25468. dd.ReadMapEnd()
  25469. return v, changed
  25470. }
  25471. d.depthIncr()
  25472. var mk uint16
  25473. var mv int16
  25474. hasLen := containerLen > 0
  25475. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25476. if esep {
  25477. dd.ReadMapElemKey()
  25478. }
  25479. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25480. if esep {
  25481. dd.ReadMapElemValue()
  25482. }
  25483. if dd.TryDecodeAsNil() {
  25484. if v == nil {
  25485. } else if d.h.DeleteOnNilMapValue {
  25486. delete(v, mk)
  25487. } else {
  25488. v[mk] = 0
  25489. }
  25490. continue
  25491. }
  25492. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  25493. if v != nil {
  25494. v[mk] = mv
  25495. }
  25496. }
  25497. dd.ReadMapEnd()
  25498. d.depthDecr()
  25499. return v, changed
  25500. }
  25501. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  25502. if rv.Kind() == reflect.Ptr {
  25503. vp := rv2i(rv).(*map[uint16]int32)
  25504. v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d)
  25505. if changed {
  25506. *vp = v
  25507. }
  25508. } else {
  25509. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  25510. }
  25511. }
  25512. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  25513. v, changed := f.DecMapUint16Int32V(*vp, true, d)
  25514. if changed {
  25515. *vp = v
  25516. }
  25517. }
  25518. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  25519. d *Decoder) (_ map[uint16]int32, changed bool) {
  25520. dd, esep := d.d, d.hh.hasElemSeparators()
  25521. containerLen := dd.ReadMapStart()
  25522. if canChange && v == nil {
  25523. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25524. v = make(map[uint16]int32, xlen)
  25525. changed = true
  25526. }
  25527. if containerLen == 0 {
  25528. dd.ReadMapEnd()
  25529. return v, changed
  25530. }
  25531. d.depthIncr()
  25532. var mk uint16
  25533. var mv int32
  25534. hasLen := containerLen > 0
  25535. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25536. if esep {
  25537. dd.ReadMapElemKey()
  25538. }
  25539. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25540. if esep {
  25541. dd.ReadMapElemValue()
  25542. }
  25543. if dd.TryDecodeAsNil() {
  25544. if v == nil {
  25545. } else if d.h.DeleteOnNilMapValue {
  25546. delete(v, mk)
  25547. } else {
  25548. v[mk] = 0
  25549. }
  25550. continue
  25551. }
  25552. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  25553. if v != nil {
  25554. v[mk] = mv
  25555. }
  25556. }
  25557. dd.ReadMapEnd()
  25558. d.depthDecr()
  25559. return v, changed
  25560. }
  25561. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  25562. if rv.Kind() == reflect.Ptr {
  25563. vp := rv2i(rv).(*map[uint16]int64)
  25564. v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d)
  25565. if changed {
  25566. *vp = v
  25567. }
  25568. } else {
  25569. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  25570. }
  25571. }
  25572. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  25573. v, changed := f.DecMapUint16Int64V(*vp, true, d)
  25574. if changed {
  25575. *vp = v
  25576. }
  25577. }
  25578. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  25579. d *Decoder) (_ map[uint16]int64, changed bool) {
  25580. dd, esep := d.d, d.hh.hasElemSeparators()
  25581. containerLen := dd.ReadMapStart()
  25582. if canChange && v == nil {
  25583. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25584. v = make(map[uint16]int64, xlen)
  25585. changed = true
  25586. }
  25587. if containerLen == 0 {
  25588. dd.ReadMapEnd()
  25589. return v, changed
  25590. }
  25591. d.depthIncr()
  25592. var mk uint16
  25593. var mv int64
  25594. hasLen := containerLen > 0
  25595. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25596. if esep {
  25597. dd.ReadMapElemKey()
  25598. }
  25599. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25600. if esep {
  25601. dd.ReadMapElemValue()
  25602. }
  25603. if dd.TryDecodeAsNil() {
  25604. if v == nil {
  25605. } else if d.h.DeleteOnNilMapValue {
  25606. delete(v, mk)
  25607. } else {
  25608. v[mk] = 0
  25609. }
  25610. continue
  25611. }
  25612. mv = dd.DecodeInt64()
  25613. if v != nil {
  25614. v[mk] = mv
  25615. }
  25616. }
  25617. dd.ReadMapEnd()
  25618. d.depthDecr()
  25619. return v, changed
  25620. }
  25621. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  25622. if rv.Kind() == reflect.Ptr {
  25623. vp := rv2i(rv).(*map[uint16]float32)
  25624. v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d)
  25625. if changed {
  25626. *vp = v
  25627. }
  25628. } else {
  25629. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  25630. }
  25631. }
  25632. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  25633. v, changed := f.DecMapUint16Float32V(*vp, true, d)
  25634. if changed {
  25635. *vp = v
  25636. }
  25637. }
  25638. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  25639. d *Decoder) (_ map[uint16]float32, changed bool) {
  25640. dd, esep := d.d, d.hh.hasElemSeparators()
  25641. containerLen := dd.ReadMapStart()
  25642. if canChange && v == nil {
  25643. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25644. v = make(map[uint16]float32, xlen)
  25645. changed = true
  25646. }
  25647. if containerLen == 0 {
  25648. dd.ReadMapEnd()
  25649. return v, changed
  25650. }
  25651. d.depthIncr()
  25652. var mk uint16
  25653. var mv float32
  25654. hasLen := containerLen > 0
  25655. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25656. if esep {
  25657. dd.ReadMapElemKey()
  25658. }
  25659. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25660. if esep {
  25661. dd.ReadMapElemValue()
  25662. }
  25663. if dd.TryDecodeAsNil() {
  25664. if v == nil {
  25665. } else if d.h.DeleteOnNilMapValue {
  25666. delete(v, mk)
  25667. } else {
  25668. v[mk] = 0
  25669. }
  25670. continue
  25671. }
  25672. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  25673. if v != nil {
  25674. v[mk] = mv
  25675. }
  25676. }
  25677. dd.ReadMapEnd()
  25678. d.depthDecr()
  25679. return v, changed
  25680. }
  25681. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  25682. if rv.Kind() == reflect.Ptr {
  25683. vp := rv2i(rv).(*map[uint16]float64)
  25684. v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d)
  25685. if changed {
  25686. *vp = v
  25687. }
  25688. } else {
  25689. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  25690. }
  25691. }
  25692. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  25693. v, changed := f.DecMapUint16Float64V(*vp, true, d)
  25694. if changed {
  25695. *vp = v
  25696. }
  25697. }
  25698. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  25699. d *Decoder) (_ map[uint16]float64, changed bool) {
  25700. dd, esep := d.d, d.hh.hasElemSeparators()
  25701. containerLen := dd.ReadMapStart()
  25702. if canChange && v == nil {
  25703. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25704. v = make(map[uint16]float64, xlen)
  25705. changed = true
  25706. }
  25707. if containerLen == 0 {
  25708. dd.ReadMapEnd()
  25709. return v, changed
  25710. }
  25711. d.depthIncr()
  25712. var mk uint16
  25713. var mv float64
  25714. hasLen := containerLen > 0
  25715. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25716. if esep {
  25717. dd.ReadMapElemKey()
  25718. }
  25719. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25720. if esep {
  25721. dd.ReadMapElemValue()
  25722. }
  25723. if dd.TryDecodeAsNil() {
  25724. if v == nil {
  25725. } else if d.h.DeleteOnNilMapValue {
  25726. delete(v, mk)
  25727. } else {
  25728. v[mk] = 0
  25729. }
  25730. continue
  25731. }
  25732. mv = dd.DecodeFloat64()
  25733. if v != nil {
  25734. v[mk] = mv
  25735. }
  25736. }
  25737. dd.ReadMapEnd()
  25738. d.depthDecr()
  25739. return v, changed
  25740. }
  25741. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  25742. if rv.Kind() == reflect.Ptr {
  25743. vp := rv2i(rv).(*map[uint16]bool)
  25744. v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d)
  25745. if changed {
  25746. *vp = v
  25747. }
  25748. } else {
  25749. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  25750. }
  25751. }
  25752. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  25753. v, changed := f.DecMapUint16BoolV(*vp, true, d)
  25754. if changed {
  25755. *vp = v
  25756. }
  25757. }
  25758. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  25759. d *Decoder) (_ map[uint16]bool, changed bool) {
  25760. dd, esep := d.d, d.hh.hasElemSeparators()
  25761. containerLen := dd.ReadMapStart()
  25762. if canChange && v == nil {
  25763. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25764. v = make(map[uint16]bool, xlen)
  25765. changed = true
  25766. }
  25767. if containerLen == 0 {
  25768. dd.ReadMapEnd()
  25769. return v, changed
  25770. }
  25771. d.depthIncr()
  25772. var mk uint16
  25773. var mv bool
  25774. hasLen := containerLen > 0
  25775. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25776. if esep {
  25777. dd.ReadMapElemKey()
  25778. }
  25779. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25780. if esep {
  25781. dd.ReadMapElemValue()
  25782. }
  25783. if dd.TryDecodeAsNil() {
  25784. if v == nil {
  25785. } else if d.h.DeleteOnNilMapValue {
  25786. delete(v, mk)
  25787. } else {
  25788. v[mk] = false
  25789. }
  25790. continue
  25791. }
  25792. mv = dd.DecodeBool()
  25793. if v != nil {
  25794. v[mk] = mv
  25795. }
  25796. }
  25797. dd.ReadMapEnd()
  25798. d.depthDecr()
  25799. return v, changed
  25800. }
  25801. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  25802. if rv.Kind() == reflect.Ptr {
  25803. vp := rv2i(rv).(*map[uint32]interface{})
  25804. v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d)
  25805. if changed {
  25806. *vp = v
  25807. }
  25808. } else {
  25809. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  25810. }
  25811. }
  25812. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  25813. v, changed := f.DecMapUint32IntfV(*vp, true, d)
  25814. if changed {
  25815. *vp = v
  25816. }
  25817. }
  25818. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  25819. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  25820. dd, esep := d.d, d.hh.hasElemSeparators()
  25821. containerLen := dd.ReadMapStart()
  25822. if canChange && v == nil {
  25823. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25824. v = make(map[uint32]interface{}, xlen)
  25825. changed = true
  25826. }
  25827. if containerLen == 0 {
  25828. dd.ReadMapEnd()
  25829. return v, changed
  25830. }
  25831. d.depthIncr()
  25832. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  25833. var mk uint32
  25834. var mv interface{}
  25835. hasLen := containerLen > 0
  25836. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25837. if esep {
  25838. dd.ReadMapElemKey()
  25839. }
  25840. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25841. if esep {
  25842. dd.ReadMapElemValue()
  25843. }
  25844. if dd.TryDecodeAsNil() {
  25845. if v == nil {
  25846. } else if d.h.DeleteOnNilMapValue {
  25847. delete(v, mk)
  25848. } else {
  25849. v[mk] = nil
  25850. }
  25851. continue
  25852. }
  25853. if mapGet {
  25854. mv = v[mk]
  25855. } else {
  25856. mv = nil
  25857. }
  25858. d.decode(&mv)
  25859. if v != nil {
  25860. v[mk] = mv
  25861. }
  25862. }
  25863. dd.ReadMapEnd()
  25864. d.depthDecr()
  25865. return v, changed
  25866. }
  25867. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  25868. if rv.Kind() == reflect.Ptr {
  25869. vp := rv2i(rv).(*map[uint32]string)
  25870. v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d)
  25871. if changed {
  25872. *vp = v
  25873. }
  25874. } else {
  25875. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  25876. }
  25877. }
  25878. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  25879. v, changed := f.DecMapUint32StringV(*vp, true, d)
  25880. if changed {
  25881. *vp = v
  25882. }
  25883. }
  25884. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  25885. d *Decoder) (_ map[uint32]string, changed bool) {
  25886. dd, esep := d.d, d.hh.hasElemSeparators()
  25887. containerLen := dd.ReadMapStart()
  25888. if canChange && v == nil {
  25889. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25890. v = make(map[uint32]string, xlen)
  25891. changed = true
  25892. }
  25893. if containerLen == 0 {
  25894. dd.ReadMapEnd()
  25895. return v, changed
  25896. }
  25897. d.depthIncr()
  25898. var mk uint32
  25899. var mv string
  25900. hasLen := containerLen > 0
  25901. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25902. if esep {
  25903. dd.ReadMapElemKey()
  25904. }
  25905. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25906. if esep {
  25907. dd.ReadMapElemValue()
  25908. }
  25909. if dd.TryDecodeAsNil() {
  25910. if v == nil {
  25911. } else if d.h.DeleteOnNilMapValue {
  25912. delete(v, mk)
  25913. } else {
  25914. v[mk] = ""
  25915. }
  25916. continue
  25917. }
  25918. mv = dd.DecodeString()
  25919. if v != nil {
  25920. v[mk] = mv
  25921. }
  25922. }
  25923. dd.ReadMapEnd()
  25924. d.depthDecr()
  25925. return v, changed
  25926. }
  25927. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  25928. if rv.Kind() == reflect.Ptr {
  25929. vp := rv2i(rv).(*map[uint32]uint)
  25930. v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d)
  25931. if changed {
  25932. *vp = v
  25933. }
  25934. } else {
  25935. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  25936. }
  25937. }
  25938. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  25939. v, changed := f.DecMapUint32UintV(*vp, true, d)
  25940. if changed {
  25941. *vp = v
  25942. }
  25943. }
  25944. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  25945. d *Decoder) (_ map[uint32]uint, changed bool) {
  25946. dd, esep := d.d, d.hh.hasElemSeparators()
  25947. containerLen := dd.ReadMapStart()
  25948. if canChange && v == nil {
  25949. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25950. v = make(map[uint32]uint, xlen)
  25951. changed = true
  25952. }
  25953. if containerLen == 0 {
  25954. dd.ReadMapEnd()
  25955. return v, changed
  25956. }
  25957. d.depthIncr()
  25958. var mk uint32
  25959. var mv uint
  25960. hasLen := containerLen > 0
  25961. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25962. if esep {
  25963. dd.ReadMapElemKey()
  25964. }
  25965. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25966. if esep {
  25967. dd.ReadMapElemValue()
  25968. }
  25969. if dd.TryDecodeAsNil() {
  25970. if v == nil {
  25971. } else if d.h.DeleteOnNilMapValue {
  25972. delete(v, mk)
  25973. } else {
  25974. v[mk] = 0
  25975. }
  25976. continue
  25977. }
  25978. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25979. if v != nil {
  25980. v[mk] = mv
  25981. }
  25982. }
  25983. dd.ReadMapEnd()
  25984. d.depthDecr()
  25985. return v, changed
  25986. }
  25987. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  25988. if rv.Kind() == reflect.Ptr {
  25989. vp := rv2i(rv).(*map[uint32]uint8)
  25990. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d)
  25991. if changed {
  25992. *vp = v
  25993. }
  25994. } else {
  25995. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  25996. }
  25997. }
  25998. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  25999. v, changed := f.DecMapUint32Uint8V(*vp, true, d)
  26000. if changed {
  26001. *vp = v
  26002. }
  26003. }
  26004. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  26005. d *Decoder) (_ map[uint32]uint8, changed bool) {
  26006. dd, esep := d.d, d.hh.hasElemSeparators()
  26007. containerLen := dd.ReadMapStart()
  26008. if canChange && v == nil {
  26009. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26010. v = make(map[uint32]uint8, xlen)
  26011. changed = true
  26012. }
  26013. if containerLen == 0 {
  26014. dd.ReadMapEnd()
  26015. return v, changed
  26016. }
  26017. d.depthIncr()
  26018. var mk uint32
  26019. var mv uint8
  26020. hasLen := containerLen > 0
  26021. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26022. if esep {
  26023. dd.ReadMapElemKey()
  26024. }
  26025. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26026. if esep {
  26027. dd.ReadMapElemValue()
  26028. }
  26029. if dd.TryDecodeAsNil() {
  26030. if v == nil {
  26031. } else if d.h.DeleteOnNilMapValue {
  26032. delete(v, mk)
  26033. } else {
  26034. v[mk] = 0
  26035. }
  26036. continue
  26037. }
  26038. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  26039. if v != nil {
  26040. v[mk] = mv
  26041. }
  26042. }
  26043. dd.ReadMapEnd()
  26044. d.depthDecr()
  26045. return v, changed
  26046. }
  26047. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  26048. if rv.Kind() == reflect.Ptr {
  26049. vp := rv2i(rv).(*map[uint32]uint16)
  26050. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d)
  26051. if changed {
  26052. *vp = v
  26053. }
  26054. } else {
  26055. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  26056. }
  26057. }
  26058. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  26059. v, changed := f.DecMapUint32Uint16V(*vp, true, d)
  26060. if changed {
  26061. *vp = v
  26062. }
  26063. }
  26064. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  26065. d *Decoder) (_ map[uint32]uint16, changed bool) {
  26066. dd, esep := d.d, d.hh.hasElemSeparators()
  26067. containerLen := dd.ReadMapStart()
  26068. if canChange && v == nil {
  26069. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26070. v = make(map[uint32]uint16, xlen)
  26071. changed = true
  26072. }
  26073. if containerLen == 0 {
  26074. dd.ReadMapEnd()
  26075. return v, changed
  26076. }
  26077. d.depthIncr()
  26078. var mk uint32
  26079. var mv uint16
  26080. hasLen := containerLen > 0
  26081. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26082. if esep {
  26083. dd.ReadMapElemKey()
  26084. }
  26085. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26086. if esep {
  26087. dd.ReadMapElemValue()
  26088. }
  26089. if dd.TryDecodeAsNil() {
  26090. if v == nil {
  26091. } else if d.h.DeleteOnNilMapValue {
  26092. delete(v, mk)
  26093. } else {
  26094. v[mk] = 0
  26095. }
  26096. continue
  26097. }
  26098. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  26099. if v != nil {
  26100. v[mk] = mv
  26101. }
  26102. }
  26103. dd.ReadMapEnd()
  26104. d.depthDecr()
  26105. return v, changed
  26106. }
  26107. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  26108. if rv.Kind() == reflect.Ptr {
  26109. vp := rv2i(rv).(*map[uint32]uint32)
  26110. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d)
  26111. if changed {
  26112. *vp = v
  26113. }
  26114. } else {
  26115. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  26116. }
  26117. }
  26118. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  26119. v, changed := f.DecMapUint32Uint32V(*vp, true, d)
  26120. if changed {
  26121. *vp = v
  26122. }
  26123. }
  26124. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  26125. d *Decoder) (_ map[uint32]uint32, changed bool) {
  26126. dd, esep := d.d, d.hh.hasElemSeparators()
  26127. containerLen := dd.ReadMapStart()
  26128. if canChange && v == nil {
  26129. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26130. v = make(map[uint32]uint32, xlen)
  26131. changed = true
  26132. }
  26133. if containerLen == 0 {
  26134. dd.ReadMapEnd()
  26135. return v, changed
  26136. }
  26137. d.depthIncr()
  26138. var mk uint32
  26139. var mv uint32
  26140. hasLen := containerLen > 0
  26141. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26142. if esep {
  26143. dd.ReadMapElemKey()
  26144. }
  26145. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26146. if esep {
  26147. dd.ReadMapElemValue()
  26148. }
  26149. if dd.TryDecodeAsNil() {
  26150. if v == nil {
  26151. } else if d.h.DeleteOnNilMapValue {
  26152. delete(v, mk)
  26153. } else {
  26154. v[mk] = 0
  26155. }
  26156. continue
  26157. }
  26158. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26159. if v != nil {
  26160. v[mk] = mv
  26161. }
  26162. }
  26163. dd.ReadMapEnd()
  26164. d.depthDecr()
  26165. return v, changed
  26166. }
  26167. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  26168. if rv.Kind() == reflect.Ptr {
  26169. vp := rv2i(rv).(*map[uint32]uint64)
  26170. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d)
  26171. if changed {
  26172. *vp = v
  26173. }
  26174. } else {
  26175. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  26176. }
  26177. }
  26178. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  26179. v, changed := f.DecMapUint32Uint64V(*vp, true, d)
  26180. if changed {
  26181. *vp = v
  26182. }
  26183. }
  26184. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  26185. d *Decoder) (_ map[uint32]uint64, changed bool) {
  26186. dd, esep := d.d, d.hh.hasElemSeparators()
  26187. containerLen := dd.ReadMapStart()
  26188. if canChange && v == nil {
  26189. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26190. v = make(map[uint32]uint64, xlen)
  26191. changed = true
  26192. }
  26193. if containerLen == 0 {
  26194. dd.ReadMapEnd()
  26195. return v, changed
  26196. }
  26197. d.depthIncr()
  26198. var mk uint32
  26199. var mv uint64
  26200. hasLen := containerLen > 0
  26201. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26202. if esep {
  26203. dd.ReadMapElemKey()
  26204. }
  26205. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26206. if esep {
  26207. dd.ReadMapElemValue()
  26208. }
  26209. if dd.TryDecodeAsNil() {
  26210. if v == nil {
  26211. } else if d.h.DeleteOnNilMapValue {
  26212. delete(v, mk)
  26213. } else {
  26214. v[mk] = 0
  26215. }
  26216. continue
  26217. }
  26218. mv = dd.DecodeUint64()
  26219. if v != nil {
  26220. v[mk] = mv
  26221. }
  26222. }
  26223. dd.ReadMapEnd()
  26224. d.depthDecr()
  26225. return v, changed
  26226. }
  26227. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  26228. if rv.Kind() == reflect.Ptr {
  26229. vp := rv2i(rv).(*map[uint32]uintptr)
  26230. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d)
  26231. if changed {
  26232. *vp = v
  26233. }
  26234. } else {
  26235. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  26236. }
  26237. }
  26238. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  26239. v, changed := f.DecMapUint32UintptrV(*vp, true, d)
  26240. if changed {
  26241. *vp = v
  26242. }
  26243. }
  26244. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  26245. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  26246. dd, esep := d.d, d.hh.hasElemSeparators()
  26247. containerLen := dd.ReadMapStart()
  26248. if canChange && v == nil {
  26249. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26250. v = make(map[uint32]uintptr, xlen)
  26251. changed = true
  26252. }
  26253. if containerLen == 0 {
  26254. dd.ReadMapEnd()
  26255. return v, changed
  26256. }
  26257. d.depthIncr()
  26258. var mk uint32
  26259. var mv uintptr
  26260. hasLen := containerLen > 0
  26261. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26262. if esep {
  26263. dd.ReadMapElemKey()
  26264. }
  26265. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26266. if esep {
  26267. dd.ReadMapElemValue()
  26268. }
  26269. if dd.TryDecodeAsNil() {
  26270. if v == nil {
  26271. } else if d.h.DeleteOnNilMapValue {
  26272. delete(v, mk)
  26273. } else {
  26274. v[mk] = 0
  26275. }
  26276. continue
  26277. }
  26278. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26279. if v != nil {
  26280. v[mk] = mv
  26281. }
  26282. }
  26283. dd.ReadMapEnd()
  26284. d.depthDecr()
  26285. return v, changed
  26286. }
  26287. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  26288. if rv.Kind() == reflect.Ptr {
  26289. vp := rv2i(rv).(*map[uint32]int)
  26290. v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d)
  26291. if changed {
  26292. *vp = v
  26293. }
  26294. } else {
  26295. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  26296. }
  26297. }
  26298. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  26299. v, changed := f.DecMapUint32IntV(*vp, true, d)
  26300. if changed {
  26301. *vp = v
  26302. }
  26303. }
  26304. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  26305. d *Decoder) (_ map[uint32]int, changed bool) {
  26306. dd, esep := d.d, d.hh.hasElemSeparators()
  26307. containerLen := dd.ReadMapStart()
  26308. if canChange && v == nil {
  26309. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26310. v = make(map[uint32]int, xlen)
  26311. changed = true
  26312. }
  26313. if containerLen == 0 {
  26314. dd.ReadMapEnd()
  26315. return v, changed
  26316. }
  26317. d.depthIncr()
  26318. var mk uint32
  26319. var mv int
  26320. hasLen := containerLen > 0
  26321. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26322. if esep {
  26323. dd.ReadMapElemKey()
  26324. }
  26325. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26326. if esep {
  26327. dd.ReadMapElemValue()
  26328. }
  26329. if dd.TryDecodeAsNil() {
  26330. if v == nil {
  26331. } else if d.h.DeleteOnNilMapValue {
  26332. delete(v, mk)
  26333. } else {
  26334. v[mk] = 0
  26335. }
  26336. continue
  26337. }
  26338. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  26339. if v != nil {
  26340. v[mk] = mv
  26341. }
  26342. }
  26343. dd.ReadMapEnd()
  26344. d.depthDecr()
  26345. return v, changed
  26346. }
  26347. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  26348. if rv.Kind() == reflect.Ptr {
  26349. vp := rv2i(rv).(*map[uint32]int8)
  26350. v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d)
  26351. if changed {
  26352. *vp = v
  26353. }
  26354. } else {
  26355. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  26356. }
  26357. }
  26358. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  26359. v, changed := f.DecMapUint32Int8V(*vp, true, d)
  26360. if changed {
  26361. *vp = v
  26362. }
  26363. }
  26364. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  26365. d *Decoder) (_ map[uint32]int8, changed bool) {
  26366. dd, esep := d.d, d.hh.hasElemSeparators()
  26367. containerLen := dd.ReadMapStart()
  26368. if canChange && v == nil {
  26369. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26370. v = make(map[uint32]int8, xlen)
  26371. changed = true
  26372. }
  26373. if containerLen == 0 {
  26374. dd.ReadMapEnd()
  26375. return v, changed
  26376. }
  26377. d.depthIncr()
  26378. var mk uint32
  26379. var mv int8
  26380. hasLen := containerLen > 0
  26381. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26382. if esep {
  26383. dd.ReadMapElemKey()
  26384. }
  26385. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26386. if esep {
  26387. dd.ReadMapElemValue()
  26388. }
  26389. if dd.TryDecodeAsNil() {
  26390. if v == nil {
  26391. } else if d.h.DeleteOnNilMapValue {
  26392. delete(v, mk)
  26393. } else {
  26394. v[mk] = 0
  26395. }
  26396. continue
  26397. }
  26398. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  26399. if v != nil {
  26400. v[mk] = mv
  26401. }
  26402. }
  26403. dd.ReadMapEnd()
  26404. d.depthDecr()
  26405. return v, changed
  26406. }
  26407. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  26408. if rv.Kind() == reflect.Ptr {
  26409. vp := rv2i(rv).(*map[uint32]int16)
  26410. v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d)
  26411. if changed {
  26412. *vp = v
  26413. }
  26414. } else {
  26415. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  26416. }
  26417. }
  26418. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  26419. v, changed := f.DecMapUint32Int16V(*vp, true, d)
  26420. if changed {
  26421. *vp = v
  26422. }
  26423. }
  26424. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  26425. d *Decoder) (_ map[uint32]int16, changed bool) {
  26426. dd, esep := d.d, d.hh.hasElemSeparators()
  26427. containerLen := dd.ReadMapStart()
  26428. if canChange && v == nil {
  26429. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26430. v = make(map[uint32]int16, xlen)
  26431. changed = true
  26432. }
  26433. if containerLen == 0 {
  26434. dd.ReadMapEnd()
  26435. return v, changed
  26436. }
  26437. d.depthIncr()
  26438. var mk uint32
  26439. var mv int16
  26440. hasLen := containerLen > 0
  26441. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26442. if esep {
  26443. dd.ReadMapElemKey()
  26444. }
  26445. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26446. if esep {
  26447. dd.ReadMapElemValue()
  26448. }
  26449. if dd.TryDecodeAsNil() {
  26450. if v == nil {
  26451. } else if d.h.DeleteOnNilMapValue {
  26452. delete(v, mk)
  26453. } else {
  26454. v[mk] = 0
  26455. }
  26456. continue
  26457. }
  26458. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  26459. if v != nil {
  26460. v[mk] = mv
  26461. }
  26462. }
  26463. dd.ReadMapEnd()
  26464. d.depthDecr()
  26465. return v, changed
  26466. }
  26467. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  26468. if rv.Kind() == reflect.Ptr {
  26469. vp := rv2i(rv).(*map[uint32]int32)
  26470. v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d)
  26471. if changed {
  26472. *vp = v
  26473. }
  26474. } else {
  26475. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  26476. }
  26477. }
  26478. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  26479. v, changed := f.DecMapUint32Int32V(*vp, true, d)
  26480. if changed {
  26481. *vp = v
  26482. }
  26483. }
  26484. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  26485. d *Decoder) (_ map[uint32]int32, changed bool) {
  26486. dd, esep := d.d, d.hh.hasElemSeparators()
  26487. containerLen := dd.ReadMapStart()
  26488. if canChange && v == nil {
  26489. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26490. v = make(map[uint32]int32, xlen)
  26491. changed = true
  26492. }
  26493. if containerLen == 0 {
  26494. dd.ReadMapEnd()
  26495. return v, changed
  26496. }
  26497. d.depthIncr()
  26498. var mk uint32
  26499. var mv int32
  26500. hasLen := containerLen > 0
  26501. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26502. if esep {
  26503. dd.ReadMapElemKey()
  26504. }
  26505. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26506. if esep {
  26507. dd.ReadMapElemValue()
  26508. }
  26509. if dd.TryDecodeAsNil() {
  26510. if v == nil {
  26511. } else if d.h.DeleteOnNilMapValue {
  26512. delete(v, mk)
  26513. } else {
  26514. v[mk] = 0
  26515. }
  26516. continue
  26517. }
  26518. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  26519. if v != nil {
  26520. v[mk] = mv
  26521. }
  26522. }
  26523. dd.ReadMapEnd()
  26524. d.depthDecr()
  26525. return v, changed
  26526. }
  26527. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  26528. if rv.Kind() == reflect.Ptr {
  26529. vp := rv2i(rv).(*map[uint32]int64)
  26530. v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d)
  26531. if changed {
  26532. *vp = v
  26533. }
  26534. } else {
  26535. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  26536. }
  26537. }
  26538. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  26539. v, changed := f.DecMapUint32Int64V(*vp, true, d)
  26540. if changed {
  26541. *vp = v
  26542. }
  26543. }
  26544. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  26545. d *Decoder) (_ map[uint32]int64, changed bool) {
  26546. dd, esep := d.d, d.hh.hasElemSeparators()
  26547. containerLen := dd.ReadMapStart()
  26548. if canChange && v == nil {
  26549. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26550. v = make(map[uint32]int64, xlen)
  26551. changed = true
  26552. }
  26553. if containerLen == 0 {
  26554. dd.ReadMapEnd()
  26555. return v, changed
  26556. }
  26557. d.depthIncr()
  26558. var mk uint32
  26559. var mv int64
  26560. hasLen := containerLen > 0
  26561. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26562. if esep {
  26563. dd.ReadMapElemKey()
  26564. }
  26565. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26566. if esep {
  26567. dd.ReadMapElemValue()
  26568. }
  26569. if dd.TryDecodeAsNil() {
  26570. if v == nil {
  26571. } else if d.h.DeleteOnNilMapValue {
  26572. delete(v, mk)
  26573. } else {
  26574. v[mk] = 0
  26575. }
  26576. continue
  26577. }
  26578. mv = dd.DecodeInt64()
  26579. if v != nil {
  26580. v[mk] = mv
  26581. }
  26582. }
  26583. dd.ReadMapEnd()
  26584. d.depthDecr()
  26585. return v, changed
  26586. }
  26587. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  26588. if rv.Kind() == reflect.Ptr {
  26589. vp := rv2i(rv).(*map[uint32]float32)
  26590. v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d)
  26591. if changed {
  26592. *vp = v
  26593. }
  26594. } else {
  26595. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  26596. }
  26597. }
  26598. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  26599. v, changed := f.DecMapUint32Float32V(*vp, true, d)
  26600. if changed {
  26601. *vp = v
  26602. }
  26603. }
  26604. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  26605. d *Decoder) (_ map[uint32]float32, changed bool) {
  26606. dd, esep := d.d, d.hh.hasElemSeparators()
  26607. containerLen := dd.ReadMapStart()
  26608. if canChange && v == nil {
  26609. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26610. v = make(map[uint32]float32, xlen)
  26611. changed = true
  26612. }
  26613. if containerLen == 0 {
  26614. dd.ReadMapEnd()
  26615. return v, changed
  26616. }
  26617. d.depthIncr()
  26618. var mk uint32
  26619. var mv float32
  26620. hasLen := containerLen > 0
  26621. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26622. if esep {
  26623. dd.ReadMapElemKey()
  26624. }
  26625. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26626. if esep {
  26627. dd.ReadMapElemValue()
  26628. }
  26629. if dd.TryDecodeAsNil() {
  26630. if v == nil {
  26631. } else if d.h.DeleteOnNilMapValue {
  26632. delete(v, mk)
  26633. } else {
  26634. v[mk] = 0
  26635. }
  26636. continue
  26637. }
  26638. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  26639. if v != nil {
  26640. v[mk] = mv
  26641. }
  26642. }
  26643. dd.ReadMapEnd()
  26644. d.depthDecr()
  26645. return v, changed
  26646. }
  26647. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  26648. if rv.Kind() == reflect.Ptr {
  26649. vp := rv2i(rv).(*map[uint32]float64)
  26650. v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d)
  26651. if changed {
  26652. *vp = v
  26653. }
  26654. } else {
  26655. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  26656. }
  26657. }
  26658. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  26659. v, changed := f.DecMapUint32Float64V(*vp, true, d)
  26660. if changed {
  26661. *vp = v
  26662. }
  26663. }
  26664. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  26665. d *Decoder) (_ map[uint32]float64, changed bool) {
  26666. dd, esep := d.d, d.hh.hasElemSeparators()
  26667. containerLen := dd.ReadMapStart()
  26668. if canChange && v == nil {
  26669. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26670. v = make(map[uint32]float64, xlen)
  26671. changed = true
  26672. }
  26673. if containerLen == 0 {
  26674. dd.ReadMapEnd()
  26675. return v, changed
  26676. }
  26677. d.depthIncr()
  26678. var mk uint32
  26679. var mv float64
  26680. hasLen := containerLen > 0
  26681. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26682. if esep {
  26683. dd.ReadMapElemKey()
  26684. }
  26685. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26686. if esep {
  26687. dd.ReadMapElemValue()
  26688. }
  26689. if dd.TryDecodeAsNil() {
  26690. if v == nil {
  26691. } else if d.h.DeleteOnNilMapValue {
  26692. delete(v, mk)
  26693. } else {
  26694. v[mk] = 0
  26695. }
  26696. continue
  26697. }
  26698. mv = dd.DecodeFloat64()
  26699. if v != nil {
  26700. v[mk] = mv
  26701. }
  26702. }
  26703. dd.ReadMapEnd()
  26704. d.depthDecr()
  26705. return v, changed
  26706. }
  26707. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  26708. if rv.Kind() == reflect.Ptr {
  26709. vp := rv2i(rv).(*map[uint32]bool)
  26710. v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d)
  26711. if changed {
  26712. *vp = v
  26713. }
  26714. } else {
  26715. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  26716. }
  26717. }
  26718. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  26719. v, changed := f.DecMapUint32BoolV(*vp, true, d)
  26720. if changed {
  26721. *vp = v
  26722. }
  26723. }
  26724. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  26725. d *Decoder) (_ map[uint32]bool, changed bool) {
  26726. dd, esep := d.d, d.hh.hasElemSeparators()
  26727. containerLen := dd.ReadMapStart()
  26728. if canChange && v == nil {
  26729. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26730. v = make(map[uint32]bool, xlen)
  26731. changed = true
  26732. }
  26733. if containerLen == 0 {
  26734. dd.ReadMapEnd()
  26735. return v, changed
  26736. }
  26737. d.depthIncr()
  26738. var mk uint32
  26739. var mv bool
  26740. hasLen := containerLen > 0
  26741. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26742. if esep {
  26743. dd.ReadMapElemKey()
  26744. }
  26745. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26746. if esep {
  26747. dd.ReadMapElemValue()
  26748. }
  26749. if dd.TryDecodeAsNil() {
  26750. if v == nil {
  26751. } else if d.h.DeleteOnNilMapValue {
  26752. delete(v, mk)
  26753. } else {
  26754. v[mk] = false
  26755. }
  26756. continue
  26757. }
  26758. mv = dd.DecodeBool()
  26759. if v != nil {
  26760. v[mk] = mv
  26761. }
  26762. }
  26763. dd.ReadMapEnd()
  26764. d.depthDecr()
  26765. return v, changed
  26766. }
  26767. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  26768. if rv.Kind() == reflect.Ptr {
  26769. vp := rv2i(rv).(*map[uint64]interface{})
  26770. v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d)
  26771. if changed {
  26772. *vp = v
  26773. }
  26774. } else {
  26775. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  26776. }
  26777. }
  26778. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  26779. v, changed := f.DecMapUint64IntfV(*vp, true, d)
  26780. if changed {
  26781. *vp = v
  26782. }
  26783. }
  26784. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  26785. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  26786. dd, esep := d.d, d.hh.hasElemSeparators()
  26787. containerLen := dd.ReadMapStart()
  26788. if canChange && v == nil {
  26789. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26790. v = make(map[uint64]interface{}, xlen)
  26791. changed = true
  26792. }
  26793. if containerLen == 0 {
  26794. dd.ReadMapEnd()
  26795. return v, changed
  26796. }
  26797. d.depthIncr()
  26798. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  26799. var mk uint64
  26800. var mv interface{}
  26801. hasLen := containerLen > 0
  26802. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26803. if esep {
  26804. dd.ReadMapElemKey()
  26805. }
  26806. mk = dd.DecodeUint64()
  26807. if esep {
  26808. dd.ReadMapElemValue()
  26809. }
  26810. if dd.TryDecodeAsNil() {
  26811. if v == nil {
  26812. } else if d.h.DeleteOnNilMapValue {
  26813. delete(v, mk)
  26814. } else {
  26815. v[mk] = nil
  26816. }
  26817. continue
  26818. }
  26819. if mapGet {
  26820. mv = v[mk]
  26821. } else {
  26822. mv = nil
  26823. }
  26824. d.decode(&mv)
  26825. if v != nil {
  26826. v[mk] = mv
  26827. }
  26828. }
  26829. dd.ReadMapEnd()
  26830. d.depthDecr()
  26831. return v, changed
  26832. }
  26833. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  26834. if rv.Kind() == reflect.Ptr {
  26835. vp := rv2i(rv).(*map[uint64]string)
  26836. v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d)
  26837. if changed {
  26838. *vp = v
  26839. }
  26840. } else {
  26841. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  26842. }
  26843. }
  26844. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  26845. v, changed := f.DecMapUint64StringV(*vp, true, d)
  26846. if changed {
  26847. *vp = v
  26848. }
  26849. }
  26850. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  26851. d *Decoder) (_ map[uint64]string, changed bool) {
  26852. dd, esep := d.d, d.hh.hasElemSeparators()
  26853. containerLen := dd.ReadMapStart()
  26854. if canChange && v == nil {
  26855. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26856. v = make(map[uint64]string, xlen)
  26857. changed = true
  26858. }
  26859. if containerLen == 0 {
  26860. dd.ReadMapEnd()
  26861. return v, changed
  26862. }
  26863. d.depthIncr()
  26864. var mk uint64
  26865. var mv string
  26866. hasLen := containerLen > 0
  26867. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26868. if esep {
  26869. dd.ReadMapElemKey()
  26870. }
  26871. mk = dd.DecodeUint64()
  26872. if esep {
  26873. dd.ReadMapElemValue()
  26874. }
  26875. if dd.TryDecodeAsNil() {
  26876. if v == nil {
  26877. } else if d.h.DeleteOnNilMapValue {
  26878. delete(v, mk)
  26879. } else {
  26880. v[mk] = ""
  26881. }
  26882. continue
  26883. }
  26884. mv = dd.DecodeString()
  26885. if v != nil {
  26886. v[mk] = mv
  26887. }
  26888. }
  26889. dd.ReadMapEnd()
  26890. d.depthDecr()
  26891. return v, changed
  26892. }
  26893. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  26894. if rv.Kind() == reflect.Ptr {
  26895. vp := rv2i(rv).(*map[uint64]uint)
  26896. v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d)
  26897. if changed {
  26898. *vp = v
  26899. }
  26900. } else {
  26901. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  26902. }
  26903. }
  26904. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  26905. v, changed := f.DecMapUint64UintV(*vp, true, d)
  26906. if changed {
  26907. *vp = v
  26908. }
  26909. }
  26910. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  26911. d *Decoder) (_ map[uint64]uint, changed bool) {
  26912. dd, esep := d.d, d.hh.hasElemSeparators()
  26913. containerLen := dd.ReadMapStart()
  26914. if canChange && v == nil {
  26915. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26916. v = make(map[uint64]uint, xlen)
  26917. changed = true
  26918. }
  26919. if containerLen == 0 {
  26920. dd.ReadMapEnd()
  26921. return v, changed
  26922. }
  26923. d.depthIncr()
  26924. var mk uint64
  26925. var mv uint
  26926. hasLen := containerLen > 0
  26927. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26928. if esep {
  26929. dd.ReadMapElemKey()
  26930. }
  26931. mk = dd.DecodeUint64()
  26932. if esep {
  26933. dd.ReadMapElemValue()
  26934. }
  26935. if dd.TryDecodeAsNil() {
  26936. if v == nil {
  26937. } else if d.h.DeleteOnNilMapValue {
  26938. delete(v, mk)
  26939. } else {
  26940. v[mk] = 0
  26941. }
  26942. continue
  26943. }
  26944. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26945. if v != nil {
  26946. v[mk] = mv
  26947. }
  26948. }
  26949. dd.ReadMapEnd()
  26950. d.depthDecr()
  26951. return v, changed
  26952. }
  26953. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  26954. if rv.Kind() == reflect.Ptr {
  26955. vp := rv2i(rv).(*map[uint64]uint8)
  26956. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d)
  26957. if changed {
  26958. *vp = v
  26959. }
  26960. } else {
  26961. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  26962. }
  26963. }
  26964. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  26965. v, changed := f.DecMapUint64Uint8V(*vp, true, d)
  26966. if changed {
  26967. *vp = v
  26968. }
  26969. }
  26970. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  26971. d *Decoder) (_ map[uint64]uint8, changed bool) {
  26972. dd, esep := d.d, d.hh.hasElemSeparators()
  26973. containerLen := dd.ReadMapStart()
  26974. if canChange && v == nil {
  26975. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26976. v = make(map[uint64]uint8, xlen)
  26977. changed = true
  26978. }
  26979. if containerLen == 0 {
  26980. dd.ReadMapEnd()
  26981. return v, changed
  26982. }
  26983. d.depthIncr()
  26984. var mk uint64
  26985. var mv uint8
  26986. hasLen := containerLen > 0
  26987. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26988. if esep {
  26989. dd.ReadMapElemKey()
  26990. }
  26991. mk = dd.DecodeUint64()
  26992. if esep {
  26993. dd.ReadMapElemValue()
  26994. }
  26995. if dd.TryDecodeAsNil() {
  26996. if v == nil {
  26997. } else if d.h.DeleteOnNilMapValue {
  26998. delete(v, mk)
  26999. } else {
  27000. v[mk] = 0
  27001. }
  27002. continue
  27003. }
  27004. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27005. if v != nil {
  27006. v[mk] = mv
  27007. }
  27008. }
  27009. dd.ReadMapEnd()
  27010. d.depthDecr()
  27011. return v, changed
  27012. }
  27013. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  27014. if rv.Kind() == reflect.Ptr {
  27015. vp := rv2i(rv).(*map[uint64]uint16)
  27016. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d)
  27017. if changed {
  27018. *vp = v
  27019. }
  27020. } else {
  27021. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  27022. }
  27023. }
  27024. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  27025. v, changed := f.DecMapUint64Uint16V(*vp, true, d)
  27026. if changed {
  27027. *vp = v
  27028. }
  27029. }
  27030. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  27031. d *Decoder) (_ map[uint64]uint16, changed bool) {
  27032. dd, esep := d.d, d.hh.hasElemSeparators()
  27033. containerLen := dd.ReadMapStart()
  27034. if canChange && v == nil {
  27035. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27036. v = make(map[uint64]uint16, xlen)
  27037. changed = true
  27038. }
  27039. if containerLen == 0 {
  27040. dd.ReadMapEnd()
  27041. return v, changed
  27042. }
  27043. d.depthIncr()
  27044. var mk uint64
  27045. var mv uint16
  27046. hasLen := containerLen > 0
  27047. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27048. if esep {
  27049. dd.ReadMapElemKey()
  27050. }
  27051. mk = dd.DecodeUint64()
  27052. if esep {
  27053. dd.ReadMapElemValue()
  27054. }
  27055. if dd.TryDecodeAsNil() {
  27056. if v == nil {
  27057. } else if d.h.DeleteOnNilMapValue {
  27058. delete(v, mk)
  27059. } else {
  27060. v[mk] = 0
  27061. }
  27062. continue
  27063. }
  27064. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  27065. if v != nil {
  27066. v[mk] = mv
  27067. }
  27068. }
  27069. dd.ReadMapEnd()
  27070. d.depthDecr()
  27071. return v, changed
  27072. }
  27073. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  27074. if rv.Kind() == reflect.Ptr {
  27075. vp := rv2i(rv).(*map[uint64]uint32)
  27076. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d)
  27077. if changed {
  27078. *vp = v
  27079. }
  27080. } else {
  27081. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  27082. }
  27083. }
  27084. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  27085. v, changed := f.DecMapUint64Uint32V(*vp, true, d)
  27086. if changed {
  27087. *vp = v
  27088. }
  27089. }
  27090. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  27091. d *Decoder) (_ map[uint64]uint32, changed bool) {
  27092. dd, esep := d.d, d.hh.hasElemSeparators()
  27093. containerLen := dd.ReadMapStart()
  27094. if canChange && v == nil {
  27095. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27096. v = make(map[uint64]uint32, xlen)
  27097. changed = true
  27098. }
  27099. if containerLen == 0 {
  27100. dd.ReadMapEnd()
  27101. return v, changed
  27102. }
  27103. d.depthIncr()
  27104. var mk uint64
  27105. var mv uint32
  27106. hasLen := containerLen > 0
  27107. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27108. if esep {
  27109. dd.ReadMapElemKey()
  27110. }
  27111. mk = dd.DecodeUint64()
  27112. if esep {
  27113. dd.ReadMapElemValue()
  27114. }
  27115. if dd.TryDecodeAsNil() {
  27116. if v == nil {
  27117. } else if d.h.DeleteOnNilMapValue {
  27118. delete(v, mk)
  27119. } else {
  27120. v[mk] = 0
  27121. }
  27122. continue
  27123. }
  27124. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  27125. if v != nil {
  27126. v[mk] = mv
  27127. }
  27128. }
  27129. dd.ReadMapEnd()
  27130. d.depthDecr()
  27131. return v, changed
  27132. }
  27133. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  27134. if rv.Kind() == reflect.Ptr {
  27135. vp := rv2i(rv).(*map[uint64]uint64)
  27136. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d)
  27137. if changed {
  27138. *vp = v
  27139. }
  27140. } else {
  27141. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  27142. }
  27143. }
  27144. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  27145. v, changed := f.DecMapUint64Uint64V(*vp, true, d)
  27146. if changed {
  27147. *vp = v
  27148. }
  27149. }
  27150. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  27151. d *Decoder) (_ map[uint64]uint64, changed bool) {
  27152. dd, esep := d.d, d.hh.hasElemSeparators()
  27153. containerLen := dd.ReadMapStart()
  27154. if canChange && v == nil {
  27155. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27156. v = make(map[uint64]uint64, xlen)
  27157. changed = true
  27158. }
  27159. if containerLen == 0 {
  27160. dd.ReadMapEnd()
  27161. return v, changed
  27162. }
  27163. d.depthIncr()
  27164. var mk uint64
  27165. var mv uint64
  27166. hasLen := containerLen > 0
  27167. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27168. if esep {
  27169. dd.ReadMapElemKey()
  27170. }
  27171. mk = dd.DecodeUint64()
  27172. if esep {
  27173. dd.ReadMapElemValue()
  27174. }
  27175. if dd.TryDecodeAsNil() {
  27176. if v == nil {
  27177. } else if d.h.DeleteOnNilMapValue {
  27178. delete(v, mk)
  27179. } else {
  27180. v[mk] = 0
  27181. }
  27182. continue
  27183. }
  27184. mv = dd.DecodeUint64()
  27185. if v != nil {
  27186. v[mk] = mv
  27187. }
  27188. }
  27189. dd.ReadMapEnd()
  27190. d.depthDecr()
  27191. return v, changed
  27192. }
  27193. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  27194. if rv.Kind() == reflect.Ptr {
  27195. vp := rv2i(rv).(*map[uint64]uintptr)
  27196. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d)
  27197. if changed {
  27198. *vp = v
  27199. }
  27200. } else {
  27201. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  27202. }
  27203. }
  27204. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  27205. v, changed := f.DecMapUint64UintptrV(*vp, true, d)
  27206. if changed {
  27207. *vp = v
  27208. }
  27209. }
  27210. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  27211. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  27212. dd, esep := d.d, d.hh.hasElemSeparators()
  27213. containerLen := dd.ReadMapStart()
  27214. if canChange && v == nil {
  27215. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27216. v = make(map[uint64]uintptr, xlen)
  27217. changed = true
  27218. }
  27219. if containerLen == 0 {
  27220. dd.ReadMapEnd()
  27221. return v, changed
  27222. }
  27223. d.depthIncr()
  27224. var mk uint64
  27225. var mv uintptr
  27226. hasLen := containerLen > 0
  27227. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27228. if esep {
  27229. dd.ReadMapElemKey()
  27230. }
  27231. mk = dd.DecodeUint64()
  27232. if esep {
  27233. dd.ReadMapElemValue()
  27234. }
  27235. if dd.TryDecodeAsNil() {
  27236. if v == nil {
  27237. } else if d.h.DeleteOnNilMapValue {
  27238. delete(v, mk)
  27239. } else {
  27240. v[mk] = 0
  27241. }
  27242. continue
  27243. }
  27244. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27245. if v != nil {
  27246. v[mk] = mv
  27247. }
  27248. }
  27249. dd.ReadMapEnd()
  27250. d.depthDecr()
  27251. return v, changed
  27252. }
  27253. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  27254. if rv.Kind() == reflect.Ptr {
  27255. vp := rv2i(rv).(*map[uint64]int)
  27256. v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d)
  27257. if changed {
  27258. *vp = v
  27259. }
  27260. } else {
  27261. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  27262. }
  27263. }
  27264. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  27265. v, changed := f.DecMapUint64IntV(*vp, true, d)
  27266. if changed {
  27267. *vp = v
  27268. }
  27269. }
  27270. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  27271. d *Decoder) (_ map[uint64]int, changed bool) {
  27272. dd, esep := d.d, d.hh.hasElemSeparators()
  27273. containerLen := dd.ReadMapStart()
  27274. if canChange && v == nil {
  27275. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27276. v = make(map[uint64]int, xlen)
  27277. changed = true
  27278. }
  27279. if containerLen == 0 {
  27280. dd.ReadMapEnd()
  27281. return v, changed
  27282. }
  27283. d.depthIncr()
  27284. var mk uint64
  27285. var mv int
  27286. hasLen := containerLen > 0
  27287. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27288. if esep {
  27289. dd.ReadMapElemKey()
  27290. }
  27291. mk = dd.DecodeUint64()
  27292. if esep {
  27293. dd.ReadMapElemValue()
  27294. }
  27295. if dd.TryDecodeAsNil() {
  27296. if v == nil {
  27297. } else if d.h.DeleteOnNilMapValue {
  27298. delete(v, mk)
  27299. } else {
  27300. v[mk] = 0
  27301. }
  27302. continue
  27303. }
  27304. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27305. if v != nil {
  27306. v[mk] = mv
  27307. }
  27308. }
  27309. dd.ReadMapEnd()
  27310. d.depthDecr()
  27311. return v, changed
  27312. }
  27313. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  27314. if rv.Kind() == reflect.Ptr {
  27315. vp := rv2i(rv).(*map[uint64]int8)
  27316. v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d)
  27317. if changed {
  27318. *vp = v
  27319. }
  27320. } else {
  27321. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  27322. }
  27323. }
  27324. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  27325. v, changed := f.DecMapUint64Int8V(*vp, true, d)
  27326. if changed {
  27327. *vp = v
  27328. }
  27329. }
  27330. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  27331. d *Decoder) (_ map[uint64]int8, changed bool) {
  27332. dd, esep := d.d, d.hh.hasElemSeparators()
  27333. containerLen := dd.ReadMapStart()
  27334. if canChange && v == nil {
  27335. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27336. v = make(map[uint64]int8, xlen)
  27337. changed = true
  27338. }
  27339. if containerLen == 0 {
  27340. dd.ReadMapEnd()
  27341. return v, changed
  27342. }
  27343. d.depthIncr()
  27344. var mk uint64
  27345. var mv int8
  27346. hasLen := containerLen > 0
  27347. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27348. if esep {
  27349. dd.ReadMapElemKey()
  27350. }
  27351. mk = dd.DecodeUint64()
  27352. if esep {
  27353. dd.ReadMapElemValue()
  27354. }
  27355. if dd.TryDecodeAsNil() {
  27356. if v == nil {
  27357. } else if d.h.DeleteOnNilMapValue {
  27358. delete(v, mk)
  27359. } else {
  27360. v[mk] = 0
  27361. }
  27362. continue
  27363. }
  27364. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  27365. if v != nil {
  27366. v[mk] = mv
  27367. }
  27368. }
  27369. dd.ReadMapEnd()
  27370. d.depthDecr()
  27371. return v, changed
  27372. }
  27373. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  27374. if rv.Kind() == reflect.Ptr {
  27375. vp := rv2i(rv).(*map[uint64]int16)
  27376. v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d)
  27377. if changed {
  27378. *vp = v
  27379. }
  27380. } else {
  27381. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  27382. }
  27383. }
  27384. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  27385. v, changed := f.DecMapUint64Int16V(*vp, true, d)
  27386. if changed {
  27387. *vp = v
  27388. }
  27389. }
  27390. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  27391. d *Decoder) (_ map[uint64]int16, changed bool) {
  27392. dd, esep := d.d, d.hh.hasElemSeparators()
  27393. containerLen := dd.ReadMapStart()
  27394. if canChange && v == nil {
  27395. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27396. v = make(map[uint64]int16, xlen)
  27397. changed = true
  27398. }
  27399. if containerLen == 0 {
  27400. dd.ReadMapEnd()
  27401. return v, changed
  27402. }
  27403. d.depthIncr()
  27404. var mk uint64
  27405. var mv int16
  27406. hasLen := containerLen > 0
  27407. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27408. if esep {
  27409. dd.ReadMapElemKey()
  27410. }
  27411. mk = dd.DecodeUint64()
  27412. if esep {
  27413. dd.ReadMapElemValue()
  27414. }
  27415. if dd.TryDecodeAsNil() {
  27416. if v == nil {
  27417. } else if d.h.DeleteOnNilMapValue {
  27418. delete(v, mk)
  27419. } else {
  27420. v[mk] = 0
  27421. }
  27422. continue
  27423. }
  27424. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  27425. if v != nil {
  27426. v[mk] = mv
  27427. }
  27428. }
  27429. dd.ReadMapEnd()
  27430. d.depthDecr()
  27431. return v, changed
  27432. }
  27433. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  27434. if rv.Kind() == reflect.Ptr {
  27435. vp := rv2i(rv).(*map[uint64]int32)
  27436. v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d)
  27437. if changed {
  27438. *vp = v
  27439. }
  27440. } else {
  27441. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  27442. }
  27443. }
  27444. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  27445. v, changed := f.DecMapUint64Int32V(*vp, true, d)
  27446. if changed {
  27447. *vp = v
  27448. }
  27449. }
  27450. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  27451. d *Decoder) (_ map[uint64]int32, changed bool) {
  27452. dd, esep := d.d, d.hh.hasElemSeparators()
  27453. containerLen := dd.ReadMapStart()
  27454. if canChange && v == nil {
  27455. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27456. v = make(map[uint64]int32, xlen)
  27457. changed = true
  27458. }
  27459. if containerLen == 0 {
  27460. dd.ReadMapEnd()
  27461. return v, changed
  27462. }
  27463. d.depthIncr()
  27464. var mk uint64
  27465. var mv int32
  27466. hasLen := containerLen > 0
  27467. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27468. if esep {
  27469. dd.ReadMapElemKey()
  27470. }
  27471. mk = dd.DecodeUint64()
  27472. if esep {
  27473. dd.ReadMapElemValue()
  27474. }
  27475. if dd.TryDecodeAsNil() {
  27476. if v == nil {
  27477. } else if d.h.DeleteOnNilMapValue {
  27478. delete(v, mk)
  27479. } else {
  27480. v[mk] = 0
  27481. }
  27482. continue
  27483. }
  27484. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  27485. if v != nil {
  27486. v[mk] = mv
  27487. }
  27488. }
  27489. dd.ReadMapEnd()
  27490. d.depthDecr()
  27491. return v, changed
  27492. }
  27493. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  27494. if rv.Kind() == reflect.Ptr {
  27495. vp := rv2i(rv).(*map[uint64]int64)
  27496. v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d)
  27497. if changed {
  27498. *vp = v
  27499. }
  27500. } else {
  27501. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  27502. }
  27503. }
  27504. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  27505. v, changed := f.DecMapUint64Int64V(*vp, true, d)
  27506. if changed {
  27507. *vp = v
  27508. }
  27509. }
  27510. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  27511. d *Decoder) (_ map[uint64]int64, changed bool) {
  27512. dd, esep := d.d, d.hh.hasElemSeparators()
  27513. containerLen := dd.ReadMapStart()
  27514. if canChange && v == nil {
  27515. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27516. v = make(map[uint64]int64, xlen)
  27517. changed = true
  27518. }
  27519. if containerLen == 0 {
  27520. dd.ReadMapEnd()
  27521. return v, changed
  27522. }
  27523. d.depthIncr()
  27524. var mk uint64
  27525. var mv int64
  27526. hasLen := containerLen > 0
  27527. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27528. if esep {
  27529. dd.ReadMapElemKey()
  27530. }
  27531. mk = dd.DecodeUint64()
  27532. if esep {
  27533. dd.ReadMapElemValue()
  27534. }
  27535. if dd.TryDecodeAsNil() {
  27536. if v == nil {
  27537. } else if d.h.DeleteOnNilMapValue {
  27538. delete(v, mk)
  27539. } else {
  27540. v[mk] = 0
  27541. }
  27542. continue
  27543. }
  27544. mv = dd.DecodeInt64()
  27545. if v != nil {
  27546. v[mk] = mv
  27547. }
  27548. }
  27549. dd.ReadMapEnd()
  27550. d.depthDecr()
  27551. return v, changed
  27552. }
  27553. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  27554. if rv.Kind() == reflect.Ptr {
  27555. vp := rv2i(rv).(*map[uint64]float32)
  27556. v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d)
  27557. if changed {
  27558. *vp = v
  27559. }
  27560. } else {
  27561. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  27562. }
  27563. }
  27564. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  27565. v, changed := f.DecMapUint64Float32V(*vp, true, d)
  27566. if changed {
  27567. *vp = v
  27568. }
  27569. }
  27570. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  27571. d *Decoder) (_ map[uint64]float32, changed bool) {
  27572. dd, esep := d.d, d.hh.hasElemSeparators()
  27573. containerLen := dd.ReadMapStart()
  27574. if canChange && v == nil {
  27575. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27576. v = make(map[uint64]float32, xlen)
  27577. changed = true
  27578. }
  27579. if containerLen == 0 {
  27580. dd.ReadMapEnd()
  27581. return v, changed
  27582. }
  27583. d.depthIncr()
  27584. var mk uint64
  27585. var mv float32
  27586. hasLen := containerLen > 0
  27587. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27588. if esep {
  27589. dd.ReadMapElemKey()
  27590. }
  27591. mk = dd.DecodeUint64()
  27592. if esep {
  27593. dd.ReadMapElemValue()
  27594. }
  27595. if dd.TryDecodeAsNil() {
  27596. if v == nil {
  27597. } else if d.h.DeleteOnNilMapValue {
  27598. delete(v, mk)
  27599. } else {
  27600. v[mk] = 0
  27601. }
  27602. continue
  27603. }
  27604. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  27605. if v != nil {
  27606. v[mk] = mv
  27607. }
  27608. }
  27609. dd.ReadMapEnd()
  27610. d.depthDecr()
  27611. return v, changed
  27612. }
  27613. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  27614. if rv.Kind() == reflect.Ptr {
  27615. vp := rv2i(rv).(*map[uint64]float64)
  27616. v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d)
  27617. if changed {
  27618. *vp = v
  27619. }
  27620. } else {
  27621. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  27622. }
  27623. }
  27624. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  27625. v, changed := f.DecMapUint64Float64V(*vp, true, d)
  27626. if changed {
  27627. *vp = v
  27628. }
  27629. }
  27630. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  27631. d *Decoder) (_ map[uint64]float64, changed bool) {
  27632. dd, esep := d.d, d.hh.hasElemSeparators()
  27633. containerLen := dd.ReadMapStart()
  27634. if canChange && v == nil {
  27635. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27636. v = make(map[uint64]float64, xlen)
  27637. changed = true
  27638. }
  27639. if containerLen == 0 {
  27640. dd.ReadMapEnd()
  27641. return v, changed
  27642. }
  27643. d.depthIncr()
  27644. var mk uint64
  27645. var mv float64
  27646. hasLen := containerLen > 0
  27647. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27648. if esep {
  27649. dd.ReadMapElemKey()
  27650. }
  27651. mk = dd.DecodeUint64()
  27652. if esep {
  27653. dd.ReadMapElemValue()
  27654. }
  27655. if dd.TryDecodeAsNil() {
  27656. if v == nil {
  27657. } else if d.h.DeleteOnNilMapValue {
  27658. delete(v, mk)
  27659. } else {
  27660. v[mk] = 0
  27661. }
  27662. continue
  27663. }
  27664. mv = dd.DecodeFloat64()
  27665. if v != nil {
  27666. v[mk] = mv
  27667. }
  27668. }
  27669. dd.ReadMapEnd()
  27670. d.depthDecr()
  27671. return v, changed
  27672. }
  27673. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  27674. if rv.Kind() == reflect.Ptr {
  27675. vp := rv2i(rv).(*map[uint64]bool)
  27676. v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d)
  27677. if changed {
  27678. *vp = v
  27679. }
  27680. } else {
  27681. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  27682. }
  27683. }
  27684. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  27685. v, changed := f.DecMapUint64BoolV(*vp, true, d)
  27686. if changed {
  27687. *vp = v
  27688. }
  27689. }
  27690. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  27691. d *Decoder) (_ map[uint64]bool, changed bool) {
  27692. dd, esep := d.d, d.hh.hasElemSeparators()
  27693. containerLen := dd.ReadMapStart()
  27694. if canChange && v == nil {
  27695. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27696. v = make(map[uint64]bool, xlen)
  27697. changed = true
  27698. }
  27699. if containerLen == 0 {
  27700. dd.ReadMapEnd()
  27701. return v, changed
  27702. }
  27703. d.depthIncr()
  27704. var mk uint64
  27705. var mv bool
  27706. hasLen := containerLen > 0
  27707. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27708. if esep {
  27709. dd.ReadMapElemKey()
  27710. }
  27711. mk = dd.DecodeUint64()
  27712. if esep {
  27713. dd.ReadMapElemValue()
  27714. }
  27715. if dd.TryDecodeAsNil() {
  27716. if v == nil {
  27717. } else if d.h.DeleteOnNilMapValue {
  27718. delete(v, mk)
  27719. } else {
  27720. v[mk] = false
  27721. }
  27722. continue
  27723. }
  27724. mv = dd.DecodeBool()
  27725. if v != nil {
  27726. v[mk] = mv
  27727. }
  27728. }
  27729. dd.ReadMapEnd()
  27730. d.depthDecr()
  27731. return v, changed
  27732. }
  27733. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  27734. if rv.Kind() == reflect.Ptr {
  27735. vp := rv2i(rv).(*map[uintptr]interface{})
  27736. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d)
  27737. if changed {
  27738. *vp = v
  27739. }
  27740. } else {
  27741. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  27742. }
  27743. }
  27744. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  27745. v, changed := f.DecMapUintptrIntfV(*vp, true, d)
  27746. if changed {
  27747. *vp = v
  27748. }
  27749. }
  27750. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  27751. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  27752. dd, esep := d.d, d.hh.hasElemSeparators()
  27753. containerLen := dd.ReadMapStart()
  27754. if canChange && v == nil {
  27755. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27756. v = make(map[uintptr]interface{}, xlen)
  27757. changed = true
  27758. }
  27759. if containerLen == 0 {
  27760. dd.ReadMapEnd()
  27761. return v, changed
  27762. }
  27763. d.depthIncr()
  27764. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  27765. var mk uintptr
  27766. var mv interface{}
  27767. hasLen := containerLen > 0
  27768. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27769. if esep {
  27770. dd.ReadMapElemKey()
  27771. }
  27772. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27773. if esep {
  27774. dd.ReadMapElemValue()
  27775. }
  27776. if dd.TryDecodeAsNil() {
  27777. if v == nil {
  27778. } else if d.h.DeleteOnNilMapValue {
  27779. delete(v, mk)
  27780. } else {
  27781. v[mk] = nil
  27782. }
  27783. continue
  27784. }
  27785. if mapGet {
  27786. mv = v[mk]
  27787. } else {
  27788. mv = nil
  27789. }
  27790. d.decode(&mv)
  27791. if v != nil {
  27792. v[mk] = mv
  27793. }
  27794. }
  27795. dd.ReadMapEnd()
  27796. d.depthDecr()
  27797. return v, changed
  27798. }
  27799. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  27800. if rv.Kind() == reflect.Ptr {
  27801. vp := rv2i(rv).(*map[uintptr]string)
  27802. v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d)
  27803. if changed {
  27804. *vp = v
  27805. }
  27806. } else {
  27807. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  27808. }
  27809. }
  27810. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  27811. v, changed := f.DecMapUintptrStringV(*vp, true, d)
  27812. if changed {
  27813. *vp = v
  27814. }
  27815. }
  27816. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  27817. d *Decoder) (_ map[uintptr]string, changed bool) {
  27818. dd, esep := d.d, d.hh.hasElemSeparators()
  27819. containerLen := dd.ReadMapStart()
  27820. if canChange && v == nil {
  27821. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27822. v = make(map[uintptr]string, xlen)
  27823. changed = true
  27824. }
  27825. if containerLen == 0 {
  27826. dd.ReadMapEnd()
  27827. return v, changed
  27828. }
  27829. d.depthIncr()
  27830. var mk uintptr
  27831. var mv string
  27832. hasLen := containerLen > 0
  27833. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27834. if esep {
  27835. dd.ReadMapElemKey()
  27836. }
  27837. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27838. if esep {
  27839. dd.ReadMapElemValue()
  27840. }
  27841. if dd.TryDecodeAsNil() {
  27842. if v == nil {
  27843. } else if d.h.DeleteOnNilMapValue {
  27844. delete(v, mk)
  27845. } else {
  27846. v[mk] = ""
  27847. }
  27848. continue
  27849. }
  27850. mv = dd.DecodeString()
  27851. if v != nil {
  27852. v[mk] = mv
  27853. }
  27854. }
  27855. dd.ReadMapEnd()
  27856. d.depthDecr()
  27857. return v, changed
  27858. }
  27859. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  27860. if rv.Kind() == reflect.Ptr {
  27861. vp := rv2i(rv).(*map[uintptr]uint)
  27862. v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d)
  27863. if changed {
  27864. *vp = v
  27865. }
  27866. } else {
  27867. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  27868. }
  27869. }
  27870. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  27871. v, changed := f.DecMapUintptrUintV(*vp, true, d)
  27872. if changed {
  27873. *vp = v
  27874. }
  27875. }
  27876. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  27877. d *Decoder) (_ map[uintptr]uint, changed bool) {
  27878. dd, esep := d.d, d.hh.hasElemSeparators()
  27879. containerLen := dd.ReadMapStart()
  27880. if canChange && v == nil {
  27881. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27882. v = make(map[uintptr]uint, xlen)
  27883. changed = true
  27884. }
  27885. if containerLen == 0 {
  27886. dd.ReadMapEnd()
  27887. return v, changed
  27888. }
  27889. d.depthIncr()
  27890. var mk uintptr
  27891. var mv uint
  27892. hasLen := containerLen > 0
  27893. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27894. if esep {
  27895. dd.ReadMapElemKey()
  27896. }
  27897. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27898. if esep {
  27899. dd.ReadMapElemValue()
  27900. }
  27901. if dd.TryDecodeAsNil() {
  27902. if v == nil {
  27903. } else if d.h.DeleteOnNilMapValue {
  27904. delete(v, mk)
  27905. } else {
  27906. v[mk] = 0
  27907. }
  27908. continue
  27909. }
  27910. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27911. if v != nil {
  27912. v[mk] = mv
  27913. }
  27914. }
  27915. dd.ReadMapEnd()
  27916. d.depthDecr()
  27917. return v, changed
  27918. }
  27919. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  27920. if rv.Kind() == reflect.Ptr {
  27921. vp := rv2i(rv).(*map[uintptr]uint8)
  27922. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d)
  27923. if changed {
  27924. *vp = v
  27925. }
  27926. } else {
  27927. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  27928. }
  27929. }
  27930. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  27931. v, changed := f.DecMapUintptrUint8V(*vp, true, d)
  27932. if changed {
  27933. *vp = v
  27934. }
  27935. }
  27936. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  27937. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  27938. dd, esep := d.d, d.hh.hasElemSeparators()
  27939. containerLen := dd.ReadMapStart()
  27940. if canChange && v == nil {
  27941. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27942. v = make(map[uintptr]uint8, xlen)
  27943. changed = true
  27944. }
  27945. if containerLen == 0 {
  27946. dd.ReadMapEnd()
  27947. return v, changed
  27948. }
  27949. d.depthIncr()
  27950. var mk uintptr
  27951. var mv uint8
  27952. hasLen := containerLen > 0
  27953. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27954. if esep {
  27955. dd.ReadMapElemKey()
  27956. }
  27957. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27958. if esep {
  27959. dd.ReadMapElemValue()
  27960. }
  27961. if dd.TryDecodeAsNil() {
  27962. if v == nil {
  27963. } else if d.h.DeleteOnNilMapValue {
  27964. delete(v, mk)
  27965. } else {
  27966. v[mk] = 0
  27967. }
  27968. continue
  27969. }
  27970. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27971. if v != nil {
  27972. v[mk] = mv
  27973. }
  27974. }
  27975. dd.ReadMapEnd()
  27976. d.depthDecr()
  27977. return v, changed
  27978. }
  27979. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  27980. if rv.Kind() == reflect.Ptr {
  27981. vp := rv2i(rv).(*map[uintptr]uint16)
  27982. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d)
  27983. if changed {
  27984. *vp = v
  27985. }
  27986. } else {
  27987. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  27988. }
  27989. }
  27990. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  27991. v, changed := f.DecMapUintptrUint16V(*vp, true, d)
  27992. if changed {
  27993. *vp = v
  27994. }
  27995. }
  27996. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  27997. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  27998. dd, esep := d.d, d.hh.hasElemSeparators()
  27999. containerLen := dd.ReadMapStart()
  28000. if canChange && v == nil {
  28001. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28002. v = make(map[uintptr]uint16, xlen)
  28003. changed = true
  28004. }
  28005. if containerLen == 0 {
  28006. dd.ReadMapEnd()
  28007. return v, changed
  28008. }
  28009. d.depthIncr()
  28010. var mk uintptr
  28011. var mv uint16
  28012. hasLen := containerLen > 0
  28013. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28014. if esep {
  28015. dd.ReadMapElemKey()
  28016. }
  28017. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28018. if esep {
  28019. dd.ReadMapElemValue()
  28020. }
  28021. if dd.TryDecodeAsNil() {
  28022. if v == nil {
  28023. } else if d.h.DeleteOnNilMapValue {
  28024. delete(v, mk)
  28025. } else {
  28026. v[mk] = 0
  28027. }
  28028. continue
  28029. }
  28030. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28031. if v != nil {
  28032. v[mk] = mv
  28033. }
  28034. }
  28035. dd.ReadMapEnd()
  28036. d.depthDecr()
  28037. return v, changed
  28038. }
  28039. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  28040. if rv.Kind() == reflect.Ptr {
  28041. vp := rv2i(rv).(*map[uintptr]uint32)
  28042. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d)
  28043. if changed {
  28044. *vp = v
  28045. }
  28046. } else {
  28047. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  28048. }
  28049. }
  28050. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  28051. v, changed := f.DecMapUintptrUint32V(*vp, true, d)
  28052. if changed {
  28053. *vp = v
  28054. }
  28055. }
  28056. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  28057. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  28058. dd, esep := d.d, d.hh.hasElemSeparators()
  28059. containerLen := dd.ReadMapStart()
  28060. if canChange && v == nil {
  28061. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28062. v = make(map[uintptr]uint32, xlen)
  28063. changed = true
  28064. }
  28065. if containerLen == 0 {
  28066. dd.ReadMapEnd()
  28067. return v, changed
  28068. }
  28069. d.depthIncr()
  28070. var mk uintptr
  28071. var mv uint32
  28072. hasLen := containerLen > 0
  28073. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28074. if esep {
  28075. dd.ReadMapElemKey()
  28076. }
  28077. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28078. if esep {
  28079. dd.ReadMapElemValue()
  28080. }
  28081. if dd.TryDecodeAsNil() {
  28082. if v == nil {
  28083. } else if d.h.DeleteOnNilMapValue {
  28084. delete(v, mk)
  28085. } else {
  28086. v[mk] = 0
  28087. }
  28088. continue
  28089. }
  28090. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  28091. if v != nil {
  28092. v[mk] = mv
  28093. }
  28094. }
  28095. dd.ReadMapEnd()
  28096. d.depthDecr()
  28097. return v, changed
  28098. }
  28099. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  28100. if rv.Kind() == reflect.Ptr {
  28101. vp := rv2i(rv).(*map[uintptr]uint64)
  28102. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d)
  28103. if changed {
  28104. *vp = v
  28105. }
  28106. } else {
  28107. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  28108. }
  28109. }
  28110. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  28111. v, changed := f.DecMapUintptrUint64V(*vp, true, d)
  28112. if changed {
  28113. *vp = v
  28114. }
  28115. }
  28116. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  28117. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  28118. dd, esep := d.d, d.hh.hasElemSeparators()
  28119. containerLen := dd.ReadMapStart()
  28120. if canChange && v == nil {
  28121. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28122. v = make(map[uintptr]uint64, xlen)
  28123. changed = true
  28124. }
  28125. if containerLen == 0 {
  28126. dd.ReadMapEnd()
  28127. return v, changed
  28128. }
  28129. d.depthIncr()
  28130. var mk uintptr
  28131. var mv uint64
  28132. hasLen := containerLen > 0
  28133. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28134. if esep {
  28135. dd.ReadMapElemKey()
  28136. }
  28137. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28138. if esep {
  28139. dd.ReadMapElemValue()
  28140. }
  28141. if dd.TryDecodeAsNil() {
  28142. if v == nil {
  28143. } else if d.h.DeleteOnNilMapValue {
  28144. delete(v, mk)
  28145. } else {
  28146. v[mk] = 0
  28147. }
  28148. continue
  28149. }
  28150. mv = dd.DecodeUint64()
  28151. if v != nil {
  28152. v[mk] = mv
  28153. }
  28154. }
  28155. dd.ReadMapEnd()
  28156. d.depthDecr()
  28157. return v, changed
  28158. }
  28159. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  28160. if rv.Kind() == reflect.Ptr {
  28161. vp := rv2i(rv).(*map[uintptr]uintptr)
  28162. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d)
  28163. if changed {
  28164. *vp = v
  28165. }
  28166. } else {
  28167. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  28168. }
  28169. }
  28170. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  28171. v, changed := f.DecMapUintptrUintptrV(*vp, true, d)
  28172. if changed {
  28173. *vp = v
  28174. }
  28175. }
  28176. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  28177. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  28178. dd, esep := d.d, d.hh.hasElemSeparators()
  28179. containerLen := dd.ReadMapStart()
  28180. if canChange && v == nil {
  28181. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28182. v = make(map[uintptr]uintptr, xlen)
  28183. changed = true
  28184. }
  28185. if containerLen == 0 {
  28186. dd.ReadMapEnd()
  28187. return v, changed
  28188. }
  28189. d.depthIncr()
  28190. var mk uintptr
  28191. var mv uintptr
  28192. hasLen := containerLen > 0
  28193. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28194. if esep {
  28195. dd.ReadMapElemKey()
  28196. }
  28197. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28198. if esep {
  28199. dd.ReadMapElemValue()
  28200. }
  28201. if dd.TryDecodeAsNil() {
  28202. if v == nil {
  28203. } else if d.h.DeleteOnNilMapValue {
  28204. delete(v, mk)
  28205. } else {
  28206. v[mk] = 0
  28207. }
  28208. continue
  28209. }
  28210. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28211. if v != nil {
  28212. v[mk] = mv
  28213. }
  28214. }
  28215. dd.ReadMapEnd()
  28216. d.depthDecr()
  28217. return v, changed
  28218. }
  28219. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  28220. if rv.Kind() == reflect.Ptr {
  28221. vp := rv2i(rv).(*map[uintptr]int)
  28222. v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d)
  28223. if changed {
  28224. *vp = v
  28225. }
  28226. } else {
  28227. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  28228. }
  28229. }
  28230. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  28231. v, changed := f.DecMapUintptrIntV(*vp, true, d)
  28232. if changed {
  28233. *vp = v
  28234. }
  28235. }
  28236. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  28237. d *Decoder) (_ map[uintptr]int, changed bool) {
  28238. dd, esep := d.d, d.hh.hasElemSeparators()
  28239. containerLen := dd.ReadMapStart()
  28240. if canChange && v == nil {
  28241. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28242. v = make(map[uintptr]int, xlen)
  28243. changed = true
  28244. }
  28245. if containerLen == 0 {
  28246. dd.ReadMapEnd()
  28247. return v, changed
  28248. }
  28249. d.depthIncr()
  28250. var mk uintptr
  28251. var mv int
  28252. hasLen := containerLen > 0
  28253. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28254. if esep {
  28255. dd.ReadMapElemKey()
  28256. }
  28257. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28258. if esep {
  28259. dd.ReadMapElemValue()
  28260. }
  28261. if dd.TryDecodeAsNil() {
  28262. if v == nil {
  28263. } else if d.h.DeleteOnNilMapValue {
  28264. delete(v, mk)
  28265. } else {
  28266. v[mk] = 0
  28267. }
  28268. continue
  28269. }
  28270. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28271. if v != nil {
  28272. v[mk] = mv
  28273. }
  28274. }
  28275. dd.ReadMapEnd()
  28276. d.depthDecr()
  28277. return v, changed
  28278. }
  28279. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  28280. if rv.Kind() == reflect.Ptr {
  28281. vp := rv2i(rv).(*map[uintptr]int8)
  28282. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d)
  28283. if changed {
  28284. *vp = v
  28285. }
  28286. } else {
  28287. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  28288. }
  28289. }
  28290. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  28291. v, changed := f.DecMapUintptrInt8V(*vp, true, d)
  28292. if changed {
  28293. *vp = v
  28294. }
  28295. }
  28296. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  28297. d *Decoder) (_ map[uintptr]int8, changed bool) {
  28298. dd, esep := d.d, d.hh.hasElemSeparators()
  28299. containerLen := dd.ReadMapStart()
  28300. if canChange && v == nil {
  28301. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28302. v = make(map[uintptr]int8, xlen)
  28303. changed = true
  28304. }
  28305. if containerLen == 0 {
  28306. dd.ReadMapEnd()
  28307. return v, changed
  28308. }
  28309. d.depthIncr()
  28310. var mk uintptr
  28311. var mv int8
  28312. hasLen := containerLen > 0
  28313. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28314. if esep {
  28315. dd.ReadMapElemKey()
  28316. }
  28317. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28318. if esep {
  28319. dd.ReadMapElemValue()
  28320. }
  28321. if dd.TryDecodeAsNil() {
  28322. if v == nil {
  28323. } else if d.h.DeleteOnNilMapValue {
  28324. delete(v, mk)
  28325. } else {
  28326. v[mk] = 0
  28327. }
  28328. continue
  28329. }
  28330. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28331. if v != nil {
  28332. v[mk] = mv
  28333. }
  28334. }
  28335. dd.ReadMapEnd()
  28336. d.depthDecr()
  28337. return v, changed
  28338. }
  28339. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  28340. if rv.Kind() == reflect.Ptr {
  28341. vp := rv2i(rv).(*map[uintptr]int16)
  28342. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d)
  28343. if changed {
  28344. *vp = v
  28345. }
  28346. } else {
  28347. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  28348. }
  28349. }
  28350. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  28351. v, changed := f.DecMapUintptrInt16V(*vp, true, d)
  28352. if changed {
  28353. *vp = v
  28354. }
  28355. }
  28356. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  28357. d *Decoder) (_ map[uintptr]int16, changed bool) {
  28358. dd, esep := d.d, d.hh.hasElemSeparators()
  28359. containerLen := dd.ReadMapStart()
  28360. if canChange && v == nil {
  28361. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28362. v = make(map[uintptr]int16, xlen)
  28363. changed = true
  28364. }
  28365. if containerLen == 0 {
  28366. dd.ReadMapEnd()
  28367. return v, changed
  28368. }
  28369. d.depthIncr()
  28370. var mk uintptr
  28371. var mv int16
  28372. hasLen := containerLen > 0
  28373. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28374. if esep {
  28375. dd.ReadMapElemKey()
  28376. }
  28377. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28378. if esep {
  28379. dd.ReadMapElemValue()
  28380. }
  28381. if dd.TryDecodeAsNil() {
  28382. if v == nil {
  28383. } else if d.h.DeleteOnNilMapValue {
  28384. delete(v, mk)
  28385. } else {
  28386. v[mk] = 0
  28387. }
  28388. continue
  28389. }
  28390. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  28391. if v != nil {
  28392. v[mk] = mv
  28393. }
  28394. }
  28395. dd.ReadMapEnd()
  28396. d.depthDecr()
  28397. return v, changed
  28398. }
  28399. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  28400. if rv.Kind() == reflect.Ptr {
  28401. vp := rv2i(rv).(*map[uintptr]int32)
  28402. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d)
  28403. if changed {
  28404. *vp = v
  28405. }
  28406. } else {
  28407. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  28408. }
  28409. }
  28410. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  28411. v, changed := f.DecMapUintptrInt32V(*vp, true, d)
  28412. if changed {
  28413. *vp = v
  28414. }
  28415. }
  28416. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  28417. d *Decoder) (_ map[uintptr]int32, changed bool) {
  28418. dd, esep := d.d, d.hh.hasElemSeparators()
  28419. containerLen := dd.ReadMapStart()
  28420. if canChange && v == nil {
  28421. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28422. v = make(map[uintptr]int32, xlen)
  28423. changed = true
  28424. }
  28425. if containerLen == 0 {
  28426. dd.ReadMapEnd()
  28427. return v, changed
  28428. }
  28429. d.depthIncr()
  28430. var mk uintptr
  28431. var mv int32
  28432. hasLen := containerLen > 0
  28433. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28434. if esep {
  28435. dd.ReadMapElemKey()
  28436. }
  28437. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28438. if esep {
  28439. dd.ReadMapElemValue()
  28440. }
  28441. if dd.TryDecodeAsNil() {
  28442. if v == nil {
  28443. } else if d.h.DeleteOnNilMapValue {
  28444. delete(v, mk)
  28445. } else {
  28446. v[mk] = 0
  28447. }
  28448. continue
  28449. }
  28450. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  28451. if v != nil {
  28452. v[mk] = mv
  28453. }
  28454. }
  28455. dd.ReadMapEnd()
  28456. d.depthDecr()
  28457. return v, changed
  28458. }
  28459. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  28460. if rv.Kind() == reflect.Ptr {
  28461. vp := rv2i(rv).(*map[uintptr]int64)
  28462. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d)
  28463. if changed {
  28464. *vp = v
  28465. }
  28466. } else {
  28467. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  28468. }
  28469. }
  28470. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  28471. v, changed := f.DecMapUintptrInt64V(*vp, true, d)
  28472. if changed {
  28473. *vp = v
  28474. }
  28475. }
  28476. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  28477. d *Decoder) (_ map[uintptr]int64, changed bool) {
  28478. dd, esep := d.d, d.hh.hasElemSeparators()
  28479. containerLen := dd.ReadMapStart()
  28480. if canChange && v == nil {
  28481. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28482. v = make(map[uintptr]int64, xlen)
  28483. changed = true
  28484. }
  28485. if containerLen == 0 {
  28486. dd.ReadMapEnd()
  28487. return v, changed
  28488. }
  28489. d.depthIncr()
  28490. var mk uintptr
  28491. var mv int64
  28492. hasLen := containerLen > 0
  28493. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28494. if esep {
  28495. dd.ReadMapElemKey()
  28496. }
  28497. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28498. if esep {
  28499. dd.ReadMapElemValue()
  28500. }
  28501. if dd.TryDecodeAsNil() {
  28502. if v == nil {
  28503. } else if d.h.DeleteOnNilMapValue {
  28504. delete(v, mk)
  28505. } else {
  28506. v[mk] = 0
  28507. }
  28508. continue
  28509. }
  28510. mv = dd.DecodeInt64()
  28511. if v != nil {
  28512. v[mk] = mv
  28513. }
  28514. }
  28515. dd.ReadMapEnd()
  28516. d.depthDecr()
  28517. return v, changed
  28518. }
  28519. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  28520. if rv.Kind() == reflect.Ptr {
  28521. vp := rv2i(rv).(*map[uintptr]float32)
  28522. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d)
  28523. if changed {
  28524. *vp = v
  28525. }
  28526. } else {
  28527. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  28528. }
  28529. }
  28530. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  28531. v, changed := f.DecMapUintptrFloat32V(*vp, true, d)
  28532. if changed {
  28533. *vp = v
  28534. }
  28535. }
  28536. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  28537. d *Decoder) (_ map[uintptr]float32, changed bool) {
  28538. dd, esep := d.d, d.hh.hasElemSeparators()
  28539. containerLen := dd.ReadMapStart()
  28540. if canChange && v == nil {
  28541. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28542. v = make(map[uintptr]float32, xlen)
  28543. changed = true
  28544. }
  28545. if containerLen == 0 {
  28546. dd.ReadMapEnd()
  28547. return v, changed
  28548. }
  28549. d.depthIncr()
  28550. var mk uintptr
  28551. var mv float32
  28552. hasLen := containerLen > 0
  28553. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28554. if esep {
  28555. dd.ReadMapElemKey()
  28556. }
  28557. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28558. if esep {
  28559. dd.ReadMapElemValue()
  28560. }
  28561. if dd.TryDecodeAsNil() {
  28562. if v == nil {
  28563. } else if d.h.DeleteOnNilMapValue {
  28564. delete(v, mk)
  28565. } else {
  28566. v[mk] = 0
  28567. }
  28568. continue
  28569. }
  28570. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  28571. if v != nil {
  28572. v[mk] = mv
  28573. }
  28574. }
  28575. dd.ReadMapEnd()
  28576. d.depthDecr()
  28577. return v, changed
  28578. }
  28579. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  28580. if rv.Kind() == reflect.Ptr {
  28581. vp := rv2i(rv).(*map[uintptr]float64)
  28582. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d)
  28583. if changed {
  28584. *vp = v
  28585. }
  28586. } else {
  28587. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  28588. }
  28589. }
  28590. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  28591. v, changed := f.DecMapUintptrFloat64V(*vp, true, d)
  28592. if changed {
  28593. *vp = v
  28594. }
  28595. }
  28596. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  28597. d *Decoder) (_ map[uintptr]float64, changed bool) {
  28598. dd, esep := d.d, d.hh.hasElemSeparators()
  28599. containerLen := dd.ReadMapStart()
  28600. if canChange && v == nil {
  28601. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28602. v = make(map[uintptr]float64, xlen)
  28603. changed = true
  28604. }
  28605. if containerLen == 0 {
  28606. dd.ReadMapEnd()
  28607. return v, changed
  28608. }
  28609. d.depthIncr()
  28610. var mk uintptr
  28611. var mv float64
  28612. hasLen := containerLen > 0
  28613. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28614. if esep {
  28615. dd.ReadMapElemKey()
  28616. }
  28617. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28618. if esep {
  28619. dd.ReadMapElemValue()
  28620. }
  28621. if dd.TryDecodeAsNil() {
  28622. if v == nil {
  28623. } else if d.h.DeleteOnNilMapValue {
  28624. delete(v, mk)
  28625. } else {
  28626. v[mk] = 0
  28627. }
  28628. continue
  28629. }
  28630. mv = dd.DecodeFloat64()
  28631. if v != nil {
  28632. v[mk] = mv
  28633. }
  28634. }
  28635. dd.ReadMapEnd()
  28636. d.depthDecr()
  28637. return v, changed
  28638. }
  28639. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  28640. if rv.Kind() == reflect.Ptr {
  28641. vp := rv2i(rv).(*map[uintptr]bool)
  28642. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d)
  28643. if changed {
  28644. *vp = v
  28645. }
  28646. } else {
  28647. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  28648. }
  28649. }
  28650. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  28651. v, changed := f.DecMapUintptrBoolV(*vp, true, d)
  28652. if changed {
  28653. *vp = v
  28654. }
  28655. }
  28656. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  28657. d *Decoder) (_ map[uintptr]bool, changed bool) {
  28658. dd, esep := d.d, d.hh.hasElemSeparators()
  28659. containerLen := dd.ReadMapStart()
  28660. if canChange && v == nil {
  28661. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28662. v = make(map[uintptr]bool, xlen)
  28663. changed = true
  28664. }
  28665. if containerLen == 0 {
  28666. dd.ReadMapEnd()
  28667. return v, changed
  28668. }
  28669. d.depthIncr()
  28670. var mk uintptr
  28671. var mv bool
  28672. hasLen := containerLen > 0
  28673. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28674. if esep {
  28675. dd.ReadMapElemKey()
  28676. }
  28677. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28678. if esep {
  28679. dd.ReadMapElemValue()
  28680. }
  28681. if dd.TryDecodeAsNil() {
  28682. if v == nil {
  28683. } else if d.h.DeleteOnNilMapValue {
  28684. delete(v, mk)
  28685. } else {
  28686. v[mk] = false
  28687. }
  28688. continue
  28689. }
  28690. mv = dd.DecodeBool()
  28691. if v != nil {
  28692. v[mk] = mv
  28693. }
  28694. }
  28695. dd.ReadMapEnd()
  28696. d.depthDecr()
  28697. return v, changed
  28698. }
  28699. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  28700. if rv.Kind() == reflect.Ptr {
  28701. vp := rv2i(rv).(*map[int]interface{})
  28702. v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d)
  28703. if changed {
  28704. *vp = v
  28705. }
  28706. } else {
  28707. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  28708. }
  28709. }
  28710. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  28711. v, changed := f.DecMapIntIntfV(*vp, true, d)
  28712. if changed {
  28713. *vp = v
  28714. }
  28715. }
  28716. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  28717. d *Decoder) (_ map[int]interface{}, changed bool) {
  28718. dd, esep := d.d, d.hh.hasElemSeparators()
  28719. containerLen := dd.ReadMapStart()
  28720. if canChange && v == nil {
  28721. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28722. v = make(map[int]interface{}, xlen)
  28723. changed = true
  28724. }
  28725. if containerLen == 0 {
  28726. dd.ReadMapEnd()
  28727. return v, changed
  28728. }
  28729. d.depthIncr()
  28730. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  28731. var mk int
  28732. var mv interface{}
  28733. hasLen := containerLen > 0
  28734. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28735. if esep {
  28736. dd.ReadMapElemKey()
  28737. }
  28738. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28739. if esep {
  28740. dd.ReadMapElemValue()
  28741. }
  28742. if dd.TryDecodeAsNil() {
  28743. if v == nil {
  28744. } else if d.h.DeleteOnNilMapValue {
  28745. delete(v, mk)
  28746. } else {
  28747. v[mk] = nil
  28748. }
  28749. continue
  28750. }
  28751. if mapGet {
  28752. mv = v[mk]
  28753. } else {
  28754. mv = nil
  28755. }
  28756. d.decode(&mv)
  28757. if v != nil {
  28758. v[mk] = mv
  28759. }
  28760. }
  28761. dd.ReadMapEnd()
  28762. d.depthDecr()
  28763. return v, changed
  28764. }
  28765. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  28766. if rv.Kind() == reflect.Ptr {
  28767. vp := rv2i(rv).(*map[int]string)
  28768. v, changed := fastpathTV.DecMapIntStringV(*vp, true, d)
  28769. if changed {
  28770. *vp = v
  28771. }
  28772. } else {
  28773. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  28774. }
  28775. }
  28776. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  28777. v, changed := f.DecMapIntStringV(*vp, true, d)
  28778. if changed {
  28779. *vp = v
  28780. }
  28781. }
  28782. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  28783. d *Decoder) (_ map[int]string, changed bool) {
  28784. dd, esep := d.d, d.hh.hasElemSeparators()
  28785. containerLen := dd.ReadMapStart()
  28786. if canChange && v == nil {
  28787. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28788. v = make(map[int]string, xlen)
  28789. changed = true
  28790. }
  28791. if containerLen == 0 {
  28792. dd.ReadMapEnd()
  28793. return v, changed
  28794. }
  28795. d.depthIncr()
  28796. var mk int
  28797. var mv string
  28798. hasLen := containerLen > 0
  28799. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28800. if esep {
  28801. dd.ReadMapElemKey()
  28802. }
  28803. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28804. if esep {
  28805. dd.ReadMapElemValue()
  28806. }
  28807. if dd.TryDecodeAsNil() {
  28808. if v == nil {
  28809. } else if d.h.DeleteOnNilMapValue {
  28810. delete(v, mk)
  28811. } else {
  28812. v[mk] = ""
  28813. }
  28814. continue
  28815. }
  28816. mv = dd.DecodeString()
  28817. if v != nil {
  28818. v[mk] = mv
  28819. }
  28820. }
  28821. dd.ReadMapEnd()
  28822. d.depthDecr()
  28823. return v, changed
  28824. }
  28825. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  28826. if rv.Kind() == reflect.Ptr {
  28827. vp := rv2i(rv).(*map[int]uint)
  28828. v, changed := fastpathTV.DecMapIntUintV(*vp, true, d)
  28829. if changed {
  28830. *vp = v
  28831. }
  28832. } else {
  28833. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  28834. }
  28835. }
  28836. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  28837. v, changed := f.DecMapIntUintV(*vp, true, d)
  28838. if changed {
  28839. *vp = v
  28840. }
  28841. }
  28842. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  28843. d *Decoder) (_ map[int]uint, changed bool) {
  28844. dd, esep := d.d, d.hh.hasElemSeparators()
  28845. containerLen := dd.ReadMapStart()
  28846. if canChange && v == nil {
  28847. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28848. v = make(map[int]uint, xlen)
  28849. changed = true
  28850. }
  28851. if containerLen == 0 {
  28852. dd.ReadMapEnd()
  28853. return v, changed
  28854. }
  28855. d.depthIncr()
  28856. var mk int
  28857. var mv uint
  28858. hasLen := containerLen > 0
  28859. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28860. if esep {
  28861. dd.ReadMapElemKey()
  28862. }
  28863. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28864. if esep {
  28865. dd.ReadMapElemValue()
  28866. }
  28867. if dd.TryDecodeAsNil() {
  28868. if v == nil {
  28869. } else if d.h.DeleteOnNilMapValue {
  28870. delete(v, mk)
  28871. } else {
  28872. v[mk] = 0
  28873. }
  28874. continue
  28875. }
  28876. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28877. if v != nil {
  28878. v[mk] = mv
  28879. }
  28880. }
  28881. dd.ReadMapEnd()
  28882. d.depthDecr()
  28883. return v, changed
  28884. }
  28885. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  28886. if rv.Kind() == reflect.Ptr {
  28887. vp := rv2i(rv).(*map[int]uint8)
  28888. v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d)
  28889. if changed {
  28890. *vp = v
  28891. }
  28892. } else {
  28893. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  28894. }
  28895. }
  28896. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  28897. v, changed := f.DecMapIntUint8V(*vp, true, d)
  28898. if changed {
  28899. *vp = v
  28900. }
  28901. }
  28902. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  28903. d *Decoder) (_ map[int]uint8, changed bool) {
  28904. dd, esep := d.d, d.hh.hasElemSeparators()
  28905. containerLen := dd.ReadMapStart()
  28906. if canChange && v == nil {
  28907. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28908. v = make(map[int]uint8, xlen)
  28909. changed = true
  28910. }
  28911. if containerLen == 0 {
  28912. dd.ReadMapEnd()
  28913. return v, changed
  28914. }
  28915. d.depthIncr()
  28916. var mk int
  28917. var mv uint8
  28918. hasLen := containerLen > 0
  28919. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28920. if esep {
  28921. dd.ReadMapElemKey()
  28922. }
  28923. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28924. if esep {
  28925. dd.ReadMapElemValue()
  28926. }
  28927. if dd.TryDecodeAsNil() {
  28928. if v == nil {
  28929. } else if d.h.DeleteOnNilMapValue {
  28930. delete(v, mk)
  28931. } else {
  28932. v[mk] = 0
  28933. }
  28934. continue
  28935. }
  28936. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  28937. if v != nil {
  28938. v[mk] = mv
  28939. }
  28940. }
  28941. dd.ReadMapEnd()
  28942. d.depthDecr()
  28943. return v, changed
  28944. }
  28945. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  28946. if rv.Kind() == reflect.Ptr {
  28947. vp := rv2i(rv).(*map[int]uint16)
  28948. v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d)
  28949. if changed {
  28950. *vp = v
  28951. }
  28952. } else {
  28953. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  28954. }
  28955. }
  28956. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  28957. v, changed := f.DecMapIntUint16V(*vp, true, d)
  28958. if changed {
  28959. *vp = v
  28960. }
  28961. }
  28962. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  28963. d *Decoder) (_ map[int]uint16, changed bool) {
  28964. dd, esep := d.d, d.hh.hasElemSeparators()
  28965. containerLen := dd.ReadMapStart()
  28966. if canChange && v == nil {
  28967. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28968. v = make(map[int]uint16, xlen)
  28969. changed = true
  28970. }
  28971. if containerLen == 0 {
  28972. dd.ReadMapEnd()
  28973. return v, changed
  28974. }
  28975. d.depthIncr()
  28976. var mk int
  28977. var mv uint16
  28978. hasLen := containerLen > 0
  28979. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28980. if esep {
  28981. dd.ReadMapElemKey()
  28982. }
  28983. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28984. if esep {
  28985. dd.ReadMapElemValue()
  28986. }
  28987. if dd.TryDecodeAsNil() {
  28988. if v == nil {
  28989. } else if d.h.DeleteOnNilMapValue {
  28990. delete(v, mk)
  28991. } else {
  28992. v[mk] = 0
  28993. }
  28994. continue
  28995. }
  28996. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28997. if v != nil {
  28998. v[mk] = mv
  28999. }
  29000. }
  29001. dd.ReadMapEnd()
  29002. d.depthDecr()
  29003. return v, changed
  29004. }
  29005. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  29006. if rv.Kind() == reflect.Ptr {
  29007. vp := rv2i(rv).(*map[int]uint32)
  29008. v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d)
  29009. if changed {
  29010. *vp = v
  29011. }
  29012. } else {
  29013. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  29014. }
  29015. }
  29016. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  29017. v, changed := f.DecMapIntUint32V(*vp, true, d)
  29018. if changed {
  29019. *vp = v
  29020. }
  29021. }
  29022. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  29023. d *Decoder) (_ map[int]uint32, changed bool) {
  29024. dd, esep := d.d, d.hh.hasElemSeparators()
  29025. containerLen := dd.ReadMapStart()
  29026. if canChange && v == nil {
  29027. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29028. v = make(map[int]uint32, xlen)
  29029. changed = true
  29030. }
  29031. if containerLen == 0 {
  29032. dd.ReadMapEnd()
  29033. return v, changed
  29034. }
  29035. d.depthIncr()
  29036. var mk int
  29037. var mv uint32
  29038. hasLen := containerLen > 0
  29039. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29040. if esep {
  29041. dd.ReadMapElemKey()
  29042. }
  29043. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29044. if esep {
  29045. dd.ReadMapElemValue()
  29046. }
  29047. if dd.TryDecodeAsNil() {
  29048. if v == nil {
  29049. } else if d.h.DeleteOnNilMapValue {
  29050. delete(v, mk)
  29051. } else {
  29052. v[mk] = 0
  29053. }
  29054. continue
  29055. }
  29056. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  29057. if v != nil {
  29058. v[mk] = mv
  29059. }
  29060. }
  29061. dd.ReadMapEnd()
  29062. d.depthDecr()
  29063. return v, changed
  29064. }
  29065. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  29066. if rv.Kind() == reflect.Ptr {
  29067. vp := rv2i(rv).(*map[int]uint64)
  29068. v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d)
  29069. if changed {
  29070. *vp = v
  29071. }
  29072. } else {
  29073. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  29074. }
  29075. }
  29076. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  29077. v, changed := f.DecMapIntUint64V(*vp, true, d)
  29078. if changed {
  29079. *vp = v
  29080. }
  29081. }
  29082. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  29083. d *Decoder) (_ map[int]uint64, changed bool) {
  29084. dd, esep := d.d, d.hh.hasElemSeparators()
  29085. containerLen := dd.ReadMapStart()
  29086. if canChange && v == nil {
  29087. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29088. v = make(map[int]uint64, xlen)
  29089. changed = true
  29090. }
  29091. if containerLen == 0 {
  29092. dd.ReadMapEnd()
  29093. return v, changed
  29094. }
  29095. d.depthIncr()
  29096. var mk int
  29097. var mv uint64
  29098. hasLen := containerLen > 0
  29099. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29100. if esep {
  29101. dd.ReadMapElemKey()
  29102. }
  29103. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29104. if esep {
  29105. dd.ReadMapElemValue()
  29106. }
  29107. if dd.TryDecodeAsNil() {
  29108. if v == nil {
  29109. } else if d.h.DeleteOnNilMapValue {
  29110. delete(v, mk)
  29111. } else {
  29112. v[mk] = 0
  29113. }
  29114. continue
  29115. }
  29116. mv = dd.DecodeUint64()
  29117. if v != nil {
  29118. v[mk] = mv
  29119. }
  29120. }
  29121. dd.ReadMapEnd()
  29122. d.depthDecr()
  29123. return v, changed
  29124. }
  29125. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  29126. if rv.Kind() == reflect.Ptr {
  29127. vp := rv2i(rv).(*map[int]uintptr)
  29128. v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d)
  29129. if changed {
  29130. *vp = v
  29131. }
  29132. } else {
  29133. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  29134. }
  29135. }
  29136. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  29137. v, changed := f.DecMapIntUintptrV(*vp, true, d)
  29138. if changed {
  29139. *vp = v
  29140. }
  29141. }
  29142. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  29143. d *Decoder) (_ map[int]uintptr, changed bool) {
  29144. dd, esep := d.d, d.hh.hasElemSeparators()
  29145. containerLen := dd.ReadMapStart()
  29146. if canChange && v == nil {
  29147. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29148. v = make(map[int]uintptr, xlen)
  29149. changed = true
  29150. }
  29151. if containerLen == 0 {
  29152. dd.ReadMapEnd()
  29153. return v, changed
  29154. }
  29155. d.depthIncr()
  29156. var mk int
  29157. var mv uintptr
  29158. hasLen := containerLen > 0
  29159. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29160. if esep {
  29161. dd.ReadMapElemKey()
  29162. }
  29163. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29164. if esep {
  29165. dd.ReadMapElemValue()
  29166. }
  29167. if dd.TryDecodeAsNil() {
  29168. if v == nil {
  29169. } else if d.h.DeleteOnNilMapValue {
  29170. delete(v, mk)
  29171. } else {
  29172. v[mk] = 0
  29173. }
  29174. continue
  29175. }
  29176. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29177. if v != nil {
  29178. v[mk] = mv
  29179. }
  29180. }
  29181. dd.ReadMapEnd()
  29182. d.depthDecr()
  29183. return v, changed
  29184. }
  29185. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  29186. if rv.Kind() == reflect.Ptr {
  29187. vp := rv2i(rv).(*map[int]int)
  29188. v, changed := fastpathTV.DecMapIntIntV(*vp, true, d)
  29189. if changed {
  29190. *vp = v
  29191. }
  29192. } else {
  29193. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  29194. }
  29195. }
  29196. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  29197. v, changed := f.DecMapIntIntV(*vp, true, d)
  29198. if changed {
  29199. *vp = v
  29200. }
  29201. }
  29202. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  29203. d *Decoder) (_ map[int]int, changed bool) {
  29204. dd, esep := d.d, d.hh.hasElemSeparators()
  29205. containerLen := dd.ReadMapStart()
  29206. if canChange && v == nil {
  29207. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29208. v = make(map[int]int, xlen)
  29209. changed = true
  29210. }
  29211. if containerLen == 0 {
  29212. dd.ReadMapEnd()
  29213. return v, changed
  29214. }
  29215. d.depthIncr()
  29216. var mk int
  29217. var mv int
  29218. hasLen := containerLen > 0
  29219. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29220. if esep {
  29221. dd.ReadMapElemKey()
  29222. }
  29223. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29224. if esep {
  29225. dd.ReadMapElemValue()
  29226. }
  29227. if dd.TryDecodeAsNil() {
  29228. if v == nil {
  29229. } else if d.h.DeleteOnNilMapValue {
  29230. delete(v, mk)
  29231. } else {
  29232. v[mk] = 0
  29233. }
  29234. continue
  29235. }
  29236. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29237. if v != nil {
  29238. v[mk] = mv
  29239. }
  29240. }
  29241. dd.ReadMapEnd()
  29242. d.depthDecr()
  29243. return v, changed
  29244. }
  29245. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  29246. if rv.Kind() == reflect.Ptr {
  29247. vp := rv2i(rv).(*map[int]int8)
  29248. v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d)
  29249. if changed {
  29250. *vp = v
  29251. }
  29252. } else {
  29253. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  29254. }
  29255. }
  29256. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  29257. v, changed := f.DecMapIntInt8V(*vp, true, d)
  29258. if changed {
  29259. *vp = v
  29260. }
  29261. }
  29262. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  29263. d *Decoder) (_ map[int]int8, changed bool) {
  29264. dd, esep := d.d, d.hh.hasElemSeparators()
  29265. containerLen := dd.ReadMapStart()
  29266. if canChange && v == nil {
  29267. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29268. v = make(map[int]int8, xlen)
  29269. changed = true
  29270. }
  29271. if containerLen == 0 {
  29272. dd.ReadMapEnd()
  29273. return v, changed
  29274. }
  29275. d.depthIncr()
  29276. var mk int
  29277. var mv int8
  29278. hasLen := containerLen > 0
  29279. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29280. if esep {
  29281. dd.ReadMapElemKey()
  29282. }
  29283. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29284. if esep {
  29285. dd.ReadMapElemValue()
  29286. }
  29287. if dd.TryDecodeAsNil() {
  29288. if v == nil {
  29289. } else if d.h.DeleteOnNilMapValue {
  29290. delete(v, mk)
  29291. } else {
  29292. v[mk] = 0
  29293. }
  29294. continue
  29295. }
  29296. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29297. if v != nil {
  29298. v[mk] = mv
  29299. }
  29300. }
  29301. dd.ReadMapEnd()
  29302. d.depthDecr()
  29303. return v, changed
  29304. }
  29305. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  29306. if rv.Kind() == reflect.Ptr {
  29307. vp := rv2i(rv).(*map[int]int16)
  29308. v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d)
  29309. if changed {
  29310. *vp = v
  29311. }
  29312. } else {
  29313. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  29314. }
  29315. }
  29316. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  29317. v, changed := f.DecMapIntInt16V(*vp, true, d)
  29318. if changed {
  29319. *vp = v
  29320. }
  29321. }
  29322. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  29323. d *Decoder) (_ map[int]int16, changed bool) {
  29324. dd, esep := d.d, d.hh.hasElemSeparators()
  29325. containerLen := dd.ReadMapStart()
  29326. if canChange && v == nil {
  29327. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29328. v = make(map[int]int16, xlen)
  29329. changed = true
  29330. }
  29331. if containerLen == 0 {
  29332. dd.ReadMapEnd()
  29333. return v, changed
  29334. }
  29335. d.depthIncr()
  29336. var mk int
  29337. var mv int16
  29338. hasLen := containerLen > 0
  29339. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29340. if esep {
  29341. dd.ReadMapElemKey()
  29342. }
  29343. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29344. if esep {
  29345. dd.ReadMapElemValue()
  29346. }
  29347. if dd.TryDecodeAsNil() {
  29348. if v == nil {
  29349. } else if d.h.DeleteOnNilMapValue {
  29350. delete(v, mk)
  29351. } else {
  29352. v[mk] = 0
  29353. }
  29354. continue
  29355. }
  29356. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29357. if v != nil {
  29358. v[mk] = mv
  29359. }
  29360. }
  29361. dd.ReadMapEnd()
  29362. d.depthDecr()
  29363. return v, changed
  29364. }
  29365. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  29366. if rv.Kind() == reflect.Ptr {
  29367. vp := rv2i(rv).(*map[int]int32)
  29368. v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d)
  29369. if changed {
  29370. *vp = v
  29371. }
  29372. } else {
  29373. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  29374. }
  29375. }
  29376. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  29377. v, changed := f.DecMapIntInt32V(*vp, true, d)
  29378. if changed {
  29379. *vp = v
  29380. }
  29381. }
  29382. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  29383. d *Decoder) (_ map[int]int32, changed bool) {
  29384. dd, esep := d.d, d.hh.hasElemSeparators()
  29385. containerLen := dd.ReadMapStart()
  29386. if canChange && v == nil {
  29387. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29388. v = make(map[int]int32, xlen)
  29389. changed = true
  29390. }
  29391. if containerLen == 0 {
  29392. dd.ReadMapEnd()
  29393. return v, changed
  29394. }
  29395. d.depthIncr()
  29396. var mk int
  29397. var mv int32
  29398. hasLen := containerLen > 0
  29399. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29400. if esep {
  29401. dd.ReadMapElemKey()
  29402. }
  29403. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29404. if esep {
  29405. dd.ReadMapElemValue()
  29406. }
  29407. if dd.TryDecodeAsNil() {
  29408. if v == nil {
  29409. } else if d.h.DeleteOnNilMapValue {
  29410. delete(v, mk)
  29411. } else {
  29412. v[mk] = 0
  29413. }
  29414. continue
  29415. }
  29416. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  29417. if v != nil {
  29418. v[mk] = mv
  29419. }
  29420. }
  29421. dd.ReadMapEnd()
  29422. d.depthDecr()
  29423. return v, changed
  29424. }
  29425. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  29426. if rv.Kind() == reflect.Ptr {
  29427. vp := rv2i(rv).(*map[int]int64)
  29428. v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d)
  29429. if changed {
  29430. *vp = v
  29431. }
  29432. } else {
  29433. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  29434. }
  29435. }
  29436. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  29437. v, changed := f.DecMapIntInt64V(*vp, true, d)
  29438. if changed {
  29439. *vp = v
  29440. }
  29441. }
  29442. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  29443. d *Decoder) (_ map[int]int64, changed bool) {
  29444. dd, esep := d.d, d.hh.hasElemSeparators()
  29445. containerLen := dd.ReadMapStart()
  29446. if canChange && v == nil {
  29447. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29448. v = make(map[int]int64, xlen)
  29449. changed = true
  29450. }
  29451. if containerLen == 0 {
  29452. dd.ReadMapEnd()
  29453. return v, changed
  29454. }
  29455. d.depthIncr()
  29456. var mk int
  29457. var mv int64
  29458. hasLen := containerLen > 0
  29459. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29460. if esep {
  29461. dd.ReadMapElemKey()
  29462. }
  29463. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29464. if esep {
  29465. dd.ReadMapElemValue()
  29466. }
  29467. if dd.TryDecodeAsNil() {
  29468. if v == nil {
  29469. } else if d.h.DeleteOnNilMapValue {
  29470. delete(v, mk)
  29471. } else {
  29472. v[mk] = 0
  29473. }
  29474. continue
  29475. }
  29476. mv = dd.DecodeInt64()
  29477. if v != nil {
  29478. v[mk] = mv
  29479. }
  29480. }
  29481. dd.ReadMapEnd()
  29482. d.depthDecr()
  29483. return v, changed
  29484. }
  29485. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  29486. if rv.Kind() == reflect.Ptr {
  29487. vp := rv2i(rv).(*map[int]float32)
  29488. v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d)
  29489. if changed {
  29490. *vp = v
  29491. }
  29492. } else {
  29493. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  29494. }
  29495. }
  29496. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  29497. v, changed := f.DecMapIntFloat32V(*vp, true, d)
  29498. if changed {
  29499. *vp = v
  29500. }
  29501. }
  29502. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  29503. d *Decoder) (_ map[int]float32, changed bool) {
  29504. dd, esep := d.d, d.hh.hasElemSeparators()
  29505. containerLen := dd.ReadMapStart()
  29506. if canChange && v == nil {
  29507. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29508. v = make(map[int]float32, xlen)
  29509. changed = true
  29510. }
  29511. if containerLen == 0 {
  29512. dd.ReadMapEnd()
  29513. return v, changed
  29514. }
  29515. d.depthIncr()
  29516. var mk int
  29517. var mv float32
  29518. hasLen := containerLen > 0
  29519. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29520. if esep {
  29521. dd.ReadMapElemKey()
  29522. }
  29523. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29524. if esep {
  29525. dd.ReadMapElemValue()
  29526. }
  29527. if dd.TryDecodeAsNil() {
  29528. if v == nil {
  29529. } else if d.h.DeleteOnNilMapValue {
  29530. delete(v, mk)
  29531. } else {
  29532. v[mk] = 0
  29533. }
  29534. continue
  29535. }
  29536. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  29537. if v != nil {
  29538. v[mk] = mv
  29539. }
  29540. }
  29541. dd.ReadMapEnd()
  29542. d.depthDecr()
  29543. return v, changed
  29544. }
  29545. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  29546. if rv.Kind() == reflect.Ptr {
  29547. vp := rv2i(rv).(*map[int]float64)
  29548. v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d)
  29549. if changed {
  29550. *vp = v
  29551. }
  29552. } else {
  29553. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  29554. }
  29555. }
  29556. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  29557. v, changed := f.DecMapIntFloat64V(*vp, true, d)
  29558. if changed {
  29559. *vp = v
  29560. }
  29561. }
  29562. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  29563. d *Decoder) (_ map[int]float64, changed bool) {
  29564. dd, esep := d.d, d.hh.hasElemSeparators()
  29565. containerLen := dd.ReadMapStart()
  29566. if canChange && v == nil {
  29567. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29568. v = make(map[int]float64, xlen)
  29569. changed = true
  29570. }
  29571. if containerLen == 0 {
  29572. dd.ReadMapEnd()
  29573. return v, changed
  29574. }
  29575. d.depthIncr()
  29576. var mk int
  29577. var mv float64
  29578. hasLen := containerLen > 0
  29579. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29580. if esep {
  29581. dd.ReadMapElemKey()
  29582. }
  29583. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29584. if esep {
  29585. dd.ReadMapElemValue()
  29586. }
  29587. if dd.TryDecodeAsNil() {
  29588. if v == nil {
  29589. } else if d.h.DeleteOnNilMapValue {
  29590. delete(v, mk)
  29591. } else {
  29592. v[mk] = 0
  29593. }
  29594. continue
  29595. }
  29596. mv = dd.DecodeFloat64()
  29597. if v != nil {
  29598. v[mk] = mv
  29599. }
  29600. }
  29601. dd.ReadMapEnd()
  29602. d.depthDecr()
  29603. return v, changed
  29604. }
  29605. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  29606. if rv.Kind() == reflect.Ptr {
  29607. vp := rv2i(rv).(*map[int]bool)
  29608. v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d)
  29609. if changed {
  29610. *vp = v
  29611. }
  29612. } else {
  29613. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  29614. }
  29615. }
  29616. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  29617. v, changed := f.DecMapIntBoolV(*vp, true, d)
  29618. if changed {
  29619. *vp = v
  29620. }
  29621. }
  29622. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  29623. d *Decoder) (_ map[int]bool, changed bool) {
  29624. dd, esep := d.d, d.hh.hasElemSeparators()
  29625. containerLen := dd.ReadMapStart()
  29626. if canChange && v == nil {
  29627. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29628. v = make(map[int]bool, xlen)
  29629. changed = true
  29630. }
  29631. if containerLen == 0 {
  29632. dd.ReadMapEnd()
  29633. return v, changed
  29634. }
  29635. d.depthIncr()
  29636. var mk int
  29637. var mv bool
  29638. hasLen := containerLen > 0
  29639. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29640. if esep {
  29641. dd.ReadMapElemKey()
  29642. }
  29643. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29644. if esep {
  29645. dd.ReadMapElemValue()
  29646. }
  29647. if dd.TryDecodeAsNil() {
  29648. if v == nil {
  29649. } else if d.h.DeleteOnNilMapValue {
  29650. delete(v, mk)
  29651. } else {
  29652. v[mk] = false
  29653. }
  29654. continue
  29655. }
  29656. mv = dd.DecodeBool()
  29657. if v != nil {
  29658. v[mk] = mv
  29659. }
  29660. }
  29661. dd.ReadMapEnd()
  29662. d.depthDecr()
  29663. return v, changed
  29664. }
  29665. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  29666. if rv.Kind() == reflect.Ptr {
  29667. vp := rv2i(rv).(*map[int8]interface{})
  29668. v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d)
  29669. if changed {
  29670. *vp = v
  29671. }
  29672. } else {
  29673. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  29674. }
  29675. }
  29676. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  29677. v, changed := f.DecMapInt8IntfV(*vp, true, d)
  29678. if changed {
  29679. *vp = v
  29680. }
  29681. }
  29682. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  29683. d *Decoder) (_ map[int8]interface{}, changed bool) {
  29684. dd, esep := d.d, d.hh.hasElemSeparators()
  29685. containerLen := dd.ReadMapStart()
  29686. if canChange && v == nil {
  29687. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29688. v = make(map[int8]interface{}, xlen)
  29689. changed = true
  29690. }
  29691. if containerLen == 0 {
  29692. dd.ReadMapEnd()
  29693. return v, changed
  29694. }
  29695. d.depthIncr()
  29696. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  29697. var mk int8
  29698. var mv interface{}
  29699. hasLen := containerLen > 0
  29700. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29701. if esep {
  29702. dd.ReadMapElemKey()
  29703. }
  29704. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29705. if esep {
  29706. dd.ReadMapElemValue()
  29707. }
  29708. if dd.TryDecodeAsNil() {
  29709. if v == nil {
  29710. } else if d.h.DeleteOnNilMapValue {
  29711. delete(v, mk)
  29712. } else {
  29713. v[mk] = nil
  29714. }
  29715. continue
  29716. }
  29717. if mapGet {
  29718. mv = v[mk]
  29719. } else {
  29720. mv = nil
  29721. }
  29722. d.decode(&mv)
  29723. if v != nil {
  29724. v[mk] = mv
  29725. }
  29726. }
  29727. dd.ReadMapEnd()
  29728. d.depthDecr()
  29729. return v, changed
  29730. }
  29731. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  29732. if rv.Kind() == reflect.Ptr {
  29733. vp := rv2i(rv).(*map[int8]string)
  29734. v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d)
  29735. if changed {
  29736. *vp = v
  29737. }
  29738. } else {
  29739. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  29740. }
  29741. }
  29742. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  29743. v, changed := f.DecMapInt8StringV(*vp, true, d)
  29744. if changed {
  29745. *vp = v
  29746. }
  29747. }
  29748. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  29749. d *Decoder) (_ map[int8]string, changed bool) {
  29750. dd, esep := d.d, d.hh.hasElemSeparators()
  29751. containerLen := dd.ReadMapStart()
  29752. if canChange && v == nil {
  29753. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29754. v = make(map[int8]string, xlen)
  29755. changed = true
  29756. }
  29757. if containerLen == 0 {
  29758. dd.ReadMapEnd()
  29759. return v, changed
  29760. }
  29761. d.depthIncr()
  29762. var mk int8
  29763. var mv string
  29764. hasLen := containerLen > 0
  29765. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29766. if esep {
  29767. dd.ReadMapElemKey()
  29768. }
  29769. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29770. if esep {
  29771. dd.ReadMapElemValue()
  29772. }
  29773. if dd.TryDecodeAsNil() {
  29774. if v == nil {
  29775. } else if d.h.DeleteOnNilMapValue {
  29776. delete(v, mk)
  29777. } else {
  29778. v[mk] = ""
  29779. }
  29780. continue
  29781. }
  29782. mv = dd.DecodeString()
  29783. if v != nil {
  29784. v[mk] = mv
  29785. }
  29786. }
  29787. dd.ReadMapEnd()
  29788. d.depthDecr()
  29789. return v, changed
  29790. }
  29791. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  29792. if rv.Kind() == reflect.Ptr {
  29793. vp := rv2i(rv).(*map[int8]uint)
  29794. v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d)
  29795. if changed {
  29796. *vp = v
  29797. }
  29798. } else {
  29799. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  29800. }
  29801. }
  29802. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  29803. v, changed := f.DecMapInt8UintV(*vp, true, d)
  29804. if changed {
  29805. *vp = v
  29806. }
  29807. }
  29808. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  29809. d *Decoder) (_ map[int8]uint, changed bool) {
  29810. dd, esep := d.d, d.hh.hasElemSeparators()
  29811. containerLen := dd.ReadMapStart()
  29812. if canChange && v == nil {
  29813. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29814. v = make(map[int8]uint, xlen)
  29815. changed = true
  29816. }
  29817. if containerLen == 0 {
  29818. dd.ReadMapEnd()
  29819. return v, changed
  29820. }
  29821. d.depthIncr()
  29822. var mk int8
  29823. var mv uint
  29824. hasLen := containerLen > 0
  29825. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29826. if esep {
  29827. dd.ReadMapElemKey()
  29828. }
  29829. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29830. if esep {
  29831. dd.ReadMapElemValue()
  29832. }
  29833. if dd.TryDecodeAsNil() {
  29834. if v == nil {
  29835. } else if d.h.DeleteOnNilMapValue {
  29836. delete(v, mk)
  29837. } else {
  29838. v[mk] = 0
  29839. }
  29840. continue
  29841. }
  29842. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29843. if v != nil {
  29844. v[mk] = mv
  29845. }
  29846. }
  29847. dd.ReadMapEnd()
  29848. d.depthDecr()
  29849. return v, changed
  29850. }
  29851. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  29852. if rv.Kind() == reflect.Ptr {
  29853. vp := rv2i(rv).(*map[int8]uint8)
  29854. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d)
  29855. if changed {
  29856. *vp = v
  29857. }
  29858. } else {
  29859. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  29860. }
  29861. }
  29862. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  29863. v, changed := f.DecMapInt8Uint8V(*vp, true, d)
  29864. if changed {
  29865. *vp = v
  29866. }
  29867. }
  29868. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  29869. d *Decoder) (_ map[int8]uint8, changed bool) {
  29870. dd, esep := d.d, d.hh.hasElemSeparators()
  29871. containerLen := dd.ReadMapStart()
  29872. if canChange && v == nil {
  29873. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29874. v = make(map[int8]uint8, xlen)
  29875. changed = true
  29876. }
  29877. if containerLen == 0 {
  29878. dd.ReadMapEnd()
  29879. return v, changed
  29880. }
  29881. d.depthIncr()
  29882. var mk int8
  29883. var mv uint8
  29884. hasLen := containerLen > 0
  29885. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29886. if esep {
  29887. dd.ReadMapElemKey()
  29888. }
  29889. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29890. if esep {
  29891. dd.ReadMapElemValue()
  29892. }
  29893. if dd.TryDecodeAsNil() {
  29894. if v == nil {
  29895. } else if d.h.DeleteOnNilMapValue {
  29896. delete(v, mk)
  29897. } else {
  29898. v[mk] = 0
  29899. }
  29900. continue
  29901. }
  29902. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  29903. if v != nil {
  29904. v[mk] = mv
  29905. }
  29906. }
  29907. dd.ReadMapEnd()
  29908. d.depthDecr()
  29909. return v, changed
  29910. }
  29911. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  29912. if rv.Kind() == reflect.Ptr {
  29913. vp := rv2i(rv).(*map[int8]uint16)
  29914. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d)
  29915. if changed {
  29916. *vp = v
  29917. }
  29918. } else {
  29919. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  29920. }
  29921. }
  29922. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  29923. v, changed := f.DecMapInt8Uint16V(*vp, true, d)
  29924. if changed {
  29925. *vp = v
  29926. }
  29927. }
  29928. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  29929. d *Decoder) (_ map[int8]uint16, changed bool) {
  29930. dd, esep := d.d, d.hh.hasElemSeparators()
  29931. containerLen := dd.ReadMapStart()
  29932. if canChange && v == nil {
  29933. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29934. v = make(map[int8]uint16, xlen)
  29935. changed = true
  29936. }
  29937. if containerLen == 0 {
  29938. dd.ReadMapEnd()
  29939. return v, changed
  29940. }
  29941. d.depthIncr()
  29942. var mk int8
  29943. var mv uint16
  29944. hasLen := containerLen > 0
  29945. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29946. if esep {
  29947. dd.ReadMapElemKey()
  29948. }
  29949. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29950. if esep {
  29951. dd.ReadMapElemValue()
  29952. }
  29953. if dd.TryDecodeAsNil() {
  29954. if v == nil {
  29955. } else if d.h.DeleteOnNilMapValue {
  29956. delete(v, mk)
  29957. } else {
  29958. v[mk] = 0
  29959. }
  29960. continue
  29961. }
  29962. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  29963. if v != nil {
  29964. v[mk] = mv
  29965. }
  29966. }
  29967. dd.ReadMapEnd()
  29968. d.depthDecr()
  29969. return v, changed
  29970. }
  29971. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  29972. if rv.Kind() == reflect.Ptr {
  29973. vp := rv2i(rv).(*map[int8]uint32)
  29974. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d)
  29975. if changed {
  29976. *vp = v
  29977. }
  29978. } else {
  29979. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  29980. }
  29981. }
  29982. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  29983. v, changed := f.DecMapInt8Uint32V(*vp, true, d)
  29984. if changed {
  29985. *vp = v
  29986. }
  29987. }
  29988. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  29989. d *Decoder) (_ map[int8]uint32, changed bool) {
  29990. dd, esep := d.d, d.hh.hasElemSeparators()
  29991. containerLen := dd.ReadMapStart()
  29992. if canChange && v == nil {
  29993. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29994. v = make(map[int8]uint32, xlen)
  29995. changed = true
  29996. }
  29997. if containerLen == 0 {
  29998. dd.ReadMapEnd()
  29999. return v, changed
  30000. }
  30001. d.depthIncr()
  30002. var mk int8
  30003. var mv uint32
  30004. hasLen := containerLen > 0
  30005. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30006. if esep {
  30007. dd.ReadMapElemKey()
  30008. }
  30009. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30010. if esep {
  30011. dd.ReadMapElemValue()
  30012. }
  30013. if dd.TryDecodeAsNil() {
  30014. if v == nil {
  30015. } else if d.h.DeleteOnNilMapValue {
  30016. delete(v, mk)
  30017. } else {
  30018. v[mk] = 0
  30019. }
  30020. continue
  30021. }
  30022. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30023. if v != nil {
  30024. v[mk] = mv
  30025. }
  30026. }
  30027. dd.ReadMapEnd()
  30028. d.depthDecr()
  30029. return v, changed
  30030. }
  30031. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  30032. if rv.Kind() == reflect.Ptr {
  30033. vp := rv2i(rv).(*map[int8]uint64)
  30034. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d)
  30035. if changed {
  30036. *vp = v
  30037. }
  30038. } else {
  30039. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  30040. }
  30041. }
  30042. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  30043. v, changed := f.DecMapInt8Uint64V(*vp, true, d)
  30044. if changed {
  30045. *vp = v
  30046. }
  30047. }
  30048. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  30049. d *Decoder) (_ map[int8]uint64, changed bool) {
  30050. dd, esep := d.d, d.hh.hasElemSeparators()
  30051. containerLen := dd.ReadMapStart()
  30052. if canChange && v == nil {
  30053. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30054. v = make(map[int8]uint64, xlen)
  30055. changed = true
  30056. }
  30057. if containerLen == 0 {
  30058. dd.ReadMapEnd()
  30059. return v, changed
  30060. }
  30061. d.depthIncr()
  30062. var mk int8
  30063. var mv uint64
  30064. hasLen := containerLen > 0
  30065. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30066. if esep {
  30067. dd.ReadMapElemKey()
  30068. }
  30069. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30070. if esep {
  30071. dd.ReadMapElemValue()
  30072. }
  30073. if dd.TryDecodeAsNil() {
  30074. if v == nil {
  30075. } else if d.h.DeleteOnNilMapValue {
  30076. delete(v, mk)
  30077. } else {
  30078. v[mk] = 0
  30079. }
  30080. continue
  30081. }
  30082. mv = dd.DecodeUint64()
  30083. if v != nil {
  30084. v[mk] = mv
  30085. }
  30086. }
  30087. dd.ReadMapEnd()
  30088. d.depthDecr()
  30089. return v, changed
  30090. }
  30091. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  30092. if rv.Kind() == reflect.Ptr {
  30093. vp := rv2i(rv).(*map[int8]uintptr)
  30094. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d)
  30095. if changed {
  30096. *vp = v
  30097. }
  30098. } else {
  30099. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  30100. }
  30101. }
  30102. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  30103. v, changed := f.DecMapInt8UintptrV(*vp, true, d)
  30104. if changed {
  30105. *vp = v
  30106. }
  30107. }
  30108. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  30109. d *Decoder) (_ map[int8]uintptr, changed bool) {
  30110. dd, esep := d.d, d.hh.hasElemSeparators()
  30111. containerLen := dd.ReadMapStart()
  30112. if canChange && v == nil {
  30113. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30114. v = make(map[int8]uintptr, xlen)
  30115. changed = true
  30116. }
  30117. if containerLen == 0 {
  30118. dd.ReadMapEnd()
  30119. return v, changed
  30120. }
  30121. d.depthIncr()
  30122. var mk int8
  30123. var mv uintptr
  30124. hasLen := containerLen > 0
  30125. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30126. if esep {
  30127. dd.ReadMapElemKey()
  30128. }
  30129. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30130. if esep {
  30131. dd.ReadMapElemValue()
  30132. }
  30133. if dd.TryDecodeAsNil() {
  30134. if v == nil {
  30135. } else if d.h.DeleteOnNilMapValue {
  30136. delete(v, mk)
  30137. } else {
  30138. v[mk] = 0
  30139. }
  30140. continue
  30141. }
  30142. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30143. if v != nil {
  30144. v[mk] = mv
  30145. }
  30146. }
  30147. dd.ReadMapEnd()
  30148. d.depthDecr()
  30149. return v, changed
  30150. }
  30151. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  30152. if rv.Kind() == reflect.Ptr {
  30153. vp := rv2i(rv).(*map[int8]int)
  30154. v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d)
  30155. if changed {
  30156. *vp = v
  30157. }
  30158. } else {
  30159. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  30160. }
  30161. }
  30162. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  30163. v, changed := f.DecMapInt8IntV(*vp, true, d)
  30164. if changed {
  30165. *vp = v
  30166. }
  30167. }
  30168. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  30169. d *Decoder) (_ map[int8]int, changed bool) {
  30170. dd, esep := d.d, d.hh.hasElemSeparators()
  30171. containerLen := dd.ReadMapStart()
  30172. if canChange && v == nil {
  30173. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30174. v = make(map[int8]int, xlen)
  30175. changed = true
  30176. }
  30177. if containerLen == 0 {
  30178. dd.ReadMapEnd()
  30179. return v, changed
  30180. }
  30181. d.depthIncr()
  30182. var mk int8
  30183. var mv int
  30184. hasLen := containerLen > 0
  30185. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30186. if esep {
  30187. dd.ReadMapElemKey()
  30188. }
  30189. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30190. if esep {
  30191. dd.ReadMapElemValue()
  30192. }
  30193. if dd.TryDecodeAsNil() {
  30194. if v == nil {
  30195. } else if d.h.DeleteOnNilMapValue {
  30196. delete(v, mk)
  30197. } else {
  30198. v[mk] = 0
  30199. }
  30200. continue
  30201. }
  30202. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  30203. if v != nil {
  30204. v[mk] = mv
  30205. }
  30206. }
  30207. dd.ReadMapEnd()
  30208. d.depthDecr()
  30209. return v, changed
  30210. }
  30211. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  30212. if rv.Kind() == reflect.Ptr {
  30213. vp := rv2i(rv).(*map[int8]int8)
  30214. v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d)
  30215. if changed {
  30216. *vp = v
  30217. }
  30218. } else {
  30219. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  30220. }
  30221. }
  30222. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  30223. v, changed := f.DecMapInt8Int8V(*vp, true, d)
  30224. if changed {
  30225. *vp = v
  30226. }
  30227. }
  30228. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  30229. d *Decoder) (_ map[int8]int8, changed bool) {
  30230. dd, esep := d.d, d.hh.hasElemSeparators()
  30231. containerLen := dd.ReadMapStart()
  30232. if canChange && v == nil {
  30233. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30234. v = make(map[int8]int8, xlen)
  30235. changed = true
  30236. }
  30237. if containerLen == 0 {
  30238. dd.ReadMapEnd()
  30239. return v, changed
  30240. }
  30241. d.depthIncr()
  30242. var mk int8
  30243. var mv int8
  30244. hasLen := containerLen > 0
  30245. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30246. if esep {
  30247. dd.ReadMapElemKey()
  30248. }
  30249. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30250. if esep {
  30251. dd.ReadMapElemValue()
  30252. }
  30253. if dd.TryDecodeAsNil() {
  30254. if v == nil {
  30255. } else if d.h.DeleteOnNilMapValue {
  30256. delete(v, mk)
  30257. } else {
  30258. v[mk] = 0
  30259. }
  30260. continue
  30261. }
  30262. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30263. if v != nil {
  30264. v[mk] = mv
  30265. }
  30266. }
  30267. dd.ReadMapEnd()
  30268. d.depthDecr()
  30269. return v, changed
  30270. }
  30271. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  30272. if rv.Kind() == reflect.Ptr {
  30273. vp := rv2i(rv).(*map[int8]int16)
  30274. v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d)
  30275. if changed {
  30276. *vp = v
  30277. }
  30278. } else {
  30279. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  30280. }
  30281. }
  30282. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  30283. v, changed := f.DecMapInt8Int16V(*vp, true, d)
  30284. if changed {
  30285. *vp = v
  30286. }
  30287. }
  30288. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  30289. d *Decoder) (_ map[int8]int16, changed bool) {
  30290. dd, esep := d.d, d.hh.hasElemSeparators()
  30291. containerLen := dd.ReadMapStart()
  30292. if canChange && v == nil {
  30293. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30294. v = make(map[int8]int16, xlen)
  30295. changed = true
  30296. }
  30297. if containerLen == 0 {
  30298. dd.ReadMapEnd()
  30299. return v, changed
  30300. }
  30301. d.depthIncr()
  30302. var mk int8
  30303. var mv int16
  30304. hasLen := containerLen > 0
  30305. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30306. if esep {
  30307. dd.ReadMapElemKey()
  30308. }
  30309. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30310. if esep {
  30311. dd.ReadMapElemValue()
  30312. }
  30313. if dd.TryDecodeAsNil() {
  30314. if v == nil {
  30315. } else if d.h.DeleteOnNilMapValue {
  30316. delete(v, mk)
  30317. } else {
  30318. v[mk] = 0
  30319. }
  30320. continue
  30321. }
  30322. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30323. if v != nil {
  30324. v[mk] = mv
  30325. }
  30326. }
  30327. dd.ReadMapEnd()
  30328. d.depthDecr()
  30329. return v, changed
  30330. }
  30331. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  30332. if rv.Kind() == reflect.Ptr {
  30333. vp := rv2i(rv).(*map[int8]int32)
  30334. v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d)
  30335. if changed {
  30336. *vp = v
  30337. }
  30338. } else {
  30339. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  30340. }
  30341. }
  30342. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  30343. v, changed := f.DecMapInt8Int32V(*vp, true, d)
  30344. if changed {
  30345. *vp = v
  30346. }
  30347. }
  30348. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  30349. d *Decoder) (_ map[int8]int32, changed bool) {
  30350. dd, esep := d.d, d.hh.hasElemSeparators()
  30351. containerLen := dd.ReadMapStart()
  30352. if canChange && v == nil {
  30353. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30354. v = make(map[int8]int32, xlen)
  30355. changed = true
  30356. }
  30357. if containerLen == 0 {
  30358. dd.ReadMapEnd()
  30359. return v, changed
  30360. }
  30361. d.depthIncr()
  30362. var mk int8
  30363. var mv int32
  30364. hasLen := containerLen > 0
  30365. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30366. if esep {
  30367. dd.ReadMapElemKey()
  30368. }
  30369. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30370. if esep {
  30371. dd.ReadMapElemValue()
  30372. }
  30373. if dd.TryDecodeAsNil() {
  30374. if v == nil {
  30375. } else if d.h.DeleteOnNilMapValue {
  30376. delete(v, mk)
  30377. } else {
  30378. v[mk] = 0
  30379. }
  30380. continue
  30381. }
  30382. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30383. if v != nil {
  30384. v[mk] = mv
  30385. }
  30386. }
  30387. dd.ReadMapEnd()
  30388. d.depthDecr()
  30389. return v, changed
  30390. }
  30391. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  30392. if rv.Kind() == reflect.Ptr {
  30393. vp := rv2i(rv).(*map[int8]int64)
  30394. v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d)
  30395. if changed {
  30396. *vp = v
  30397. }
  30398. } else {
  30399. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  30400. }
  30401. }
  30402. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  30403. v, changed := f.DecMapInt8Int64V(*vp, true, d)
  30404. if changed {
  30405. *vp = v
  30406. }
  30407. }
  30408. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  30409. d *Decoder) (_ map[int8]int64, changed bool) {
  30410. dd, esep := d.d, d.hh.hasElemSeparators()
  30411. containerLen := dd.ReadMapStart()
  30412. if canChange && v == nil {
  30413. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30414. v = make(map[int8]int64, xlen)
  30415. changed = true
  30416. }
  30417. if containerLen == 0 {
  30418. dd.ReadMapEnd()
  30419. return v, changed
  30420. }
  30421. d.depthIncr()
  30422. var mk int8
  30423. var mv int64
  30424. hasLen := containerLen > 0
  30425. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30426. if esep {
  30427. dd.ReadMapElemKey()
  30428. }
  30429. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30430. if esep {
  30431. dd.ReadMapElemValue()
  30432. }
  30433. if dd.TryDecodeAsNil() {
  30434. if v == nil {
  30435. } else if d.h.DeleteOnNilMapValue {
  30436. delete(v, mk)
  30437. } else {
  30438. v[mk] = 0
  30439. }
  30440. continue
  30441. }
  30442. mv = dd.DecodeInt64()
  30443. if v != nil {
  30444. v[mk] = mv
  30445. }
  30446. }
  30447. dd.ReadMapEnd()
  30448. d.depthDecr()
  30449. return v, changed
  30450. }
  30451. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  30452. if rv.Kind() == reflect.Ptr {
  30453. vp := rv2i(rv).(*map[int8]float32)
  30454. v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d)
  30455. if changed {
  30456. *vp = v
  30457. }
  30458. } else {
  30459. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  30460. }
  30461. }
  30462. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  30463. v, changed := f.DecMapInt8Float32V(*vp, true, d)
  30464. if changed {
  30465. *vp = v
  30466. }
  30467. }
  30468. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  30469. d *Decoder) (_ map[int8]float32, changed bool) {
  30470. dd, esep := d.d, d.hh.hasElemSeparators()
  30471. containerLen := dd.ReadMapStart()
  30472. if canChange && v == nil {
  30473. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30474. v = make(map[int8]float32, xlen)
  30475. changed = true
  30476. }
  30477. if containerLen == 0 {
  30478. dd.ReadMapEnd()
  30479. return v, changed
  30480. }
  30481. d.depthIncr()
  30482. var mk int8
  30483. var mv float32
  30484. hasLen := containerLen > 0
  30485. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30486. if esep {
  30487. dd.ReadMapElemKey()
  30488. }
  30489. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30490. if esep {
  30491. dd.ReadMapElemValue()
  30492. }
  30493. if dd.TryDecodeAsNil() {
  30494. if v == nil {
  30495. } else if d.h.DeleteOnNilMapValue {
  30496. delete(v, mk)
  30497. } else {
  30498. v[mk] = 0
  30499. }
  30500. continue
  30501. }
  30502. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  30503. if v != nil {
  30504. v[mk] = mv
  30505. }
  30506. }
  30507. dd.ReadMapEnd()
  30508. d.depthDecr()
  30509. return v, changed
  30510. }
  30511. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  30512. if rv.Kind() == reflect.Ptr {
  30513. vp := rv2i(rv).(*map[int8]float64)
  30514. v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d)
  30515. if changed {
  30516. *vp = v
  30517. }
  30518. } else {
  30519. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  30520. }
  30521. }
  30522. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  30523. v, changed := f.DecMapInt8Float64V(*vp, true, d)
  30524. if changed {
  30525. *vp = v
  30526. }
  30527. }
  30528. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  30529. d *Decoder) (_ map[int8]float64, changed bool) {
  30530. dd, esep := d.d, d.hh.hasElemSeparators()
  30531. containerLen := dd.ReadMapStart()
  30532. if canChange && v == nil {
  30533. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30534. v = make(map[int8]float64, xlen)
  30535. changed = true
  30536. }
  30537. if containerLen == 0 {
  30538. dd.ReadMapEnd()
  30539. return v, changed
  30540. }
  30541. d.depthIncr()
  30542. var mk int8
  30543. var mv float64
  30544. hasLen := containerLen > 0
  30545. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30546. if esep {
  30547. dd.ReadMapElemKey()
  30548. }
  30549. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30550. if esep {
  30551. dd.ReadMapElemValue()
  30552. }
  30553. if dd.TryDecodeAsNil() {
  30554. if v == nil {
  30555. } else if d.h.DeleteOnNilMapValue {
  30556. delete(v, mk)
  30557. } else {
  30558. v[mk] = 0
  30559. }
  30560. continue
  30561. }
  30562. mv = dd.DecodeFloat64()
  30563. if v != nil {
  30564. v[mk] = mv
  30565. }
  30566. }
  30567. dd.ReadMapEnd()
  30568. d.depthDecr()
  30569. return v, changed
  30570. }
  30571. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  30572. if rv.Kind() == reflect.Ptr {
  30573. vp := rv2i(rv).(*map[int8]bool)
  30574. v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d)
  30575. if changed {
  30576. *vp = v
  30577. }
  30578. } else {
  30579. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  30580. }
  30581. }
  30582. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  30583. v, changed := f.DecMapInt8BoolV(*vp, true, d)
  30584. if changed {
  30585. *vp = v
  30586. }
  30587. }
  30588. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  30589. d *Decoder) (_ map[int8]bool, changed bool) {
  30590. dd, esep := d.d, d.hh.hasElemSeparators()
  30591. containerLen := dd.ReadMapStart()
  30592. if canChange && v == nil {
  30593. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30594. v = make(map[int8]bool, xlen)
  30595. changed = true
  30596. }
  30597. if containerLen == 0 {
  30598. dd.ReadMapEnd()
  30599. return v, changed
  30600. }
  30601. d.depthIncr()
  30602. var mk int8
  30603. var mv bool
  30604. hasLen := containerLen > 0
  30605. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30606. if esep {
  30607. dd.ReadMapElemKey()
  30608. }
  30609. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30610. if esep {
  30611. dd.ReadMapElemValue()
  30612. }
  30613. if dd.TryDecodeAsNil() {
  30614. if v == nil {
  30615. } else if d.h.DeleteOnNilMapValue {
  30616. delete(v, mk)
  30617. } else {
  30618. v[mk] = false
  30619. }
  30620. continue
  30621. }
  30622. mv = dd.DecodeBool()
  30623. if v != nil {
  30624. v[mk] = mv
  30625. }
  30626. }
  30627. dd.ReadMapEnd()
  30628. d.depthDecr()
  30629. return v, changed
  30630. }
  30631. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  30632. if rv.Kind() == reflect.Ptr {
  30633. vp := rv2i(rv).(*map[int16]interface{})
  30634. v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d)
  30635. if changed {
  30636. *vp = v
  30637. }
  30638. } else {
  30639. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  30640. }
  30641. }
  30642. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  30643. v, changed := f.DecMapInt16IntfV(*vp, true, d)
  30644. if changed {
  30645. *vp = v
  30646. }
  30647. }
  30648. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  30649. d *Decoder) (_ map[int16]interface{}, changed bool) {
  30650. dd, esep := d.d, d.hh.hasElemSeparators()
  30651. containerLen := dd.ReadMapStart()
  30652. if canChange && v == nil {
  30653. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30654. v = make(map[int16]interface{}, xlen)
  30655. changed = true
  30656. }
  30657. if containerLen == 0 {
  30658. dd.ReadMapEnd()
  30659. return v, changed
  30660. }
  30661. d.depthIncr()
  30662. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  30663. var mk int16
  30664. var mv interface{}
  30665. hasLen := containerLen > 0
  30666. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30667. if esep {
  30668. dd.ReadMapElemKey()
  30669. }
  30670. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30671. if esep {
  30672. dd.ReadMapElemValue()
  30673. }
  30674. if dd.TryDecodeAsNil() {
  30675. if v == nil {
  30676. } else if d.h.DeleteOnNilMapValue {
  30677. delete(v, mk)
  30678. } else {
  30679. v[mk] = nil
  30680. }
  30681. continue
  30682. }
  30683. if mapGet {
  30684. mv = v[mk]
  30685. } else {
  30686. mv = nil
  30687. }
  30688. d.decode(&mv)
  30689. if v != nil {
  30690. v[mk] = mv
  30691. }
  30692. }
  30693. dd.ReadMapEnd()
  30694. d.depthDecr()
  30695. return v, changed
  30696. }
  30697. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  30698. if rv.Kind() == reflect.Ptr {
  30699. vp := rv2i(rv).(*map[int16]string)
  30700. v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d)
  30701. if changed {
  30702. *vp = v
  30703. }
  30704. } else {
  30705. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  30706. }
  30707. }
  30708. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  30709. v, changed := f.DecMapInt16StringV(*vp, true, d)
  30710. if changed {
  30711. *vp = v
  30712. }
  30713. }
  30714. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  30715. d *Decoder) (_ map[int16]string, changed bool) {
  30716. dd, esep := d.d, d.hh.hasElemSeparators()
  30717. containerLen := dd.ReadMapStart()
  30718. if canChange && v == nil {
  30719. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30720. v = make(map[int16]string, xlen)
  30721. changed = true
  30722. }
  30723. if containerLen == 0 {
  30724. dd.ReadMapEnd()
  30725. return v, changed
  30726. }
  30727. d.depthIncr()
  30728. var mk int16
  30729. var mv string
  30730. hasLen := containerLen > 0
  30731. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30732. if esep {
  30733. dd.ReadMapElemKey()
  30734. }
  30735. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30736. if esep {
  30737. dd.ReadMapElemValue()
  30738. }
  30739. if dd.TryDecodeAsNil() {
  30740. if v == nil {
  30741. } else if d.h.DeleteOnNilMapValue {
  30742. delete(v, mk)
  30743. } else {
  30744. v[mk] = ""
  30745. }
  30746. continue
  30747. }
  30748. mv = dd.DecodeString()
  30749. if v != nil {
  30750. v[mk] = mv
  30751. }
  30752. }
  30753. dd.ReadMapEnd()
  30754. d.depthDecr()
  30755. return v, changed
  30756. }
  30757. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  30758. if rv.Kind() == reflect.Ptr {
  30759. vp := rv2i(rv).(*map[int16]uint)
  30760. v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d)
  30761. if changed {
  30762. *vp = v
  30763. }
  30764. } else {
  30765. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  30766. }
  30767. }
  30768. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  30769. v, changed := f.DecMapInt16UintV(*vp, true, d)
  30770. if changed {
  30771. *vp = v
  30772. }
  30773. }
  30774. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  30775. d *Decoder) (_ map[int16]uint, changed bool) {
  30776. dd, esep := d.d, d.hh.hasElemSeparators()
  30777. containerLen := dd.ReadMapStart()
  30778. if canChange && v == nil {
  30779. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30780. v = make(map[int16]uint, xlen)
  30781. changed = true
  30782. }
  30783. if containerLen == 0 {
  30784. dd.ReadMapEnd()
  30785. return v, changed
  30786. }
  30787. d.depthIncr()
  30788. var mk int16
  30789. var mv uint
  30790. hasLen := containerLen > 0
  30791. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30792. if esep {
  30793. dd.ReadMapElemKey()
  30794. }
  30795. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30796. if esep {
  30797. dd.ReadMapElemValue()
  30798. }
  30799. if dd.TryDecodeAsNil() {
  30800. if v == nil {
  30801. } else if d.h.DeleteOnNilMapValue {
  30802. delete(v, mk)
  30803. } else {
  30804. v[mk] = 0
  30805. }
  30806. continue
  30807. }
  30808. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30809. if v != nil {
  30810. v[mk] = mv
  30811. }
  30812. }
  30813. dd.ReadMapEnd()
  30814. d.depthDecr()
  30815. return v, changed
  30816. }
  30817. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  30818. if rv.Kind() == reflect.Ptr {
  30819. vp := rv2i(rv).(*map[int16]uint8)
  30820. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d)
  30821. if changed {
  30822. *vp = v
  30823. }
  30824. } else {
  30825. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  30826. }
  30827. }
  30828. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  30829. v, changed := f.DecMapInt16Uint8V(*vp, true, d)
  30830. if changed {
  30831. *vp = v
  30832. }
  30833. }
  30834. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  30835. d *Decoder) (_ map[int16]uint8, changed bool) {
  30836. dd, esep := d.d, d.hh.hasElemSeparators()
  30837. containerLen := dd.ReadMapStart()
  30838. if canChange && v == nil {
  30839. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30840. v = make(map[int16]uint8, xlen)
  30841. changed = true
  30842. }
  30843. if containerLen == 0 {
  30844. dd.ReadMapEnd()
  30845. return v, changed
  30846. }
  30847. d.depthIncr()
  30848. var mk int16
  30849. var mv uint8
  30850. hasLen := containerLen > 0
  30851. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30852. if esep {
  30853. dd.ReadMapElemKey()
  30854. }
  30855. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30856. if esep {
  30857. dd.ReadMapElemValue()
  30858. }
  30859. if dd.TryDecodeAsNil() {
  30860. if v == nil {
  30861. } else if d.h.DeleteOnNilMapValue {
  30862. delete(v, mk)
  30863. } else {
  30864. v[mk] = 0
  30865. }
  30866. continue
  30867. }
  30868. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  30869. if v != nil {
  30870. v[mk] = mv
  30871. }
  30872. }
  30873. dd.ReadMapEnd()
  30874. d.depthDecr()
  30875. return v, changed
  30876. }
  30877. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  30878. if rv.Kind() == reflect.Ptr {
  30879. vp := rv2i(rv).(*map[int16]uint16)
  30880. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d)
  30881. if changed {
  30882. *vp = v
  30883. }
  30884. } else {
  30885. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  30886. }
  30887. }
  30888. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  30889. v, changed := f.DecMapInt16Uint16V(*vp, true, d)
  30890. if changed {
  30891. *vp = v
  30892. }
  30893. }
  30894. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  30895. d *Decoder) (_ map[int16]uint16, changed bool) {
  30896. dd, esep := d.d, d.hh.hasElemSeparators()
  30897. containerLen := dd.ReadMapStart()
  30898. if canChange && v == nil {
  30899. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  30900. v = make(map[int16]uint16, xlen)
  30901. changed = true
  30902. }
  30903. if containerLen == 0 {
  30904. dd.ReadMapEnd()
  30905. return v, changed
  30906. }
  30907. d.depthIncr()
  30908. var mk int16
  30909. var mv uint16
  30910. hasLen := containerLen > 0
  30911. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30912. if esep {
  30913. dd.ReadMapElemKey()
  30914. }
  30915. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30916. if esep {
  30917. dd.ReadMapElemValue()
  30918. }
  30919. if dd.TryDecodeAsNil() {
  30920. if v == nil {
  30921. } else if d.h.DeleteOnNilMapValue {
  30922. delete(v, mk)
  30923. } else {
  30924. v[mk] = 0
  30925. }
  30926. continue
  30927. }
  30928. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  30929. if v != nil {
  30930. v[mk] = mv
  30931. }
  30932. }
  30933. dd.ReadMapEnd()
  30934. d.depthDecr()
  30935. return v, changed
  30936. }
  30937. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  30938. if rv.Kind() == reflect.Ptr {
  30939. vp := rv2i(rv).(*map[int16]uint32)
  30940. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d)
  30941. if changed {
  30942. *vp = v
  30943. }
  30944. } else {
  30945. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  30946. }
  30947. }
  30948. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  30949. v, changed := f.DecMapInt16Uint32V(*vp, true, d)
  30950. if changed {
  30951. *vp = v
  30952. }
  30953. }
  30954. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  30955. d *Decoder) (_ map[int16]uint32, changed bool) {
  30956. dd, esep := d.d, d.hh.hasElemSeparators()
  30957. containerLen := dd.ReadMapStart()
  30958. if canChange && v == nil {
  30959. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30960. v = make(map[int16]uint32, xlen)
  30961. changed = true
  30962. }
  30963. if containerLen == 0 {
  30964. dd.ReadMapEnd()
  30965. return v, changed
  30966. }
  30967. d.depthIncr()
  30968. var mk int16
  30969. var mv uint32
  30970. hasLen := containerLen > 0
  30971. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30972. if esep {
  30973. dd.ReadMapElemKey()
  30974. }
  30975. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30976. if esep {
  30977. dd.ReadMapElemValue()
  30978. }
  30979. if dd.TryDecodeAsNil() {
  30980. if v == nil {
  30981. } else if d.h.DeleteOnNilMapValue {
  30982. delete(v, mk)
  30983. } else {
  30984. v[mk] = 0
  30985. }
  30986. continue
  30987. }
  30988. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30989. if v != nil {
  30990. v[mk] = mv
  30991. }
  30992. }
  30993. dd.ReadMapEnd()
  30994. d.depthDecr()
  30995. return v, changed
  30996. }
  30997. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  30998. if rv.Kind() == reflect.Ptr {
  30999. vp := rv2i(rv).(*map[int16]uint64)
  31000. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d)
  31001. if changed {
  31002. *vp = v
  31003. }
  31004. } else {
  31005. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  31006. }
  31007. }
  31008. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  31009. v, changed := f.DecMapInt16Uint64V(*vp, true, d)
  31010. if changed {
  31011. *vp = v
  31012. }
  31013. }
  31014. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  31015. d *Decoder) (_ map[int16]uint64, changed bool) {
  31016. dd, esep := d.d, d.hh.hasElemSeparators()
  31017. containerLen := dd.ReadMapStart()
  31018. if canChange && v == nil {
  31019. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31020. v = make(map[int16]uint64, xlen)
  31021. changed = true
  31022. }
  31023. if containerLen == 0 {
  31024. dd.ReadMapEnd()
  31025. return v, changed
  31026. }
  31027. d.depthIncr()
  31028. var mk int16
  31029. var mv uint64
  31030. hasLen := containerLen > 0
  31031. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31032. if esep {
  31033. dd.ReadMapElemKey()
  31034. }
  31035. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31036. if esep {
  31037. dd.ReadMapElemValue()
  31038. }
  31039. if dd.TryDecodeAsNil() {
  31040. if v == nil {
  31041. } else if d.h.DeleteOnNilMapValue {
  31042. delete(v, mk)
  31043. } else {
  31044. v[mk] = 0
  31045. }
  31046. continue
  31047. }
  31048. mv = dd.DecodeUint64()
  31049. if v != nil {
  31050. v[mk] = mv
  31051. }
  31052. }
  31053. dd.ReadMapEnd()
  31054. d.depthDecr()
  31055. return v, changed
  31056. }
  31057. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  31058. if rv.Kind() == reflect.Ptr {
  31059. vp := rv2i(rv).(*map[int16]uintptr)
  31060. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d)
  31061. if changed {
  31062. *vp = v
  31063. }
  31064. } else {
  31065. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  31066. }
  31067. }
  31068. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  31069. v, changed := f.DecMapInt16UintptrV(*vp, true, d)
  31070. if changed {
  31071. *vp = v
  31072. }
  31073. }
  31074. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  31075. d *Decoder) (_ map[int16]uintptr, changed bool) {
  31076. dd, esep := d.d, d.hh.hasElemSeparators()
  31077. containerLen := dd.ReadMapStart()
  31078. if canChange && v == nil {
  31079. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31080. v = make(map[int16]uintptr, xlen)
  31081. changed = true
  31082. }
  31083. if containerLen == 0 {
  31084. dd.ReadMapEnd()
  31085. return v, changed
  31086. }
  31087. d.depthIncr()
  31088. var mk int16
  31089. var mv uintptr
  31090. hasLen := containerLen > 0
  31091. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31092. if esep {
  31093. dd.ReadMapElemKey()
  31094. }
  31095. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31096. if esep {
  31097. dd.ReadMapElemValue()
  31098. }
  31099. if dd.TryDecodeAsNil() {
  31100. if v == nil {
  31101. } else if d.h.DeleteOnNilMapValue {
  31102. delete(v, mk)
  31103. } else {
  31104. v[mk] = 0
  31105. }
  31106. continue
  31107. }
  31108. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31109. if v != nil {
  31110. v[mk] = mv
  31111. }
  31112. }
  31113. dd.ReadMapEnd()
  31114. d.depthDecr()
  31115. return v, changed
  31116. }
  31117. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  31118. if rv.Kind() == reflect.Ptr {
  31119. vp := rv2i(rv).(*map[int16]int)
  31120. v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d)
  31121. if changed {
  31122. *vp = v
  31123. }
  31124. } else {
  31125. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  31126. }
  31127. }
  31128. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  31129. v, changed := f.DecMapInt16IntV(*vp, true, d)
  31130. if changed {
  31131. *vp = v
  31132. }
  31133. }
  31134. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  31135. d *Decoder) (_ map[int16]int, changed bool) {
  31136. dd, esep := d.d, d.hh.hasElemSeparators()
  31137. containerLen := dd.ReadMapStart()
  31138. if canChange && v == nil {
  31139. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31140. v = make(map[int16]int, xlen)
  31141. changed = true
  31142. }
  31143. if containerLen == 0 {
  31144. dd.ReadMapEnd()
  31145. return v, changed
  31146. }
  31147. d.depthIncr()
  31148. var mk int16
  31149. var mv int
  31150. hasLen := containerLen > 0
  31151. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31152. if esep {
  31153. dd.ReadMapElemKey()
  31154. }
  31155. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31156. if esep {
  31157. dd.ReadMapElemValue()
  31158. }
  31159. if dd.TryDecodeAsNil() {
  31160. if v == nil {
  31161. } else if d.h.DeleteOnNilMapValue {
  31162. delete(v, mk)
  31163. } else {
  31164. v[mk] = 0
  31165. }
  31166. continue
  31167. }
  31168. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  31169. if v != nil {
  31170. v[mk] = mv
  31171. }
  31172. }
  31173. dd.ReadMapEnd()
  31174. d.depthDecr()
  31175. return v, changed
  31176. }
  31177. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  31178. if rv.Kind() == reflect.Ptr {
  31179. vp := rv2i(rv).(*map[int16]int8)
  31180. v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d)
  31181. if changed {
  31182. *vp = v
  31183. }
  31184. } else {
  31185. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  31186. }
  31187. }
  31188. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  31189. v, changed := f.DecMapInt16Int8V(*vp, true, d)
  31190. if changed {
  31191. *vp = v
  31192. }
  31193. }
  31194. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  31195. d *Decoder) (_ map[int16]int8, changed bool) {
  31196. dd, esep := d.d, d.hh.hasElemSeparators()
  31197. containerLen := dd.ReadMapStart()
  31198. if canChange && v == nil {
  31199. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31200. v = make(map[int16]int8, xlen)
  31201. changed = true
  31202. }
  31203. if containerLen == 0 {
  31204. dd.ReadMapEnd()
  31205. return v, changed
  31206. }
  31207. d.depthIncr()
  31208. var mk int16
  31209. var mv int8
  31210. hasLen := containerLen > 0
  31211. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31212. if esep {
  31213. dd.ReadMapElemKey()
  31214. }
  31215. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31216. if esep {
  31217. dd.ReadMapElemValue()
  31218. }
  31219. if dd.TryDecodeAsNil() {
  31220. if v == nil {
  31221. } else if d.h.DeleteOnNilMapValue {
  31222. delete(v, mk)
  31223. } else {
  31224. v[mk] = 0
  31225. }
  31226. continue
  31227. }
  31228. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  31229. if v != nil {
  31230. v[mk] = mv
  31231. }
  31232. }
  31233. dd.ReadMapEnd()
  31234. d.depthDecr()
  31235. return v, changed
  31236. }
  31237. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  31238. if rv.Kind() == reflect.Ptr {
  31239. vp := rv2i(rv).(*map[int16]int16)
  31240. v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d)
  31241. if changed {
  31242. *vp = v
  31243. }
  31244. } else {
  31245. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  31246. }
  31247. }
  31248. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  31249. v, changed := f.DecMapInt16Int16V(*vp, true, d)
  31250. if changed {
  31251. *vp = v
  31252. }
  31253. }
  31254. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  31255. d *Decoder) (_ map[int16]int16, changed bool) {
  31256. dd, esep := d.d, d.hh.hasElemSeparators()
  31257. containerLen := dd.ReadMapStart()
  31258. if canChange && v == nil {
  31259. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  31260. v = make(map[int16]int16, xlen)
  31261. changed = true
  31262. }
  31263. if containerLen == 0 {
  31264. dd.ReadMapEnd()
  31265. return v, changed
  31266. }
  31267. d.depthIncr()
  31268. var mk int16
  31269. var mv int16
  31270. hasLen := containerLen > 0
  31271. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31272. if esep {
  31273. dd.ReadMapElemKey()
  31274. }
  31275. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31276. if esep {
  31277. dd.ReadMapElemValue()
  31278. }
  31279. if dd.TryDecodeAsNil() {
  31280. if v == nil {
  31281. } else if d.h.DeleteOnNilMapValue {
  31282. delete(v, mk)
  31283. } else {
  31284. v[mk] = 0
  31285. }
  31286. continue
  31287. }
  31288. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31289. if v != nil {
  31290. v[mk] = mv
  31291. }
  31292. }
  31293. dd.ReadMapEnd()
  31294. d.depthDecr()
  31295. return v, changed
  31296. }
  31297. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  31298. if rv.Kind() == reflect.Ptr {
  31299. vp := rv2i(rv).(*map[int16]int32)
  31300. v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d)
  31301. if changed {
  31302. *vp = v
  31303. }
  31304. } else {
  31305. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  31306. }
  31307. }
  31308. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  31309. v, changed := f.DecMapInt16Int32V(*vp, true, d)
  31310. if changed {
  31311. *vp = v
  31312. }
  31313. }
  31314. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  31315. d *Decoder) (_ map[int16]int32, changed bool) {
  31316. dd, esep := d.d, d.hh.hasElemSeparators()
  31317. containerLen := dd.ReadMapStart()
  31318. if canChange && v == nil {
  31319. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31320. v = make(map[int16]int32, xlen)
  31321. changed = true
  31322. }
  31323. if containerLen == 0 {
  31324. dd.ReadMapEnd()
  31325. return v, changed
  31326. }
  31327. d.depthIncr()
  31328. var mk int16
  31329. var mv int32
  31330. hasLen := containerLen > 0
  31331. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31332. if esep {
  31333. dd.ReadMapElemKey()
  31334. }
  31335. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31336. if esep {
  31337. dd.ReadMapElemValue()
  31338. }
  31339. if dd.TryDecodeAsNil() {
  31340. if v == nil {
  31341. } else if d.h.DeleteOnNilMapValue {
  31342. delete(v, mk)
  31343. } else {
  31344. v[mk] = 0
  31345. }
  31346. continue
  31347. }
  31348. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31349. if v != nil {
  31350. v[mk] = mv
  31351. }
  31352. }
  31353. dd.ReadMapEnd()
  31354. d.depthDecr()
  31355. return v, changed
  31356. }
  31357. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  31358. if rv.Kind() == reflect.Ptr {
  31359. vp := rv2i(rv).(*map[int16]int64)
  31360. v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d)
  31361. if changed {
  31362. *vp = v
  31363. }
  31364. } else {
  31365. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  31366. }
  31367. }
  31368. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  31369. v, changed := f.DecMapInt16Int64V(*vp, true, d)
  31370. if changed {
  31371. *vp = v
  31372. }
  31373. }
  31374. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  31375. d *Decoder) (_ map[int16]int64, changed bool) {
  31376. dd, esep := d.d, d.hh.hasElemSeparators()
  31377. containerLen := dd.ReadMapStart()
  31378. if canChange && v == nil {
  31379. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31380. v = make(map[int16]int64, xlen)
  31381. changed = true
  31382. }
  31383. if containerLen == 0 {
  31384. dd.ReadMapEnd()
  31385. return v, changed
  31386. }
  31387. d.depthIncr()
  31388. var mk int16
  31389. var mv int64
  31390. hasLen := containerLen > 0
  31391. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31392. if esep {
  31393. dd.ReadMapElemKey()
  31394. }
  31395. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31396. if esep {
  31397. dd.ReadMapElemValue()
  31398. }
  31399. if dd.TryDecodeAsNil() {
  31400. if v == nil {
  31401. } else if d.h.DeleteOnNilMapValue {
  31402. delete(v, mk)
  31403. } else {
  31404. v[mk] = 0
  31405. }
  31406. continue
  31407. }
  31408. mv = dd.DecodeInt64()
  31409. if v != nil {
  31410. v[mk] = mv
  31411. }
  31412. }
  31413. dd.ReadMapEnd()
  31414. d.depthDecr()
  31415. return v, changed
  31416. }
  31417. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  31418. if rv.Kind() == reflect.Ptr {
  31419. vp := rv2i(rv).(*map[int16]float32)
  31420. v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d)
  31421. if changed {
  31422. *vp = v
  31423. }
  31424. } else {
  31425. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  31426. }
  31427. }
  31428. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  31429. v, changed := f.DecMapInt16Float32V(*vp, true, d)
  31430. if changed {
  31431. *vp = v
  31432. }
  31433. }
  31434. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  31435. d *Decoder) (_ map[int16]float32, changed bool) {
  31436. dd, esep := d.d, d.hh.hasElemSeparators()
  31437. containerLen := dd.ReadMapStart()
  31438. if canChange && v == nil {
  31439. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31440. v = make(map[int16]float32, xlen)
  31441. changed = true
  31442. }
  31443. if containerLen == 0 {
  31444. dd.ReadMapEnd()
  31445. return v, changed
  31446. }
  31447. d.depthIncr()
  31448. var mk int16
  31449. var mv float32
  31450. hasLen := containerLen > 0
  31451. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31452. if esep {
  31453. dd.ReadMapElemKey()
  31454. }
  31455. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31456. if esep {
  31457. dd.ReadMapElemValue()
  31458. }
  31459. if dd.TryDecodeAsNil() {
  31460. if v == nil {
  31461. } else if d.h.DeleteOnNilMapValue {
  31462. delete(v, mk)
  31463. } else {
  31464. v[mk] = 0
  31465. }
  31466. continue
  31467. }
  31468. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  31469. if v != nil {
  31470. v[mk] = mv
  31471. }
  31472. }
  31473. dd.ReadMapEnd()
  31474. d.depthDecr()
  31475. return v, changed
  31476. }
  31477. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  31478. if rv.Kind() == reflect.Ptr {
  31479. vp := rv2i(rv).(*map[int16]float64)
  31480. v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d)
  31481. if changed {
  31482. *vp = v
  31483. }
  31484. } else {
  31485. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  31486. }
  31487. }
  31488. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  31489. v, changed := f.DecMapInt16Float64V(*vp, true, d)
  31490. if changed {
  31491. *vp = v
  31492. }
  31493. }
  31494. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  31495. d *Decoder) (_ map[int16]float64, changed bool) {
  31496. dd, esep := d.d, d.hh.hasElemSeparators()
  31497. containerLen := dd.ReadMapStart()
  31498. if canChange && v == nil {
  31499. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31500. v = make(map[int16]float64, xlen)
  31501. changed = true
  31502. }
  31503. if containerLen == 0 {
  31504. dd.ReadMapEnd()
  31505. return v, changed
  31506. }
  31507. d.depthIncr()
  31508. var mk int16
  31509. var mv float64
  31510. hasLen := containerLen > 0
  31511. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31512. if esep {
  31513. dd.ReadMapElemKey()
  31514. }
  31515. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31516. if esep {
  31517. dd.ReadMapElemValue()
  31518. }
  31519. if dd.TryDecodeAsNil() {
  31520. if v == nil {
  31521. } else if d.h.DeleteOnNilMapValue {
  31522. delete(v, mk)
  31523. } else {
  31524. v[mk] = 0
  31525. }
  31526. continue
  31527. }
  31528. mv = dd.DecodeFloat64()
  31529. if v != nil {
  31530. v[mk] = mv
  31531. }
  31532. }
  31533. dd.ReadMapEnd()
  31534. d.depthDecr()
  31535. return v, changed
  31536. }
  31537. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  31538. if rv.Kind() == reflect.Ptr {
  31539. vp := rv2i(rv).(*map[int16]bool)
  31540. v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d)
  31541. if changed {
  31542. *vp = v
  31543. }
  31544. } else {
  31545. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  31546. }
  31547. }
  31548. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  31549. v, changed := f.DecMapInt16BoolV(*vp, true, d)
  31550. if changed {
  31551. *vp = v
  31552. }
  31553. }
  31554. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  31555. d *Decoder) (_ map[int16]bool, changed bool) {
  31556. dd, esep := d.d, d.hh.hasElemSeparators()
  31557. containerLen := dd.ReadMapStart()
  31558. if canChange && v == nil {
  31559. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31560. v = make(map[int16]bool, xlen)
  31561. changed = true
  31562. }
  31563. if containerLen == 0 {
  31564. dd.ReadMapEnd()
  31565. return v, changed
  31566. }
  31567. d.depthIncr()
  31568. var mk int16
  31569. var mv bool
  31570. hasLen := containerLen > 0
  31571. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31572. if esep {
  31573. dd.ReadMapElemKey()
  31574. }
  31575. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31576. if esep {
  31577. dd.ReadMapElemValue()
  31578. }
  31579. if dd.TryDecodeAsNil() {
  31580. if v == nil {
  31581. } else if d.h.DeleteOnNilMapValue {
  31582. delete(v, mk)
  31583. } else {
  31584. v[mk] = false
  31585. }
  31586. continue
  31587. }
  31588. mv = dd.DecodeBool()
  31589. if v != nil {
  31590. v[mk] = mv
  31591. }
  31592. }
  31593. dd.ReadMapEnd()
  31594. d.depthDecr()
  31595. return v, changed
  31596. }
  31597. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  31598. if rv.Kind() == reflect.Ptr {
  31599. vp := rv2i(rv).(*map[int32]interface{})
  31600. v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d)
  31601. if changed {
  31602. *vp = v
  31603. }
  31604. } else {
  31605. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  31606. }
  31607. }
  31608. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  31609. v, changed := f.DecMapInt32IntfV(*vp, true, d)
  31610. if changed {
  31611. *vp = v
  31612. }
  31613. }
  31614. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  31615. d *Decoder) (_ map[int32]interface{}, changed bool) {
  31616. dd, esep := d.d, d.hh.hasElemSeparators()
  31617. containerLen := dd.ReadMapStart()
  31618. if canChange && v == nil {
  31619. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31620. v = make(map[int32]interface{}, xlen)
  31621. changed = true
  31622. }
  31623. if containerLen == 0 {
  31624. dd.ReadMapEnd()
  31625. return v, changed
  31626. }
  31627. d.depthIncr()
  31628. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  31629. var mk int32
  31630. var mv interface{}
  31631. hasLen := containerLen > 0
  31632. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31633. if esep {
  31634. dd.ReadMapElemKey()
  31635. }
  31636. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31637. if esep {
  31638. dd.ReadMapElemValue()
  31639. }
  31640. if dd.TryDecodeAsNil() {
  31641. if v == nil {
  31642. } else if d.h.DeleteOnNilMapValue {
  31643. delete(v, mk)
  31644. } else {
  31645. v[mk] = nil
  31646. }
  31647. continue
  31648. }
  31649. if mapGet {
  31650. mv = v[mk]
  31651. } else {
  31652. mv = nil
  31653. }
  31654. d.decode(&mv)
  31655. if v != nil {
  31656. v[mk] = mv
  31657. }
  31658. }
  31659. dd.ReadMapEnd()
  31660. d.depthDecr()
  31661. return v, changed
  31662. }
  31663. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  31664. if rv.Kind() == reflect.Ptr {
  31665. vp := rv2i(rv).(*map[int32]string)
  31666. v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d)
  31667. if changed {
  31668. *vp = v
  31669. }
  31670. } else {
  31671. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  31672. }
  31673. }
  31674. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  31675. v, changed := f.DecMapInt32StringV(*vp, true, d)
  31676. if changed {
  31677. *vp = v
  31678. }
  31679. }
  31680. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  31681. d *Decoder) (_ map[int32]string, changed bool) {
  31682. dd, esep := d.d, d.hh.hasElemSeparators()
  31683. containerLen := dd.ReadMapStart()
  31684. if canChange && v == nil {
  31685. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31686. v = make(map[int32]string, xlen)
  31687. changed = true
  31688. }
  31689. if containerLen == 0 {
  31690. dd.ReadMapEnd()
  31691. return v, changed
  31692. }
  31693. d.depthIncr()
  31694. var mk int32
  31695. var mv string
  31696. hasLen := containerLen > 0
  31697. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31698. if esep {
  31699. dd.ReadMapElemKey()
  31700. }
  31701. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31702. if esep {
  31703. dd.ReadMapElemValue()
  31704. }
  31705. if dd.TryDecodeAsNil() {
  31706. if v == nil {
  31707. } else if d.h.DeleteOnNilMapValue {
  31708. delete(v, mk)
  31709. } else {
  31710. v[mk] = ""
  31711. }
  31712. continue
  31713. }
  31714. mv = dd.DecodeString()
  31715. if v != nil {
  31716. v[mk] = mv
  31717. }
  31718. }
  31719. dd.ReadMapEnd()
  31720. d.depthDecr()
  31721. return v, changed
  31722. }
  31723. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  31724. if rv.Kind() == reflect.Ptr {
  31725. vp := rv2i(rv).(*map[int32]uint)
  31726. v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d)
  31727. if changed {
  31728. *vp = v
  31729. }
  31730. } else {
  31731. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  31732. }
  31733. }
  31734. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  31735. v, changed := f.DecMapInt32UintV(*vp, true, d)
  31736. if changed {
  31737. *vp = v
  31738. }
  31739. }
  31740. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  31741. d *Decoder) (_ map[int32]uint, changed bool) {
  31742. dd, esep := d.d, d.hh.hasElemSeparators()
  31743. containerLen := dd.ReadMapStart()
  31744. if canChange && v == nil {
  31745. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31746. v = make(map[int32]uint, xlen)
  31747. changed = true
  31748. }
  31749. if containerLen == 0 {
  31750. dd.ReadMapEnd()
  31751. return v, changed
  31752. }
  31753. d.depthIncr()
  31754. var mk int32
  31755. var mv uint
  31756. hasLen := containerLen > 0
  31757. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31758. if esep {
  31759. dd.ReadMapElemKey()
  31760. }
  31761. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31762. if esep {
  31763. dd.ReadMapElemValue()
  31764. }
  31765. if dd.TryDecodeAsNil() {
  31766. if v == nil {
  31767. } else if d.h.DeleteOnNilMapValue {
  31768. delete(v, mk)
  31769. } else {
  31770. v[mk] = 0
  31771. }
  31772. continue
  31773. }
  31774. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31775. if v != nil {
  31776. v[mk] = mv
  31777. }
  31778. }
  31779. dd.ReadMapEnd()
  31780. d.depthDecr()
  31781. return v, changed
  31782. }
  31783. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  31784. if rv.Kind() == reflect.Ptr {
  31785. vp := rv2i(rv).(*map[int32]uint8)
  31786. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d)
  31787. if changed {
  31788. *vp = v
  31789. }
  31790. } else {
  31791. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  31792. }
  31793. }
  31794. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  31795. v, changed := f.DecMapInt32Uint8V(*vp, true, d)
  31796. if changed {
  31797. *vp = v
  31798. }
  31799. }
  31800. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  31801. d *Decoder) (_ map[int32]uint8, changed bool) {
  31802. dd, esep := d.d, d.hh.hasElemSeparators()
  31803. containerLen := dd.ReadMapStart()
  31804. if canChange && v == nil {
  31805. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31806. v = make(map[int32]uint8, xlen)
  31807. changed = true
  31808. }
  31809. if containerLen == 0 {
  31810. dd.ReadMapEnd()
  31811. return v, changed
  31812. }
  31813. d.depthIncr()
  31814. var mk int32
  31815. var mv uint8
  31816. hasLen := containerLen > 0
  31817. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31818. if esep {
  31819. dd.ReadMapElemKey()
  31820. }
  31821. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31822. if esep {
  31823. dd.ReadMapElemValue()
  31824. }
  31825. if dd.TryDecodeAsNil() {
  31826. if v == nil {
  31827. } else if d.h.DeleteOnNilMapValue {
  31828. delete(v, mk)
  31829. } else {
  31830. v[mk] = 0
  31831. }
  31832. continue
  31833. }
  31834. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  31835. if v != nil {
  31836. v[mk] = mv
  31837. }
  31838. }
  31839. dd.ReadMapEnd()
  31840. d.depthDecr()
  31841. return v, changed
  31842. }
  31843. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  31844. if rv.Kind() == reflect.Ptr {
  31845. vp := rv2i(rv).(*map[int32]uint16)
  31846. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d)
  31847. if changed {
  31848. *vp = v
  31849. }
  31850. } else {
  31851. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  31852. }
  31853. }
  31854. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  31855. v, changed := f.DecMapInt32Uint16V(*vp, true, d)
  31856. if changed {
  31857. *vp = v
  31858. }
  31859. }
  31860. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  31861. d *Decoder) (_ map[int32]uint16, changed bool) {
  31862. dd, esep := d.d, d.hh.hasElemSeparators()
  31863. containerLen := dd.ReadMapStart()
  31864. if canChange && v == nil {
  31865. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31866. v = make(map[int32]uint16, xlen)
  31867. changed = true
  31868. }
  31869. if containerLen == 0 {
  31870. dd.ReadMapEnd()
  31871. return v, changed
  31872. }
  31873. d.depthIncr()
  31874. var mk int32
  31875. var mv uint16
  31876. hasLen := containerLen > 0
  31877. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31878. if esep {
  31879. dd.ReadMapElemKey()
  31880. }
  31881. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31882. if esep {
  31883. dd.ReadMapElemValue()
  31884. }
  31885. if dd.TryDecodeAsNil() {
  31886. if v == nil {
  31887. } else if d.h.DeleteOnNilMapValue {
  31888. delete(v, mk)
  31889. } else {
  31890. v[mk] = 0
  31891. }
  31892. continue
  31893. }
  31894. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  31895. if v != nil {
  31896. v[mk] = mv
  31897. }
  31898. }
  31899. dd.ReadMapEnd()
  31900. d.depthDecr()
  31901. return v, changed
  31902. }
  31903. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  31904. if rv.Kind() == reflect.Ptr {
  31905. vp := rv2i(rv).(*map[int32]uint32)
  31906. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d)
  31907. if changed {
  31908. *vp = v
  31909. }
  31910. } else {
  31911. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  31912. }
  31913. }
  31914. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  31915. v, changed := f.DecMapInt32Uint32V(*vp, true, d)
  31916. if changed {
  31917. *vp = v
  31918. }
  31919. }
  31920. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  31921. d *Decoder) (_ map[int32]uint32, changed bool) {
  31922. dd, esep := d.d, d.hh.hasElemSeparators()
  31923. containerLen := dd.ReadMapStart()
  31924. if canChange && v == nil {
  31925. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  31926. v = make(map[int32]uint32, xlen)
  31927. changed = true
  31928. }
  31929. if containerLen == 0 {
  31930. dd.ReadMapEnd()
  31931. return v, changed
  31932. }
  31933. d.depthIncr()
  31934. var mk int32
  31935. var mv uint32
  31936. hasLen := containerLen > 0
  31937. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31938. if esep {
  31939. dd.ReadMapElemKey()
  31940. }
  31941. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31942. if esep {
  31943. dd.ReadMapElemValue()
  31944. }
  31945. if dd.TryDecodeAsNil() {
  31946. if v == nil {
  31947. } else if d.h.DeleteOnNilMapValue {
  31948. delete(v, mk)
  31949. } else {
  31950. v[mk] = 0
  31951. }
  31952. continue
  31953. }
  31954. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  31955. if v != nil {
  31956. v[mk] = mv
  31957. }
  31958. }
  31959. dd.ReadMapEnd()
  31960. d.depthDecr()
  31961. return v, changed
  31962. }
  31963. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  31964. if rv.Kind() == reflect.Ptr {
  31965. vp := rv2i(rv).(*map[int32]uint64)
  31966. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d)
  31967. if changed {
  31968. *vp = v
  31969. }
  31970. } else {
  31971. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  31972. }
  31973. }
  31974. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  31975. v, changed := f.DecMapInt32Uint64V(*vp, true, d)
  31976. if changed {
  31977. *vp = v
  31978. }
  31979. }
  31980. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  31981. d *Decoder) (_ map[int32]uint64, changed bool) {
  31982. dd, esep := d.d, d.hh.hasElemSeparators()
  31983. containerLen := dd.ReadMapStart()
  31984. if canChange && v == nil {
  31985. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31986. v = make(map[int32]uint64, xlen)
  31987. changed = true
  31988. }
  31989. if containerLen == 0 {
  31990. dd.ReadMapEnd()
  31991. return v, changed
  31992. }
  31993. d.depthIncr()
  31994. var mk int32
  31995. var mv uint64
  31996. hasLen := containerLen > 0
  31997. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31998. if esep {
  31999. dd.ReadMapElemKey()
  32000. }
  32001. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32002. if esep {
  32003. dd.ReadMapElemValue()
  32004. }
  32005. if dd.TryDecodeAsNil() {
  32006. if v == nil {
  32007. } else if d.h.DeleteOnNilMapValue {
  32008. delete(v, mk)
  32009. } else {
  32010. v[mk] = 0
  32011. }
  32012. continue
  32013. }
  32014. mv = dd.DecodeUint64()
  32015. if v != nil {
  32016. v[mk] = mv
  32017. }
  32018. }
  32019. dd.ReadMapEnd()
  32020. d.depthDecr()
  32021. return v, changed
  32022. }
  32023. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  32024. if rv.Kind() == reflect.Ptr {
  32025. vp := rv2i(rv).(*map[int32]uintptr)
  32026. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d)
  32027. if changed {
  32028. *vp = v
  32029. }
  32030. } else {
  32031. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  32032. }
  32033. }
  32034. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  32035. v, changed := f.DecMapInt32UintptrV(*vp, true, d)
  32036. if changed {
  32037. *vp = v
  32038. }
  32039. }
  32040. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  32041. d *Decoder) (_ map[int32]uintptr, changed bool) {
  32042. dd, esep := d.d, d.hh.hasElemSeparators()
  32043. containerLen := dd.ReadMapStart()
  32044. if canChange && v == nil {
  32045. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32046. v = make(map[int32]uintptr, xlen)
  32047. changed = true
  32048. }
  32049. if containerLen == 0 {
  32050. dd.ReadMapEnd()
  32051. return v, changed
  32052. }
  32053. d.depthIncr()
  32054. var mk int32
  32055. var mv uintptr
  32056. hasLen := containerLen > 0
  32057. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32058. if esep {
  32059. dd.ReadMapElemKey()
  32060. }
  32061. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32062. if esep {
  32063. dd.ReadMapElemValue()
  32064. }
  32065. if dd.TryDecodeAsNil() {
  32066. if v == nil {
  32067. } else if d.h.DeleteOnNilMapValue {
  32068. delete(v, mk)
  32069. } else {
  32070. v[mk] = 0
  32071. }
  32072. continue
  32073. }
  32074. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32075. if v != nil {
  32076. v[mk] = mv
  32077. }
  32078. }
  32079. dd.ReadMapEnd()
  32080. d.depthDecr()
  32081. return v, changed
  32082. }
  32083. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  32084. if rv.Kind() == reflect.Ptr {
  32085. vp := rv2i(rv).(*map[int32]int)
  32086. v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d)
  32087. if changed {
  32088. *vp = v
  32089. }
  32090. } else {
  32091. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  32092. }
  32093. }
  32094. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  32095. v, changed := f.DecMapInt32IntV(*vp, true, d)
  32096. if changed {
  32097. *vp = v
  32098. }
  32099. }
  32100. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  32101. d *Decoder) (_ map[int32]int, changed bool) {
  32102. dd, esep := d.d, d.hh.hasElemSeparators()
  32103. containerLen := dd.ReadMapStart()
  32104. if canChange && v == nil {
  32105. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32106. v = make(map[int32]int, xlen)
  32107. changed = true
  32108. }
  32109. if containerLen == 0 {
  32110. dd.ReadMapEnd()
  32111. return v, changed
  32112. }
  32113. d.depthIncr()
  32114. var mk int32
  32115. var mv int
  32116. hasLen := containerLen > 0
  32117. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32118. if esep {
  32119. dd.ReadMapElemKey()
  32120. }
  32121. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32122. if esep {
  32123. dd.ReadMapElemValue()
  32124. }
  32125. if dd.TryDecodeAsNil() {
  32126. if v == nil {
  32127. } else if d.h.DeleteOnNilMapValue {
  32128. delete(v, mk)
  32129. } else {
  32130. v[mk] = 0
  32131. }
  32132. continue
  32133. }
  32134. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  32135. if v != nil {
  32136. v[mk] = mv
  32137. }
  32138. }
  32139. dd.ReadMapEnd()
  32140. d.depthDecr()
  32141. return v, changed
  32142. }
  32143. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  32144. if rv.Kind() == reflect.Ptr {
  32145. vp := rv2i(rv).(*map[int32]int8)
  32146. v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d)
  32147. if changed {
  32148. *vp = v
  32149. }
  32150. } else {
  32151. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  32152. }
  32153. }
  32154. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  32155. v, changed := f.DecMapInt32Int8V(*vp, true, d)
  32156. if changed {
  32157. *vp = v
  32158. }
  32159. }
  32160. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  32161. d *Decoder) (_ map[int32]int8, changed bool) {
  32162. dd, esep := d.d, d.hh.hasElemSeparators()
  32163. containerLen := dd.ReadMapStart()
  32164. if canChange && v == nil {
  32165. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32166. v = make(map[int32]int8, xlen)
  32167. changed = true
  32168. }
  32169. if containerLen == 0 {
  32170. dd.ReadMapEnd()
  32171. return v, changed
  32172. }
  32173. d.depthIncr()
  32174. var mk int32
  32175. var mv int8
  32176. hasLen := containerLen > 0
  32177. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32178. if esep {
  32179. dd.ReadMapElemKey()
  32180. }
  32181. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32182. if esep {
  32183. dd.ReadMapElemValue()
  32184. }
  32185. if dd.TryDecodeAsNil() {
  32186. if v == nil {
  32187. } else if d.h.DeleteOnNilMapValue {
  32188. delete(v, mk)
  32189. } else {
  32190. v[mk] = 0
  32191. }
  32192. continue
  32193. }
  32194. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  32195. if v != nil {
  32196. v[mk] = mv
  32197. }
  32198. }
  32199. dd.ReadMapEnd()
  32200. d.depthDecr()
  32201. return v, changed
  32202. }
  32203. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  32204. if rv.Kind() == reflect.Ptr {
  32205. vp := rv2i(rv).(*map[int32]int16)
  32206. v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d)
  32207. if changed {
  32208. *vp = v
  32209. }
  32210. } else {
  32211. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  32212. }
  32213. }
  32214. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  32215. v, changed := f.DecMapInt32Int16V(*vp, true, d)
  32216. if changed {
  32217. *vp = v
  32218. }
  32219. }
  32220. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  32221. d *Decoder) (_ map[int32]int16, changed bool) {
  32222. dd, esep := d.d, d.hh.hasElemSeparators()
  32223. containerLen := dd.ReadMapStart()
  32224. if canChange && v == nil {
  32225. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  32226. v = make(map[int32]int16, xlen)
  32227. changed = true
  32228. }
  32229. if containerLen == 0 {
  32230. dd.ReadMapEnd()
  32231. return v, changed
  32232. }
  32233. d.depthIncr()
  32234. var mk int32
  32235. var mv int16
  32236. hasLen := containerLen > 0
  32237. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32238. if esep {
  32239. dd.ReadMapElemKey()
  32240. }
  32241. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32242. if esep {
  32243. dd.ReadMapElemValue()
  32244. }
  32245. if dd.TryDecodeAsNil() {
  32246. if v == nil {
  32247. } else if d.h.DeleteOnNilMapValue {
  32248. delete(v, mk)
  32249. } else {
  32250. v[mk] = 0
  32251. }
  32252. continue
  32253. }
  32254. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  32255. if v != nil {
  32256. v[mk] = mv
  32257. }
  32258. }
  32259. dd.ReadMapEnd()
  32260. d.depthDecr()
  32261. return v, changed
  32262. }
  32263. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  32264. if rv.Kind() == reflect.Ptr {
  32265. vp := rv2i(rv).(*map[int32]int32)
  32266. v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d)
  32267. if changed {
  32268. *vp = v
  32269. }
  32270. } else {
  32271. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  32272. }
  32273. }
  32274. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  32275. v, changed := f.DecMapInt32Int32V(*vp, true, d)
  32276. if changed {
  32277. *vp = v
  32278. }
  32279. }
  32280. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  32281. d *Decoder) (_ map[int32]int32, changed bool) {
  32282. dd, esep := d.d, d.hh.hasElemSeparators()
  32283. containerLen := dd.ReadMapStart()
  32284. if canChange && v == nil {
  32285. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  32286. v = make(map[int32]int32, xlen)
  32287. changed = true
  32288. }
  32289. if containerLen == 0 {
  32290. dd.ReadMapEnd()
  32291. return v, changed
  32292. }
  32293. d.depthIncr()
  32294. var mk int32
  32295. var mv int32
  32296. hasLen := containerLen > 0
  32297. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32298. if esep {
  32299. dd.ReadMapElemKey()
  32300. }
  32301. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32302. if esep {
  32303. dd.ReadMapElemValue()
  32304. }
  32305. if dd.TryDecodeAsNil() {
  32306. if v == nil {
  32307. } else if d.h.DeleteOnNilMapValue {
  32308. delete(v, mk)
  32309. } else {
  32310. v[mk] = 0
  32311. }
  32312. continue
  32313. }
  32314. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32315. if v != nil {
  32316. v[mk] = mv
  32317. }
  32318. }
  32319. dd.ReadMapEnd()
  32320. d.depthDecr()
  32321. return v, changed
  32322. }
  32323. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  32324. if rv.Kind() == reflect.Ptr {
  32325. vp := rv2i(rv).(*map[int32]int64)
  32326. v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d)
  32327. if changed {
  32328. *vp = v
  32329. }
  32330. } else {
  32331. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  32332. }
  32333. }
  32334. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  32335. v, changed := f.DecMapInt32Int64V(*vp, true, d)
  32336. if changed {
  32337. *vp = v
  32338. }
  32339. }
  32340. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  32341. d *Decoder) (_ map[int32]int64, changed bool) {
  32342. dd, esep := d.d, d.hh.hasElemSeparators()
  32343. containerLen := dd.ReadMapStart()
  32344. if canChange && v == nil {
  32345. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32346. v = make(map[int32]int64, xlen)
  32347. changed = true
  32348. }
  32349. if containerLen == 0 {
  32350. dd.ReadMapEnd()
  32351. return v, changed
  32352. }
  32353. d.depthIncr()
  32354. var mk int32
  32355. var mv int64
  32356. hasLen := containerLen > 0
  32357. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32358. if esep {
  32359. dd.ReadMapElemKey()
  32360. }
  32361. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32362. if esep {
  32363. dd.ReadMapElemValue()
  32364. }
  32365. if dd.TryDecodeAsNil() {
  32366. if v == nil {
  32367. } else if d.h.DeleteOnNilMapValue {
  32368. delete(v, mk)
  32369. } else {
  32370. v[mk] = 0
  32371. }
  32372. continue
  32373. }
  32374. mv = dd.DecodeInt64()
  32375. if v != nil {
  32376. v[mk] = mv
  32377. }
  32378. }
  32379. dd.ReadMapEnd()
  32380. d.depthDecr()
  32381. return v, changed
  32382. }
  32383. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  32384. if rv.Kind() == reflect.Ptr {
  32385. vp := rv2i(rv).(*map[int32]float32)
  32386. v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d)
  32387. if changed {
  32388. *vp = v
  32389. }
  32390. } else {
  32391. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  32392. }
  32393. }
  32394. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  32395. v, changed := f.DecMapInt32Float32V(*vp, true, d)
  32396. if changed {
  32397. *vp = v
  32398. }
  32399. }
  32400. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  32401. d *Decoder) (_ map[int32]float32, changed bool) {
  32402. dd, esep := d.d, d.hh.hasElemSeparators()
  32403. containerLen := dd.ReadMapStart()
  32404. if canChange && v == nil {
  32405. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  32406. v = make(map[int32]float32, xlen)
  32407. changed = true
  32408. }
  32409. if containerLen == 0 {
  32410. dd.ReadMapEnd()
  32411. return v, changed
  32412. }
  32413. d.depthIncr()
  32414. var mk int32
  32415. var mv float32
  32416. hasLen := containerLen > 0
  32417. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32418. if esep {
  32419. dd.ReadMapElemKey()
  32420. }
  32421. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32422. if esep {
  32423. dd.ReadMapElemValue()
  32424. }
  32425. if dd.TryDecodeAsNil() {
  32426. if v == nil {
  32427. } else if d.h.DeleteOnNilMapValue {
  32428. delete(v, mk)
  32429. } else {
  32430. v[mk] = 0
  32431. }
  32432. continue
  32433. }
  32434. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  32435. if v != nil {
  32436. v[mk] = mv
  32437. }
  32438. }
  32439. dd.ReadMapEnd()
  32440. d.depthDecr()
  32441. return v, changed
  32442. }
  32443. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  32444. if rv.Kind() == reflect.Ptr {
  32445. vp := rv2i(rv).(*map[int32]float64)
  32446. v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d)
  32447. if changed {
  32448. *vp = v
  32449. }
  32450. } else {
  32451. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  32452. }
  32453. }
  32454. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  32455. v, changed := f.DecMapInt32Float64V(*vp, true, d)
  32456. if changed {
  32457. *vp = v
  32458. }
  32459. }
  32460. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  32461. d *Decoder) (_ map[int32]float64, changed bool) {
  32462. dd, esep := d.d, d.hh.hasElemSeparators()
  32463. containerLen := dd.ReadMapStart()
  32464. if canChange && v == nil {
  32465. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32466. v = make(map[int32]float64, xlen)
  32467. changed = true
  32468. }
  32469. if containerLen == 0 {
  32470. dd.ReadMapEnd()
  32471. return v, changed
  32472. }
  32473. d.depthIncr()
  32474. var mk int32
  32475. var mv float64
  32476. hasLen := containerLen > 0
  32477. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32478. if esep {
  32479. dd.ReadMapElemKey()
  32480. }
  32481. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32482. if esep {
  32483. dd.ReadMapElemValue()
  32484. }
  32485. if dd.TryDecodeAsNil() {
  32486. if v == nil {
  32487. } else if d.h.DeleteOnNilMapValue {
  32488. delete(v, mk)
  32489. } else {
  32490. v[mk] = 0
  32491. }
  32492. continue
  32493. }
  32494. mv = dd.DecodeFloat64()
  32495. if v != nil {
  32496. v[mk] = mv
  32497. }
  32498. }
  32499. dd.ReadMapEnd()
  32500. d.depthDecr()
  32501. return v, changed
  32502. }
  32503. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  32504. if rv.Kind() == reflect.Ptr {
  32505. vp := rv2i(rv).(*map[int32]bool)
  32506. v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d)
  32507. if changed {
  32508. *vp = v
  32509. }
  32510. } else {
  32511. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  32512. }
  32513. }
  32514. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  32515. v, changed := f.DecMapInt32BoolV(*vp, true, d)
  32516. if changed {
  32517. *vp = v
  32518. }
  32519. }
  32520. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  32521. d *Decoder) (_ map[int32]bool, changed bool) {
  32522. dd, esep := d.d, d.hh.hasElemSeparators()
  32523. containerLen := dd.ReadMapStart()
  32524. if canChange && v == nil {
  32525. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32526. v = make(map[int32]bool, xlen)
  32527. changed = true
  32528. }
  32529. if containerLen == 0 {
  32530. dd.ReadMapEnd()
  32531. return v, changed
  32532. }
  32533. d.depthIncr()
  32534. var mk int32
  32535. var mv bool
  32536. hasLen := containerLen > 0
  32537. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32538. if esep {
  32539. dd.ReadMapElemKey()
  32540. }
  32541. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32542. if esep {
  32543. dd.ReadMapElemValue()
  32544. }
  32545. if dd.TryDecodeAsNil() {
  32546. if v == nil {
  32547. } else if d.h.DeleteOnNilMapValue {
  32548. delete(v, mk)
  32549. } else {
  32550. v[mk] = false
  32551. }
  32552. continue
  32553. }
  32554. mv = dd.DecodeBool()
  32555. if v != nil {
  32556. v[mk] = mv
  32557. }
  32558. }
  32559. dd.ReadMapEnd()
  32560. d.depthDecr()
  32561. return v, changed
  32562. }
  32563. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  32564. if rv.Kind() == reflect.Ptr {
  32565. vp := rv2i(rv).(*map[int64]interface{})
  32566. v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d)
  32567. if changed {
  32568. *vp = v
  32569. }
  32570. } else {
  32571. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  32572. }
  32573. }
  32574. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  32575. v, changed := f.DecMapInt64IntfV(*vp, true, d)
  32576. if changed {
  32577. *vp = v
  32578. }
  32579. }
  32580. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  32581. d *Decoder) (_ map[int64]interface{}, changed bool) {
  32582. dd, esep := d.d, d.hh.hasElemSeparators()
  32583. containerLen := dd.ReadMapStart()
  32584. if canChange && v == nil {
  32585. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32586. v = make(map[int64]interface{}, xlen)
  32587. changed = true
  32588. }
  32589. if containerLen == 0 {
  32590. dd.ReadMapEnd()
  32591. return v, changed
  32592. }
  32593. d.depthIncr()
  32594. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  32595. var mk int64
  32596. var mv interface{}
  32597. hasLen := containerLen > 0
  32598. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32599. if esep {
  32600. dd.ReadMapElemKey()
  32601. }
  32602. mk = dd.DecodeInt64()
  32603. if esep {
  32604. dd.ReadMapElemValue()
  32605. }
  32606. if dd.TryDecodeAsNil() {
  32607. if v == nil {
  32608. } else if d.h.DeleteOnNilMapValue {
  32609. delete(v, mk)
  32610. } else {
  32611. v[mk] = nil
  32612. }
  32613. continue
  32614. }
  32615. if mapGet {
  32616. mv = v[mk]
  32617. } else {
  32618. mv = nil
  32619. }
  32620. d.decode(&mv)
  32621. if v != nil {
  32622. v[mk] = mv
  32623. }
  32624. }
  32625. dd.ReadMapEnd()
  32626. d.depthDecr()
  32627. return v, changed
  32628. }
  32629. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  32630. if rv.Kind() == reflect.Ptr {
  32631. vp := rv2i(rv).(*map[int64]string)
  32632. v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d)
  32633. if changed {
  32634. *vp = v
  32635. }
  32636. } else {
  32637. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  32638. }
  32639. }
  32640. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  32641. v, changed := f.DecMapInt64StringV(*vp, true, d)
  32642. if changed {
  32643. *vp = v
  32644. }
  32645. }
  32646. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  32647. d *Decoder) (_ map[int64]string, changed bool) {
  32648. dd, esep := d.d, d.hh.hasElemSeparators()
  32649. containerLen := dd.ReadMapStart()
  32650. if canChange && v == nil {
  32651. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32652. v = make(map[int64]string, xlen)
  32653. changed = true
  32654. }
  32655. if containerLen == 0 {
  32656. dd.ReadMapEnd()
  32657. return v, changed
  32658. }
  32659. d.depthIncr()
  32660. var mk int64
  32661. var mv string
  32662. hasLen := containerLen > 0
  32663. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32664. if esep {
  32665. dd.ReadMapElemKey()
  32666. }
  32667. mk = dd.DecodeInt64()
  32668. if esep {
  32669. dd.ReadMapElemValue()
  32670. }
  32671. if dd.TryDecodeAsNil() {
  32672. if v == nil {
  32673. } else if d.h.DeleteOnNilMapValue {
  32674. delete(v, mk)
  32675. } else {
  32676. v[mk] = ""
  32677. }
  32678. continue
  32679. }
  32680. mv = dd.DecodeString()
  32681. if v != nil {
  32682. v[mk] = mv
  32683. }
  32684. }
  32685. dd.ReadMapEnd()
  32686. d.depthDecr()
  32687. return v, changed
  32688. }
  32689. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  32690. if rv.Kind() == reflect.Ptr {
  32691. vp := rv2i(rv).(*map[int64]uint)
  32692. v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d)
  32693. if changed {
  32694. *vp = v
  32695. }
  32696. } else {
  32697. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  32698. }
  32699. }
  32700. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  32701. v, changed := f.DecMapInt64UintV(*vp, true, d)
  32702. if changed {
  32703. *vp = v
  32704. }
  32705. }
  32706. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  32707. d *Decoder) (_ map[int64]uint, changed bool) {
  32708. dd, esep := d.d, d.hh.hasElemSeparators()
  32709. containerLen := dd.ReadMapStart()
  32710. if canChange && v == nil {
  32711. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32712. v = make(map[int64]uint, xlen)
  32713. changed = true
  32714. }
  32715. if containerLen == 0 {
  32716. dd.ReadMapEnd()
  32717. return v, changed
  32718. }
  32719. d.depthIncr()
  32720. var mk int64
  32721. var mv uint
  32722. hasLen := containerLen > 0
  32723. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32724. if esep {
  32725. dd.ReadMapElemKey()
  32726. }
  32727. mk = dd.DecodeInt64()
  32728. if esep {
  32729. dd.ReadMapElemValue()
  32730. }
  32731. if dd.TryDecodeAsNil() {
  32732. if v == nil {
  32733. } else if d.h.DeleteOnNilMapValue {
  32734. delete(v, mk)
  32735. } else {
  32736. v[mk] = 0
  32737. }
  32738. continue
  32739. }
  32740. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32741. if v != nil {
  32742. v[mk] = mv
  32743. }
  32744. }
  32745. dd.ReadMapEnd()
  32746. d.depthDecr()
  32747. return v, changed
  32748. }
  32749. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  32750. if rv.Kind() == reflect.Ptr {
  32751. vp := rv2i(rv).(*map[int64]uint8)
  32752. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d)
  32753. if changed {
  32754. *vp = v
  32755. }
  32756. } else {
  32757. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  32758. }
  32759. }
  32760. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  32761. v, changed := f.DecMapInt64Uint8V(*vp, true, d)
  32762. if changed {
  32763. *vp = v
  32764. }
  32765. }
  32766. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  32767. d *Decoder) (_ map[int64]uint8, changed bool) {
  32768. dd, esep := d.d, d.hh.hasElemSeparators()
  32769. containerLen := dd.ReadMapStart()
  32770. if canChange && v == nil {
  32771. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32772. v = make(map[int64]uint8, xlen)
  32773. changed = true
  32774. }
  32775. if containerLen == 0 {
  32776. dd.ReadMapEnd()
  32777. return v, changed
  32778. }
  32779. d.depthIncr()
  32780. var mk int64
  32781. var mv uint8
  32782. hasLen := containerLen > 0
  32783. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32784. if esep {
  32785. dd.ReadMapElemKey()
  32786. }
  32787. mk = dd.DecodeInt64()
  32788. if esep {
  32789. dd.ReadMapElemValue()
  32790. }
  32791. if dd.TryDecodeAsNil() {
  32792. if v == nil {
  32793. } else if d.h.DeleteOnNilMapValue {
  32794. delete(v, mk)
  32795. } else {
  32796. v[mk] = 0
  32797. }
  32798. continue
  32799. }
  32800. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  32801. if v != nil {
  32802. v[mk] = mv
  32803. }
  32804. }
  32805. dd.ReadMapEnd()
  32806. d.depthDecr()
  32807. return v, changed
  32808. }
  32809. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  32810. if rv.Kind() == reflect.Ptr {
  32811. vp := rv2i(rv).(*map[int64]uint16)
  32812. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d)
  32813. if changed {
  32814. *vp = v
  32815. }
  32816. } else {
  32817. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  32818. }
  32819. }
  32820. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  32821. v, changed := f.DecMapInt64Uint16V(*vp, true, d)
  32822. if changed {
  32823. *vp = v
  32824. }
  32825. }
  32826. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  32827. d *Decoder) (_ map[int64]uint16, changed bool) {
  32828. dd, esep := d.d, d.hh.hasElemSeparators()
  32829. containerLen := dd.ReadMapStart()
  32830. if canChange && v == nil {
  32831. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32832. v = make(map[int64]uint16, xlen)
  32833. changed = true
  32834. }
  32835. if containerLen == 0 {
  32836. dd.ReadMapEnd()
  32837. return v, changed
  32838. }
  32839. d.depthIncr()
  32840. var mk int64
  32841. var mv uint16
  32842. hasLen := containerLen > 0
  32843. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32844. if esep {
  32845. dd.ReadMapElemKey()
  32846. }
  32847. mk = dd.DecodeInt64()
  32848. if esep {
  32849. dd.ReadMapElemValue()
  32850. }
  32851. if dd.TryDecodeAsNil() {
  32852. if v == nil {
  32853. } else if d.h.DeleteOnNilMapValue {
  32854. delete(v, mk)
  32855. } else {
  32856. v[mk] = 0
  32857. }
  32858. continue
  32859. }
  32860. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  32861. if v != nil {
  32862. v[mk] = mv
  32863. }
  32864. }
  32865. dd.ReadMapEnd()
  32866. d.depthDecr()
  32867. return v, changed
  32868. }
  32869. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  32870. if rv.Kind() == reflect.Ptr {
  32871. vp := rv2i(rv).(*map[int64]uint32)
  32872. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d)
  32873. if changed {
  32874. *vp = v
  32875. }
  32876. } else {
  32877. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  32878. }
  32879. }
  32880. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  32881. v, changed := f.DecMapInt64Uint32V(*vp, true, d)
  32882. if changed {
  32883. *vp = v
  32884. }
  32885. }
  32886. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  32887. d *Decoder) (_ map[int64]uint32, changed bool) {
  32888. dd, esep := d.d, d.hh.hasElemSeparators()
  32889. containerLen := dd.ReadMapStart()
  32890. if canChange && v == nil {
  32891. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32892. v = make(map[int64]uint32, xlen)
  32893. changed = true
  32894. }
  32895. if containerLen == 0 {
  32896. dd.ReadMapEnd()
  32897. return v, changed
  32898. }
  32899. d.depthIncr()
  32900. var mk int64
  32901. var mv uint32
  32902. hasLen := containerLen > 0
  32903. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32904. if esep {
  32905. dd.ReadMapElemKey()
  32906. }
  32907. mk = dd.DecodeInt64()
  32908. if esep {
  32909. dd.ReadMapElemValue()
  32910. }
  32911. if dd.TryDecodeAsNil() {
  32912. if v == nil {
  32913. } else if d.h.DeleteOnNilMapValue {
  32914. delete(v, mk)
  32915. } else {
  32916. v[mk] = 0
  32917. }
  32918. continue
  32919. }
  32920. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  32921. if v != nil {
  32922. v[mk] = mv
  32923. }
  32924. }
  32925. dd.ReadMapEnd()
  32926. d.depthDecr()
  32927. return v, changed
  32928. }
  32929. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  32930. if rv.Kind() == reflect.Ptr {
  32931. vp := rv2i(rv).(*map[int64]uint64)
  32932. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d)
  32933. if changed {
  32934. *vp = v
  32935. }
  32936. } else {
  32937. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  32938. }
  32939. }
  32940. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  32941. v, changed := f.DecMapInt64Uint64V(*vp, true, d)
  32942. if changed {
  32943. *vp = v
  32944. }
  32945. }
  32946. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  32947. d *Decoder) (_ map[int64]uint64, changed bool) {
  32948. dd, esep := d.d, d.hh.hasElemSeparators()
  32949. containerLen := dd.ReadMapStart()
  32950. if canChange && v == nil {
  32951. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32952. v = make(map[int64]uint64, xlen)
  32953. changed = true
  32954. }
  32955. if containerLen == 0 {
  32956. dd.ReadMapEnd()
  32957. return v, changed
  32958. }
  32959. d.depthIncr()
  32960. var mk int64
  32961. var mv uint64
  32962. hasLen := containerLen > 0
  32963. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32964. if esep {
  32965. dd.ReadMapElemKey()
  32966. }
  32967. mk = dd.DecodeInt64()
  32968. if esep {
  32969. dd.ReadMapElemValue()
  32970. }
  32971. if dd.TryDecodeAsNil() {
  32972. if v == nil {
  32973. } else if d.h.DeleteOnNilMapValue {
  32974. delete(v, mk)
  32975. } else {
  32976. v[mk] = 0
  32977. }
  32978. continue
  32979. }
  32980. mv = dd.DecodeUint64()
  32981. if v != nil {
  32982. v[mk] = mv
  32983. }
  32984. }
  32985. dd.ReadMapEnd()
  32986. d.depthDecr()
  32987. return v, changed
  32988. }
  32989. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  32990. if rv.Kind() == reflect.Ptr {
  32991. vp := rv2i(rv).(*map[int64]uintptr)
  32992. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d)
  32993. if changed {
  32994. *vp = v
  32995. }
  32996. } else {
  32997. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  32998. }
  32999. }
  33000. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  33001. v, changed := f.DecMapInt64UintptrV(*vp, true, d)
  33002. if changed {
  33003. *vp = v
  33004. }
  33005. }
  33006. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  33007. d *Decoder) (_ map[int64]uintptr, changed bool) {
  33008. dd, esep := d.d, d.hh.hasElemSeparators()
  33009. containerLen := dd.ReadMapStart()
  33010. if canChange && v == nil {
  33011. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33012. v = make(map[int64]uintptr, xlen)
  33013. changed = true
  33014. }
  33015. if containerLen == 0 {
  33016. dd.ReadMapEnd()
  33017. return v, changed
  33018. }
  33019. d.depthIncr()
  33020. var mk int64
  33021. var mv uintptr
  33022. hasLen := containerLen > 0
  33023. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33024. if esep {
  33025. dd.ReadMapElemKey()
  33026. }
  33027. mk = dd.DecodeInt64()
  33028. if esep {
  33029. dd.ReadMapElemValue()
  33030. }
  33031. if dd.TryDecodeAsNil() {
  33032. if v == nil {
  33033. } else if d.h.DeleteOnNilMapValue {
  33034. delete(v, mk)
  33035. } else {
  33036. v[mk] = 0
  33037. }
  33038. continue
  33039. }
  33040. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33041. if v != nil {
  33042. v[mk] = mv
  33043. }
  33044. }
  33045. dd.ReadMapEnd()
  33046. d.depthDecr()
  33047. return v, changed
  33048. }
  33049. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  33050. if rv.Kind() == reflect.Ptr {
  33051. vp := rv2i(rv).(*map[int64]int)
  33052. v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d)
  33053. if changed {
  33054. *vp = v
  33055. }
  33056. } else {
  33057. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  33058. }
  33059. }
  33060. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  33061. v, changed := f.DecMapInt64IntV(*vp, true, d)
  33062. if changed {
  33063. *vp = v
  33064. }
  33065. }
  33066. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  33067. d *Decoder) (_ map[int64]int, changed bool) {
  33068. dd, esep := d.d, d.hh.hasElemSeparators()
  33069. containerLen := dd.ReadMapStart()
  33070. if canChange && v == nil {
  33071. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33072. v = make(map[int64]int, xlen)
  33073. changed = true
  33074. }
  33075. if containerLen == 0 {
  33076. dd.ReadMapEnd()
  33077. return v, changed
  33078. }
  33079. d.depthIncr()
  33080. var mk int64
  33081. var mv int
  33082. hasLen := containerLen > 0
  33083. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33084. if esep {
  33085. dd.ReadMapElemKey()
  33086. }
  33087. mk = dd.DecodeInt64()
  33088. if esep {
  33089. dd.ReadMapElemValue()
  33090. }
  33091. if dd.TryDecodeAsNil() {
  33092. if v == nil {
  33093. } else if d.h.DeleteOnNilMapValue {
  33094. delete(v, mk)
  33095. } else {
  33096. v[mk] = 0
  33097. }
  33098. continue
  33099. }
  33100. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  33101. if v != nil {
  33102. v[mk] = mv
  33103. }
  33104. }
  33105. dd.ReadMapEnd()
  33106. d.depthDecr()
  33107. return v, changed
  33108. }
  33109. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  33110. if rv.Kind() == reflect.Ptr {
  33111. vp := rv2i(rv).(*map[int64]int8)
  33112. v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d)
  33113. if changed {
  33114. *vp = v
  33115. }
  33116. } else {
  33117. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  33118. }
  33119. }
  33120. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  33121. v, changed := f.DecMapInt64Int8V(*vp, true, d)
  33122. if changed {
  33123. *vp = v
  33124. }
  33125. }
  33126. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  33127. d *Decoder) (_ map[int64]int8, changed bool) {
  33128. dd, esep := d.d, d.hh.hasElemSeparators()
  33129. containerLen := dd.ReadMapStart()
  33130. if canChange && v == nil {
  33131. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33132. v = make(map[int64]int8, xlen)
  33133. changed = true
  33134. }
  33135. if containerLen == 0 {
  33136. dd.ReadMapEnd()
  33137. return v, changed
  33138. }
  33139. d.depthIncr()
  33140. var mk int64
  33141. var mv int8
  33142. hasLen := containerLen > 0
  33143. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33144. if esep {
  33145. dd.ReadMapElemKey()
  33146. }
  33147. mk = dd.DecodeInt64()
  33148. if esep {
  33149. dd.ReadMapElemValue()
  33150. }
  33151. if dd.TryDecodeAsNil() {
  33152. if v == nil {
  33153. } else if d.h.DeleteOnNilMapValue {
  33154. delete(v, mk)
  33155. } else {
  33156. v[mk] = 0
  33157. }
  33158. continue
  33159. }
  33160. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  33161. if v != nil {
  33162. v[mk] = mv
  33163. }
  33164. }
  33165. dd.ReadMapEnd()
  33166. d.depthDecr()
  33167. return v, changed
  33168. }
  33169. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  33170. if rv.Kind() == reflect.Ptr {
  33171. vp := rv2i(rv).(*map[int64]int16)
  33172. v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d)
  33173. if changed {
  33174. *vp = v
  33175. }
  33176. } else {
  33177. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  33178. }
  33179. }
  33180. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  33181. v, changed := f.DecMapInt64Int16V(*vp, true, d)
  33182. if changed {
  33183. *vp = v
  33184. }
  33185. }
  33186. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  33187. d *Decoder) (_ map[int64]int16, changed bool) {
  33188. dd, esep := d.d, d.hh.hasElemSeparators()
  33189. containerLen := dd.ReadMapStart()
  33190. if canChange && v == nil {
  33191. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33192. v = make(map[int64]int16, xlen)
  33193. changed = true
  33194. }
  33195. if containerLen == 0 {
  33196. dd.ReadMapEnd()
  33197. return v, changed
  33198. }
  33199. d.depthIncr()
  33200. var mk int64
  33201. var mv int16
  33202. hasLen := containerLen > 0
  33203. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33204. if esep {
  33205. dd.ReadMapElemKey()
  33206. }
  33207. mk = dd.DecodeInt64()
  33208. if esep {
  33209. dd.ReadMapElemValue()
  33210. }
  33211. if dd.TryDecodeAsNil() {
  33212. if v == nil {
  33213. } else if d.h.DeleteOnNilMapValue {
  33214. delete(v, mk)
  33215. } else {
  33216. v[mk] = 0
  33217. }
  33218. continue
  33219. }
  33220. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  33221. if v != nil {
  33222. v[mk] = mv
  33223. }
  33224. }
  33225. dd.ReadMapEnd()
  33226. d.depthDecr()
  33227. return v, changed
  33228. }
  33229. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  33230. if rv.Kind() == reflect.Ptr {
  33231. vp := rv2i(rv).(*map[int64]int32)
  33232. v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d)
  33233. if changed {
  33234. *vp = v
  33235. }
  33236. } else {
  33237. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  33238. }
  33239. }
  33240. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  33241. v, changed := f.DecMapInt64Int32V(*vp, true, d)
  33242. if changed {
  33243. *vp = v
  33244. }
  33245. }
  33246. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  33247. d *Decoder) (_ map[int64]int32, changed bool) {
  33248. dd, esep := d.d, d.hh.hasElemSeparators()
  33249. containerLen := dd.ReadMapStart()
  33250. if canChange && v == nil {
  33251. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33252. v = make(map[int64]int32, xlen)
  33253. changed = true
  33254. }
  33255. if containerLen == 0 {
  33256. dd.ReadMapEnd()
  33257. return v, changed
  33258. }
  33259. d.depthIncr()
  33260. var mk int64
  33261. var mv int32
  33262. hasLen := containerLen > 0
  33263. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33264. if esep {
  33265. dd.ReadMapElemKey()
  33266. }
  33267. mk = dd.DecodeInt64()
  33268. if esep {
  33269. dd.ReadMapElemValue()
  33270. }
  33271. if dd.TryDecodeAsNil() {
  33272. if v == nil {
  33273. } else if d.h.DeleteOnNilMapValue {
  33274. delete(v, mk)
  33275. } else {
  33276. v[mk] = 0
  33277. }
  33278. continue
  33279. }
  33280. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  33281. if v != nil {
  33282. v[mk] = mv
  33283. }
  33284. }
  33285. dd.ReadMapEnd()
  33286. d.depthDecr()
  33287. return v, changed
  33288. }
  33289. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  33290. if rv.Kind() == reflect.Ptr {
  33291. vp := rv2i(rv).(*map[int64]int64)
  33292. v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d)
  33293. if changed {
  33294. *vp = v
  33295. }
  33296. } else {
  33297. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  33298. }
  33299. }
  33300. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  33301. v, changed := f.DecMapInt64Int64V(*vp, true, d)
  33302. if changed {
  33303. *vp = v
  33304. }
  33305. }
  33306. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  33307. d *Decoder) (_ map[int64]int64, changed bool) {
  33308. dd, esep := d.d, d.hh.hasElemSeparators()
  33309. containerLen := dd.ReadMapStart()
  33310. if canChange && v == nil {
  33311. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33312. v = make(map[int64]int64, xlen)
  33313. changed = true
  33314. }
  33315. if containerLen == 0 {
  33316. dd.ReadMapEnd()
  33317. return v, changed
  33318. }
  33319. d.depthIncr()
  33320. var mk int64
  33321. var mv int64
  33322. hasLen := containerLen > 0
  33323. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33324. if esep {
  33325. dd.ReadMapElemKey()
  33326. }
  33327. mk = dd.DecodeInt64()
  33328. if esep {
  33329. dd.ReadMapElemValue()
  33330. }
  33331. if dd.TryDecodeAsNil() {
  33332. if v == nil {
  33333. } else if d.h.DeleteOnNilMapValue {
  33334. delete(v, mk)
  33335. } else {
  33336. v[mk] = 0
  33337. }
  33338. continue
  33339. }
  33340. mv = dd.DecodeInt64()
  33341. if v != nil {
  33342. v[mk] = mv
  33343. }
  33344. }
  33345. dd.ReadMapEnd()
  33346. d.depthDecr()
  33347. return v, changed
  33348. }
  33349. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  33350. if rv.Kind() == reflect.Ptr {
  33351. vp := rv2i(rv).(*map[int64]float32)
  33352. v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d)
  33353. if changed {
  33354. *vp = v
  33355. }
  33356. } else {
  33357. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  33358. }
  33359. }
  33360. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  33361. v, changed := f.DecMapInt64Float32V(*vp, true, d)
  33362. if changed {
  33363. *vp = v
  33364. }
  33365. }
  33366. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  33367. d *Decoder) (_ map[int64]float32, changed bool) {
  33368. dd, esep := d.d, d.hh.hasElemSeparators()
  33369. containerLen := dd.ReadMapStart()
  33370. if canChange && v == nil {
  33371. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33372. v = make(map[int64]float32, xlen)
  33373. changed = true
  33374. }
  33375. if containerLen == 0 {
  33376. dd.ReadMapEnd()
  33377. return v, changed
  33378. }
  33379. d.depthIncr()
  33380. var mk int64
  33381. var mv float32
  33382. hasLen := containerLen > 0
  33383. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33384. if esep {
  33385. dd.ReadMapElemKey()
  33386. }
  33387. mk = dd.DecodeInt64()
  33388. if esep {
  33389. dd.ReadMapElemValue()
  33390. }
  33391. if dd.TryDecodeAsNil() {
  33392. if v == nil {
  33393. } else if d.h.DeleteOnNilMapValue {
  33394. delete(v, mk)
  33395. } else {
  33396. v[mk] = 0
  33397. }
  33398. continue
  33399. }
  33400. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  33401. if v != nil {
  33402. v[mk] = mv
  33403. }
  33404. }
  33405. dd.ReadMapEnd()
  33406. d.depthDecr()
  33407. return v, changed
  33408. }
  33409. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  33410. if rv.Kind() == reflect.Ptr {
  33411. vp := rv2i(rv).(*map[int64]float64)
  33412. v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d)
  33413. if changed {
  33414. *vp = v
  33415. }
  33416. } else {
  33417. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  33418. }
  33419. }
  33420. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  33421. v, changed := f.DecMapInt64Float64V(*vp, true, d)
  33422. if changed {
  33423. *vp = v
  33424. }
  33425. }
  33426. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  33427. d *Decoder) (_ map[int64]float64, changed bool) {
  33428. dd, esep := d.d, d.hh.hasElemSeparators()
  33429. containerLen := dd.ReadMapStart()
  33430. if canChange && v == nil {
  33431. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33432. v = make(map[int64]float64, xlen)
  33433. changed = true
  33434. }
  33435. if containerLen == 0 {
  33436. dd.ReadMapEnd()
  33437. return v, changed
  33438. }
  33439. d.depthIncr()
  33440. var mk int64
  33441. var mv float64
  33442. hasLen := containerLen > 0
  33443. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33444. if esep {
  33445. dd.ReadMapElemKey()
  33446. }
  33447. mk = dd.DecodeInt64()
  33448. if esep {
  33449. dd.ReadMapElemValue()
  33450. }
  33451. if dd.TryDecodeAsNil() {
  33452. if v == nil {
  33453. } else if d.h.DeleteOnNilMapValue {
  33454. delete(v, mk)
  33455. } else {
  33456. v[mk] = 0
  33457. }
  33458. continue
  33459. }
  33460. mv = dd.DecodeFloat64()
  33461. if v != nil {
  33462. v[mk] = mv
  33463. }
  33464. }
  33465. dd.ReadMapEnd()
  33466. d.depthDecr()
  33467. return v, changed
  33468. }
  33469. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  33470. if rv.Kind() == reflect.Ptr {
  33471. vp := rv2i(rv).(*map[int64]bool)
  33472. v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d)
  33473. if changed {
  33474. *vp = v
  33475. }
  33476. } else {
  33477. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  33478. }
  33479. }
  33480. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  33481. v, changed := f.DecMapInt64BoolV(*vp, true, d)
  33482. if changed {
  33483. *vp = v
  33484. }
  33485. }
  33486. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  33487. d *Decoder) (_ map[int64]bool, changed bool) {
  33488. dd, esep := d.d, d.hh.hasElemSeparators()
  33489. containerLen := dd.ReadMapStart()
  33490. if canChange && v == nil {
  33491. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33492. v = make(map[int64]bool, xlen)
  33493. changed = true
  33494. }
  33495. if containerLen == 0 {
  33496. dd.ReadMapEnd()
  33497. return v, changed
  33498. }
  33499. d.depthIncr()
  33500. var mk int64
  33501. var mv bool
  33502. hasLen := containerLen > 0
  33503. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33504. if esep {
  33505. dd.ReadMapElemKey()
  33506. }
  33507. mk = dd.DecodeInt64()
  33508. if esep {
  33509. dd.ReadMapElemValue()
  33510. }
  33511. if dd.TryDecodeAsNil() {
  33512. if v == nil {
  33513. } else if d.h.DeleteOnNilMapValue {
  33514. delete(v, mk)
  33515. } else {
  33516. v[mk] = false
  33517. }
  33518. continue
  33519. }
  33520. mv = dd.DecodeBool()
  33521. if v != nil {
  33522. v[mk] = mv
  33523. }
  33524. }
  33525. dd.ReadMapEnd()
  33526. d.depthDecr()
  33527. return v, changed
  33528. }
  33529. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  33530. if rv.Kind() == reflect.Ptr {
  33531. vp := rv2i(rv).(*map[bool]interface{})
  33532. v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d)
  33533. if changed {
  33534. *vp = v
  33535. }
  33536. } else {
  33537. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  33538. }
  33539. }
  33540. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  33541. v, changed := f.DecMapBoolIntfV(*vp, true, d)
  33542. if changed {
  33543. *vp = v
  33544. }
  33545. }
  33546. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  33547. d *Decoder) (_ map[bool]interface{}, changed bool) {
  33548. dd, esep := d.d, d.hh.hasElemSeparators()
  33549. containerLen := dd.ReadMapStart()
  33550. if canChange && v == nil {
  33551. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33552. v = make(map[bool]interface{}, xlen)
  33553. changed = true
  33554. }
  33555. if containerLen == 0 {
  33556. dd.ReadMapEnd()
  33557. return v, changed
  33558. }
  33559. d.depthIncr()
  33560. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  33561. var mk bool
  33562. var mv interface{}
  33563. hasLen := containerLen > 0
  33564. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33565. if esep {
  33566. dd.ReadMapElemKey()
  33567. }
  33568. mk = dd.DecodeBool()
  33569. if esep {
  33570. dd.ReadMapElemValue()
  33571. }
  33572. if dd.TryDecodeAsNil() {
  33573. if v == nil {
  33574. } else if d.h.DeleteOnNilMapValue {
  33575. delete(v, mk)
  33576. } else {
  33577. v[mk] = nil
  33578. }
  33579. continue
  33580. }
  33581. if mapGet {
  33582. mv = v[mk]
  33583. } else {
  33584. mv = nil
  33585. }
  33586. d.decode(&mv)
  33587. if v != nil {
  33588. v[mk] = mv
  33589. }
  33590. }
  33591. dd.ReadMapEnd()
  33592. d.depthDecr()
  33593. return v, changed
  33594. }
  33595. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  33596. if rv.Kind() == reflect.Ptr {
  33597. vp := rv2i(rv).(*map[bool]string)
  33598. v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d)
  33599. if changed {
  33600. *vp = v
  33601. }
  33602. } else {
  33603. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  33604. }
  33605. }
  33606. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  33607. v, changed := f.DecMapBoolStringV(*vp, true, d)
  33608. if changed {
  33609. *vp = v
  33610. }
  33611. }
  33612. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  33613. d *Decoder) (_ map[bool]string, changed bool) {
  33614. dd, esep := d.d, d.hh.hasElemSeparators()
  33615. containerLen := dd.ReadMapStart()
  33616. if canChange && v == nil {
  33617. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33618. v = make(map[bool]string, xlen)
  33619. changed = true
  33620. }
  33621. if containerLen == 0 {
  33622. dd.ReadMapEnd()
  33623. return v, changed
  33624. }
  33625. d.depthIncr()
  33626. var mk bool
  33627. var mv string
  33628. hasLen := containerLen > 0
  33629. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33630. if esep {
  33631. dd.ReadMapElemKey()
  33632. }
  33633. mk = dd.DecodeBool()
  33634. if esep {
  33635. dd.ReadMapElemValue()
  33636. }
  33637. if dd.TryDecodeAsNil() {
  33638. if v == nil {
  33639. } else if d.h.DeleteOnNilMapValue {
  33640. delete(v, mk)
  33641. } else {
  33642. v[mk] = ""
  33643. }
  33644. continue
  33645. }
  33646. mv = dd.DecodeString()
  33647. if v != nil {
  33648. v[mk] = mv
  33649. }
  33650. }
  33651. dd.ReadMapEnd()
  33652. d.depthDecr()
  33653. return v, changed
  33654. }
  33655. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  33656. if rv.Kind() == reflect.Ptr {
  33657. vp := rv2i(rv).(*map[bool]uint)
  33658. v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d)
  33659. if changed {
  33660. *vp = v
  33661. }
  33662. } else {
  33663. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  33664. }
  33665. }
  33666. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  33667. v, changed := f.DecMapBoolUintV(*vp, true, d)
  33668. if changed {
  33669. *vp = v
  33670. }
  33671. }
  33672. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  33673. d *Decoder) (_ map[bool]uint, changed bool) {
  33674. dd, esep := d.d, d.hh.hasElemSeparators()
  33675. containerLen := dd.ReadMapStart()
  33676. if canChange && v == nil {
  33677. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33678. v = make(map[bool]uint, xlen)
  33679. changed = true
  33680. }
  33681. if containerLen == 0 {
  33682. dd.ReadMapEnd()
  33683. return v, changed
  33684. }
  33685. d.depthIncr()
  33686. var mk bool
  33687. var mv uint
  33688. hasLen := containerLen > 0
  33689. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33690. if esep {
  33691. dd.ReadMapElemKey()
  33692. }
  33693. mk = dd.DecodeBool()
  33694. if esep {
  33695. dd.ReadMapElemValue()
  33696. }
  33697. if dd.TryDecodeAsNil() {
  33698. if v == nil {
  33699. } else if d.h.DeleteOnNilMapValue {
  33700. delete(v, mk)
  33701. } else {
  33702. v[mk] = 0
  33703. }
  33704. continue
  33705. }
  33706. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33707. if v != nil {
  33708. v[mk] = mv
  33709. }
  33710. }
  33711. dd.ReadMapEnd()
  33712. d.depthDecr()
  33713. return v, changed
  33714. }
  33715. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  33716. if rv.Kind() == reflect.Ptr {
  33717. vp := rv2i(rv).(*map[bool]uint8)
  33718. v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d)
  33719. if changed {
  33720. *vp = v
  33721. }
  33722. } else {
  33723. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  33724. }
  33725. }
  33726. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  33727. v, changed := f.DecMapBoolUint8V(*vp, true, d)
  33728. if changed {
  33729. *vp = v
  33730. }
  33731. }
  33732. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  33733. d *Decoder) (_ map[bool]uint8, changed bool) {
  33734. dd, esep := d.d, d.hh.hasElemSeparators()
  33735. containerLen := dd.ReadMapStart()
  33736. if canChange && v == nil {
  33737. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33738. v = make(map[bool]uint8, xlen)
  33739. changed = true
  33740. }
  33741. if containerLen == 0 {
  33742. dd.ReadMapEnd()
  33743. return v, changed
  33744. }
  33745. d.depthIncr()
  33746. var mk bool
  33747. var mv uint8
  33748. hasLen := containerLen > 0
  33749. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33750. if esep {
  33751. dd.ReadMapElemKey()
  33752. }
  33753. mk = dd.DecodeBool()
  33754. if esep {
  33755. dd.ReadMapElemValue()
  33756. }
  33757. if dd.TryDecodeAsNil() {
  33758. if v == nil {
  33759. } else if d.h.DeleteOnNilMapValue {
  33760. delete(v, mk)
  33761. } else {
  33762. v[mk] = 0
  33763. }
  33764. continue
  33765. }
  33766. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  33767. if v != nil {
  33768. v[mk] = mv
  33769. }
  33770. }
  33771. dd.ReadMapEnd()
  33772. d.depthDecr()
  33773. return v, changed
  33774. }
  33775. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  33776. if rv.Kind() == reflect.Ptr {
  33777. vp := rv2i(rv).(*map[bool]uint16)
  33778. v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d)
  33779. if changed {
  33780. *vp = v
  33781. }
  33782. } else {
  33783. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  33784. }
  33785. }
  33786. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  33787. v, changed := f.DecMapBoolUint16V(*vp, true, d)
  33788. if changed {
  33789. *vp = v
  33790. }
  33791. }
  33792. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  33793. d *Decoder) (_ map[bool]uint16, changed bool) {
  33794. dd, esep := d.d, d.hh.hasElemSeparators()
  33795. containerLen := dd.ReadMapStart()
  33796. if canChange && v == nil {
  33797. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33798. v = make(map[bool]uint16, xlen)
  33799. changed = true
  33800. }
  33801. if containerLen == 0 {
  33802. dd.ReadMapEnd()
  33803. return v, changed
  33804. }
  33805. d.depthIncr()
  33806. var mk bool
  33807. var mv uint16
  33808. hasLen := containerLen > 0
  33809. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33810. if esep {
  33811. dd.ReadMapElemKey()
  33812. }
  33813. mk = dd.DecodeBool()
  33814. if esep {
  33815. dd.ReadMapElemValue()
  33816. }
  33817. if dd.TryDecodeAsNil() {
  33818. if v == nil {
  33819. } else if d.h.DeleteOnNilMapValue {
  33820. delete(v, mk)
  33821. } else {
  33822. v[mk] = 0
  33823. }
  33824. continue
  33825. }
  33826. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  33827. if v != nil {
  33828. v[mk] = mv
  33829. }
  33830. }
  33831. dd.ReadMapEnd()
  33832. d.depthDecr()
  33833. return v, changed
  33834. }
  33835. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  33836. if rv.Kind() == reflect.Ptr {
  33837. vp := rv2i(rv).(*map[bool]uint32)
  33838. v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d)
  33839. if changed {
  33840. *vp = v
  33841. }
  33842. } else {
  33843. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  33844. }
  33845. }
  33846. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  33847. v, changed := f.DecMapBoolUint32V(*vp, true, d)
  33848. if changed {
  33849. *vp = v
  33850. }
  33851. }
  33852. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  33853. d *Decoder) (_ map[bool]uint32, changed bool) {
  33854. dd, esep := d.d, d.hh.hasElemSeparators()
  33855. containerLen := dd.ReadMapStart()
  33856. if canChange && v == nil {
  33857. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33858. v = make(map[bool]uint32, xlen)
  33859. changed = true
  33860. }
  33861. if containerLen == 0 {
  33862. dd.ReadMapEnd()
  33863. return v, changed
  33864. }
  33865. d.depthIncr()
  33866. var mk bool
  33867. var mv uint32
  33868. hasLen := containerLen > 0
  33869. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33870. if esep {
  33871. dd.ReadMapElemKey()
  33872. }
  33873. mk = dd.DecodeBool()
  33874. if esep {
  33875. dd.ReadMapElemValue()
  33876. }
  33877. if dd.TryDecodeAsNil() {
  33878. if v == nil {
  33879. } else if d.h.DeleteOnNilMapValue {
  33880. delete(v, mk)
  33881. } else {
  33882. v[mk] = 0
  33883. }
  33884. continue
  33885. }
  33886. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  33887. if v != nil {
  33888. v[mk] = mv
  33889. }
  33890. }
  33891. dd.ReadMapEnd()
  33892. d.depthDecr()
  33893. return v, changed
  33894. }
  33895. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  33896. if rv.Kind() == reflect.Ptr {
  33897. vp := rv2i(rv).(*map[bool]uint64)
  33898. v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d)
  33899. if changed {
  33900. *vp = v
  33901. }
  33902. } else {
  33903. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  33904. }
  33905. }
  33906. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  33907. v, changed := f.DecMapBoolUint64V(*vp, true, d)
  33908. if changed {
  33909. *vp = v
  33910. }
  33911. }
  33912. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  33913. d *Decoder) (_ map[bool]uint64, changed bool) {
  33914. dd, esep := d.d, d.hh.hasElemSeparators()
  33915. containerLen := dd.ReadMapStart()
  33916. if canChange && v == nil {
  33917. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33918. v = make(map[bool]uint64, xlen)
  33919. changed = true
  33920. }
  33921. if containerLen == 0 {
  33922. dd.ReadMapEnd()
  33923. return v, changed
  33924. }
  33925. d.depthIncr()
  33926. var mk bool
  33927. var mv uint64
  33928. hasLen := containerLen > 0
  33929. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33930. if esep {
  33931. dd.ReadMapElemKey()
  33932. }
  33933. mk = dd.DecodeBool()
  33934. if esep {
  33935. dd.ReadMapElemValue()
  33936. }
  33937. if dd.TryDecodeAsNil() {
  33938. if v == nil {
  33939. } else if d.h.DeleteOnNilMapValue {
  33940. delete(v, mk)
  33941. } else {
  33942. v[mk] = 0
  33943. }
  33944. continue
  33945. }
  33946. mv = dd.DecodeUint64()
  33947. if v != nil {
  33948. v[mk] = mv
  33949. }
  33950. }
  33951. dd.ReadMapEnd()
  33952. d.depthDecr()
  33953. return v, changed
  33954. }
  33955. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  33956. if rv.Kind() == reflect.Ptr {
  33957. vp := rv2i(rv).(*map[bool]uintptr)
  33958. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d)
  33959. if changed {
  33960. *vp = v
  33961. }
  33962. } else {
  33963. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  33964. }
  33965. }
  33966. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  33967. v, changed := f.DecMapBoolUintptrV(*vp, true, d)
  33968. if changed {
  33969. *vp = v
  33970. }
  33971. }
  33972. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  33973. d *Decoder) (_ map[bool]uintptr, changed bool) {
  33974. dd, esep := d.d, d.hh.hasElemSeparators()
  33975. containerLen := dd.ReadMapStart()
  33976. if canChange && v == nil {
  33977. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33978. v = make(map[bool]uintptr, xlen)
  33979. changed = true
  33980. }
  33981. if containerLen == 0 {
  33982. dd.ReadMapEnd()
  33983. return v, changed
  33984. }
  33985. d.depthIncr()
  33986. var mk bool
  33987. var mv uintptr
  33988. hasLen := containerLen > 0
  33989. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33990. if esep {
  33991. dd.ReadMapElemKey()
  33992. }
  33993. mk = dd.DecodeBool()
  33994. if esep {
  33995. dd.ReadMapElemValue()
  33996. }
  33997. if dd.TryDecodeAsNil() {
  33998. if v == nil {
  33999. } else if d.h.DeleteOnNilMapValue {
  34000. delete(v, mk)
  34001. } else {
  34002. v[mk] = 0
  34003. }
  34004. continue
  34005. }
  34006. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  34007. if v != nil {
  34008. v[mk] = mv
  34009. }
  34010. }
  34011. dd.ReadMapEnd()
  34012. d.depthDecr()
  34013. return v, changed
  34014. }
  34015. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  34016. if rv.Kind() == reflect.Ptr {
  34017. vp := rv2i(rv).(*map[bool]int)
  34018. v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d)
  34019. if changed {
  34020. *vp = v
  34021. }
  34022. } else {
  34023. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  34024. }
  34025. }
  34026. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  34027. v, changed := f.DecMapBoolIntV(*vp, true, d)
  34028. if changed {
  34029. *vp = v
  34030. }
  34031. }
  34032. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  34033. d *Decoder) (_ map[bool]int, changed bool) {
  34034. dd, esep := d.d, d.hh.hasElemSeparators()
  34035. containerLen := dd.ReadMapStart()
  34036. if canChange && v == nil {
  34037. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34038. v = make(map[bool]int, xlen)
  34039. changed = true
  34040. }
  34041. if containerLen == 0 {
  34042. dd.ReadMapEnd()
  34043. return v, changed
  34044. }
  34045. d.depthIncr()
  34046. var mk bool
  34047. var mv int
  34048. hasLen := containerLen > 0
  34049. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34050. if esep {
  34051. dd.ReadMapElemKey()
  34052. }
  34053. mk = dd.DecodeBool()
  34054. if esep {
  34055. dd.ReadMapElemValue()
  34056. }
  34057. if dd.TryDecodeAsNil() {
  34058. if v == nil {
  34059. } else if d.h.DeleteOnNilMapValue {
  34060. delete(v, mk)
  34061. } else {
  34062. v[mk] = 0
  34063. }
  34064. continue
  34065. }
  34066. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  34067. if v != nil {
  34068. v[mk] = mv
  34069. }
  34070. }
  34071. dd.ReadMapEnd()
  34072. d.depthDecr()
  34073. return v, changed
  34074. }
  34075. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  34076. if rv.Kind() == reflect.Ptr {
  34077. vp := rv2i(rv).(*map[bool]int8)
  34078. v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d)
  34079. if changed {
  34080. *vp = v
  34081. }
  34082. } else {
  34083. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  34084. }
  34085. }
  34086. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  34087. v, changed := f.DecMapBoolInt8V(*vp, true, d)
  34088. if changed {
  34089. *vp = v
  34090. }
  34091. }
  34092. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  34093. d *Decoder) (_ map[bool]int8, changed bool) {
  34094. dd, esep := d.d, d.hh.hasElemSeparators()
  34095. containerLen := dd.ReadMapStart()
  34096. if canChange && v == nil {
  34097. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  34098. v = make(map[bool]int8, xlen)
  34099. changed = true
  34100. }
  34101. if containerLen == 0 {
  34102. dd.ReadMapEnd()
  34103. return v, changed
  34104. }
  34105. d.depthIncr()
  34106. var mk bool
  34107. var mv int8
  34108. hasLen := containerLen > 0
  34109. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34110. if esep {
  34111. dd.ReadMapElemKey()
  34112. }
  34113. mk = dd.DecodeBool()
  34114. if esep {
  34115. dd.ReadMapElemValue()
  34116. }
  34117. if dd.TryDecodeAsNil() {
  34118. if v == nil {
  34119. } else if d.h.DeleteOnNilMapValue {
  34120. delete(v, mk)
  34121. } else {
  34122. v[mk] = 0
  34123. }
  34124. continue
  34125. }
  34126. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  34127. if v != nil {
  34128. v[mk] = mv
  34129. }
  34130. }
  34131. dd.ReadMapEnd()
  34132. d.depthDecr()
  34133. return v, changed
  34134. }
  34135. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  34136. if rv.Kind() == reflect.Ptr {
  34137. vp := rv2i(rv).(*map[bool]int16)
  34138. v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d)
  34139. if changed {
  34140. *vp = v
  34141. }
  34142. } else {
  34143. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  34144. }
  34145. }
  34146. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  34147. v, changed := f.DecMapBoolInt16V(*vp, true, d)
  34148. if changed {
  34149. *vp = v
  34150. }
  34151. }
  34152. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  34153. d *Decoder) (_ map[bool]int16, changed bool) {
  34154. dd, esep := d.d, d.hh.hasElemSeparators()
  34155. containerLen := dd.ReadMapStart()
  34156. if canChange && v == nil {
  34157. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  34158. v = make(map[bool]int16, xlen)
  34159. changed = true
  34160. }
  34161. if containerLen == 0 {
  34162. dd.ReadMapEnd()
  34163. return v, changed
  34164. }
  34165. d.depthIncr()
  34166. var mk bool
  34167. var mv int16
  34168. hasLen := containerLen > 0
  34169. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34170. if esep {
  34171. dd.ReadMapElemKey()
  34172. }
  34173. mk = dd.DecodeBool()
  34174. if esep {
  34175. dd.ReadMapElemValue()
  34176. }
  34177. if dd.TryDecodeAsNil() {
  34178. if v == nil {
  34179. } else if d.h.DeleteOnNilMapValue {
  34180. delete(v, mk)
  34181. } else {
  34182. v[mk] = 0
  34183. }
  34184. continue
  34185. }
  34186. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  34187. if v != nil {
  34188. v[mk] = mv
  34189. }
  34190. }
  34191. dd.ReadMapEnd()
  34192. d.depthDecr()
  34193. return v, changed
  34194. }
  34195. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  34196. if rv.Kind() == reflect.Ptr {
  34197. vp := rv2i(rv).(*map[bool]int32)
  34198. v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d)
  34199. if changed {
  34200. *vp = v
  34201. }
  34202. } else {
  34203. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  34204. }
  34205. }
  34206. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  34207. v, changed := f.DecMapBoolInt32V(*vp, true, d)
  34208. if changed {
  34209. *vp = v
  34210. }
  34211. }
  34212. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  34213. d *Decoder) (_ map[bool]int32, changed bool) {
  34214. dd, esep := d.d, d.hh.hasElemSeparators()
  34215. containerLen := dd.ReadMapStart()
  34216. if canChange && v == nil {
  34217. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34218. v = make(map[bool]int32, xlen)
  34219. changed = true
  34220. }
  34221. if containerLen == 0 {
  34222. dd.ReadMapEnd()
  34223. return v, changed
  34224. }
  34225. d.depthIncr()
  34226. var mk bool
  34227. var mv int32
  34228. hasLen := containerLen > 0
  34229. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34230. if esep {
  34231. dd.ReadMapElemKey()
  34232. }
  34233. mk = dd.DecodeBool()
  34234. if esep {
  34235. dd.ReadMapElemValue()
  34236. }
  34237. if dd.TryDecodeAsNil() {
  34238. if v == nil {
  34239. } else if d.h.DeleteOnNilMapValue {
  34240. delete(v, mk)
  34241. } else {
  34242. v[mk] = 0
  34243. }
  34244. continue
  34245. }
  34246. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  34247. if v != nil {
  34248. v[mk] = mv
  34249. }
  34250. }
  34251. dd.ReadMapEnd()
  34252. d.depthDecr()
  34253. return v, changed
  34254. }
  34255. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  34256. if rv.Kind() == reflect.Ptr {
  34257. vp := rv2i(rv).(*map[bool]int64)
  34258. v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d)
  34259. if changed {
  34260. *vp = v
  34261. }
  34262. } else {
  34263. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  34264. }
  34265. }
  34266. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  34267. v, changed := f.DecMapBoolInt64V(*vp, true, d)
  34268. if changed {
  34269. *vp = v
  34270. }
  34271. }
  34272. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  34273. d *Decoder) (_ map[bool]int64, changed bool) {
  34274. dd, esep := d.d, d.hh.hasElemSeparators()
  34275. containerLen := dd.ReadMapStart()
  34276. if canChange && v == nil {
  34277. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34278. v = make(map[bool]int64, xlen)
  34279. changed = true
  34280. }
  34281. if containerLen == 0 {
  34282. dd.ReadMapEnd()
  34283. return v, changed
  34284. }
  34285. d.depthIncr()
  34286. var mk bool
  34287. var mv int64
  34288. hasLen := containerLen > 0
  34289. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34290. if esep {
  34291. dd.ReadMapElemKey()
  34292. }
  34293. mk = dd.DecodeBool()
  34294. if esep {
  34295. dd.ReadMapElemValue()
  34296. }
  34297. if dd.TryDecodeAsNil() {
  34298. if v == nil {
  34299. } else if d.h.DeleteOnNilMapValue {
  34300. delete(v, mk)
  34301. } else {
  34302. v[mk] = 0
  34303. }
  34304. continue
  34305. }
  34306. mv = dd.DecodeInt64()
  34307. if v != nil {
  34308. v[mk] = mv
  34309. }
  34310. }
  34311. dd.ReadMapEnd()
  34312. d.depthDecr()
  34313. return v, changed
  34314. }
  34315. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  34316. if rv.Kind() == reflect.Ptr {
  34317. vp := rv2i(rv).(*map[bool]float32)
  34318. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d)
  34319. if changed {
  34320. *vp = v
  34321. }
  34322. } else {
  34323. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  34324. }
  34325. }
  34326. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  34327. v, changed := f.DecMapBoolFloat32V(*vp, true, d)
  34328. if changed {
  34329. *vp = v
  34330. }
  34331. }
  34332. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  34333. d *Decoder) (_ map[bool]float32, changed bool) {
  34334. dd, esep := d.d, d.hh.hasElemSeparators()
  34335. containerLen := dd.ReadMapStart()
  34336. if canChange && v == nil {
  34337. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34338. v = make(map[bool]float32, xlen)
  34339. changed = true
  34340. }
  34341. if containerLen == 0 {
  34342. dd.ReadMapEnd()
  34343. return v, changed
  34344. }
  34345. d.depthIncr()
  34346. var mk bool
  34347. var mv float32
  34348. hasLen := containerLen > 0
  34349. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34350. if esep {
  34351. dd.ReadMapElemKey()
  34352. }
  34353. mk = dd.DecodeBool()
  34354. if esep {
  34355. dd.ReadMapElemValue()
  34356. }
  34357. if dd.TryDecodeAsNil() {
  34358. if v == nil {
  34359. } else if d.h.DeleteOnNilMapValue {
  34360. delete(v, mk)
  34361. } else {
  34362. v[mk] = 0
  34363. }
  34364. continue
  34365. }
  34366. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  34367. if v != nil {
  34368. v[mk] = mv
  34369. }
  34370. }
  34371. dd.ReadMapEnd()
  34372. d.depthDecr()
  34373. return v, changed
  34374. }
  34375. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  34376. if rv.Kind() == reflect.Ptr {
  34377. vp := rv2i(rv).(*map[bool]float64)
  34378. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d)
  34379. if changed {
  34380. *vp = v
  34381. }
  34382. } else {
  34383. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  34384. }
  34385. }
  34386. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  34387. v, changed := f.DecMapBoolFloat64V(*vp, true, d)
  34388. if changed {
  34389. *vp = v
  34390. }
  34391. }
  34392. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  34393. d *Decoder) (_ map[bool]float64, changed bool) {
  34394. dd, esep := d.d, d.hh.hasElemSeparators()
  34395. containerLen := dd.ReadMapStart()
  34396. if canChange && v == nil {
  34397. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34398. v = make(map[bool]float64, xlen)
  34399. changed = true
  34400. }
  34401. if containerLen == 0 {
  34402. dd.ReadMapEnd()
  34403. return v, changed
  34404. }
  34405. d.depthIncr()
  34406. var mk bool
  34407. var mv float64
  34408. hasLen := containerLen > 0
  34409. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34410. if esep {
  34411. dd.ReadMapElemKey()
  34412. }
  34413. mk = dd.DecodeBool()
  34414. if esep {
  34415. dd.ReadMapElemValue()
  34416. }
  34417. if dd.TryDecodeAsNil() {
  34418. if v == nil {
  34419. } else if d.h.DeleteOnNilMapValue {
  34420. delete(v, mk)
  34421. } else {
  34422. v[mk] = 0
  34423. }
  34424. continue
  34425. }
  34426. mv = dd.DecodeFloat64()
  34427. if v != nil {
  34428. v[mk] = mv
  34429. }
  34430. }
  34431. dd.ReadMapEnd()
  34432. d.depthDecr()
  34433. return v, changed
  34434. }
  34435. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  34436. if rv.Kind() == reflect.Ptr {
  34437. vp := rv2i(rv).(*map[bool]bool)
  34438. v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d)
  34439. if changed {
  34440. *vp = v
  34441. }
  34442. } else {
  34443. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  34444. }
  34445. }
  34446. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  34447. v, changed := f.DecMapBoolBoolV(*vp, true, d)
  34448. if changed {
  34449. *vp = v
  34450. }
  34451. }
  34452. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  34453. d *Decoder) (_ map[bool]bool, changed bool) {
  34454. dd, esep := d.d, d.hh.hasElemSeparators()
  34455. containerLen := dd.ReadMapStart()
  34456. if canChange && v == nil {
  34457. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  34458. v = make(map[bool]bool, xlen)
  34459. changed = true
  34460. }
  34461. if containerLen == 0 {
  34462. dd.ReadMapEnd()
  34463. return v, changed
  34464. }
  34465. d.depthIncr()
  34466. var mk bool
  34467. var mv bool
  34468. hasLen := containerLen > 0
  34469. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34470. if esep {
  34471. dd.ReadMapElemKey()
  34472. }
  34473. mk = dd.DecodeBool()
  34474. if esep {
  34475. dd.ReadMapElemValue()
  34476. }
  34477. if dd.TryDecodeAsNil() {
  34478. if v == nil {
  34479. } else if d.h.DeleteOnNilMapValue {
  34480. delete(v, mk)
  34481. } else {
  34482. v[mk] = false
  34483. }
  34484. continue
  34485. }
  34486. mv = dd.DecodeBool()
  34487. if v != nil {
  34488. v[mk] = mv
  34489. }
  34490. }
  34491. dd.ReadMapEnd()
  34492. d.depthDecr()
  34493. return v, changed
  34494. }