fast-path.generated.go 808 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072
  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. const fastpathMapBySliceErrMsg = "mapBySlice requires even slice length, but got %v"
  34. type fastpathT struct{}
  35. var fastpathTV fastpathT
  36. type fastpathE struct {
  37. rtid uintptr
  38. rt reflect.Type
  39. encfn func(*Encoder, *codecFnInfo, reflect.Value)
  40. decfn func(*Decoder, *codecFnInfo, reflect.Value)
  41. }
  42. type fastpathA [271]fastpathE
  43. func (x *fastpathA) index(rtid uintptr) int {
  44. // use binary search to grab the index (adapted from sort/search.go)
  45. // Note: we use goto (instead of for loop) so this can be inlined.
  46. // h, i, j := 0, 0, len(x)
  47. var h, i uint
  48. var j = uint(len(x))
  49. LOOP:
  50. if i < j {
  51. h = i + (j-i)/2
  52. if x[h].rtid < rtid {
  53. i = h + 1
  54. } else {
  55. j = h
  56. }
  57. goto LOOP
  58. }
  59. if i < uint(len(x)) && x[i].rtid == rtid {
  60. return int(i)
  61. }
  62. return -1
  63. }
  64. type fastpathAslice []fastpathE
  65. func (x fastpathAslice) Len() int { return len(x) }
  66. func (x fastpathAslice) Less(i, j int) bool { return x[uint(i)].rtid < x[uint(j)].rtid }
  67. func (x fastpathAslice) Swap(i, j int) { x[uint(i)], x[uint(j)] = x[uint(j)], x[uint(i)] }
  68. var fastpathAV fastpathA
  69. // due to possible initialization loop error, make fastpath in an init()
  70. func init() {
  71. var i uint = 0
  72. fn := func(v interface{},
  73. fe func(*Encoder, *codecFnInfo, reflect.Value),
  74. fd func(*Decoder, *codecFnInfo, reflect.Value)) {
  75. xrt := reflect.TypeOf(v)
  76. xptr := rt2id(xrt)
  77. fastpathAV[i] = fastpathE{xptr, xrt, fe, fd}
  78. i++
  79. }
  80. fn([]interface{}(nil), (*Encoder).fastpathEncSliceIntfR, (*Decoder).fastpathDecSliceIntfR)
  81. fn([]string(nil), (*Encoder).fastpathEncSliceStringR, (*Decoder).fastpathDecSliceStringR)
  82. fn([]float32(nil), (*Encoder).fastpathEncSliceFloat32R, (*Decoder).fastpathDecSliceFloat32R)
  83. fn([]float64(nil), (*Encoder).fastpathEncSliceFloat64R, (*Decoder).fastpathDecSliceFloat64R)
  84. fn([]uint(nil), (*Encoder).fastpathEncSliceUintR, (*Decoder).fastpathDecSliceUintR)
  85. fn([]uint16(nil), (*Encoder).fastpathEncSliceUint16R, (*Decoder).fastpathDecSliceUint16R)
  86. fn([]uint32(nil), (*Encoder).fastpathEncSliceUint32R, (*Decoder).fastpathDecSliceUint32R)
  87. fn([]uint64(nil), (*Encoder).fastpathEncSliceUint64R, (*Decoder).fastpathDecSliceUint64R)
  88. fn([]uintptr(nil), (*Encoder).fastpathEncSliceUintptrR, (*Decoder).fastpathDecSliceUintptrR)
  89. fn([]int(nil), (*Encoder).fastpathEncSliceIntR, (*Decoder).fastpathDecSliceIntR)
  90. fn([]int8(nil), (*Encoder).fastpathEncSliceInt8R, (*Decoder).fastpathDecSliceInt8R)
  91. fn([]int16(nil), (*Encoder).fastpathEncSliceInt16R, (*Decoder).fastpathDecSliceInt16R)
  92. fn([]int32(nil), (*Encoder).fastpathEncSliceInt32R, (*Decoder).fastpathDecSliceInt32R)
  93. fn([]int64(nil), (*Encoder).fastpathEncSliceInt64R, (*Decoder).fastpathDecSliceInt64R)
  94. fn([]bool(nil), (*Encoder).fastpathEncSliceBoolR, (*Decoder).fastpathDecSliceBoolR)
  95. fn(map[interface{}]interface{}(nil), (*Encoder).fastpathEncMapIntfIntfR, (*Decoder).fastpathDecMapIntfIntfR)
  96. fn(map[interface{}]string(nil), (*Encoder).fastpathEncMapIntfStringR, (*Decoder).fastpathDecMapIntfStringR)
  97. fn(map[interface{}]uint(nil), (*Encoder).fastpathEncMapIntfUintR, (*Decoder).fastpathDecMapIntfUintR)
  98. fn(map[interface{}]uint8(nil), (*Encoder).fastpathEncMapIntfUint8R, (*Decoder).fastpathDecMapIntfUint8R)
  99. fn(map[interface{}]uint16(nil), (*Encoder).fastpathEncMapIntfUint16R, (*Decoder).fastpathDecMapIntfUint16R)
  100. fn(map[interface{}]uint32(nil), (*Encoder).fastpathEncMapIntfUint32R, (*Decoder).fastpathDecMapIntfUint32R)
  101. fn(map[interface{}]uint64(nil), (*Encoder).fastpathEncMapIntfUint64R, (*Decoder).fastpathDecMapIntfUint64R)
  102. fn(map[interface{}]uintptr(nil), (*Encoder).fastpathEncMapIntfUintptrR, (*Decoder).fastpathDecMapIntfUintptrR)
  103. fn(map[interface{}]int(nil), (*Encoder).fastpathEncMapIntfIntR, (*Decoder).fastpathDecMapIntfIntR)
  104. fn(map[interface{}]int8(nil), (*Encoder).fastpathEncMapIntfInt8R, (*Decoder).fastpathDecMapIntfInt8R)
  105. fn(map[interface{}]int16(nil), (*Encoder).fastpathEncMapIntfInt16R, (*Decoder).fastpathDecMapIntfInt16R)
  106. fn(map[interface{}]int32(nil), (*Encoder).fastpathEncMapIntfInt32R, (*Decoder).fastpathDecMapIntfInt32R)
  107. fn(map[interface{}]int64(nil), (*Encoder).fastpathEncMapIntfInt64R, (*Decoder).fastpathDecMapIntfInt64R)
  108. fn(map[interface{}]float32(nil), (*Encoder).fastpathEncMapIntfFloat32R, (*Decoder).fastpathDecMapIntfFloat32R)
  109. fn(map[interface{}]float64(nil), (*Encoder).fastpathEncMapIntfFloat64R, (*Decoder).fastpathDecMapIntfFloat64R)
  110. fn(map[interface{}]bool(nil), (*Encoder).fastpathEncMapIntfBoolR, (*Decoder).fastpathDecMapIntfBoolR)
  111. fn(map[string]interface{}(nil), (*Encoder).fastpathEncMapStringIntfR, (*Decoder).fastpathDecMapStringIntfR)
  112. fn(map[string]string(nil), (*Encoder).fastpathEncMapStringStringR, (*Decoder).fastpathDecMapStringStringR)
  113. fn(map[string]uint(nil), (*Encoder).fastpathEncMapStringUintR, (*Decoder).fastpathDecMapStringUintR)
  114. fn(map[string]uint8(nil), (*Encoder).fastpathEncMapStringUint8R, (*Decoder).fastpathDecMapStringUint8R)
  115. fn(map[string]uint16(nil), (*Encoder).fastpathEncMapStringUint16R, (*Decoder).fastpathDecMapStringUint16R)
  116. fn(map[string]uint32(nil), (*Encoder).fastpathEncMapStringUint32R, (*Decoder).fastpathDecMapStringUint32R)
  117. fn(map[string]uint64(nil), (*Encoder).fastpathEncMapStringUint64R, (*Decoder).fastpathDecMapStringUint64R)
  118. fn(map[string]uintptr(nil), (*Encoder).fastpathEncMapStringUintptrR, (*Decoder).fastpathDecMapStringUintptrR)
  119. fn(map[string]int(nil), (*Encoder).fastpathEncMapStringIntR, (*Decoder).fastpathDecMapStringIntR)
  120. fn(map[string]int8(nil), (*Encoder).fastpathEncMapStringInt8R, (*Decoder).fastpathDecMapStringInt8R)
  121. fn(map[string]int16(nil), (*Encoder).fastpathEncMapStringInt16R, (*Decoder).fastpathDecMapStringInt16R)
  122. fn(map[string]int32(nil), (*Encoder).fastpathEncMapStringInt32R, (*Decoder).fastpathDecMapStringInt32R)
  123. fn(map[string]int64(nil), (*Encoder).fastpathEncMapStringInt64R, (*Decoder).fastpathDecMapStringInt64R)
  124. fn(map[string]float32(nil), (*Encoder).fastpathEncMapStringFloat32R, (*Decoder).fastpathDecMapStringFloat32R)
  125. fn(map[string]float64(nil), (*Encoder).fastpathEncMapStringFloat64R, (*Decoder).fastpathDecMapStringFloat64R)
  126. fn(map[string]bool(nil), (*Encoder).fastpathEncMapStringBoolR, (*Decoder).fastpathDecMapStringBoolR)
  127. fn(map[float32]interface{}(nil), (*Encoder).fastpathEncMapFloat32IntfR, (*Decoder).fastpathDecMapFloat32IntfR)
  128. fn(map[float32]string(nil), (*Encoder).fastpathEncMapFloat32StringR, (*Decoder).fastpathDecMapFloat32StringR)
  129. fn(map[float32]uint(nil), (*Encoder).fastpathEncMapFloat32UintR, (*Decoder).fastpathDecMapFloat32UintR)
  130. fn(map[float32]uint8(nil), (*Encoder).fastpathEncMapFloat32Uint8R, (*Decoder).fastpathDecMapFloat32Uint8R)
  131. fn(map[float32]uint16(nil), (*Encoder).fastpathEncMapFloat32Uint16R, (*Decoder).fastpathDecMapFloat32Uint16R)
  132. fn(map[float32]uint32(nil), (*Encoder).fastpathEncMapFloat32Uint32R, (*Decoder).fastpathDecMapFloat32Uint32R)
  133. fn(map[float32]uint64(nil), (*Encoder).fastpathEncMapFloat32Uint64R, (*Decoder).fastpathDecMapFloat32Uint64R)
  134. fn(map[float32]uintptr(nil), (*Encoder).fastpathEncMapFloat32UintptrR, (*Decoder).fastpathDecMapFloat32UintptrR)
  135. fn(map[float32]int(nil), (*Encoder).fastpathEncMapFloat32IntR, (*Decoder).fastpathDecMapFloat32IntR)
  136. fn(map[float32]int8(nil), (*Encoder).fastpathEncMapFloat32Int8R, (*Decoder).fastpathDecMapFloat32Int8R)
  137. fn(map[float32]int16(nil), (*Encoder).fastpathEncMapFloat32Int16R, (*Decoder).fastpathDecMapFloat32Int16R)
  138. fn(map[float32]int32(nil), (*Encoder).fastpathEncMapFloat32Int32R, (*Decoder).fastpathDecMapFloat32Int32R)
  139. fn(map[float32]int64(nil), (*Encoder).fastpathEncMapFloat32Int64R, (*Decoder).fastpathDecMapFloat32Int64R)
  140. fn(map[float32]float32(nil), (*Encoder).fastpathEncMapFloat32Float32R, (*Decoder).fastpathDecMapFloat32Float32R)
  141. fn(map[float32]float64(nil), (*Encoder).fastpathEncMapFloat32Float64R, (*Decoder).fastpathDecMapFloat32Float64R)
  142. fn(map[float32]bool(nil), (*Encoder).fastpathEncMapFloat32BoolR, (*Decoder).fastpathDecMapFloat32BoolR)
  143. fn(map[float64]interface{}(nil), (*Encoder).fastpathEncMapFloat64IntfR, (*Decoder).fastpathDecMapFloat64IntfR)
  144. fn(map[float64]string(nil), (*Encoder).fastpathEncMapFloat64StringR, (*Decoder).fastpathDecMapFloat64StringR)
  145. fn(map[float64]uint(nil), (*Encoder).fastpathEncMapFloat64UintR, (*Decoder).fastpathDecMapFloat64UintR)
  146. fn(map[float64]uint8(nil), (*Encoder).fastpathEncMapFloat64Uint8R, (*Decoder).fastpathDecMapFloat64Uint8R)
  147. fn(map[float64]uint16(nil), (*Encoder).fastpathEncMapFloat64Uint16R, (*Decoder).fastpathDecMapFloat64Uint16R)
  148. fn(map[float64]uint32(nil), (*Encoder).fastpathEncMapFloat64Uint32R, (*Decoder).fastpathDecMapFloat64Uint32R)
  149. fn(map[float64]uint64(nil), (*Encoder).fastpathEncMapFloat64Uint64R, (*Decoder).fastpathDecMapFloat64Uint64R)
  150. fn(map[float64]uintptr(nil), (*Encoder).fastpathEncMapFloat64UintptrR, (*Decoder).fastpathDecMapFloat64UintptrR)
  151. fn(map[float64]int(nil), (*Encoder).fastpathEncMapFloat64IntR, (*Decoder).fastpathDecMapFloat64IntR)
  152. fn(map[float64]int8(nil), (*Encoder).fastpathEncMapFloat64Int8R, (*Decoder).fastpathDecMapFloat64Int8R)
  153. fn(map[float64]int16(nil), (*Encoder).fastpathEncMapFloat64Int16R, (*Decoder).fastpathDecMapFloat64Int16R)
  154. fn(map[float64]int32(nil), (*Encoder).fastpathEncMapFloat64Int32R, (*Decoder).fastpathDecMapFloat64Int32R)
  155. fn(map[float64]int64(nil), (*Encoder).fastpathEncMapFloat64Int64R, (*Decoder).fastpathDecMapFloat64Int64R)
  156. fn(map[float64]float32(nil), (*Encoder).fastpathEncMapFloat64Float32R, (*Decoder).fastpathDecMapFloat64Float32R)
  157. fn(map[float64]float64(nil), (*Encoder).fastpathEncMapFloat64Float64R, (*Decoder).fastpathDecMapFloat64Float64R)
  158. fn(map[float64]bool(nil), (*Encoder).fastpathEncMapFloat64BoolR, (*Decoder).fastpathDecMapFloat64BoolR)
  159. fn(map[uint]interface{}(nil), (*Encoder).fastpathEncMapUintIntfR, (*Decoder).fastpathDecMapUintIntfR)
  160. fn(map[uint]string(nil), (*Encoder).fastpathEncMapUintStringR, (*Decoder).fastpathDecMapUintStringR)
  161. fn(map[uint]uint(nil), (*Encoder).fastpathEncMapUintUintR, (*Decoder).fastpathDecMapUintUintR)
  162. fn(map[uint]uint8(nil), (*Encoder).fastpathEncMapUintUint8R, (*Decoder).fastpathDecMapUintUint8R)
  163. fn(map[uint]uint16(nil), (*Encoder).fastpathEncMapUintUint16R, (*Decoder).fastpathDecMapUintUint16R)
  164. fn(map[uint]uint32(nil), (*Encoder).fastpathEncMapUintUint32R, (*Decoder).fastpathDecMapUintUint32R)
  165. fn(map[uint]uint64(nil), (*Encoder).fastpathEncMapUintUint64R, (*Decoder).fastpathDecMapUintUint64R)
  166. fn(map[uint]uintptr(nil), (*Encoder).fastpathEncMapUintUintptrR, (*Decoder).fastpathDecMapUintUintptrR)
  167. fn(map[uint]int(nil), (*Encoder).fastpathEncMapUintIntR, (*Decoder).fastpathDecMapUintIntR)
  168. fn(map[uint]int8(nil), (*Encoder).fastpathEncMapUintInt8R, (*Decoder).fastpathDecMapUintInt8R)
  169. fn(map[uint]int16(nil), (*Encoder).fastpathEncMapUintInt16R, (*Decoder).fastpathDecMapUintInt16R)
  170. fn(map[uint]int32(nil), (*Encoder).fastpathEncMapUintInt32R, (*Decoder).fastpathDecMapUintInt32R)
  171. fn(map[uint]int64(nil), (*Encoder).fastpathEncMapUintInt64R, (*Decoder).fastpathDecMapUintInt64R)
  172. fn(map[uint]float32(nil), (*Encoder).fastpathEncMapUintFloat32R, (*Decoder).fastpathDecMapUintFloat32R)
  173. fn(map[uint]float64(nil), (*Encoder).fastpathEncMapUintFloat64R, (*Decoder).fastpathDecMapUintFloat64R)
  174. fn(map[uint]bool(nil), (*Encoder).fastpathEncMapUintBoolR, (*Decoder).fastpathDecMapUintBoolR)
  175. fn(map[uint8]interface{}(nil), (*Encoder).fastpathEncMapUint8IntfR, (*Decoder).fastpathDecMapUint8IntfR)
  176. fn(map[uint8]string(nil), (*Encoder).fastpathEncMapUint8StringR, (*Decoder).fastpathDecMapUint8StringR)
  177. fn(map[uint8]uint(nil), (*Encoder).fastpathEncMapUint8UintR, (*Decoder).fastpathDecMapUint8UintR)
  178. fn(map[uint8]uint8(nil), (*Encoder).fastpathEncMapUint8Uint8R, (*Decoder).fastpathDecMapUint8Uint8R)
  179. fn(map[uint8]uint16(nil), (*Encoder).fastpathEncMapUint8Uint16R, (*Decoder).fastpathDecMapUint8Uint16R)
  180. fn(map[uint8]uint32(nil), (*Encoder).fastpathEncMapUint8Uint32R, (*Decoder).fastpathDecMapUint8Uint32R)
  181. fn(map[uint8]uint64(nil), (*Encoder).fastpathEncMapUint8Uint64R, (*Decoder).fastpathDecMapUint8Uint64R)
  182. fn(map[uint8]uintptr(nil), (*Encoder).fastpathEncMapUint8UintptrR, (*Decoder).fastpathDecMapUint8UintptrR)
  183. fn(map[uint8]int(nil), (*Encoder).fastpathEncMapUint8IntR, (*Decoder).fastpathDecMapUint8IntR)
  184. fn(map[uint8]int8(nil), (*Encoder).fastpathEncMapUint8Int8R, (*Decoder).fastpathDecMapUint8Int8R)
  185. fn(map[uint8]int16(nil), (*Encoder).fastpathEncMapUint8Int16R, (*Decoder).fastpathDecMapUint8Int16R)
  186. fn(map[uint8]int32(nil), (*Encoder).fastpathEncMapUint8Int32R, (*Decoder).fastpathDecMapUint8Int32R)
  187. fn(map[uint8]int64(nil), (*Encoder).fastpathEncMapUint8Int64R, (*Decoder).fastpathDecMapUint8Int64R)
  188. fn(map[uint8]float32(nil), (*Encoder).fastpathEncMapUint8Float32R, (*Decoder).fastpathDecMapUint8Float32R)
  189. fn(map[uint8]float64(nil), (*Encoder).fastpathEncMapUint8Float64R, (*Decoder).fastpathDecMapUint8Float64R)
  190. fn(map[uint8]bool(nil), (*Encoder).fastpathEncMapUint8BoolR, (*Decoder).fastpathDecMapUint8BoolR)
  191. fn(map[uint16]interface{}(nil), (*Encoder).fastpathEncMapUint16IntfR, (*Decoder).fastpathDecMapUint16IntfR)
  192. fn(map[uint16]string(nil), (*Encoder).fastpathEncMapUint16StringR, (*Decoder).fastpathDecMapUint16StringR)
  193. fn(map[uint16]uint(nil), (*Encoder).fastpathEncMapUint16UintR, (*Decoder).fastpathDecMapUint16UintR)
  194. fn(map[uint16]uint8(nil), (*Encoder).fastpathEncMapUint16Uint8R, (*Decoder).fastpathDecMapUint16Uint8R)
  195. fn(map[uint16]uint16(nil), (*Encoder).fastpathEncMapUint16Uint16R, (*Decoder).fastpathDecMapUint16Uint16R)
  196. fn(map[uint16]uint32(nil), (*Encoder).fastpathEncMapUint16Uint32R, (*Decoder).fastpathDecMapUint16Uint32R)
  197. fn(map[uint16]uint64(nil), (*Encoder).fastpathEncMapUint16Uint64R, (*Decoder).fastpathDecMapUint16Uint64R)
  198. fn(map[uint16]uintptr(nil), (*Encoder).fastpathEncMapUint16UintptrR, (*Decoder).fastpathDecMapUint16UintptrR)
  199. fn(map[uint16]int(nil), (*Encoder).fastpathEncMapUint16IntR, (*Decoder).fastpathDecMapUint16IntR)
  200. fn(map[uint16]int8(nil), (*Encoder).fastpathEncMapUint16Int8R, (*Decoder).fastpathDecMapUint16Int8R)
  201. fn(map[uint16]int16(nil), (*Encoder).fastpathEncMapUint16Int16R, (*Decoder).fastpathDecMapUint16Int16R)
  202. fn(map[uint16]int32(nil), (*Encoder).fastpathEncMapUint16Int32R, (*Decoder).fastpathDecMapUint16Int32R)
  203. fn(map[uint16]int64(nil), (*Encoder).fastpathEncMapUint16Int64R, (*Decoder).fastpathDecMapUint16Int64R)
  204. fn(map[uint16]float32(nil), (*Encoder).fastpathEncMapUint16Float32R, (*Decoder).fastpathDecMapUint16Float32R)
  205. fn(map[uint16]float64(nil), (*Encoder).fastpathEncMapUint16Float64R, (*Decoder).fastpathDecMapUint16Float64R)
  206. fn(map[uint16]bool(nil), (*Encoder).fastpathEncMapUint16BoolR, (*Decoder).fastpathDecMapUint16BoolR)
  207. fn(map[uint32]interface{}(nil), (*Encoder).fastpathEncMapUint32IntfR, (*Decoder).fastpathDecMapUint32IntfR)
  208. fn(map[uint32]string(nil), (*Encoder).fastpathEncMapUint32StringR, (*Decoder).fastpathDecMapUint32StringR)
  209. fn(map[uint32]uint(nil), (*Encoder).fastpathEncMapUint32UintR, (*Decoder).fastpathDecMapUint32UintR)
  210. fn(map[uint32]uint8(nil), (*Encoder).fastpathEncMapUint32Uint8R, (*Decoder).fastpathDecMapUint32Uint8R)
  211. fn(map[uint32]uint16(nil), (*Encoder).fastpathEncMapUint32Uint16R, (*Decoder).fastpathDecMapUint32Uint16R)
  212. fn(map[uint32]uint32(nil), (*Encoder).fastpathEncMapUint32Uint32R, (*Decoder).fastpathDecMapUint32Uint32R)
  213. fn(map[uint32]uint64(nil), (*Encoder).fastpathEncMapUint32Uint64R, (*Decoder).fastpathDecMapUint32Uint64R)
  214. fn(map[uint32]uintptr(nil), (*Encoder).fastpathEncMapUint32UintptrR, (*Decoder).fastpathDecMapUint32UintptrR)
  215. fn(map[uint32]int(nil), (*Encoder).fastpathEncMapUint32IntR, (*Decoder).fastpathDecMapUint32IntR)
  216. fn(map[uint32]int8(nil), (*Encoder).fastpathEncMapUint32Int8R, (*Decoder).fastpathDecMapUint32Int8R)
  217. fn(map[uint32]int16(nil), (*Encoder).fastpathEncMapUint32Int16R, (*Decoder).fastpathDecMapUint32Int16R)
  218. fn(map[uint32]int32(nil), (*Encoder).fastpathEncMapUint32Int32R, (*Decoder).fastpathDecMapUint32Int32R)
  219. fn(map[uint32]int64(nil), (*Encoder).fastpathEncMapUint32Int64R, (*Decoder).fastpathDecMapUint32Int64R)
  220. fn(map[uint32]float32(nil), (*Encoder).fastpathEncMapUint32Float32R, (*Decoder).fastpathDecMapUint32Float32R)
  221. fn(map[uint32]float64(nil), (*Encoder).fastpathEncMapUint32Float64R, (*Decoder).fastpathDecMapUint32Float64R)
  222. fn(map[uint32]bool(nil), (*Encoder).fastpathEncMapUint32BoolR, (*Decoder).fastpathDecMapUint32BoolR)
  223. fn(map[uint64]interface{}(nil), (*Encoder).fastpathEncMapUint64IntfR, (*Decoder).fastpathDecMapUint64IntfR)
  224. fn(map[uint64]string(nil), (*Encoder).fastpathEncMapUint64StringR, (*Decoder).fastpathDecMapUint64StringR)
  225. fn(map[uint64]uint(nil), (*Encoder).fastpathEncMapUint64UintR, (*Decoder).fastpathDecMapUint64UintR)
  226. fn(map[uint64]uint8(nil), (*Encoder).fastpathEncMapUint64Uint8R, (*Decoder).fastpathDecMapUint64Uint8R)
  227. fn(map[uint64]uint16(nil), (*Encoder).fastpathEncMapUint64Uint16R, (*Decoder).fastpathDecMapUint64Uint16R)
  228. fn(map[uint64]uint32(nil), (*Encoder).fastpathEncMapUint64Uint32R, (*Decoder).fastpathDecMapUint64Uint32R)
  229. fn(map[uint64]uint64(nil), (*Encoder).fastpathEncMapUint64Uint64R, (*Decoder).fastpathDecMapUint64Uint64R)
  230. fn(map[uint64]uintptr(nil), (*Encoder).fastpathEncMapUint64UintptrR, (*Decoder).fastpathDecMapUint64UintptrR)
  231. fn(map[uint64]int(nil), (*Encoder).fastpathEncMapUint64IntR, (*Decoder).fastpathDecMapUint64IntR)
  232. fn(map[uint64]int8(nil), (*Encoder).fastpathEncMapUint64Int8R, (*Decoder).fastpathDecMapUint64Int8R)
  233. fn(map[uint64]int16(nil), (*Encoder).fastpathEncMapUint64Int16R, (*Decoder).fastpathDecMapUint64Int16R)
  234. fn(map[uint64]int32(nil), (*Encoder).fastpathEncMapUint64Int32R, (*Decoder).fastpathDecMapUint64Int32R)
  235. fn(map[uint64]int64(nil), (*Encoder).fastpathEncMapUint64Int64R, (*Decoder).fastpathDecMapUint64Int64R)
  236. fn(map[uint64]float32(nil), (*Encoder).fastpathEncMapUint64Float32R, (*Decoder).fastpathDecMapUint64Float32R)
  237. fn(map[uint64]float64(nil), (*Encoder).fastpathEncMapUint64Float64R, (*Decoder).fastpathDecMapUint64Float64R)
  238. fn(map[uint64]bool(nil), (*Encoder).fastpathEncMapUint64BoolR, (*Decoder).fastpathDecMapUint64BoolR)
  239. fn(map[uintptr]interface{}(nil), (*Encoder).fastpathEncMapUintptrIntfR, (*Decoder).fastpathDecMapUintptrIntfR)
  240. fn(map[uintptr]string(nil), (*Encoder).fastpathEncMapUintptrStringR, (*Decoder).fastpathDecMapUintptrStringR)
  241. fn(map[uintptr]uint(nil), (*Encoder).fastpathEncMapUintptrUintR, (*Decoder).fastpathDecMapUintptrUintR)
  242. fn(map[uintptr]uint8(nil), (*Encoder).fastpathEncMapUintptrUint8R, (*Decoder).fastpathDecMapUintptrUint8R)
  243. fn(map[uintptr]uint16(nil), (*Encoder).fastpathEncMapUintptrUint16R, (*Decoder).fastpathDecMapUintptrUint16R)
  244. fn(map[uintptr]uint32(nil), (*Encoder).fastpathEncMapUintptrUint32R, (*Decoder).fastpathDecMapUintptrUint32R)
  245. fn(map[uintptr]uint64(nil), (*Encoder).fastpathEncMapUintptrUint64R, (*Decoder).fastpathDecMapUintptrUint64R)
  246. fn(map[uintptr]uintptr(nil), (*Encoder).fastpathEncMapUintptrUintptrR, (*Decoder).fastpathDecMapUintptrUintptrR)
  247. fn(map[uintptr]int(nil), (*Encoder).fastpathEncMapUintptrIntR, (*Decoder).fastpathDecMapUintptrIntR)
  248. fn(map[uintptr]int8(nil), (*Encoder).fastpathEncMapUintptrInt8R, (*Decoder).fastpathDecMapUintptrInt8R)
  249. fn(map[uintptr]int16(nil), (*Encoder).fastpathEncMapUintptrInt16R, (*Decoder).fastpathDecMapUintptrInt16R)
  250. fn(map[uintptr]int32(nil), (*Encoder).fastpathEncMapUintptrInt32R, (*Decoder).fastpathDecMapUintptrInt32R)
  251. fn(map[uintptr]int64(nil), (*Encoder).fastpathEncMapUintptrInt64R, (*Decoder).fastpathDecMapUintptrInt64R)
  252. fn(map[uintptr]float32(nil), (*Encoder).fastpathEncMapUintptrFloat32R, (*Decoder).fastpathDecMapUintptrFloat32R)
  253. fn(map[uintptr]float64(nil), (*Encoder).fastpathEncMapUintptrFloat64R, (*Decoder).fastpathDecMapUintptrFloat64R)
  254. fn(map[uintptr]bool(nil), (*Encoder).fastpathEncMapUintptrBoolR, (*Decoder).fastpathDecMapUintptrBoolR)
  255. fn(map[int]interface{}(nil), (*Encoder).fastpathEncMapIntIntfR, (*Decoder).fastpathDecMapIntIntfR)
  256. fn(map[int]string(nil), (*Encoder).fastpathEncMapIntStringR, (*Decoder).fastpathDecMapIntStringR)
  257. fn(map[int]uint(nil), (*Encoder).fastpathEncMapIntUintR, (*Decoder).fastpathDecMapIntUintR)
  258. fn(map[int]uint8(nil), (*Encoder).fastpathEncMapIntUint8R, (*Decoder).fastpathDecMapIntUint8R)
  259. fn(map[int]uint16(nil), (*Encoder).fastpathEncMapIntUint16R, (*Decoder).fastpathDecMapIntUint16R)
  260. fn(map[int]uint32(nil), (*Encoder).fastpathEncMapIntUint32R, (*Decoder).fastpathDecMapIntUint32R)
  261. fn(map[int]uint64(nil), (*Encoder).fastpathEncMapIntUint64R, (*Decoder).fastpathDecMapIntUint64R)
  262. fn(map[int]uintptr(nil), (*Encoder).fastpathEncMapIntUintptrR, (*Decoder).fastpathDecMapIntUintptrR)
  263. fn(map[int]int(nil), (*Encoder).fastpathEncMapIntIntR, (*Decoder).fastpathDecMapIntIntR)
  264. fn(map[int]int8(nil), (*Encoder).fastpathEncMapIntInt8R, (*Decoder).fastpathDecMapIntInt8R)
  265. fn(map[int]int16(nil), (*Encoder).fastpathEncMapIntInt16R, (*Decoder).fastpathDecMapIntInt16R)
  266. fn(map[int]int32(nil), (*Encoder).fastpathEncMapIntInt32R, (*Decoder).fastpathDecMapIntInt32R)
  267. fn(map[int]int64(nil), (*Encoder).fastpathEncMapIntInt64R, (*Decoder).fastpathDecMapIntInt64R)
  268. fn(map[int]float32(nil), (*Encoder).fastpathEncMapIntFloat32R, (*Decoder).fastpathDecMapIntFloat32R)
  269. fn(map[int]float64(nil), (*Encoder).fastpathEncMapIntFloat64R, (*Decoder).fastpathDecMapIntFloat64R)
  270. fn(map[int]bool(nil), (*Encoder).fastpathEncMapIntBoolR, (*Decoder).fastpathDecMapIntBoolR)
  271. fn(map[int8]interface{}(nil), (*Encoder).fastpathEncMapInt8IntfR, (*Decoder).fastpathDecMapInt8IntfR)
  272. fn(map[int8]string(nil), (*Encoder).fastpathEncMapInt8StringR, (*Decoder).fastpathDecMapInt8StringR)
  273. fn(map[int8]uint(nil), (*Encoder).fastpathEncMapInt8UintR, (*Decoder).fastpathDecMapInt8UintR)
  274. fn(map[int8]uint8(nil), (*Encoder).fastpathEncMapInt8Uint8R, (*Decoder).fastpathDecMapInt8Uint8R)
  275. fn(map[int8]uint16(nil), (*Encoder).fastpathEncMapInt8Uint16R, (*Decoder).fastpathDecMapInt8Uint16R)
  276. fn(map[int8]uint32(nil), (*Encoder).fastpathEncMapInt8Uint32R, (*Decoder).fastpathDecMapInt8Uint32R)
  277. fn(map[int8]uint64(nil), (*Encoder).fastpathEncMapInt8Uint64R, (*Decoder).fastpathDecMapInt8Uint64R)
  278. fn(map[int8]uintptr(nil), (*Encoder).fastpathEncMapInt8UintptrR, (*Decoder).fastpathDecMapInt8UintptrR)
  279. fn(map[int8]int(nil), (*Encoder).fastpathEncMapInt8IntR, (*Decoder).fastpathDecMapInt8IntR)
  280. fn(map[int8]int8(nil), (*Encoder).fastpathEncMapInt8Int8R, (*Decoder).fastpathDecMapInt8Int8R)
  281. fn(map[int8]int16(nil), (*Encoder).fastpathEncMapInt8Int16R, (*Decoder).fastpathDecMapInt8Int16R)
  282. fn(map[int8]int32(nil), (*Encoder).fastpathEncMapInt8Int32R, (*Decoder).fastpathDecMapInt8Int32R)
  283. fn(map[int8]int64(nil), (*Encoder).fastpathEncMapInt8Int64R, (*Decoder).fastpathDecMapInt8Int64R)
  284. fn(map[int8]float32(nil), (*Encoder).fastpathEncMapInt8Float32R, (*Decoder).fastpathDecMapInt8Float32R)
  285. fn(map[int8]float64(nil), (*Encoder).fastpathEncMapInt8Float64R, (*Decoder).fastpathDecMapInt8Float64R)
  286. fn(map[int8]bool(nil), (*Encoder).fastpathEncMapInt8BoolR, (*Decoder).fastpathDecMapInt8BoolR)
  287. fn(map[int16]interface{}(nil), (*Encoder).fastpathEncMapInt16IntfR, (*Decoder).fastpathDecMapInt16IntfR)
  288. fn(map[int16]string(nil), (*Encoder).fastpathEncMapInt16StringR, (*Decoder).fastpathDecMapInt16StringR)
  289. fn(map[int16]uint(nil), (*Encoder).fastpathEncMapInt16UintR, (*Decoder).fastpathDecMapInt16UintR)
  290. fn(map[int16]uint8(nil), (*Encoder).fastpathEncMapInt16Uint8R, (*Decoder).fastpathDecMapInt16Uint8R)
  291. fn(map[int16]uint16(nil), (*Encoder).fastpathEncMapInt16Uint16R, (*Decoder).fastpathDecMapInt16Uint16R)
  292. fn(map[int16]uint32(nil), (*Encoder).fastpathEncMapInt16Uint32R, (*Decoder).fastpathDecMapInt16Uint32R)
  293. fn(map[int16]uint64(nil), (*Encoder).fastpathEncMapInt16Uint64R, (*Decoder).fastpathDecMapInt16Uint64R)
  294. fn(map[int16]uintptr(nil), (*Encoder).fastpathEncMapInt16UintptrR, (*Decoder).fastpathDecMapInt16UintptrR)
  295. fn(map[int16]int(nil), (*Encoder).fastpathEncMapInt16IntR, (*Decoder).fastpathDecMapInt16IntR)
  296. fn(map[int16]int8(nil), (*Encoder).fastpathEncMapInt16Int8R, (*Decoder).fastpathDecMapInt16Int8R)
  297. fn(map[int16]int16(nil), (*Encoder).fastpathEncMapInt16Int16R, (*Decoder).fastpathDecMapInt16Int16R)
  298. fn(map[int16]int32(nil), (*Encoder).fastpathEncMapInt16Int32R, (*Decoder).fastpathDecMapInt16Int32R)
  299. fn(map[int16]int64(nil), (*Encoder).fastpathEncMapInt16Int64R, (*Decoder).fastpathDecMapInt16Int64R)
  300. fn(map[int16]float32(nil), (*Encoder).fastpathEncMapInt16Float32R, (*Decoder).fastpathDecMapInt16Float32R)
  301. fn(map[int16]float64(nil), (*Encoder).fastpathEncMapInt16Float64R, (*Decoder).fastpathDecMapInt16Float64R)
  302. fn(map[int16]bool(nil), (*Encoder).fastpathEncMapInt16BoolR, (*Decoder).fastpathDecMapInt16BoolR)
  303. fn(map[int32]interface{}(nil), (*Encoder).fastpathEncMapInt32IntfR, (*Decoder).fastpathDecMapInt32IntfR)
  304. fn(map[int32]string(nil), (*Encoder).fastpathEncMapInt32StringR, (*Decoder).fastpathDecMapInt32StringR)
  305. fn(map[int32]uint(nil), (*Encoder).fastpathEncMapInt32UintR, (*Decoder).fastpathDecMapInt32UintR)
  306. fn(map[int32]uint8(nil), (*Encoder).fastpathEncMapInt32Uint8R, (*Decoder).fastpathDecMapInt32Uint8R)
  307. fn(map[int32]uint16(nil), (*Encoder).fastpathEncMapInt32Uint16R, (*Decoder).fastpathDecMapInt32Uint16R)
  308. fn(map[int32]uint32(nil), (*Encoder).fastpathEncMapInt32Uint32R, (*Decoder).fastpathDecMapInt32Uint32R)
  309. fn(map[int32]uint64(nil), (*Encoder).fastpathEncMapInt32Uint64R, (*Decoder).fastpathDecMapInt32Uint64R)
  310. fn(map[int32]uintptr(nil), (*Encoder).fastpathEncMapInt32UintptrR, (*Decoder).fastpathDecMapInt32UintptrR)
  311. fn(map[int32]int(nil), (*Encoder).fastpathEncMapInt32IntR, (*Decoder).fastpathDecMapInt32IntR)
  312. fn(map[int32]int8(nil), (*Encoder).fastpathEncMapInt32Int8R, (*Decoder).fastpathDecMapInt32Int8R)
  313. fn(map[int32]int16(nil), (*Encoder).fastpathEncMapInt32Int16R, (*Decoder).fastpathDecMapInt32Int16R)
  314. fn(map[int32]int32(nil), (*Encoder).fastpathEncMapInt32Int32R, (*Decoder).fastpathDecMapInt32Int32R)
  315. fn(map[int32]int64(nil), (*Encoder).fastpathEncMapInt32Int64R, (*Decoder).fastpathDecMapInt32Int64R)
  316. fn(map[int32]float32(nil), (*Encoder).fastpathEncMapInt32Float32R, (*Decoder).fastpathDecMapInt32Float32R)
  317. fn(map[int32]float64(nil), (*Encoder).fastpathEncMapInt32Float64R, (*Decoder).fastpathDecMapInt32Float64R)
  318. fn(map[int32]bool(nil), (*Encoder).fastpathEncMapInt32BoolR, (*Decoder).fastpathDecMapInt32BoolR)
  319. fn(map[int64]interface{}(nil), (*Encoder).fastpathEncMapInt64IntfR, (*Decoder).fastpathDecMapInt64IntfR)
  320. fn(map[int64]string(nil), (*Encoder).fastpathEncMapInt64StringR, (*Decoder).fastpathDecMapInt64StringR)
  321. fn(map[int64]uint(nil), (*Encoder).fastpathEncMapInt64UintR, (*Decoder).fastpathDecMapInt64UintR)
  322. fn(map[int64]uint8(nil), (*Encoder).fastpathEncMapInt64Uint8R, (*Decoder).fastpathDecMapInt64Uint8R)
  323. fn(map[int64]uint16(nil), (*Encoder).fastpathEncMapInt64Uint16R, (*Decoder).fastpathDecMapInt64Uint16R)
  324. fn(map[int64]uint32(nil), (*Encoder).fastpathEncMapInt64Uint32R, (*Decoder).fastpathDecMapInt64Uint32R)
  325. fn(map[int64]uint64(nil), (*Encoder).fastpathEncMapInt64Uint64R, (*Decoder).fastpathDecMapInt64Uint64R)
  326. fn(map[int64]uintptr(nil), (*Encoder).fastpathEncMapInt64UintptrR, (*Decoder).fastpathDecMapInt64UintptrR)
  327. fn(map[int64]int(nil), (*Encoder).fastpathEncMapInt64IntR, (*Decoder).fastpathDecMapInt64IntR)
  328. fn(map[int64]int8(nil), (*Encoder).fastpathEncMapInt64Int8R, (*Decoder).fastpathDecMapInt64Int8R)
  329. fn(map[int64]int16(nil), (*Encoder).fastpathEncMapInt64Int16R, (*Decoder).fastpathDecMapInt64Int16R)
  330. fn(map[int64]int32(nil), (*Encoder).fastpathEncMapInt64Int32R, (*Decoder).fastpathDecMapInt64Int32R)
  331. fn(map[int64]int64(nil), (*Encoder).fastpathEncMapInt64Int64R, (*Decoder).fastpathDecMapInt64Int64R)
  332. fn(map[int64]float32(nil), (*Encoder).fastpathEncMapInt64Float32R, (*Decoder).fastpathDecMapInt64Float32R)
  333. fn(map[int64]float64(nil), (*Encoder).fastpathEncMapInt64Float64R, (*Decoder).fastpathDecMapInt64Float64R)
  334. fn(map[int64]bool(nil), (*Encoder).fastpathEncMapInt64BoolR, (*Decoder).fastpathDecMapInt64BoolR)
  335. fn(map[bool]interface{}(nil), (*Encoder).fastpathEncMapBoolIntfR, (*Decoder).fastpathDecMapBoolIntfR)
  336. fn(map[bool]string(nil), (*Encoder).fastpathEncMapBoolStringR, (*Decoder).fastpathDecMapBoolStringR)
  337. fn(map[bool]uint(nil), (*Encoder).fastpathEncMapBoolUintR, (*Decoder).fastpathDecMapBoolUintR)
  338. fn(map[bool]uint8(nil), (*Encoder).fastpathEncMapBoolUint8R, (*Decoder).fastpathDecMapBoolUint8R)
  339. fn(map[bool]uint16(nil), (*Encoder).fastpathEncMapBoolUint16R, (*Decoder).fastpathDecMapBoolUint16R)
  340. fn(map[bool]uint32(nil), (*Encoder).fastpathEncMapBoolUint32R, (*Decoder).fastpathDecMapBoolUint32R)
  341. fn(map[bool]uint64(nil), (*Encoder).fastpathEncMapBoolUint64R, (*Decoder).fastpathDecMapBoolUint64R)
  342. fn(map[bool]uintptr(nil), (*Encoder).fastpathEncMapBoolUintptrR, (*Decoder).fastpathDecMapBoolUintptrR)
  343. fn(map[bool]int(nil), (*Encoder).fastpathEncMapBoolIntR, (*Decoder).fastpathDecMapBoolIntR)
  344. fn(map[bool]int8(nil), (*Encoder).fastpathEncMapBoolInt8R, (*Decoder).fastpathDecMapBoolInt8R)
  345. fn(map[bool]int16(nil), (*Encoder).fastpathEncMapBoolInt16R, (*Decoder).fastpathDecMapBoolInt16R)
  346. fn(map[bool]int32(nil), (*Encoder).fastpathEncMapBoolInt32R, (*Decoder).fastpathDecMapBoolInt32R)
  347. fn(map[bool]int64(nil), (*Encoder).fastpathEncMapBoolInt64R, (*Decoder).fastpathDecMapBoolInt64R)
  348. fn(map[bool]float32(nil), (*Encoder).fastpathEncMapBoolFloat32R, (*Decoder).fastpathDecMapBoolFloat32R)
  349. fn(map[bool]float64(nil), (*Encoder).fastpathEncMapBoolFloat64R, (*Decoder).fastpathDecMapBoolFloat64R)
  350. fn(map[bool]bool(nil), (*Encoder).fastpathEncMapBoolBoolR, (*Decoder).fastpathDecMapBoolBoolR)
  351. sort.Sort(fastpathAslice(fastpathAV[:]))
  352. }
  353. // -- encode
  354. // -- -- fast path type switch
  355. func fastpathEncodeTypeSwitch(iv interface{}, e *Encoder) bool {
  356. switch v := iv.(type) {
  357. case []interface{}:
  358. fastpathTV.EncSliceIntfV(v, e)
  359. case *[]interface{}:
  360. fastpathTV.EncSliceIntfV(*v, e)
  361. case []string:
  362. fastpathTV.EncSliceStringV(v, e)
  363. case *[]string:
  364. fastpathTV.EncSliceStringV(*v, e)
  365. case []float32:
  366. fastpathTV.EncSliceFloat32V(v, e)
  367. case *[]float32:
  368. fastpathTV.EncSliceFloat32V(*v, e)
  369. case []float64:
  370. fastpathTV.EncSliceFloat64V(v, e)
  371. case *[]float64:
  372. fastpathTV.EncSliceFloat64V(*v, e)
  373. case []uint:
  374. fastpathTV.EncSliceUintV(v, e)
  375. case *[]uint:
  376. fastpathTV.EncSliceUintV(*v, e)
  377. case []uint16:
  378. fastpathTV.EncSliceUint16V(v, e)
  379. case *[]uint16:
  380. fastpathTV.EncSliceUint16V(*v, e)
  381. case []uint32:
  382. fastpathTV.EncSliceUint32V(v, e)
  383. case *[]uint32:
  384. fastpathTV.EncSliceUint32V(*v, e)
  385. case []uint64:
  386. fastpathTV.EncSliceUint64V(v, e)
  387. case *[]uint64:
  388. fastpathTV.EncSliceUint64V(*v, e)
  389. case []uintptr:
  390. fastpathTV.EncSliceUintptrV(v, e)
  391. case *[]uintptr:
  392. fastpathTV.EncSliceUintptrV(*v, e)
  393. case []int:
  394. fastpathTV.EncSliceIntV(v, e)
  395. case *[]int:
  396. fastpathTV.EncSliceIntV(*v, e)
  397. case []int8:
  398. fastpathTV.EncSliceInt8V(v, e)
  399. case *[]int8:
  400. fastpathTV.EncSliceInt8V(*v, e)
  401. case []int16:
  402. fastpathTV.EncSliceInt16V(v, e)
  403. case *[]int16:
  404. fastpathTV.EncSliceInt16V(*v, e)
  405. case []int32:
  406. fastpathTV.EncSliceInt32V(v, e)
  407. case *[]int32:
  408. fastpathTV.EncSliceInt32V(*v, e)
  409. case []int64:
  410. fastpathTV.EncSliceInt64V(v, e)
  411. case *[]int64:
  412. fastpathTV.EncSliceInt64V(*v, e)
  413. case []bool:
  414. fastpathTV.EncSliceBoolV(v, e)
  415. case *[]bool:
  416. fastpathTV.EncSliceBoolV(*v, e)
  417. case map[interface{}]interface{}:
  418. fastpathTV.EncMapIntfIntfV(v, e)
  419. case *map[interface{}]interface{}:
  420. fastpathTV.EncMapIntfIntfV(*v, e)
  421. case map[interface{}]string:
  422. fastpathTV.EncMapIntfStringV(v, e)
  423. case *map[interface{}]string:
  424. fastpathTV.EncMapIntfStringV(*v, e)
  425. case map[interface{}]uint:
  426. fastpathTV.EncMapIntfUintV(v, e)
  427. case *map[interface{}]uint:
  428. fastpathTV.EncMapIntfUintV(*v, e)
  429. case map[interface{}]uint8:
  430. fastpathTV.EncMapIntfUint8V(v, e)
  431. case *map[interface{}]uint8:
  432. fastpathTV.EncMapIntfUint8V(*v, e)
  433. case map[interface{}]uint16:
  434. fastpathTV.EncMapIntfUint16V(v, e)
  435. case *map[interface{}]uint16:
  436. fastpathTV.EncMapIntfUint16V(*v, e)
  437. case map[interface{}]uint32:
  438. fastpathTV.EncMapIntfUint32V(v, e)
  439. case *map[interface{}]uint32:
  440. fastpathTV.EncMapIntfUint32V(*v, e)
  441. case map[interface{}]uint64:
  442. fastpathTV.EncMapIntfUint64V(v, e)
  443. case *map[interface{}]uint64:
  444. fastpathTV.EncMapIntfUint64V(*v, e)
  445. case map[interface{}]uintptr:
  446. fastpathTV.EncMapIntfUintptrV(v, e)
  447. case *map[interface{}]uintptr:
  448. fastpathTV.EncMapIntfUintptrV(*v, e)
  449. case map[interface{}]int:
  450. fastpathTV.EncMapIntfIntV(v, e)
  451. case *map[interface{}]int:
  452. fastpathTV.EncMapIntfIntV(*v, e)
  453. case map[interface{}]int8:
  454. fastpathTV.EncMapIntfInt8V(v, e)
  455. case *map[interface{}]int8:
  456. fastpathTV.EncMapIntfInt8V(*v, e)
  457. case map[interface{}]int16:
  458. fastpathTV.EncMapIntfInt16V(v, e)
  459. case *map[interface{}]int16:
  460. fastpathTV.EncMapIntfInt16V(*v, e)
  461. case map[interface{}]int32:
  462. fastpathTV.EncMapIntfInt32V(v, e)
  463. case *map[interface{}]int32:
  464. fastpathTV.EncMapIntfInt32V(*v, e)
  465. case map[interface{}]int64:
  466. fastpathTV.EncMapIntfInt64V(v, e)
  467. case *map[interface{}]int64:
  468. fastpathTV.EncMapIntfInt64V(*v, e)
  469. case map[interface{}]float32:
  470. fastpathTV.EncMapIntfFloat32V(v, e)
  471. case *map[interface{}]float32:
  472. fastpathTV.EncMapIntfFloat32V(*v, e)
  473. case map[interface{}]float64:
  474. fastpathTV.EncMapIntfFloat64V(v, e)
  475. case *map[interface{}]float64:
  476. fastpathTV.EncMapIntfFloat64V(*v, e)
  477. case map[interface{}]bool:
  478. fastpathTV.EncMapIntfBoolV(v, e)
  479. case *map[interface{}]bool:
  480. fastpathTV.EncMapIntfBoolV(*v, e)
  481. case map[string]interface{}:
  482. fastpathTV.EncMapStringIntfV(v, e)
  483. case *map[string]interface{}:
  484. fastpathTV.EncMapStringIntfV(*v, e)
  485. case map[string]string:
  486. fastpathTV.EncMapStringStringV(v, e)
  487. case *map[string]string:
  488. fastpathTV.EncMapStringStringV(*v, e)
  489. case map[string]uint:
  490. fastpathTV.EncMapStringUintV(v, e)
  491. case *map[string]uint:
  492. fastpathTV.EncMapStringUintV(*v, e)
  493. case map[string]uint8:
  494. fastpathTV.EncMapStringUint8V(v, e)
  495. case *map[string]uint8:
  496. fastpathTV.EncMapStringUint8V(*v, e)
  497. case map[string]uint16:
  498. fastpathTV.EncMapStringUint16V(v, e)
  499. case *map[string]uint16:
  500. fastpathTV.EncMapStringUint16V(*v, e)
  501. case map[string]uint32:
  502. fastpathTV.EncMapStringUint32V(v, e)
  503. case *map[string]uint32:
  504. fastpathTV.EncMapStringUint32V(*v, e)
  505. case map[string]uint64:
  506. fastpathTV.EncMapStringUint64V(v, e)
  507. case *map[string]uint64:
  508. fastpathTV.EncMapStringUint64V(*v, e)
  509. case map[string]uintptr:
  510. fastpathTV.EncMapStringUintptrV(v, e)
  511. case *map[string]uintptr:
  512. fastpathTV.EncMapStringUintptrV(*v, e)
  513. case map[string]int:
  514. fastpathTV.EncMapStringIntV(v, e)
  515. case *map[string]int:
  516. fastpathTV.EncMapStringIntV(*v, e)
  517. case map[string]int8:
  518. fastpathTV.EncMapStringInt8V(v, e)
  519. case *map[string]int8:
  520. fastpathTV.EncMapStringInt8V(*v, e)
  521. case map[string]int16:
  522. fastpathTV.EncMapStringInt16V(v, e)
  523. case *map[string]int16:
  524. fastpathTV.EncMapStringInt16V(*v, e)
  525. case map[string]int32:
  526. fastpathTV.EncMapStringInt32V(v, e)
  527. case *map[string]int32:
  528. fastpathTV.EncMapStringInt32V(*v, e)
  529. case map[string]int64:
  530. fastpathTV.EncMapStringInt64V(v, e)
  531. case *map[string]int64:
  532. fastpathTV.EncMapStringInt64V(*v, e)
  533. case map[string]float32:
  534. fastpathTV.EncMapStringFloat32V(v, e)
  535. case *map[string]float32:
  536. fastpathTV.EncMapStringFloat32V(*v, e)
  537. case map[string]float64:
  538. fastpathTV.EncMapStringFloat64V(v, e)
  539. case *map[string]float64:
  540. fastpathTV.EncMapStringFloat64V(*v, e)
  541. case map[string]bool:
  542. fastpathTV.EncMapStringBoolV(v, e)
  543. case *map[string]bool:
  544. fastpathTV.EncMapStringBoolV(*v, e)
  545. case map[float32]interface{}:
  546. fastpathTV.EncMapFloat32IntfV(v, e)
  547. case *map[float32]interface{}:
  548. fastpathTV.EncMapFloat32IntfV(*v, e)
  549. case map[float32]string:
  550. fastpathTV.EncMapFloat32StringV(v, e)
  551. case *map[float32]string:
  552. fastpathTV.EncMapFloat32StringV(*v, e)
  553. case map[float32]uint:
  554. fastpathTV.EncMapFloat32UintV(v, e)
  555. case *map[float32]uint:
  556. fastpathTV.EncMapFloat32UintV(*v, e)
  557. case map[float32]uint8:
  558. fastpathTV.EncMapFloat32Uint8V(v, e)
  559. case *map[float32]uint8:
  560. fastpathTV.EncMapFloat32Uint8V(*v, e)
  561. case map[float32]uint16:
  562. fastpathTV.EncMapFloat32Uint16V(v, e)
  563. case *map[float32]uint16:
  564. fastpathTV.EncMapFloat32Uint16V(*v, e)
  565. case map[float32]uint32:
  566. fastpathTV.EncMapFloat32Uint32V(v, e)
  567. case *map[float32]uint32:
  568. fastpathTV.EncMapFloat32Uint32V(*v, e)
  569. case map[float32]uint64:
  570. fastpathTV.EncMapFloat32Uint64V(v, e)
  571. case *map[float32]uint64:
  572. fastpathTV.EncMapFloat32Uint64V(*v, e)
  573. case map[float32]uintptr:
  574. fastpathTV.EncMapFloat32UintptrV(v, e)
  575. case *map[float32]uintptr:
  576. fastpathTV.EncMapFloat32UintptrV(*v, e)
  577. case map[float32]int:
  578. fastpathTV.EncMapFloat32IntV(v, e)
  579. case *map[float32]int:
  580. fastpathTV.EncMapFloat32IntV(*v, e)
  581. case map[float32]int8:
  582. fastpathTV.EncMapFloat32Int8V(v, e)
  583. case *map[float32]int8:
  584. fastpathTV.EncMapFloat32Int8V(*v, e)
  585. case map[float32]int16:
  586. fastpathTV.EncMapFloat32Int16V(v, e)
  587. case *map[float32]int16:
  588. fastpathTV.EncMapFloat32Int16V(*v, e)
  589. case map[float32]int32:
  590. fastpathTV.EncMapFloat32Int32V(v, e)
  591. case *map[float32]int32:
  592. fastpathTV.EncMapFloat32Int32V(*v, e)
  593. case map[float32]int64:
  594. fastpathTV.EncMapFloat32Int64V(v, e)
  595. case *map[float32]int64:
  596. fastpathTV.EncMapFloat32Int64V(*v, e)
  597. case map[float32]float32:
  598. fastpathTV.EncMapFloat32Float32V(v, e)
  599. case *map[float32]float32:
  600. fastpathTV.EncMapFloat32Float32V(*v, e)
  601. case map[float32]float64:
  602. fastpathTV.EncMapFloat32Float64V(v, e)
  603. case *map[float32]float64:
  604. fastpathTV.EncMapFloat32Float64V(*v, e)
  605. case map[float32]bool:
  606. fastpathTV.EncMapFloat32BoolV(v, e)
  607. case *map[float32]bool:
  608. fastpathTV.EncMapFloat32BoolV(*v, e)
  609. case map[float64]interface{}:
  610. fastpathTV.EncMapFloat64IntfV(v, e)
  611. case *map[float64]interface{}:
  612. fastpathTV.EncMapFloat64IntfV(*v, e)
  613. case map[float64]string:
  614. fastpathTV.EncMapFloat64StringV(v, e)
  615. case *map[float64]string:
  616. fastpathTV.EncMapFloat64StringV(*v, e)
  617. case map[float64]uint:
  618. fastpathTV.EncMapFloat64UintV(v, e)
  619. case *map[float64]uint:
  620. fastpathTV.EncMapFloat64UintV(*v, e)
  621. case map[float64]uint8:
  622. fastpathTV.EncMapFloat64Uint8V(v, e)
  623. case *map[float64]uint8:
  624. fastpathTV.EncMapFloat64Uint8V(*v, e)
  625. case map[float64]uint16:
  626. fastpathTV.EncMapFloat64Uint16V(v, e)
  627. case *map[float64]uint16:
  628. fastpathTV.EncMapFloat64Uint16V(*v, e)
  629. case map[float64]uint32:
  630. fastpathTV.EncMapFloat64Uint32V(v, e)
  631. case *map[float64]uint32:
  632. fastpathTV.EncMapFloat64Uint32V(*v, e)
  633. case map[float64]uint64:
  634. fastpathTV.EncMapFloat64Uint64V(v, e)
  635. case *map[float64]uint64:
  636. fastpathTV.EncMapFloat64Uint64V(*v, e)
  637. case map[float64]uintptr:
  638. fastpathTV.EncMapFloat64UintptrV(v, e)
  639. case *map[float64]uintptr:
  640. fastpathTV.EncMapFloat64UintptrV(*v, e)
  641. case map[float64]int:
  642. fastpathTV.EncMapFloat64IntV(v, e)
  643. case *map[float64]int:
  644. fastpathTV.EncMapFloat64IntV(*v, e)
  645. case map[float64]int8:
  646. fastpathTV.EncMapFloat64Int8V(v, e)
  647. case *map[float64]int8:
  648. fastpathTV.EncMapFloat64Int8V(*v, e)
  649. case map[float64]int16:
  650. fastpathTV.EncMapFloat64Int16V(v, e)
  651. case *map[float64]int16:
  652. fastpathTV.EncMapFloat64Int16V(*v, e)
  653. case map[float64]int32:
  654. fastpathTV.EncMapFloat64Int32V(v, e)
  655. case *map[float64]int32:
  656. fastpathTV.EncMapFloat64Int32V(*v, e)
  657. case map[float64]int64:
  658. fastpathTV.EncMapFloat64Int64V(v, e)
  659. case *map[float64]int64:
  660. fastpathTV.EncMapFloat64Int64V(*v, e)
  661. case map[float64]float32:
  662. fastpathTV.EncMapFloat64Float32V(v, e)
  663. case *map[float64]float32:
  664. fastpathTV.EncMapFloat64Float32V(*v, e)
  665. case map[float64]float64:
  666. fastpathTV.EncMapFloat64Float64V(v, e)
  667. case *map[float64]float64:
  668. fastpathTV.EncMapFloat64Float64V(*v, e)
  669. case map[float64]bool:
  670. fastpathTV.EncMapFloat64BoolV(v, e)
  671. case *map[float64]bool:
  672. fastpathTV.EncMapFloat64BoolV(*v, e)
  673. case map[uint]interface{}:
  674. fastpathTV.EncMapUintIntfV(v, e)
  675. case *map[uint]interface{}:
  676. fastpathTV.EncMapUintIntfV(*v, e)
  677. case map[uint]string:
  678. fastpathTV.EncMapUintStringV(v, e)
  679. case *map[uint]string:
  680. fastpathTV.EncMapUintStringV(*v, e)
  681. case map[uint]uint:
  682. fastpathTV.EncMapUintUintV(v, e)
  683. case *map[uint]uint:
  684. fastpathTV.EncMapUintUintV(*v, e)
  685. case map[uint]uint8:
  686. fastpathTV.EncMapUintUint8V(v, e)
  687. case *map[uint]uint8:
  688. fastpathTV.EncMapUintUint8V(*v, e)
  689. case map[uint]uint16:
  690. fastpathTV.EncMapUintUint16V(v, e)
  691. case *map[uint]uint16:
  692. fastpathTV.EncMapUintUint16V(*v, e)
  693. case map[uint]uint32:
  694. fastpathTV.EncMapUintUint32V(v, e)
  695. case *map[uint]uint32:
  696. fastpathTV.EncMapUintUint32V(*v, e)
  697. case map[uint]uint64:
  698. fastpathTV.EncMapUintUint64V(v, e)
  699. case *map[uint]uint64:
  700. fastpathTV.EncMapUintUint64V(*v, e)
  701. case map[uint]uintptr:
  702. fastpathTV.EncMapUintUintptrV(v, e)
  703. case *map[uint]uintptr:
  704. fastpathTV.EncMapUintUintptrV(*v, e)
  705. case map[uint]int:
  706. fastpathTV.EncMapUintIntV(v, e)
  707. case *map[uint]int:
  708. fastpathTV.EncMapUintIntV(*v, e)
  709. case map[uint]int8:
  710. fastpathTV.EncMapUintInt8V(v, e)
  711. case *map[uint]int8:
  712. fastpathTV.EncMapUintInt8V(*v, e)
  713. case map[uint]int16:
  714. fastpathTV.EncMapUintInt16V(v, e)
  715. case *map[uint]int16:
  716. fastpathTV.EncMapUintInt16V(*v, e)
  717. case map[uint]int32:
  718. fastpathTV.EncMapUintInt32V(v, e)
  719. case *map[uint]int32:
  720. fastpathTV.EncMapUintInt32V(*v, e)
  721. case map[uint]int64:
  722. fastpathTV.EncMapUintInt64V(v, e)
  723. case *map[uint]int64:
  724. fastpathTV.EncMapUintInt64V(*v, e)
  725. case map[uint]float32:
  726. fastpathTV.EncMapUintFloat32V(v, e)
  727. case *map[uint]float32:
  728. fastpathTV.EncMapUintFloat32V(*v, e)
  729. case map[uint]float64:
  730. fastpathTV.EncMapUintFloat64V(v, e)
  731. case *map[uint]float64:
  732. fastpathTV.EncMapUintFloat64V(*v, e)
  733. case map[uint]bool:
  734. fastpathTV.EncMapUintBoolV(v, e)
  735. case *map[uint]bool:
  736. fastpathTV.EncMapUintBoolV(*v, e)
  737. case map[uint8]interface{}:
  738. fastpathTV.EncMapUint8IntfV(v, e)
  739. case *map[uint8]interface{}:
  740. fastpathTV.EncMapUint8IntfV(*v, e)
  741. case map[uint8]string:
  742. fastpathTV.EncMapUint8StringV(v, e)
  743. case *map[uint8]string:
  744. fastpathTV.EncMapUint8StringV(*v, e)
  745. case map[uint8]uint:
  746. fastpathTV.EncMapUint8UintV(v, e)
  747. case *map[uint8]uint:
  748. fastpathTV.EncMapUint8UintV(*v, e)
  749. case map[uint8]uint8:
  750. fastpathTV.EncMapUint8Uint8V(v, e)
  751. case *map[uint8]uint8:
  752. fastpathTV.EncMapUint8Uint8V(*v, e)
  753. case map[uint8]uint16:
  754. fastpathTV.EncMapUint8Uint16V(v, e)
  755. case *map[uint8]uint16:
  756. fastpathTV.EncMapUint8Uint16V(*v, e)
  757. case map[uint8]uint32:
  758. fastpathTV.EncMapUint8Uint32V(v, e)
  759. case *map[uint8]uint32:
  760. fastpathTV.EncMapUint8Uint32V(*v, e)
  761. case map[uint8]uint64:
  762. fastpathTV.EncMapUint8Uint64V(v, e)
  763. case *map[uint8]uint64:
  764. fastpathTV.EncMapUint8Uint64V(*v, e)
  765. case map[uint8]uintptr:
  766. fastpathTV.EncMapUint8UintptrV(v, e)
  767. case *map[uint8]uintptr:
  768. fastpathTV.EncMapUint8UintptrV(*v, e)
  769. case map[uint8]int:
  770. fastpathTV.EncMapUint8IntV(v, e)
  771. case *map[uint8]int:
  772. fastpathTV.EncMapUint8IntV(*v, e)
  773. case map[uint8]int8:
  774. fastpathTV.EncMapUint8Int8V(v, e)
  775. case *map[uint8]int8:
  776. fastpathTV.EncMapUint8Int8V(*v, e)
  777. case map[uint8]int16:
  778. fastpathTV.EncMapUint8Int16V(v, e)
  779. case *map[uint8]int16:
  780. fastpathTV.EncMapUint8Int16V(*v, e)
  781. case map[uint8]int32:
  782. fastpathTV.EncMapUint8Int32V(v, e)
  783. case *map[uint8]int32:
  784. fastpathTV.EncMapUint8Int32V(*v, e)
  785. case map[uint8]int64:
  786. fastpathTV.EncMapUint8Int64V(v, e)
  787. case *map[uint8]int64:
  788. fastpathTV.EncMapUint8Int64V(*v, e)
  789. case map[uint8]float32:
  790. fastpathTV.EncMapUint8Float32V(v, e)
  791. case *map[uint8]float32:
  792. fastpathTV.EncMapUint8Float32V(*v, e)
  793. case map[uint8]float64:
  794. fastpathTV.EncMapUint8Float64V(v, e)
  795. case *map[uint8]float64:
  796. fastpathTV.EncMapUint8Float64V(*v, e)
  797. case map[uint8]bool:
  798. fastpathTV.EncMapUint8BoolV(v, e)
  799. case *map[uint8]bool:
  800. fastpathTV.EncMapUint8BoolV(*v, e)
  801. case map[uint16]interface{}:
  802. fastpathTV.EncMapUint16IntfV(v, e)
  803. case *map[uint16]interface{}:
  804. fastpathTV.EncMapUint16IntfV(*v, e)
  805. case map[uint16]string:
  806. fastpathTV.EncMapUint16StringV(v, e)
  807. case *map[uint16]string:
  808. fastpathTV.EncMapUint16StringV(*v, e)
  809. case map[uint16]uint:
  810. fastpathTV.EncMapUint16UintV(v, e)
  811. case *map[uint16]uint:
  812. fastpathTV.EncMapUint16UintV(*v, e)
  813. case map[uint16]uint8:
  814. fastpathTV.EncMapUint16Uint8V(v, e)
  815. case *map[uint16]uint8:
  816. fastpathTV.EncMapUint16Uint8V(*v, e)
  817. case map[uint16]uint16:
  818. fastpathTV.EncMapUint16Uint16V(v, e)
  819. case *map[uint16]uint16:
  820. fastpathTV.EncMapUint16Uint16V(*v, e)
  821. case map[uint16]uint32:
  822. fastpathTV.EncMapUint16Uint32V(v, e)
  823. case *map[uint16]uint32:
  824. fastpathTV.EncMapUint16Uint32V(*v, e)
  825. case map[uint16]uint64:
  826. fastpathTV.EncMapUint16Uint64V(v, e)
  827. case *map[uint16]uint64:
  828. fastpathTV.EncMapUint16Uint64V(*v, e)
  829. case map[uint16]uintptr:
  830. fastpathTV.EncMapUint16UintptrV(v, e)
  831. case *map[uint16]uintptr:
  832. fastpathTV.EncMapUint16UintptrV(*v, e)
  833. case map[uint16]int:
  834. fastpathTV.EncMapUint16IntV(v, e)
  835. case *map[uint16]int:
  836. fastpathTV.EncMapUint16IntV(*v, e)
  837. case map[uint16]int8:
  838. fastpathTV.EncMapUint16Int8V(v, e)
  839. case *map[uint16]int8:
  840. fastpathTV.EncMapUint16Int8V(*v, e)
  841. case map[uint16]int16:
  842. fastpathTV.EncMapUint16Int16V(v, e)
  843. case *map[uint16]int16:
  844. fastpathTV.EncMapUint16Int16V(*v, e)
  845. case map[uint16]int32:
  846. fastpathTV.EncMapUint16Int32V(v, e)
  847. case *map[uint16]int32:
  848. fastpathTV.EncMapUint16Int32V(*v, e)
  849. case map[uint16]int64:
  850. fastpathTV.EncMapUint16Int64V(v, e)
  851. case *map[uint16]int64:
  852. fastpathTV.EncMapUint16Int64V(*v, e)
  853. case map[uint16]float32:
  854. fastpathTV.EncMapUint16Float32V(v, e)
  855. case *map[uint16]float32:
  856. fastpathTV.EncMapUint16Float32V(*v, e)
  857. case map[uint16]float64:
  858. fastpathTV.EncMapUint16Float64V(v, e)
  859. case *map[uint16]float64:
  860. fastpathTV.EncMapUint16Float64V(*v, e)
  861. case map[uint16]bool:
  862. fastpathTV.EncMapUint16BoolV(v, e)
  863. case *map[uint16]bool:
  864. fastpathTV.EncMapUint16BoolV(*v, e)
  865. case map[uint32]interface{}:
  866. fastpathTV.EncMapUint32IntfV(v, e)
  867. case *map[uint32]interface{}:
  868. fastpathTV.EncMapUint32IntfV(*v, e)
  869. case map[uint32]string:
  870. fastpathTV.EncMapUint32StringV(v, e)
  871. case *map[uint32]string:
  872. fastpathTV.EncMapUint32StringV(*v, e)
  873. case map[uint32]uint:
  874. fastpathTV.EncMapUint32UintV(v, e)
  875. case *map[uint32]uint:
  876. fastpathTV.EncMapUint32UintV(*v, e)
  877. case map[uint32]uint8:
  878. fastpathTV.EncMapUint32Uint8V(v, e)
  879. case *map[uint32]uint8:
  880. fastpathTV.EncMapUint32Uint8V(*v, e)
  881. case map[uint32]uint16:
  882. fastpathTV.EncMapUint32Uint16V(v, e)
  883. case *map[uint32]uint16:
  884. fastpathTV.EncMapUint32Uint16V(*v, e)
  885. case map[uint32]uint32:
  886. fastpathTV.EncMapUint32Uint32V(v, e)
  887. case *map[uint32]uint32:
  888. fastpathTV.EncMapUint32Uint32V(*v, e)
  889. case map[uint32]uint64:
  890. fastpathTV.EncMapUint32Uint64V(v, e)
  891. case *map[uint32]uint64:
  892. fastpathTV.EncMapUint32Uint64V(*v, e)
  893. case map[uint32]uintptr:
  894. fastpathTV.EncMapUint32UintptrV(v, e)
  895. case *map[uint32]uintptr:
  896. fastpathTV.EncMapUint32UintptrV(*v, e)
  897. case map[uint32]int:
  898. fastpathTV.EncMapUint32IntV(v, e)
  899. case *map[uint32]int:
  900. fastpathTV.EncMapUint32IntV(*v, e)
  901. case map[uint32]int8:
  902. fastpathTV.EncMapUint32Int8V(v, e)
  903. case *map[uint32]int8:
  904. fastpathTV.EncMapUint32Int8V(*v, e)
  905. case map[uint32]int16:
  906. fastpathTV.EncMapUint32Int16V(v, e)
  907. case *map[uint32]int16:
  908. fastpathTV.EncMapUint32Int16V(*v, e)
  909. case map[uint32]int32:
  910. fastpathTV.EncMapUint32Int32V(v, e)
  911. case *map[uint32]int32:
  912. fastpathTV.EncMapUint32Int32V(*v, e)
  913. case map[uint32]int64:
  914. fastpathTV.EncMapUint32Int64V(v, e)
  915. case *map[uint32]int64:
  916. fastpathTV.EncMapUint32Int64V(*v, e)
  917. case map[uint32]float32:
  918. fastpathTV.EncMapUint32Float32V(v, e)
  919. case *map[uint32]float32:
  920. fastpathTV.EncMapUint32Float32V(*v, e)
  921. case map[uint32]float64:
  922. fastpathTV.EncMapUint32Float64V(v, e)
  923. case *map[uint32]float64:
  924. fastpathTV.EncMapUint32Float64V(*v, e)
  925. case map[uint32]bool:
  926. fastpathTV.EncMapUint32BoolV(v, e)
  927. case *map[uint32]bool:
  928. fastpathTV.EncMapUint32BoolV(*v, e)
  929. case map[uint64]interface{}:
  930. fastpathTV.EncMapUint64IntfV(v, e)
  931. case *map[uint64]interface{}:
  932. fastpathTV.EncMapUint64IntfV(*v, e)
  933. case map[uint64]string:
  934. fastpathTV.EncMapUint64StringV(v, e)
  935. case *map[uint64]string:
  936. fastpathTV.EncMapUint64StringV(*v, e)
  937. case map[uint64]uint:
  938. fastpathTV.EncMapUint64UintV(v, e)
  939. case *map[uint64]uint:
  940. fastpathTV.EncMapUint64UintV(*v, e)
  941. case map[uint64]uint8:
  942. fastpathTV.EncMapUint64Uint8V(v, e)
  943. case *map[uint64]uint8:
  944. fastpathTV.EncMapUint64Uint8V(*v, e)
  945. case map[uint64]uint16:
  946. fastpathTV.EncMapUint64Uint16V(v, e)
  947. case *map[uint64]uint16:
  948. fastpathTV.EncMapUint64Uint16V(*v, e)
  949. case map[uint64]uint32:
  950. fastpathTV.EncMapUint64Uint32V(v, e)
  951. case *map[uint64]uint32:
  952. fastpathTV.EncMapUint64Uint32V(*v, e)
  953. case map[uint64]uint64:
  954. fastpathTV.EncMapUint64Uint64V(v, e)
  955. case *map[uint64]uint64:
  956. fastpathTV.EncMapUint64Uint64V(*v, e)
  957. case map[uint64]uintptr:
  958. fastpathTV.EncMapUint64UintptrV(v, e)
  959. case *map[uint64]uintptr:
  960. fastpathTV.EncMapUint64UintptrV(*v, e)
  961. case map[uint64]int:
  962. fastpathTV.EncMapUint64IntV(v, e)
  963. case *map[uint64]int:
  964. fastpathTV.EncMapUint64IntV(*v, e)
  965. case map[uint64]int8:
  966. fastpathTV.EncMapUint64Int8V(v, e)
  967. case *map[uint64]int8:
  968. fastpathTV.EncMapUint64Int8V(*v, e)
  969. case map[uint64]int16:
  970. fastpathTV.EncMapUint64Int16V(v, e)
  971. case *map[uint64]int16:
  972. fastpathTV.EncMapUint64Int16V(*v, e)
  973. case map[uint64]int32:
  974. fastpathTV.EncMapUint64Int32V(v, e)
  975. case *map[uint64]int32:
  976. fastpathTV.EncMapUint64Int32V(*v, e)
  977. case map[uint64]int64:
  978. fastpathTV.EncMapUint64Int64V(v, e)
  979. case *map[uint64]int64:
  980. fastpathTV.EncMapUint64Int64V(*v, e)
  981. case map[uint64]float32:
  982. fastpathTV.EncMapUint64Float32V(v, e)
  983. case *map[uint64]float32:
  984. fastpathTV.EncMapUint64Float32V(*v, e)
  985. case map[uint64]float64:
  986. fastpathTV.EncMapUint64Float64V(v, e)
  987. case *map[uint64]float64:
  988. fastpathTV.EncMapUint64Float64V(*v, e)
  989. case map[uint64]bool:
  990. fastpathTV.EncMapUint64BoolV(v, e)
  991. case *map[uint64]bool:
  992. fastpathTV.EncMapUint64BoolV(*v, e)
  993. case map[uintptr]interface{}:
  994. fastpathTV.EncMapUintptrIntfV(v, e)
  995. case *map[uintptr]interface{}:
  996. fastpathTV.EncMapUintptrIntfV(*v, e)
  997. case map[uintptr]string:
  998. fastpathTV.EncMapUintptrStringV(v, e)
  999. case *map[uintptr]string:
  1000. fastpathTV.EncMapUintptrStringV(*v, e)
  1001. case map[uintptr]uint:
  1002. fastpathTV.EncMapUintptrUintV(v, e)
  1003. case *map[uintptr]uint:
  1004. fastpathTV.EncMapUintptrUintV(*v, e)
  1005. case map[uintptr]uint8:
  1006. fastpathTV.EncMapUintptrUint8V(v, e)
  1007. case *map[uintptr]uint8:
  1008. fastpathTV.EncMapUintptrUint8V(*v, e)
  1009. case map[uintptr]uint16:
  1010. fastpathTV.EncMapUintptrUint16V(v, e)
  1011. case *map[uintptr]uint16:
  1012. fastpathTV.EncMapUintptrUint16V(*v, e)
  1013. case map[uintptr]uint32:
  1014. fastpathTV.EncMapUintptrUint32V(v, e)
  1015. case *map[uintptr]uint32:
  1016. fastpathTV.EncMapUintptrUint32V(*v, e)
  1017. case map[uintptr]uint64:
  1018. fastpathTV.EncMapUintptrUint64V(v, e)
  1019. case *map[uintptr]uint64:
  1020. fastpathTV.EncMapUintptrUint64V(*v, e)
  1021. case map[uintptr]uintptr:
  1022. fastpathTV.EncMapUintptrUintptrV(v, e)
  1023. case *map[uintptr]uintptr:
  1024. fastpathTV.EncMapUintptrUintptrV(*v, e)
  1025. case map[uintptr]int:
  1026. fastpathTV.EncMapUintptrIntV(v, e)
  1027. case *map[uintptr]int:
  1028. fastpathTV.EncMapUintptrIntV(*v, e)
  1029. case map[uintptr]int8:
  1030. fastpathTV.EncMapUintptrInt8V(v, e)
  1031. case *map[uintptr]int8:
  1032. fastpathTV.EncMapUintptrInt8V(*v, e)
  1033. case map[uintptr]int16:
  1034. fastpathTV.EncMapUintptrInt16V(v, e)
  1035. case *map[uintptr]int16:
  1036. fastpathTV.EncMapUintptrInt16V(*v, e)
  1037. case map[uintptr]int32:
  1038. fastpathTV.EncMapUintptrInt32V(v, e)
  1039. case *map[uintptr]int32:
  1040. fastpathTV.EncMapUintptrInt32V(*v, e)
  1041. case map[uintptr]int64:
  1042. fastpathTV.EncMapUintptrInt64V(v, e)
  1043. case *map[uintptr]int64:
  1044. fastpathTV.EncMapUintptrInt64V(*v, e)
  1045. case map[uintptr]float32:
  1046. fastpathTV.EncMapUintptrFloat32V(v, e)
  1047. case *map[uintptr]float32:
  1048. fastpathTV.EncMapUintptrFloat32V(*v, e)
  1049. case map[uintptr]float64:
  1050. fastpathTV.EncMapUintptrFloat64V(v, e)
  1051. case *map[uintptr]float64:
  1052. fastpathTV.EncMapUintptrFloat64V(*v, e)
  1053. case map[uintptr]bool:
  1054. fastpathTV.EncMapUintptrBoolV(v, e)
  1055. case *map[uintptr]bool:
  1056. fastpathTV.EncMapUintptrBoolV(*v, e)
  1057. case map[int]interface{}:
  1058. fastpathTV.EncMapIntIntfV(v, e)
  1059. case *map[int]interface{}:
  1060. fastpathTV.EncMapIntIntfV(*v, e)
  1061. case map[int]string:
  1062. fastpathTV.EncMapIntStringV(v, e)
  1063. case *map[int]string:
  1064. fastpathTV.EncMapIntStringV(*v, e)
  1065. case map[int]uint:
  1066. fastpathTV.EncMapIntUintV(v, e)
  1067. case *map[int]uint:
  1068. fastpathTV.EncMapIntUintV(*v, e)
  1069. case map[int]uint8:
  1070. fastpathTV.EncMapIntUint8V(v, e)
  1071. case *map[int]uint8:
  1072. fastpathTV.EncMapIntUint8V(*v, e)
  1073. case map[int]uint16:
  1074. fastpathTV.EncMapIntUint16V(v, e)
  1075. case *map[int]uint16:
  1076. fastpathTV.EncMapIntUint16V(*v, e)
  1077. case map[int]uint32:
  1078. fastpathTV.EncMapIntUint32V(v, e)
  1079. case *map[int]uint32:
  1080. fastpathTV.EncMapIntUint32V(*v, e)
  1081. case map[int]uint64:
  1082. fastpathTV.EncMapIntUint64V(v, e)
  1083. case *map[int]uint64:
  1084. fastpathTV.EncMapIntUint64V(*v, e)
  1085. case map[int]uintptr:
  1086. fastpathTV.EncMapIntUintptrV(v, e)
  1087. case *map[int]uintptr:
  1088. fastpathTV.EncMapIntUintptrV(*v, e)
  1089. case map[int]int:
  1090. fastpathTV.EncMapIntIntV(v, e)
  1091. case *map[int]int:
  1092. fastpathTV.EncMapIntIntV(*v, e)
  1093. case map[int]int8:
  1094. fastpathTV.EncMapIntInt8V(v, e)
  1095. case *map[int]int8:
  1096. fastpathTV.EncMapIntInt8V(*v, e)
  1097. case map[int]int16:
  1098. fastpathTV.EncMapIntInt16V(v, e)
  1099. case *map[int]int16:
  1100. fastpathTV.EncMapIntInt16V(*v, e)
  1101. case map[int]int32:
  1102. fastpathTV.EncMapIntInt32V(v, e)
  1103. case *map[int]int32:
  1104. fastpathTV.EncMapIntInt32V(*v, e)
  1105. case map[int]int64:
  1106. fastpathTV.EncMapIntInt64V(v, e)
  1107. case *map[int]int64:
  1108. fastpathTV.EncMapIntInt64V(*v, e)
  1109. case map[int]float32:
  1110. fastpathTV.EncMapIntFloat32V(v, e)
  1111. case *map[int]float32:
  1112. fastpathTV.EncMapIntFloat32V(*v, e)
  1113. case map[int]float64:
  1114. fastpathTV.EncMapIntFloat64V(v, e)
  1115. case *map[int]float64:
  1116. fastpathTV.EncMapIntFloat64V(*v, e)
  1117. case map[int]bool:
  1118. fastpathTV.EncMapIntBoolV(v, e)
  1119. case *map[int]bool:
  1120. fastpathTV.EncMapIntBoolV(*v, e)
  1121. case map[int8]interface{}:
  1122. fastpathTV.EncMapInt8IntfV(v, e)
  1123. case *map[int8]interface{}:
  1124. fastpathTV.EncMapInt8IntfV(*v, e)
  1125. case map[int8]string:
  1126. fastpathTV.EncMapInt8StringV(v, e)
  1127. case *map[int8]string:
  1128. fastpathTV.EncMapInt8StringV(*v, e)
  1129. case map[int8]uint:
  1130. fastpathTV.EncMapInt8UintV(v, e)
  1131. case *map[int8]uint:
  1132. fastpathTV.EncMapInt8UintV(*v, e)
  1133. case map[int8]uint8:
  1134. fastpathTV.EncMapInt8Uint8V(v, e)
  1135. case *map[int8]uint8:
  1136. fastpathTV.EncMapInt8Uint8V(*v, e)
  1137. case map[int8]uint16:
  1138. fastpathTV.EncMapInt8Uint16V(v, e)
  1139. case *map[int8]uint16:
  1140. fastpathTV.EncMapInt8Uint16V(*v, e)
  1141. case map[int8]uint32:
  1142. fastpathTV.EncMapInt8Uint32V(v, e)
  1143. case *map[int8]uint32:
  1144. fastpathTV.EncMapInt8Uint32V(*v, e)
  1145. case map[int8]uint64:
  1146. fastpathTV.EncMapInt8Uint64V(v, e)
  1147. case *map[int8]uint64:
  1148. fastpathTV.EncMapInt8Uint64V(*v, e)
  1149. case map[int8]uintptr:
  1150. fastpathTV.EncMapInt8UintptrV(v, e)
  1151. case *map[int8]uintptr:
  1152. fastpathTV.EncMapInt8UintptrV(*v, e)
  1153. case map[int8]int:
  1154. fastpathTV.EncMapInt8IntV(v, e)
  1155. case *map[int8]int:
  1156. fastpathTV.EncMapInt8IntV(*v, e)
  1157. case map[int8]int8:
  1158. fastpathTV.EncMapInt8Int8V(v, e)
  1159. case *map[int8]int8:
  1160. fastpathTV.EncMapInt8Int8V(*v, e)
  1161. case map[int8]int16:
  1162. fastpathTV.EncMapInt8Int16V(v, e)
  1163. case *map[int8]int16:
  1164. fastpathTV.EncMapInt8Int16V(*v, e)
  1165. case map[int8]int32:
  1166. fastpathTV.EncMapInt8Int32V(v, e)
  1167. case *map[int8]int32:
  1168. fastpathTV.EncMapInt8Int32V(*v, e)
  1169. case map[int8]int64:
  1170. fastpathTV.EncMapInt8Int64V(v, e)
  1171. case *map[int8]int64:
  1172. fastpathTV.EncMapInt8Int64V(*v, e)
  1173. case map[int8]float32:
  1174. fastpathTV.EncMapInt8Float32V(v, e)
  1175. case *map[int8]float32:
  1176. fastpathTV.EncMapInt8Float32V(*v, e)
  1177. case map[int8]float64:
  1178. fastpathTV.EncMapInt8Float64V(v, e)
  1179. case *map[int8]float64:
  1180. fastpathTV.EncMapInt8Float64V(*v, e)
  1181. case map[int8]bool:
  1182. fastpathTV.EncMapInt8BoolV(v, e)
  1183. case *map[int8]bool:
  1184. fastpathTV.EncMapInt8BoolV(*v, e)
  1185. case map[int16]interface{}:
  1186. fastpathTV.EncMapInt16IntfV(v, e)
  1187. case *map[int16]interface{}:
  1188. fastpathTV.EncMapInt16IntfV(*v, e)
  1189. case map[int16]string:
  1190. fastpathTV.EncMapInt16StringV(v, e)
  1191. case *map[int16]string:
  1192. fastpathTV.EncMapInt16StringV(*v, e)
  1193. case map[int16]uint:
  1194. fastpathTV.EncMapInt16UintV(v, e)
  1195. case *map[int16]uint:
  1196. fastpathTV.EncMapInt16UintV(*v, e)
  1197. case map[int16]uint8:
  1198. fastpathTV.EncMapInt16Uint8V(v, e)
  1199. case *map[int16]uint8:
  1200. fastpathTV.EncMapInt16Uint8V(*v, e)
  1201. case map[int16]uint16:
  1202. fastpathTV.EncMapInt16Uint16V(v, e)
  1203. case *map[int16]uint16:
  1204. fastpathTV.EncMapInt16Uint16V(*v, e)
  1205. case map[int16]uint32:
  1206. fastpathTV.EncMapInt16Uint32V(v, e)
  1207. case *map[int16]uint32:
  1208. fastpathTV.EncMapInt16Uint32V(*v, e)
  1209. case map[int16]uint64:
  1210. fastpathTV.EncMapInt16Uint64V(v, e)
  1211. case *map[int16]uint64:
  1212. fastpathTV.EncMapInt16Uint64V(*v, e)
  1213. case map[int16]uintptr:
  1214. fastpathTV.EncMapInt16UintptrV(v, e)
  1215. case *map[int16]uintptr:
  1216. fastpathTV.EncMapInt16UintptrV(*v, e)
  1217. case map[int16]int:
  1218. fastpathTV.EncMapInt16IntV(v, e)
  1219. case *map[int16]int:
  1220. fastpathTV.EncMapInt16IntV(*v, e)
  1221. case map[int16]int8:
  1222. fastpathTV.EncMapInt16Int8V(v, e)
  1223. case *map[int16]int8:
  1224. fastpathTV.EncMapInt16Int8V(*v, e)
  1225. case map[int16]int16:
  1226. fastpathTV.EncMapInt16Int16V(v, e)
  1227. case *map[int16]int16:
  1228. fastpathTV.EncMapInt16Int16V(*v, e)
  1229. case map[int16]int32:
  1230. fastpathTV.EncMapInt16Int32V(v, e)
  1231. case *map[int16]int32:
  1232. fastpathTV.EncMapInt16Int32V(*v, e)
  1233. case map[int16]int64:
  1234. fastpathTV.EncMapInt16Int64V(v, e)
  1235. case *map[int16]int64:
  1236. fastpathTV.EncMapInt16Int64V(*v, e)
  1237. case map[int16]float32:
  1238. fastpathTV.EncMapInt16Float32V(v, e)
  1239. case *map[int16]float32:
  1240. fastpathTV.EncMapInt16Float32V(*v, e)
  1241. case map[int16]float64:
  1242. fastpathTV.EncMapInt16Float64V(v, e)
  1243. case *map[int16]float64:
  1244. fastpathTV.EncMapInt16Float64V(*v, e)
  1245. case map[int16]bool:
  1246. fastpathTV.EncMapInt16BoolV(v, e)
  1247. case *map[int16]bool:
  1248. fastpathTV.EncMapInt16BoolV(*v, e)
  1249. case map[int32]interface{}:
  1250. fastpathTV.EncMapInt32IntfV(v, e)
  1251. case *map[int32]interface{}:
  1252. fastpathTV.EncMapInt32IntfV(*v, e)
  1253. case map[int32]string:
  1254. fastpathTV.EncMapInt32StringV(v, e)
  1255. case *map[int32]string:
  1256. fastpathTV.EncMapInt32StringV(*v, e)
  1257. case map[int32]uint:
  1258. fastpathTV.EncMapInt32UintV(v, e)
  1259. case *map[int32]uint:
  1260. fastpathTV.EncMapInt32UintV(*v, e)
  1261. case map[int32]uint8:
  1262. fastpathTV.EncMapInt32Uint8V(v, e)
  1263. case *map[int32]uint8:
  1264. fastpathTV.EncMapInt32Uint8V(*v, e)
  1265. case map[int32]uint16:
  1266. fastpathTV.EncMapInt32Uint16V(v, e)
  1267. case *map[int32]uint16:
  1268. fastpathTV.EncMapInt32Uint16V(*v, e)
  1269. case map[int32]uint32:
  1270. fastpathTV.EncMapInt32Uint32V(v, e)
  1271. case *map[int32]uint32:
  1272. fastpathTV.EncMapInt32Uint32V(*v, e)
  1273. case map[int32]uint64:
  1274. fastpathTV.EncMapInt32Uint64V(v, e)
  1275. case *map[int32]uint64:
  1276. fastpathTV.EncMapInt32Uint64V(*v, e)
  1277. case map[int32]uintptr:
  1278. fastpathTV.EncMapInt32UintptrV(v, e)
  1279. case *map[int32]uintptr:
  1280. fastpathTV.EncMapInt32UintptrV(*v, e)
  1281. case map[int32]int:
  1282. fastpathTV.EncMapInt32IntV(v, e)
  1283. case *map[int32]int:
  1284. fastpathTV.EncMapInt32IntV(*v, e)
  1285. case map[int32]int8:
  1286. fastpathTV.EncMapInt32Int8V(v, e)
  1287. case *map[int32]int8:
  1288. fastpathTV.EncMapInt32Int8V(*v, e)
  1289. case map[int32]int16:
  1290. fastpathTV.EncMapInt32Int16V(v, e)
  1291. case *map[int32]int16:
  1292. fastpathTV.EncMapInt32Int16V(*v, e)
  1293. case map[int32]int32:
  1294. fastpathTV.EncMapInt32Int32V(v, e)
  1295. case *map[int32]int32:
  1296. fastpathTV.EncMapInt32Int32V(*v, e)
  1297. case map[int32]int64:
  1298. fastpathTV.EncMapInt32Int64V(v, e)
  1299. case *map[int32]int64:
  1300. fastpathTV.EncMapInt32Int64V(*v, e)
  1301. case map[int32]float32:
  1302. fastpathTV.EncMapInt32Float32V(v, e)
  1303. case *map[int32]float32:
  1304. fastpathTV.EncMapInt32Float32V(*v, e)
  1305. case map[int32]float64:
  1306. fastpathTV.EncMapInt32Float64V(v, e)
  1307. case *map[int32]float64:
  1308. fastpathTV.EncMapInt32Float64V(*v, e)
  1309. case map[int32]bool:
  1310. fastpathTV.EncMapInt32BoolV(v, e)
  1311. case *map[int32]bool:
  1312. fastpathTV.EncMapInt32BoolV(*v, e)
  1313. case map[int64]interface{}:
  1314. fastpathTV.EncMapInt64IntfV(v, e)
  1315. case *map[int64]interface{}:
  1316. fastpathTV.EncMapInt64IntfV(*v, e)
  1317. case map[int64]string:
  1318. fastpathTV.EncMapInt64StringV(v, e)
  1319. case *map[int64]string:
  1320. fastpathTV.EncMapInt64StringV(*v, e)
  1321. case map[int64]uint:
  1322. fastpathTV.EncMapInt64UintV(v, e)
  1323. case *map[int64]uint:
  1324. fastpathTV.EncMapInt64UintV(*v, e)
  1325. case map[int64]uint8:
  1326. fastpathTV.EncMapInt64Uint8V(v, e)
  1327. case *map[int64]uint8:
  1328. fastpathTV.EncMapInt64Uint8V(*v, e)
  1329. case map[int64]uint16:
  1330. fastpathTV.EncMapInt64Uint16V(v, e)
  1331. case *map[int64]uint16:
  1332. fastpathTV.EncMapInt64Uint16V(*v, e)
  1333. case map[int64]uint32:
  1334. fastpathTV.EncMapInt64Uint32V(v, e)
  1335. case *map[int64]uint32:
  1336. fastpathTV.EncMapInt64Uint32V(*v, e)
  1337. case map[int64]uint64:
  1338. fastpathTV.EncMapInt64Uint64V(v, e)
  1339. case *map[int64]uint64:
  1340. fastpathTV.EncMapInt64Uint64V(*v, e)
  1341. case map[int64]uintptr:
  1342. fastpathTV.EncMapInt64UintptrV(v, e)
  1343. case *map[int64]uintptr:
  1344. fastpathTV.EncMapInt64UintptrV(*v, e)
  1345. case map[int64]int:
  1346. fastpathTV.EncMapInt64IntV(v, e)
  1347. case *map[int64]int:
  1348. fastpathTV.EncMapInt64IntV(*v, e)
  1349. case map[int64]int8:
  1350. fastpathTV.EncMapInt64Int8V(v, e)
  1351. case *map[int64]int8:
  1352. fastpathTV.EncMapInt64Int8V(*v, e)
  1353. case map[int64]int16:
  1354. fastpathTV.EncMapInt64Int16V(v, e)
  1355. case *map[int64]int16:
  1356. fastpathTV.EncMapInt64Int16V(*v, e)
  1357. case map[int64]int32:
  1358. fastpathTV.EncMapInt64Int32V(v, e)
  1359. case *map[int64]int32:
  1360. fastpathTV.EncMapInt64Int32V(*v, e)
  1361. case map[int64]int64:
  1362. fastpathTV.EncMapInt64Int64V(v, e)
  1363. case *map[int64]int64:
  1364. fastpathTV.EncMapInt64Int64V(*v, e)
  1365. case map[int64]float32:
  1366. fastpathTV.EncMapInt64Float32V(v, e)
  1367. case *map[int64]float32:
  1368. fastpathTV.EncMapInt64Float32V(*v, e)
  1369. case map[int64]float64:
  1370. fastpathTV.EncMapInt64Float64V(v, e)
  1371. case *map[int64]float64:
  1372. fastpathTV.EncMapInt64Float64V(*v, e)
  1373. case map[int64]bool:
  1374. fastpathTV.EncMapInt64BoolV(v, e)
  1375. case *map[int64]bool:
  1376. fastpathTV.EncMapInt64BoolV(*v, e)
  1377. case map[bool]interface{}:
  1378. fastpathTV.EncMapBoolIntfV(v, e)
  1379. case *map[bool]interface{}:
  1380. fastpathTV.EncMapBoolIntfV(*v, e)
  1381. case map[bool]string:
  1382. fastpathTV.EncMapBoolStringV(v, e)
  1383. case *map[bool]string:
  1384. fastpathTV.EncMapBoolStringV(*v, e)
  1385. case map[bool]uint:
  1386. fastpathTV.EncMapBoolUintV(v, e)
  1387. case *map[bool]uint:
  1388. fastpathTV.EncMapBoolUintV(*v, e)
  1389. case map[bool]uint8:
  1390. fastpathTV.EncMapBoolUint8V(v, e)
  1391. case *map[bool]uint8:
  1392. fastpathTV.EncMapBoolUint8V(*v, e)
  1393. case map[bool]uint16:
  1394. fastpathTV.EncMapBoolUint16V(v, e)
  1395. case *map[bool]uint16:
  1396. fastpathTV.EncMapBoolUint16V(*v, e)
  1397. case map[bool]uint32:
  1398. fastpathTV.EncMapBoolUint32V(v, e)
  1399. case *map[bool]uint32:
  1400. fastpathTV.EncMapBoolUint32V(*v, e)
  1401. case map[bool]uint64:
  1402. fastpathTV.EncMapBoolUint64V(v, e)
  1403. case *map[bool]uint64:
  1404. fastpathTV.EncMapBoolUint64V(*v, e)
  1405. case map[bool]uintptr:
  1406. fastpathTV.EncMapBoolUintptrV(v, e)
  1407. case *map[bool]uintptr:
  1408. fastpathTV.EncMapBoolUintptrV(*v, e)
  1409. case map[bool]int:
  1410. fastpathTV.EncMapBoolIntV(v, e)
  1411. case *map[bool]int:
  1412. fastpathTV.EncMapBoolIntV(*v, e)
  1413. case map[bool]int8:
  1414. fastpathTV.EncMapBoolInt8V(v, e)
  1415. case *map[bool]int8:
  1416. fastpathTV.EncMapBoolInt8V(*v, e)
  1417. case map[bool]int16:
  1418. fastpathTV.EncMapBoolInt16V(v, e)
  1419. case *map[bool]int16:
  1420. fastpathTV.EncMapBoolInt16V(*v, e)
  1421. case map[bool]int32:
  1422. fastpathTV.EncMapBoolInt32V(v, e)
  1423. case *map[bool]int32:
  1424. fastpathTV.EncMapBoolInt32V(*v, e)
  1425. case map[bool]int64:
  1426. fastpathTV.EncMapBoolInt64V(v, e)
  1427. case *map[bool]int64:
  1428. fastpathTV.EncMapBoolInt64V(*v, e)
  1429. case map[bool]float32:
  1430. fastpathTV.EncMapBoolFloat32V(v, e)
  1431. case *map[bool]float32:
  1432. fastpathTV.EncMapBoolFloat32V(*v, e)
  1433. case map[bool]float64:
  1434. fastpathTV.EncMapBoolFloat64V(v, e)
  1435. case *map[bool]float64:
  1436. fastpathTV.EncMapBoolFloat64V(*v, e)
  1437. case map[bool]bool:
  1438. fastpathTV.EncMapBoolBoolV(v, e)
  1439. case *map[bool]bool:
  1440. fastpathTV.EncMapBoolBoolV(*v, e)
  1441. default:
  1442. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  1443. return false
  1444. }
  1445. return true
  1446. }
  1447. // -- -- fast path functions
  1448. func (e *Encoder) fastpathEncSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  1449. if f.ti.mbs {
  1450. fastpathTV.EncAsMapSliceIntfV(rv2i(rv).([]interface{}), e)
  1451. } else {
  1452. fastpathTV.EncSliceIntfV(rv2i(rv).([]interface{}), e)
  1453. }
  1454. }
  1455. func (_ fastpathT) EncSliceIntfV(v []interface{}, e *Encoder) {
  1456. if v == nil {
  1457. e.e.EncodeNil()
  1458. return
  1459. }
  1460. ee, esep := e.e, e.hh.hasElemSeparators()
  1461. ee.WriteArrayStart(len(v))
  1462. if esep {
  1463. for _, v2 := range v {
  1464. ee.WriteArrayElem()
  1465. e.encode(v2)
  1466. }
  1467. } else {
  1468. for _, v2 := range v {
  1469. e.encode(v2)
  1470. }
  1471. }
  1472. ee.WriteArrayEnd()
  1473. }
  1474. func (_ fastpathT) EncAsMapSliceIntfV(v []interface{}, e *Encoder) {
  1475. ee, esep := e.e, e.hh.hasElemSeparators()
  1476. if len(v)%2 == 1 {
  1477. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1478. return
  1479. }
  1480. ee.WriteMapStart(len(v) / 2)
  1481. if esep {
  1482. for j, v2 := range v {
  1483. if j%2 == 0 {
  1484. ee.WriteMapElemKey()
  1485. } else {
  1486. ee.WriteMapElemValue()
  1487. }
  1488. e.encode(v2)
  1489. }
  1490. } else {
  1491. for _, v2 := range v {
  1492. e.encode(v2)
  1493. }
  1494. }
  1495. ee.WriteMapEnd()
  1496. }
  1497. func (e *Encoder) fastpathEncSliceStringR(f *codecFnInfo, rv reflect.Value) {
  1498. if f.ti.mbs {
  1499. fastpathTV.EncAsMapSliceStringV(rv2i(rv).([]string), e)
  1500. } else {
  1501. fastpathTV.EncSliceStringV(rv2i(rv).([]string), e)
  1502. }
  1503. }
  1504. func (_ fastpathT) EncSliceStringV(v []string, e *Encoder) {
  1505. if v == nil {
  1506. e.e.EncodeNil()
  1507. return
  1508. }
  1509. ee, esep := e.e, e.hh.hasElemSeparators()
  1510. ee.WriteArrayStart(len(v))
  1511. if esep {
  1512. for _, v2 := range v {
  1513. ee.WriteArrayElem()
  1514. ee.EncodeStringEnc(cUTF8, v2)
  1515. }
  1516. } else {
  1517. for _, v2 := range v {
  1518. ee.EncodeStringEnc(cUTF8, v2)
  1519. }
  1520. }
  1521. ee.WriteArrayEnd()
  1522. }
  1523. func (_ fastpathT) EncAsMapSliceStringV(v []string, e *Encoder) {
  1524. ee, esep := e.e, e.hh.hasElemSeparators()
  1525. if len(v)%2 == 1 {
  1526. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1527. return
  1528. }
  1529. ee.WriteMapStart(len(v) / 2)
  1530. if esep {
  1531. for j, v2 := range v {
  1532. if j%2 == 0 {
  1533. ee.WriteMapElemKey()
  1534. } else {
  1535. ee.WriteMapElemValue()
  1536. }
  1537. ee.EncodeStringEnc(cUTF8, v2)
  1538. }
  1539. } else {
  1540. for _, v2 := range v {
  1541. ee.EncodeStringEnc(cUTF8, v2)
  1542. }
  1543. }
  1544. ee.WriteMapEnd()
  1545. }
  1546. func (e *Encoder) fastpathEncSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  1547. if f.ti.mbs {
  1548. fastpathTV.EncAsMapSliceFloat32V(rv2i(rv).([]float32), e)
  1549. } else {
  1550. fastpathTV.EncSliceFloat32V(rv2i(rv).([]float32), e)
  1551. }
  1552. }
  1553. func (_ fastpathT) EncSliceFloat32V(v []float32, e *Encoder) {
  1554. if v == nil {
  1555. e.e.EncodeNil()
  1556. return
  1557. }
  1558. ee, esep := e.e, e.hh.hasElemSeparators()
  1559. ee.WriteArrayStart(len(v))
  1560. if esep {
  1561. for _, v2 := range v {
  1562. ee.WriteArrayElem()
  1563. ee.EncodeFloat32(v2)
  1564. }
  1565. } else {
  1566. for _, v2 := range v {
  1567. ee.EncodeFloat32(v2)
  1568. }
  1569. }
  1570. ee.WriteArrayEnd()
  1571. }
  1572. func (_ fastpathT) EncAsMapSliceFloat32V(v []float32, e *Encoder) {
  1573. ee, esep := e.e, e.hh.hasElemSeparators()
  1574. if len(v)%2 == 1 {
  1575. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1576. return
  1577. }
  1578. ee.WriteMapStart(len(v) / 2)
  1579. if esep {
  1580. for j, v2 := range v {
  1581. if j%2 == 0 {
  1582. ee.WriteMapElemKey()
  1583. } else {
  1584. ee.WriteMapElemValue()
  1585. }
  1586. ee.EncodeFloat32(v2)
  1587. }
  1588. } else {
  1589. for _, v2 := range v {
  1590. ee.EncodeFloat32(v2)
  1591. }
  1592. }
  1593. ee.WriteMapEnd()
  1594. }
  1595. func (e *Encoder) fastpathEncSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  1596. if f.ti.mbs {
  1597. fastpathTV.EncAsMapSliceFloat64V(rv2i(rv).([]float64), e)
  1598. } else {
  1599. fastpathTV.EncSliceFloat64V(rv2i(rv).([]float64), e)
  1600. }
  1601. }
  1602. func (_ fastpathT) EncSliceFloat64V(v []float64, e *Encoder) {
  1603. if v == nil {
  1604. e.e.EncodeNil()
  1605. return
  1606. }
  1607. ee, esep := e.e, e.hh.hasElemSeparators()
  1608. ee.WriteArrayStart(len(v))
  1609. if esep {
  1610. for _, v2 := range v {
  1611. ee.WriteArrayElem()
  1612. ee.EncodeFloat64(v2)
  1613. }
  1614. } else {
  1615. for _, v2 := range v {
  1616. ee.EncodeFloat64(v2)
  1617. }
  1618. }
  1619. ee.WriteArrayEnd()
  1620. }
  1621. func (_ fastpathT) EncAsMapSliceFloat64V(v []float64, e *Encoder) {
  1622. ee, esep := e.e, e.hh.hasElemSeparators()
  1623. if len(v)%2 == 1 {
  1624. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1625. return
  1626. }
  1627. ee.WriteMapStart(len(v) / 2)
  1628. if esep {
  1629. for j, v2 := range v {
  1630. if j%2 == 0 {
  1631. ee.WriteMapElemKey()
  1632. } else {
  1633. ee.WriteMapElemValue()
  1634. }
  1635. ee.EncodeFloat64(v2)
  1636. }
  1637. } else {
  1638. for _, v2 := range v {
  1639. ee.EncodeFloat64(v2)
  1640. }
  1641. }
  1642. ee.WriteMapEnd()
  1643. }
  1644. func (e *Encoder) fastpathEncSliceUintR(f *codecFnInfo, rv reflect.Value) {
  1645. if f.ti.mbs {
  1646. fastpathTV.EncAsMapSliceUintV(rv2i(rv).([]uint), e)
  1647. } else {
  1648. fastpathTV.EncSliceUintV(rv2i(rv).([]uint), e)
  1649. }
  1650. }
  1651. func (_ fastpathT) EncSliceUintV(v []uint, e *Encoder) {
  1652. if v == nil {
  1653. e.e.EncodeNil()
  1654. return
  1655. }
  1656. ee, esep := e.e, e.hh.hasElemSeparators()
  1657. ee.WriteArrayStart(len(v))
  1658. if esep {
  1659. for _, v2 := range v {
  1660. ee.WriteArrayElem()
  1661. ee.EncodeUint(uint64(v2))
  1662. }
  1663. } else {
  1664. for _, v2 := range v {
  1665. ee.EncodeUint(uint64(v2))
  1666. }
  1667. }
  1668. ee.WriteArrayEnd()
  1669. }
  1670. func (_ fastpathT) EncAsMapSliceUintV(v []uint, e *Encoder) {
  1671. ee, esep := e.e, e.hh.hasElemSeparators()
  1672. if len(v)%2 == 1 {
  1673. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1674. return
  1675. }
  1676. ee.WriteMapStart(len(v) / 2)
  1677. if esep {
  1678. for j, v2 := range v {
  1679. if j%2 == 0 {
  1680. ee.WriteMapElemKey()
  1681. } else {
  1682. ee.WriteMapElemValue()
  1683. }
  1684. ee.EncodeUint(uint64(v2))
  1685. }
  1686. } else {
  1687. for _, v2 := range v {
  1688. ee.EncodeUint(uint64(v2))
  1689. }
  1690. }
  1691. ee.WriteMapEnd()
  1692. }
  1693. func (e *Encoder) fastpathEncSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  1694. if f.ti.mbs {
  1695. fastpathTV.EncAsMapSliceUint8V(rv2i(rv).([]uint8), e)
  1696. } else {
  1697. fastpathTV.EncSliceUint8V(rv2i(rv).([]uint8), e)
  1698. }
  1699. }
  1700. func (_ fastpathT) EncSliceUint8V(v []uint8, e *Encoder) {
  1701. if v == nil {
  1702. e.e.EncodeNil()
  1703. return
  1704. }
  1705. ee, esep := e.e, e.hh.hasElemSeparators()
  1706. ee.WriteArrayStart(len(v))
  1707. if esep {
  1708. for _, v2 := range v {
  1709. ee.WriteArrayElem()
  1710. ee.EncodeUint(uint64(v2))
  1711. }
  1712. } else {
  1713. for _, v2 := range v {
  1714. ee.EncodeUint(uint64(v2))
  1715. }
  1716. }
  1717. ee.WriteArrayEnd()
  1718. }
  1719. func (_ fastpathT) EncAsMapSliceUint8V(v []uint8, e *Encoder) {
  1720. ee, esep := e.e, e.hh.hasElemSeparators()
  1721. if len(v)%2 == 1 {
  1722. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1723. return
  1724. }
  1725. ee.WriteMapStart(len(v) / 2)
  1726. if esep {
  1727. for j, v2 := range v {
  1728. if j%2 == 0 {
  1729. ee.WriteMapElemKey()
  1730. } else {
  1731. ee.WriteMapElemValue()
  1732. }
  1733. ee.EncodeUint(uint64(v2))
  1734. }
  1735. } else {
  1736. for _, v2 := range v {
  1737. ee.EncodeUint(uint64(v2))
  1738. }
  1739. }
  1740. ee.WriteMapEnd()
  1741. }
  1742. func (e *Encoder) fastpathEncSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  1743. if f.ti.mbs {
  1744. fastpathTV.EncAsMapSliceUint16V(rv2i(rv).([]uint16), e)
  1745. } else {
  1746. fastpathTV.EncSliceUint16V(rv2i(rv).([]uint16), e)
  1747. }
  1748. }
  1749. func (_ fastpathT) EncSliceUint16V(v []uint16, e *Encoder) {
  1750. if v == nil {
  1751. e.e.EncodeNil()
  1752. return
  1753. }
  1754. ee, esep := e.e, e.hh.hasElemSeparators()
  1755. ee.WriteArrayStart(len(v))
  1756. if esep {
  1757. for _, v2 := range v {
  1758. ee.WriteArrayElem()
  1759. ee.EncodeUint(uint64(v2))
  1760. }
  1761. } else {
  1762. for _, v2 := range v {
  1763. ee.EncodeUint(uint64(v2))
  1764. }
  1765. }
  1766. ee.WriteArrayEnd()
  1767. }
  1768. func (_ fastpathT) EncAsMapSliceUint16V(v []uint16, e *Encoder) {
  1769. ee, esep := e.e, e.hh.hasElemSeparators()
  1770. if len(v)%2 == 1 {
  1771. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1772. return
  1773. }
  1774. ee.WriteMapStart(len(v) / 2)
  1775. if esep {
  1776. for j, v2 := range v {
  1777. if j%2 == 0 {
  1778. ee.WriteMapElemKey()
  1779. } else {
  1780. ee.WriteMapElemValue()
  1781. }
  1782. ee.EncodeUint(uint64(v2))
  1783. }
  1784. } else {
  1785. for _, v2 := range v {
  1786. ee.EncodeUint(uint64(v2))
  1787. }
  1788. }
  1789. ee.WriteMapEnd()
  1790. }
  1791. func (e *Encoder) fastpathEncSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  1792. if f.ti.mbs {
  1793. fastpathTV.EncAsMapSliceUint32V(rv2i(rv).([]uint32), e)
  1794. } else {
  1795. fastpathTV.EncSliceUint32V(rv2i(rv).([]uint32), e)
  1796. }
  1797. }
  1798. func (_ fastpathT) EncSliceUint32V(v []uint32, e *Encoder) {
  1799. if v == nil {
  1800. e.e.EncodeNil()
  1801. return
  1802. }
  1803. ee, esep := e.e, e.hh.hasElemSeparators()
  1804. ee.WriteArrayStart(len(v))
  1805. if esep {
  1806. for _, v2 := range v {
  1807. ee.WriteArrayElem()
  1808. ee.EncodeUint(uint64(v2))
  1809. }
  1810. } else {
  1811. for _, v2 := range v {
  1812. ee.EncodeUint(uint64(v2))
  1813. }
  1814. }
  1815. ee.WriteArrayEnd()
  1816. }
  1817. func (_ fastpathT) EncAsMapSliceUint32V(v []uint32, e *Encoder) {
  1818. ee, esep := e.e, e.hh.hasElemSeparators()
  1819. if len(v)%2 == 1 {
  1820. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1821. return
  1822. }
  1823. ee.WriteMapStart(len(v) / 2)
  1824. if esep {
  1825. for j, v2 := range v {
  1826. if j%2 == 0 {
  1827. ee.WriteMapElemKey()
  1828. } else {
  1829. ee.WriteMapElemValue()
  1830. }
  1831. ee.EncodeUint(uint64(v2))
  1832. }
  1833. } else {
  1834. for _, v2 := range v {
  1835. ee.EncodeUint(uint64(v2))
  1836. }
  1837. }
  1838. ee.WriteMapEnd()
  1839. }
  1840. func (e *Encoder) fastpathEncSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  1841. if f.ti.mbs {
  1842. fastpathTV.EncAsMapSliceUint64V(rv2i(rv).([]uint64), e)
  1843. } else {
  1844. fastpathTV.EncSliceUint64V(rv2i(rv).([]uint64), e)
  1845. }
  1846. }
  1847. func (_ fastpathT) EncSliceUint64V(v []uint64, e *Encoder) {
  1848. if v == nil {
  1849. e.e.EncodeNil()
  1850. return
  1851. }
  1852. ee, esep := e.e, e.hh.hasElemSeparators()
  1853. ee.WriteArrayStart(len(v))
  1854. if esep {
  1855. for _, v2 := range v {
  1856. ee.WriteArrayElem()
  1857. ee.EncodeUint(uint64(v2))
  1858. }
  1859. } else {
  1860. for _, v2 := range v {
  1861. ee.EncodeUint(uint64(v2))
  1862. }
  1863. }
  1864. ee.WriteArrayEnd()
  1865. }
  1866. func (_ fastpathT) EncAsMapSliceUint64V(v []uint64, e *Encoder) {
  1867. ee, esep := e.e, e.hh.hasElemSeparators()
  1868. if len(v)%2 == 1 {
  1869. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1870. return
  1871. }
  1872. ee.WriteMapStart(len(v) / 2)
  1873. if esep {
  1874. for j, v2 := range v {
  1875. if j%2 == 0 {
  1876. ee.WriteMapElemKey()
  1877. } else {
  1878. ee.WriteMapElemValue()
  1879. }
  1880. ee.EncodeUint(uint64(v2))
  1881. }
  1882. } else {
  1883. for _, v2 := range v {
  1884. ee.EncodeUint(uint64(v2))
  1885. }
  1886. }
  1887. ee.WriteMapEnd()
  1888. }
  1889. func (e *Encoder) fastpathEncSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  1890. if f.ti.mbs {
  1891. fastpathTV.EncAsMapSliceUintptrV(rv2i(rv).([]uintptr), e)
  1892. } else {
  1893. fastpathTV.EncSliceUintptrV(rv2i(rv).([]uintptr), e)
  1894. }
  1895. }
  1896. func (_ fastpathT) EncSliceUintptrV(v []uintptr, e *Encoder) {
  1897. if v == nil {
  1898. e.e.EncodeNil()
  1899. return
  1900. }
  1901. ee, esep := e.e, e.hh.hasElemSeparators()
  1902. ee.WriteArrayStart(len(v))
  1903. if esep {
  1904. for _, v2 := range v {
  1905. ee.WriteArrayElem()
  1906. e.encode(v2)
  1907. }
  1908. } else {
  1909. for _, v2 := range v {
  1910. e.encode(v2)
  1911. }
  1912. }
  1913. ee.WriteArrayEnd()
  1914. }
  1915. func (_ fastpathT) EncAsMapSliceUintptrV(v []uintptr, e *Encoder) {
  1916. ee, esep := e.e, e.hh.hasElemSeparators()
  1917. if len(v)%2 == 1 {
  1918. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1919. return
  1920. }
  1921. ee.WriteMapStart(len(v) / 2)
  1922. if esep {
  1923. for j, v2 := range v {
  1924. if j%2 == 0 {
  1925. ee.WriteMapElemKey()
  1926. } else {
  1927. ee.WriteMapElemValue()
  1928. }
  1929. e.encode(v2)
  1930. }
  1931. } else {
  1932. for _, v2 := range v {
  1933. e.encode(v2)
  1934. }
  1935. }
  1936. ee.WriteMapEnd()
  1937. }
  1938. func (e *Encoder) fastpathEncSliceIntR(f *codecFnInfo, rv reflect.Value) {
  1939. if f.ti.mbs {
  1940. fastpathTV.EncAsMapSliceIntV(rv2i(rv).([]int), e)
  1941. } else {
  1942. fastpathTV.EncSliceIntV(rv2i(rv).([]int), e)
  1943. }
  1944. }
  1945. func (_ fastpathT) EncSliceIntV(v []int, e *Encoder) {
  1946. if v == nil {
  1947. e.e.EncodeNil()
  1948. return
  1949. }
  1950. ee, esep := e.e, e.hh.hasElemSeparators()
  1951. ee.WriteArrayStart(len(v))
  1952. if esep {
  1953. for _, v2 := range v {
  1954. ee.WriteArrayElem()
  1955. ee.EncodeInt(int64(v2))
  1956. }
  1957. } else {
  1958. for _, v2 := range v {
  1959. ee.EncodeInt(int64(v2))
  1960. }
  1961. }
  1962. ee.WriteArrayEnd()
  1963. }
  1964. func (_ fastpathT) EncAsMapSliceIntV(v []int, e *Encoder) {
  1965. ee, esep := e.e, e.hh.hasElemSeparators()
  1966. if len(v)%2 == 1 {
  1967. e.errorf(fastpathMapBySliceErrMsg, len(v))
  1968. return
  1969. }
  1970. ee.WriteMapStart(len(v) / 2)
  1971. if esep {
  1972. for j, v2 := range v {
  1973. if j%2 == 0 {
  1974. ee.WriteMapElemKey()
  1975. } else {
  1976. ee.WriteMapElemValue()
  1977. }
  1978. ee.EncodeInt(int64(v2))
  1979. }
  1980. } else {
  1981. for _, v2 := range v {
  1982. ee.EncodeInt(int64(v2))
  1983. }
  1984. }
  1985. ee.WriteMapEnd()
  1986. }
  1987. func (e *Encoder) fastpathEncSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  1988. if f.ti.mbs {
  1989. fastpathTV.EncAsMapSliceInt8V(rv2i(rv).([]int8), e)
  1990. } else {
  1991. fastpathTV.EncSliceInt8V(rv2i(rv).([]int8), e)
  1992. }
  1993. }
  1994. func (_ fastpathT) EncSliceInt8V(v []int8, e *Encoder) {
  1995. if v == nil {
  1996. e.e.EncodeNil()
  1997. return
  1998. }
  1999. ee, esep := e.e, e.hh.hasElemSeparators()
  2000. ee.WriteArrayStart(len(v))
  2001. if esep {
  2002. for _, v2 := range v {
  2003. ee.WriteArrayElem()
  2004. ee.EncodeInt(int64(v2))
  2005. }
  2006. } else {
  2007. for _, v2 := range v {
  2008. ee.EncodeInt(int64(v2))
  2009. }
  2010. }
  2011. ee.WriteArrayEnd()
  2012. }
  2013. func (_ fastpathT) EncAsMapSliceInt8V(v []int8, e *Encoder) {
  2014. ee, esep := e.e, e.hh.hasElemSeparators()
  2015. if len(v)%2 == 1 {
  2016. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2017. return
  2018. }
  2019. ee.WriteMapStart(len(v) / 2)
  2020. if esep {
  2021. for j, v2 := range v {
  2022. if j%2 == 0 {
  2023. ee.WriteMapElemKey()
  2024. } else {
  2025. ee.WriteMapElemValue()
  2026. }
  2027. ee.EncodeInt(int64(v2))
  2028. }
  2029. } else {
  2030. for _, v2 := range v {
  2031. ee.EncodeInt(int64(v2))
  2032. }
  2033. }
  2034. ee.WriteMapEnd()
  2035. }
  2036. func (e *Encoder) fastpathEncSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  2037. if f.ti.mbs {
  2038. fastpathTV.EncAsMapSliceInt16V(rv2i(rv).([]int16), e)
  2039. } else {
  2040. fastpathTV.EncSliceInt16V(rv2i(rv).([]int16), e)
  2041. }
  2042. }
  2043. func (_ fastpathT) EncSliceInt16V(v []int16, e *Encoder) {
  2044. if v == nil {
  2045. e.e.EncodeNil()
  2046. return
  2047. }
  2048. ee, esep := e.e, e.hh.hasElemSeparators()
  2049. ee.WriteArrayStart(len(v))
  2050. if esep {
  2051. for _, v2 := range v {
  2052. ee.WriteArrayElem()
  2053. ee.EncodeInt(int64(v2))
  2054. }
  2055. } else {
  2056. for _, v2 := range v {
  2057. ee.EncodeInt(int64(v2))
  2058. }
  2059. }
  2060. ee.WriteArrayEnd()
  2061. }
  2062. func (_ fastpathT) EncAsMapSliceInt16V(v []int16, e *Encoder) {
  2063. ee, esep := e.e, e.hh.hasElemSeparators()
  2064. if len(v)%2 == 1 {
  2065. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2066. return
  2067. }
  2068. ee.WriteMapStart(len(v) / 2)
  2069. if esep {
  2070. for j, v2 := range v {
  2071. if j%2 == 0 {
  2072. ee.WriteMapElemKey()
  2073. } else {
  2074. ee.WriteMapElemValue()
  2075. }
  2076. ee.EncodeInt(int64(v2))
  2077. }
  2078. } else {
  2079. for _, v2 := range v {
  2080. ee.EncodeInt(int64(v2))
  2081. }
  2082. }
  2083. ee.WriteMapEnd()
  2084. }
  2085. func (e *Encoder) fastpathEncSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  2086. if f.ti.mbs {
  2087. fastpathTV.EncAsMapSliceInt32V(rv2i(rv).([]int32), e)
  2088. } else {
  2089. fastpathTV.EncSliceInt32V(rv2i(rv).([]int32), e)
  2090. }
  2091. }
  2092. func (_ fastpathT) EncSliceInt32V(v []int32, e *Encoder) {
  2093. if v == nil {
  2094. e.e.EncodeNil()
  2095. return
  2096. }
  2097. ee, esep := e.e, e.hh.hasElemSeparators()
  2098. ee.WriteArrayStart(len(v))
  2099. if esep {
  2100. for _, v2 := range v {
  2101. ee.WriteArrayElem()
  2102. ee.EncodeInt(int64(v2))
  2103. }
  2104. } else {
  2105. for _, v2 := range v {
  2106. ee.EncodeInt(int64(v2))
  2107. }
  2108. }
  2109. ee.WriteArrayEnd()
  2110. }
  2111. func (_ fastpathT) EncAsMapSliceInt32V(v []int32, e *Encoder) {
  2112. ee, esep := e.e, e.hh.hasElemSeparators()
  2113. if len(v)%2 == 1 {
  2114. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2115. return
  2116. }
  2117. ee.WriteMapStart(len(v) / 2)
  2118. if esep {
  2119. for j, v2 := range v {
  2120. if j%2 == 0 {
  2121. ee.WriteMapElemKey()
  2122. } else {
  2123. ee.WriteMapElemValue()
  2124. }
  2125. ee.EncodeInt(int64(v2))
  2126. }
  2127. } else {
  2128. for _, v2 := range v {
  2129. ee.EncodeInt(int64(v2))
  2130. }
  2131. }
  2132. ee.WriteMapEnd()
  2133. }
  2134. func (e *Encoder) fastpathEncSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  2135. if f.ti.mbs {
  2136. fastpathTV.EncAsMapSliceInt64V(rv2i(rv).([]int64), e)
  2137. } else {
  2138. fastpathTV.EncSliceInt64V(rv2i(rv).([]int64), e)
  2139. }
  2140. }
  2141. func (_ fastpathT) EncSliceInt64V(v []int64, e *Encoder) {
  2142. if v == nil {
  2143. e.e.EncodeNil()
  2144. return
  2145. }
  2146. ee, esep := e.e, e.hh.hasElemSeparators()
  2147. ee.WriteArrayStart(len(v))
  2148. if esep {
  2149. for _, v2 := range v {
  2150. ee.WriteArrayElem()
  2151. ee.EncodeInt(int64(v2))
  2152. }
  2153. } else {
  2154. for _, v2 := range v {
  2155. ee.EncodeInt(int64(v2))
  2156. }
  2157. }
  2158. ee.WriteArrayEnd()
  2159. }
  2160. func (_ fastpathT) EncAsMapSliceInt64V(v []int64, e *Encoder) {
  2161. ee, esep := e.e, e.hh.hasElemSeparators()
  2162. if len(v)%2 == 1 {
  2163. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2164. return
  2165. }
  2166. ee.WriteMapStart(len(v) / 2)
  2167. if esep {
  2168. for j, v2 := range v {
  2169. if j%2 == 0 {
  2170. ee.WriteMapElemKey()
  2171. } else {
  2172. ee.WriteMapElemValue()
  2173. }
  2174. ee.EncodeInt(int64(v2))
  2175. }
  2176. } else {
  2177. for _, v2 := range v {
  2178. ee.EncodeInt(int64(v2))
  2179. }
  2180. }
  2181. ee.WriteMapEnd()
  2182. }
  2183. func (e *Encoder) fastpathEncSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  2184. if f.ti.mbs {
  2185. fastpathTV.EncAsMapSliceBoolV(rv2i(rv).([]bool), e)
  2186. } else {
  2187. fastpathTV.EncSliceBoolV(rv2i(rv).([]bool), e)
  2188. }
  2189. }
  2190. func (_ fastpathT) EncSliceBoolV(v []bool, e *Encoder) {
  2191. if v == nil {
  2192. e.e.EncodeNil()
  2193. return
  2194. }
  2195. ee, esep := e.e, e.hh.hasElemSeparators()
  2196. ee.WriteArrayStart(len(v))
  2197. if esep {
  2198. for _, v2 := range v {
  2199. ee.WriteArrayElem()
  2200. ee.EncodeBool(v2)
  2201. }
  2202. } else {
  2203. for _, v2 := range v {
  2204. ee.EncodeBool(v2)
  2205. }
  2206. }
  2207. ee.WriteArrayEnd()
  2208. }
  2209. func (_ fastpathT) EncAsMapSliceBoolV(v []bool, e *Encoder) {
  2210. ee, esep := e.e, e.hh.hasElemSeparators()
  2211. if len(v)%2 == 1 {
  2212. e.errorf(fastpathMapBySliceErrMsg, len(v))
  2213. return
  2214. }
  2215. ee.WriteMapStart(len(v) / 2)
  2216. if esep {
  2217. for j, v2 := range v {
  2218. if j%2 == 0 {
  2219. ee.WriteMapElemKey()
  2220. } else {
  2221. ee.WriteMapElemValue()
  2222. }
  2223. ee.EncodeBool(v2)
  2224. }
  2225. } else {
  2226. for _, v2 := range v {
  2227. ee.EncodeBool(v2)
  2228. }
  2229. }
  2230. ee.WriteMapEnd()
  2231. }
  2232. func (e *Encoder) fastpathEncMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  2233. fastpathTV.EncMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), e)
  2234. }
  2235. func (_ fastpathT) EncMapIntfIntfV(v map[interface{}]interface{}, e *Encoder) {
  2236. if v == nil {
  2237. e.e.EncodeNil()
  2238. return
  2239. }
  2240. ee, esep := e.e, e.hh.hasElemSeparators()
  2241. ee.WriteMapStart(len(v))
  2242. if e.h.Canonical {
  2243. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2244. e2 := NewEncoderBytes(&mksv, e.hh)
  2245. v2 := make([]bytesI, len(v))
  2246. var i, l uint
  2247. var vp *bytesI
  2248. for k2 := range v {
  2249. l = uint(len(mksv))
  2250. e2.MustEncode(k2)
  2251. vp = &v2[i]
  2252. vp.v = mksv[l:]
  2253. vp.i = k2
  2254. i++
  2255. }
  2256. sort.Sort(bytesISlice(v2))
  2257. if esep {
  2258. for j := range v2 {
  2259. ee.WriteMapElemKey()
  2260. e.asis(v2[j].v)
  2261. ee.WriteMapElemValue()
  2262. e.encode(v[v2[j].i])
  2263. }
  2264. } else {
  2265. for j := range v2 {
  2266. e.asis(v2[j].v)
  2267. e.encode(v[v2[j].i])
  2268. }
  2269. }
  2270. } else {
  2271. if esep {
  2272. for k2, v2 := range v {
  2273. ee.WriteMapElemKey()
  2274. e.encode(k2)
  2275. ee.WriteMapElemValue()
  2276. e.encode(v2)
  2277. }
  2278. } else {
  2279. for k2, v2 := range v {
  2280. e.encode(k2)
  2281. e.encode(v2)
  2282. }
  2283. }
  2284. }
  2285. ee.WriteMapEnd()
  2286. }
  2287. func (e *Encoder) fastpathEncMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  2288. fastpathTV.EncMapIntfStringV(rv2i(rv).(map[interface{}]string), e)
  2289. }
  2290. func (_ fastpathT) EncMapIntfStringV(v map[interface{}]string, e *Encoder) {
  2291. if v == nil {
  2292. e.e.EncodeNil()
  2293. return
  2294. }
  2295. ee, esep := e.e, e.hh.hasElemSeparators()
  2296. ee.WriteMapStart(len(v))
  2297. if e.h.Canonical {
  2298. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2299. e2 := NewEncoderBytes(&mksv, e.hh)
  2300. v2 := make([]bytesI, len(v))
  2301. var i, l uint
  2302. var vp *bytesI
  2303. for k2 := range v {
  2304. l = uint(len(mksv))
  2305. e2.MustEncode(k2)
  2306. vp = &v2[i]
  2307. vp.v = mksv[l:]
  2308. vp.i = k2
  2309. i++
  2310. }
  2311. sort.Sort(bytesISlice(v2))
  2312. if esep {
  2313. for j := range v2 {
  2314. ee.WriteMapElemKey()
  2315. e.asis(v2[j].v)
  2316. ee.WriteMapElemValue()
  2317. e.encode(v[v2[j].i])
  2318. }
  2319. } else {
  2320. for j := range v2 {
  2321. e.asis(v2[j].v)
  2322. e.encode(v[v2[j].i])
  2323. }
  2324. }
  2325. } else {
  2326. if esep {
  2327. for k2, v2 := range v {
  2328. ee.WriteMapElemKey()
  2329. e.encode(k2)
  2330. ee.WriteMapElemValue()
  2331. ee.EncodeStringEnc(cUTF8, v2)
  2332. }
  2333. } else {
  2334. for k2, v2 := range v {
  2335. e.encode(k2)
  2336. ee.EncodeStringEnc(cUTF8, v2)
  2337. }
  2338. }
  2339. }
  2340. ee.WriteMapEnd()
  2341. }
  2342. func (e *Encoder) fastpathEncMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  2343. fastpathTV.EncMapIntfUintV(rv2i(rv).(map[interface{}]uint), e)
  2344. }
  2345. func (_ fastpathT) EncMapIntfUintV(v map[interface{}]uint, e *Encoder) {
  2346. if v == nil {
  2347. e.e.EncodeNil()
  2348. return
  2349. }
  2350. ee, esep := e.e, e.hh.hasElemSeparators()
  2351. ee.WriteMapStart(len(v))
  2352. if e.h.Canonical {
  2353. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2354. e2 := NewEncoderBytes(&mksv, e.hh)
  2355. v2 := make([]bytesI, len(v))
  2356. var i, l uint
  2357. var vp *bytesI
  2358. for k2 := range v {
  2359. l = uint(len(mksv))
  2360. e2.MustEncode(k2)
  2361. vp = &v2[i]
  2362. vp.v = mksv[l:]
  2363. vp.i = k2
  2364. i++
  2365. }
  2366. sort.Sort(bytesISlice(v2))
  2367. if esep {
  2368. for j := range v2 {
  2369. ee.WriteMapElemKey()
  2370. e.asis(v2[j].v)
  2371. ee.WriteMapElemValue()
  2372. e.encode(v[v2[j].i])
  2373. }
  2374. } else {
  2375. for j := range v2 {
  2376. e.asis(v2[j].v)
  2377. e.encode(v[v2[j].i])
  2378. }
  2379. }
  2380. } else {
  2381. if esep {
  2382. for k2, v2 := range v {
  2383. ee.WriteMapElemKey()
  2384. e.encode(k2)
  2385. ee.WriteMapElemValue()
  2386. ee.EncodeUint(uint64(v2))
  2387. }
  2388. } else {
  2389. for k2, v2 := range v {
  2390. e.encode(k2)
  2391. ee.EncodeUint(uint64(v2))
  2392. }
  2393. }
  2394. }
  2395. ee.WriteMapEnd()
  2396. }
  2397. func (e *Encoder) fastpathEncMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  2398. fastpathTV.EncMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), e)
  2399. }
  2400. func (_ fastpathT) EncMapIntfUint8V(v map[interface{}]uint8, e *Encoder) {
  2401. if v == nil {
  2402. e.e.EncodeNil()
  2403. return
  2404. }
  2405. ee, esep := e.e, e.hh.hasElemSeparators()
  2406. ee.WriteMapStart(len(v))
  2407. if e.h.Canonical {
  2408. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2409. e2 := NewEncoderBytes(&mksv, e.hh)
  2410. v2 := make([]bytesI, len(v))
  2411. var i, l uint
  2412. var vp *bytesI
  2413. for k2 := range v {
  2414. l = uint(len(mksv))
  2415. e2.MustEncode(k2)
  2416. vp = &v2[i]
  2417. vp.v = mksv[l:]
  2418. vp.i = k2
  2419. i++
  2420. }
  2421. sort.Sort(bytesISlice(v2))
  2422. if esep {
  2423. for j := range v2 {
  2424. ee.WriteMapElemKey()
  2425. e.asis(v2[j].v)
  2426. ee.WriteMapElemValue()
  2427. e.encode(v[v2[j].i])
  2428. }
  2429. } else {
  2430. for j := range v2 {
  2431. e.asis(v2[j].v)
  2432. e.encode(v[v2[j].i])
  2433. }
  2434. }
  2435. } else {
  2436. if esep {
  2437. for k2, v2 := range v {
  2438. ee.WriteMapElemKey()
  2439. e.encode(k2)
  2440. ee.WriteMapElemValue()
  2441. ee.EncodeUint(uint64(v2))
  2442. }
  2443. } else {
  2444. for k2, v2 := range v {
  2445. e.encode(k2)
  2446. ee.EncodeUint(uint64(v2))
  2447. }
  2448. }
  2449. }
  2450. ee.WriteMapEnd()
  2451. }
  2452. func (e *Encoder) fastpathEncMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  2453. fastpathTV.EncMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), e)
  2454. }
  2455. func (_ fastpathT) EncMapIntfUint16V(v map[interface{}]uint16, e *Encoder) {
  2456. if v == nil {
  2457. e.e.EncodeNil()
  2458. return
  2459. }
  2460. ee, esep := e.e, e.hh.hasElemSeparators()
  2461. ee.WriteMapStart(len(v))
  2462. if e.h.Canonical {
  2463. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2464. e2 := NewEncoderBytes(&mksv, e.hh)
  2465. v2 := make([]bytesI, len(v))
  2466. var i, l uint
  2467. var vp *bytesI
  2468. for k2 := range v {
  2469. l = uint(len(mksv))
  2470. e2.MustEncode(k2)
  2471. vp = &v2[i]
  2472. vp.v = mksv[l:]
  2473. vp.i = k2
  2474. i++
  2475. }
  2476. sort.Sort(bytesISlice(v2))
  2477. if esep {
  2478. for j := range v2 {
  2479. ee.WriteMapElemKey()
  2480. e.asis(v2[j].v)
  2481. ee.WriteMapElemValue()
  2482. e.encode(v[v2[j].i])
  2483. }
  2484. } else {
  2485. for j := range v2 {
  2486. e.asis(v2[j].v)
  2487. e.encode(v[v2[j].i])
  2488. }
  2489. }
  2490. } else {
  2491. if esep {
  2492. for k2, v2 := range v {
  2493. ee.WriteMapElemKey()
  2494. e.encode(k2)
  2495. ee.WriteMapElemValue()
  2496. ee.EncodeUint(uint64(v2))
  2497. }
  2498. } else {
  2499. for k2, v2 := range v {
  2500. e.encode(k2)
  2501. ee.EncodeUint(uint64(v2))
  2502. }
  2503. }
  2504. }
  2505. ee.WriteMapEnd()
  2506. }
  2507. func (e *Encoder) fastpathEncMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  2508. fastpathTV.EncMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), e)
  2509. }
  2510. func (_ fastpathT) EncMapIntfUint32V(v map[interface{}]uint32, e *Encoder) {
  2511. if v == nil {
  2512. e.e.EncodeNil()
  2513. return
  2514. }
  2515. ee, esep := e.e, e.hh.hasElemSeparators()
  2516. ee.WriteMapStart(len(v))
  2517. if e.h.Canonical {
  2518. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2519. e2 := NewEncoderBytes(&mksv, e.hh)
  2520. v2 := make([]bytesI, len(v))
  2521. var i, l uint
  2522. var vp *bytesI
  2523. for k2 := range v {
  2524. l = uint(len(mksv))
  2525. e2.MustEncode(k2)
  2526. vp = &v2[i]
  2527. vp.v = mksv[l:]
  2528. vp.i = k2
  2529. i++
  2530. }
  2531. sort.Sort(bytesISlice(v2))
  2532. if esep {
  2533. for j := range v2 {
  2534. ee.WriteMapElemKey()
  2535. e.asis(v2[j].v)
  2536. ee.WriteMapElemValue()
  2537. e.encode(v[v2[j].i])
  2538. }
  2539. } else {
  2540. for j := range v2 {
  2541. e.asis(v2[j].v)
  2542. e.encode(v[v2[j].i])
  2543. }
  2544. }
  2545. } else {
  2546. if esep {
  2547. for k2, v2 := range v {
  2548. ee.WriteMapElemKey()
  2549. e.encode(k2)
  2550. ee.WriteMapElemValue()
  2551. ee.EncodeUint(uint64(v2))
  2552. }
  2553. } else {
  2554. for k2, v2 := range v {
  2555. e.encode(k2)
  2556. ee.EncodeUint(uint64(v2))
  2557. }
  2558. }
  2559. }
  2560. ee.WriteMapEnd()
  2561. }
  2562. func (e *Encoder) fastpathEncMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  2563. fastpathTV.EncMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), e)
  2564. }
  2565. func (_ fastpathT) EncMapIntfUint64V(v map[interface{}]uint64, e *Encoder) {
  2566. if v == nil {
  2567. e.e.EncodeNil()
  2568. return
  2569. }
  2570. ee, esep := e.e, e.hh.hasElemSeparators()
  2571. ee.WriteMapStart(len(v))
  2572. if e.h.Canonical {
  2573. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2574. e2 := NewEncoderBytes(&mksv, e.hh)
  2575. v2 := make([]bytesI, len(v))
  2576. var i, l uint
  2577. var vp *bytesI
  2578. for k2 := range v {
  2579. l = uint(len(mksv))
  2580. e2.MustEncode(k2)
  2581. vp = &v2[i]
  2582. vp.v = mksv[l:]
  2583. vp.i = k2
  2584. i++
  2585. }
  2586. sort.Sort(bytesISlice(v2))
  2587. if esep {
  2588. for j := range v2 {
  2589. ee.WriteMapElemKey()
  2590. e.asis(v2[j].v)
  2591. ee.WriteMapElemValue()
  2592. e.encode(v[v2[j].i])
  2593. }
  2594. } else {
  2595. for j := range v2 {
  2596. e.asis(v2[j].v)
  2597. e.encode(v[v2[j].i])
  2598. }
  2599. }
  2600. } else {
  2601. if esep {
  2602. for k2, v2 := range v {
  2603. ee.WriteMapElemKey()
  2604. e.encode(k2)
  2605. ee.WriteMapElemValue()
  2606. ee.EncodeUint(uint64(v2))
  2607. }
  2608. } else {
  2609. for k2, v2 := range v {
  2610. e.encode(k2)
  2611. ee.EncodeUint(uint64(v2))
  2612. }
  2613. }
  2614. }
  2615. ee.WriteMapEnd()
  2616. }
  2617. func (e *Encoder) fastpathEncMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  2618. fastpathTV.EncMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), e)
  2619. }
  2620. func (_ fastpathT) EncMapIntfUintptrV(v map[interface{}]uintptr, e *Encoder) {
  2621. if v == nil {
  2622. e.e.EncodeNil()
  2623. return
  2624. }
  2625. ee, esep := e.e, e.hh.hasElemSeparators()
  2626. ee.WriteMapStart(len(v))
  2627. if e.h.Canonical {
  2628. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2629. e2 := NewEncoderBytes(&mksv, e.hh)
  2630. v2 := make([]bytesI, len(v))
  2631. var i, l uint
  2632. var vp *bytesI
  2633. for k2 := range v {
  2634. l = uint(len(mksv))
  2635. e2.MustEncode(k2)
  2636. vp = &v2[i]
  2637. vp.v = mksv[l:]
  2638. vp.i = k2
  2639. i++
  2640. }
  2641. sort.Sort(bytesISlice(v2))
  2642. if esep {
  2643. for j := range v2 {
  2644. ee.WriteMapElemKey()
  2645. e.asis(v2[j].v)
  2646. ee.WriteMapElemValue()
  2647. e.encode(v[v2[j].i])
  2648. }
  2649. } else {
  2650. for j := range v2 {
  2651. e.asis(v2[j].v)
  2652. e.encode(v[v2[j].i])
  2653. }
  2654. }
  2655. } else {
  2656. if esep {
  2657. for k2, v2 := range v {
  2658. ee.WriteMapElemKey()
  2659. e.encode(k2)
  2660. ee.WriteMapElemValue()
  2661. e.encode(v2)
  2662. }
  2663. } else {
  2664. for k2, v2 := range v {
  2665. e.encode(k2)
  2666. e.encode(v2)
  2667. }
  2668. }
  2669. }
  2670. ee.WriteMapEnd()
  2671. }
  2672. func (e *Encoder) fastpathEncMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  2673. fastpathTV.EncMapIntfIntV(rv2i(rv).(map[interface{}]int), e)
  2674. }
  2675. func (_ fastpathT) EncMapIntfIntV(v map[interface{}]int, e *Encoder) {
  2676. if v == nil {
  2677. e.e.EncodeNil()
  2678. return
  2679. }
  2680. ee, esep := e.e, e.hh.hasElemSeparators()
  2681. ee.WriteMapStart(len(v))
  2682. if e.h.Canonical {
  2683. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2684. e2 := NewEncoderBytes(&mksv, e.hh)
  2685. v2 := make([]bytesI, len(v))
  2686. var i, l uint
  2687. var vp *bytesI
  2688. for k2 := range v {
  2689. l = uint(len(mksv))
  2690. e2.MustEncode(k2)
  2691. vp = &v2[i]
  2692. vp.v = mksv[l:]
  2693. vp.i = k2
  2694. i++
  2695. }
  2696. sort.Sort(bytesISlice(v2))
  2697. if esep {
  2698. for j := range v2 {
  2699. ee.WriteMapElemKey()
  2700. e.asis(v2[j].v)
  2701. ee.WriteMapElemValue()
  2702. e.encode(v[v2[j].i])
  2703. }
  2704. } else {
  2705. for j := range v2 {
  2706. e.asis(v2[j].v)
  2707. e.encode(v[v2[j].i])
  2708. }
  2709. }
  2710. } else {
  2711. if esep {
  2712. for k2, v2 := range v {
  2713. ee.WriteMapElemKey()
  2714. e.encode(k2)
  2715. ee.WriteMapElemValue()
  2716. ee.EncodeInt(int64(v2))
  2717. }
  2718. } else {
  2719. for k2, v2 := range v {
  2720. e.encode(k2)
  2721. ee.EncodeInt(int64(v2))
  2722. }
  2723. }
  2724. }
  2725. ee.WriteMapEnd()
  2726. }
  2727. func (e *Encoder) fastpathEncMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  2728. fastpathTV.EncMapIntfInt8V(rv2i(rv).(map[interface{}]int8), e)
  2729. }
  2730. func (_ fastpathT) EncMapIntfInt8V(v map[interface{}]int8, e *Encoder) {
  2731. if v == nil {
  2732. e.e.EncodeNil()
  2733. return
  2734. }
  2735. ee, esep := e.e, e.hh.hasElemSeparators()
  2736. ee.WriteMapStart(len(v))
  2737. if e.h.Canonical {
  2738. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2739. e2 := NewEncoderBytes(&mksv, e.hh)
  2740. v2 := make([]bytesI, len(v))
  2741. var i, l uint
  2742. var vp *bytesI
  2743. for k2 := range v {
  2744. l = uint(len(mksv))
  2745. e2.MustEncode(k2)
  2746. vp = &v2[i]
  2747. vp.v = mksv[l:]
  2748. vp.i = k2
  2749. i++
  2750. }
  2751. sort.Sort(bytesISlice(v2))
  2752. if esep {
  2753. for j := range v2 {
  2754. ee.WriteMapElemKey()
  2755. e.asis(v2[j].v)
  2756. ee.WriteMapElemValue()
  2757. e.encode(v[v2[j].i])
  2758. }
  2759. } else {
  2760. for j := range v2 {
  2761. e.asis(v2[j].v)
  2762. e.encode(v[v2[j].i])
  2763. }
  2764. }
  2765. } else {
  2766. if esep {
  2767. for k2, v2 := range v {
  2768. ee.WriteMapElemKey()
  2769. e.encode(k2)
  2770. ee.WriteMapElemValue()
  2771. ee.EncodeInt(int64(v2))
  2772. }
  2773. } else {
  2774. for k2, v2 := range v {
  2775. e.encode(k2)
  2776. ee.EncodeInt(int64(v2))
  2777. }
  2778. }
  2779. }
  2780. ee.WriteMapEnd()
  2781. }
  2782. func (e *Encoder) fastpathEncMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  2783. fastpathTV.EncMapIntfInt16V(rv2i(rv).(map[interface{}]int16), e)
  2784. }
  2785. func (_ fastpathT) EncMapIntfInt16V(v map[interface{}]int16, e *Encoder) {
  2786. if v == nil {
  2787. e.e.EncodeNil()
  2788. return
  2789. }
  2790. ee, esep := e.e, e.hh.hasElemSeparators()
  2791. ee.WriteMapStart(len(v))
  2792. if e.h.Canonical {
  2793. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2794. e2 := NewEncoderBytes(&mksv, e.hh)
  2795. v2 := make([]bytesI, len(v))
  2796. var i, l uint
  2797. var vp *bytesI
  2798. for k2 := range v {
  2799. l = uint(len(mksv))
  2800. e2.MustEncode(k2)
  2801. vp = &v2[i]
  2802. vp.v = mksv[l:]
  2803. vp.i = k2
  2804. i++
  2805. }
  2806. sort.Sort(bytesISlice(v2))
  2807. if esep {
  2808. for j := range v2 {
  2809. ee.WriteMapElemKey()
  2810. e.asis(v2[j].v)
  2811. ee.WriteMapElemValue()
  2812. e.encode(v[v2[j].i])
  2813. }
  2814. } else {
  2815. for j := range v2 {
  2816. e.asis(v2[j].v)
  2817. e.encode(v[v2[j].i])
  2818. }
  2819. }
  2820. } else {
  2821. if esep {
  2822. for k2, v2 := range v {
  2823. ee.WriteMapElemKey()
  2824. e.encode(k2)
  2825. ee.WriteMapElemValue()
  2826. ee.EncodeInt(int64(v2))
  2827. }
  2828. } else {
  2829. for k2, v2 := range v {
  2830. e.encode(k2)
  2831. ee.EncodeInt(int64(v2))
  2832. }
  2833. }
  2834. }
  2835. ee.WriteMapEnd()
  2836. }
  2837. func (e *Encoder) fastpathEncMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  2838. fastpathTV.EncMapIntfInt32V(rv2i(rv).(map[interface{}]int32), e)
  2839. }
  2840. func (_ fastpathT) EncMapIntfInt32V(v map[interface{}]int32, e *Encoder) {
  2841. if v == nil {
  2842. e.e.EncodeNil()
  2843. return
  2844. }
  2845. ee, esep := e.e, e.hh.hasElemSeparators()
  2846. ee.WriteMapStart(len(v))
  2847. if e.h.Canonical {
  2848. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2849. e2 := NewEncoderBytes(&mksv, e.hh)
  2850. v2 := make([]bytesI, len(v))
  2851. var i, l uint
  2852. var vp *bytesI
  2853. for k2 := range v {
  2854. l = uint(len(mksv))
  2855. e2.MustEncode(k2)
  2856. vp = &v2[i]
  2857. vp.v = mksv[l:]
  2858. vp.i = k2
  2859. i++
  2860. }
  2861. sort.Sort(bytesISlice(v2))
  2862. if esep {
  2863. for j := range v2 {
  2864. ee.WriteMapElemKey()
  2865. e.asis(v2[j].v)
  2866. ee.WriteMapElemValue()
  2867. e.encode(v[v2[j].i])
  2868. }
  2869. } else {
  2870. for j := range v2 {
  2871. e.asis(v2[j].v)
  2872. e.encode(v[v2[j].i])
  2873. }
  2874. }
  2875. } else {
  2876. if esep {
  2877. for k2, v2 := range v {
  2878. ee.WriteMapElemKey()
  2879. e.encode(k2)
  2880. ee.WriteMapElemValue()
  2881. ee.EncodeInt(int64(v2))
  2882. }
  2883. } else {
  2884. for k2, v2 := range v {
  2885. e.encode(k2)
  2886. ee.EncodeInt(int64(v2))
  2887. }
  2888. }
  2889. }
  2890. ee.WriteMapEnd()
  2891. }
  2892. func (e *Encoder) fastpathEncMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  2893. fastpathTV.EncMapIntfInt64V(rv2i(rv).(map[interface{}]int64), e)
  2894. }
  2895. func (_ fastpathT) EncMapIntfInt64V(v map[interface{}]int64, e *Encoder) {
  2896. if v == nil {
  2897. e.e.EncodeNil()
  2898. return
  2899. }
  2900. ee, esep := e.e, e.hh.hasElemSeparators()
  2901. ee.WriteMapStart(len(v))
  2902. if e.h.Canonical {
  2903. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2904. e2 := NewEncoderBytes(&mksv, e.hh)
  2905. v2 := make([]bytesI, len(v))
  2906. var i, l uint
  2907. var vp *bytesI
  2908. for k2 := range v {
  2909. l = uint(len(mksv))
  2910. e2.MustEncode(k2)
  2911. vp = &v2[i]
  2912. vp.v = mksv[l:]
  2913. vp.i = k2
  2914. i++
  2915. }
  2916. sort.Sort(bytesISlice(v2))
  2917. if esep {
  2918. for j := range v2 {
  2919. ee.WriteMapElemKey()
  2920. e.asis(v2[j].v)
  2921. ee.WriteMapElemValue()
  2922. e.encode(v[v2[j].i])
  2923. }
  2924. } else {
  2925. for j := range v2 {
  2926. e.asis(v2[j].v)
  2927. e.encode(v[v2[j].i])
  2928. }
  2929. }
  2930. } else {
  2931. if esep {
  2932. for k2, v2 := range v {
  2933. ee.WriteMapElemKey()
  2934. e.encode(k2)
  2935. ee.WriteMapElemValue()
  2936. ee.EncodeInt(int64(v2))
  2937. }
  2938. } else {
  2939. for k2, v2 := range v {
  2940. e.encode(k2)
  2941. ee.EncodeInt(int64(v2))
  2942. }
  2943. }
  2944. }
  2945. ee.WriteMapEnd()
  2946. }
  2947. func (e *Encoder) fastpathEncMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  2948. fastpathTV.EncMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), e)
  2949. }
  2950. func (_ fastpathT) EncMapIntfFloat32V(v map[interface{}]float32, e *Encoder) {
  2951. if v == nil {
  2952. e.e.EncodeNil()
  2953. return
  2954. }
  2955. ee, esep := e.e, e.hh.hasElemSeparators()
  2956. ee.WriteMapStart(len(v))
  2957. if e.h.Canonical {
  2958. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  2959. e2 := NewEncoderBytes(&mksv, e.hh)
  2960. v2 := make([]bytesI, len(v))
  2961. var i, l uint
  2962. var vp *bytesI
  2963. for k2 := range v {
  2964. l = uint(len(mksv))
  2965. e2.MustEncode(k2)
  2966. vp = &v2[i]
  2967. vp.v = mksv[l:]
  2968. vp.i = k2
  2969. i++
  2970. }
  2971. sort.Sort(bytesISlice(v2))
  2972. if esep {
  2973. for j := range v2 {
  2974. ee.WriteMapElemKey()
  2975. e.asis(v2[j].v)
  2976. ee.WriteMapElemValue()
  2977. e.encode(v[v2[j].i])
  2978. }
  2979. } else {
  2980. for j := range v2 {
  2981. e.asis(v2[j].v)
  2982. e.encode(v[v2[j].i])
  2983. }
  2984. }
  2985. } else {
  2986. if esep {
  2987. for k2, v2 := range v {
  2988. ee.WriteMapElemKey()
  2989. e.encode(k2)
  2990. ee.WriteMapElemValue()
  2991. ee.EncodeFloat32(v2)
  2992. }
  2993. } else {
  2994. for k2, v2 := range v {
  2995. e.encode(k2)
  2996. ee.EncodeFloat32(v2)
  2997. }
  2998. }
  2999. }
  3000. ee.WriteMapEnd()
  3001. }
  3002. func (e *Encoder) fastpathEncMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  3003. fastpathTV.EncMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), e)
  3004. }
  3005. func (_ fastpathT) EncMapIntfFloat64V(v map[interface{}]float64, e *Encoder) {
  3006. if v == nil {
  3007. e.e.EncodeNil()
  3008. return
  3009. }
  3010. ee, esep := e.e, e.hh.hasElemSeparators()
  3011. ee.WriteMapStart(len(v))
  3012. if e.h.Canonical {
  3013. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3014. e2 := NewEncoderBytes(&mksv, e.hh)
  3015. v2 := make([]bytesI, len(v))
  3016. var i, l uint
  3017. var vp *bytesI
  3018. for k2 := range v {
  3019. l = uint(len(mksv))
  3020. e2.MustEncode(k2)
  3021. vp = &v2[i]
  3022. vp.v = mksv[l:]
  3023. vp.i = k2
  3024. i++
  3025. }
  3026. sort.Sort(bytesISlice(v2))
  3027. if esep {
  3028. for j := range v2 {
  3029. ee.WriteMapElemKey()
  3030. e.asis(v2[j].v)
  3031. ee.WriteMapElemValue()
  3032. e.encode(v[v2[j].i])
  3033. }
  3034. } else {
  3035. for j := range v2 {
  3036. e.asis(v2[j].v)
  3037. e.encode(v[v2[j].i])
  3038. }
  3039. }
  3040. } else {
  3041. if esep {
  3042. for k2, v2 := range v {
  3043. ee.WriteMapElemKey()
  3044. e.encode(k2)
  3045. ee.WriteMapElemValue()
  3046. ee.EncodeFloat64(v2)
  3047. }
  3048. } else {
  3049. for k2, v2 := range v {
  3050. e.encode(k2)
  3051. ee.EncodeFloat64(v2)
  3052. }
  3053. }
  3054. }
  3055. ee.WriteMapEnd()
  3056. }
  3057. func (e *Encoder) fastpathEncMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  3058. fastpathTV.EncMapIntfBoolV(rv2i(rv).(map[interface{}]bool), e)
  3059. }
  3060. func (_ fastpathT) EncMapIntfBoolV(v map[interface{}]bool, e *Encoder) {
  3061. if v == nil {
  3062. e.e.EncodeNil()
  3063. return
  3064. }
  3065. ee, esep := e.e, e.hh.hasElemSeparators()
  3066. ee.WriteMapStart(len(v))
  3067. if e.h.Canonical {
  3068. var mksv []byte = make([]byte, 0, len(v)*16) // temporary byte slice for the encoding
  3069. e2 := NewEncoderBytes(&mksv, e.hh)
  3070. v2 := make([]bytesI, len(v))
  3071. var i, l uint
  3072. var vp *bytesI
  3073. for k2 := range v {
  3074. l = uint(len(mksv))
  3075. e2.MustEncode(k2)
  3076. vp = &v2[i]
  3077. vp.v = mksv[l:]
  3078. vp.i = k2
  3079. i++
  3080. }
  3081. sort.Sort(bytesISlice(v2))
  3082. if esep {
  3083. for j := range v2 {
  3084. ee.WriteMapElemKey()
  3085. e.asis(v2[j].v)
  3086. ee.WriteMapElemValue()
  3087. e.encode(v[v2[j].i])
  3088. }
  3089. } else {
  3090. for j := range v2 {
  3091. e.asis(v2[j].v)
  3092. e.encode(v[v2[j].i])
  3093. }
  3094. }
  3095. } else {
  3096. if esep {
  3097. for k2, v2 := range v {
  3098. ee.WriteMapElemKey()
  3099. e.encode(k2)
  3100. ee.WriteMapElemValue()
  3101. ee.EncodeBool(v2)
  3102. }
  3103. } else {
  3104. for k2, v2 := range v {
  3105. e.encode(k2)
  3106. ee.EncodeBool(v2)
  3107. }
  3108. }
  3109. }
  3110. ee.WriteMapEnd()
  3111. }
  3112. func (e *Encoder) fastpathEncMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  3113. fastpathTV.EncMapStringIntfV(rv2i(rv).(map[string]interface{}), e)
  3114. }
  3115. func (_ fastpathT) EncMapStringIntfV(v map[string]interface{}, e *Encoder) {
  3116. if v == nil {
  3117. e.e.EncodeNil()
  3118. return
  3119. }
  3120. ee, esep := e.e, e.hh.hasElemSeparators()
  3121. ee.WriteMapStart(len(v))
  3122. if e.h.Canonical {
  3123. v2 := make([]string, len(v))
  3124. var i uint
  3125. for k := range v {
  3126. v2[i] = string(k)
  3127. i++
  3128. }
  3129. sort.Sort(stringSlice(v2))
  3130. if esep {
  3131. for _, k2 := range v2 {
  3132. ee.WriteMapElemKey()
  3133. ee.EncodeStringEnc(cUTF8, k2)
  3134. ee.WriteMapElemValue()
  3135. e.encode(v[string(k2)])
  3136. }
  3137. } else {
  3138. for _, k2 := range v2 {
  3139. ee.EncodeStringEnc(cUTF8, k2)
  3140. e.encode(v[string(k2)])
  3141. }
  3142. }
  3143. } else {
  3144. if esep {
  3145. for k2, v2 := range v {
  3146. ee.WriteMapElemKey()
  3147. ee.EncodeStringEnc(cUTF8, k2)
  3148. ee.WriteMapElemValue()
  3149. e.encode(v2)
  3150. }
  3151. } else {
  3152. for k2, v2 := range v {
  3153. ee.EncodeStringEnc(cUTF8, k2)
  3154. e.encode(v2)
  3155. }
  3156. }
  3157. }
  3158. ee.WriteMapEnd()
  3159. }
  3160. func (e *Encoder) fastpathEncMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  3161. fastpathTV.EncMapStringStringV(rv2i(rv).(map[string]string), e)
  3162. }
  3163. func (_ fastpathT) EncMapStringStringV(v map[string]string, e *Encoder) {
  3164. if v == nil {
  3165. e.e.EncodeNil()
  3166. return
  3167. }
  3168. ee, esep := e.e, e.hh.hasElemSeparators()
  3169. ee.WriteMapStart(len(v))
  3170. if e.h.Canonical {
  3171. v2 := make([]string, len(v))
  3172. var i uint
  3173. for k := range v {
  3174. v2[i] = string(k)
  3175. i++
  3176. }
  3177. sort.Sort(stringSlice(v2))
  3178. if esep {
  3179. for _, k2 := range v2 {
  3180. ee.WriteMapElemKey()
  3181. ee.EncodeStringEnc(cUTF8, k2)
  3182. ee.WriteMapElemValue()
  3183. ee.EncodeStringEnc(cUTF8, v[string(k2)])
  3184. }
  3185. } else {
  3186. for _, k2 := range v2 {
  3187. ee.EncodeStringEnc(cUTF8, k2)
  3188. ee.EncodeStringEnc(cUTF8, v[string(k2)])
  3189. }
  3190. }
  3191. } else {
  3192. if esep {
  3193. for k2, v2 := range v {
  3194. ee.WriteMapElemKey()
  3195. ee.EncodeStringEnc(cUTF8, k2)
  3196. ee.WriteMapElemValue()
  3197. ee.EncodeStringEnc(cUTF8, v2)
  3198. }
  3199. } else {
  3200. for k2, v2 := range v {
  3201. ee.EncodeStringEnc(cUTF8, k2)
  3202. ee.EncodeStringEnc(cUTF8, v2)
  3203. }
  3204. }
  3205. }
  3206. ee.WriteMapEnd()
  3207. }
  3208. func (e *Encoder) fastpathEncMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  3209. fastpathTV.EncMapStringUintV(rv2i(rv).(map[string]uint), e)
  3210. }
  3211. func (_ fastpathT) EncMapStringUintV(v map[string]uint, e *Encoder) {
  3212. if v == nil {
  3213. e.e.EncodeNil()
  3214. return
  3215. }
  3216. ee, esep := e.e, e.hh.hasElemSeparators()
  3217. ee.WriteMapStart(len(v))
  3218. if e.h.Canonical {
  3219. v2 := make([]string, len(v))
  3220. var i uint
  3221. for k := range v {
  3222. v2[i] = string(k)
  3223. i++
  3224. }
  3225. sort.Sort(stringSlice(v2))
  3226. if esep {
  3227. for _, k2 := range v2 {
  3228. ee.WriteMapElemKey()
  3229. ee.EncodeStringEnc(cUTF8, k2)
  3230. ee.WriteMapElemValue()
  3231. ee.EncodeUint(uint64(v[string(k2)]))
  3232. }
  3233. } else {
  3234. for _, k2 := range v2 {
  3235. ee.EncodeStringEnc(cUTF8, k2)
  3236. ee.EncodeUint(uint64(v[string(k2)]))
  3237. }
  3238. }
  3239. } else {
  3240. if esep {
  3241. for k2, v2 := range v {
  3242. ee.WriteMapElemKey()
  3243. ee.EncodeStringEnc(cUTF8, k2)
  3244. ee.WriteMapElemValue()
  3245. ee.EncodeUint(uint64(v2))
  3246. }
  3247. } else {
  3248. for k2, v2 := range v {
  3249. ee.EncodeStringEnc(cUTF8, k2)
  3250. ee.EncodeUint(uint64(v2))
  3251. }
  3252. }
  3253. }
  3254. ee.WriteMapEnd()
  3255. }
  3256. func (e *Encoder) fastpathEncMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  3257. fastpathTV.EncMapStringUint8V(rv2i(rv).(map[string]uint8), e)
  3258. }
  3259. func (_ fastpathT) EncMapStringUint8V(v map[string]uint8, e *Encoder) {
  3260. if v == nil {
  3261. e.e.EncodeNil()
  3262. return
  3263. }
  3264. ee, esep := e.e, e.hh.hasElemSeparators()
  3265. ee.WriteMapStart(len(v))
  3266. if e.h.Canonical {
  3267. v2 := make([]string, len(v))
  3268. var i uint
  3269. for k := range v {
  3270. v2[i] = string(k)
  3271. i++
  3272. }
  3273. sort.Sort(stringSlice(v2))
  3274. if esep {
  3275. for _, k2 := range v2 {
  3276. ee.WriteMapElemKey()
  3277. ee.EncodeStringEnc(cUTF8, k2)
  3278. ee.WriteMapElemValue()
  3279. ee.EncodeUint(uint64(v[string(k2)]))
  3280. }
  3281. } else {
  3282. for _, k2 := range v2 {
  3283. ee.EncodeStringEnc(cUTF8, k2)
  3284. ee.EncodeUint(uint64(v[string(k2)]))
  3285. }
  3286. }
  3287. } else {
  3288. if esep {
  3289. for k2, v2 := range v {
  3290. ee.WriteMapElemKey()
  3291. ee.EncodeStringEnc(cUTF8, k2)
  3292. ee.WriteMapElemValue()
  3293. ee.EncodeUint(uint64(v2))
  3294. }
  3295. } else {
  3296. for k2, v2 := range v {
  3297. ee.EncodeStringEnc(cUTF8, k2)
  3298. ee.EncodeUint(uint64(v2))
  3299. }
  3300. }
  3301. }
  3302. ee.WriteMapEnd()
  3303. }
  3304. func (e *Encoder) fastpathEncMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  3305. fastpathTV.EncMapStringUint16V(rv2i(rv).(map[string]uint16), e)
  3306. }
  3307. func (_ fastpathT) EncMapStringUint16V(v map[string]uint16, e *Encoder) {
  3308. if v == nil {
  3309. e.e.EncodeNil()
  3310. return
  3311. }
  3312. ee, esep := e.e, e.hh.hasElemSeparators()
  3313. ee.WriteMapStart(len(v))
  3314. if e.h.Canonical {
  3315. v2 := make([]string, len(v))
  3316. var i uint
  3317. for k := range v {
  3318. v2[i] = string(k)
  3319. i++
  3320. }
  3321. sort.Sort(stringSlice(v2))
  3322. if esep {
  3323. for _, k2 := range v2 {
  3324. ee.WriteMapElemKey()
  3325. ee.EncodeStringEnc(cUTF8, k2)
  3326. ee.WriteMapElemValue()
  3327. ee.EncodeUint(uint64(v[string(k2)]))
  3328. }
  3329. } else {
  3330. for _, k2 := range v2 {
  3331. ee.EncodeStringEnc(cUTF8, k2)
  3332. ee.EncodeUint(uint64(v[string(k2)]))
  3333. }
  3334. }
  3335. } else {
  3336. if esep {
  3337. for k2, v2 := range v {
  3338. ee.WriteMapElemKey()
  3339. ee.EncodeStringEnc(cUTF8, k2)
  3340. ee.WriteMapElemValue()
  3341. ee.EncodeUint(uint64(v2))
  3342. }
  3343. } else {
  3344. for k2, v2 := range v {
  3345. ee.EncodeStringEnc(cUTF8, k2)
  3346. ee.EncodeUint(uint64(v2))
  3347. }
  3348. }
  3349. }
  3350. ee.WriteMapEnd()
  3351. }
  3352. func (e *Encoder) fastpathEncMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  3353. fastpathTV.EncMapStringUint32V(rv2i(rv).(map[string]uint32), e)
  3354. }
  3355. func (_ fastpathT) EncMapStringUint32V(v map[string]uint32, e *Encoder) {
  3356. if v == nil {
  3357. e.e.EncodeNil()
  3358. return
  3359. }
  3360. ee, esep := e.e, e.hh.hasElemSeparators()
  3361. ee.WriteMapStart(len(v))
  3362. if e.h.Canonical {
  3363. v2 := make([]string, len(v))
  3364. var i uint
  3365. for k := range v {
  3366. v2[i] = string(k)
  3367. i++
  3368. }
  3369. sort.Sort(stringSlice(v2))
  3370. if esep {
  3371. for _, k2 := range v2 {
  3372. ee.WriteMapElemKey()
  3373. ee.EncodeStringEnc(cUTF8, k2)
  3374. ee.WriteMapElemValue()
  3375. ee.EncodeUint(uint64(v[string(k2)]))
  3376. }
  3377. } else {
  3378. for _, k2 := range v2 {
  3379. ee.EncodeStringEnc(cUTF8, k2)
  3380. ee.EncodeUint(uint64(v[string(k2)]))
  3381. }
  3382. }
  3383. } else {
  3384. if esep {
  3385. for k2, v2 := range v {
  3386. ee.WriteMapElemKey()
  3387. ee.EncodeStringEnc(cUTF8, k2)
  3388. ee.WriteMapElemValue()
  3389. ee.EncodeUint(uint64(v2))
  3390. }
  3391. } else {
  3392. for k2, v2 := range v {
  3393. ee.EncodeStringEnc(cUTF8, k2)
  3394. ee.EncodeUint(uint64(v2))
  3395. }
  3396. }
  3397. }
  3398. ee.WriteMapEnd()
  3399. }
  3400. func (e *Encoder) fastpathEncMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  3401. fastpathTV.EncMapStringUint64V(rv2i(rv).(map[string]uint64), e)
  3402. }
  3403. func (_ fastpathT) EncMapStringUint64V(v map[string]uint64, e *Encoder) {
  3404. if v == nil {
  3405. e.e.EncodeNil()
  3406. return
  3407. }
  3408. ee, esep := e.e, e.hh.hasElemSeparators()
  3409. ee.WriteMapStart(len(v))
  3410. if e.h.Canonical {
  3411. v2 := make([]string, len(v))
  3412. var i uint
  3413. for k := range v {
  3414. v2[i] = string(k)
  3415. i++
  3416. }
  3417. sort.Sort(stringSlice(v2))
  3418. if esep {
  3419. for _, k2 := range v2 {
  3420. ee.WriteMapElemKey()
  3421. ee.EncodeStringEnc(cUTF8, k2)
  3422. ee.WriteMapElemValue()
  3423. ee.EncodeUint(uint64(v[string(k2)]))
  3424. }
  3425. } else {
  3426. for _, k2 := range v2 {
  3427. ee.EncodeStringEnc(cUTF8, k2)
  3428. ee.EncodeUint(uint64(v[string(k2)]))
  3429. }
  3430. }
  3431. } else {
  3432. if esep {
  3433. for k2, v2 := range v {
  3434. ee.WriteMapElemKey()
  3435. ee.EncodeStringEnc(cUTF8, k2)
  3436. ee.WriteMapElemValue()
  3437. ee.EncodeUint(uint64(v2))
  3438. }
  3439. } else {
  3440. for k2, v2 := range v {
  3441. ee.EncodeStringEnc(cUTF8, k2)
  3442. ee.EncodeUint(uint64(v2))
  3443. }
  3444. }
  3445. }
  3446. ee.WriteMapEnd()
  3447. }
  3448. func (e *Encoder) fastpathEncMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  3449. fastpathTV.EncMapStringUintptrV(rv2i(rv).(map[string]uintptr), e)
  3450. }
  3451. func (_ fastpathT) EncMapStringUintptrV(v map[string]uintptr, e *Encoder) {
  3452. if v == nil {
  3453. e.e.EncodeNil()
  3454. return
  3455. }
  3456. ee, esep := e.e, e.hh.hasElemSeparators()
  3457. ee.WriteMapStart(len(v))
  3458. if e.h.Canonical {
  3459. v2 := make([]string, len(v))
  3460. var i uint
  3461. for k := range v {
  3462. v2[i] = string(k)
  3463. i++
  3464. }
  3465. sort.Sort(stringSlice(v2))
  3466. if esep {
  3467. for _, k2 := range v2 {
  3468. ee.WriteMapElemKey()
  3469. ee.EncodeStringEnc(cUTF8, k2)
  3470. ee.WriteMapElemValue()
  3471. e.encode(v[string(k2)])
  3472. }
  3473. } else {
  3474. for _, k2 := range v2 {
  3475. ee.EncodeStringEnc(cUTF8, k2)
  3476. e.encode(v[string(k2)])
  3477. }
  3478. }
  3479. } else {
  3480. if esep {
  3481. for k2, v2 := range v {
  3482. ee.WriteMapElemKey()
  3483. ee.EncodeStringEnc(cUTF8, k2)
  3484. ee.WriteMapElemValue()
  3485. e.encode(v2)
  3486. }
  3487. } else {
  3488. for k2, v2 := range v {
  3489. ee.EncodeStringEnc(cUTF8, k2)
  3490. e.encode(v2)
  3491. }
  3492. }
  3493. }
  3494. ee.WriteMapEnd()
  3495. }
  3496. func (e *Encoder) fastpathEncMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  3497. fastpathTV.EncMapStringIntV(rv2i(rv).(map[string]int), e)
  3498. }
  3499. func (_ fastpathT) EncMapStringIntV(v map[string]int, e *Encoder) {
  3500. if v == nil {
  3501. e.e.EncodeNil()
  3502. return
  3503. }
  3504. ee, esep := e.e, e.hh.hasElemSeparators()
  3505. ee.WriteMapStart(len(v))
  3506. if e.h.Canonical {
  3507. v2 := make([]string, len(v))
  3508. var i uint
  3509. for k := range v {
  3510. v2[i] = string(k)
  3511. i++
  3512. }
  3513. sort.Sort(stringSlice(v2))
  3514. if esep {
  3515. for _, k2 := range v2 {
  3516. ee.WriteMapElemKey()
  3517. ee.EncodeStringEnc(cUTF8, k2)
  3518. ee.WriteMapElemValue()
  3519. ee.EncodeInt(int64(v[string(k2)]))
  3520. }
  3521. } else {
  3522. for _, k2 := range v2 {
  3523. ee.EncodeStringEnc(cUTF8, k2)
  3524. ee.EncodeInt(int64(v[string(k2)]))
  3525. }
  3526. }
  3527. } else {
  3528. if esep {
  3529. for k2, v2 := range v {
  3530. ee.WriteMapElemKey()
  3531. ee.EncodeStringEnc(cUTF8, k2)
  3532. ee.WriteMapElemValue()
  3533. ee.EncodeInt(int64(v2))
  3534. }
  3535. } else {
  3536. for k2, v2 := range v {
  3537. ee.EncodeStringEnc(cUTF8, k2)
  3538. ee.EncodeInt(int64(v2))
  3539. }
  3540. }
  3541. }
  3542. ee.WriteMapEnd()
  3543. }
  3544. func (e *Encoder) fastpathEncMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  3545. fastpathTV.EncMapStringInt8V(rv2i(rv).(map[string]int8), e)
  3546. }
  3547. func (_ fastpathT) EncMapStringInt8V(v map[string]int8, e *Encoder) {
  3548. if v == nil {
  3549. e.e.EncodeNil()
  3550. return
  3551. }
  3552. ee, esep := e.e, e.hh.hasElemSeparators()
  3553. ee.WriteMapStart(len(v))
  3554. if e.h.Canonical {
  3555. v2 := make([]string, len(v))
  3556. var i uint
  3557. for k := range v {
  3558. v2[i] = string(k)
  3559. i++
  3560. }
  3561. sort.Sort(stringSlice(v2))
  3562. if esep {
  3563. for _, k2 := range v2 {
  3564. ee.WriteMapElemKey()
  3565. ee.EncodeStringEnc(cUTF8, k2)
  3566. ee.WriteMapElemValue()
  3567. ee.EncodeInt(int64(v[string(k2)]))
  3568. }
  3569. } else {
  3570. for _, k2 := range v2 {
  3571. ee.EncodeStringEnc(cUTF8, k2)
  3572. ee.EncodeInt(int64(v[string(k2)]))
  3573. }
  3574. }
  3575. } else {
  3576. if esep {
  3577. for k2, v2 := range v {
  3578. ee.WriteMapElemKey()
  3579. ee.EncodeStringEnc(cUTF8, k2)
  3580. ee.WriteMapElemValue()
  3581. ee.EncodeInt(int64(v2))
  3582. }
  3583. } else {
  3584. for k2, v2 := range v {
  3585. ee.EncodeStringEnc(cUTF8, k2)
  3586. ee.EncodeInt(int64(v2))
  3587. }
  3588. }
  3589. }
  3590. ee.WriteMapEnd()
  3591. }
  3592. func (e *Encoder) fastpathEncMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  3593. fastpathTV.EncMapStringInt16V(rv2i(rv).(map[string]int16), e)
  3594. }
  3595. func (_ fastpathT) EncMapStringInt16V(v map[string]int16, e *Encoder) {
  3596. if v == nil {
  3597. e.e.EncodeNil()
  3598. return
  3599. }
  3600. ee, esep := e.e, e.hh.hasElemSeparators()
  3601. ee.WriteMapStart(len(v))
  3602. if e.h.Canonical {
  3603. v2 := make([]string, len(v))
  3604. var i uint
  3605. for k := range v {
  3606. v2[i] = string(k)
  3607. i++
  3608. }
  3609. sort.Sort(stringSlice(v2))
  3610. if esep {
  3611. for _, k2 := range v2 {
  3612. ee.WriteMapElemKey()
  3613. ee.EncodeStringEnc(cUTF8, k2)
  3614. ee.WriteMapElemValue()
  3615. ee.EncodeInt(int64(v[string(k2)]))
  3616. }
  3617. } else {
  3618. for _, k2 := range v2 {
  3619. ee.EncodeStringEnc(cUTF8, k2)
  3620. ee.EncodeInt(int64(v[string(k2)]))
  3621. }
  3622. }
  3623. } else {
  3624. if esep {
  3625. for k2, v2 := range v {
  3626. ee.WriteMapElemKey()
  3627. ee.EncodeStringEnc(cUTF8, k2)
  3628. ee.WriteMapElemValue()
  3629. ee.EncodeInt(int64(v2))
  3630. }
  3631. } else {
  3632. for k2, v2 := range v {
  3633. ee.EncodeStringEnc(cUTF8, k2)
  3634. ee.EncodeInt(int64(v2))
  3635. }
  3636. }
  3637. }
  3638. ee.WriteMapEnd()
  3639. }
  3640. func (e *Encoder) fastpathEncMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  3641. fastpathTV.EncMapStringInt32V(rv2i(rv).(map[string]int32), e)
  3642. }
  3643. func (_ fastpathT) EncMapStringInt32V(v map[string]int32, e *Encoder) {
  3644. if v == nil {
  3645. e.e.EncodeNil()
  3646. return
  3647. }
  3648. ee, esep := e.e, e.hh.hasElemSeparators()
  3649. ee.WriteMapStart(len(v))
  3650. if e.h.Canonical {
  3651. v2 := make([]string, len(v))
  3652. var i uint
  3653. for k := range v {
  3654. v2[i] = string(k)
  3655. i++
  3656. }
  3657. sort.Sort(stringSlice(v2))
  3658. if esep {
  3659. for _, k2 := range v2 {
  3660. ee.WriteMapElemKey()
  3661. ee.EncodeStringEnc(cUTF8, k2)
  3662. ee.WriteMapElemValue()
  3663. ee.EncodeInt(int64(v[string(k2)]))
  3664. }
  3665. } else {
  3666. for _, k2 := range v2 {
  3667. ee.EncodeStringEnc(cUTF8, k2)
  3668. ee.EncodeInt(int64(v[string(k2)]))
  3669. }
  3670. }
  3671. } else {
  3672. if esep {
  3673. for k2, v2 := range v {
  3674. ee.WriteMapElemKey()
  3675. ee.EncodeStringEnc(cUTF8, k2)
  3676. ee.WriteMapElemValue()
  3677. ee.EncodeInt(int64(v2))
  3678. }
  3679. } else {
  3680. for k2, v2 := range v {
  3681. ee.EncodeStringEnc(cUTF8, k2)
  3682. ee.EncodeInt(int64(v2))
  3683. }
  3684. }
  3685. }
  3686. ee.WriteMapEnd()
  3687. }
  3688. func (e *Encoder) fastpathEncMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  3689. fastpathTV.EncMapStringInt64V(rv2i(rv).(map[string]int64), e)
  3690. }
  3691. func (_ fastpathT) EncMapStringInt64V(v map[string]int64, e *Encoder) {
  3692. if v == nil {
  3693. e.e.EncodeNil()
  3694. return
  3695. }
  3696. ee, esep := e.e, e.hh.hasElemSeparators()
  3697. ee.WriteMapStart(len(v))
  3698. if e.h.Canonical {
  3699. v2 := make([]string, len(v))
  3700. var i uint
  3701. for k := range v {
  3702. v2[i] = string(k)
  3703. i++
  3704. }
  3705. sort.Sort(stringSlice(v2))
  3706. if esep {
  3707. for _, k2 := range v2 {
  3708. ee.WriteMapElemKey()
  3709. ee.EncodeStringEnc(cUTF8, k2)
  3710. ee.WriteMapElemValue()
  3711. ee.EncodeInt(int64(v[string(k2)]))
  3712. }
  3713. } else {
  3714. for _, k2 := range v2 {
  3715. ee.EncodeStringEnc(cUTF8, k2)
  3716. ee.EncodeInt(int64(v[string(k2)]))
  3717. }
  3718. }
  3719. } else {
  3720. if esep {
  3721. for k2, v2 := range v {
  3722. ee.WriteMapElemKey()
  3723. ee.EncodeStringEnc(cUTF8, k2)
  3724. ee.WriteMapElemValue()
  3725. ee.EncodeInt(int64(v2))
  3726. }
  3727. } else {
  3728. for k2, v2 := range v {
  3729. ee.EncodeStringEnc(cUTF8, k2)
  3730. ee.EncodeInt(int64(v2))
  3731. }
  3732. }
  3733. }
  3734. ee.WriteMapEnd()
  3735. }
  3736. func (e *Encoder) fastpathEncMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  3737. fastpathTV.EncMapStringFloat32V(rv2i(rv).(map[string]float32), e)
  3738. }
  3739. func (_ fastpathT) EncMapStringFloat32V(v map[string]float32, e *Encoder) {
  3740. if v == nil {
  3741. e.e.EncodeNil()
  3742. return
  3743. }
  3744. ee, esep := e.e, e.hh.hasElemSeparators()
  3745. ee.WriteMapStart(len(v))
  3746. if e.h.Canonical {
  3747. v2 := make([]string, len(v))
  3748. var i uint
  3749. for k := range v {
  3750. v2[i] = string(k)
  3751. i++
  3752. }
  3753. sort.Sort(stringSlice(v2))
  3754. if esep {
  3755. for _, k2 := range v2 {
  3756. ee.WriteMapElemKey()
  3757. ee.EncodeStringEnc(cUTF8, k2)
  3758. ee.WriteMapElemValue()
  3759. ee.EncodeFloat32(v[string(k2)])
  3760. }
  3761. } else {
  3762. for _, k2 := range v2 {
  3763. ee.EncodeStringEnc(cUTF8, k2)
  3764. ee.EncodeFloat32(v[string(k2)])
  3765. }
  3766. }
  3767. } else {
  3768. if esep {
  3769. for k2, v2 := range v {
  3770. ee.WriteMapElemKey()
  3771. ee.EncodeStringEnc(cUTF8, k2)
  3772. ee.WriteMapElemValue()
  3773. ee.EncodeFloat32(v2)
  3774. }
  3775. } else {
  3776. for k2, v2 := range v {
  3777. ee.EncodeStringEnc(cUTF8, k2)
  3778. ee.EncodeFloat32(v2)
  3779. }
  3780. }
  3781. }
  3782. ee.WriteMapEnd()
  3783. }
  3784. func (e *Encoder) fastpathEncMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  3785. fastpathTV.EncMapStringFloat64V(rv2i(rv).(map[string]float64), e)
  3786. }
  3787. func (_ fastpathT) EncMapStringFloat64V(v map[string]float64, e *Encoder) {
  3788. if v == nil {
  3789. e.e.EncodeNil()
  3790. return
  3791. }
  3792. ee, esep := e.e, e.hh.hasElemSeparators()
  3793. ee.WriteMapStart(len(v))
  3794. if e.h.Canonical {
  3795. v2 := make([]string, len(v))
  3796. var i uint
  3797. for k := range v {
  3798. v2[i] = string(k)
  3799. i++
  3800. }
  3801. sort.Sort(stringSlice(v2))
  3802. if esep {
  3803. for _, k2 := range v2 {
  3804. ee.WriteMapElemKey()
  3805. ee.EncodeStringEnc(cUTF8, k2)
  3806. ee.WriteMapElemValue()
  3807. ee.EncodeFloat64(v[string(k2)])
  3808. }
  3809. } else {
  3810. for _, k2 := range v2 {
  3811. ee.EncodeStringEnc(cUTF8, k2)
  3812. ee.EncodeFloat64(v[string(k2)])
  3813. }
  3814. }
  3815. } else {
  3816. if esep {
  3817. for k2, v2 := range v {
  3818. ee.WriteMapElemKey()
  3819. ee.EncodeStringEnc(cUTF8, k2)
  3820. ee.WriteMapElemValue()
  3821. ee.EncodeFloat64(v2)
  3822. }
  3823. } else {
  3824. for k2, v2 := range v {
  3825. ee.EncodeStringEnc(cUTF8, k2)
  3826. ee.EncodeFloat64(v2)
  3827. }
  3828. }
  3829. }
  3830. ee.WriteMapEnd()
  3831. }
  3832. func (e *Encoder) fastpathEncMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  3833. fastpathTV.EncMapStringBoolV(rv2i(rv).(map[string]bool), e)
  3834. }
  3835. func (_ fastpathT) EncMapStringBoolV(v map[string]bool, e *Encoder) {
  3836. if v == nil {
  3837. e.e.EncodeNil()
  3838. return
  3839. }
  3840. ee, esep := e.e, e.hh.hasElemSeparators()
  3841. ee.WriteMapStart(len(v))
  3842. if e.h.Canonical {
  3843. v2 := make([]string, len(v))
  3844. var i uint
  3845. for k := range v {
  3846. v2[i] = string(k)
  3847. i++
  3848. }
  3849. sort.Sort(stringSlice(v2))
  3850. if esep {
  3851. for _, k2 := range v2 {
  3852. ee.WriteMapElemKey()
  3853. ee.EncodeStringEnc(cUTF8, k2)
  3854. ee.WriteMapElemValue()
  3855. ee.EncodeBool(v[string(k2)])
  3856. }
  3857. } else {
  3858. for _, k2 := range v2 {
  3859. ee.EncodeStringEnc(cUTF8, k2)
  3860. ee.EncodeBool(v[string(k2)])
  3861. }
  3862. }
  3863. } else {
  3864. if esep {
  3865. for k2, v2 := range v {
  3866. ee.WriteMapElemKey()
  3867. ee.EncodeStringEnc(cUTF8, k2)
  3868. ee.WriteMapElemValue()
  3869. ee.EncodeBool(v2)
  3870. }
  3871. } else {
  3872. for k2, v2 := range v {
  3873. ee.EncodeStringEnc(cUTF8, k2)
  3874. ee.EncodeBool(v2)
  3875. }
  3876. }
  3877. }
  3878. ee.WriteMapEnd()
  3879. }
  3880. func (e *Encoder) fastpathEncMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  3881. fastpathTV.EncMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), e)
  3882. }
  3883. func (_ fastpathT) EncMapFloat32IntfV(v map[float32]interface{}, e *Encoder) {
  3884. if v == nil {
  3885. e.e.EncodeNil()
  3886. return
  3887. }
  3888. ee, esep := e.e, e.hh.hasElemSeparators()
  3889. ee.WriteMapStart(len(v))
  3890. if e.h.Canonical {
  3891. v2 := make([]float64, len(v))
  3892. var i uint
  3893. for k := range v {
  3894. v2[i] = float64(k)
  3895. i++
  3896. }
  3897. sort.Sort(floatSlice(v2))
  3898. if esep {
  3899. for _, k2 := range v2 {
  3900. ee.WriteMapElemKey()
  3901. ee.EncodeFloat32(float32(k2))
  3902. ee.WriteMapElemValue()
  3903. e.encode(v[float32(k2)])
  3904. }
  3905. } else {
  3906. for _, k2 := range v2 {
  3907. ee.EncodeFloat32(float32(k2))
  3908. e.encode(v[float32(k2)])
  3909. }
  3910. }
  3911. } else {
  3912. if esep {
  3913. for k2, v2 := range v {
  3914. ee.WriteMapElemKey()
  3915. ee.EncodeFloat32(k2)
  3916. ee.WriteMapElemValue()
  3917. e.encode(v2)
  3918. }
  3919. } else {
  3920. for k2, v2 := range v {
  3921. ee.EncodeFloat32(k2)
  3922. e.encode(v2)
  3923. }
  3924. }
  3925. }
  3926. ee.WriteMapEnd()
  3927. }
  3928. func (e *Encoder) fastpathEncMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  3929. fastpathTV.EncMapFloat32StringV(rv2i(rv).(map[float32]string), e)
  3930. }
  3931. func (_ fastpathT) EncMapFloat32StringV(v map[float32]string, e *Encoder) {
  3932. if v == nil {
  3933. e.e.EncodeNil()
  3934. return
  3935. }
  3936. ee, esep := e.e, e.hh.hasElemSeparators()
  3937. ee.WriteMapStart(len(v))
  3938. if e.h.Canonical {
  3939. v2 := make([]float64, len(v))
  3940. var i uint
  3941. for k := range v {
  3942. v2[i] = float64(k)
  3943. i++
  3944. }
  3945. sort.Sort(floatSlice(v2))
  3946. if esep {
  3947. for _, k2 := range v2 {
  3948. ee.WriteMapElemKey()
  3949. ee.EncodeFloat32(float32(k2))
  3950. ee.WriteMapElemValue()
  3951. ee.EncodeStringEnc(cUTF8, v[float32(k2)])
  3952. }
  3953. } else {
  3954. for _, k2 := range v2 {
  3955. ee.EncodeFloat32(float32(k2))
  3956. ee.EncodeStringEnc(cUTF8, v[float32(k2)])
  3957. }
  3958. }
  3959. } else {
  3960. if esep {
  3961. for k2, v2 := range v {
  3962. ee.WriteMapElemKey()
  3963. ee.EncodeFloat32(k2)
  3964. ee.WriteMapElemValue()
  3965. ee.EncodeStringEnc(cUTF8, v2)
  3966. }
  3967. } else {
  3968. for k2, v2 := range v {
  3969. ee.EncodeFloat32(k2)
  3970. ee.EncodeStringEnc(cUTF8, v2)
  3971. }
  3972. }
  3973. }
  3974. ee.WriteMapEnd()
  3975. }
  3976. func (e *Encoder) fastpathEncMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  3977. fastpathTV.EncMapFloat32UintV(rv2i(rv).(map[float32]uint), e)
  3978. }
  3979. func (_ fastpathT) EncMapFloat32UintV(v map[float32]uint, e *Encoder) {
  3980. if v == nil {
  3981. e.e.EncodeNil()
  3982. return
  3983. }
  3984. ee, esep := e.e, e.hh.hasElemSeparators()
  3985. ee.WriteMapStart(len(v))
  3986. if e.h.Canonical {
  3987. v2 := make([]float64, len(v))
  3988. var i uint
  3989. for k := range v {
  3990. v2[i] = float64(k)
  3991. i++
  3992. }
  3993. sort.Sort(floatSlice(v2))
  3994. if esep {
  3995. for _, k2 := range v2 {
  3996. ee.WriteMapElemKey()
  3997. ee.EncodeFloat32(float32(k2))
  3998. ee.WriteMapElemValue()
  3999. ee.EncodeUint(uint64(v[float32(k2)]))
  4000. }
  4001. } else {
  4002. for _, k2 := range v2 {
  4003. ee.EncodeFloat32(float32(k2))
  4004. ee.EncodeUint(uint64(v[float32(k2)]))
  4005. }
  4006. }
  4007. } else {
  4008. if esep {
  4009. for k2, v2 := range v {
  4010. ee.WriteMapElemKey()
  4011. ee.EncodeFloat32(k2)
  4012. ee.WriteMapElemValue()
  4013. ee.EncodeUint(uint64(v2))
  4014. }
  4015. } else {
  4016. for k2, v2 := range v {
  4017. ee.EncodeFloat32(k2)
  4018. ee.EncodeUint(uint64(v2))
  4019. }
  4020. }
  4021. }
  4022. ee.WriteMapEnd()
  4023. }
  4024. func (e *Encoder) fastpathEncMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  4025. fastpathTV.EncMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), e)
  4026. }
  4027. func (_ fastpathT) EncMapFloat32Uint8V(v map[float32]uint8, e *Encoder) {
  4028. if v == nil {
  4029. e.e.EncodeNil()
  4030. return
  4031. }
  4032. ee, esep := e.e, e.hh.hasElemSeparators()
  4033. ee.WriteMapStart(len(v))
  4034. if e.h.Canonical {
  4035. v2 := make([]float64, len(v))
  4036. var i uint
  4037. for k := range v {
  4038. v2[i] = float64(k)
  4039. i++
  4040. }
  4041. sort.Sort(floatSlice(v2))
  4042. if esep {
  4043. for _, k2 := range v2 {
  4044. ee.WriteMapElemKey()
  4045. ee.EncodeFloat32(float32(k2))
  4046. ee.WriteMapElemValue()
  4047. ee.EncodeUint(uint64(v[float32(k2)]))
  4048. }
  4049. } else {
  4050. for _, k2 := range v2 {
  4051. ee.EncodeFloat32(float32(k2))
  4052. ee.EncodeUint(uint64(v[float32(k2)]))
  4053. }
  4054. }
  4055. } else {
  4056. if esep {
  4057. for k2, v2 := range v {
  4058. ee.WriteMapElemKey()
  4059. ee.EncodeFloat32(k2)
  4060. ee.WriteMapElemValue()
  4061. ee.EncodeUint(uint64(v2))
  4062. }
  4063. } else {
  4064. for k2, v2 := range v {
  4065. ee.EncodeFloat32(k2)
  4066. ee.EncodeUint(uint64(v2))
  4067. }
  4068. }
  4069. }
  4070. ee.WriteMapEnd()
  4071. }
  4072. func (e *Encoder) fastpathEncMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  4073. fastpathTV.EncMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), e)
  4074. }
  4075. func (_ fastpathT) EncMapFloat32Uint16V(v map[float32]uint16, e *Encoder) {
  4076. if v == nil {
  4077. e.e.EncodeNil()
  4078. return
  4079. }
  4080. ee, esep := e.e, e.hh.hasElemSeparators()
  4081. ee.WriteMapStart(len(v))
  4082. if e.h.Canonical {
  4083. v2 := make([]float64, len(v))
  4084. var i uint
  4085. for k := range v {
  4086. v2[i] = float64(k)
  4087. i++
  4088. }
  4089. sort.Sort(floatSlice(v2))
  4090. if esep {
  4091. for _, k2 := range v2 {
  4092. ee.WriteMapElemKey()
  4093. ee.EncodeFloat32(float32(k2))
  4094. ee.WriteMapElemValue()
  4095. ee.EncodeUint(uint64(v[float32(k2)]))
  4096. }
  4097. } else {
  4098. for _, k2 := range v2 {
  4099. ee.EncodeFloat32(float32(k2))
  4100. ee.EncodeUint(uint64(v[float32(k2)]))
  4101. }
  4102. }
  4103. } else {
  4104. if esep {
  4105. for k2, v2 := range v {
  4106. ee.WriteMapElemKey()
  4107. ee.EncodeFloat32(k2)
  4108. ee.WriteMapElemValue()
  4109. ee.EncodeUint(uint64(v2))
  4110. }
  4111. } else {
  4112. for k2, v2 := range v {
  4113. ee.EncodeFloat32(k2)
  4114. ee.EncodeUint(uint64(v2))
  4115. }
  4116. }
  4117. }
  4118. ee.WriteMapEnd()
  4119. }
  4120. func (e *Encoder) fastpathEncMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  4121. fastpathTV.EncMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), e)
  4122. }
  4123. func (_ fastpathT) EncMapFloat32Uint32V(v map[float32]uint32, e *Encoder) {
  4124. if v == nil {
  4125. e.e.EncodeNil()
  4126. return
  4127. }
  4128. ee, esep := e.e, e.hh.hasElemSeparators()
  4129. ee.WriteMapStart(len(v))
  4130. if e.h.Canonical {
  4131. v2 := make([]float64, len(v))
  4132. var i uint
  4133. for k := range v {
  4134. v2[i] = float64(k)
  4135. i++
  4136. }
  4137. sort.Sort(floatSlice(v2))
  4138. if esep {
  4139. for _, k2 := range v2 {
  4140. ee.WriteMapElemKey()
  4141. ee.EncodeFloat32(float32(k2))
  4142. ee.WriteMapElemValue()
  4143. ee.EncodeUint(uint64(v[float32(k2)]))
  4144. }
  4145. } else {
  4146. for _, k2 := range v2 {
  4147. ee.EncodeFloat32(float32(k2))
  4148. ee.EncodeUint(uint64(v[float32(k2)]))
  4149. }
  4150. }
  4151. } else {
  4152. if esep {
  4153. for k2, v2 := range v {
  4154. ee.WriteMapElemKey()
  4155. ee.EncodeFloat32(k2)
  4156. ee.WriteMapElemValue()
  4157. ee.EncodeUint(uint64(v2))
  4158. }
  4159. } else {
  4160. for k2, v2 := range v {
  4161. ee.EncodeFloat32(k2)
  4162. ee.EncodeUint(uint64(v2))
  4163. }
  4164. }
  4165. }
  4166. ee.WriteMapEnd()
  4167. }
  4168. func (e *Encoder) fastpathEncMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  4169. fastpathTV.EncMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), e)
  4170. }
  4171. func (_ fastpathT) EncMapFloat32Uint64V(v map[float32]uint64, e *Encoder) {
  4172. if v == nil {
  4173. e.e.EncodeNil()
  4174. return
  4175. }
  4176. ee, esep := e.e, e.hh.hasElemSeparators()
  4177. ee.WriteMapStart(len(v))
  4178. if e.h.Canonical {
  4179. v2 := make([]float64, len(v))
  4180. var i uint
  4181. for k := range v {
  4182. v2[i] = float64(k)
  4183. i++
  4184. }
  4185. sort.Sort(floatSlice(v2))
  4186. if esep {
  4187. for _, k2 := range v2 {
  4188. ee.WriteMapElemKey()
  4189. ee.EncodeFloat32(float32(k2))
  4190. ee.WriteMapElemValue()
  4191. ee.EncodeUint(uint64(v[float32(k2)]))
  4192. }
  4193. } else {
  4194. for _, k2 := range v2 {
  4195. ee.EncodeFloat32(float32(k2))
  4196. ee.EncodeUint(uint64(v[float32(k2)]))
  4197. }
  4198. }
  4199. } else {
  4200. if esep {
  4201. for k2, v2 := range v {
  4202. ee.WriteMapElemKey()
  4203. ee.EncodeFloat32(k2)
  4204. ee.WriteMapElemValue()
  4205. ee.EncodeUint(uint64(v2))
  4206. }
  4207. } else {
  4208. for k2, v2 := range v {
  4209. ee.EncodeFloat32(k2)
  4210. ee.EncodeUint(uint64(v2))
  4211. }
  4212. }
  4213. }
  4214. ee.WriteMapEnd()
  4215. }
  4216. func (e *Encoder) fastpathEncMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  4217. fastpathTV.EncMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), e)
  4218. }
  4219. func (_ fastpathT) EncMapFloat32UintptrV(v map[float32]uintptr, e *Encoder) {
  4220. if v == nil {
  4221. e.e.EncodeNil()
  4222. return
  4223. }
  4224. ee, esep := e.e, e.hh.hasElemSeparators()
  4225. ee.WriteMapStart(len(v))
  4226. if e.h.Canonical {
  4227. v2 := make([]float64, len(v))
  4228. var i uint
  4229. for k := range v {
  4230. v2[i] = float64(k)
  4231. i++
  4232. }
  4233. sort.Sort(floatSlice(v2))
  4234. if esep {
  4235. for _, k2 := range v2 {
  4236. ee.WriteMapElemKey()
  4237. ee.EncodeFloat32(float32(k2))
  4238. ee.WriteMapElemValue()
  4239. e.encode(v[float32(k2)])
  4240. }
  4241. } else {
  4242. for _, k2 := range v2 {
  4243. ee.EncodeFloat32(float32(k2))
  4244. e.encode(v[float32(k2)])
  4245. }
  4246. }
  4247. } else {
  4248. if esep {
  4249. for k2, v2 := range v {
  4250. ee.WriteMapElemKey()
  4251. ee.EncodeFloat32(k2)
  4252. ee.WriteMapElemValue()
  4253. e.encode(v2)
  4254. }
  4255. } else {
  4256. for k2, v2 := range v {
  4257. ee.EncodeFloat32(k2)
  4258. e.encode(v2)
  4259. }
  4260. }
  4261. }
  4262. ee.WriteMapEnd()
  4263. }
  4264. func (e *Encoder) fastpathEncMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  4265. fastpathTV.EncMapFloat32IntV(rv2i(rv).(map[float32]int), e)
  4266. }
  4267. func (_ fastpathT) EncMapFloat32IntV(v map[float32]int, e *Encoder) {
  4268. if v == nil {
  4269. e.e.EncodeNil()
  4270. return
  4271. }
  4272. ee, esep := e.e, e.hh.hasElemSeparators()
  4273. ee.WriteMapStart(len(v))
  4274. if e.h.Canonical {
  4275. v2 := make([]float64, len(v))
  4276. var i uint
  4277. for k := range v {
  4278. v2[i] = float64(k)
  4279. i++
  4280. }
  4281. sort.Sort(floatSlice(v2))
  4282. if esep {
  4283. for _, k2 := range v2 {
  4284. ee.WriteMapElemKey()
  4285. ee.EncodeFloat32(float32(k2))
  4286. ee.WriteMapElemValue()
  4287. ee.EncodeInt(int64(v[float32(k2)]))
  4288. }
  4289. } else {
  4290. for _, k2 := range v2 {
  4291. ee.EncodeFloat32(float32(k2))
  4292. ee.EncodeInt(int64(v[float32(k2)]))
  4293. }
  4294. }
  4295. } else {
  4296. if esep {
  4297. for k2, v2 := range v {
  4298. ee.WriteMapElemKey()
  4299. ee.EncodeFloat32(k2)
  4300. ee.WriteMapElemValue()
  4301. ee.EncodeInt(int64(v2))
  4302. }
  4303. } else {
  4304. for k2, v2 := range v {
  4305. ee.EncodeFloat32(k2)
  4306. ee.EncodeInt(int64(v2))
  4307. }
  4308. }
  4309. }
  4310. ee.WriteMapEnd()
  4311. }
  4312. func (e *Encoder) fastpathEncMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  4313. fastpathTV.EncMapFloat32Int8V(rv2i(rv).(map[float32]int8), e)
  4314. }
  4315. func (_ fastpathT) EncMapFloat32Int8V(v map[float32]int8, e *Encoder) {
  4316. if v == nil {
  4317. e.e.EncodeNil()
  4318. return
  4319. }
  4320. ee, esep := e.e, e.hh.hasElemSeparators()
  4321. ee.WriteMapStart(len(v))
  4322. if e.h.Canonical {
  4323. v2 := make([]float64, len(v))
  4324. var i uint
  4325. for k := range v {
  4326. v2[i] = float64(k)
  4327. i++
  4328. }
  4329. sort.Sort(floatSlice(v2))
  4330. if esep {
  4331. for _, k2 := range v2 {
  4332. ee.WriteMapElemKey()
  4333. ee.EncodeFloat32(float32(k2))
  4334. ee.WriteMapElemValue()
  4335. ee.EncodeInt(int64(v[float32(k2)]))
  4336. }
  4337. } else {
  4338. for _, k2 := range v2 {
  4339. ee.EncodeFloat32(float32(k2))
  4340. ee.EncodeInt(int64(v[float32(k2)]))
  4341. }
  4342. }
  4343. } else {
  4344. if esep {
  4345. for k2, v2 := range v {
  4346. ee.WriteMapElemKey()
  4347. ee.EncodeFloat32(k2)
  4348. ee.WriteMapElemValue()
  4349. ee.EncodeInt(int64(v2))
  4350. }
  4351. } else {
  4352. for k2, v2 := range v {
  4353. ee.EncodeFloat32(k2)
  4354. ee.EncodeInt(int64(v2))
  4355. }
  4356. }
  4357. }
  4358. ee.WriteMapEnd()
  4359. }
  4360. func (e *Encoder) fastpathEncMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  4361. fastpathTV.EncMapFloat32Int16V(rv2i(rv).(map[float32]int16), e)
  4362. }
  4363. func (_ fastpathT) EncMapFloat32Int16V(v map[float32]int16, e *Encoder) {
  4364. if v == nil {
  4365. e.e.EncodeNil()
  4366. return
  4367. }
  4368. ee, esep := e.e, e.hh.hasElemSeparators()
  4369. ee.WriteMapStart(len(v))
  4370. if e.h.Canonical {
  4371. v2 := make([]float64, len(v))
  4372. var i uint
  4373. for k := range v {
  4374. v2[i] = float64(k)
  4375. i++
  4376. }
  4377. sort.Sort(floatSlice(v2))
  4378. if esep {
  4379. for _, k2 := range v2 {
  4380. ee.WriteMapElemKey()
  4381. ee.EncodeFloat32(float32(k2))
  4382. ee.WriteMapElemValue()
  4383. ee.EncodeInt(int64(v[float32(k2)]))
  4384. }
  4385. } else {
  4386. for _, k2 := range v2 {
  4387. ee.EncodeFloat32(float32(k2))
  4388. ee.EncodeInt(int64(v[float32(k2)]))
  4389. }
  4390. }
  4391. } else {
  4392. if esep {
  4393. for k2, v2 := range v {
  4394. ee.WriteMapElemKey()
  4395. ee.EncodeFloat32(k2)
  4396. ee.WriteMapElemValue()
  4397. ee.EncodeInt(int64(v2))
  4398. }
  4399. } else {
  4400. for k2, v2 := range v {
  4401. ee.EncodeFloat32(k2)
  4402. ee.EncodeInt(int64(v2))
  4403. }
  4404. }
  4405. }
  4406. ee.WriteMapEnd()
  4407. }
  4408. func (e *Encoder) fastpathEncMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  4409. fastpathTV.EncMapFloat32Int32V(rv2i(rv).(map[float32]int32), e)
  4410. }
  4411. func (_ fastpathT) EncMapFloat32Int32V(v map[float32]int32, e *Encoder) {
  4412. if v == nil {
  4413. e.e.EncodeNil()
  4414. return
  4415. }
  4416. ee, esep := e.e, e.hh.hasElemSeparators()
  4417. ee.WriteMapStart(len(v))
  4418. if e.h.Canonical {
  4419. v2 := make([]float64, len(v))
  4420. var i uint
  4421. for k := range v {
  4422. v2[i] = float64(k)
  4423. i++
  4424. }
  4425. sort.Sort(floatSlice(v2))
  4426. if esep {
  4427. for _, k2 := range v2 {
  4428. ee.WriteMapElemKey()
  4429. ee.EncodeFloat32(float32(k2))
  4430. ee.WriteMapElemValue()
  4431. ee.EncodeInt(int64(v[float32(k2)]))
  4432. }
  4433. } else {
  4434. for _, k2 := range v2 {
  4435. ee.EncodeFloat32(float32(k2))
  4436. ee.EncodeInt(int64(v[float32(k2)]))
  4437. }
  4438. }
  4439. } else {
  4440. if esep {
  4441. for k2, v2 := range v {
  4442. ee.WriteMapElemKey()
  4443. ee.EncodeFloat32(k2)
  4444. ee.WriteMapElemValue()
  4445. ee.EncodeInt(int64(v2))
  4446. }
  4447. } else {
  4448. for k2, v2 := range v {
  4449. ee.EncodeFloat32(k2)
  4450. ee.EncodeInt(int64(v2))
  4451. }
  4452. }
  4453. }
  4454. ee.WriteMapEnd()
  4455. }
  4456. func (e *Encoder) fastpathEncMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  4457. fastpathTV.EncMapFloat32Int64V(rv2i(rv).(map[float32]int64), e)
  4458. }
  4459. func (_ fastpathT) EncMapFloat32Int64V(v map[float32]int64, e *Encoder) {
  4460. if v == nil {
  4461. e.e.EncodeNil()
  4462. return
  4463. }
  4464. ee, esep := e.e, e.hh.hasElemSeparators()
  4465. ee.WriteMapStart(len(v))
  4466. if e.h.Canonical {
  4467. v2 := make([]float64, len(v))
  4468. var i uint
  4469. for k := range v {
  4470. v2[i] = float64(k)
  4471. i++
  4472. }
  4473. sort.Sort(floatSlice(v2))
  4474. if esep {
  4475. for _, k2 := range v2 {
  4476. ee.WriteMapElemKey()
  4477. ee.EncodeFloat32(float32(k2))
  4478. ee.WriteMapElemValue()
  4479. ee.EncodeInt(int64(v[float32(k2)]))
  4480. }
  4481. } else {
  4482. for _, k2 := range v2 {
  4483. ee.EncodeFloat32(float32(k2))
  4484. ee.EncodeInt(int64(v[float32(k2)]))
  4485. }
  4486. }
  4487. } else {
  4488. if esep {
  4489. for k2, v2 := range v {
  4490. ee.WriteMapElemKey()
  4491. ee.EncodeFloat32(k2)
  4492. ee.WriteMapElemValue()
  4493. ee.EncodeInt(int64(v2))
  4494. }
  4495. } else {
  4496. for k2, v2 := range v {
  4497. ee.EncodeFloat32(k2)
  4498. ee.EncodeInt(int64(v2))
  4499. }
  4500. }
  4501. }
  4502. ee.WriteMapEnd()
  4503. }
  4504. func (e *Encoder) fastpathEncMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  4505. fastpathTV.EncMapFloat32Float32V(rv2i(rv).(map[float32]float32), e)
  4506. }
  4507. func (_ fastpathT) EncMapFloat32Float32V(v map[float32]float32, e *Encoder) {
  4508. if v == nil {
  4509. e.e.EncodeNil()
  4510. return
  4511. }
  4512. ee, esep := e.e, e.hh.hasElemSeparators()
  4513. ee.WriteMapStart(len(v))
  4514. if e.h.Canonical {
  4515. v2 := make([]float64, len(v))
  4516. var i uint
  4517. for k := range v {
  4518. v2[i] = float64(k)
  4519. i++
  4520. }
  4521. sort.Sort(floatSlice(v2))
  4522. if esep {
  4523. for _, k2 := range v2 {
  4524. ee.WriteMapElemKey()
  4525. ee.EncodeFloat32(float32(k2))
  4526. ee.WriteMapElemValue()
  4527. ee.EncodeFloat32(v[float32(k2)])
  4528. }
  4529. } else {
  4530. for _, k2 := range v2 {
  4531. ee.EncodeFloat32(float32(k2))
  4532. ee.EncodeFloat32(v[float32(k2)])
  4533. }
  4534. }
  4535. } else {
  4536. if esep {
  4537. for k2, v2 := range v {
  4538. ee.WriteMapElemKey()
  4539. ee.EncodeFloat32(k2)
  4540. ee.WriteMapElemValue()
  4541. ee.EncodeFloat32(v2)
  4542. }
  4543. } else {
  4544. for k2, v2 := range v {
  4545. ee.EncodeFloat32(k2)
  4546. ee.EncodeFloat32(v2)
  4547. }
  4548. }
  4549. }
  4550. ee.WriteMapEnd()
  4551. }
  4552. func (e *Encoder) fastpathEncMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  4553. fastpathTV.EncMapFloat32Float64V(rv2i(rv).(map[float32]float64), e)
  4554. }
  4555. func (_ fastpathT) EncMapFloat32Float64V(v map[float32]float64, e *Encoder) {
  4556. if v == nil {
  4557. e.e.EncodeNil()
  4558. return
  4559. }
  4560. ee, esep := e.e, e.hh.hasElemSeparators()
  4561. ee.WriteMapStart(len(v))
  4562. if e.h.Canonical {
  4563. v2 := make([]float64, len(v))
  4564. var i uint
  4565. for k := range v {
  4566. v2[i] = float64(k)
  4567. i++
  4568. }
  4569. sort.Sort(floatSlice(v2))
  4570. if esep {
  4571. for _, k2 := range v2 {
  4572. ee.WriteMapElemKey()
  4573. ee.EncodeFloat32(float32(k2))
  4574. ee.WriteMapElemValue()
  4575. ee.EncodeFloat64(v[float32(k2)])
  4576. }
  4577. } else {
  4578. for _, k2 := range v2 {
  4579. ee.EncodeFloat32(float32(k2))
  4580. ee.EncodeFloat64(v[float32(k2)])
  4581. }
  4582. }
  4583. } else {
  4584. if esep {
  4585. for k2, v2 := range v {
  4586. ee.WriteMapElemKey()
  4587. ee.EncodeFloat32(k2)
  4588. ee.WriteMapElemValue()
  4589. ee.EncodeFloat64(v2)
  4590. }
  4591. } else {
  4592. for k2, v2 := range v {
  4593. ee.EncodeFloat32(k2)
  4594. ee.EncodeFloat64(v2)
  4595. }
  4596. }
  4597. }
  4598. ee.WriteMapEnd()
  4599. }
  4600. func (e *Encoder) fastpathEncMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  4601. fastpathTV.EncMapFloat32BoolV(rv2i(rv).(map[float32]bool), e)
  4602. }
  4603. func (_ fastpathT) EncMapFloat32BoolV(v map[float32]bool, e *Encoder) {
  4604. if v == nil {
  4605. e.e.EncodeNil()
  4606. return
  4607. }
  4608. ee, esep := e.e, e.hh.hasElemSeparators()
  4609. ee.WriteMapStart(len(v))
  4610. if e.h.Canonical {
  4611. v2 := make([]float64, len(v))
  4612. var i uint
  4613. for k := range v {
  4614. v2[i] = float64(k)
  4615. i++
  4616. }
  4617. sort.Sort(floatSlice(v2))
  4618. if esep {
  4619. for _, k2 := range v2 {
  4620. ee.WriteMapElemKey()
  4621. ee.EncodeFloat32(float32(k2))
  4622. ee.WriteMapElemValue()
  4623. ee.EncodeBool(v[float32(k2)])
  4624. }
  4625. } else {
  4626. for _, k2 := range v2 {
  4627. ee.EncodeFloat32(float32(k2))
  4628. ee.EncodeBool(v[float32(k2)])
  4629. }
  4630. }
  4631. } else {
  4632. if esep {
  4633. for k2, v2 := range v {
  4634. ee.WriteMapElemKey()
  4635. ee.EncodeFloat32(k2)
  4636. ee.WriteMapElemValue()
  4637. ee.EncodeBool(v2)
  4638. }
  4639. } else {
  4640. for k2, v2 := range v {
  4641. ee.EncodeFloat32(k2)
  4642. ee.EncodeBool(v2)
  4643. }
  4644. }
  4645. }
  4646. ee.WriteMapEnd()
  4647. }
  4648. func (e *Encoder) fastpathEncMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  4649. fastpathTV.EncMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), e)
  4650. }
  4651. func (_ fastpathT) EncMapFloat64IntfV(v map[float64]interface{}, e *Encoder) {
  4652. if v == nil {
  4653. e.e.EncodeNil()
  4654. return
  4655. }
  4656. ee, esep := e.e, e.hh.hasElemSeparators()
  4657. ee.WriteMapStart(len(v))
  4658. if e.h.Canonical {
  4659. v2 := make([]float64, len(v))
  4660. var i uint
  4661. for k := range v {
  4662. v2[i] = float64(k)
  4663. i++
  4664. }
  4665. sort.Sort(floatSlice(v2))
  4666. if esep {
  4667. for _, k2 := range v2 {
  4668. ee.WriteMapElemKey()
  4669. ee.EncodeFloat64(float64(k2))
  4670. ee.WriteMapElemValue()
  4671. e.encode(v[float64(k2)])
  4672. }
  4673. } else {
  4674. for _, k2 := range v2 {
  4675. ee.EncodeFloat64(float64(k2))
  4676. e.encode(v[float64(k2)])
  4677. }
  4678. }
  4679. } else {
  4680. if esep {
  4681. for k2, v2 := range v {
  4682. ee.WriteMapElemKey()
  4683. ee.EncodeFloat64(k2)
  4684. ee.WriteMapElemValue()
  4685. e.encode(v2)
  4686. }
  4687. } else {
  4688. for k2, v2 := range v {
  4689. ee.EncodeFloat64(k2)
  4690. e.encode(v2)
  4691. }
  4692. }
  4693. }
  4694. ee.WriteMapEnd()
  4695. }
  4696. func (e *Encoder) fastpathEncMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  4697. fastpathTV.EncMapFloat64StringV(rv2i(rv).(map[float64]string), e)
  4698. }
  4699. func (_ fastpathT) EncMapFloat64StringV(v map[float64]string, e *Encoder) {
  4700. if v == nil {
  4701. e.e.EncodeNil()
  4702. return
  4703. }
  4704. ee, esep := e.e, e.hh.hasElemSeparators()
  4705. ee.WriteMapStart(len(v))
  4706. if e.h.Canonical {
  4707. v2 := make([]float64, len(v))
  4708. var i uint
  4709. for k := range v {
  4710. v2[i] = float64(k)
  4711. i++
  4712. }
  4713. sort.Sort(floatSlice(v2))
  4714. if esep {
  4715. for _, k2 := range v2 {
  4716. ee.WriteMapElemKey()
  4717. ee.EncodeFloat64(float64(k2))
  4718. ee.WriteMapElemValue()
  4719. ee.EncodeStringEnc(cUTF8, v[float64(k2)])
  4720. }
  4721. } else {
  4722. for _, k2 := range v2 {
  4723. ee.EncodeFloat64(float64(k2))
  4724. ee.EncodeStringEnc(cUTF8, v[float64(k2)])
  4725. }
  4726. }
  4727. } else {
  4728. if esep {
  4729. for k2, v2 := range v {
  4730. ee.WriteMapElemKey()
  4731. ee.EncodeFloat64(k2)
  4732. ee.WriteMapElemValue()
  4733. ee.EncodeStringEnc(cUTF8, v2)
  4734. }
  4735. } else {
  4736. for k2, v2 := range v {
  4737. ee.EncodeFloat64(k2)
  4738. ee.EncodeStringEnc(cUTF8, v2)
  4739. }
  4740. }
  4741. }
  4742. ee.WriteMapEnd()
  4743. }
  4744. func (e *Encoder) fastpathEncMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  4745. fastpathTV.EncMapFloat64UintV(rv2i(rv).(map[float64]uint), e)
  4746. }
  4747. func (_ fastpathT) EncMapFloat64UintV(v map[float64]uint, e *Encoder) {
  4748. if v == nil {
  4749. e.e.EncodeNil()
  4750. return
  4751. }
  4752. ee, esep := e.e, e.hh.hasElemSeparators()
  4753. ee.WriteMapStart(len(v))
  4754. if e.h.Canonical {
  4755. v2 := make([]float64, len(v))
  4756. var i uint
  4757. for k := range v {
  4758. v2[i] = float64(k)
  4759. i++
  4760. }
  4761. sort.Sort(floatSlice(v2))
  4762. if esep {
  4763. for _, k2 := range v2 {
  4764. ee.WriteMapElemKey()
  4765. ee.EncodeFloat64(float64(k2))
  4766. ee.WriteMapElemValue()
  4767. ee.EncodeUint(uint64(v[float64(k2)]))
  4768. }
  4769. } else {
  4770. for _, k2 := range v2 {
  4771. ee.EncodeFloat64(float64(k2))
  4772. ee.EncodeUint(uint64(v[float64(k2)]))
  4773. }
  4774. }
  4775. } else {
  4776. if esep {
  4777. for k2, v2 := range v {
  4778. ee.WriteMapElemKey()
  4779. ee.EncodeFloat64(k2)
  4780. ee.WriteMapElemValue()
  4781. ee.EncodeUint(uint64(v2))
  4782. }
  4783. } else {
  4784. for k2, v2 := range v {
  4785. ee.EncodeFloat64(k2)
  4786. ee.EncodeUint(uint64(v2))
  4787. }
  4788. }
  4789. }
  4790. ee.WriteMapEnd()
  4791. }
  4792. func (e *Encoder) fastpathEncMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  4793. fastpathTV.EncMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), e)
  4794. }
  4795. func (_ fastpathT) EncMapFloat64Uint8V(v map[float64]uint8, e *Encoder) {
  4796. if v == nil {
  4797. e.e.EncodeNil()
  4798. return
  4799. }
  4800. ee, esep := e.e, e.hh.hasElemSeparators()
  4801. ee.WriteMapStart(len(v))
  4802. if e.h.Canonical {
  4803. v2 := make([]float64, len(v))
  4804. var i uint
  4805. for k := range v {
  4806. v2[i] = float64(k)
  4807. i++
  4808. }
  4809. sort.Sort(floatSlice(v2))
  4810. if esep {
  4811. for _, k2 := range v2 {
  4812. ee.WriteMapElemKey()
  4813. ee.EncodeFloat64(float64(k2))
  4814. ee.WriteMapElemValue()
  4815. ee.EncodeUint(uint64(v[float64(k2)]))
  4816. }
  4817. } else {
  4818. for _, k2 := range v2 {
  4819. ee.EncodeFloat64(float64(k2))
  4820. ee.EncodeUint(uint64(v[float64(k2)]))
  4821. }
  4822. }
  4823. } else {
  4824. if esep {
  4825. for k2, v2 := range v {
  4826. ee.WriteMapElemKey()
  4827. ee.EncodeFloat64(k2)
  4828. ee.WriteMapElemValue()
  4829. ee.EncodeUint(uint64(v2))
  4830. }
  4831. } else {
  4832. for k2, v2 := range v {
  4833. ee.EncodeFloat64(k2)
  4834. ee.EncodeUint(uint64(v2))
  4835. }
  4836. }
  4837. }
  4838. ee.WriteMapEnd()
  4839. }
  4840. func (e *Encoder) fastpathEncMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  4841. fastpathTV.EncMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), e)
  4842. }
  4843. func (_ fastpathT) EncMapFloat64Uint16V(v map[float64]uint16, e *Encoder) {
  4844. if v == nil {
  4845. e.e.EncodeNil()
  4846. return
  4847. }
  4848. ee, esep := e.e, e.hh.hasElemSeparators()
  4849. ee.WriteMapStart(len(v))
  4850. if e.h.Canonical {
  4851. v2 := make([]float64, len(v))
  4852. var i uint
  4853. for k := range v {
  4854. v2[i] = float64(k)
  4855. i++
  4856. }
  4857. sort.Sort(floatSlice(v2))
  4858. if esep {
  4859. for _, k2 := range v2 {
  4860. ee.WriteMapElemKey()
  4861. ee.EncodeFloat64(float64(k2))
  4862. ee.WriteMapElemValue()
  4863. ee.EncodeUint(uint64(v[float64(k2)]))
  4864. }
  4865. } else {
  4866. for _, k2 := range v2 {
  4867. ee.EncodeFloat64(float64(k2))
  4868. ee.EncodeUint(uint64(v[float64(k2)]))
  4869. }
  4870. }
  4871. } else {
  4872. if esep {
  4873. for k2, v2 := range v {
  4874. ee.WriteMapElemKey()
  4875. ee.EncodeFloat64(k2)
  4876. ee.WriteMapElemValue()
  4877. ee.EncodeUint(uint64(v2))
  4878. }
  4879. } else {
  4880. for k2, v2 := range v {
  4881. ee.EncodeFloat64(k2)
  4882. ee.EncodeUint(uint64(v2))
  4883. }
  4884. }
  4885. }
  4886. ee.WriteMapEnd()
  4887. }
  4888. func (e *Encoder) fastpathEncMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  4889. fastpathTV.EncMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), e)
  4890. }
  4891. func (_ fastpathT) EncMapFloat64Uint32V(v map[float64]uint32, e *Encoder) {
  4892. if v == nil {
  4893. e.e.EncodeNil()
  4894. return
  4895. }
  4896. ee, esep := e.e, e.hh.hasElemSeparators()
  4897. ee.WriteMapStart(len(v))
  4898. if e.h.Canonical {
  4899. v2 := make([]float64, len(v))
  4900. var i uint
  4901. for k := range v {
  4902. v2[i] = float64(k)
  4903. i++
  4904. }
  4905. sort.Sort(floatSlice(v2))
  4906. if esep {
  4907. for _, k2 := range v2 {
  4908. ee.WriteMapElemKey()
  4909. ee.EncodeFloat64(float64(k2))
  4910. ee.WriteMapElemValue()
  4911. ee.EncodeUint(uint64(v[float64(k2)]))
  4912. }
  4913. } else {
  4914. for _, k2 := range v2 {
  4915. ee.EncodeFloat64(float64(k2))
  4916. ee.EncodeUint(uint64(v[float64(k2)]))
  4917. }
  4918. }
  4919. } else {
  4920. if esep {
  4921. for k2, v2 := range v {
  4922. ee.WriteMapElemKey()
  4923. ee.EncodeFloat64(k2)
  4924. ee.WriteMapElemValue()
  4925. ee.EncodeUint(uint64(v2))
  4926. }
  4927. } else {
  4928. for k2, v2 := range v {
  4929. ee.EncodeFloat64(k2)
  4930. ee.EncodeUint(uint64(v2))
  4931. }
  4932. }
  4933. }
  4934. ee.WriteMapEnd()
  4935. }
  4936. func (e *Encoder) fastpathEncMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  4937. fastpathTV.EncMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), e)
  4938. }
  4939. func (_ fastpathT) EncMapFloat64Uint64V(v map[float64]uint64, e *Encoder) {
  4940. if v == nil {
  4941. e.e.EncodeNil()
  4942. return
  4943. }
  4944. ee, esep := e.e, e.hh.hasElemSeparators()
  4945. ee.WriteMapStart(len(v))
  4946. if e.h.Canonical {
  4947. v2 := make([]float64, len(v))
  4948. var i uint
  4949. for k := range v {
  4950. v2[i] = float64(k)
  4951. i++
  4952. }
  4953. sort.Sort(floatSlice(v2))
  4954. if esep {
  4955. for _, k2 := range v2 {
  4956. ee.WriteMapElemKey()
  4957. ee.EncodeFloat64(float64(k2))
  4958. ee.WriteMapElemValue()
  4959. ee.EncodeUint(uint64(v[float64(k2)]))
  4960. }
  4961. } else {
  4962. for _, k2 := range v2 {
  4963. ee.EncodeFloat64(float64(k2))
  4964. ee.EncodeUint(uint64(v[float64(k2)]))
  4965. }
  4966. }
  4967. } else {
  4968. if esep {
  4969. for k2, v2 := range v {
  4970. ee.WriteMapElemKey()
  4971. ee.EncodeFloat64(k2)
  4972. ee.WriteMapElemValue()
  4973. ee.EncodeUint(uint64(v2))
  4974. }
  4975. } else {
  4976. for k2, v2 := range v {
  4977. ee.EncodeFloat64(k2)
  4978. ee.EncodeUint(uint64(v2))
  4979. }
  4980. }
  4981. }
  4982. ee.WriteMapEnd()
  4983. }
  4984. func (e *Encoder) fastpathEncMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  4985. fastpathTV.EncMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), e)
  4986. }
  4987. func (_ fastpathT) EncMapFloat64UintptrV(v map[float64]uintptr, e *Encoder) {
  4988. if v == nil {
  4989. e.e.EncodeNil()
  4990. return
  4991. }
  4992. ee, esep := e.e, e.hh.hasElemSeparators()
  4993. ee.WriteMapStart(len(v))
  4994. if e.h.Canonical {
  4995. v2 := make([]float64, len(v))
  4996. var i uint
  4997. for k := range v {
  4998. v2[i] = float64(k)
  4999. i++
  5000. }
  5001. sort.Sort(floatSlice(v2))
  5002. if esep {
  5003. for _, k2 := range v2 {
  5004. ee.WriteMapElemKey()
  5005. ee.EncodeFloat64(float64(k2))
  5006. ee.WriteMapElemValue()
  5007. e.encode(v[float64(k2)])
  5008. }
  5009. } else {
  5010. for _, k2 := range v2 {
  5011. ee.EncodeFloat64(float64(k2))
  5012. e.encode(v[float64(k2)])
  5013. }
  5014. }
  5015. } else {
  5016. if esep {
  5017. for k2, v2 := range v {
  5018. ee.WriteMapElemKey()
  5019. ee.EncodeFloat64(k2)
  5020. ee.WriteMapElemValue()
  5021. e.encode(v2)
  5022. }
  5023. } else {
  5024. for k2, v2 := range v {
  5025. ee.EncodeFloat64(k2)
  5026. e.encode(v2)
  5027. }
  5028. }
  5029. }
  5030. ee.WriteMapEnd()
  5031. }
  5032. func (e *Encoder) fastpathEncMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  5033. fastpathTV.EncMapFloat64IntV(rv2i(rv).(map[float64]int), e)
  5034. }
  5035. func (_ fastpathT) EncMapFloat64IntV(v map[float64]int, e *Encoder) {
  5036. if v == nil {
  5037. e.e.EncodeNil()
  5038. return
  5039. }
  5040. ee, esep := e.e, e.hh.hasElemSeparators()
  5041. ee.WriteMapStart(len(v))
  5042. if e.h.Canonical {
  5043. v2 := make([]float64, len(v))
  5044. var i uint
  5045. for k := range v {
  5046. v2[i] = float64(k)
  5047. i++
  5048. }
  5049. sort.Sort(floatSlice(v2))
  5050. if esep {
  5051. for _, k2 := range v2 {
  5052. ee.WriteMapElemKey()
  5053. ee.EncodeFloat64(float64(k2))
  5054. ee.WriteMapElemValue()
  5055. ee.EncodeInt(int64(v[float64(k2)]))
  5056. }
  5057. } else {
  5058. for _, k2 := range v2 {
  5059. ee.EncodeFloat64(float64(k2))
  5060. ee.EncodeInt(int64(v[float64(k2)]))
  5061. }
  5062. }
  5063. } else {
  5064. if esep {
  5065. for k2, v2 := range v {
  5066. ee.WriteMapElemKey()
  5067. ee.EncodeFloat64(k2)
  5068. ee.WriteMapElemValue()
  5069. ee.EncodeInt(int64(v2))
  5070. }
  5071. } else {
  5072. for k2, v2 := range v {
  5073. ee.EncodeFloat64(k2)
  5074. ee.EncodeInt(int64(v2))
  5075. }
  5076. }
  5077. }
  5078. ee.WriteMapEnd()
  5079. }
  5080. func (e *Encoder) fastpathEncMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  5081. fastpathTV.EncMapFloat64Int8V(rv2i(rv).(map[float64]int8), e)
  5082. }
  5083. func (_ fastpathT) EncMapFloat64Int8V(v map[float64]int8, e *Encoder) {
  5084. if v == nil {
  5085. e.e.EncodeNil()
  5086. return
  5087. }
  5088. ee, esep := e.e, e.hh.hasElemSeparators()
  5089. ee.WriteMapStart(len(v))
  5090. if e.h.Canonical {
  5091. v2 := make([]float64, len(v))
  5092. var i uint
  5093. for k := range v {
  5094. v2[i] = float64(k)
  5095. i++
  5096. }
  5097. sort.Sort(floatSlice(v2))
  5098. if esep {
  5099. for _, k2 := range v2 {
  5100. ee.WriteMapElemKey()
  5101. ee.EncodeFloat64(float64(k2))
  5102. ee.WriteMapElemValue()
  5103. ee.EncodeInt(int64(v[float64(k2)]))
  5104. }
  5105. } else {
  5106. for _, k2 := range v2 {
  5107. ee.EncodeFloat64(float64(k2))
  5108. ee.EncodeInt(int64(v[float64(k2)]))
  5109. }
  5110. }
  5111. } else {
  5112. if esep {
  5113. for k2, v2 := range v {
  5114. ee.WriteMapElemKey()
  5115. ee.EncodeFloat64(k2)
  5116. ee.WriteMapElemValue()
  5117. ee.EncodeInt(int64(v2))
  5118. }
  5119. } else {
  5120. for k2, v2 := range v {
  5121. ee.EncodeFloat64(k2)
  5122. ee.EncodeInt(int64(v2))
  5123. }
  5124. }
  5125. }
  5126. ee.WriteMapEnd()
  5127. }
  5128. func (e *Encoder) fastpathEncMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  5129. fastpathTV.EncMapFloat64Int16V(rv2i(rv).(map[float64]int16), e)
  5130. }
  5131. func (_ fastpathT) EncMapFloat64Int16V(v map[float64]int16, e *Encoder) {
  5132. if v == nil {
  5133. e.e.EncodeNil()
  5134. return
  5135. }
  5136. ee, esep := e.e, e.hh.hasElemSeparators()
  5137. ee.WriteMapStart(len(v))
  5138. if e.h.Canonical {
  5139. v2 := make([]float64, len(v))
  5140. var i uint
  5141. for k := range v {
  5142. v2[i] = float64(k)
  5143. i++
  5144. }
  5145. sort.Sort(floatSlice(v2))
  5146. if esep {
  5147. for _, k2 := range v2 {
  5148. ee.WriteMapElemKey()
  5149. ee.EncodeFloat64(float64(k2))
  5150. ee.WriteMapElemValue()
  5151. ee.EncodeInt(int64(v[float64(k2)]))
  5152. }
  5153. } else {
  5154. for _, k2 := range v2 {
  5155. ee.EncodeFloat64(float64(k2))
  5156. ee.EncodeInt(int64(v[float64(k2)]))
  5157. }
  5158. }
  5159. } else {
  5160. if esep {
  5161. for k2, v2 := range v {
  5162. ee.WriteMapElemKey()
  5163. ee.EncodeFloat64(k2)
  5164. ee.WriteMapElemValue()
  5165. ee.EncodeInt(int64(v2))
  5166. }
  5167. } else {
  5168. for k2, v2 := range v {
  5169. ee.EncodeFloat64(k2)
  5170. ee.EncodeInt(int64(v2))
  5171. }
  5172. }
  5173. }
  5174. ee.WriteMapEnd()
  5175. }
  5176. func (e *Encoder) fastpathEncMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  5177. fastpathTV.EncMapFloat64Int32V(rv2i(rv).(map[float64]int32), e)
  5178. }
  5179. func (_ fastpathT) EncMapFloat64Int32V(v map[float64]int32, e *Encoder) {
  5180. if v == nil {
  5181. e.e.EncodeNil()
  5182. return
  5183. }
  5184. ee, esep := e.e, e.hh.hasElemSeparators()
  5185. ee.WriteMapStart(len(v))
  5186. if e.h.Canonical {
  5187. v2 := make([]float64, len(v))
  5188. var i uint
  5189. for k := range v {
  5190. v2[i] = float64(k)
  5191. i++
  5192. }
  5193. sort.Sort(floatSlice(v2))
  5194. if esep {
  5195. for _, k2 := range v2 {
  5196. ee.WriteMapElemKey()
  5197. ee.EncodeFloat64(float64(k2))
  5198. ee.WriteMapElemValue()
  5199. ee.EncodeInt(int64(v[float64(k2)]))
  5200. }
  5201. } else {
  5202. for _, k2 := range v2 {
  5203. ee.EncodeFloat64(float64(k2))
  5204. ee.EncodeInt(int64(v[float64(k2)]))
  5205. }
  5206. }
  5207. } else {
  5208. if esep {
  5209. for k2, v2 := range v {
  5210. ee.WriteMapElemKey()
  5211. ee.EncodeFloat64(k2)
  5212. ee.WriteMapElemValue()
  5213. ee.EncodeInt(int64(v2))
  5214. }
  5215. } else {
  5216. for k2, v2 := range v {
  5217. ee.EncodeFloat64(k2)
  5218. ee.EncodeInt(int64(v2))
  5219. }
  5220. }
  5221. }
  5222. ee.WriteMapEnd()
  5223. }
  5224. func (e *Encoder) fastpathEncMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  5225. fastpathTV.EncMapFloat64Int64V(rv2i(rv).(map[float64]int64), e)
  5226. }
  5227. func (_ fastpathT) EncMapFloat64Int64V(v map[float64]int64, e *Encoder) {
  5228. if v == nil {
  5229. e.e.EncodeNil()
  5230. return
  5231. }
  5232. ee, esep := e.e, e.hh.hasElemSeparators()
  5233. ee.WriteMapStart(len(v))
  5234. if e.h.Canonical {
  5235. v2 := make([]float64, len(v))
  5236. var i uint
  5237. for k := range v {
  5238. v2[i] = float64(k)
  5239. i++
  5240. }
  5241. sort.Sort(floatSlice(v2))
  5242. if esep {
  5243. for _, k2 := range v2 {
  5244. ee.WriteMapElemKey()
  5245. ee.EncodeFloat64(float64(k2))
  5246. ee.WriteMapElemValue()
  5247. ee.EncodeInt(int64(v[float64(k2)]))
  5248. }
  5249. } else {
  5250. for _, k2 := range v2 {
  5251. ee.EncodeFloat64(float64(k2))
  5252. ee.EncodeInt(int64(v[float64(k2)]))
  5253. }
  5254. }
  5255. } else {
  5256. if esep {
  5257. for k2, v2 := range v {
  5258. ee.WriteMapElemKey()
  5259. ee.EncodeFloat64(k2)
  5260. ee.WriteMapElemValue()
  5261. ee.EncodeInt(int64(v2))
  5262. }
  5263. } else {
  5264. for k2, v2 := range v {
  5265. ee.EncodeFloat64(k2)
  5266. ee.EncodeInt(int64(v2))
  5267. }
  5268. }
  5269. }
  5270. ee.WriteMapEnd()
  5271. }
  5272. func (e *Encoder) fastpathEncMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  5273. fastpathTV.EncMapFloat64Float32V(rv2i(rv).(map[float64]float32), e)
  5274. }
  5275. func (_ fastpathT) EncMapFloat64Float32V(v map[float64]float32, e *Encoder) {
  5276. if v == nil {
  5277. e.e.EncodeNil()
  5278. return
  5279. }
  5280. ee, esep := e.e, e.hh.hasElemSeparators()
  5281. ee.WriteMapStart(len(v))
  5282. if e.h.Canonical {
  5283. v2 := make([]float64, len(v))
  5284. var i uint
  5285. for k := range v {
  5286. v2[i] = float64(k)
  5287. i++
  5288. }
  5289. sort.Sort(floatSlice(v2))
  5290. if esep {
  5291. for _, k2 := range v2 {
  5292. ee.WriteMapElemKey()
  5293. ee.EncodeFloat64(float64(k2))
  5294. ee.WriteMapElemValue()
  5295. ee.EncodeFloat32(v[float64(k2)])
  5296. }
  5297. } else {
  5298. for _, k2 := range v2 {
  5299. ee.EncodeFloat64(float64(k2))
  5300. ee.EncodeFloat32(v[float64(k2)])
  5301. }
  5302. }
  5303. } else {
  5304. if esep {
  5305. for k2, v2 := range v {
  5306. ee.WriteMapElemKey()
  5307. ee.EncodeFloat64(k2)
  5308. ee.WriteMapElemValue()
  5309. ee.EncodeFloat32(v2)
  5310. }
  5311. } else {
  5312. for k2, v2 := range v {
  5313. ee.EncodeFloat64(k2)
  5314. ee.EncodeFloat32(v2)
  5315. }
  5316. }
  5317. }
  5318. ee.WriteMapEnd()
  5319. }
  5320. func (e *Encoder) fastpathEncMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  5321. fastpathTV.EncMapFloat64Float64V(rv2i(rv).(map[float64]float64), e)
  5322. }
  5323. func (_ fastpathT) EncMapFloat64Float64V(v map[float64]float64, e *Encoder) {
  5324. if v == nil {
  5325. e.e.EncodeNil()
  5326. return
  5327. }
  5328. ee, esep := e.e, e.hh.hasElemSeparators()
  5329. ee.WriteMapStart(len(v))
  5330. if e.h.Canonical {
  5331. v2 := make([]float64, len(v))
  5332. var i uint
  5333. for k := range v {
  5334. v2[i] = float64(k)
  5335. i++
  5336. }
  5337. sort.Sort(floatSlice(v2))
  5338. if esep {
  5339. for _, k2 := range v2 {
  5340. ee.WriteMapElemKey()
  5341. ee.EncodeFloat64(float64(k2))
  5342. ee.WriteMapElemValue()
  5343. ee.EncodeFloat64(v[float64(k2)])
  5344. }
  5345. } else {
  5346. for _, k2 := range v2 {
  5347. ee.EncodeFloat64(float64(k2))
  5348. ee.EncodeFloat64(v[float64(k2)])
  5349. }
  5350. }
  5351. } else {
  5352. if esep {
  5353. for k2, v2 := range v {
  5354. ee.WriteMapElemKey()
  5355. ee.EncodeFloat64(k2)
  5356. ee.WriteMapElemValue()
  5357. ee.EncodeFloat64(v2)
  5358. }
  5359. } else {
  5360. for k2, v2 := range v {
  5361. ee.EncodeFloat64(k2)
  5362. ee.EncodeFloat64(v2)
  5363. }
  5364. }
  5365. }
  5366. ee.WriteMapEnd()
  5367. }
  5368. func (e *Encoder) fastpathEncMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  5369. fastpathTV.EncMapFloat64BoolV(rv2i(rv).(map[float64]bool), e)
  5370. }
  5371. func (_ fastpathT) EncMapFloat64BoolV(v map[float64]bool, e *Encoder) {
  5372. if v == nil {
  5373. e.e.EncodeNil()
  5374. return
  5375. }
  5376. ee, esep := e.e, e.hh.hasElemSeparators()
  5377. ee.WriteMapStart(len(v))
  5378. if e.h.Canonical {
  5379. v2 := make([]float64, len(v))
  5380. var i uint
  5381. for k := range v {
  5382. v2[i] = float64(k)
  5383. i++
  5384. }
  5385. sort.Sort(floatSlice(v2))
  5386. if esep {
  5387. for _, k2 := range v2 {
  5388. ee.WriteMapElemKey()
  5389. ee.EncodeFloat64(float64(k2))
  5390. ee.WriteMapElemValue()
  5391. ee.EncodeBool(v[float64(k2)])
  5392. }
  5393. } else {
  5394. for _, k2 := range v2 {
  5395. ee.EncodeFloat64(float64(k2))
  5396. ee.EncodeBool(v[float64(k2)])
  5397. }
  5398. }
  5399. } else {
  5400. if esep {
  5401. for k2, v2 := range v {
  5402. ee.WriteMapElemKey()
  5403. ee.EncodeFloat64(k2)
  5404. ee.WriteMapElemValue()
  5405. ee.EncodeBool(v2)
  5406. }
  5407. } else {
  5408. for k2, v2 := range v {
  5409. ee.EncodeFloat64(k2)
  5410. ee.EncodeBool(v2)
  5411. }
  5412. }
  5413. }
  5414. ee.WriteMapEnd()
  5415. }
  5416. func (e *Encoder) fastpathEncMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  5417. fastpathTV.EncMapUintIntfV(rv2i(rv).(map[uint]interface{}), e)
  5418. }
  5419. func (_ fastpathT) EncMapUintIntfV(v map[uint]interface{}, e *Encoder) {
  5420. if v == nil {
  5421. e.e.EncodeNil()
  5422. return
  5423. }
  5424. ee, esep := e.e, e.hh.hasElemSeparators()
  5425. ee.WriteMapStart(len(v))
  5426. if e.h.Canonical {
  5427. v2 := make([]uint64, len(v))
  5428. var i uint
  5429. for k := range v {
  5430. v2[i] = uint64(k)
  5431. i++
  5432. }
  5433. sort.Sort(uintSlice(v2))
  5434. if esep {
  5435. for _, k2 := range v2 {
  5436. ee.WriteMapElemKey()
  5437. ee.EncodeUint(uint64(uint(k2)))
  5438. ee.WriteMapElemValue()
  5439. e.encode(v[uint(k2)])
  5440. }
  5441. } else {
  5442. for _, k2 := range v2 {
  5443. ee.EncodeUint(uint64(uint(k2)))
  5444. e.encode(v[uint(k2)])
  5445. }
  5446. }
  5447. } else {
  5448. if esep {
  5449. for k2, v2 := range v {
  5450. ee.WriteMapElemKey()
  5451. ee.EncodeUint(uint64(k2))
  5452. ee.WriteMapElemValue()
  5453. e.encode(v2)
  5454. }
  5455. } else {
  5456. for k2, v2 := range v {
  5457. ee.EncodeUint(uint64(k2))
  5458. e.encode(v2)
  5459. }
  5460. }
  5461. }
  5462. ee.WriteMapEnd()
  5463. }
  5464. func (e *Encoder) fastpathEncMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  5465. fastpathTV.EncMapUintStringV(rv2i(rv).(map[uint]string), e)
  5466. }
  5467. func (_ fastpathT) EncMapUintStringV(v map[uint]string, e *Encoder) {
  5468. if v == nil {
  5469. e.e.EncodeNil()
  5470. return
  5471. }
  5472. ee, esep := e.e, e.hh.hasElemSeparators()
  5473. ee.WriteMapStart(len(v))
  5474. if e.h.Canonical {
  5475. v2 := make([]uint64, len(v))
  5476. var i uint
  5477. for k := range v {
  5478. v2[i] = uint64(k)
  5479. i++
  5480. }
  5481. sort.Sort(uintSlice(v2))
  5482. if esep {
  5483. for _, k2 := range v2 {
  5484. ee.WriteMapElemKey()
  5485. ee.EncodeUint(uint64(uint(k2)))
  5486. ee.WriteMapElemValue()
  5487. ee.EncodeStringEnc(cUTF8, v[uint(k2)])
  5488. }
  5489. } else {
  5490. for _, k2 := range v2 {
  5491. ee.EncodeUint(uint64(uint(k2)))
  5492. ee.EncodeStringEnc(cUTF8, v[uint(k2)])
  5493. }
  5494. }
  5495. } else {
  5496. if esep {
  5497. for k2, v2 := range v {
  5498. ee.WriteMapElemKey()
  5499. ee.EncodeUint(uint64(k2))
  5500. ee.WriteMapElemValue()
  5501. ee.EncodeStringEnc(cUTF8, v2)
  5502. }
  5503. } else {
  5504. for k2, v2 := range v {
  5505. ee.EncodeUint(uint64(k2))
  5506. ee.EncodeStringEnc(cUTF8, v2)
  5507. }
  5508. }
  5509. }
  5510. ee.WriteMapEnd()
  5511. }
  5512. func (e *Encoder) fastpathEncMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  5513. fastpathTV.EncMapUintUintV(rv2i(rv).(map[uint]uint), e)
  5514. }
  5515. func (_ fastpathT) EncMapUintUintV(v map[uint]uint, e *Encoder) {
  5516. if v == nil {
  5517. e.e.EncodeNil()
  5518. return
  5519. }
  5520. ee, esep := e.e, e.hh.hasElemSeparators()
  5521. ee.WriteMapStart(len(v))
  5522. if e.h.Canonical {
  5523. v2 := make([]uint64, len(v))
  5524. var i uint
  5525. for k := range v {
  5526. v2[i] = uint64(k)
  5527. i++
  5528. }
  5529. sort.Sort(uintSlice(v2))
  5530. if esep {
  5531. for _, k2 := range v2 {
  5532. ee.WriteMapElemKey()
  5533. ee.EncodeUint(uint64(uint(k2)))
  5534. ee.WriteMapElemValue()
  5535. ee.EncodeUint(uint64(v[uint(k2)]))
  5536. }
  5537. } else {
  5538. for _, k2 := range v2 {
  5539. ee.EncodeUint(uint64(uint(k2)))
  5540. ee.EncodeUint(uint64(v[uint(k2)]))
  5541. }
  5542. }
  5543. } else {
  5544. if esep {
  5545. for k2, v2 := range v {
  5546. ee.WriteMapElemKey()
  5547. ee.EncodeUint(uint64(k2))
  5548. ee.WriteMapElemValue()
  5549. ee.EncodeUint(uint64(v2))
  5550. }
  5551. } else {
  5552. for k2, v2 := range v {
  5553. ee.EncodeUint(uint64(k2))
  5554. ee.EncodeUint(uint64(v2))
  5555. }
  5556. }
  5557. }
  5558. ee.WriteMapEnd()
  5559. }
  5560. func (e *Encoder) fastpathEncMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  5561. fastpathTV.EncMapUintUint8V(rv2i(rv).(map[uint]uint8), e)
  5562. }
  5563. func (_ fastpathT) EncMapUintUint8V(v map[uint]uint8, e *Encoder) {
  5564. if v == nil {
  5565. e.e.EncodeNil()
  5566. return
  5567. }
  5568. ee, esep := e.e, e.hh.hasElemSeparators()
  5569. ee.WriteMapStart(len(v))
  5570. if e.h.Canonical {
  5571. v2 := make([]uint64, len(v))
  5572. var i uint
  5573. for k := range v {
  5574. v2[i] = uint64(k)
  5575. i++
  5576. }
  5577. sort.Sort(uintSlice(v2))
  5578. if esep {
  5579. for _, k2 := range v2 {
  5580. ee.WriteMapElemKey()
  5581. ee.EncodeUint(uint64(uint(k2)))
  5582. ee.WriteMapElemValue()
  5583. ee.EncodeUint(uint64(v[uint(k2)]))
  5584. }
  5585. } else {
  5586. for _, k2 := range v2 {
  5587. ee.EncodeUint(uint64(uint(k2)))
  5588. ee.EncodeUint(uint64(v[uint(k2)]))
  5589. }
  5590. }
  5591. } else {
  5592. if esep {
  5593. for k2, v2 := range v {
  5594. ee.WriteMapElemKey()
  5595. ee.EncodeUint(uint64(k2))
  5596. ee.WriteMapElemValue()
  5597. ee.EncodeUint(uint64(v2))
  5598. }
  5599. } else {
  5600. for k2, v2 := range v {
  5601. ee.EncodeUint(uint64(k2))
  5602. ee.EncodeUint(uint64(v2))
  5603. }
  5604. }
  5605. }
  5606. ee.WriteMapEnd()
  5607. }
  5608. func (e *Encoder) fastpathEncMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  5609. fastpathTV.EncMapUintUint16V(rv2i(rv).(map[uint]uint16), e)
  5610. }
  5611. func (_ fastpathT) EncMapUintUint16V(v map[uint]uint16, e *Encoder) {
  5612. if v == nil {
  5613. e.e.EncodeNil()
  5614. return
  5615. }
  5616. ee, esep := e.e, e.hh.hasElemSeparators()
  5617. ee.WriteMapStart(len(v))
  5618. if e.h.Canonical {
  5619. v2 := make([]uint64, len(v))
  5620. var i uint
  5621. for k := range v {
  5622. v2[i] = uint64(k)
  5623. i++
  5624. }
  5625. sort.Sort(uintSlice(v2))
  5626. if esep {
  5627. for _, k2 := range v2 {
  5628. ee.WriteMapElemKey()
  5629. ee.EncodeUint(uint64(uint(k2)))
  5630. ee.WriteMapElemValue()
  5631. ee.EncodeUint(uint64(v[uint(k2)]))
  5632. }
  5633. } else {
  5634. for _, k2 := range v2 {
  5635. ee.EncodeUint(uint64(uint(k2)))
  5636. ee.EncodeUint(uint64(v[uint(k2)]))
  5637. }
  5638. }
  5639. } else {
  5640. if esep {
  5641. for k2, v2 := range v {
  5642. ee.WriteMapElemKey()
  5643. ee.EncodeUint(uint64(k2))
  5644. ee.WriteMapElemValue()
  5645. ee.EncodeUint(uint64(v2))
  5646. }
  5647. } else {
  5648. for k2, v2 := range v {
  5649. ee.EncodeUint(uint64(k2))
  5650. ee.EncodeUint(uint64(v2))
  5651. }
  5652. }
  5653. }
  5654. ee.WriteMapEnd()
  5655. }
  5656. func (e *Encoder) fastpathEncMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  5657. fastpathTV.EncMapUintUint32V(rv2i(rv).(map[uint]uint32), e)
  5658. }
  5659. func (_ fastpathT) EncMapUintUint32V(v map[uint]uint32, e *Encoder) {
  5660. if v == nil {
  5661. e.e.EncodeNil()
  5662. return
  5663. }
  5664. ee, esep := e.e, e.hh.hasElemSeparators()
  5665. ee.WriteMapStart(len(v))
  5666. if e.h.Canonical {
  5667. v2 := make([]uint64, len(v))
  5668. var i uint
  5669. for k := range v {
  5670. v2[i] = uint64(k)
  5671. i++
  5672. }
  5673. sort.Sort(uintSlice(v2))
  5674. if esep {
  5675. for _, k2 := range v2 {
  5676. ee.WriteMapElemKey()
  5677. ee.EncodeUint(uint64(uint(k2)))
  5678. ee.WriteMapElemValue()
  5679. ee.EncodeUint(uint64(v[uint(k2)]))
  5680. }
  5681. } else {
  5682. for _, k2 := range v2 {
  5683. ee.EncodeUint(uint64(uint(k2)))
  5684. ee.EncodeUint(uint64(v[uint(k2)]))
  5685. }
  5686. }
  5687. } else {
  5688. if esep {
  5689. for k2, v2 := range v {
  5690. ee.WriteMapElemKey()
  5691. ee.EncodeUint(uint64(k2))
  5692. ee.WriteMapElemValue()
  5693. ee.EncodeUint(uint64(v2))
  5694. }
  5695. } else {
  5696. for k2, v2 := range v {
  5697. ee.EncodeUint(uint64(k2))
  5698. ee.EncodeUint(uint64(v2))
  5699. }
  5700. }
  5701. }
  5702. ee.WriteMapEnd()
  5703. }
  5704. func (e *Encoder) fastpathEncMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  5705. fastpathTV.EncMapUintUint64V(rv2i(rv).(map[uint]uint64), e)
  5706. }
  5707. func (_ fastpathT) EncMapUintUint64V(v map[uint]uint64, e *Encoder) {
  5708. if v == nil {
  5709. e.e.EncodeNil()
  5710. return
  5711. }
  5712. ee, esep := e.e, e.hh.hasElemSeparators()
  5713. ee.WriteMapStart(len(v))
  5714. if e.h.Canonical {
  5715. v2 := make([]uint64, len(v))
  5716. var i uint
  5717. for k := range v {
  5718. v2[i] = uint64(k)
  5719. i++
  5720. }
  5721. sort.Sort(uintSlice(v2))
  5722. if esep {
  5723. for _, k2 := range v2 {
  5724. ee.WriteMapElemKey()
  5725. ee.EncodeUint(uint64(uint(k2)))
  5726. ee.WriteMapElemValue()
  5727. ee.EncodeUint(uint64(v[uint(k2)]))
  5728. }
  5729. } else {
  5730. for _, k2 := range v2 {
  5731. ee.EncodeUint(uint64(uint(k2)))
  5732. ee.EncodeUint(uint64(v[uint(k2)]))
  5733. }
  5734. }
  5735. } else {
  5736. if esep {
  5737. for k2, v2 := range v {
  5738. ee.WriteMapElemKey()
  5739. ee.EncodeUint(uint64(k2))
  5740. ee.WriteMapElemValue()
  5741. ee.EncodeUint(uint64(v2))
  5742. }
  5743. } else {
  5744. for k2, v2 := range v {
  5745. ee.EncodeUint(uint64(k2))
  5746. ee.EncodeUint(uint64(v2))
  5747. }
  5748. }
  5749. }
  5750. ee.WriteMapEnd()
  5751. }
  5752. func (e *Encoder) fastpathEncMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  5753. fastpathTV.EncMapUintUintptrV(rv2i(rv).(map[uint]uintptr), e)
  5754. }
  5755. func (_ fastpathT) EncMapUintUintptrV(v map[uint]uintptr, e *Encoder) {
  5756. if v == nil {
  5757. e.e.EncodeNil()
  5758. return
  5759. }
  5760. ee, esep := e.e, e.hh.hasElemSeparators()
  5761. ee.WriteMapStart(len(v))
  5762. if e.h.Canonical {
  5763. v2 := make([]uint64, len(v))
  5764. var i uint
  5765. for k := range v {
  5766. v2[i] = uint64(k)
  5767. i++
  5768. }
  5769. sort.Sort(uintSlice(v2))
  5770. if esep {
  5771. for _, k2 := range v2 {
  5772. ee.WriteMapElemKey()
  5773. ee.EncodeUint(uint64(uint(k2)))
  5774. ee.WriteMapElemValue()
  5775. e.encode(v[uint(k2)])
  5776. }
  5777. } else {
  5778. for _, k2 := range v2 {
  5779. ee.EncodeUint(uint64(uint(k2)))
  5780. e.encode(v[uint(k2)])
  5781. }
  5782. }
  5783. } else {
  5784. if esep {
  5785. for k2, v2 := range v {
  5786. ee.WriteMapElemKey()
  5787. ee.EncodeUint(uint64(k2))
  5788. ee.WriteMapElemValue()
  5789. e.encode(v2)
  5790. }
  5791. } else {
  5792. for k2, v2 := range v {
  5793. ee.EncodeUint(uint64(k2))
  5794. e.encode(v2)
  5795. }
  5796. }
  5797. }
  5798. ee.WriteMapEnd()
  5799. }
  5800. func (e *Encoder) fastpathEncMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  5801. fastpathTV.EncMapUintIntV(rv2i(rv).(map[uint]int), e)
  5802. }
  5803. func (_ fastpathT) EncMapUintIntV(v map[uint]int, e *Encoder) {
  5804. if v == nil {
  5805. e.e.EncodeNil()
  5806. return
  5807. }
  5808. ee, esep := e.e, e.hh.hasElemSeparators()
  5809. ee.WriteMapStart(len(v))
  5810. if e.h.Canonical {
  5811. v2 := make([]uint64, len(v))
  5812. var i uint
  5813. for k := range v {
  5814. v2[i] = uint64(k)
  5815. i++
  5816. }
  5817. sort.Sort(uintSlice(v2))
  5818. if esep {
  5819. for _, k2 := range v2 {
  5820. ee.WriteMapElemKey()
  5821. ee.EncodeUint(uint64(uint(k2)))
  5822. ee.WriteMapElemValue()
  5823. ee.EncodeInt(int64(v[uint(k2)]))
  5824. }
  5825. } else {
  5826. for _, k2 := range v2 {
  5827. ee.EncodeUint(uint64(uint(k2)))
  5828. ee.EncodeInt(int64(v[uint(k2)]))
  5829. }
  5830. }
  5831. } else {
  5832. if esep {
  5833. for k2, v2 := range v {
  5834. ee.WriteMapElemKey()
  5835. ee.EncodeUint(uint64(k2))
  5836. ee.WriteMapElemValue()
  5837. ee.EncodeInt(int64(v2))
  5838. }
  5839. } else {
  5840. for k2, v2 := range v {
  5841. ee.EncodeUint(uint64(k2))
  5842. ee.EncodeInt(int64(v2))
  5843. }
  5844. }
  5845. }
  5846. ee.WriteMapEnd()
  5847. }
  5848. func (e *Encoder) fastpathEncMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  5849. fastpathTV.EncMapUintInt8V(rv2i(rv).(map[uint]int8), e)
  5850. }
  5851. func (_ fastpathT) EncMapUintInt8V(v map[uint]int8, e *Encoder) {
  5852. if v == nil {
  5853. e.e.EncodeNil()
  5854. return
  5855. }
  5856. ee, esep := e.e, e.hh.hasElemSeparators()
  5857. ee.WriteMapStart(len(v))
  5858. if e.h.Canonical {
  5859. v2 := make([]uint64, len(v))
  5860. var i uint
  5861. for k := range v {
  5862. v2[i] = uint64(k)
  5863. i++
  5864. }
  5865. sort.Sort(uintSlice(v2))
  5866. if esep {
  5867. for _, k2 := range v2 {
  5868. ee.WriteMapElemKey()
  5869. ee.EncodeUint(uint64(uint(k2)))
  5870. ee.WriteMapElemValue()
  5871. ee.EncodeInt(int64(v[uint(k2)]))
  5872. }
  5873. } else {
  5874. for _, k2 := range v2 {
  5875. ee.EncodeUint(uint64(uint(k2)))
  5876. ee.EncodeInt(int64(v[uint(k2)]))
  5877. }
  5878. }
  5879. } else {
  5880. if esep {
  5881. for k2, v2 := range v {
  5882. ee.WriteMapElemKey()
  5883. ee.EncodeUint(uint64(k2))
  5884. ee.WriteMapElemValue()
  5885. ee.EncodeInt(int64(v2))
  5886. }
  5887. } else {
  5888. for k2, v2 := range v {
  5889. ee.EncodeUint(uint64(k2))
  5890. ee.EncodeInt(int64(v2))
  5891. }
  5892. }
  5893. }
  5894. ee.WriteMapEnd()
  5895. }
  5896. func (e *Encoder) fastpathEncMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  5897. fastpathTV.EncMapUintInt16V(rv2i(rv).(map[uint]int16), e)
  5898. }
  5899. func (_ fastpathT) EncMapUintInt16V(v map[uint]int16, e *Encoder) {
  5900. if v == nil {
  5901. e.e.EncodeNil()
  5902. return
  5903. }
  5904. ee, esep := e.e, e.hh.hasElemSeparators()
  5905. ee.WriteMapStart(len(v))
  5906. if e.h.Canonical {
  5907. v2 := make([]uint64, len(v))
  5908. var i uint
  5909. for k := range v {
  5910. v2[i] = uint64(k)
  5911. i++
  5912. }
  5913. sort.Sort(uintSlice(v2))
  5914. if esep {
  5915. for _, k2 := range v2 {
  5916. ee.WriteMapElemKey()
  5917. ee.EncodeUint(uint64(uint(k2)))
  5918. ee.WriteMapElemValue()
  5919. ee.EncodeInt(int64(v[uint(k2)]))
  5920. }
  5921. } else {
  5922. for _, k2 := range v2 {
  5923. ee.EncodeUint(uint64(uint(k2)))
  5924. ee.EncodeInt(int64(v[uint(k2)]))
  5925. }
  5926. }
  5927. } else {
  5928. if esep {
  5929. for k2, v2 := range v {
  5930. ee.WriteMapElemKey()
  5931. ee.EncodeUint(uint64(k2))
  5932. ee.WriteMapElemValue()
  5933. ee.EncodeInt(int64(v2))
  5934. }
  5935. } else {
  5936. for k2, v2 := range v {
  5937. ee.EncodeUint(uint64(k2))
  5938. ee.EncodeInt(int64(v2))
  5939. }
  5940. }
  5941. }
  5942. ee.WriteMapEnd()
  5943. }
  5944. func (e *Encoder) fastpathEncMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  5945. fastpathTV.EncMapUintInt32V(rv2i(rv).(map[uint]int32), e)
  5946. }
  5947. func (_ fastpathT) EncMapUintInt32V(v map[uint]int32, e *Encoder) {
  5948. if v == nil {
  5949. e.e.EncodeNil()
  5950. return
  5951. }
  5952. ee, esep := e.e, e.hh.hasElemSeparators()
  5953. ee.WriteMapStart(len(v))
  5954. if e.h.Canonical {
  5955. v2 := make([]uint64, len(v))
  5956. var i uint
  5957. for k := range v {
  5958. v2[i] = uint64(k)
  5959. i++
  5960. }
  5961. sort.Sort(uintSlice(v2))
  5962. if esep {
  5963. for _, k2 := range v2 {
  5964. ee.WriteMapElemKey()
  5965. ee.EncodeUint(uint64(uint(k2)))
  5966. ee.WriteMapElemValue()
  5967. ee.EncodeInt(int64(v[uint(k2)]))
  5968. }
  5969. } else {
  5970. for _, k2 := range v2 {
  5971. ee.EncodeUint(uint64(uint(k2)))
  5972. ee.EncodeInt(int64(v[uint(k2)]))
  5973. }
  5974. }
  5975. } else {
  5976. if esep {
  5977. for k2, v2 := range v {
  5978. ee.WriteMapElemKey()
  5979. ee.EncodeUint(uint64(k2))
  5980. ee.WriteMapElemValue()
  5981. ee.EncodeInt(int64(v2))
  5982. }
  5983. } else {
  5984. for k2, v2 := range v {
  5985. ee.EncodeUint(uint64(k2))
  5986. ee.EncodeInt(int64(v2))
  5987. }
  5988. }
  5989. }
  5990. ee.WriteMapEnd()
  5991. }
  5992. func (e *Encoder) fastpathEncMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  5993. fastpathTV.EncMapUintInt64V(rv2i(rv).(map[uint]int64), e)
  5994. }
  5995. func (_ fastpathT) EncMapUintInt64V(v map[uint]int64, e *Encoder) {
  5996. if v == nil {
  5997. e.e.EncodeNil()
  5998. return
  5999. }
  6000. ee, esep := e.e, e.hh.hasElemSeparators()
  6001. ee.WriteMapStart(len(v))
  6002. if e.h.Canonical {
  6003. v2 := make([]uint64, len(v))
  6004. var i uint
  6005. for k := range v {
  6006. v2[i] = uint64(k)
  6007. i++
  6008. }
  6009. sort.Sort(uintSlice(v2))
  6010. if esep {
  6011. for _, k2 := range v2 {
  6012. ee.WriteMapElemKey()
  6013. ee.EncodeUint(uint64(uint(k2)))
  6014. ee.WriteMapElemValue()
  6015. ee.EncodeInt(int64(v[uint(k2)]))
  6016. }
  6017. } else {
  6018. for _, k2 := range v2 {
  6019. ee.EncodeUint(uint64(uint(k2)))
  6020. ee.EncodeInt(int64(v[uint(k2)]))
  6021. }
  6022. }
  6023. } else {
  6024. if esep {
  6025. for k2, v2 := range v {
  6026. ee.WriteMapElemKey()
  6027. ee.EncodeUint(uint64(k2))
  6028. ee.WriteMapElemValue()
  6029. ee.EncodeInt(int64(v2))
  6030. }
  6031. } else {
  6032. for k2, v2 := range v {
  6033. ee.EncodeUint(uint64(k2))
  6034. ee.EncodeInt(int64(v2))
  6035. }
  6036. }
  6037. }
  6038. ee.WriteMapEnd()
  6039. }
  6040. func (e *Encoder) fastpathEncMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  6041. fastpathTV.EncMapUintFloat32V(rv2i(rv).(map[uint]float32), e)
  6042. }
  6043. func (_ fastpathT) EncMapUintFloat32V(v map[uint]float32, e *Encoder) {
  6044. if v == nil {
  6045. e.e.EncodeNil()
  6046. return
  6047. }
  6048. ee, esep := e.e, e.hh.hasElemSeparators()
  6049. ee.WriteMapStart(len(v))
  6050. if e.h.Canonical {
  6051. v2 := make([]uint64, len(v))
  6052. var i uint
  6053. for k := range v {
  6054. v2[i] = uint64(k)
  6055. i++
  6056. }
  6057. sort.Sort(uintSlice(v2))
  6058. if esep {
  6059. for _, k2 := range v2 {
  6060. ee.WriteMapElemKey()
  6061. ee.EncodeUint(uint64(uint(k2)))
  6062. ee.WriteMapElemValue()
  6063. ee.EncodeFloat32(v[uint(k2)])
  6064. }
  6065. } else {
  6066. for _, k2 := range v2 {
  6067. ee.EncodeUint(uint64(uint(k2)))
  6068. ee.EncodeFloat32(v[uint(k2)])
  6069. }
  6070. }
  6071. } else {
  6072. if esep {
  6073. for k2, v2 := range v {
  6074. ee.WriteMapElemKey()
  6075. ee.EncodeUint(uint64(k2))
  6076. ee.WriteMapElemValue()
  6077. ee.EncodeFloat32(v2)
  6078. }
  6079. } else {
  6080. for k2, v2 := range v {
  6081. ee.EncodeUint(uint64(k2))
  6082. ee.EncodeFloat32(v2)
  6083. }
  6084. }
  6085. }
  6086. ee.WriteMapEnd()
  6087. }
  6088. func (e *Encoder) fastpathEncMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  6089. fastpathTV.EncMapUintFloat64V(rv2i(rv).(map[uint]float64), e)
  6090. }
  6091. func (_ fastpathT) EncMapUintFloat64V(v map[uint]float64, e *Encoder) {
  6092. if v == nil {
  6093. e.e.EncodeNil()
  6094. return
  6095. }
  6096. ee, esep := e.e, e.hh.hasElemSeparators()
  6097. ee.WriteMapStart(len(v))
  6098. if e.h.Canonical {
  6099. v2 := make([]uint64, len(v))
  6100. var i uint
  6101. for k := range v {
  6102. v2[i] = uint64(k)
  6103. i++
  6104. }
  6105. sort.Sort(uintSlice(v2))
  6106. if esep {
  6107. for _, k2 := range v2 {
  6108. ee.WriteMapElemKey()
  6109. ee.EncodeUint(uint64(uint(k2)))
  6110. ee.WriteMapElemValue()
  6111. ee.EncodeFloat64(v[uint(k2)])
  6112. }
  6113. } else {
  6114. for _, k2 := range v2 {
  6115. ee.EncodeUint(uint64(uint(k2)))
  6116. ee.EncodeFloat64(v[uint(k2)])
  6117. }
  6118. }
  6119. } else {
  6120. if esep {
  6121. for k2, v2 := range v {
  6122. ee.WriteMapElemKey()
  6123. ee.EncodeUint(uint64(k2))
  6124. ee.WriteMapElemValue()
  6125. ee.EncodeFloat64(v2)
  6126. }
  6127. } else {
  6128. for k2, v2 := range v {
  6129. ee.EncodeUint(uint64(k2))
  6130. ee.EncodeFloat64(v2)
  6131. }
  6132. }
  6133. }
  6134. ee.WriteMapEnd()
  6135. }
  6136. func (e *Encoder) fastpathEncMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  6137. fastpathTV.EncMapUintBoolV(rv2i(rv).(map[uint]bool), e)
  6138. }
  6139. func (_ fastpathT) EncMapUintBoolV(v map[uint]bool, e *Encoder) {
  6140. if v == nil {
  6141. e.e.EncodeNil()
  6142. return
  6143. }
  6144. ee, esep := e.e, e.hh.hasElemSeparators()
  6145. ee.WriteMapStart(len(v))
  6146. if e.h.Canonical {
  6147. v2 := make([]uint64, len(v))
  6148. var i uint
  6149. for k := range v {
  6150. v2[i] = uint64(k)
  6151. i++
  6152. }
  6153. sort.Sort(uintSlice(v2))
  6154. if esep {
  6155. for _, k2 := range v2 {
  6156. ee.WriteMapElemKey()
  6157. ee.EncodeUint(uint64(uint(k2)))
  6158. ee.WriteMapElemValue()
  6159. ee.EncodeBool(v[uint(k2)])
  6160. }
  6161. } else {
  6162. for _, k2 := range v2 {
  6163. ee.EncodeUint(uint64(uint(k2)))
  6164. ee.EncodeBool(v[uint(k2)])
  6165. }
  6166. }
  6167. } else {
  6168. if esep {
  6169. for k2, v2 := range v {
  6170. ee.WriteMapElemKey()
  6171. ee.EncodeUint(uint64(k2))
  6172. ee.WriteMapElemValue()
  6173. ee.EncodeBool(v2)
  6174. }
  6175. } else {
  6176. for k2, v2 := range v {
  6177. ee.EncodeUint(uint64(k2))
  6178. ee.EncodeBool(v2)
  6179. }
  6180. }
  6181. }
  6182. ee.WriteMapEnd()
  6183. }
  6184. func (e *Encoder) fastpathEncMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  6185. fastpathTV.EncMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), e)
  6186. }
  6187. func (_ fastpathT) EncMapUint8IntfV(v map[uint8]interface{}, e *Encoder) {
  6188. if v == nil {
  6189. e.e.EncodeNil()
  6190. return
  6191. }
  6192. ee, esep := e.e, e.hh.hasElemSeparators()
  6193. ee.WriteMapStart(len(v))
  6194. if e.h.Canonical {
  6195. v2 := make([]uint64, len(v))
  6196. var i uint
  6197. for k := range v {
  6198. v2[i] = uint64(k)
  6199. i++
  6200. }
  6201. sort.Sort(uintSlice(v2))
  6202. if esep {
  6203. for _, k2 := range v2 {
  6204. ee.WriteMapElemKey()
  6205. ee.EncodeUint(uint64(uint8(k2)))
  6206. ee.WriteMapElemValue()
  6207. e.encode(v[uint8(k2)])
  6208. }
  6209. } else {
  6210. for _, k2 := range v2 {
  6211. ee.EncodeUint(uint64(uint8(k2)))
  6212. e.encode(v[uint8(k2)])
  6213. }
  6214. }
  6215. } else {
  6216. if esep {
  6217. for k2, v2 := range v {
  6218. ee.WriteMapElemKey()
  6219. ee.EncodeUint(uint64(k2))
  6220. ee.WriteMapElemValue()
  6221. e.encode(v2)
  6222. }
  6223. } else {
  6224. for k2, v2 := range v {
  6225. ee.EncodeUint(uint64(k2))
  6226. e.encode(v2)
  6227. }
  6228. }
  6229. }
  6230. ee.WriteMapEnd()
  6231. }
  6232. func (e *Encoder) fastpathEncMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  6233. fastpathTV.EncMapUint8StringV(rv2i(rv).(map[uint8]string), e)
  6234. }
  6235. func (_ fastpathT) EncMapUint8StringV(v map[uint8]string, e *Encoder) {
  6236. if v == nil {
  6237. e.e.EncodeNil()
  6238. return
  6239. }
  6240. ee, esep := e.e, e.hh.hasElemSeparators()
  6241. ee.WriteMapStart(len(v))
  6242. if e.h.Canonical {
  6243. v2 := make([]uint64, len(v))
  6244. var i uint
  6245. for k := range v {
  6246. v2[i] = uint64(k)
  6247. i++
  6248. }
  6249. sort.Sort(uintSlice(v2))
  6250. if esep {
  6251. for _, k2 := range v2 {
  6252. ee.WriteMapElemKey()
  6253. ee.EncodeUint(uint64(uint8(k2)))
  6254. ee.WriteMapElemValue()
  6255. ee.EncodeStringEnc(cUTF8, v[uint8(k2)])
  6256. }
  6257. } else {
  6258. for _, k2 := range v2 {
  6259. ee.EncodeUint(uint64(uint8(k2)))
  6260. ee.EncodeStringEnc(cUTF8, v[uint8(k2)])
  6261. }
  6262. }
  6263. } else {
  6264. if esep {
  6265. for k2, v2 := range v {
  6266. ee.WriteMapElemKey()
  6267. ee.EncodeUint(uint64(k2))
  6268. ee.WriteMapElemValue()
  6269. ee.EncodeStringEnc(cUTF8, v2)
  6270. }
  6271. } else {
  6272. for k2, v2 := range v {
  6273. ee.EncodeUint(uint64(k2))
  6274. ee.EncodeStringEnc(cUTF8, v2)
  6275. }
  6276. }
  6277. }
  6278. ee.WriteMapEnd()
  6279. }
  6280. func (e *Encoder) fastpathEncMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  6281. fastpathTV.EncMapUint8UintV(rv2i(rv).(map[uint8]uint), e)
  6282. }
  6283. func (_ fastpathT) EncMapUint8UintV(v map[uint8]uint, e *Encoder) {
  6284. if v == nil {
  6285. e.e.EncodeNil()
  6286. return
  6287. }
  6288. ee, esep := e.e, e.hh.hasElemSeparators()
  6289. ee.WriteMapStart(len(v))
  6290. if e.h.Canonical {
  6291. v2 := make([]uint64, len(v))
  6292. var i uint
  6293. for k := range v {
  6294. v2[i] = uint64(k)
  6295. i++
  6296. }
  6297. sort.Sort(uintSlice(v2))
  6298. if esep {
  6299. for _, k2 := range v2 {
  6300. ee.WriteMapElemKey()
  6301. ee.EncodeUint(uint64(uint8(k2)))
  6302. ee.WriteMapElemValue()
  6303. ee.EncodeUint(uint64(v[uint8(k2)]))
  6304. }
  6305. } else {
  6306. for _, k2 := range v2 {
  6307. ee.EncodeUint(uint64(uint8(k2)))
  6308. ee.EncodeUint(uint64(v[uint8(k2)]))
  6309. }
  6310. }
  6311. } else {
  6312. if esep {
  6313. for k2, v2 := range v {
  6314. ee.WriteMapElemKey()
  6315. ee.EncodeUint(uint64(k2))
  6316. ee.WriteMapElemValue()
  6317. ee.EncodeUint(uint64(v2))
  6318. }
  6319. } else {
  6320. for k2, v2 := range v {
  6321. ee.EncodeUint(uint64(k2))
  6322. ee.EncodeUint(uint64(v2))
  6323. }
  6324. }
  6325. }
  6326. ee.WriteMapEnd()
  6327. }
  6328. func (e *Encoder) fastpathEncMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  6329. fastpathTV.EncMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), e)
  6330. }
  6331. func (_ fastpathT) EncMapUint8Uint8V(v map[uint8]uint8, e *Encoder) {
  6332. if v == nil {
  6333. e.e.EncodeNil()
  6334. return
  6335. }
  6336. ee, esep := e.e, e.hh.hasElemSeparators()
  6337. ee.WriteMapStart(len(v))
  6338. if e.h.Canonical {
  6339. v2 := make([]uint64, len(v))
  6340. var i uint
  6341. for k := range v {
  6342. v2[i] = uint64(k)
  6343. i++
  6344. }
  6345. sort.Sort(uintSlice(v2))
  6346. if esep {
  6347. for _, k2 := range v2 {
  6348. ee.WriteMapElemKey()
  6349. ee.EncodeUint(uint64(uint8(k2)))
  6350. ee.WriteMapElemValue()
  6351. ee.EncodeUint(uint64(v[uint8(k2)]))
  6352. }
  6353. } else {
  6354. for _, k2 := range v2 {
  6355. ee.EncodeUint(uint64(uint8(k2)))
  6356. ee.EncodeUint(uint64(v[uint8(k2)]))
  6357. }
  6358. }
  6359. } else {
  6360. if esep {
  6361. for k2, v2 := range v {
  6362. ee.WriteMapElemKey()
  6363. ee.EncodeUint(uint64(k2))
  6364. ee.WriteMapElemValue()
  6365. ee.EncodeUint(uint64(v2))
  6366. }
  6367. } else {
  6368. for k2, v2 := range v {
  6369. ee.EncodeUint(uint64(k2))
  6370. ee.EncodeUint(uint64(v2))
  6371. }
  6372. }
  6373. }
  6374. ee.WriteMapEnd()
  6375. }
  6376. func (e *Encoder) fastpathEncMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  6377. fastpathTV.EncMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), e)
  6378. }
  6379. func (_ fastpathT) EncMapUint8Uint16V(v map[uint8]uint16, e *Encoder) {
  6380. if v == nil {
  6381. e.e.EncodeNil()
  6382. return
  6383. }
  6384. ee, esep := e.e, e.hh.hasElemSeparators()
  6385. ee.WriteMapStart(len(v))
  6386. if e.h.Canonical {
  6387. v2 := make([]uint64, len(v))
  6388. var i uint
  6389. for k := range v {
  6390. v2[i] = uint64(k)
  6391. i++
  6392. }
  6393. sort.Sort(uintSlice(v2))
  6394. if esep {
  6395. for _, k2 := range v2 {
  6396. ee.WriteMapElemKey()
  6397. ee.EncodeUint(uint64(uint8(k2)))
  6398. ee.WriteMapElemValue()
  6399. ee.EncodeUint(uint64(v[uint8(k2)]))
  6400. }
  6401. } else {
  6402. for _, k2 := range v2 {
  6403. ee.EncodeUint(uint64(uint8(k2)))
  6404. ee.EncodeUint(uint64(v[uint8(k2)]))
  6405. }
  6406. }
  6407. } else {
  6408. if esep {
  6409. for k2, v2 := range v {
  6410. ee.WriteMapElemKey()
  6411. ee.EncodeUint(uint64(k2))
  6412. ee.WriteMapElemValue()
  6413. ee.EncodeUint(uint64(v2))
  6414. }
  6415. } else {
  6416. for k2, v2 := range v {
  6417. ee.EncodeUint(uint64(k2))
  6418. ee.EncodeUint(uint64(v2))
  6419. }
  6420. }
  6421. }
  6422. ee.WriteMapEnd()
  6423. }
  6424. func (e *Encoder) fastpathEncMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  6425. fastpathTV.EncMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), e)
  6426. }
  6427. func (_ fastpathT) EncMapUint8Uint32V(v map[uint8]uint32, e *Encoder) {
  6428. if v == nil {
  6429. e.e.EncodeNil()
  6430. return
  6431. }
  6432. ee, esep := e.e, e.hh.hasElemSeparators()
  6433. ee.WriteMapStart(len(v))
  6434. if e.h.Canonical {
  6435. v2 := make([]uint64, len(v))
  6436. var i uint
  6437. for k := range v {
  6438. v2[i] = uint64(k)
  6439. i++
  6440. }
  6441. sort.Sort(uintSlice(v2))
  6442. if esep {
  6443. for _, k2 := range v2 {
  6444. ee.WriteMapElemKey()
  6445. ee.EncodeUint(uint64(uint8(k2)))
  6446. ee.WriteMapElemValue()
  6447. ee.EncodeUint(uint64(v[uint8(k2)]))
  6448. }
  6449. } else {
  6450. for _, k2 := range v2 {
  6451. ee.EncodeUint(uint64(uint8(k2)))
  6452. ee.EncodeUint(uint64(v[uint8(k2)]))
  6453. }
  6454. }
  6455. } else {
  6456. if esep {
  6457. for k2, v2 := range v {
  6458. ee.WriteMapElemKey()
  6459. ee.EncodeUint(uint64(k2))
  6460. ee.WriteMapElemValue()
  6461. ee.EncodeUint(uint64(v2))
  6462. }
  6463. } else {
  6464. for k2, v2 := range v {
  6465. ee.EncodeUint(uint64(k2))
  6466. ee.EncodeUint(uint64(v2))
  6467. }
  6468. }
  6469. }
  6470. ee.WriteMapEnd()
  6471. }
  6472. func (e *Encoder) fastpathEncMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  6473. fastpathTV.EncMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), e)
  6474. }
  6475. func (_ fastpathT) EncMapUint8Uint64V(v map[uint8]uint64, e *Encoder) {
  6476. if v == nil {
  6477. e.e.EncodeNil()
  6478. return
  6479. }
  6480. ee, esep := e.e, e.hh.hasElemSeparators()
  6481. ee.WriteMapStart(len(v))
  6482. if e.h.Canonical {
  6483. v2 := make([]uint64, len(v))
  6484. var i uint
  6485. for k := range v {
  6486. v2[i] = uint64(k)
  6487. i++
  6488. }
  6489. sort.Sort(uintSlice(v2))
  6490. if esep {
  6491. for _, k2 := range v2 {
  6492. ee.WriteMapElemKey()
  6493. ee.EncodeUint(uint64(uint8(k2)))
  6494. ee.WriteMapElemValue()
  6495. ee.EncodeUint(uint64(v[uint8(k2)]))
  6496. }
  6497. } else {
  6498. for _, k2 := range v2 {
  6499. ee.EncodeUint(uint64(uint8(k2)))
  6500. ee.EncodeUint(uint64(v[uint8(k2)]))
  6501. }
  6502. }
  6503. } else {
  6504. if esep {
  6505. for k2, v2 := range v {
  6506. ee.WriteMapElemKey()
  6507. ee.EncodeUint(uint64(k2))
  6508. ee.WriteMapElemValue()
  6509. ee.EncodeUint(uint64(v2))
  6510. }
  6511. } else {
  6512. for k2, v2 := range v {
  6513. ee.EncodeUint(uint64(k2))
  6514. ee.EncodeUint(uint64(v2))
  6515. }
  6516. }
  6517. }
  6518. ee.WriteMapEnd()
  6519. }
  6520. func (e *Encoder) fastpathEncMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  6521. fastpathTV.EncMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), e)
  6522. }
  6523. func (_ fastpathT) EncMapUint8UintptrV(v map[uint8]uintptr, e *Encoder) {
  6524. if v == nil {
  6525. e.e.EncodeNil()
  6526. return
  6527. }
  6528. ee, esep := e.e, e.hh.hasElemSeparators()
  6529. ee.WriteMapStart(len(v))
  6530. if e.h.Canonical {
  6531. v2 := make([]uint64, len(v))
  6532. var i uint
  6533. for k := range v {
  6534. v2[i] = uint64(k)
  6535. i++
  6536. }
  6537. sort.Sort(uintSlice(v2))
  6538. if esep {
  6539. for _, k2 := range v2 {
  6540. ee.WriteMapElemKey()
  6541. ee.EncodeUint(uint64(uint8(k2)))
  6542. ee.WriteMapElemValue()
  6543. e.encode(v[uint8(k2)])
  6544. }
  6545. } else {
  6546. for _, k2 := range v2 {
  6547. ee.EncodeUint(uint64(uint8(k2)))
  6548. e.encode(v[uint8(k2)])
  6549. }
  6550. }
  6551. } else {
  6552. if esep {
  6553. for k2, v2 := range v {
  6554. ee.WriteMapElemKey()
  6555. ee.EncodeUint(uint64(k2))
  6556. ee.WriteMapElemValue()
  6557. e.encode(v2)
  6558. }
  6559. } else {
  6560. for k2, v2 := range v {
  6561. ee.EncodeUint(uint64(k2))
  6562. e.encode(v2)
  6563. }
  6564. }
  6565. }
  6566. ee.WriteMapEnd()
  6567. }
  6568. func (e *Encoder) fastpathEncMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  6569. fastpathTV.EncMapUint8IntV(rv2i(rv).(map[uint8]int), e)
  6570. }
  6571. func (_ fastpathT) EncMapUint8IntV(v map[uint8]int, e *Encoder) {
  6572. if v == nil {
  6573. e.e.EncodeNil()
  6574. return
  6575. }
  6576. ee, esep := e.e, e.hh.hasElemSeparators()
  6577. ee.WriteMapStart(len(v))
  6578. if e.h.Canonical {
  6579. v2 := make([]uint64, len(v))
  6580. var i uint
  6581. for k := range v {
  6582. v2[i] = uint64(k)
  6583. i++
  6584. }
  6585. sort.Sort(uintSlice(v2))
  6586. if esep {
  6587. for _, k2 := range v2 {
  6588. ee.WriteMapElemKey()
  6589. ee.EncodeUint(uint64(uint8(k2)))
  6590. ee.WriteMapElemValue()
  6591. ee.EncodeInt(int64(v[uint8(k2)]))
  6592. }
  6593. } else {
  6594. for _, k2 := range v2 {
  6595. ee.EncodeUint(uint64(uint8(k2)))
  6596. ee.EncodeInt(int64(v[uint8(k2)]))
  6597. }
  6598. }
  6599. } else {
  6600. if esep {
  6601. for k2, v2 := range v {
  6602. ee.WriteMapElemKey()
  6603. ee.EncodeUint(uint64(k2))
  6604. ee.WriteMapElemValue()
  6605. ee.EncodeInt(int64(v2))
  6606. }
  6607. } else {
  6608. for k2, v2 := range v {
  6609. ee.EncodeUint(uint64(k2))
  6610. ee.EncodeInt(int64(v2))
  6611. }
  6612. }
  6613. }
  6614. ee.WriteMapEnd()
  6615. }
  6616. func (e *Encoder) fastpathEncMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  6617. fastpathTV.EncMapUint8Int8V(rv2i(rv).(map[uint8]int8), e)
  6618. }
  6619. func (_ fastpathT) EncMapUint8Int8V(v map[uint8]int8, e *Encoder) {
  6620. if v == nil {
  6621. e.e.EncodeNil()
  6622. return
  6623. }
  6624. ee, esep := e.e, e.hh.hasElemSeparators()
  6625. ee.WriteMapStart(len(v))
  6626. if e.h.Canonical {
  6627. v2 := make([]uint64, len(v))
  6628. var i uint
  6629. for k := range v {
  6630. v2[i] = uint64(k)
  6631. i++
  6632. }
  6633. sort.Sort(uintSlice(v2))
  6634. if esep {
  6635. for _, k2 := range v2 {
  6636. ee.WriteMapElemKey()
  6637. ee.EncodeUint(uint64(uint8(k2)))
  6638. ee.WriteMapElemValue()
  6639. ee.EncodeInt(int64(v[uint8(k2)]))
  6640. }
  6641. } else {
  6642. for _, k2 := range v2 {
  6643. ee.EncodeUint(uint64(uint8(k2)))
  6644. ee.EncodeInt(int64(v[uint8(k2)]))
  6645. }
  6646. }
  6647. } else {
  6648. if esep {
  6649. for k2, v2 := range v {
  6650. ee.WriteMapElemKey()
  6651. ee.EncodeUint(uint64(k2))
  6652. ee.WriteMapElemValue()
  6653. ee.EncodeInt(int64(v2))
  6654. }
  6655. } else {
  6656. for k2, v2 := range v {
  6657. ee.EncodeUint(uint64(k2))
  6658. ee.EncodeInt(int64(v2))
  6659. }
  6660. }
  6661. }
  6662. ee.WriteMapEnd()
  6663. }
  6664. func (e *Encoder) fastpathEncMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  6665. fastpathTV.EncMapUint8Int16V(rv2i(rv).(map[uint8]int16), e)
  6666. }
  6667. func (_ fastpathT) EncMapUint8Int16V(v map[uint8]int16, e *Encoder) {
  6668. if v == nil {
  6669. e.e.EncodeNil()
  6670. return
  6671. }
  6672. ee, esep := e.e, e.hh.hasElemSeparators()
  6673. ee.WriteMapStart(len(v))
  6674. if e.h.Canonical {
  6675. v2 := make([]uint64, len(v))
  6676. var i uint
  6677. for k := range v {
  6678. v2[i] = uint64(k)
  6679. i++
  6680. }
  6681. sort.Sort(uintSlice(v2))
  6682. if esep {
  6683. for _, k2 := range v2 {
  6684. ee.WriteMapElemKey()
  6685. ee.EncodeUint(uint64(uint8(k2)))
  6686. ee.WriteMapElemValue()
  6687. ee.EncodeInt(int64(v[uint8(k2)]))
  6688. }
  6689. } else {
  6690. for _, k2 := range v2 {
  6691. ee.EncodeUint(uint64(uint8(k2)))
  6692. ee.EncodeInt(int64(v[uint8(k2)]))
  6693. }
  6694. }
  6695. } else {
  6696. if esep {
  6697. for k2, v2 := range v {
  6698. ee.WriteMapElemKey()
  6699. ee.EncodeUint(uint64(k2))
  6700. ee.WriteMapElemValue()
  6701. ee.EncodeInt(int64(v2))
  6702. }
  6703. } else {
  6704. for k2, v2 := range v {
  6705. ee.EncodeUint(uint64(k2))
  6706. ee.EncodeInt(int64(v2))
  6707. }
  6708. }
  6709. }
  6710. ee.WriteMapEnd()
  6711. }
  6712. func (e *Encoder) fastpathEncMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  6713. fastpathTV.EncMapUint8Int32V(rv2i(rv).(map[uint8]int32), e)
  6714. }
  6715. func (_ fastpathT) EncMapUint8Int32V(v map[uint8]int32, e *Encoder) {
  6716. if v == nil {
  6717. e.e.EncodeNil()
  6718. return
  6719. }
  6720. ee, esep := e.e, e.hh.hasElemSeparators()
  6721. ee.WriteMapStart(len(v))
  6722. if e.h.Canonical {
  6723. v2 := make([]uint64, len(v))
  6724. var i uint
  6725. for k := range v {
  6726. v2[i] = uint64(k)
  6727. i++
  6728. }
  6729. sort.Sort(uintSlice(v2))
  6730. if esep {
  6731. for _, k2 := range v2 {
  6732. ee.WriteMapElemKey()
  6733. ee.EncodeUint(uint64(uint8(k2)))
  6734. ee.WriteMapElemValue()
  6735. ee.EncodeInt(int64(v[uint8(k2)]))
  6736. }
  6737. } else {
  6738. for _, k2 := range v2 {
  6739. ee.EncodeUint(uint64(uint8(k2)))
  6740. ee.EncodeInt(int64(v[uint8(k2)]))
  6741. }
  6742. }
  6743. } else {
  6744. if esep {
  6745. for k2, v2 := range v {
  6746. ee.WriteMapElemKey()
  6747. ee.EncodeUint(uint64(k2))
  6748. ee.WriteMapElemValue()
  6749. ee.EncodeInt(int64(v2))
  6750. }
  6751. } else {
  6752. for k2, v2 := range v {
  6753. ee.EncodeUint(uint64(k2))
  6754. ee.EncodeInt(int64(v2))
  6755. }
  6756. }
  6757. }
  6758. ee.WriteMapEnd()
  6759. }
  6760. func (e *Encoder) fastpathEncMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  6761. fastpathTV.EncMapUint8Int64V(rv2i(rv).(map[uint8]int64), e)
  6762. }
  6763. func (_ fastpathT) EncMapUint8Int64V(v map[uint8]int64, e *Encoder) {
  6764. if v == nil {
  6765. e.e.EncodeNil()
  6766. return
  6767. }
  6768. ee, esep := e.e, e.hh.hasElemSeparators()
  6769. ee.WriteMapStart(len(v))
  6770. if e.h.Canonical {
  6771. v2 := make([]uint64, len(v))
  6772. var i uint
  6773. for k := range v {
  6774. v2[i] = uint64(k)
  6775. i++
  6776. }
  6777. sort.Sort(uintSlice(v2))
  6778. if esep {
  6779. for _, k2 := range v2 {
  6780. ee.WriteMapElemKey()
  6781. ee.EncodeUint(uint64(uint8(k2)))
  6782. ee.WriteMapElemValue()
  6783. ee.EncodeInt(int64(v[uint8(k2)]))
  6784. }
  6785. } else {
  6786. for _, k2 := range v2 {
  6787. ee.EncodeUint(uint64(uint8(k2)))
  6788. ee.EncodeInt(int64(v[uint8(k2)]))
  6789. }
  6790. }
  6791. } else {
  6792. if esep {
  6793. for k2, v2 := range v {
  6794. ee.WriteMapElemKey()
  6795. ee.EncodeUint(uint64(k2))
  6796. ee.WriteMapElemValue()
  6797. ee.EncodeInt(int64(v2))
  6798. }
  6799. } else {
  6800. for k2, v2 := range v {
  6801. ee.EncodeUint(uint64(k2))
  6802. ee.EncodeInt(int64(v2))
  6803. }
  6804. }
  6805. }
  6806. ee.WriteMapEnd()
  6807. }
  6808. func (e *Encoder) fastpathEncMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  6809. fastpathTV.EncMapUint8Float32V(rv2i(rv).(map[uint8]float32), e)
  6810. }
  6811. func (_ fastpathT) EncMapUint8Float32V(v map[uint8]float32, e *Encoder) {
  6812. if v == nil {
  6813. e.e.EncodeNil()
  6814. return
  6815. }
  6816. ee, esep := e.e, e.hh.hasElemSeparators()
  6817. ee.WriteMapStart(len(v))
  6818. if e.h.Canonical {
  6819. v2 := make([]uint64, len(v))
  6820. var i uint
  6821. for k := range v {
  6822. v2[i] = uint64(k)
  6823. i++
  6824. }
  6825. sort.Sort(uintSlice(v2))
  6826. if esep {
  6827. for _, k2 := range v2 {
  6828. ee.WriteMapElemKey()
  6829. ee.EncodeUint(uint64(uint8(k2)))
  6830. ee.WriteMapElemValue()
  6831. ee.EncodeFloat32(v[uint8(k2)])
  6832. }
  6833. } else {
  6834. for _, k2 := range v2 {
  6835. ee.EncodeUint(uint64(uint8(k2)))
  6836. ee.EncodeFloat32(v[uint8(k2)])
  6837. }
  6838. }
  6839. } else {
  6840. if esep {
  6841. for k2, v2 := range v {
  6842. ee.WriteMapElemKey()
  6843. ee.EncodeUint(uint64(k2))
  6844. ee.WriteMapElemValue()
  6845. ee.EncodeFloat32(v2)
  6846. }
  6847. } else {
  6848. for k2, v2 := range v {
  6849. ee.EncodeUint(uint64(k2))
  6850. ee.EncodeFloat32(v2)
  6851. }
  6852. }
  6853. }
  6854. ee.WriteMapEnd()
  6855. }
  6856. func (e *Encoder) fastpathEncMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  6857. fastpathTV.EncMapUint8Float64V(rv2i(rv).(map[uint8]float64), e)
  6858. }
  6859. func (_ fastpathT) EncMapUint8Float64V(v map[uint8]float64, e *Encoder) {
  6860. if v == nil {
  6861. e.e.EncodeNil()
  6862. return
  6863. }
  6864. ee, esep := e.e, e.hh.hasElemSeparators()
  6865. ee.WriteMapStart(len(v))
  6866. if e.h.Canonical {
  6867. v2 := make([]uint64, len(v))
  6868. var i uint
  6869. for k := range v {
  6870. v2[i] = uint64(k)
  6871. i++
  6872. }
  6873. sort.Sort(uintSlice(v2))
  6874. if esep {
  6875. for _, k2 := range v2 {
  6876. ee.WriteMapElemKey()
  6877. ee.EncodeUint(uint64(uint8(k2)))
  6878. ee.WriteMapElemValue()
  6879. ee.EncodeFloat64(v[uint8(k2)])
  6880. }
  6881. } else {
  6882. for _, k2 := range v2 {
  6883. ee.EncodeUint(uint64(uint8(k2)))
  6884. ee.EncodeFloat64(v[uint8(k2)])
  6885. }
  6886. }
  6887. } else {
  6888. if esep {
  6889. for k2, v2 := range v {
  6890. ee.WriteMapElemKey()
  6891. ee.EncodeUint(uint64(k2))
  6892. ee.WriteMapElemValue()
  6893. ee.EncodeFloat64(v2)
  6894. }
  6895. } else {
  6896. for k2, v2 := range v {
  6897. ee.EncodeUint(uint64(k2))
  6898. ee.EncodeFloat64(v2)
  6899. }
  6900. }
  6901. }
  6902. ee.WriteMapEnd()
  6903. }
  6904. func (e *Encoder) fastpathEncMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  6905. fastpathTV.EncMapUint8BoolV(rv2i(rv).(map[uint8]bool), e)
  6906. }
  6907. func (_ fastpathT) EncMapUint8BoolV(v map[uint8]bool, e *Encoder) {
  6908. if v == nil {
  6909. e.e.EncodeNil()
  6910. return
  6911. }
  6912. ee, esep := e.e, e.hh.hasElemSeparators()
  6913. ee.WriteMapStart(len(v))
  6914. if e.h.Canonical {
  6915. v2 := make([]uint64, len(v))
  6916. var i uint
  6917. for k := range v {
  6918. v2[i] = uint64(k)
  6919. i++
  6920. }
  6921. sort.Sort(uintSlice(v2))
  6922. if esep {
  6923. for _, k2 := range v2 {
  6924. ee.WriteMapElemKey()
  6925. ee.EncodeUint(uint64(uint8(k2)))
  6926. ee.WriteMapElemValue()
  6927. ee.EncodeBool(v[uint8(k2)])
  6928. }
  6929. } else {
  6930. for _, k2 := range v2 {
  6931. ee.EncodeUint(uint64(uint8(k2)))
  6932. ee.EncodeBool(v[uint8(k2)])
  6933. }
  6934. }
  6935. } else {
  6936. if esep {
  6937. for k2, v2 := range v {
  6938. ee.WriteMapElemKey()
  6939. ee.EncodeUint(uint64(k2))
  6940. ee.WriteMapElemValue()
  6941. ee.EncodeBool(v2)
  6942. }
  6943. } else {
  6944. for k2, v2 := range v {
  6945. ee.EncodeUint(uint64(k2))
  6946. ee.EncodeBool(v2)
  6947. }
  6948. }
  6949. }
  6950. ee.WriteMapEnd()
  6951. }
  6952. func (e *Encoder) fastpathEncMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  6953. fastpathTV.EncMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), e)
  6954. }
  6955. func (_ fastpathT) EncMapUint16IntfV(v map[uint16]interface{}, e *Encoder) {
  6956. if v == nil {
  6957. e.e.EncodeNil()
  6958. return
  6959. }
  6960. ee, esep := e.e, e.hh.hasElemSeparators()
  6961. ee.WriteMapStart(len(v))
  6962. if e.h.Canonical {
  6963. v2 := make([]uint64, len(v))
  6964. var i uint
  6965. for k := range v {
  6966. v2[i] = uint64(k)
  6967. i++
  6968. }
  6969. sort.Sort(uintSlice(v2))
  6970. if esep {
  6971. for _, k2 := range v2 {
  6972. ee.WriteMapElemKey()
  6973. ee.EncodeUint(uint64(uint16(k2)))
  6974. ee.WriteMapElemValue()
  6975. e.encode(v[uint16(k2)])
  6976. }
  6977. } else {
  6978. for _, k2 := range v2 {
  6979. ee.EncodeUint(uint64(uint16(k2)))
  6980. e.encode(v[uint16(k2)])
  6981. }
  6982. }
  6983. } else {
  6984. if esep {
  6985. for k2, v2 := range v {
  6986. ee.WriteMapElemKey()
  6987. ee.EncodeUint(uint64(k2))
  6988. ee.WriteMapElemValue()
  6989. e.encode(v2)
  6990. }
  6991. } else {
  6992. for k2, v2 := range v {
  6993. ee.EncodeUint(uint64(k2))
  6994. e.encode(v2)
  6995. }
  6996. }
  6997. }
  6998. ee.WriteMapEnd()
  6999. }
  7000. func (e *Encoder) fastpathEncMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  7001. fastpathTV.EncMapUint16StringV(rv2i(rv).(map[uint16]string), e)
  7002. }
  7003. func (_ fastpathT) EncMapUint16StringV(v map[uint16]string, e *Encoder) {
  7004. if v == nil {
  7005. e.e.EncodeNil()
  7006. return
  7007. }
  7008. ee, esep := e.e, e.hh.hasElemSeparators()
  7009. ee.WriteMapStart(len(v))
  7010. if e.h.Canonical {
  7011. v2 := make([]uint64, len(v))
  7012. var i uint
  7013. for k := range v {
  7014. v2[i] = uint64(k)
  7015. i++
  7016. }
  7017. sort.Sort(uintSlice(v2))
  7018. if esep {
  7019. for _, k2 := range v2 {
  7020. ee.WriteMapElemKey()
  7021. ee.EncodeUint(uint64(uint16(k2)))
  7022. ee.WriteMapElemValue()
  7023. ee.EncodeStringEnc(cUTF8, v[uint16(k2)])
  7024. }
  7025. } else {
  7026. for _, k2 := range v2 {
  7027. ee.EncodeUint(uint64(uint16(k2)))
  7028. ee.EncodeStringEnc(cUTF8, v[uint16(k2)])
  7029. }
  7030. }
  7031. } else {
  7032. if esep {
  7033. for k2, v2 := range v {
  7034. ee.WriteMapElemKey()
  7035. ee.EncodeUint(uint64(k2))
  7036. ee.WriteMapElemValue()
  7037. ee.EncodeStringEnc(cUTF8, v2)
  7038. }
  7039. } else {
  7040. for k2, v2 := range v {
  7041. ee.EncodeUint(uint64(k2))
  7042. ee.EncodeStringEnc(cUTF8, v2)
  7043. }
  7044. }
  7045. }
  7046. ee.WriteMapEnd()
  7047. }
  7048. func (e *Encoder) fastpathEncMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  7049. fastpathTV.EncMapUint16UintV(rv2i(rv).(map[uint16]uint), e)
  7050. }
  7051. func (_ fastpathT) EncMapUint16UintV(v map[uint16]uint, e *Encoder) {
  7052. if v == nil {
  7053. e.e.EncodeNil()
  7054. return
  7055. }
  7056. ee, esep := e.e, e.hh.hasElemSeparators()
  7057. ee.WriteMapStart(len(v))
  7058. if e.h.Canonical {
  7059. v2 := make([]uint64, len(v))
  7060. var i uint
  7061. for k := range v {
  7062. v2[i] = uint64(k)
  7063. i++
  7064. }
  7065. sort.Sort(uintSlice(v2))
  7066. if esep {
  7067. for _, k2 := range v2 {
  7068. ee.WriteMapElemKey()
  7069. ee.EncodeUint(uint64(uint16(k2)))
  7070. ee.WriteMapElemValue()
  7071. ee.EncodeUint(uint64(v[uint16(k2)]))
  7072. }
  7073. } else {
  7074. for _, k2 := range v2 {
  7075. ee.EncodeUint(uint64(uint16(k2)))
  7076. ee.EncodeUint(uint64(v[uint16(k2)]))
  7077. }
  7078. }
  7079. } else {
  7080. if esep {
  7081. for k2, v2 := range v {
  7082. ee.WriteMapElemKey()
  7083. ee.EncodeUint(uint64(k2))
  7084. ee.WriteMapElemValue()
  7085. ee.EncodeUint(uint64(v2))
  7086. }
  7087. } else {
  7088. for k2, v2 := range v {
  7089. ee.EncodeUint(uint64(k2))
  7090. ee.EncodeUint(uint64(v2))
  7091. }
  7092. }
  7093. }
  7094. ee.WriteMapEnd()
  7095. }
  7096. func (e *Encoder) fastpathEncMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  7097. fastpathTV.EncMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), e)
  7098. }
  7099. func (_ fastpathT) EncMapUint16Uint8V(v map[uint16]uint8, e *Encoder) {
  7100. if v == nil {
  7101. e.e.EncodeNil()
  7102. return
  7103. }
  7104. ee, esep := e.e, e.hh.hasElemSeparators()
  7105. ee.WriteMapStart(len(v))
  7106. if e.h.Canonical {
  7107. v2 := make([]uint64, len(v))
  7108. var i uint
  7109. for k := range v {
  7110. v2[i] = uint64(k)
  7111. i++
  7112. }
  7113. sort.Sort(uintSlice(v2))
  7114. if esep {
  7115. for _, k2 := range v2 {
  7116. ee.WriteMapElemKey()
  7117. ee.EncodeUint(uint64(uint16(k2)))
  7118. ee.WriteMapElemValue()
  7119. ee.EncodeUint(uint64(v[uint16(k2)]))
  7120. }
  7121. } else {
  7122. for _, k2 := range v2 {
  7123. ee.EncodeUint(uint64(uint16(k2)))
  7124. ee.EncodeUint(uint64(v[uint16(k2)]))
  7125. }
  7126. }
  7127. } else {
  7128. if esep {
  7129. for k2, v2 := range v {
  7130. ee.WriteMapElemKey()
  7131. ee.EncodeUint(uint64(k2))
  7132. ee.WriteMapElemValue()
  7133. ee.EncodeUint(uint64(v2))
  7134. }
  7135. } else {
  7136. for k2, v2 := range v {
  7137. ee.EncodeUint(uint64(k2))
  7138. ee.EncodeUint(uint64(v2))
  7139. }
  7140. }
  7141. }
  7142. ee.WriteMapEnd()
  7143. }
  7144. func (e *Encoder) fastpathEncMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  7145. fastpathTV.EncMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), e)
  7146. }
  7147. func (_ fastpathT) EncMapUint16Uint16V(v map[uint16]uint16, e *Encoder) {
  7148. if v == nil {
  7149. e.e.EncodeNil()
  7150. return
  7151. }
  7152. ee, esep := e.e, e.hh.hasElemSeparators()
  7153. ee.WriteMapStart(len(v))
  7154. if e.h.Canonical {
  7155. v2 := make([]uint64, len(v))
  7156. var i uint
  7157. for k := range v {
  7158. v2[i] = uint64(k)
  7159. i++
  7160. }
  7161. sort.Sort(uintSlice(v2))
  7162. if esep {
  7163. for _, k2 := range v2 {
  7164. ee.WriteMapElemKey()
  7165. ee.EncodeUint(uint64(uint16(k2)))
  7166. ee.WriteMapElemValue()
  7167. ee.EncodeUint(uint64(v[uint16(k2)]))
  7168. }
  7169. } else {
  7170. for _, k2 := range v2 {
  7171. ee.EncodeUint(uint64(uint16(k2)))
  7172. ee.EncodeUint(uint64(v[uint16(k2)]))
  7173. }
  7174. }
  7175. } else {
  7176. if esep {
  7177. for k2, v2 := range v {
  7178. ee.WriteMapElemKey()
  7179. ee.EncodeUint(uint64(k2))
  7180. ee.WriteMapElemValue()
  7181. ee.EncodeUint(uint64(v2))
  7182. }
  7183. } else {
  7184. for k2, v2 := range v {
  7185. ee.EncodeUint(uint64(k2))
  7186. ee.EncodeUint(uint64(v2))
  7187. }
  7188. }
  7189. }
  7190. ee.WriteMapEnd()
  7191. }
  7192. func (e *Encoder) fastpathEncMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  7193. fastpathTV.EncMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), e)
  7194. }
  7195. func (_ fastpathT) EncMapUint16Uint32V(v map[uint16]uint32, e *Encoder) {
  7196. if v == nil {
  7197. e.e.EncodeNil()
  7198. return
  7199. }
  7200. ee, esep := e.e, e.hh.hasElemSeparators()
  7201. ee.WriteMapStart(len(v))
  7202. if e.h.Canonical {
  7203. v2 := make([]uint64, len(v))
  7204. var i uint
  7205. for k := range v {
  7206. v2[i] = uint64(k)
  7207. i++
  7208. }
  7209. sort.Sort(uintSlice(v2))
  7210. if esep {
  7211. for _, k2 := range v2 {
  7212. ee.WriteMapElemKey()
  7213. ee.EncodeUint(uint64(uint16(k2)))
  7214. ee.WriteMapElemValue()
  7215. ee.EncodeUint(uint64(v[uint16(k2)]))
  7216. }
  7217. } else {
  7218. for _, k2 := range v2 {
  7219. ee.EncodeUint(uint64(uint16(k2)))
  7220. ee.EncodeUint(uint64(v[uint16(k2)]))
  7221. }
  7222. }
  7223. } else {
  7224. if esep {
  7225. for k2, v2 := range v {
  7226. ee.WriteMapElemKey()
  7227. ee.EncodeUint(uint64(k2))
  7228. ee.WriteMapElemValue()
  7229. ee.EncodeUint(uint64(v2))
  7230. }
  7231. } else {
  7232. for k2, v2 := range v {
  7233. ee.EncodeUint(uint64(k2))
  7234. ee.EncodeUint(uint64(v2))
  7235. }
  7236. }
  7237. }
  7238. ee.WriteMapEnd()
  7239. }
  7240. func (e *Encoder) fastpathEncMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  7241. fastpathTV.EncMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), e)
  7242. }
  7243. func (_ fastpathT) EncMapUint16Uint64V(v map[uint16]uint64, e *Encoder) {
  7244. if v == nil {
  7245. e.e.EncodeNil()
  7246. return
  7247. }
  7248. ee, esep := e.e, e.hh.hasElemSeparators()
  7249. ee.WriteMapStart(len(v))
  7250. if e.h.Canonical {
  7251. v2 := make([]uint64, len(v))
  7252. var i uint
  7253. for k := range v {
  7254. v2[i] = uint64(k)
  7255. i++
  7256. }
  7257. sort.Sort(uintSlice(v2))
  7258. if esep {
  7259. for _, k2 := range v2 {
  7260. ee.WriteMapElemKey()
  7261. ee.EncodeUint(uint64(uint16(k2)))
  7262. ee.WriteMapElemValue()
  7263. ee.EncodeUint(uint64(v[uint16(k2)]))
  7264. }
  7265. } else {
  7266. for _, k2 := range v2 {
  7267. ee.EncodeUint(uint64(uint16(k2)))
  7268. ee.EncodeUint(uint64(v[uint16(k2)]))
  7269. }
  7270. }
  7271. } else {
  7272. if esep {
  7273. for k2, v2 := range v {
  7274. ee.WriteMapElemKey()
  7275. ee.EncodeUint(uint64(k2))
  7276. ee.WriteMapElemValue()
  7277. ee.EncodeUint(uint64(v2))
  7278. }
  7279. } else {
  7280. for k2, v2 := range v {
  7281. ee.EncodeUint(uint64(k2))
  7282. ee.EncodeUint(uint64(v2))
  7283. }
  7284. }
  7285. }
  7286. ee.WriteMapEnd()
  7287. }
  7288. func (e *Encoder) fastpathEncMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  7289. fastpathTV.EncMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), e)
  7290. }
  7291. func (_ fastpathT) EncMapUint16UintptrV(v map[uint16]uintptr, e *Encoder) {
  7292. if v == nil {
  7293. e.e.EncodeNil()
  7294. return
  7295. }
  7296. ee, esep := e.e, e.hh.hasElemSeparators()
  7297. ee.WriteMapStart(len(v))
  7298. if e.h.Canonical {
  7299. v2 := make([]uint64, len(v))
  7300. var i uint
  7301. for k := range v {
  7302. v2[i] = uint64(k)
  7303. i++
  7304. }
  7305. sort.Sort(uintSlice(v2))
  7306. if esep {
  7307. for _, k2 := range v2 {
  7308. ee.WriteMapElemKey()
  7309. ee.EncodeUint(uint64(uint16(k2)))
  7310. ee.WriteMapElemValue()
  7311. e.encode(v[uint16(k2)])
  7312. }
  7313. } else {
  7314. for _, k2 := range v2 {
  7315. ee.EncodeUint(uint64(uint16(k2)))
  7316. e.encode(v[uint16(k2)])
  7317. }
  7318. }
  7319. } else {
  7320. if esep {
  7321. for k2, v2 := range v {
  7322. ee.WriteMapElemKey()
  7323. ee.EncodeUint(uint64(k2))
  7324. ee.WriteMapElemValue()
  7325. e.encode(v2)
  7326. }
  7327. } else {
  7328. for k2, v2 := range v {
  7329. ee.EncodeUint(uint64(k2))
  7330. e.encode(v2)
  7331. }
  7332. }
  7333. }
  7334. ee.WriteMapEnd()
  7335. }
  7336. func (e *Encoder) fastpathEncMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  7337. fastpathTV.EncMapUint16IntV(rv2i(rv).(map[uint16]int), e)
  7338. }
  7339. func (_ fastpathT) EncMapUint16IntV(v map[uint16]int, e *Encoder) {
  7340. if v == nil {
  7341. e.e.EncodeNil()
  7342. return
  7343. }
  7344. ee, esep := e.e, e.hh.hasElemSeparators()
  7345. ee.WriteMapStart(len(v))
  7346. if e.h.Canonical {
  7347. v2 := make([]uint64, len(v))
  7348. var i uint
  7349. for k := range v {
  7350. v2[i] = uint64(k)
  7351. i++
  7352. }
  7353. sort.Sort(uintSlice(v2))
  7354. if esep {
  7355. for _, k2 := range v2 {
  7356. ee.WriteMapElemKey()
  7357. ee.EncodeUint(uint64(uint16(k2)))
  7358. ee.WriteMapElemValue()
  7359. ee.EncodeInt(int64(v[uint16(k2)]))
  7360. }
  7361. } else {
  7362. for _, k2 := range v2 {
  7363. ee.EncodeUint(uint64(uint16(k2)))
  7364. ee.EncodeInt(int64(v[uint16(k2)]))
  7365. }
  7366. }
  7367. } else {
  7368. if esep {
  7369. for k2, v2 := range v {
  7370. ee.WriteMapElemKey()
  7371. ee.EncodeUint(uint64(k2))
  7372. ee.WriteMapElemValue()
  7373. ee.EncodeInt(int64(v2))
  7374. }
  7375. } else {
  7376. for k2, v2 := range v {
  7377. ee.EncodeUint(uint64(k2))
  7378. ee.EncodeInt(int64(v2))
  7379. }
  7380. }
  7381. }
  7382. ee.WriteMapEnd()
  7383. }
  7384. func (e *Encoder) fastpathEncMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  7385. fastpathTV.EncMapUint16Int8V(rv2i(rv).(map[uint16]int8), e)
  7386. }
  7387. func (_ fastpathT) EncMapUint16Int8V(v map[uint16]int8, e *Encoder) {
  7388. if v == nil {
  7389. e.e.EncodeNil()
  7390. return
  7391. }
  7392. ee, esep := e.e, e.hh.hasElemSeparators()
  7393. ee.WriteMapStart(len(v))
  7394. if e.h.Canonical {
  7395. v2 := make([]uint64, len(v))
  7396. var i uint
  7397. for k := range v {
  7398. v2[i] = uint64(k)
  7399. i++
  7400. }
  7401. sort.Sort(uintSlice(v2))
  7402. if esep {
  7403. for _, k2 := range v2 {
  7404. ee.WriteMapElemKey()
  7405. ee.EncodeUint(uint64(uint16(k2)))
  7406. ee.WriteMapElemValue()
  7407. ee.EncodeInt(int64(v[uint16(k2)]))
  7408. }
  7409. } else {
  7410. for _, k2 := range v2 {
  7411. ee.EncodeUint(uint64(uint16(k2)))
  7412. ee.EncodeInt(int64(v[uint16(k2)]))
  7413. }
  7414. }
  7415. } else {
  7416. if esep {
  7417. for k2, v2 := range v {
  7418. ee.WriteMapElemKey()
  7419. ee.EncodeUint(uint64(k2))
  7420. ee.WriteMapElemValue()
  7421. ee.EncodeInt(int64(v2))
  7422. }
  7423. } else {
  7424. for k2, v2 := range v {
  7425. ee.EncodeUint(uint64(k2))
  7426. ee.EncodeInt(int64(v2))
  7427. }
  7428. }
  7429. }
  7430. ee.WriteMapEnd()
  7431. }
  7432. func (e *Encoder) fastpathEncMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  7433. fastpathTV.EncMapUint16Int16V(rv2i(rv).(map[uint16]int16), e)
  7434. }
  7435. func (_ fastpathT) EncMapUint16Int16V(v map[uint16]int16, e *Encoder) {
  7436. if v == nil {
  7437. e.e.EncodeNil()
  7438. return
  7439. }
  7440. ee, esep := e.e, e.hh.hasElemSeparators()
  7441. ee.WriteMapStart(len(v))
  7442. if e.h.Canonical {
  7443. v2 := make([]uint64, len(v))
  7444. var i uint
  7445. for k := range v {
  7446. v2[i] = uint64(k)
  7447. i++
  7448. }
  7449. sort.Sort(uintSlice(v2))
  7450. if esep {
  7451. for _, k2 := range v2 {
  7452. ee.WriteMapElemKey()
  7453. ee.EncodeUint(uint64(uint16(k2)))
  7454. ee.WriteMapElemValue()
  7455. ee.EncodeInt(int64(v[uint16(k2)]))
  7456. }
  7457. } else {
  7458. for _, k2 := range v2 {
  7459. ee.EncodeUint(uint64(uint16(k2)))
  7460. ee.EncodeInt(int64(v[uint16(k2)]))
  7461. }
  7462. }
  7463. } else {
  7464. if esep {
  7465. for k2, v2 := range v {
  7466. ee.WriteMapElemKey()
  7467. ee.EncodeUint(uint64(k2))
  7468. ee.WriteMapElemValue()
  7469. ee.EncodeInt(int64(v2))
  7470. }
  7471. } else {
  7472. for k2, v2 := range v {
  7473. ee.EncodeUint(uint64(k2))
  7474. ee.EncodeInt(int64(v2))
  7475. }
  7476. }
  7477. }
  7478. ee.WriteMapEnd()
  7479. }
  7480. func (e *Encoder) fastpathEncMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  7481. fastpathTV.EncMapUint16Int32V(rv2i(rv).(map[uint16]int32), e)
  7482. }
  7483. func (_ fastpathT) EncMapUint16Int32V(v map[uint16]int32, e *Encoder) {
  7484. if v == nil {
  7485. e.e.EncodeNil()
  7486. return
  7487. }
  7488. ee, esep := e.e, e.hh.hasElemSeparators()
  7489. ee.WriteMapStart(len(v))
  7490. if e.h.Canonical {
  7491. v2 := make([]uint64, len(v))
  7492. var i uint
  7493. for k := range v {
  7494. v2[i] = uint64(k)
  7495. i++
  7496. }
  7497. sort.Sort(uintSlice(v2))
  7498. if esep {
  7499. for _, k2 := range v2 {
  7500. ee.WriteMapElemKey()
  7501. ee.EncodeUint(uint64(uint16(k2)))
  7502. ee.WriteMapElemValue()
  7503. ee.EncodeInt(int64(v[uint16(k2)]))
  7504. }
  7505. } else {
  7506. for _, k2 := range v2 {
  7507. ee.EncodeUint(uint64(uint16(k2)))
  7508. ee.EncodeInt(int64(v[uint16(k2)]))
  7509. }
  7510. }
  7511. } else {
  7512. if esep {
  7513. for k2, v2 := range v {
  7514. ee.WriteMapElemKey()
  7515. ee.EncodeUint(uint64(k2))
  7516. ee.WriteMapElemValue()
  7517. ee.EncodeInt(int64(v2))
  7518. }
  7519. } else {
  7520. for k2, v2 := range v {
  7521. ee.EncodeUint(uint64(k2))
  7522. ee.EncodeInt(int64(v2))
  7523. }
  7524. }
  7525. }
  7526. ee.WriteMapEnd()
  7527. }
  7528. func (e *Encoder) fastpathEncMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  7529. fastpathTV.EncMapUint16Int64V(rv2i(rv).(map[uint16]int64), e)
  7530. }
  7531. func (_ fastpathT) EncMapUint16Int64V(v map[uint16]int64, e *Encoder) {
  7532. if v == nil {
  7533. e.e.EncodeNil()
  7534. return
  7535. }
  7536. ee, esep := e.e, e.hh.hasElemSeparators()
  7537. ee.WriteMapStart(len(v))
  7538. if e.h.Canonical {
  7539. v2 := make([]uint64, len(v))
  7540. var i uint
  7541. for k := range v {
  7542. v2[i] = uint64(k)
  7543. i++
  7544. }
  7545. sort.Sort(uintSlice(v2))
  7546. if esep {
  7547. for _, k2 := range v2 {
  7548. ee.WriteMapElemKey()
  7549. ee.EncodeUint(uint64(uint16(k2)))
  7550. ee.WriteMapElemValue()
  7551. ee.EncodeInt(int64(v[uint16(k2)]))
  7552. }
  7553. } else {
  7554. for _, k2 := range v2 {
  7555. ee.EncodeUint(uint64(uint16(k2)))
  7556. ee.EncodeInt(int64(v[uint16(k2)]))
  7557. }
  7558. }
  7559. } else {
  7560. if esep {
  7561. for k2, v2 := range v {
  7562. ee.WriteMapElemKey()
  7563. ee.EncodeUint(uint64(k2))
  7564. ee.WriteMapElemValue()
  7565. ee.EncodeInt(int64(v2))
  7566. }
  7567. } else {
  7568. for k2, v2 := range v {
  7569. ee.EncodeUint(uint64(k2))
  7570. ee.EncodeInt(int64(v2))
  7571. }
  7572. }
  7573. }
  7574. ee.WriteMapEnd()
  7575. }
  7576. func (e *Encoder) fastpathEncMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  7577. fastpathTV.EncMapUint16Float32V(rv2i(rv).(map[uint16]float32), e)
  7578. }
  7579. func (_ fastpathT) EncMapUint16Float32V(v map[uint16]float32, e *Encoder) {
  7580. if v == nil {
  7581. e.e.EncodeNil()
  7582. return
  7583. }
  7584. ee, esep := e.e, e.hh.hasElemSeparators()
  7585. ee.WriteMapStart(len(v))
  7586. if e.h.Canonical {
  7587. v2 := make([]uint64, len(v))
  7588. var i uint
  7589. for k := range v {
  7590. v2[i] = uint64(k)
  7591. i++
  7592. }
  7593. sort.Sort(uintSlice(v2))
  7594. if esep {
  7595. for _, k2 := range v2 {
  7596. ee.WriteMapElemKey()
  7597. ee.EncodeUint(uint64(uint16(k2)))
  7598. ee.WriteMapElemValue()
  7599. ee.EncodeFloat32(v[uint16(k2)])
  7600. }
  7601. } else {
  7602. for _, k2 := range v2 {
  7603. ee.EncodeUint(uint64(uint16(k2)))
  7604. ee.EncodeFloat32(v[uint16(k2)])
  7605. }
  7606. }
  7607. } else {
  7608. if esep {
  7609. for k2, v2 := range v {
  7610. ee.WriteMapElemKey()
  7611. ee.EncodeUint(uint64(k2))
  7612. ee.WriteMapElemValue()
  7613. ee.EncodeFloat32(v2)
  7614. }
  7615. } else {
  7616. for k2, v2 := range v {
  7617. ee.EncodeUint(uint64(k2))
  7618. ee.EncodeFloat32(v2)
  7619. }
  7620. }
  7621. }
  7622. ee.WriteMapEnd()
  7623. }
  7624. func (e *Encoder) fastpathEncMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  7625. fastpathTV.EncMapUint16Float64V(rv2i(rv).(map[uint16]float64), e)
  7626. }
  7627. func (_ fastpathT) EncMapUint16Float64V(v map[uint16]float64, e *Encoder) {
  7628. if v == nil {
  7629. e.e.EncodeNil()
  7630. return
  7631. }
  7632. ee, esep := e.e, e.hh.hasElemSeparators()
  7633. ee.WriteMapStart(len(v))
  7634. if e.h.Canonical {
  7635. v2 := make([]uint64, len(v))
  7636. var i uint
  7637. for k := range v {
  7638. v2[i] = uint64(k)
  7639. i++
  7640. }
  7641. sort.Sort(uintSlice(v2))
  7642. if esep {
  7643. for _, k2 := range v2 {
  7644. ee.WriteMapElemKey()
  7645. ee.EncodeUint(uint64(uint16(k2)))
  7646. ee.WriteMapElemValue()
  7647. ee.EncodeFloat64(v[uint16(k2)])
  7648. }
  7649. } else {
  7650. for _, k2 := range v2 {
  7651. ee.EncodeUint(uint64(uint16(k2)))
  7652. ee.EncodeFloat64(v[uint16(k2)])
  7653. }
  7654. }
  7655. } else {
  7656. if esep {
  7657. for k2, v2 := range v {
  7658. ee.WriteMapElemKey()
  7659. ee.EncodeUint(uint64(k2))
  7660. ee.WriteMapElemValue()
  7661. ee.EncodeFloat64(v2)
  7662. }
  7663. } else {
  7664. for k2, v2 := range v {
  7665. ee.EncodeUint(uint64(k2))
  7666. ee.EncodeFloat64(v2)
  7667. }
  7668. }
  7669. }
  7670. ee.WriteMapEnd()
  7671. }
  7672. func (e *Encoder) fastpathEncMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  7673. fastpathTV.EncMapUint16BoolV(rv2i(rv).(map[uint16]bool), e)
  7674. }
  7675. func (_ fastpathT) EncMapUint16BoolV(v map[uint16]bool, e *Encoder) {
  7676. if v == nil {
  7677. e.e.EncodeNil()
  7678. return
  7679. }
  7680. ee, esep := e.e, e.hh.hasElemSeparators()
  7681. ee.WriteMapStart(len(v))
  7682. if e.h.Canonical {
  7683. v2 := make([]uint64, len(v))
  7684. var i uint
  7685. for k := range v {
  7686. v2[i] = uint64(k)
  7687. i++
  7688. }
  7689. sort.Sort(uintSlice(v2))
  7690. if esep {
  7691. for _, k2 := range v2 {
  7692. ee.WriteMapElemKey()
  7693. ee.EncodeUint(uint64(uint16(k2)))
  7694. ee.WriteMapElemValue()
  7695. ee.EncodeBool(v[uint16(k2)])
  7696. }
  7697. } else {
  7698. for _, k2 := range v2 {
  7699. ee.EncodeUint(uint64(uint16(k2)))
  7700. ee.EncodeBool(v[uint16(k2)])
  7701. }
  7702. }
  7703. } else {
  7704. if esep {
  7705. for k2, v2 := range v {
  7706. ee.WriteMapElemKey()
  7707. ee.EncodeUint(uint64(k2))
  7708. ee.WriteMapElemValue()
  7709. ee.EncodeBool(v2)
  7710. }
  7711. } else {
  7712. for k2, v2 := range v {
  7713. ee.EncodeUint(uint64(k2))
  7714. ee.EncodeBool(v2)
  7715. }
  7716. }
  7717. }
  7718. ee.WriteMapEnd()
  7719. }
  7720. func (e *Encoder) fastpathEncMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  7721. fastpathTV.EncMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), e)
  7722. }
  7723. func (_ fastpathT) EncMapUint32IntfV(v map[uint32]interface{}, e *Encoder) {
  7724. if v == nil {
  7725. e.e.EncodeNil()
  7726. return
  7727. }
  7728. ee, esep := e.e, e.hh.hasElemSeparators()
  7729. ee.WriteMapStart(len(v))
  7730. if e.h.Canonical {
  7731. v2 := make([]uint64, len(v))
  7732. var i uint
  7733. for k := range v {
  7734. v2[i] = uint64(k)
  7735. i++
  7736. }
  7737. sort.Sort(uintSlice(v2))
  7738. if esep {
  7739. for _, k2 := range v2 {
  7740. ee.WriteMapElemKey()
  7741. ee.EncodeUint(uint64(uint32(k2)))
  7742. ee.WriteMapElemValue()
  7743. e.encode(v[uint32(k2)])
  7744. }
  7745. } else {
  7746. for _, k2 := range v2 {
  7747. ee.EncodeUint(uint64(uint32(k2)))
  7748. e.encode(v[uint32(k2)])
  7749. }
  7750. }
  7751. } else {
  7752. if esep {
  7753. for k2, v2 := range v {
  7754. ee.WriteMapElemKey()
  7755. ee.EncodeUint(uint64(k2))
  7756. ee.WriteMapElemValue()
  7757. e.encode(v2)
  7758. }
  7759. } else {
  7760. for k2, v2 := range v {
  7761. ee.EncodeUint(uint64(k2))
  7762. e.encode(v2)
  7763. }
  7764. }
  7765. }
  7766. ee.WriteMapEnd()
  7767. }
  7768. func (e *Encoder) fastpathEncMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  7769. fastpathTV.EncMapUint32StringV(rv2i(rv).(map[uint32]string), e)
  7770. }
  7771. func (_ fastpathT) EncMapUint32StringV(v map[uint32]string, e *Encoder) {
  7772. if v == nil {
  7773. e.e.EncodeNil()
  7774. return
  7775. }
  7776. ee, esep := e.e, e.hh.hasElemSeparators()
  7777. ee.WriteMapStart(len(v))
  7778. if e.h.Canonical {
  7779. v2 := make([]uint64, len(v))
  7780. var i uint
  7781. for k := range v {
  7782. v2[i] = uint64(k)
  7783. i++
  7784. }
  7785. sort.Sort(uintSlice(v2))
  7786. if esep {
  7787. for _, k2 := range v2 {
  7788. ee.WriteMapElemKey()
  7789. ee.EncodeUint(uint64(uint32(k2)))
  7790. ee.WriteMapElemValue()
  7791. ee.EncodeStringEnc(cUTF8, v[uint32(k2)])
  7792. }
  7793. } else {
  7794. for _, k2 := range v2 {
  7795. ee.EncodeUint(uint64(uint32(k2)))
  7796. ee.EncodeStringEnc(cUTF8, v[uint32(k2)])
  7797. }
  7798. }
  7799. } else {
  7800. if esep {
  7801. for k2, v2 := range v {
  7802. ee.WriteMapElemKey()
  7803. ee.EncodeUint(uint64(k2))
  7804. ee.WriteMapElemValue()
  7805. ee.EncodeStringEnc(cUTF8, v2)
  7806. }
  7807. } else {
  7808. for k2, v2 := range v {
  7809. ee.EncodeUint(uint64(k2))
  7810. ee.EncodeStringEnc(cUTF8, v2)
  7811. }
  7812. }
  7813. }
  7814. ee.WriteMapEnd()
  7815. }
  7816. func (e *Encoder) fastpathEncMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  7817. fastpathTV.EncMapUint32UintV(rv2i(rv).(map[uint32]uint), e)
  7818. }
  7819. func (_ fastpathT) EncMapUint32UintV(v map[uint32]uint, e *Encoder) {
  7820. if v == nil {
  7821. e.e.EncodeNil()
  7822. return
  7823. }
  7824. ee, esep := e.e, e.hh.hasElemSeparators()
  7825. ee.WriteMapStart(len(v))
  7826. if e.h.Canonical {
  7827. v2 := make([]uint64, len(v))
  7828. var i uint
  7829. for k := range v {
  7830. v2[i] = uint64(k)
  7831. i++
  7832. }
  7833. sort.Sort(uintSlice(v2))
  7834. if esep {
  7835. for _, k2 := range v2 {
  7836. ee.WriteMapElemKey()
  7837. ee.EncodeUint(uint64(uint32(k2)))
  7838. ee.WriteMapElemValue()
  7839. ee.EncodeUint(uint64(v[uint32(k2)]))
  7840. }
  7841. } else {
  7842. for _, k2 := range v2 {
  7843. ee.EncodeUint(uint64(uint32(k2)))
  7844. ee.EncodeUint(uint64(v[uint32(k2)]))
  7845. }
  7846. }
  7847. } else {
  7848. if esep {
  7849. for k2, v2 := range v {
  7850. ee.WriteMapElemKey()
  7851. ee.EncodeUint(uint64(k2))
  7852. ee.WriteMapElemValue()
  7853. ee.EncodeUint(uint64(v2))
  7854. }
  7855. } else {
  7856. for k2, v2 := range v {
  7857. ee.EncodeUint(uint64(k2))
  7858. ee.EncodeUint(uint64(v2))
  7859. }
  7860. }
  7861. }
  7862. ee.WriteMapEnd()
  7863. }
  7864. func (e *Encoder) fastpathEncMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  7865. fastpathTV.EncMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), e)
  7866. }
  7867. func (_ fastpathT) EncMapUint32Uint8V(v map[uint32]uint8, e *Encoder) {
  7868. if v == nil {
  7869. e.e.EncodeNil()
  7870. return
  7871. }
  7872. ee, esep := e.e, e.hh.hasElemSeparators()
  7873. ee.WriteMapStart(len(v))
  7874. if e.h.Canonical {
  7875. v2 := make([]uint64, len(v))
  7876. var i uint
  7877. for k := range v {
  7878. v2[i] = uint64(k)
  7879. i++
  7880. }
  7881. sort.Sort(uintSlice(v2))
  7882. if esep {
  7883. for _, k2 := range v2 {
  7884. ee.WriteMapElemKey()
  7885. ee.EncodeUint(uint64(uint32(k2)))
  7886. ee.WriteMapElemValue()
  7887. ee.EncodeUint(uint64(v[uint32(k2)]))
  7888. }
  7889. } else {
  7890. for _, k2 := range v2 {
  7891. ee.EncodeUint(uint64(uint32(k2)))
  7892. ee.EncodeUint(uint64(v[uint32(k2)]))
  7893. }
  7894. }
  7895. } else {
  7896. if esep {
  7897. for k2, v2 := range v {
  7898. ee.WriteMapElemKey()
  7899. ee.EncodeUint(uint64(k2))
  7900. ee.WriteMapElemValue()
  7901. ee.EncodeUint(uint64(v2))
  7902. }
  7903. } else {
  7904. for k2, v2 := range v {
  7905. ee.EncodeUint(uint64(k2))
  7906. ee.EncodeUint(uint64(v2))
  7907. }
  7908. }
  7909. }
  7910. ee.WriteMapEnd()
  7911. }
  7912. func (e *Encoder) fastpathEncMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  7913. fastpathTV.EncMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), e)
  7914. }
  7915. func (_ fastpathT) EncMapUint32Uint16V(v map[uint32]uint16, e *Encoder) {
  7916. if v == nil {
  7917. e.e.EncodeNil()
  7918. return
  7919. }
  7920. ee, esep := e.e, e.hh.hasElemSeparators()
  7921. ee.WriteMapStart(len(v))
  7922. if e.h.Canonical {
  7923. v2 := make([]uint64, len(v))
  7924. var i uint
  7925. for k := range v {
  7926. v2[i] = uint64(k)
  7927. i++
  7928. }
  7929. sort.Sort(uintSlice(v2))
  7930. if esep {
  7931. for _, k2 := range v2 {
  7932. ee.WriteMapElemKey()
  7933. ee.EncodeUint(uint64(uint32(k2)))
  7934. ee.WriteMapElemValue()
  7935. ee.EncodeUint(uint64(v[uint32(k2)]))
  7936. }
  7937. } else {
  7938. for _, k2 := range v2 {
  7939. ee.EncodeUint(uint64(uint32(k2)))
  7940. ee.EncodeUint(uint64(v[uint32(k2)]))
  7941. }
  7942. }
  7943. } else {
  7944. if esep {
  7945. for k2, v2 := range v {
  7946. ee.WriteMapElemKey()
  7947. ee.EncodeUint(uint64(k2))
  7948. ee.WriteMapElemValue()
  7949. ee.EncodeUint(uint64(v2))
  7950. }
  7951. } else {
  7952. for k2, v2 := range v {
  7953. ee.EncodeUint(uint64(k2))
  7954. ee.EncodeUint(uint64(v2))
  7955. }
  7956. }
  7957. }
  7958. ee.WriteMapEnd()
  7959. }
  7960. func (e *Encoder) fastpathEncMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  7961. fastpathTV.EncMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), e)
  7962. }
  7963. func (_ fastpathT) EncMapUint32Uint32V(v map[uint32]uint32, e *Encoder) {
  7964. if v == nil {
  7965. e.e.EncodeNil()
  7966. return
  7967. }
  7968. ee, esep := e.e, e.hh.hasElemSeparators()
  7969. ee.WriteMapStart(len(v))
  7970. if e.h.Canonical {
  7971. v2 := make([]uint64, len(v))
  7972. var i uint
  7973. for k := range v {
  7974. v2[i] = uint64(k)
  7975. i++
  7976. }
  7977. sort.Sort(uintSlice(v2))
  7978. if esep {
  7979. for _, k2 := range v2 {
  7980. ee.WriteMapElemKey()
  7981. ee.EncodeUint(uint64(uint32(k2)))
  7982. ee.WriteMapElemValue()
  7983. ee.EncodeUint(uint64(v[uint32(k2)]))
  7984. }
  7985. } else {
  7986. for _, k2 := range v2 {
  7987. ee.EncodeUint(uint64(uint32(k2)))
  7988. ee.EncodeUint(uint64(v[uint32(k2)]))
  7989. }
  7990. }
  7991. } else {
  7992. if esep {
  7993. for k2, v2 := range v {
  7994. ee.WriteMapElemKey()
  7995. ee.EncodeUint(uint64(k2))
  7996. ee.WriteMapElemValue()
  7997. ee.EncodeUint(uint64(v2))
  7998. }
  7999. } else {
  8000. for k2, v2 := range v {
  8001. ee.EncodeUint(uint64(k2))
  8002. ee.EncodeUint(uint64(v2))
  8003. }
  8004. }
  8005. }
  8006. ee.WriteMapEnd()
  8007. }
  8008. func (e *Encoder) fastpathEncMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  8009. fastpathTV.EncMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), e)
  8010. }
  8011. func (_ fastpathT) EncMapUint32Uint64V(v map[uint32]uint64, e *Encoder) {
  8012. if v == nil {
  8013. e.e.EncodeNil()
  8014. return
  8015. }
  8016. ee, esep := e.e, e.hh.hasElemSeparators()
  8017. ee.WriteMapStart(len(v))
  8018. if e.h.Canonical {
  8019. v2 := make([]uint64, len(v))
  8020. var i uint
  8021. for k := range v {
  8022. v2[i] = uint64(k)
  8023. i++
  8024. }
  8025. sort.Sort(uintSlice(v2))
  8026. if esep {
  8027. for _, k2 := range v2 {
  8028. ee.WriteMapElemKey()
  8029. ee.EncodeUint(uint64(uint32(k2)))
  8030. ee.WriteMapElemValue()
  8031. ee.EncodeUint(uint64(v[uint32(k2)]))
  8032. }
  8033. } else {
  8034. for _, k2 := range v2 {
  8035. ee.EncodeUint(uint64(uint32(k2)))
  8036. ee.EncodeUint(uint64(v[uint32(k2)]))
  8037. }
  8038. }
  8039. } else {
  8040. if esep {
  8041. for k2, v2 := range v {
  8042. ee.WriteMapElemKey()
  8043. ee.EncodeUint(uint64(k2))
  8044. ee.WriteMapElemValue()
  8045. ee.EncodeUint(uint64(v2))
  8046. }
  8047. } else {
  8048. for k2, v2 := range v {
  8049. ee.EncodeUint(uint64(k2))
  8050. ee.EncodeUint(uint64(v2))
  8051. }
  8052. }
  8053. }
  8054. ee.WriteMapEnd()
  8055. }
  8056. func (e *Encoder) fastpathEncMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  8057. fastpathTV.EncMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), e)
  8058. }
  8059. func (_ fastpathT) EncMapUint32UintptrV(v map[uint32]uintptr, e *Encoder) {
  8060. if v == nil {
  8061. e.e.EncodeNil()
  8062. return
  8063. }
  8064. ee, esep := e.e, e.hh.hasElemSeparators()
  8065. ee.WriteMapStart(len(v))
  8066. if e.h.Canonical {
  8067. v2 := make([]uint64, len(v))
  8068. var i uint
  8069. for k := range v {
  8070. v2[i] = uint64(k)
  8071. i++
  8072. }
  8073. sort.Sort(uintSlice(v2))
  8074. if esep {
  8075. for _, k2 := range v2 {
  8076. ee.WriteMapElemKey()
  8077. ee.EncodeUint(uint64(uint32(k2)))
  8078. ee.WriteMapElemValue()
  8079. e.encode(v[uint32(k2)])
  8080. }
  8081. } else {
  8082. for _, k2 := range v2 {
  8083. ee.EncodeUint(uint64(uint32(k2)))
  8084. e.encode(v[uint32(k2)])
  8085. }
  8086. }
  8087. } else {
  8088. if esep {
  8089. for k2, v2 := range v {
  8090. ee.WriteMapElemKey()
  8091. ee.EncodeUint(uint64(k2))
  8092. ee.WriteMapElemValue()
  8093. e.encode(v2)
  8094. }
  8095. } else {
  8096. for k2, v2 := range v {
  8097. ee.EncodeUint(uint64(k2))
  8098. e.encode(v2)
  8099. }
  8100. }
  8101. }
  8102. ee.WriteMapEnd()
  8103. }
  8104. func (e *Encoder) fastpathEncMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  8105. fastpathTV.EncMapUint32IntV(rv2i(rv).(map[uint32]int), e)
  8106. }
  8107. func (_ fastpathT) EncMapUint32IntV(v map[uint32]int, e *Encoder) {
  8108. if v == nil {
  8109. e.e.EncodeNil()
  8110. return
  8111. }
  8112. ee, esep := e.e, e.hh.hasElemSeparators()
  8113. ee.WriteMapStart(len(v))
  8114. if e.h.Canonical {
  8115. v2 := make([]uint64, len(v))
  8116. var i uint
  8117. for k := range v {
  8118. v2[i] = uint64(k)
  8119. i++
  8120. }
  8121. sort.Sort(uintSlice(v2))
  8122. if esep {
  8123. for _, k2 := range v2 {
  8124. ee.WriteMapElemKey()
  8125. ee.EncodeUint(uint64(uint32(k2)))
  8126. ee.WriteMapElemValue()
  8127. ee.EncodeInt(int64(v[uint32(k2)]))
  8128. }
  8129. } else {
  8130. for _, k2 := range v2 {
  8131. ee.EncodeUint(uint64(uint32(k2)))
  8132. ee.EncodeInt(int64(v[uint32(k2)]))
  8133. }
  8134. }
  8135. } else {
  8136. if esep {
  8137. for k2, v2 := range v {
  8138. ee.WriteMapElemKey()
  8139. ee.EncodeUint(uint64(k2))
  8140. ee.WriteMapElemValue()
  8141. ee.EncodeInt(int64(v2))
  8142. }
  8143. } else {
  8144. for k2, v2 := range v {
  8145. ee.EncodeUint(uint64(k2))
  8146. ee.EncodeInt(int64(v2))
  8147. }
  8148. }
  8149. }
  8150. ee.WriteMapEnd()
  8151. }
  8152. func (e *Encoder) fastpathEncMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  8153. fastpathTV.EncMapUint32Int8V(rv2i(rv).(map[uint32]int8), e)
  8154. }
  8155. func (_ fastpathT) EncMapUint32Int8V(v map[uint32]int8, e *Encoder) {
  8156. if v == nil {
  8157. e.e.EncodeNil()
  8158. return
  8159. }
  8160. ee, esep := e.e, e.hh.hasElemSeparators()
  8161. ee.WriteMapStart(len(v))
  8162. if e.h.Canonical {
  8163. v2 := make([]uint64, len(v))
  8164. var i uint
  8165. for k := range v {
  8166. v2[i] = uint64(k)
  8167. i++
  8168. }
  8169. sort.Sort(uintSlice(v2))
  8170. if esep {
  8171. for _, k2 := range v2 {
  8172. ee.WriteMapElemKey()
  8173. ee.EncodeUint(uint64(uint32(k2)))
  8174. ee.WriteMapElemValue()
  8175. ee.EncodeInt(int64(v[uint32(k2)]))
  8176. }
  8177. } else {
  8178. for _, k2 := range v2 {
  8179. ee.EncodeUint(uint64(uint32(k2)))
  8180. ee.EncodeInt(int64(v[uint32(k2)]))
  8181. }
  8182. }
  8183. } else {
  8184. if esep {
  8185. for k2, v2 := range v {
  8186. ee.WriteMapElemKey()
  8187. ee.EncodeUint(uint64(k2))
  8188. ee.WriteMapElemValue()
  8189. ee.EncodeInt(int64(v2))
  8190. }
  8191. } else {
  8192. for k2, v2 := range v {
  8193. ee.EncodeUint(uint64(k2))
  8194. ee.EncodeInt(int64(v2))
  8195. }
  8196. }
  8197. }
  8198. ee.WriteMapEnd()
  8199. }
  8200. func (e *Encoder) fastpathEncMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  8201. fastpathTV.EncMapUint32Int16V(rv2i(rv).(map[uint32]int16), e)
  8202. }
  8203. func (_ fastpathT) EncMapUint32Int16V(v map[uint32]int16, e *Encoder) {
  8204. if v == nil {
  8205. e.e.EncodeNil()
  8206. return
  8207. }
  8208. ee, esep := e.e, e.hh.hasElemSeparators()
  8209. ee.WriteMapStart(len(v))
  8210. if e.h.Canonical {
  8211. v2 := make([]uint64, len(v))
  8212. var i uint
  8213. for k := range v {
  8214. v2[i] = uint64(k)
  8215. i++
  8216. }
  8217. sort.Sort(uintSlice(v2))
  8218. if esep {
  8219. for _, k2 := range v2 {
  8220. ee.WriteMapElemKey()
  8221. ee.EncodeUint(uint64(uint32(k2)))
  8222. ee.WriteMapElemValue()
  8223. ee.EncodeInt(int64(v[uint32(k2)]))
  8224. }
  8225. } else {
  8226. for _, k2 := range v2 {
  8227. ee.EncodeUint(uint64(uint32(k2)))
  8228. ee.EncodeInt(int64(v[uint32(k2)]))
  8229. }
  8230. }
  8231. } else {
  8232. if esep {
  8233. for k2, v2 := range v {
  8234. ee.WriteMapElemKey()
  8235. ee.EncodeUint(uint64(k2))
  8236. ee.WriteMapElemValue()
  8237. ee.EncodeInt(int64(v2))
  8238. }
  8239. } else {
  8240. for k2, v2 := range v {
  8241. ee.EncodeUint(uint64(k2))
  8242. ee.EncodeInt(int64(v2))
  8243. }
  8244. }
  8245. }
  8246. ee.WriteMapEnd()
  8247. }
  8248. func (e *Encoder) fastpathEncMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  8249. fastpathTV.EncMapUint32Int32V(rv2i(rv).(map[uint32]int32), e)
  8250. }
  8251. func (_ fastpathT) EncMapUint32Int32V(v map[uint32]int32, e *Encoder) {
  8252. if v == nil {
  8253. e.e.EncodeNil()
  8254. return
  8255. }
  8256. ee, esep := e.e, e.hh.hasElemSeparators()
  8257. ee.WriteMapStart(len(v))
  8258. if e.h.Canonical {
  8259. v2 := make([]uint64, len(v))
  8260. var i uint
  8261. for k := range v {
  8262. v2[i] = uint64(k)
  8263. i++
  8264. }
  8265. sort.Sort(uintSlice(v2))
  8266. if esep {
  8267. for _, k2 := range v2 {
  8268. ee.WriteMapElemKey()
  8269. ee.EncodeUint(uint64(uint32(k2)))
  8270. ee.WriteMapElemValue()
  8271. ee.EncodeInt(int64(v[uint32(k2)]))
  8272. }
  8273. } else {
  8274. for _, k2 := range v2 {
  8275. ee.EncodeUint(uint64(uint32(k2)))
  8276. ee.EncodeInt(int64(v[uint32(k2)]))
  8277. }
  8278. }
  8279. } else {
  8280. if esep {
  8281. for k2, v2 := range v {
  8282. ee.WriteMapElemKey()
  8283. ee.EncodeUint(uint64(k2))
  8284. ee.WriteMapElemValue()
  8285. ee.EncodeInt(int64(v2))
  8286. }
  8287. } else {
  8288. for k2, v2 := range v {
  8289. ee.EncodeUint(uint64(k2))
  8290. ee.EncodeInt(int64(v2))
  8291. }
  8292. }
  8293. }
  8294. ee.WriteMapEnd()
  8295. }
  8296. func (e *Encoder) fastpathEncMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  8297. fastpathTV.EncMapUint32Int64V(rv2i(rv).(map[uint32]int64), e)
  8298. }
  8299. func (_ fastpathT) EncMapUint32Int64V(v map[uint32]int64, e *Encoder) {
  8300. if v == nil {
  8301. e.e.EncodeNil()
  8302. return
  8303. }
  8304. ee, esep := e.e, e.hh.hasElemSeparators()
  8305. ee.WriteMapStart(len(v))
  8306. if e.h.Canonical {
  8307. v2 := make([]uint64, len(v))
  8308. var i uint
  8309. for k := range v {
  8310. v2[i] = uint64(k)
  8311. i++
  8312. }
  8313. sort.Sort(uintSlice(v2))
  8314. if esep {
  8315. for _, k2 := range v2 {
  8316. ee.WriteMapElemKey()
  8317. ee.EncodeUint(uint64(uint32(k2)))
  8318. ee.WriteMapElemValue()
  8319. ee.EncodeInt(int64(v[uint32(k2)]))
  8320. }
  8321. } else {
  8322. for _, k2 := range v2 {
  8323. ee.EncodeUint(uint64(uint32(k2)))
  8324. ee.EncodeInt(int64(v[uint32(k2)]))
  8325. }
  8326. }
  8327. } else {
  8328. if esep {
  8329. for k2, v2 := range v {
  8330. ee.WriteMapElemKey()
  8331. ee.EncodeUint(uint64(k2))
  8332. ee.WriteMapElemValue()
  8333. ee.EncodeInt(int64(v2))
  8334. }
  8335. } else {
  8336. for k2, v2 := range v {
  8337. ee.EncodeUint(uint64(k2))
  8338. ee.EncodeInt(int64(v2))
  8339. }
  8340. }
  8341. }
  8342. ee.WriteMapEnd()
  8343. }
  8344. func (e *Encoder) fastpathEncMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  8345. fastpathTV.EncMapUint32Float32V(rv2i(rv).(map[uint32]float32), e)
  8346. }
  8347. func (_ fastpathT) EncMapUint32Float32V(v map[uint32]float32, e *Encoder) {
  8348. if v == nil {
  8349. e.e.EncodeNil()
  8350. return
  8351. }
  8352. ee, esep := e.e, e.hh.hasElemSeparators()
  8353. ee.WriteMapStart(len(v))
  8354. if e.h.Canonical {
  8355. v2 := make([]uint64, len(v))
  8356. var i uint
  8357. for k := range v {
  8358. v2[i] = uint64(k)
  8359. i++
  8360. }
  8361. sort.Sort(uintSlice(v2))
  8362. if esep {
  8363. for _, k2 := range v2 {
  8364. ee.WriteMapElemKey()
  8365. ee.EncodeUint(uint64(uint32(k2)))
  8366. ee.WriteMapElemValue()
  8367. ee.EncodeFloat32(v[uint32(k2)])
  8368. }
  8369. } else {
  8370. for _, k2 := range v2 {
  8371. ee.EncodeUint(uint64(uint32(k2)))
  8372. ee.EncodeFloat32(v[uint32(k2)])
  8373. }
  8374. }
  8375. } else {
  8376. if esep {
  8377. for k2, v2 := range v {
  8378. ee.WriteMapElemKey()
  8379. ee.EncodeUint(uint64(k2))
  8380. ee.WriteMapElemValue()
  8381. ee.EncodeFloat32(v2)
  8382. }
  8383. } else {
  8384. for k2, v2 := range v {
  8385. ee.EncodeUint(uint64(k2))
  8386. ee.EncodeFloat32(v2)
  8387. }
  8388. }
  8389. }
  8390. ee.WriteMapEnd()
  8391. }
  8392. func (e *Encoder) fastpathEncMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  8393. fastpathTV.EncMapUint32Float64V(rv2i(rv).(map[uint32]float64), e)
  8394. }
  8395. func (_ fastpathT) EncMapUint32Float64V(v map[uint32]float64, e *Encoder) {
  8396. if v == nil {
  8397. e.e.EncodeNil()
  8398. return
  8399. }
  8400. ee, esep := e.e, e.hh.hasElemSeparators()
  8401. ee.WriteMapStart(len(v))
  8402. if e.h.Canonical {
  8403. v2 := make([]uint64, len(v))
  8404. var i uint
  8405. for k := range v {
  8406. v2[i] = uint64(k)
  8407. i++
  8408. }
  8409. sort.Sort(uintSlice(v2))
  8410. if esep {
  8411. for _, k2 := range v2 {
  8412. ee.WriteMapElemKey()
  8413. ee.EncodeUint(uint64(uint32(k2)))
  8414. ee.WriteMapElemValue()
  8415. ee.EncodeFloat64(v[uint32(k2)])
  8416. }
  8417. } else {
  8418. for _, k2 := range v2 {
  8419. ee.EncodeUint(uint64(uint32(k2)))
  8420. ee.EncodeFloat64(v[uint32(k2)])
  8421. }
  8422. }
  8423. } else {
  8424. if esep {
  8425. for k2, v2 := range v {
  8426. ee.WriteMapElemKey()
  8427. ee.EncodeUint(uint64(k2))
  8428. ee.WriteMapElemValue()
  8429. ee.EncodeFloat64(v2)
  8430. }
  8431. } else {
  8432. for k2, v2 := range v {
  8433. ee.EncodeUint(uint64(k2))
  8434. ee.EncodeFloat64(v2)
  8435. }
  8436. }
  8437. }
  8438. ee.WriteMapEnd()
  8439. }
  8440. func (e *Encoder) fastpathEncMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  8441. fastpathTV.EncMapUint32BoolV(rv2i(rv).(map[uint32]bool), e)
  8442. }
  8443. func (_ fastpathT) EncMapUint32BoolV(v map[uint32]bool, e *Encoder) {
  8444. if v == nil {
  8445. e.e.EncodeNil()
  8446. return
  8447. }
  8448. ee, esep := e.e, e.hh.hasElemSeparators()
  8449. ee.WriteMapStart(len(v))
  8450. if e.h.Canonical {
  8451. v2 := make([]uint64, len(v))
  8452. var i uint
  8453. for k := range v {
  8454. v2[i] = uint64(k)
  8455. i++
  8456. }
  8457. sort.Sort(uintSlice(v2))
  8458. if esep {
  8459. for _, k2 := range v2 {
  8460. ee.WriteMapElemKey()
  8461. ee.EncodeUint(uint64(uint32(k2)))
  8462. ee.WriteMapElemValue()
  8463. ee.EncodeBool(v[uint32(k2)])
  8464. }
  8465. } else {
  8466. for _, k2 := range v2 {
  8467. ee.EncodeUint(uint64(uint32(k2)))
  8468. ee.EncodeBool(v[uint32(k2)])
  8469. }
  8470. }
  8471. } else {
  8472. if esep {
  8473. for k2, v2 := range v {
  8474. ee.WriteMapElemKey()
  8475. ee.EncodeUint(uint64(k2))
  8476. ee.WriteMapElemValue()
  8477. ee.EncodeBool(v2)
  8478. }
  8479. } else {
  8480. for k2, v2 := range v {
  8481. ee.EncodeUint(uint64(k2))
  8482. ee.EncodeBool(v2)
  8483. }
  8484. }
  8485. }
  8486. ee.WriteMapEnd()
  8487. }
  8488. func (e *Encoder) fastpathEncMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  8489. fastpathTV.EncMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), e)
  8490. }
  8491. func (_ fastpathT) EncMapUint64IntfV(v map[uint64]interface{}, e *Encoder) {
  8492. if v == nil {
  8493. e.e.EncodeNil()
  8494. return
  8495. }
  8496. ee, esep := e.e, e.hh.hasElemSeparators()
  8497. ee.WriteMapStart(len(v))
  8498. if e.h.Canonical {
  8499. v2 := make([]uint64, len(v))
  8500. var i uint
  8501. for k := range v {
  8502. v2[i] = uint64(k)
  8503. i++
  8504. }
  8505. sort.Sort(uintSlice(v2))
  8506. if esep {
  8507. for _, k2 := range v2 {
  8508. ee.WriteMapElemKey()
  8509. ee.EncodeUint(uint64(uint64(k2)))
  8510. ee.WriteMapElemValue()
  8511. e.encode(v[uint64(k2)])
  8512. }
  8513. } else {
  8514. for _, k2 := range v2 {
  8515. ee.EncodeUint(uint64(uint64(k2)))
  8516. e.encode(v[uint64(k2)])
  8517. }
  8518. }
  8519. } else {
  8520. if esep {
  8521. for k2, v2 := range v {
  8522. ee.WriteMapElemKey()
  8523. ee.EncodeUint(uint64(k2))
  8524. ee.WriteMapElemValue()
  8525. e.encode(v2)
  8526. }
  8527. } else {
  8528. for k2, v2 := range v {
  8529. ee.EncodeUint(uint64(k2))
  8530. e.encode(v2)
  8531. }
  8532. }
  8533. }
  8534. ee.WriteMapEnd()
  8535. }
  8536. func (e *Encoder) fastpathEncMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  8537. fastpathTV.EncMapUint64StringV(rv2i(rv).(map[uint64]string), e)
  8538. }
  8539. func (_ fastpathT) EncMapUint64StringV(v map[uint64]string, e *Encoder) {
  8540. if v == nil {
  8541. e.e.EncodeNil()
  8542. return
  8543. }
  8544. ee, esep := e.e, e.hh.hasElemSeparators()
  8545. ee.WriteMapStart(len(v))
  8546. if e.h.Canonical {
  8547. v2 := make([]uint64, len(v))
  8548. var i uint
  8549. for k := range v {
  8550. v2[i] = uint64(k)
  8551. i++
  8552. }
  8553. sort.Sort(uintSlice(v2))
  8554. if esep {
  8555. for _, k2 := range v2 {
  8556. ee.WriteMapElemKey()
  8557. ee.EncodeUint(uint64(uint64(k2)))
  8558. ee.WriteMapElemValue()
  8559. ee.EncodeStringEnc(cUTF8, v[uint64(k2)])
  8560. }
  8561. } else {
  8562. for _, k2 := range v2 {
  8563. ee.EncodeUint(uint64(uint64(k2)))
  8564. ee.EncodeStringEnc(cUTF8, v[uint64(k2)])
  8565. }
  8566. }
  8567. } else {
  8568. if esep {
  8569. for k2, v2 := range v {
  8570. ee.WriteMapElemKey()
  8571. ee.EncodeUint(uint64(k2))
  8572. ee.WriteMapElemValue()
  8573. ee.EncodeStringEnc(cUTF8, v2)
  8574. }
  8575. } else {
  8576. for k2, v2 := range v {
  8577. ee.EncodeUint(uint64(k2))
  8578. ee.EncodeStringEnc(cUTF8, v2)
  8579. }
  8580. }
  8581. }
  8582. ee.WriteMapEnd()
  8583. }
  8584. func (e *Encoder) fastpathEncMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  8585. fastpathTV.EncMapUint64UintV(rv2i(rv).(map[uint64]uint), e)
  8586. }
  8587. func (_ fastpathT) EncMapUint64UintV(v map[uint64]uint, e *Encoder) {
  8588. if v == nil {
  8589. e.e.EncodeNil()
  8590. return
  8591. }
  8592. ee, esep := e.e, e.hh.hasElemSeparators()
  8593. ee.WriteMapStart(len(v))
  8594. if e.h.Canonical {
  8595. v2 := make([]uint64, len(v))
  8596. var i uint
  8597. for k := range v {
  8598. v2[i] = uint64(k)
  8599. i++
  8600. }
  8601. sort.Sort(uintSlice(v2))
  8602. if esep {
  8603. for _, k2 := range v2 {
  8604. ee.WriteMapElemKey()
  8605. ee.EncodeUint(uint64(uint64(k2)))
  8606. ee.WriteMapElemValue()
  8607. ee.EncodeUint(uint64(v[uint64(k2)]))
  8608. }
  8609. } else {
  8610. for _, k2 := range v2 {
  8611. ee.EncodeUint(uint64(uint64(k2)))
  8612. ee.EncodeUint(uint64(v[uint64(k2)]))
  8613. }
  8614. }
  8615. } else {
  8616. if esep {
  8617. for k2, v2 := range v {
  8618. ee.WriteMapElemKey()
  8619. ee.EncodeUint(uint64(k2))
  8620. ee.WriteMapElemValue()
  8621. ee.EncodeUint(uint64(v2))
  8622. }
  8623. } else {
  8624. for k2, v2 := range v {
  8625. ee.EncodeUint(uint64(k2))
  8626. ee.EncodeUint(uint64(v2))
  8627. }
  8628. }
  8629. }
  8630. ee.WriteMapEnd()
  8631. }
  8632. func (e *Encoder) fastpathEncMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  8633. fastpathTV.EncMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), e)
  8634. }
  8635. func (_ fastpathT) EncMapUint64Uint8V(v map[uint64]uint8, e *Encoder) {
  8636. if v == nil {
  8637. e.e.EncodeNil()
  8638. return
  8639. }
  8640. ee, esep := e.e, e.hh.hasElemSeparators()
  8641. ee.WriteMapStart(len(v))
  8642. if e.h.Canonical {
  8643. v2 := make([]uint64, len(v))
  8644. var i uint
  8645. for k := range v {
  8646. v2[i] = uint64(k)
  8647. i++
  8648. }
  8649. sort.Sort(uintSlice(v2))
  8650. if esep {
  8651. for _, k2 := range v2 {
  8652. ee.WriteMapElemKey()
  8653. ee.EncodeUint(uint64(uint64(k2)))
  8654. ee.WriteMapElemValue()
  8655. ee.EncodeUint(uint64(v[uint64(k2)]))
  8656. }
  8657. } else {
  8658. for _, k2 := range v2 {
  8659. ee.EncodeUint(uint64(uint64(k2)))
  8660. ee.EncodeUint(uint64(v[uint64(k2)]))
  8661. }
  8662. }
  8663. } else {
  8664. if esep {
  8665. for k2, v2 := range v {
  8666. ee.WriteMapElemKey()
  8667. ee.EncodeUint(uint64(k2))
  8668. ee.WriteMapElemValue()
  8669. ee.EncodeUint(uint64(v2))
  8670. }
  8671. } else {
  8672. for k2, v2 := range v {
  8673. ee.EncodeUint(uint64(k2))
  8674. ee.EncodeUint(uint64(v2))
  8675. }
  8676. }
  8677. }
  8678. ee.WriteMapEnd()
  8679. }
  8680. func (e *Encoder) fastpathEncMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  8681. fastpathTV.EncMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), e)
  8682. }
  8683. func (_ fastpathT) EncMapUint64Uint16V(v map[uint64]uint16, e *Encoder) {
  8684. if v == nil {
  8685. e.e.EncodeNil()
  8686. return
  8687. }
  8688. ee, esep := e.e, e.hh.hasElemSeparators()
  8689. ee.WriteMapStart(len(v))
  8690. if e.h.Canonical {
  8691. v2 := make([]uint64, len(v))
  8692. var i uint
  8693. for k := range v {
  8694. v2[i] = uint64(k)
  8695. i++
  8696. }
  8697. sort.Sort(uintSlice(v2))
  8698. if esep {
  8699. for _, k2 := range v2 {
  8700. ee.WriteMapElemKey()
  8701. ee.EncodeUint(uint64(uint64(k2)))
  8702. ee.WriteMapElemValue()
  8703. ee.EncodeUint(uint64(v[uint64(k2)]))
  8704. }
  8705. } else {
  8706. for _, k2 := range v2 {
  8707. ee.EncodeUint(uint64(uint64(k2)))
  8708. ee.EncodeUint(uint64(v[uint64(k2)]))
  8709. }
  8710. }
  8711. } else {
  8712. if esep {
  8713. for k2, v2 := range v {
  8714. ee.WriteMapElemKey()
  8715. ee.EncodeUint(uint64(k2))
  8716. ee.WriteMapElemValue()
  8717. ee.EncodeUint(uint64(v2))
  8718. }
  8719. } else {
  8720. for k2, v2 := range v {
  8721. ee.EncodeUint(uint64(k2))
  8722. ee.EncodeUint(uint64(v2))
  8723. }
  8724. }
  8725. }
  8726. ee.WriteMapEnd()
  8727. }
  8728. func (e *Encoder) fastpathEncMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  8729. fastpathTV.EncMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), e)
  8730. }
  8731. func (_ fastpathT) EncMapUint64Uint32V(v map[uint64]uint32, e *Encoder) {
  8732. if v == nil {
  8733. e.e.EncodeNil()
  8734. return
  8735. }
  8736. ee, esep := e.e, e.hh.hasElemSeparators()
  8737. ee.WriteMapStart(len(v))
  8738. if e.h.Canonical {
  8739. v2 := make([]uint64, len(v))
  8740. var i uint
  8741. for k := range v {
  8742. v2[i] = uint64(k)
  8743. i++
  8744. }
  8745. sort.Sort(uintSlice(v2))
  8746. if esep {
  8747. for _, k2 := range v2 {
  8748. ee.WriteMapElemKey()
  8749. ee.EncodeUint(uint64(uint64(k2)))
  8750. ee.WriteMapElemValue()
  8751. ee.EncodeUint(uint64(v[uint64(k2)]))
  8752. }
  8753. } else {
  8754. for _, k2 := range v2 {
  8755. ee.EncodeUint(uint64(uint64(k2)))
  8756. ee.EncodeUint(uint64(v[uint64(k2)]))
  8757. }
  8758. }
  8759. } else {
  8760. if esep {
  8761. for k2, v2 := range v {
  8762. ee.WriteMapElemKey()
  8763. ee.EncodeUint(uint64(k2))
  8764. ee.WriteMapElemValue()
  8765. ee.EncodeUint(uint64(v2))
  8766. }
  8767. } else {
  8768. for k2, v2 := range v {
  8769. ee.EncodeUint(uint64(k2))
  8770. ee.EncodeUint(uint64(v2))
  8771. }
  8772. }
  8773. }
  8774. ee.WriteMapEnd()
  8775. }
  8776. func (e *Encoder) fastpathEncMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  8777. fastpathTV.EncMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), e)
  8778. }
  8779. func (_ fastpathT) EncMapUint64Uint64V(v map[uint64]uint64, e *Encoder) {
  8780. if v == nil {
  8781. e.e.EncodeNil()
  8782. return
  8783. }
  8784. ee, esep := e.e, e.hh.hasElemSeparators()
  8785. ee.WriteMapStart(len(v))
  8786. if e.h.Canonical {
  8787. v2 := make([]uint64, len(v))
  8788. var i uint
  8789. for k := range v {
  8790. v2[i] = uint64(k)
  8791. i++
  8792. }
  8793. sort.Sort(uintSlice(v2))
  8794. if esep {
  8795. for _, k2 := range v2 {
  8796. ee.WriteMapElemKey()
  8797. ee.EncodeUint(uint64(uint64(k2)))
  8798. ee.WriteMapElemValue()
  8799. ee.EncodeUint(uint64(v[uint64(k2)]))
  8800. }
  8801. } else {
  8802. for _, k2 := range v2 {
  8803. ee.EncodeUint(uint64(uint64(k2)))
  8804. ee.EncodeUint(uint64(v[uint64(k2)]))
  8805. }
  8806. }
  8807. } else {
  8808. if esep {
  8809. for k2, v2 := range v {
  8810. ee.WriteMapElemKey()
  8811. ee.EncodeUint(uint64(k2))
  8812. ee.WriteMapElemValue()
  8813. ee.EncodeUint(uint64(v2))
  8814. }
  8815. } else {
  8816. for k2, v2 := range v {
  8817. ee.EncodeUint(uint64(k2))
  8818. ee.EncodeUint(uint64(v2))
  8819. }
  8820. }
  8821. }
  8822. ee.WriteMapEnd()
  8823. }
  8824. func (e *Encoder) fastpathEncMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  8825. fastpathTV.EncMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), e)
  8826. }
  8827. func (_ fastpathT) EncMapUint64UintptrV(v map[uint64]uintptr, e *Encoder) {
  8828. if v == nil {
  8829. e.e.EncodeNil()
  8830. return
  8831. }
  8832. ee, esep := e.e, e.hh.hasElemSeparators()
  8833. ee.WriteMapStart(len(v))
  8834. if e.h.Canonical {
  8835. v2 := make([]uint64, len(v))
  8836. var i uint
  8837. for k := range v {
  8838. v2[i] = uint64(k)
  8839. i++
  8840. }
  8841. sort.Sort(uintSlice(v2))
  8842. if esep {
  8843. for _, k2 := range v2 {
  8844. ee.WriteMapElemKey()
  8845. ee.EncodeUint(uint64(uint64(k2)))
  8846. ee.WriteMapElemValue()
  8847. e.encode(v[uint64(k2)])
  8848. }
  8849. } else {
  8850. for _, k2 := range v2 {
  8851. ee.EncodeUint(uint64(uint64(k2)))
  8852. e.encode(v[uint64(k2)])
  8853. }
  8854. }
  8855. } else {
  8856. if esep {
  8857. for k2, v2 := range v {
  8858. ee.WriteMapElemKey()
  8859. ee.EncodeUint(uint64(k2))
  8860. ee.WriteMapElemValue()
  8861. e.encode(v2)
  8862. }
  8863. } else {
  8864. for k2, v2 := range v {
  8865. ee.EncodeUint(uint64(k2))
  8866. e.encode(v2)
  8867. }
  8868. }
  8869. }
  8870. ee.WriteMapEnd()
  8871. }
  8872. func (e *Encoder) fastpathEncMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  8873. fastpathTV.EncMapUint64IntV(rv2i(rv).(map[uint64]int), e)
  8874. }
  8875. func (_ fastpathT) EncMapUint64IntV(v map[uint64]int, e *Encoder) {
  8876. if v == nil {
  8877. e.e.EncodeNil()
  8878. return
  8879. }
  8880. ee, esep := e.e, e.hh.hasElemSeparators()
  8881. ee.WriteMapStart(len(v))
  8882. if e.h.Canonical {
  8883. v2 := make([]uint64, len(v))
  8884. var i uint
  8885. for k := range v {
  8886. v2[i] = uint64(k)
  8887. i++
  8888. }
  8889. sort.Sort(uintSlice(v2))
  8890. if esep {
  8891. for _, k2 := range v2 {
  8892. ee.WriteMapElemKey()
  8893. ee.EncodeUint(uint64(uint64(k2)))
  8894. ee.WriteMapElemValue()
  8895. ee.EncodeInt(int64(v[uint64(k2)]))
  8896. }
  8897. } else {
  8898. for _, k2 := range v2 {
  8899. ee.EncodeUint(uint64(uint64(k2)))
  8900. ee.EncodeInt(int64(v[uint64(k2)]))
  8901. }
  8902. }
  8903. } else {
  8904. if esep {
  8905. for k2, v2 := range v {
  8906. ee.WriteMapElemKey()
  8907. ee.EncodeUint(uint64(k2))
  8908. ee.WriteMapElemValue()
  8909. ee.EncodeInt(int64(v2))
  8910. }
  8911. } else {
  8912. for k2, v2 := range v {
  8913. ee.EncodeUint(uint64(k2))
  8914. ee.EncodeInt(int64(v2))
  8915. }
  8916. }
  8917. }
  8918. ee.WriteMapEnd()
  8919. }
  8920. func (e *Encoder) fastpathEncMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  8921. fastpathTV.EncMapUint64Int8V(rv2i(rv).(map[uint64]int8), e)
  8922. }
  8923. func (_ fastpathT) EncMapUint64Int8V(v map[uint64]int8, e *Encoder) {
  8924. if v == nil {
  8925. e.e.EncodeNil()
  8926. return
  8927. }
  8928. ee, esep := e.e, e.hh.hasElemSeparators()
  8929. ee.WriteMapStart(len(v))
  8930. if e.h.Canonical {
  8931. v2 := make([]uint64, len(v))
  8932. var i uint
  8933. for k := range v {
  8934. v2[i] = uint64(k)
  8935. i++
  8936. }
  8937. sort.Sort(uintSlice(v2))
  8938. if esep {
  8939. for _, k2 := range v2 {
  8940. ee.WriteMapElemKey()
  8941. ee.EncodeUint(uint64(uint64(k2)))
  8942. ee.WriteMapElemValue()
  8943. ee.EncodeInt(int64(v[uint64(k2)]))
  8944. }
  8945. } else {
  8946. for _, k2 := range v2 {
  8947. ee.EncodeUint(uint64(uint64(k2)))
  8948. ee.EncodeInt(int64(v[uint64(k2)]))
  8949. }
  8950. }
  8951. } else {
  8952. if esep {
  8953. for k2, v2 := range v {
  8954. ee.WriteMapElemKey()
  8955. ee.EncodeUint(uint64(k2))
  8956. ee.WriteMapElemValue()
  8957. ee.EncodeInt(int64(v2))
  8958. }
  8959. } else {
  8960. for k2, v2 := range v {
  8961. ee.EncodeUint(uint64(k2))
  8962. ee.EncodeInt(int64(v2))
  8963. }
  8964. }
  8965. }
  8966. ee.WriteMapEnd()
  8967. }
  8968. func (e *Encoder) fastpathEncMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  8969. fastpathTV.EncMapUint64Int16V(rv2i(rv).(map[uint64]int16), e)
  8970. }
  8971. func (_ fastpathT) EncMapUint64Int16V(v map[uint64]int16, e *Encoder) {
  8972. if v == nil {
  8973. e.e.EncodeNil()
  8974. return
  8975. }
  8976. ee, esep := e.e, e.hh.hasElemSeparators()
  8977. ee.WriteMapStart(len(v))
  8978. if e.h.Canonical {
  8979. v2 := make([]uint64, len(v))
  8980. var i uint
  8981. for k := range v {
  8982. v2[i] = uint64(k)
  8983. i++
  8984. }
  8985. sort.Sort(uintSlice(v2))
  8986. if esep {
  8987. for _, k2 := range v2 {
  8988. ee.WriteMapElemKey()
  8989. ee.EncodeUint(uint64(uint64(k2)))
  8990. ee.WriteMapElemValue()
  8991. ee.EncodeInt(int64(v[uint64(k2)]))
  8992. }
  8993. } else {
  8994. for _, k2 := range v2 {
  8995. ee.EncodeUint(uint64(uint64(k2)))
  8996. ee.EncodeInt(int64(v[uint64(k2)]))
  8997. }
  8998. }
  8999. } else {
  9000. if esep {
  9001. for k2, v2 := range v {
  9002. ee.WriteMapElemKey()
  9003. ee.EncodeUint(uint64(k2))
  9004. ee.WriteMapElemValue()
  9005. ee.EncodeInt(int64(v2))
  9006. }
  9007. } else {
  9008. for k2, v2 := range v {
  9009. ee.EncodeUint(uint64(k2))
  9010. ee.EncodeInt(int64(v2))
  9011. }
  9012. }
  9013. }
  9014. ee.WriteMapEnd()
  9015. }
  9016. func (e *Encoder) fastpathEncMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  9017. fastpathTV.EncMapUint64Int32V(rv2i(rv).(map[uint64]int32), e)
  9018. }
  9019. func (_ fastpathT) EncMapUint64Int32V(v map[uint64]int32, e *Encoder) {
  9020. if v == nil {
  9021. e.e.EncodeNil()
  9022. return
  9023. }
  9024. ee, esep := e.e, e.hh.hasElemSeparators()
  9025. ee.WriteMapStart(len(v))
  9026. if e.h.Canonical {
  9027. v2 := make([]uint64, len(v))
  9028. var i uint
  9029. for k := range v {
  9030. v2[i] = uint64(k)
  9031. i++
  9032. }
  9033. sort.Sort(uintSlice(v2))
  9034. if esep {
  9035. for _, k2 := range v2 {
  9036. ee.WriteMapElemKey()
  9037. ee.EncodeUint(uint64(uint64(k2)))
  9038. ee.WriteMapElemValue()
  9039. ee.EncodeInt(int64(v[uint64(k2)]))
  9040. }
  9041. } else {
  9042. for _, k2 := range v2 {
  9043. ee.EncodeUint(uint64(uint64(k2)))
  9044. ee.EncodeInt(int64(v[uint64(k2)]))
  9045. }
  9046. }
  9047. } else {
  9048. if esep {
  9049. for k2, v2 := range v {
  9050. ee.WriteMapElemKey()
  9051. ee.EncodeUint(uint64(k2))
  9052. ee.WriteMapElemValue()
  9053. ee.EncodeInt(int64(v2))
  9054. }
  9055. } else {
  9056. for k2, v2 := range v {
  9057. ee.EncodeUint(uint64(k2))
  9058. ee.EncodeInt(int64(v2))
  9059. }
  9060. }
  9061. }
  9062. ee.WriteMapEnd()
  9063. }
  9064. func (e *Encoder) fastpathEncMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  9065. fastpathTV.EncMapUint64Int64V(rv2i(rv).(map[uint64]int64), e)
  9066. }
  9067. func (_ fastpathT) EncMapUint64Int64V(v map[uint64]int64, e *Encoder) {
  9068. if v == nil {
  9069. e.e.EncodeNil()
  9070. return
  9071. }
  9072. ee, esep := e.e, e.hh.hasElemSeparators()
  9073. ee.WriteMapStart(len(v))
  9074. if e.h.Canonical {
  9075. v2 := make([]uint64, len(v))
  9076. var i uint
  9077. for k := range v {
  9078. v2[i] = uint64(k)
  9079. i++
  9080. }
  9081. sort.Sort(uintSlice(v2))
  9082. if esep {
  9083. for _, k2 := range v2 {
  9084. ee.WriteMapElemKey()
  9085. ee.EncodeUint(uint64(uint64(k2)))
  9086. ee.WriteMapElemValue()
  9087. ee.EncodeInt(int64(v[uint64(k2)]))
  9088. }
  9089. } else {
  9090. for _, k2 := range v2 {
  9091. ee.EncodeUint(uint64(uint64(k2)))
  9092. ee.EncodeInt(int64(v[uint64(k2)]))
  9093. }
  9094. }
  9095. } else {
  9096. if esep {
  9097. for k2, v2 := range v {
  9098. ee.WriteMapElemKey()
  9099. ee.EncodeUint(uint64(k2))
  9100. ee.WriteMapElemValue()
  9101. ee.EncodeInt(int64(v2))
  9102. }
  9103. } else {
  9104. for k2, v2 := range v {
  9105. ee.EncodeUint(uint64(k2))
  9106. ee.EncodeInt(int64(v2))
  9107. }
  9108. }
  9109. }
  9110. ee.WriteMapEnd()
  9111. }
  9112. func (e *Encoder) fastpathEncMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  9113. fastpathTV.EncMapUint64Float32V(rv2i(rv).(map[uint64]float32), e)
  9114. }
  9115. func (_ fastpathT) EncMapUint64Float32V(v map[uint64]float32, e *Encoder) {
  9116. if v == nil {
  9117. e.e.EncodeNil()
  9118. return
  9119. }
  9120. ee, esep := e.e, e.hh.hasElemSeparators()
  9121. ee.WriteMapStart(len(v))
  9122. if e.h.Canonical {
  9123. v2 := make([]uint64, len(v))
  9124. var i uint
  9125. for k := range v {
  9126. v2[i] = uint64(k)
  9127. i++
  9128. }
  9129. sort.Sort(uintSlice(v2))
  9130. if esep {
  9131. for _, k2 := range v2 {
  9132. ee.WriteMapElemKey()
  9133. ee.EncodeUint(uint64(uint64(k2)))
  9134. ee.WriteMapElemValue()
  9135. ee.EncodeFloat32(v[uint64(k2)])
  9136. }
  9137. } else {
  9138. for _, k2 := range v2 {
  9139. ee.EncodeUint(uint64(uint64(k2)))
  9140. ee.EncodeFloat32(v[uint64(k2)])
  9141. }
  9142. }
  9143. } else {
  9144. if esep {
  9145. for k2, v2 := range v {
  9146. ee.WriteMapElemKey()
  9147. ee.EncodeUint(uint64(k2))
  9148. ee.WriteMapElemValue()
  9149. ee.EncodeFloat32(v2)
  9150. }
  9151. } else {
  9152. for k2, v2 := range v {
  9153. ee.EncodeUint(uint64(k2))
  9154. ee.EncodeFloat32(v2)
  9155. }
  9156. }
  9157. }
  9158. ee.WriteMapEnd()
  9159. }
  9160. func (e *Encoder) fastpathEncMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  9161. fastpathTV.EncMapUint64Float64V(rv2i(rv).(map[uint64]float64), e)
  9162. }
  9163. func (_ fastpathT) EncMapUint64Float64V(v map[uint64]float64, e *Encoder) {
  9164. if v == nil {
  9165. e.e.EncodeNil()
  9166. return
  9167. }
  9168. ee, esep := e.e, e.hh.hasElemSeparators()
  9169. ee.WriteMapStart(len(v))
  9170. if e.h.Canonical {
  9171. v2 := make([]uint64, len(v))
  9172. var i uint
  9173. for k := range v {
  9174. v2[i] = uint64(k)
  9175. i++
  9176. }
  9177. sort.Sort(uintSlice(v2))
  9178. if esep {
  9179. for _, k2 := range v2 {
  9180. ee.WriteMapElemKey()
  9181. ee.EncodeUint(uint64(uint64(k2)))
  9182. ee.WriteMapElemValue()
  9183. ee.EncodeFloat64(v[uint64(k2)])
  9184. }
  9185. } else {
  9186. for _, k2 := range v2 {
  9187. ee.EncodeUint(uint64(uint64(k2)))
  9188. ee.EncodeFloat64(v[uint64(k2)])
  9189. }
  9190. }
  9191. } else {
  9192. if esep {
  9193. for k2, v2 := range v {
  9194. ee.WriteMapElemKey()
  9195. ee.EncodeUint(uint64(k2))
  9196. ee.WriteMapElemValue()
  9197. ee.EncodeFloat64(v2)
  9198. }
  9199. } else {
  9200. for k2, v2 := range v {
  9201. ee.EncodeUint(uint64(k2))
  9202. ee.EncodeFloat64(v2)
  9203. }
  9204. }
  9205. }
  9206. ee.WriteMapEnd()
  9207. }
  9208. func (e *Encoder) fastpathEncMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  9209. fastpathTV.EncMapUint64BoolV(rv2i(rv).(map[uint64]bool), e)
  9210. }
  9211. func (_ fastpathT) EncMapUint64BoolV(v map[uint64]bool, e *Encoder) {
  9212. if v == nil {
  9213. e.e.EncodeNil()
  9214. return
  9215. }
  9216. ee, esep := e.e, e.hh.hasElemSeparators()
  9217. ee.WriteMapStart(len(v))
  9218. if e.h.Canonical {
  9219. v2 := make([]uint64, len(v))
  9220. var i uint
  9221. for k := range v {
  9222. v2[i] = uint64(k)
  9223. i++
  9224. }
  9225. sort.Sort(uintSlice(v2))
  9226. if esep {
  9227. for _, k2 := range v2 {
  9228. ee.WriteMapElemKey()
  9229. ee.EncodeUint(uint64(uint64(k2)))
  9230. ee.WriteMapElemValue()
  9231. ee.EncodeBool(v[uint64(k2)])
  9232. }
  9233. } else {
  9234. for _, k2 := range v2 {
  9235. ee.EncodeUint(uint64(uint64(k2)))
  9236. ee.EncodeBool(v[uint64(k2)])
  9237. }
  9238. }
  9239. } else {
  9240. if esep {
  9241. for k2, v2 := range v {
  9242. ee.WriteMapElemKey()
  9243. ee.EncodeUint(uint64(k2))
  9244. ee.WriteMapElemValue()
  9245. ee.EncodeBool(v2)
  9246. }
  9247. } else {
  9248. for k2, v2 := range v {
  9249. ee.EncodeUint(uint64(k2))
  9250. ee.EncodeBool(v2)
  9251. }
  9252. }
  9253. }
  9254. ee.WriteMapEnd()
  9255. }
  9256. func (e *Encoder) fastpathEncMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  9257. fastpathTV.EncMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), e)
  9258. }
  9259. func (_ fastpathT) EncMapUintptrIntfV(v map[uintptr]interface{}, e *Encoder) {
  9260. if v == nil {
  9261. e.e.EncodeNil()
  9262. return
  9263. }
  9264. ee, esep := e.e, e.hh.hasElemSeparators()
  9265. ee.WriteMapStart(len(v))
  9266. if e.h.Canonical {
  9267. v2 := make([]uint64, len(v))
  9268. var i uint
  9269. for k := range v {
  9270. v2[i] = uint64(k)
  9271. i++
  9272. }
  9273. sort.Sort(uintSlice(v2))
  9274. if esep {
  9275. for _, k2 := range v2 {
  9276. ee.WriteMapElemKey()
  9277. e.encode(uintptr(k2))
  9278. ee.WriteMapElemValue()
  9279. e.encode(v[uintptr(k2)])
  9280. }
  9281. } else {
  9282. for _, k2 := range v2 {
  9283. e.encode(uintptr(k2))
  9284. e.encode(v[uintptr(k2)])
  9285. }
  9286. }
  9287. } else {
  9288. if esep {
  9289. for k2, v2 := range v {
  9290. ee.WriteMapElemKey()
  9291. e.encode(k2)
  9292. ee.WriteMapElemValue()
  9293. e.encode(v2)
  9294. }
  9295. } else {
  9296. for k2, v2 := range v {
  9297. e.encode(k2)
  9298. e.encode(v2)
  9299. }
  9300. }
  9301. }
  9302. ee.WriteMapEnd()
  9303. }
  9304. func (e *Encoder) fastpathEncMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  9305. fastpathTV.EncMapUintptrStringV(rv2i(rv).(map[uintptr]string), e)
  9306. }
  9307. func (_ fastpathT) EncMapUintptrStringV(v map[uintptr]string, e *Encoder) {
  9308. if v == nil {
  9309. e.e.EncodeNil()
  9310. return
  9311. }
  9312. ee, esep := e.e, e.hh.hasElemSeparators()
  9313. ee.WriteMapStart(len(v))
  9314. if e.h.Canonical {
  9315. v2 := make([]uint64, len(v))
  9316. var i uint
  9317. for k := range v {
  9318. v2[i] = uint64(k)
  9319. i++
  9320. }
  9321. sort.Sort(uintSlice(v2))
  9322. if esep {
  9323. for _, k2 := range v2 {
  9324. ee.WriteMapElemKey()
  9325. e.encode(uintptr(k2))
  9326. ee.WriteMapElemValue()
  9327. ee.EncodeStringEnc(cUTF8, v[uintptr(k2)])
  9328. }
  9329. } else {
  9330. for _, k2 := range v2 {
  9331. e.encode(uintptr(k2))
  9332. ee.EncodeStringEnc(cUTF8, v[uintptr(k2)])
  9333. }
  9334. }
  9335. } else {
  9336. if esep {
  9337. for k2, v2 := range v {
  9338. ee.WriteMapElemKey()
  9339. e.encode(k2)
  9340. ee.WriteMapElemValue()
  9341. ee.EncodeStringEnc(cUTF8, v2)
  9342. }
  9343. } else {
  9344. for k2, v2 := range v {
  9345. e.encode(k2)
  9346. ee.EncodeStringEnc(cUTF8, v2)
  9347. }
  9348. }
  9349. }
  9350. ee.WriteMapEnd()
  9351. }
  9352. func (e *Encoder) fastpathEncMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  9353. fastpathTV.EncMapUintptrUintV(rv2i(rv).(map[uintptr]uint), e)
  9354. }
  9355. func (_ fastpathT) EncMapUintptrUintV(v map[uintptr]uint, e *Encoder) {
  9356. if v == nil {
  9357. e.e.EncodeNil()
  9358. return
  9359. }
  9360. ee, esep := e.e, e.hh.hasElemSeparators()
  9361. ee.WriteMapStart(len(v))
  9362. if e.h.Canonical {
  9363. v2 := make([]uint64, len(v))
  9364. var i uint
  9365. for k := range v {
  9366. v2[i] = uint64(k)
  9367. i++
  9368. }
  9369. sort.Sort(uintSlice(v2))
  9370. if esep {
  9371. for _, k2 := range v2 {
  9372. ee.WriteMapElemKey()
  9373. e.encode(uintptr(k2))
  9374. ee.WriteMapElemValue()
  9375. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9376. }
  9377. } else {
  9378. for _, k2 := range v2 {
  9379. e.encode(uintptr(k2))
  9380. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9381. }
  9382. }
  9383. } else {
  9384. if esep {
  9385. for k2, v2 := range v {
  9386. ee.WriteMapElemKey()
  9387. e.encode(k2)
  9388. ee.WriteMapElemValue()
  9389. ee.EncodeUint(uint64(v2))
  9390. }
  9391. } else {
  9392. for k2, v2 := range v {
  9393. e.encode(k2)
  9394. ee.EncodeUint(uint64(v2))
  9395. }
  9396. }
  9397. }
  9398. ee.WriteMapEnd()
  9399. }
  9400. func (e *Encoder) fastpathEncMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  9401. fastpathTV.EncMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), e)
  9402. }
  9403. func (_ fastpathT) EncMapUintptrUint8V(v map[uintptr]uint8, e *Encoder) {
  9404. if v == nil {
  9405. e.e.EncodeNil()
  9406. return
  9407. }
  9408. ee, esep := e.e, e.hh.hasElemSeparators()
  9409. ee.WriteMapStart(len(v))
  9410. if e.h.Canonical {
  9411. v2 := make([]uint64, len(v))
  9412. var i uint
  9413. for k := range v {
  9414. v2[i] = uint64(k)
  9415. i++
  9416. }
  9417. sort.Sort(uintSlice(v2))
  9418. if esep {
  9419. for _, k2 := range v2 {
  9420. ee.WriteMapElemKey()
  9421. e.encode(uintptr(k2))
  9422. ee.WriteMapElemValue()
  9423. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9424. }
  9425. } else {
  9426. for _, k2 := range v2 {
  9427. e.encode(uintptr(k2))
  9428. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9429. }
  9430. }
  9431. } else {
  9432. if esep {
  9433. for k2, v2 := range v {
  9434. ee.WriteMapElemKey()
  9435. e.encode(k2)
  9436. ee.WriteMapElemValue()
  9437. ee.EncodeUint(uint64(v2))
  9438. }
  9439. } else {
  9440. for k2, v2 := range v {
  9441. e.encode(k2)
  9442. ee.EncodeUint(uint64(v2))
  9443. }
  9444. }
  9445. }
  9446. ee.WriteMapEnd()
  9447. }
  9448. func (e *Encoder) fastpathEncMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  9449. fastpathTV.EncMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), e)
  9450. }
  9451. func (_ fastpathT) EncMapUintptrUint16V(v map[uintptr]uint16, e *Encoder) {
  9452. if v == nil {
  9453. e.e.EncodeNil()
  9454. return
  9455. }
  9456. ee, esep := e.e, e.hh.hasElemSeparators()
  9457. ee.WriteMapStart(len(v))
  9458. if e.h.Canonical {
  9459. v2 := make([]uint64, len(v))
  9460. var i uint
  9461. for k := range v {
  9462. v2[i] = uint64(k)
  9463. i++
  9464. }
  9465. sort.Sort(uintSlice(v2))
  9466. if esep {
  9467. for _, k2 := range v2 {
  9468. ee.WriteMapElemKey()
  9469. e.encode(uintptr(k2))
  9470. ee.WriteMapElemValue()
  9471. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9472. }
  9473. } else {
  9474. for _, k2 := range v2 {
  9475. e.encode(uintptr(k2))
  9476. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9477. }
  9478. }
  9479. } else {
  9480. if esep {
  9481. for k2, v2 := range v {
  9482. ee.WriteMapElemKey()
  9483. e.encode(k2)
  9484. ee.WriteMapElemValue()
  9485. ee.EncodeUint(uint64(v2))
  9486. }
  9487. } else {
  9488. for k2, v2 := range v {
  9489. e.encode(k2)
  9490. ee.EncodeUint(uint64(v2))
  9491. }
  9492. }
  9493. }
  9494. ee.WriteMapEnd()
  9495. }
  9496. func (e *Encoder) fastpathEncMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  9497. fastpathTV.EncMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), e)
  9498. }
  9499. func (_ fastpathT) EncMapUintptrUint32V(v map[uintptr]uint32, e *Encoder) {
  9500. if v == nil {
  9501. e.e.EncodeNil()
  9502. return
  9503. }
  9504. ee, esep := e.e, e.hh.hasElemSeparators()
  9505. ee.WriteMapStart(len(v))
  9506. if e.h.Canonical {
  9507. v2 := make([]uint64, len(v))
  9508. var i uint
  9509. for k := range v {
  9510. v2[i] = uint64(k)
  9511. i++
  9512. }
  9513. sort.Sort(uintSlice(v2))
  9514. if esep {
  9515. for _, k2 := range v2 {
  9516. ee.WriteMapElemKey()
  9517. e.encode(uintptr(k2))
  9518. ee.WriteMapElemValue()
  9519. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9520. }
  9521. } else {
  9522. for _, k2 := range v2 {
  9523. e.encode(uintptr(k2))
  9524. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9525. }
  9526. }
  9527. } else {
  9528. if esep {
  9529. for k2, v2 := range v {
  9530. ee.WriteMapElemKey()
  9531. e.encode(k2)
  9532. ee.WriteMapElemValue()
  9533. ee.EncodeUint(uint64(v2))
  9534. }
  9535. } else {
  9536. for k2, v2 := range v {
  9537. e.encode(k2)
  9538. ee.EncodeUint(uint64(v2))
  9539. }
  9540. }
  9541. }
  9542. ee.WriteMapEnd()
  9543. }
  9544. func (e *Encoder) fastpathEncMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  9545. fastpathTV.EncMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), e)
  9546. }
  9547. func (_ fastpathT) EncMapUintptrUint64V(v map[uintptr]uint64, e *Encoder) {
  9548. if v == nil {
  9549. e.e.EncodeNil()
  9550. return
  9551. }
  9552. ee, esep := e.e, e.hh.hasElemSeparators()
  9553. ee.WriteMapStart(len(v))
  9554. if e.h.Canonical {
  9555. v2 := make([]uint64, len(v))
  9556. var i uint
  9557. for k := range v {
  9558. v2[i] = uint64(k)
  9559. i++
  9560. }
  9561. sort.Sort(uintSlice(v2))
  9562. if esep {
  9563. for _, k2 := range v2 {
  9564. ee.WriteMapElemKey()
  9565. e.encode(uintptr(k2))
  9566. ee.WriteMapElemValue()
  9567. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9568. }
  9569. } else {
  9570. for _, k2 := range v2 {
  9571. e.encode(uintptr(k2))
  9572. ee.EncodeUint(uint64(v[uintptr(k2)]))
  9573. }
  9574. }
  9575. } else {
  9576. if esep {
  9577. for k2, v2 := range v {
  9578. ee.WriteMapElemKey()
  9579. e.encode(k2)
  9580. ee.WriteMapElemValue()
  9581. ee.EncodeUint(uint64(v2))
  9582. }
  9583. } else {
  9584. for k2, v2 := range v {
  9585. e.encode(k2)
  9586. ee.EncodeUint(uint64(v2))
  9587. }
  9588. }
  9589. }
  9590. ee.WriteMapEnd()
  9591. }
  9592. func (e *Encoder) fastpathEncMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  9593. fastpathTV.EncMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), e)
  9594. }
  9595. func (_ fastpathT) EncMapUintptrUintptrV(v map[uintptr]uintptr, e *Encoder) {
  9596. if v == nil {
  9597. e.e.EncodeNil()
  9598. return
  9599. }
  9600. ee, esep := e.e, e.hh.hasElemSeparators()
  9601. ee.WriteMapStart(len(v))
  9602. if e.h.Canonical {
  9603. v2 := make([]uint64, len(v))
  9604. var i uint
  9605. for k := range v {
  9606. v2[i] = uint64(k)
  9607. i++
  9608. }
  9609. sort.Sort(uintSlice(v2))
  9610. if esep {
  9611. for _, k2 := range v2 {
  9612. ee.WriteMapElemKey()
  9613. e.encode(uintptr(k2))
  9614. ee.WriteMapElemValue()
  9615. e.encode(v[uintptr(k2)])
  9616. }
  9617. } else {
  9618. for _, k2 := range v2 {
  9619. e.encode(uintptr(k2))
  9620. e.encode(v[uintptr(k2)])
  9621. }
  9622. }
  9623. } else {
  9624. if esep {
  9625. for k2, v2 := range v {
  9626. ee.WriteMapElemKey()
  9627. e.encode(k2)
  9628. ee.WriteMapElemValue()
  9629. e.encode(v2)
  9630. }
  9631. } else {
  9632. for k2, v2 := range v {
  9633. e.encode(k2)
  9634. e.encode(v2)
  9635. }
  9636. }
  9637. }
  9638. ee.WriteMapEnd()
  9639. }
  9640. func (e *Encoder) fastpathEncMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  9641. fastpathTV.EncMapUintptrIntV(rv2i(rv).(map[uintptr]int), e)
  9642. }
  9643. func (_ fastpathT) EncMapUintptrIntV(v map[uintptr]int, e *Encoder) {
  9644. if v == nil {
  9645. e.e.EncodeNil()
  9646. return
  9647. }
  9648. ee, esep := e.e, e.hh.hasElemSeparators()
  9649. ee.WriteMapStart(len(v))
  9650. if e.h.Canonical {
  9651. v2 := make([]uint64, len(v))
  9652. var i uint
  9653. for k := range v {
  9654. v2[i] = uint64(k)
  9655. i++
  9656. }
  9657. sort.Sort(uintSlice(v2))
  9658. if esep {
  9659. for _, k2 := range v2 {
  9660. ee.WriteMapElemKey()
  9661. e.encode(uintptr(k2))
  9662. ee.WriteMapElemValue()
  9663. ee.EncodeInt(int64(v[uintptr(k2)]))
  9664. }
  9665. } else {
  9666. for _, k2 := range v2 {
  9667. e.encode(uintptr(k2))
  9668. ee.EncodeInt(int64(v[uintptr(k2)]))
  9669. }
  9670. }
  9671. } else {
  9672. if esep {
  9673. for k2, v2 := range v {
  9674. ee.WriteMapElemKey()
  9675. e.encode(k2)
  9676. ee.WriteMapElemValue()
  9677. ee.EncodeInt(int64(v2))
  9678. }
  9679. } else {
  9680. for k2, v2 := range v {
  9681. e.encode(k2)
  9682. ee.EncodeInt(int64(v2))
  9683. }
  9684. }
  9685. }
  9686. ee.WriteMapEnd()
  9687. }
  9688. func (e *Encoder) fastpathEncMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  9689. fastpathTV.EncMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), e)
  9690. }
  9691. func (_ fastpathT) EncMapUintptrInt8V(v map[uintptr]int8, e *Encoder) {
  9692. if v == nil {
  9693. e.e.EncodeNil()
  9694. return
  9695. }
  9696. ee, esep := e.e, e.hh.hasElemSeparators()
  9697. ee.WriteMapStart(len(v))
  9698. if e.h.Canonical {
  9699. v2 := make([]uint64, len(v))
  9700. var i uint
  9701. for k := range v {
  9702. v2[i] = uint64(k)
  9703. i++
  9704. }
  9705. sort.Sort(uintSlice(v2))
  9706. if esep {
  9707. for _, k2 := range v2 {
  9708. ee.WriteMapElemKey()
  9709. e.encode(uintptr(k2))
  9710. ee.WriteMapElemValue()
  9711. ee.EncodeInt(int64(v[uintptr(k2)]))
  9712. }
  9713. } else {
  9714. for _, k2 := range v2 {
  9715. e.encode(uintptr(k2))
  9716. ee.EncodeInt(int64(v[uintptr(k2)]))
  9717. }
  9718. }
  9719. } else {
  9720. if esep {
  9721. for k2, v2 := range v {
  9722. ee.WriteMapElemKey()
  9723. e.encode(k2)
  9724. ee.WriteMapElemValue()
  9725. ee.EncodeInt(int64(v2))
  9726. }
  9727. } else {
  9728. for k2, v2 := range v {
  9729. e.encode(k2)
  9730. ee.EncodeInt(int64(v2))
  9731. }
  9732. }
  9733. }
  9734. ee.WriteMapEnd()
  9735. }
  9736. func (e *Encoder) fastpathEncMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  9737. fastpathTV.EncMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), e)
  9738. }
  9739. func (_ fastpathT) EncMapUintptrInt16V(v map[uintptr]int16, e *Encoder) {
  9740. if v == nil {
  9741. e.e.EncodeNil()
  9742. return
  9743. }
  9744. ee, esep := e.e, e.hh.hasElemSeparators()
  9745. ee.WriteMapStart(len(v))
  9746. if e.h.Canonical {
  9747. v2 := make([]uint64, len(v))
  9748. var i uint
  9749. for k := range v {
  9750. v2[i] = uint64(k)
  9751. i++
  9752. }
  9753. sort.Sort(uintSlice(v2))
  9754. if esep {
  9755. for _, k2 := range v2 {
  9756. ee.WriteMapElemKey()
  9757. e.encode(uintptr(k2))
  9758. ee.WriteMapElemValue()
  9759. ee.EncodeInt(int64(v[uintptr(k2)]))
  9760. }
  9761. } else {
  9762. for _, k2 := range v2 {
  9763. e.encode(uintptr(k2))
  9764. ee.EncodeInt(int64(v[uintptr(k2)]))
  9765. }
  9766. }
  9767. } else {
  9768. if esep {
  9769. for k2, v2 := range v {
  9770. ee.WriteMapElemKey()
  9771. e.encode(k2)
  9772. ee.WriteMapElemValue()
  9773. ee.EncodeInt(int64(v2))
  9774. }
  9775. } else {
  9776. for k2, v2 := range v {
  9777. e.encode(k2)
  9778. ee.EncodeInt(int64(v2))
  9779. }
  9780. }
  9781. }
  9782. ee.WriteMapEnd()
  9783. }
  9784. func (e *Encoder) fastpathEncMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  9785. fastpathTV.EncMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), e)
  9786. }
  9787. func (_ fastpathT) EncMapUintptrInt32V(v map[uintptr]int32, e *Encoder) {
  9788. if v == nil {
  9789. e.e.EncodeNil()
  9790. return
  9791. }
  9792. ee, esep := e.e, e.hh.hasElemSeparators()
  9793. ee.WriteMapStart(len(v))
  9794. if e.h.Canonical {
  9795. v2 := make([]uint64, len(v))
  9796. var i uint
  9797. for k := range v {
  9798. v2[i] = uint64(k)
  9799. i++
  9800. }
  9801. sort.Sort(uintSlice(v2))
  9802. if esep {
  9803. for _, k2 := range v2 {
  9804. ee.WriteMapElemKey()
  9805. e.encode(uintptr(k2))
  9806. ee.WriteMapElemValue()
  9807. ee.EncodeInt(int64(v[uintptr(k2)]))
  9808. }
  9809. } else {
  9810. for _, k2 := range v2 {
  9811. e.encode(uintptr(k2))
  9812. ee.EncodeInt(int64(v[uintptr(k2)]))
  9813. }
  9814. }
  9815. } else {
  9816. if esep {
  9817. for k2, v2 := range v {
  9818. ee.WriteMapElemKey()
  9819. e.encode(k2)
  9820. ee.WriteMapElemValue()
  9821. ee.EncodeInt(int64(v2))
  9822. }
  9823. } else {
  9824. for k2, v2 := range v {
  9825. e.encode(k2)
  9826. ee.EncodeInt(int64(v2))
  9827. }
  9828. }
  9829. }
  9830. ee.WriteMapEnd()
  9831. }
  9832. func (e *Encoder) fastpathEncMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  9833. fastpathTV.EncMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), e)
  9834. }
  9835. func (_ fastpathT) EncMapUintptrInt64V(v map[uintptr]int64, e *Encoder) {
  9836. if v == nil {
  9837. e.e.EncodeNil()
  9838. return
  9839. }
  9840. ee, esep := e.e, e.hh.hasElemSeparators()
  9841. ee.WriteMapStart(len(v))
  9842. if e.h.Canonical {
  9843. v2 := make([]uint64, len(v))
  9844. var i uint
  9845. for k := range v {
  9846. v2[i] = uint64(k)
  9847. i++
  9848. }
  9849. sort.Sort(uintSlice(v2))
  9850. if esep {
  9851. for _, k2 := range v2 {
  9852. ee.WriteMapElemKey()
  9853. e.encode(uintptr(k2))
  9854. ee.WriteMapElemValue()
  9855. ee.EncodeInt(int64(v[uintptr(k2)]))
  9856. }
  9857. } else {
  9858. for _, k2 := range v2 {
  9859. e.encode(uintptr(k2))
  9860. ee.EncodeInt(int64(v[uintptr(k2)]))
  9861. }
  9862. }
  9863. } else {
  9864. if esep {
  9865. for k2, v2 := range v {
  9866. ee.WriteMapElemKey()
  9867. e.encode(k2)
  9868. ee.WriteMapElemValue()
  9869. ee.EncodeInt(int64(v2))
  9870. }
  9871. } else {
  9872. for k2, v2 := range v {
  9873. e.encode(k2)
  9874. ee.EncodeInt(int64(v2))
  9875. }
  9876. }
  9877. }
  9878. ee.WriteMapEnd()
  9879. }
  9880. func (e *Encoder) fastpathEncMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  9881. fastpathTV.EncMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), e)
  9882. }
  9883. func (_ fastpathT) EncMapUintptrFloat32V(v map[uintptr]float32, e *Encoder) {
  9884. if v == nil {
  9885. e.e.EncodeNil()
  9886. return
  9887. }
  9888. ee, esep := e.e, e.hh.hasElemSeparators()
  9889. ee.WriteMapStart(len(v))
  9890. if e.h.Canonical {
  9891. v2 := make([]uint64, len(v))
  9892. var i uint
  9893. for k := range v {
  9894. v2[i] = uint64(k)
  9895. i++
  9896. }
  9897. sort.Sort(uintSlice(v2))
  9898. if esep {
  9899. for _, k2 := range v2 {
  9900. ee.WriteMapElemKey()
  9901. e.encode(uintptr(k2))
  9902. ee.WriteMapElemValue()
  9903. ee.EncodeFloat32(v[uintptr(k2)])
  9904. }
  9905. } else {
  9906. for _, k2 := range v2 {
  9907. e.encode(uintptr(k2))
  9908. ee.EncodeFloat32(v[uintptr(k2)])
  9909. }
  9910. }
  9911. } else {
  9912. if esep {
  9913. for k2, v2 := range v {
  9914. ee.WriteMapElemKey()
  9915. e.encode(k2)
  9916. ee.WriteMapElemValue()
  9917. ee.EncodeFloat32(v2)
  9918. }
  9919. } else {
  9920. for k2, v2 := range v {
  9921. e.encode(k2)
  9922. ee.EncodeFloat32(v2)
  9923. }
  9924. }
  9925. }
  9926. ee.WriteMapEnd()
  9927. }
  9928. func (e *Encoder) fastpathEncMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  9929. fastpathTV.EncMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), e)
  9930. }
  9931. func (_ fastpathT) EncMapUintptrFloat64V(v map[uintptr]float64, e *Encoder) {
  9932. if v == nil {
  9933. e.e.EncodeNil()
  9934. return
  9935. }
  9936. ee, esep := e.e, e.hh.hasElemSeparators()
  9937. ee.WriteMapStart(len(v))
  9938. if e.h.Canonical {
  9939. v2 := make([]uint64, len(v))
  9940. var i uint
  9941. for k := range v {
  9942. v2[i] = uint64(k)
  9943. i++
  9944. }
  9945. sort.Sort(uintSlice(v2))
  9946. if esep {
  9947. for _, k2 := range v2 {
  9948. ee.WriteMapElemKey()
  9949. e.encode(uintptr(k2))
  9950. ee.WriteMapElemValue()
  9951. ee.EncodeFloat64(v[uintptr(k2)])
  9952. }
  9953. } else {
  9954. for _, k2 := range v2 {
  9955. e.encode(uintptr(k2))
  9956. ee.EncodeFloat64(v[uintptr(k2)])
  9957. }
  9958. }
  9959. } else {
  9960. if esep {
  9961. for k2, v2 := range v {
  9962. ee.WriteMapElemKey()
  9963. e.encode(k2)
  9964. ee.WriteMapElemValue()
  9965. ee.EncodeFloat64(v2)
  9966. }
  9967. } else {
  9968. for k2, v2 := range v {
  9969. e.encode(k2)
  9970. ee.EncodeFloat64(v2)
  9971. }
  9972. }
  9973. }
  9974. ee.WriteMapEnd()
  9975. }
  9976. func (e *Encoder) fastpathEncMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  9977. fastpathTV.EncMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), e)
  9978. }
  9979. func (_ fastpathT) EncMapUintptrBoolV(v map[uintptr]bool, e *Encoder) {
  9980. if v == nil {
  9981. e.e.EncodeNil()
  9982. return
  9983. }
  9984. ee, esep := e.e, e.hh.hasElemSeparators()
  9985. ee.WriteMapStart(len(v))
  9986. if e.h.Canonical {
  9987. v2 := make([]uint64, len(v))
  9988. var i uint
  9989. for k := range v {
  9990. v2[i] = uint64(k)
  9991. i++
  9992. }
  9993. sort.Sort(uintSlice(v2))
  9994. if esep {
  9995. for _, k2 := range v2 {
  9996. ee.WriteMapElemKey()
  9997. e.encode(uintptr(k2))
  9998. ee.WriteMapElemValue()
  9999. ee.EncodeBool(v[uintptr(k2)])
  10000. }
  10001. } else {
  10002. for _, k2 := range v2 {
  10003. e.encode(uintptr(k2))
  10004. ee.EncodeBool(v[uintptr(k2)])
  10005. }
  10006. }
  10007. } else {
  10008. if esep {
  10009. for k2, v2 := range v {
  10010. ee.WriteMapElemKey()
  10011. e.encode(k2)
  10012. ee.WriteMapElemValue()
  10013. ee.EncodeBool(v2)
  10014. }
  10015. } else {
  10016. for k2, v2 := range v {
  10017. e.encode(k2)
  10018. ee.EncodeBool(v2)
  10019. }
  10020. }
  10021. }
  10022. ee.WriteMapEnd()
  10023. }
  10024. func (e *Encoder) fastpathEncMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  10025. fastpathTV.EncMapIntIntfV(rv2i(rv).(map[int]interface{}), e)
  10026. }
  10027. func (_ fastpathT) EncMapIntIntfV(v map[int]interface{}, e *Encoder) {
  10028. if v == nil {
  10029. e.e.EncodeNil()
  10030. return
  10031. }
  10032. ee, esep := e.e, e.hh.hasElemSeparators()
  10033. ee.WriteMapStart(len(v))
  10034. if e.h.Canonical {
  10035. v2 := make([]int64, len(v))
  10036. var i uint
  10037. for k := range v {
  10038. v2[i] = int64(k)
  10039. i++
  10040. }
  10041. sort.Sort(intSlice(v2))
  10042. if esep {
  10043. for _, k2 := range v2 {
  10044. ee.WriteMapElemKey()
  10045. ee.EncodeInt(int64(int(k2)))
  10046. ee.WriteMapElemValue()
  10047. e.encode(v[int(k2)])
  10048. }
  10049. } else {
  10050. for _, k2 := range v2 {
  10051. ee.EncodeInt(int64(int(k2)))
  10052. e.encode(v[int(k2)])
  10053. }
  10054. }
  10055. } else {
  10056. if esep {
  10057. for k2, v2 := range v {
  10058. ee.WriteMapElemKey()
  10059. ee.EncodeInt(int64(k2))
  10060. ee.WriteMapElemValue()
  10061. e.encode(v2)
  10062. }
  10063. } else {
  10064. for k2, v2 := range v {
  10065. ee.EncodeInt(int64(k2))
  10066. e.encode(v2)
  10067. }
  10068. }
  10069. }
  10070. ee.WriteMapEnd()
  10071. }
  10072. func (e *Encoder) fastpathEncMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  10073. fastpathTV.EncMapIntStringV(rv2i(rv).(map[int]string), e)
  10074. }
  10075. func (_ fastpathT) EncMapIntStringV(v map[int]string, e *Encoder) {
  10076. if v == nil {
  10077. e.e.EncodeNil()
  10078. return
  10079. }
  10080. ee, esep := e.e, e.hh.hasElemSeparators()
  10081. ee.WriteMapStart(len(v))
  10082. if e.h.Canonical {
  10083. v2 := make([]int64, len(v))
  10084. var i uint
  10085. for k := range v {
  10086. v2[i] = int64(k)
  10087. i++
  10088. }
  10089. sort.Sort(intSlice(v2))
  10090. if esep {
  10091. for _, k2 := range v2 {
  10092. ee.WriteMapElemKey()
  10093. ee.EncodeInt(int64(int(k2)))
  10094. ee.WriteMapElemValue()
  10095. ee.EncodeStringEnc(cUTF8, v[int(k2)])
  10096. }
  10097. } else {
  10098. for _, k2 := range v2 {
  10099. ee.EncodeInt(int64(int(k2)))
  10100. ee.EncodeStringEnc(cUTF8, v[int(k2)])
  10101. }
  10102. }
  10103. } else {
  10104. if esep {
  10105. for k2, v2 := range v {
  10106. ee.WriteMapElemKey()
  10107. ee.EncodeInt(int64(k2))
  10108. ee.WriteMapElemValue()
  10109. ee.EncodeStringEnc(cUTF8, v2)
  10110. }
  10111. } else {
  10112. for k2, v2 := range v {
  10113. ee.EncodeInt(int64(k2))
  10114. ee.EncodeStringEnc(cUTF8, v2)
  10115. }
  10116. }
  10117. }
  10118. ee.WriteMapEnd()
  10119. }
  10120. func (e *Encoder) fastpathEncMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  10121. fastpathTV.EncMapIntUintV(rv2i(rv).(map[int]uint), e)
  10122. }
  10123. func (_ fastpathT) EncMapIntUintV(v map[int]uint, e *Encoder) {
  10124. if v == nil {
  10125. e.e.EncodeNil()
  10126. return
  10127. }
  10128. ee, esep := e.e, e.hh.hasElemSeparators()
  10129. ee.WriteMapStart(len(v))
  10130. if e.h.Canonical {
  10131. v2 := make([]int64, len(v))
  10132. var i uint
  10133. for k := range v {
  10134. v2[i] = int64(k)
  10135. i++
  10136. }
  10137. sort.Sort(intSlice(v2))
  10138. if esep {
  10139. for _, k2 := range v2 {
  10140. ee.WriteMapElemKey()
  10141. ee.EncodeInt(int64(int(k2)))
  10142. ee.WriteMapElemValue()
  10143. ee.EncodeUint(uint64(v[int(k2)]))
  10144. }
  10145. } else {
  10146. for _, k2 := range v2 {
  10147. ee.EncodeInt(int64(int(k2)))
  10148. ee.EncodeUint(uint64(v[int(k2)]))
  10149. }
  10150. }
  10151. } else {
  10152. if esep {
  10153. for k2, v2 := range v {
  10154. ee.WriteMapElemKey()
  10155. ee.EncodeInt(int64(k2))
  10156. ee.WriteMapElemValue()
  10157. ee.EncodeUint(uint64(v2))
  10158. }
  10159. } else {
  10160. for k2, v2 := range v {
  10161. ee.EncodeInt(int64(k2))
  10162. ee.EncodeUint(uint64(v2))
  10163. }
  10164. }
  10165. }
  10166. ee.WriteMapEnd()
  10167. }
  10168. func (e *Encoder) fastpathEncMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  10169. fastpathTV.EncMapIntUint8V(rv2i(rv).(map[int]uint8), e)
  10170. }
  10171. func (_ fastpathT) EncMapIntUint8V(v map[int]uint8, e *Encoder) {
  10172. if v == nil {
  10173. e.e.EncodeNil()
  10174. return
  10175. }
  10176. ee, esep := e.e, e.hh.hasElemSeparators()
  10177. ee.WriteMapStart(len(v))
  10178. if e.h.Canonical {
  10179. v2 := make([]int64, len(v))
  10180. var i uint
  10181. for k := range v {
  10182. v2[i] = int64(k)
  10183. i++
  10184. }
  10185. sort.Sort(intSlice(v2))
  10186. if esep {
  10187. for _, k2 := range v2 {
  10188. ee.WriteMapElemKey()
  10189. ee.EncodeInt(int64(int(k2)))
  10190. ee.WriteMapElemValue()
  10191. ee.EncodeUint(uint64(v[int(k2)]))
  10192. }
  10193. } else {
  10194. for _, k2 := range v2 {
  10195. ee.EncodeInt(int64(int(k2)))
  10196. ee.EncodeUint(uint64(v[int(k2)]))
  10197. }
  10198. }
  10199. } else {
  10200. if esep {
  10201. for k2, v2 := range v {
  10202. ee.WriteMapElemKey()
  10203. ee.EncodeInt(int64(k2))
  10204. ee.WriteMapElemValue()
  10205. ee.EncodeUint(uint64(v2))
  10206. }
  10207. } else {
  10208. for k2, v2 := range v {
  10209. ee.EncodeInt(int64(k2))
  10210. ee.EncodeUint(uint64(v2))
  10211. }
  10212. }
  10213. }
  10214. ee.WriteMapEnd()
  10215. }
  10216. func (e *Encoder) fastpathEncMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  10217. fastpathTV.EncMapIntUint16V(rv2i(rv).(map[int]uint16), e)
  10218. }
  10219. func (_ fastpathT) EncMapIntUint16V(v map[int]uint16, e *Encoder) {
  10220. if v == nil {
  10221. e.e.EncodeNil()
  10222. return
  10223. }
  10224. ee, esep := e.e, e.hh.hasElemSeparators()
  10225. ee.WriteMapStart(len(v))
  10226. if e.h.Canonical {
  10227. v2 := make([]int64, len(v))
  10228. var i uint
  10229. for k := range v {
  10230. v2[i] = int64(k)
  10231. i++
  10232. }
  10233. sort.Sort(intSlice(v2))
  10234. if esep {
  10235. for _, k2 := range v2 {
  10236. ee.WriteMapElemKey()
  10237. ee.EncodeInt(int64(int(k2)))
  10238. ee.WriteMapElemValue()
  10239. ee.EncodeUint(uint64(v[int(k2)]))
  10240. }
  10241. } else {
  10242. for _, k2 := range v2 {
  10243. ee.EncodeInt(int64(int(k2)))
  10244. ee.EncodeUint(uint64(v[int(k2)]))
  10245. }
  10246. }
  10247. } else {
  10248. if esep {
  10249. for k2, v2 := range v {
  10250. ee.WriteMapElemKey()
  10251. ee.EncodeInt(int64(k2))
  10252. ee.WriteMapElemValue()
  10253. ee.EncodeUint(uint64(v2))
  10254. }
  10255. } else {
  10256. for k2, v2 := range v {
  10257. ee.EncodeInt(int64(k2))
  10258. ee.EncodeUint(uint64(v2))
  10259. }
  10260. }
  10261. }
  10262. ee.WriteMapEnd()
  10263. }
  10264. func (e *Encoder) fastpathEncMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  10265. fastpathTV.EncMapIntUint32V(rv2i(rv).(map[int]uint32), e)
  10266. }
  10267. func (_ fastpathT) EncMapIntUint32V(v map[int]uint32, e *Encoder) {
  10268. if v == nil {
  10269. e.e.EncodeNil()
  10270. return
  10271. }
  10272. ee, esep := e.e, e.hh.hasElemSeparators()
  10273. ee.WriteMapStart(len(v))
  10274. if e.h.Canonical {
  10275. v2 := make([]int64, len(v))
  10276. var i uint
  10277. for k := range v {
  10278. v2[i] = int64(k)
  10279. i++
  10280. }
  10281. sort.Sort(intSlice(v2))
  10282. if esep {
  10283. for _, k2 := range v2 {
  10284. ee.WriteMapElemKey()
  10285. ee.EncodeInt(int64(int(k2)))
  10286. ee.WriteMapElemValue()
  10287. ee.EncodeUint(uint64(v[int(k2)]))
  10288. }
  10289. } else {
  10290. for _, k2 := range v2 {
  10291. ee.EncodeInt(int64(int(k2)))
  10292. ee.EncodeUint(uint64(v[int(k2)]))
  10293. }
  10294. }
  10295. } else {
  10296. if esep {
  10297. for k2, v2 := range v {
  10298. ee.WriteMapElemKey()
  10299. ee.EncodeInt(int64(k2))
  10300. ee.WriteMapElemValue()
  10301. ee.EncodeUint(uint64(v2))
  10302. }
  10303. } else {
  10304. for k2, v2 := range v {
  10305. ee.EncodeInt(int64(k2))
  10306. ee.EncodeUint(uint64(v2))
  10307. }
  10308. }
  10309. }
  10310. ee.WriteMapEnd()
  10311. }
  10312. func (e *Encoder) fastpathEncMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  10313. fastpathTV.EncMapIntUint64V(rv2i(rv).(map[int]uint64), e)
  10314. }
  10315. func (_ fastpathT) EncMapIntUint64V(v map[int]uint64, e *Encoder) {
  10316. if v == nil {
  10317. e.e.EncodeNil()
  10318. return
  10319. }
  10320. ee, esep := e.e, e.hh.hasElemSeparators()
  10321. ee.WriteMapStart(len(v))
  10322. if e.h.Canonical {
  10323. v2 := make([]int64, len(v))
  10324. var i uint
  10325. for k := range v {
  10326. v2[i] = int64(k)
  10327. i++
  10328. }
  10329. sort.Sort(intSlice(v2))
  10330. if esep {
  10331. for _, k2 := range v2 {
  10332. ee.WriteMapElemKey()
  10333. ee.EncodeInt(int64(int(k2)))
  10334. ee.WriteMapElemValue()
  10335. ee.EncodeUint(uint64(v[int(k2)]))
  10336. }
  10337. } else {
  10338. for _, k2 := range v2 {
  10339. ee.EncodeInt(int64(int(k2)))
  10340. ee.EncodeUint(uint64(v[int(k2)]))
  10341. }
  10342. }
  10343. } else {
  10344. if esep {
  10345. for k2, v2 := range v {
  10346. ee.WriteMapElemKey()
  10347. ee.EncodeInt(int64(k2))
  10348. ee.WriteMapElemValue()
  10349. ee.EncodeUint(uint64(v2))
  10350. }
  10351. } else {
  10352. for k2, v2 := range v {
  10353. ee.EncodeInt(int64(k2))
  10354. ee.EncodeUint(uint64(v2))
  10355. }
  10356. }
  10357. }
  10358. ee.WriteMapEnd()
  10359. }
  10360. func (e *Encoder) fastpathEncMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  10361. fastpathTV.EncMapIntUintptrV(rv2i(rv).(map[int]uintptr), e)
  10362. }
  10363. func (_ fastpathT) EncMapIntUintptrV(v map[int]uintptr, e *Encoder) {
  10364. if v == nil {
  10365. e.e.EncodeNil()
  10366. return
  10367. }
  10368. ee, esep := e.e, e.hh.hasElemSeparators()
  10369. ee.WriteMapStart(len(v))
  10370. if e.h.Canonical {
  10371. v2 := make([]int64, len(v))
  10372. var i uint
  10373. for k := range v {
  10374. v2[i] = int64(k)
  10375. i++
  10376. }
  10377. sort.Sort(intSlice(v2))
  10378. if esep {
  10379. for _, k2 := range v2 {
  10380. ee.WriteMapElemKey()
  10381. ee.EncodeInt(int64(int(k2)))
  10382. ee.WriteMapElemValue()
  10383. e.encode(v[int(k2)])
  10384. }
  10385. } else {
  10386. for _, k2 := range v2 {
  10387. ee.EncodeInt(int64(int(k2)))
  10388. e.encode(v[int(k2)])
  10389. }
  10390. }
  10391. } else {
  10392. if esep {
  10393. for k2, v2 := range v {
  10394. ee.WriteMapElemKey()
  10395. ee.EncodeInt(int64(k2))
  10396. ee.WriteMapElemValue()
  10397. e.encode(v2)
  10398. }
  10399. } else {
  10400. for k2, v2 := range v {
  10401. ee.EncodeInt(int64(k2))
  10402. e.encode(v2)
  10403. }
  10404. }
  10405. }
  10406. ee.WriteMapEnd()
  10407. }
  10408. func (e *Encoder) fastpathEncMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  10409. fastpathTV.EncMapIntIntV(rv2i(rv).(map[int]int), e)
  10410. }
  10411. func (_ fastpathT) EncMapIntIntV(v map[int]int, e *Encoder) {
  10412. if v == nil {
  10413. e.e.EncodeNil()
  10414. return
  10415. }
  10416. ee, esep := e.e, e.hh.hasElemSeparators()
  10417. ee.WriteMapStart(len(v))
  10418. if e.h.Canonical {
  10419. v2 := make([]int64, len(v))
  10420. var i uint
  10421. for k := range v {
  10422. v2[i] = int64(k)
  10423. i++
  10424. }
  10425. sort.Sort(intSlice(v2))
  10426. if esep {
  10427. for _, k2 := range v2 {
  10428. ee.WriteMapElemKey()
  10429. ee.EncodeInt(int64(int(k2)))
  10430. ee.WriteMapElemValue()
  10431. ee.EncodeInt(int64(v[int(k2)]))
  10432. }
  10433. } else {
  10434. for _, k2 := range v2 {
  10435. ee.EncodeInt(int64(int(k2)))
  10436. ee.EncodeInt(int64(v[int(k2)]))
  10437. }
  10438. }
  10439. } else {
  10440. if esep {
  10441. for k2, v2 := range v {
  10442. ee.WriteMapElemKey()
  10443. ee.EncodeInt(int64(k2))
  10444. ee.WriteMapElemValue()
  10445. ee.EncodeInt(int64(v2))
  10446. }
  10447. } else {
  10448. for k2, v2 := range v {
  10449. ee.EncodeInt(int64(k2))
  10450. ee.EncodeInt(int64(v2))
  10451. }
  10452. }
  10453. }
  10454. ee.WriteMapEnd()
  10455. }
  10456. func (e *Encoder) fastpathEncMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  10457. fastpathTV.EncMapIntInt8V(rv2i(rv).(map[int]int8), e)
  10458. }
  10459. func (_ fastpathT) EncMapIntInt8V(v map[int]int8, e *Encoder) {
  10460. if v == nil {
  10461. e.e.EncodeNil()
  10462. return
  10463. }
  10464. ee, esep := e.e, e.hh.hasElemSeparators()
  10465. ee.WriteMapStart(len(v))
  10466. if e.h.Canonical {
  10467. v2 := make([]int64, len(v))
  10468. var i uint
  10469. for k := range v {
  10470. v2[i] = int64(k)
  10471. i++
  10472. }
  10473. sort.Sort(intSlice(v2))
  10474. if esep {
  10475. for _, k2 := range v2 {
  10476. ee.WriteMapElemKey()
  10477. ee.EncodeInt(int64(int(k2)))
  10478. ee.WriteMapElemValue()
  10479. ee.EncodeInt(int64(v[int(k2)]))
  10480. }
  10481. } else {
  10482. for _, k2 := range v2 {
  10483. ee.EncodeInt(int64(int(k2)))
  10484. ee.EncodeInt(int64(v[int(k2)]))
  10485. }
  10486. }
  10487. } else {
  10488. if esep {
  10489. for k2, v2 := range v {
  10490. ee.WriteMapElemKey()
  10491. ee.EncodeInt(int64(k2))
  10492. ee.WriteMapElemValue()
  10493. ee.EncodeInt(int64(v2))
  10494. }
  10495. } else {
  10496. for k2, v2 := range v {
  10497. ee.EncodeInt(int64(k2))
  10498. ee.EncodeInt(int64(v2))
  10499. }
  10500. }
  10501. }
  10502. ee.WriteMapEnd()
  10503. }
  10504. func (e *Encoder) fastpathEncMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  10505. fastpathTV.EncMapIntInt16V(rv2i(rv).(map[int]int16), e)
  10506. }
  10507. func (_ fastpathT) EncMapIntInt16V(v map[int]int16, e *Encoder) {
  10508. if v == nil {
  10509. e.e.EncodeNil()
  10510. return
  10511. }
  10512. ee, esep := e.e, e.hh.hasElemSeparators()
  10513. ee.WriteMapStart(len(v))
  10514. if e.h.Canonical {
  10515. v2 := make([]int64, len(v))
  10516. var i uint
  10517. for k := range v {
  10518. v2[i] = int64(k)
  10519. i++
  10520. }
  10521. sort.Sort(intSlice(v2))
  10522. if esep {
  10523. for _, k2 := range v2 {
  10524. ee.WriteMapElemKey()
  10525. ee.EncodeInt(int64(int(k2)))
  10526. ee.WriteMapElemValue()
  10527. ee.EncodeInt(int64(v[int(k2)]))
  10528. }
  10529. } else {
  10530. for _, k2 := range v2 {
  10531. ee.EncodeInt(int64(int(k2)))
  10532. ee.EncodeInt(int64(v[int(k2)]))
  10533. }
  10534. }
  10535. } else {
  10536. if esep {
  10537. for k2, v2 := range v {
  10538. ee.WriteMapElemKey()
  10539. ee.EncodeInt(int64(k2))
  10540. ee.WriteMapElemValue()
  10541. ee.EncodeInt(int64(v2))
  10542. }
  10543. } else {
  10544. for k2, v2 := range v {
  10545. ee.EncodeInt(int64(k2))
  10546. ee.EncodeInt(int64(v2))
  10547. }
  10548. }
  10549. }
  10550. ee.WriteMapEnd()
  10551. }
  10552. func (e *Encoder) fastpathEncMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  10553. fastpathTV.EncMapIntInt32V(rv2i(rv).(map[int]int32), e)
  10554. }
  10555. func (_ fastpathT) EncMapIntInt32V(v map[int]int32, e *Encoder) {
  10556. if v == nil {
  10557. e.e.EncodeNil()
  10558. return
  10559. }
  10560. ee, esep := e.e, e.hh.hasElemSeparators()
  10561. ee.WriteMapStart(len(v))
  10562. if e.h.Canonical {
  10563. v2 := make([]int64, len(v))
  10564. var i uint
  10565. for k := range v {
  10566. v2[i] = int64(k)
  10567. i++
  10568. }
  10569. sort.Sort(intSlice(v2))
  10570. if esep {
  10571. for _, k2 := range v2 {
  10572. ee.WriteMapElemKey()
  10573. ee.EncodeInt(int64(int(k2)))
  10574. ee.WriteMapElemValue()
  10575. ee.EncodeInt(int64(v[int(k2)]))
  10576. }
  10577. } else {
  10578. for _, k2 := range v2 {
  10579. ee.EncodeInt(int64(int(k2)))
  10580. ee.EncodeInt(int64(v[int(k2)]))
  10581. }
  10582. }
  10583. } else {
  10584. if esep {
  10585. for k2, v2 := range v {
  10586. ee.WriteMapElemKey()
  10587. ee.EncodeInt(int64(k2))
  10588. ee.WriteMapElemValue()
  10589. ee.EncodeInt(int64(v2))
  10590. }
  10591. } else {
  10592. for k2, v2 := range v {
  10593. ee.EncodeInt(int64(k2))
  10594. ee.EncodeInt(int64(v2))
  10595. }
  10596. }
  10597. }
  10598. ee.WriteMapEnd()
  10599. }
  10600. func (e *Encoder) fastpathEncMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  10601. fastpathTV.EncMapIntInt64V(rv2i(rv).(map[int]int64), e)
  10602. }
  10603. func (_ fastpathT) EncMapIntInt64V(v map[int]int64, e *Encoder) {
  10604. if v == nil {
  10605. e.e.EncodeNil()
  10606. return
  10607. }
  10608. ee, esep := e.e, e.hh.hasElemSeparators()
  10609. ee.WriteMapStart(len(v))
  10610. if e.h.Canonical {
  10611. v2 := make([]int64, len(v))
  10612. var i uint
  10613. for k := range v {
  10614. v2[i] = int64(k)
  10615. i++
  10616. }
  10617. sort.Sort(intSlice(v2))
  10618. if esep {
  10619. for _, k2 := range v2 {
  10620. ee.WriteMapElemKey()
  10621. ee.EncodeInt(int64(int(k2)))
  10622. ee.WriteMapElemValue()
  10623. ee.EncodeInt(int64(v[int(k2)]))
  10624. }
  10625. } else {
  10626. for _, k2 := range v2 {
  10627. ee.EncodeInt(int64(int(k2)))
  10628. ee.EncodeInt(int64(v[int(k2)]))
  10629. }
  10630. }
  10631. } else {
  10632. if esep {
  10633. for k2, v2 := range v {
  10634. ee.WriteMapElemKey()
  10635. ee.EncodeInt(int64(k2))
  10636. ee.WriteMapElemValue()
  10637. ee.EncodeInt(int64(v2))
  10638. }
  10639. } else {
  10640. for k2, v2 := range v {
  10641. ee.EncodeInt(int64(k2))
  10642. ee.EncodeInt(int64(v2))
  10643. }
  10644. }
  10645. }
  10646. ee.WriteMapEnd()
  10647. }
  10648. func (e *Encoder) fastpathEncMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  10649. fastpathTV.EncMapIntFloat32V(rv2i(rv).(map[int]float32), e)
  10650. }
  10651. func (_ fastpathT) EncMapIntFloat32V(v map[int]float32, e *Encoder) {
  10652. if v == nil {
  10653. e.e.EncodeNil()
  10654. return
  10655. }
  10656. ee, esep := e.e, e.hh.hasElemSeparators()
  10657. ee.WriteMapStart(len(v))
  10658. if e.h.Canonical {
  10659. v2 := make([]int64, len(v))
  10660. var i uint
  10661. for k := range v {
  10662. v2[i] = int64(k)
  10663. i++
  10664. }
  10665. sort.Sort(intSlice(v2))
  10666. if esep {
  10667. for _, k2 := range v2 {
  10668. ee.WriteMapElemKey()
  10669. ee.EncodeInt(int64(int(k2)))
  10670. ee.WriteMapElemValue()
  10671. ee.EncodeFloat32(v[int(k2)])
  10672. }
  10673. } else {
  10674. for _, k2 := range v2 {
  10675. ee.EncodeInt(int64(int(k2)))
  10676. ee.EncodeFloat32(v[int(k2)])
  10677. }
  10678. }
  10679. } else {
  10680. if esep {
  10681. for k2, v2 := range v {
  10682. ee.WriteMapElemKey()
  10683. ee.EncodeInt(int64(k2))
  10684. ee.WriteMapElemValue()
  10685. ee.EncodeFloat32(v2)
  10686. }
  10687. } else {
  10688. for k2, v2 := range v {
  10689. ee.EncodeInt(int64(k2))
  10690. ee.EncodeFloat32(v2)
  10691. }
  10692. }
  10693. }
  10694. ee.WriteMapEnd()
  10695. }
  10696. func (e *Encoder) fastpathEncMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  10697. fastpathTV.EncMapIntFloat64V(rv2i(rv).(map[int]float64), e)
  10698. }
  10699. func (_ fastpathT) EncMapIntFloat64V(v map[int]float64, e *Encoder) {
  10700. if v == nil {
  10701. e.e.EncodeNil()
  10702. return
  10703. }
  10704. ee, esep := e.e, e.hh.hasElemSeparators()
  10705. ee.WriteMapStart(len(v))
  10706. if e.h.Canonical {
  10707. v2 := make([]int64, len(v))
  10708. var i uint
  10709. for k := range v {
  10710. v2[i] = int64(k)
  10711. i++
  10712. }
  10713. sort.Sort(intSlice(v2))
  10714. if esep {
  10715. for _, k2 := range v2 {
  10716. ee.WriteMapElemKey()
  10717. ee.EncodeInt(int64(int(k2)))
  10718. ee.WriteMapElemValue()
  10719. ee.EncodeFloat64(v[int(k2)])
  10720. }
  10721. } else {
  10722. for _, k2 := range v2 {
  10723. ee.EncodeInt(int64(int(k2)))
  10724. ee.EncodeFloat64(v[int(k2)])
  10725. }
  10726. }
  10727. } else {
  10728. if esep {
  10729. for k2, v2 := range v {
  10730. ee.WriteMapElemKey()
  10731. ee.EncodeInt(int64(k2))
  10732. ee.WriteMapElemValue()
  10733. ee.EncodeFloat64(v2)
  10734. }
  10735. } else {
  10736. for k2, v2 := range v {
  10737. ee.EncodeInt(int64(k2))
  10738. ee.EncodeFloat64(v2)
  10739. }
  10740. }
  10741. }
  10742. ee.WriteMapEnd()
  10743. }
  10744. func (e *Encoder) fastpathEncMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  10745. fastpathTV.EncMapIntBoolV(rv2i(rv).(map[int]bool), e)
  10746. }
  10747. func (_ fastpathT) EncMapIntBoolV(v map[int]bool, e *Encoder) {
  10748. if v == nil {
  10749. e.e.EncodeNil()
  10750. return
  10751. }
  10752. ee, esep := e.e, e.hh.hasElemSeparators()
  10753. ee.WriteMapStart(len(v))
  10754. if e.h.Canonical {
  10755. v2 := make([]int64, len(v))
  10756. var i uint
  10757. for k := range v {
  10758. v2[i] = int64(k)
  10759. i++
  10760. }
  10761. sort.Sort(intSlice(v2))
  10762. if esep {
  10763. for _, k2 := range v2 {
  10764. ee.WriteMapElemKey()
  10765. ee.EncodeInt(int64(int(k2)))
  10766. ee.WriteMapElemValue()
  10767. ee.EncodeBool(v[int(k2)])
  10768. }
  10769. } else {
  10770. for _, k2 := range v2 {
  10771. ee.EncodeInt(int64(int(k2)))
  10772. ee.EncodeBool(v[int(k2)])
  10773. }
  10774. }
  10775. } else {
  10776. if esep {
  10777. for k2, v2 := range v {
  10778. ee.WriteMapElemKey()
  10779. ee.EncodeInt(int64(k2))
  10780. ee.WriteMapElemValue()
  10781. ee.EncodeBool(v2)
  10782. }
  10783. } else {
  10784. for k2, v2 := range v {
  10785. ee.EncodeInt(int64(k2))
  10786. ee.EncodeBool(v2)
  10787. }
  10788. }
  10789. }
  10790. ee.WriteMapEnd()
  10791. }
  10792. func (e *Encoder) fastpathEncMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  10793. fastpathTV.EncMapInt8IntfV(rv2i(rv).(map[int8]interface{}), e)
  10794. }
  10795. func (_ fastpathT) EncMapInt8IntfV(v map[int8]interface{}, e *Encoder) {
  10796. if v == nil {
  10797. e.e.EncodeNil()
  10798. return
  10799. }
  10800. ee, esep := e.e, e.hh.hasElemSeparators()
  10801. ee.WriteMapStart(len(v))
  10802. if e.h.Canonical {
  10803. v2 := make([]int64, len(v))
  10804. var i uint
  10805. for k := range v {
  10806. v2[i] = int64(k)
  10807. i++
  10808. }
  10809. sort.Sort(intSlice(v2))
  10810. if esep {
  10811. for _, k2 := range v2 {
  10812. ee.WriteMapElemKey()
  10813. ee.EncodeInt(int64(int8(k2)))
  10814. ee.WriteMapElemValue()
  10815. e.encode(v[int8(k2)])
  10816. }
  10817. } else {
  10818. for _, k2 := range v2 {
  10819. ee.EncodeInt(int64(int8(k2)))
  10820. e.encode(v[int8(k2)])
  10821. }
  10822. }
  10823. } else {
  10824. if esep {
  10825. for k2, v2 := range v {
  10826. ee.WriteMapElemKey()
  10827. ee.EncodeInt(int64(k2))
  10828. ee.WriteMapElemValue()
  10829. e.encode(v2)
  10830. }
  10831. } else {
  10832. for k2, v2 := range v {
  10833. ee.EncodeInt(int64(k2))
  10834. e.encode(v2)
  10835. }
  10836. }
  10837. }
  10838. ee.WriteMapEnd()
  10839. }
  10840. func (e *Encoder) fastpathEncMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  10841. fastpathTV.EncMapInt8StringV(rv2i(rv).(map[int8]string), e)
  10842. }
  10843. func (_ fastpathT) EncMapInt8StringV(v map[int8]string, e *Encoder) {
  10844. if v == nil {
  10845. e.e.EncodeNil()
  10846. return
  10847. }
  10848. ee, esep := e.e, e.hh.hasElemSeparators()
  10849. ee.WriteMapStart(len(v))
  10850. if e.h.Canonical {
  10851. v2 := make([]int64, len(v))
  10852. var i uint
  10853. for k := range v {
  10854. v2[i] = int64(k)
  10855. i++
  10856. }
  10857. sort.Sort(intSlice(v2))
  10858. if esep {
  10859. for _, k2 := range v2 {
  10860. ee.WriteMapElemKey()
  10861. ee.EncodeInt(int64(int8(k2)))
  10862. ee.WriteMapElemValue()
  10863. ee.EncodeStringEnc(cUTF8, v[int8(k2)])
  10864. }
  10865. } else {
  10866. for _, k2 := range v2 {
  10867. ee.EncodeInt(int64(int8(k2)))
  10868. ee.EncodeStringEnc(cUTF8, v[int8(k2)])
  10869. }
  10870. }
  10871. } else {
  10872. if esep {
  10873. for k2, v2 := range v {
  10874. ee.WriteMapElemKey()
  10875. ee.EncodeInt(int64(k2))
  10876. ee.WriteMapElemValue()
  10877. ee.EncodeStringEnc(cUTF8, v2)
  10878. }
  10879. } else {
  10880. for k2, v2 := range v {
  10881. ee.EncodeInt(int64(k2))
  10882. ee.EncodeStringEnc(cUTF8, v2)
  10883. }
  10884. }
  10885. }
  10886. ee.WriteMapEnd()
  10887. }
  10888. func (e *Encoder) fastpathEncMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  10889. fastpathTV.EncMapInt8UintV(rv2i(rv).(map[int8]uint), e)
  10890. }
  10891. func (_ fastpathT) EncMapInt8UintV(v map[int8]uint, e *Encoder) {
  10892. if v == nil {
  10893. e.e.EncodeNil()
  10894. return
  10895. }
  10896. ee, esep := e.e, e.hh.hasElemSeparators()
  10897. ee.WriteMapStart(len(v))
  10898. if e.h.Canonical {
  10899. v2 := make([]int64, len(v))
  10900. var i uint
  10901. for k := range v {
  10902. v2[i] = int64(k)
  10903. i++
  10904. }
  10905. sort.Sort(intSlice(v2))
  10906. if esep {
  10907. for _, k2 := range v2 {
  10908. ee.WriteMapElemKey()
  10909. ee.EncodeInt(int64(int8(k2)))
  10910. ee.WriteMapElemValue()
  10911. ee.EncodeUint(uint64(v[int8(k2)]))
  10912. }
  10913. } else {
  10914. for _, k2 := range v2 {
  10915. ee.EncodeInt(int64(int8(k2)))
  10916. ee.EncodeUint(uint64(v[int8(k2)]))
  10917. }
  10918. }
  10919. } else {
  10920. if esep {
  10921. for k2, v2 := range v {
  10922. ee.WriteMapElemKey()
  10923. ee.EncodeInt(int64(k2))
  10924. ee.WriteMapElemValue()
  10925. ee.EncodeUint(uint64(v2))
  10926. }
  10927. } else {
  10928. for k2, v2 := range v {
  10929. ee.EncodeInt(int64(k2))
  10930. ee.EncodeUint(uint64(v2))
  10931. }
  10932. }
  10933. }
  10934. ee.WriteMapEnd()
  10935. }
  10936. func (e *Encoder) fastpathEncMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  10937. fastpathTV.EncMapInt8Uint8V(rv2i(rv).(map[int8]uint8), e)
  10938. }
  10939. func (_ fastpathT) EncMapInt8Uint8V(v map[int8]uint8, e *Encoder) {
  10940. if v == nil {
  10941. e.e.EncodeNil()
  10942. return
  10943. }
  10944. ee, esep := e.e, e.hh.hasElemSeparators()
  10945. ee.WriteMapStart(len(v))
  10946. if e.h.Canonical {
  10947. v2 := make([]int64, len(v))
  10948. var i uint
  10949. for k := range v {
  10950. v2[i] = int64(k)
  10951. i++
  10952. }
  10953. sort.Sort(intSlice(v2))
  10954. if esep {
  10955. for _, k2 := range v2 {
  10956. ee.WriteMapElemKey()
  10957. ee.EncodeInt(int64(int8(k2)))
  10958. ee.WriteMapElemValue()
  10959. ee.EncodeUint(uint64(v[int8(k2)]))
  10960. }
  10961. } else {
  10962. for _, k2 := range v2 {
  10963. ee.EncodeInt(int64(int8(k2)))
  10964. ee.EncodeUint(uint64(v[int8(k2)]))
  10965. }
  10966. }
  10967. } else {
  10968. if esep {
  10969. for k2, v2 := range v {
  10970. ee.WriteMapElemKey()
  10971. ee.EncodeInt(int64(k2))
  10972. ee.WriteMapElemValue()
  10973. ee.EncodeUint(uint64(v2))
  10974. }
  10975. } else {
  10976. for k2, v2 := range v {
  10977. ee.EncodeInt(int64(k2))
  10978. ee.EncodeUint(uint64(v2))
  10979. }
  10980. }
  10981. }
  10982. ee.WriteMapEnd()
  10983. }
  10984. func (e *Encoder) fastpathEncMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  10985. fastpathTV.EncMapInt8Uint16V(rv2i(rv).(map[int8]uint16), e)
  10986. }
  10987. func (_ fastpathT) EncMapInt8Uint16V(v map[int8]uint16, e *Encoder) {
  10988. if v == nil {
  10989. e.e.EncodeNil()
  10990. return
  10991. }
  10992. ee, esep := e.e, e.hh.hasElemSeparators()
  10993. ee.WriteMapStart(len(v))
  10994. if e.h.Canonical {
  10995. v2 := make([]int64, len(v))
  10996. var i uint
  10997. for k := range v {
  10998. v2[i] = int64(k)
  10999. i++
  11000. }
  11001. sort.Sort(intSlice(v2))
  11002. if esep {
  11003. for _, k2 := range v2 {
  11004. ee.WriteMapElemKey()
  11005. ee.EncodeInt(int64(int8(k2)))
  11006. ee.WriteMapElemValue()
  11007. ee.EncodeUint(uint64(v[int8(k2)]))
  11008. }
  11009. } else {
  11010. for _, k2 := range v2 {
  11011. ee.EncodeInt(int64(int8(k2)))
  11012. ee.EncodeUint(uint64(v[int8(k2)]))
  11013. }
  11014. }
  11015. } else {
  11016. if esep {
  11017. for k2, v2 := range v {
  11018. ee.WriteMapElemKey()
  11019. ee.EncodeInt(int64(k2))
  11020. ee.WriteMapElemValue()
  11021. ee.EncodeUint(uint64(v2))
  11022. }
  11023. } else {
  11024. for k2, v2 := range v {
  11025. ee.EncodeInt(int64(k2))
  11026. ee.EncodeUint(uint64(v2))
  11027. }
  11028. }
  11029. }
  11030. ee.WriteMapEnd()
  11031. }
  11032. func (e *Encoder) fastpathEncMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  11033. fastpathTV.EncMapInt8Uint32V(rv2i(rv).(map[int8]uint32), e)
  11034. }
  11035. func (_ fastpathT) EncMapInt8Uint32V(v map[int8]uint32, e *Encoder) {
  11036. if v == nil {
  11037. e.e.EncodeNil()
  11038. return
  11039. }
  11040. ee, esep := e.e, e.hh.hasElemSeparators()
  11041. ee.WriteMapStart(len(v))
  11042. if e.h.Canonical {
  11043. v2 := make([]int64, len(v))
  11044. var i uint
  11045. for k := range v {
  11046. v2[i] = int64(k)
  11047. i++
  11048. }
  11049. sort.Sort(intSlice(v2))
  11050. if esep {
  11051. for _, k2 := range v2 {
  11052. ee.WriteMapElemKey()
  11053. ee.EncodeInt(int64(int8(k2)))
  11054. ee.WriteMapElemValue()
  11055. ee.EncodeUint(uint64(v[int8(k2)]))
  11056. }
  11057. } else {
  11058. for _, k2 := range v2 {
  11059. ee.EncodeInt(int64(int8(k2)))
  11060. ee.EncodeUint(uint64(v[int8(k2)]))
  11061. }
  11062. }
  11063. } else {
  11064. if esep {
  11065. for k2, v2 := range v {
  11066. ee.WriteMapElemKey()
  11067. ee.EncodeInt(int64(k2))
  11068. ee.WriteMapElemValue()
  11069. ee.EncodeUint(uint64(v2))
  11070. }
  11071. } else {
  11072. for k2, v2 := range v {
  11073. ee.EncodeInt(int64(k2))
  11074. ee.EncodeUint(uint64(v2))
  11075. }
  11076. }
  11077. }
  11078. ee.WriteMapEnd()
  11079. }
  11080. func (e *Encoder) fastpathEncMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  11081. fastpathTV.EncMapInt8Uint64V(rv2i(rv).(map[int8]uint64), e)
  11082. }
  11083. func (_ fastpathT) EncMapInt8Uint64V(v map[int8]uint64, e *Encoder) {
  11084. if v == nil {
  11085. e.e.EncodeNil()
  11086. return
  11087. }
  11088. ee, esep := e.e, e.hh.hasElemSeparators()
  11089. ee.WriteMapStart(len(v))
  11090. if e.h.Canonical {
  11091. v2 := make([]int64, len(v))
  11092. var i uint
  11093. for k := range v {
  11094. v2[i] = int64(k)
  11095. i++
  11096. }
  11097. sort.Sort(intSlice(v2))
  11098. if esep {
  11099. for _, k2 := range v2 {
  11100. ee.WriteMapElemKey()
  11101. ee.EncodeInt(int64(int8(k2)))
  11102. ee.WriteMapElemValue()
  11103. ee.EncodeUint(uint64(v[int8(k2)]))
  11104. }
  11105. } else {
  11106. for _, k2 := range v2 {
  11107. ee.EncodeInt(int64(int8(k2)))
  11108. ee.EncodeUint(uint64(v[int8(k2)]))
  11109. }
  11110. }
  11111. } else {
  11112. if esep {
  11113. for k2, v2 := range v {
  11114. ee.WriteMapElemKey()
  11115. ee.EncodeInt(int64(k2))
  11116. ee.WriteMapElemValue()
  11117. ee.EncodeUint(uint64(v2))
  11118. }
  11119. } else {
  11120. for k2, v2 := range v {
  11121. ee.EncodeInt(int64(k2))
  11122. ee.EncodeUint(uint64(v2))
  11123. }
  11124. }
  11125. }
  11126. ee.WriteMapEnd()
  11127. }
  11128. func (e *Encoder) fastpathEncMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  11129. fastpathTV.EncMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), e)
  11130. }
  11131. func (_ fastpathT) EncMapInt8UintptrV(v map[int8]uintptr, e *Encoder) {
  11132. if v == nil {
  11133. e.e.EncodeNil()
  11134. return
  11135. }
  11136. ee, esep := e.e, e.hh.hasElemSeparators()
  11137. ee.WriteMapStart(len(v))
  11138. if e.h.Canonical {
  11139. v2 := make([]int64, len(v))
  11140. var i uint
  11141. for k := range v {
  11142. v2[i] = int64(k)
  11143. i++
  11144. }
  11145. sort.Sort(intSlice(v2))
  11146. if esep {
  11147. for _, k2 := range v2 {
  11148. ee.WriteMapElemKey()
  11149. ee.EncodeInt(int64(int8(k2)))
  11150. ee.WriteMapElemValue()
  11151. e.encode(v[int8(k2)])
  11152. }
  11153. } else {
  11154. for _, k2 := range v2 {
  11155. ee.EncodeInt(int64(int8(k2)))
  11156. e.encode(v[int8(k2)])
  11157. }
  11158. }
  11159. } else {
  11160. if esep {
  11161. for k2, v2 := range v {
  11162. ee.WriteMapElemKey()
  11163. ee.EncodeInt(int64(k2))
  11164. ee.WriteMapElemValue()
  11165. e.encode(v2)
  11166. }
  11167. } else {
  11168. for k2, v2 := range v {
  11169. ee.EncodeInt(int64(k2))
  11170. e.encode(v2)
  11171. }
  11172. }
  11173. }
  11174. ee.WriteMapEnd()
  11175. }
  11176. func (e *Encoder) fastpathEncMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  11177. fastpathTV.EncMapInt8IntV(rv2i(rv).(map[int8]int), e)
  11178. }
  11179. func (_ fastpathT) EncMapInt8IntV(v map[int8]int, e *Encoder) {
  11180. if v == nil {
  11181. e.e.EncodeNil()
  11182. return
  11183. }
  11184. ee, esep := e.e, e.hh.hasElemSeparators()
  11185. ee.WriteMapStart(len(v))
  11186. if e.h.Canonical {
  11187. v2 := make([]int64, len(v))
  11188. var i uint
  11189. for k := range v {
  11190. v2[i] = int64(k)
  11191. i++
  11192. }
  11193. sort.Sort(intSlice(v2))
  11194. if esep {
  11195. for _, k2 := range v2 {
  11196. ee.WriteMapElemKey()
  11197. ee.EncodeInt(int64(int8(k2)))
  11198. ee.WriteMapElemValue()
  11199. ee.EncodeInt(int64(v[int8(k2)]))
  11200. }
  11201. } else {
  11202. for _, k2 := range v2 {
  11203. ee.EncodeInt(int64(int8(k2)))
  11204. ee.EncodeInt(int64(v[int8(k2)]))
  11205. }
  11206. }
  11207. } else {
  11208. if esep {
  11209. for k2, v2 := range v {
  11210. ee.WriteMapElemKey()
  11211. ee.EncodeInt(int64(k2))
  11212. ee.WriteMapElemValue()
  11213. ee.EncodeInt(int64(v2))
  11214. }
  11215. } else {
  11216. for k2, v2 := range v {
  11217. ee.EncodeInt(int64(k2))
  11218. ee.EncodeInt(int64(v2))
  11219. }
  11220. }
  11221. }
  11222. ee.WriteMapEnd()
  11223. }
  11224. func (e *Encoder) fastpathEncMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  11225. fastpathTV.EncMapInt8Int8V(rv2i(rv).(map[int8]int8), e)
  11226. }
  11227. func (_ fastpathT) EncMapInt8Int8V(v map[int8]int8, e *Encoder) {
  11228. if v == nil {
  11229. e.e.EncodeNil()
  11230. return
  11231. }
  11232. ee, esep := e.e, e.hh.hasElemSeparators()
  11233. ee.WriteMapStart(len(v))
  11234. if e.h.Canonical {
  11235. v2 := make([]int64, len(v))
  11236. var i uint
  11237. for k := range v {
  11238. v2[i] = int64(k)
  11239. i++
  11240. }
  11241. sort.Sort(intSlice(v2))
  11242. if esep {
  11243. for _, k2 := range v2 {
  11244. ee.WriteMapElemKey()
  11245. ee.EncodeInt(int64(int8(k2)))
  11246. ee.WriteMapElemValue()
  11247. ee.EncodeInt(int64(v[int8(k2)]))
  11248. }
  11249. } else {
  11250. for _, k2 := range v2 {
  11251. ee.EncodeInt(int64(int8(k2)))
  11252. ee.EncodeInt(int64(v[int8(k2)]))
  11253. }
  11254. }
  11255. } else {
  11256. if esep {
  11257. for k2, v2 := range v {
  11258. ee.WriteMapElemKey()
  11259. ee.EncodeInt(int64(k2))
  11260. ee.WriteMapElemValue()
  11261. ee.EncodeInt(int64(v2))
  11262. }
  11263. } else {
  11264. for k2, v2 := range v {
  11265. ee.EncodeInt(int64(k2))
  11266. ee.EncodeInt(int64(v2))
  11267. }
  11268. }
  11269. }
  11270. ee.WriteMapEnd()
  11271. }
  11272. func (e *Encoder) fastpathEncMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  11273. fastpathTV.EncMapInt8Int16V(rv2i(rv).(map[int8]int16), e)
  11274. }
  11275. func (_ fastpathT) EncMapInt8Int16V(v map[int8]int16, e *Encoder) {
  11276. if v == nil {
  11277. e.e.EncodeNil()
  11278. return
  11279. }
  11280. ee, esep := e.e, e.hh.hasElemSeparators()
  11281. ee.WriteMapStart(len(v))
  11282. if e.h.Canonical {
  11283. v2 := make([]int64, len(v))
  11284. var i uint
  11285. for k := range v {
  11286. v2[i] = int64(k)
  11287. i++
  11288. }
  11289. sort.Sort(intSlice(v2))
  11290. if esep {
  11291. for _, k2 := range v2 {
  11292. ee.WriteMapElemKey()
  11293. ee.EncodeInt(int64(int8(k2)))
  11294. ee.WriteMapElemValue()
  11295. ee.EncodeInt(int64(v[int8(k2)]))
  11296. }
  11297. } else {
  11298. for _, k2 := range v2 {
  11299. ee.EncodeInt(int64(int8(k2)))
  11300. ee.EncodeInt(int64(v[int8(k2)]))
  11301. }
  11302. }
  11303. } else {
  11304. if esep {
  11305. for k2, v2 := range v {
  11306. ee.WriteMapElemKey()
  11307. ee.EncodeInt(int64(k2))
  11308. ee.WriteMapElemValue()
  11309. ee.EncodeInt(int64(v2))
  11310. }
  11311. } else {
  11312. for k2, v2 := range v {
  11313. ee.EncodeInt(int64(k2))
  11314. ee.EncodeInt(int64(v2))
  11315. }
  11316. }
  11317. }
  11318. ee.WriteMapEnd()
  11319. }
  11320. func (e *Encoder) fastpathEncMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  11321. fastpathTV.EncMapInt8Int32V(rv2i(rv).(map[int8]int32), e)
  11322. }
  11323. func (_ fastpathT) EncMapInt8Int32V(v map[int8]int32, e *Encoder) {
  11324. if v == nil {
  11325. e.e.EncodeNil()
  11326. return
  11327. }
  11328. ee, esep := e.e, e.hh.hasElemSeparators()
  11329. ee.WriteMapStart(len(v))
  11330. if e.h.Canonical {
  11331. v2 := make([]int64, len(v))
  11332. var i uint
  11333. for k := range v {
  11334. v2[i] = int64(k)
  11335. i++
  11336. }
  11337. sort.Sort(intSlice(v2))
  11338. if esep {
  11339. for _, k2 := range v2 {
  11340. ee.WriteMapElemKey()
  11341. ee.EncodeInt(int64(int8(k2)))
  11342. ee.WriteMapElemValue()
  11343. ee.EncodeInt(int64(v[int8(k2)]))
  11344. }
  11345. } else {
  11346. for _, k2 := range v2 {
  11347. ee.EncodeInt(int64(int8(k2)))
  11348. ee.EncodeInt(int64(v[int8(k2)]))
  11349. }
  11350. }
  11351. } else {
  11352. if esep {
  11353. for k2, v2 := range v {
  11354. ee.WriteMapElemKey()
  11355. ee.EncodeInt(int64(k2))
  11356. ee.WriteMapElemValue()
  11357. ee.EncodeInt(int64(v2))
  11358. }
  11359. } else {
  11360. for k2, v2 := range v {
  11361. ee.EncodeInt(int64(k2))
  11362. ee.EncodeInt(int64(v2))
  11363. }
  11364. }
  11365. }
  11366. ee.WriteMapEnd()
  11367. }
  11368. func (e *Encoder) fastpathEncMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  11369. fastpathTV.EncMapInt8Int64V(rv2i(rv).(map[int8]int64), e)
  11370. }
  11371. func (_ fastpathT) EncMapInt8Int64V(v map[int8]int64, e *Encoder) {
  11372. if v == nil {
  11373. e.e.EncodeNil()
  11374. return
  11375. }
  11376. ee, esep := e.e, e.hh.hasElemSeparators()
  11377. ee.WriteMapStart(len(v))
  11378. if e.h.Canonical {
  11379. v2 := make([]int64, len(v))
  11380. var i uint
  11381. for k := range v {
  11382. v2[i] = int64(k)
  11383. i++
  11384. }
  11385. sort.Sort(intSlice(v2))
  11386. if esep {
  11387. for _, k2 := range v2 {
  11388. ee.WriteMapElemKey()
  11389. ee.EncodeInt(int64(int8(k2)))
  11390. ee.WriteMapElemValue()
  11391. ee.EncodeInt(int64(v[int8(k2)]))
  11392. }
  11393. } else {
  11394. for _, k2 := range v2 {
  11395. ee.EncodeInt(int64(int8(k2)))
  11396. ee.EncodeInt(int64(v[int8(k2)]))
  11397. }
  11398. }
  11399. } else {
  11400. if esep {
  11401. for k2, v2 := range v {
  11402. ee.WriteMapElemKey()
  11403. ee.EncodeInt(int64(k2))
  11404. ee.WriteMapElemValue()
  11405. ee.EncodeInt(int64(v2))
  11406. }
  11407. } else {
  11408. for k2, v2 := range v {
  11409. ee.EncodeInt(int64(k2))
  11410. ee.EncodeInt(int64(v2))
  11411. }
  11412. }
  11413. }
  11414. ee.WriteMapEnd()
  11415. }
  11416. func (e *Encoder) fastpathEncMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  11417. fastpathTV.EncMapInt8Float32V(rv2i(rv).(map[int8]float32), e)
  11418. }
  11419. func (_ fastpathT) EncMapInt8Float32V(v map[int8]float32, e *Encoder) {
  11420. if v == nil {
  11421. e.e.EncodeNil()
  11422. return
  11423. }
  11424. ee, esep := e.e, e.hh.hasElemSeparators()
  11425. ee.WriteMapStart(len(v))
  11426. if e.h.Canonical {
  11427. v2 := make([]int64, len(v))
  11428. var i uint
  11429. for k := range v {
  11430. v2[i] = int64(k)
  11431. i++
  11432. }
  11433. sort.Sort(intSlice(v2))
  11434. if esep {
  11435. for _, k2 := range v2 {
  11436. ee.WriteMapElemKey()
  11437. ee.EncodeInt(int64(int8(k2)))
  11438. ee.WriteMapElemValue()
  11439. ee.EncodeFloat32(v[int8(k2)])
  11440. }
  11441. } else {
  11442. for _, k2 := range v2 {
  11443. ee.EncodeInt(int64(int8(k2)))
  11444. ee.EncodeFloat32(v[int8(k2)])
  11445. }
  11446. }
  11447. } else {
  11448. if esep {
  11449. for k2, v2 := range v {
  11450. ee.WriteMapElemKey()
  11451. ee.EncodeInt(int64(k2))
  11452. ee.WriteMapElemValue()
  11453. ee.EncodeFloat32(v2)
  11454. }
  11455. } else {
  11456. for k2, v2 := range v {
  11457. ee.EncodeInt(int64(k2))
  11458. ee.EncodeFloat32(v2)
  11459. }
  11460. }
  11461. }
  11462. ee.WriteMapEnd()
  11463. }
  11464. func (e *Encoder) fastpathEncMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  11465. fastpathTV.EncMapInt8Float64V(rv2i(rv).(map[int8]float64), e)
  11466. }
  11467. func (_ fastpathT) EncMapInt8Float64V(v map[int8]float64, e *Encoder) {
  11468. if v == nil {
  11469. e.e.EncodeNil()
  11470. return
  11471. }
  11472. ee, esep := e.e, e.hh.hasElemSeparators()
  11473. ee.WriteMapStart(len(v))
  11474. if e.h.Canonical {
  11475. v2 := make([]int64, len(v))
  11476. var i uint
  11477. for k := range v {
  11478. v2[i] = int64(k)
  11479. i++
  11480. }
  11481. sort.Sort(intSlice(v2))
  11482. if esep {
  11483. for _, k2 := range v2 {
  11484. ee.WriteMapElemKey()
  11485. ee.EncodeInt(int64(int8(k2)))
  11486. ee.WriteMapElemValue()
  11487. ee.EncodeFloat64(v[int8(k2)])
  11488. }
  11489. } else {
  11490. for _, k2 := range v2 {
  11491. ee.EncodeInt(int64(int8(k2)))
  11492. ee.EncodeFloat64(v[int8(k2)])
  11493. }
  11494. }
  11495. } else {
  11496. if esep {
  11497. for k2, v2 := range v {
  11498. ee.WriteMapElemKey()
  11499. ee.EncodeInt(int64(k2))
  11500. ee.WriteMapElemValue()
  11501. ee.EncodeFloat64(v2)
  11502. }
  11503. } else {
  11504. for k2, v2 := range v {
  11505. ee.EncodeInt(int64(k2))
  11506. ee.EncodeFloat64(v2)
  11507. }
  11508. }
  11509. }
  11510. ee.WriteMapEnd()
  11511. }
  11512. func (e *Encoder) fastpathEncMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  11513. fastpathTV.EncMapInt8BoolV(rv2i(rv).(map[int8]bool), e)
  11514. }
  11515. func (_ fastpathT) EncMapInt8BoolV(v map[int8]bool, e *Encoder) {
  11516. if v == nil {
  11517. e.e.EncodeNil()
  11518. return
  11519. }
  11520. ee, esep := e.e, e.hh.hasElemSeparators()
  11521. ee.WriteMapStart(len(v))
  11522. if e.h.Canonical {
  11523. v2 := make([]int64, len(v))
  11524. var i uint
  11525. for k := range v {
  11526. v2[i] = int64(k)
  11527. i++
  11528. }
  11529. sort.Sort(intSlice(v2))
  11530. if esep {
  11531. for _, k2 := range v2 {
  11532. ee.WriteMapElemKey()
  11533. ee.EncodeInt(int64(int8(k2)))
  11534. ee.WriteMapElemValue()
  11535. ee.EncodeBool(v[int8(k2)])
  11536. }
  11537. } else {
  11538. for _, k2 := range v2 {
  11539. ee.EncodeInt(int64(int8(k2)))
  11540. ee.EncodeBool(v[int8(k2)])
  11541. }
  11542. }
  11543. } else {
  11544. if esep {
  11545. for k2, v2 := range v {
  11546. ee.WriteMapElemKey()
  11547. ee.EncodeInt(int64(k2))
  11548. ee.WriteMapElemValue()
  11549. ee.EncodeBool(v2)
  11550. }
  11551. } else {
  11552. for k2, v2 := range v {
  11553. ee.EncodeInt(int64(k2))
  11554. ee.EncodeBool(v2)
  11555. }
  11556. }
  11557. }
  11558. ee.WriteMapEnd()
  11559. }
  11560. func (e *Encoder) fastpathEncMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  11561. fastpathTV.EncMapInt16IntfV(rv2i(rv).(map[int16]interface{}), e)
  11562. }
  11563. func (_ fastpathT) EncMapInt16IntfV(v map[int16]interface{}, e *Encoder) {
  11564. if v == nil {
  11565. e.e.EncodeNil()
  11566. return
  11567. }
  11568. ee, esep := e.e, e.hh.hasElemSeparators()
  11569. ee.WriteMapStart(len(v))
  11570. if e.h.Canonical {
  11571. v2 := make([]int64, len(v))
  11572. var i uint
  11573. for k := range v {
  11574. v2[i] = int64(k)
  11575. i++
  11576. }
  11577. sort.Sort(intSlice(v2))
  11578. if esep {
  11579. for _, k2 := range v2 {
  11580. ee.WriteMapElemKey()
  11581. ee.EncodeInt(int64(int16(k2)))
  11582. ee.WriteMapElemValue()
  11583. e.encode(v[int16(k2)])
  11584. }
  11585. } else {
  11586. for _, k2 := range v2 {
  11587. ee.EncodeInt(int64(int16(k2)))
  11588. e.encode(v[int16(k2)])
  11589. }
  11590. }
  11591. } else {
  11592. if esep {
  11593. for k2, v2 := range v {
  11594. ee.WriteMapElemKey()
  11595. ee.EncodeInt(int64(k2))
  11596. ee.WriteMapElemValue()
  11597. e.encode(v2)
  11598. }
  11599. } else {
  11600. for k2, v2 := range v {
  11601. ee.EncodeInt(int64(k2))
  11602. e.encode(v2)
  11603. }
  11604. }
  11605. }
  11606. ee.WriteMapEnd()
  11607. }
  11608. func (e *Encoder) fastpathEncMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  11609. fastpathTV.EncMapInt16StringV(rv2i(rv).(map[int16]string), e)
  11610. }
  11611. func (_ fastpathT) EncMapInt16StringV(v map[int16]string, e *Encoder) {
  11612. if v == nil {
  11613. e.e.EncodeNil()
  11614. return
  11615. }
  11616. ee, esep := e.e, e.hh.hasElemSeparators()
  11617. ee.WriteMapStart(len(v))
  11618. if e.h.Canonical {
  11619. v2 := make([]int64, len(v))
  11620. var i uint
  11621. for k := range v {
  11622. v2[i] = int64(k)
  11623. i++
  11624. }
  11625. sort.Sort(intSlice(v2))
  11626. if esep {
  11627. for _, k2 := range v2 {
  11628. ee.WriteMapElemKey()
  11629. ee.EncodeInt(int64(int16(k2)))
  11630. ee.WriteMapElemValue()
  11631. ee.EncodeStringEnc(cUTF8, v[int16(k2)])
  11632. }
  11633. } else {
  11634. for _, k2 := range v2 {
  11635. ee.EncodeInt(int64(int16(k2)))
  11636. ee.EncodeStringEnc(cUTF8, v[int16(k2)])
  11637. }
  11638. }
  11639. } else {
  11640. if esep {
  11641. for k2, v2 := range v {
  11642. ee.WriteMapElemKey()
  11643. ee.EncodeInt(int64(k2))
  11644. ee.WriteMapElemValue()
  11645. ee.EncodeStringEnc(cUTF8, v2)
  11646. }
  11647. } else {
  11648. for k2, v2 := range v {
  11649. ee.EncodeInt(int64(k2))
  11650. ee.EncodeStringEnc(cUTF8, v2)
  11651. }
  11652. }
  11653. }
  11654. ee.WriteMapEnd()
  11655. }
  11656. func (e *Encoder) fastpathEncMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  11657. fastpathTV.EncMapInt16UintV(rv2i(rv).(map[int16]uint), e)
  11658. }
  11659. func (_ fastpathT) EncMapInt16UintV(v map[int16]uint, e *Encoder) {
  11660. if v == nil {
  11661. e.e.EncodeNil()
  11662. return
  11663. }
  11664. ee, esep := e.e, e.hh.hasElemSeparators()
  11665. ee.WriteMapStart(len(v))
  11666. if e.h.Canonical {
  11667. v2 := make([]int64, len(v))
  11668. var i uint
  11669. for k := range v {
  11670. v2[i] = int64(k)
  11671. i++
  11672. }
  11673. sort.Sort(intSlice(v2))
  11674. if esep {
  11675. for _, k2 := range v2 {
  11676. ee.WriteMapElemKey()
  11677. ee.EncodeInt(int64(int16(k2)))
  11678. ee.WriteMapElemValue()
  11679. ee.EncodeUint(uint64(v[int16(k2)]))
  11680. }
  11681. } else {
  11682. for _, k2 := range v2 {
  11683. ee.EncodeInt(int64(int16(k2)))
  11684. ee.EncodeUint(uint64(v[int16(k2)]))
  11685. }
  11686. }
  11687. } else {
  11688. if esep {
  11689. for k2, v2 := range v {
  11690. ee.WriteMapElemKey()
  11691. ee.EncodeInt(int64(k2))
  11692. ee.WriteMapElemValue()
  11693. ee.EncodeUint(uint64(v2))
  11694. }
  11695. } else {
  11696. for k2, v2 := range v {
  11697. ee.EncodeInt(int64(k2))
  11698. ee.EncodeUint(uint64(v2))
  11699. }
  11700. }
  11701. }
  11702. ee.WriteMapEnd()
  11703. }
  11704. func (e *Encoder) fastpathEncMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  11705. fastpathTV.EncMapInt16Uint8V(rv2i(rv).(map[int16]uint8), e)
  11706. }
  11707. func (_ fastpathT) EncMapInt16Uint8V(v map[int16]uint8, e *Encoder) {
  11708. if v == nil {
  11709. e.e.EncodeNil()
  11710. return
  11711. }
  11712. ee, esep := e.e, e.hh.hasElemSeparators()
  11713. ee.WriteMapStart(len(v))
  11714. if e.h.Canonical {
  11715. v2 := make([]int64, len(v))
  11716. var i uint
  11717. for k := range v {
  11718. v2[i] = int64(k)
  11719. i++
  11720. }
  11721. sort.Sort(intSlice(v2))
  11722. if esep {
  11723. for _, k2 := range v2 {
  11724. ee.WriteMapElemKey()
  11725. ee.EncodeInt(int64(int16(k2)))
  11726. ee.WriteMapElemValue()
  11727. ee.EncodeUint(uint64(v[int16(k2)]))
  11728. }
  11729. } else {
  11730. for _, k2 := range v2 {
  11731. ee.EncodeInt(int64(int16(k2)))
  11732. ee.EncodeUint(uint64(v[int16(k2)]))
  11733. }
  11734. }
  11735. } else {
  11736. if esep {
  11737. for k2, v2 := range v {
  11738. ee.WriteMapElemKey()
  11739. ee.EncodeInt(int64(k2))
  11740. ee.WriteMapElemValue()
  11741. ee.EncodeUint(uint64(v2))
  11742. }
  11743. } else {
  11744. for k2, v2 := range v {
  11745. ee.EncodeInt(int64(k2))
  11746. ee.EncodeUint(uint64(v2))
  11747. }
  11748. }
  11749. }
  11750. ee.WriteMapEnd()
  11751. }
  11752. func (e *Encoder) fastpathEncMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  11753. fastpathTV.EncMapInt16Uint16V(rv2i(rv).(map[int16]uint16), e)
  11754. }
  11755. func (_ fastpathT) EncMapInt16Uint16V(v map[int16]uint16, e *Encoder) {
  11756. if v == nil {
  11757. e.e.EncodeNil()
  11758. return
  11759. }
  11760. ee, esep := e.e, e.hh.hasElemSeparators()
  11761. ee.WriteMapStart(len(v))
  11762. if e.h.Canonical {
  11763. v2 := make([]int64, len(v))
  11764. var i uint
  11765. for k := range v {
  11766. v2[i] = int64(k)
  11767. i++
  11768. }
  11769. sort.Sort(intSlice(v2))
  11770. if esep {
  11771. for _, k2 := range v2 {
  11772. ee.WriteMapElemKey()
  11773. ee.EncodeInt(int64(int16(k2)))
  11774. ee.WriteMapElemValue()
  11775. ee.EncodeUint(uint64(v[int16(k2)]))
  11776. }
  11777. } else {
  11778. for _, k2 := range v2 {
  11779. ee.EncodeInt(int64(int16(k2)))
  11780. ee.EncodeUint(uint64(v[int16(k2)]))
  11781. }
  11782. }
  11783. } else {
  11784. if esep {
  11785. for k2, v2 := range v {
  11786. ee.WriteMapElemKey()
  11787. ee.EncodeInt(int64(k2))
  11788. ee.WriteMapElemValue()
  11789. ee.EncodeUint(uint64(v2))
  11790. }
  11791. } else {
  11792. for k2, v2 := range v {
  11793. ee.EncodeInt(int64(k2))
  11794. ee.EncodeUint(uint64(v2))
  11795. }
  11796. }
  11797. }
  11798. ee.WriteMapEnd()
  11799. }
  11800. func (e *Encoder) fastpathEncMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  11801. fastpathTV.EncMapInt16Uint32V(rv2i(rv).(map[int16]uint32), e)
  11802. }
  11803. func (_ fastpathT) EncMapInt16Uint32V(v map[int16]uint32, e *Encoder) {
  11804. if v == nil {
  11805. e.e.EncodeNil()
  11806. return
  11807. }
  11808. ee, esep := e.e, e.hh.hasElemSeparators()
  11809. ee.WriteMapStart(len(v))
  11810. if e.h.Canonical {
  11811. v2 := make([]int64, len(v))
  11812. var i uint
  11813. for k := range v {
  11814. v2[i] = int64(k)
  11815. i++
  11816. }
  11817. sort.Sort(intSlice(v2))
  11818. if esep {
  11819. for _, k2 := range v2 {
  11820. ee.WriteMapElemKey()
  11821. ee.EncodeInt(int64(int16(k2)))
  11822. ee.WriteMapElemValue()
  11823. ee.EncodeUint(uint64(v[int16(k2)]))
  11824. }
  11825. } else {
  11826. for _, k2 := range v2 {
  11827. ee.EncodeInt(int64(int16(k2)))
  11828. ee.EncodeUint(uint64(v[int16(k2)]))
  11829. }
  11830. }
  11831. } else {
  11832. if esep {
  11833. for k2, v2 := range v {
  11834. ee.WriteMapElemKey()
  11835. ee.EncodeInt(int64(k2))
  11836. ee.WriteMapElemValue()
  11837. ee.EncodeUint(uint64(v2))
  11838. }
  11839. } else {
  11840. for k2, v2 := range v {
  11841. ee.EncodeInt(int64(k2))
  11842. ee.EncodeUint(uint64(v2))
  11843. }
  11844. }
  11845. }
  11846. ee.WriteMapEnd()
  11847. }
  11848. func (e *Encoder) fastpathEncMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  11849. fastpathTV.EncMapInt16Uint64V(rv2i(rv).(map[int16]uint64), e)
  11850. }
  11851. func (_ fastpathT) EncMapInt16Uint64V(v map[int16]uint64, e *Encoder) {
  11852. if v == nil {
  11853. e.e.EncodeNil()
  11854. return
  11855. }
  11856. ee, esep := e.e, e.hh.hasElemSeparators()
  11857. ee.WriteMapStart(len(v))
  11858. if e.h.Canonical {
  11859. v2 := make([]int64, len(v))
  11860. var i uint
  11861. for k := range v {
  11862. v2[i] = int64(k)
  11863. i++
  11864. }
  11865. sort.Sort(intSlice(v2))
  11866. if esep {
  11867. for _, k2 := range v2 {
  11868. ee.WriteMapElemKey()
  11869. ee.EncodeInt(int64(int16(k2)))
  11870. ee.WriteMapElemValue()
  11871. ee.EncodeUint(uint64(v[int16(k2)]))
  11872. }
  11873. } else {
  11874. for _, k2 := range v2 {
  11875. ee.EncodeInt(int64(int16(k2)))
  11876. ee.EncodeUint(uint64(v[int16(k2)]))
  11877. }
  11878. }
  11879. } else {
  11880. if esep {
  11881. for k2, v2 := range v {
  11882. ee.WriteMapElemKey()
  11883. ee.EncodeInt(int64(k2))
  11884. ee.WriteMapElemValue()
  11885. ee.EncodeUint(uint64(v2))
  11886. }
  11887. } else {
  11888. for k2, v2 := range v {
  11889. ee.EncodeInt(int64(k2))
  11890. ee.EncodeUint(uint64(v2))
  11891. }
  11892. }
  11893. }
  11894. ee.WriteMapEnd()
  11895. }
  11896. func (e *Encoder) fastpathEncMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  11897. fastpathTV.EncMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), e)
  11898. }
  11899. func (_ fastpathT) EncMapInt16UintptrV(v map[int16]uintptr, e *Encoder) {
  11900. if v == nil {
  11901. e.e.EncodeNil()
  11902. return
  11903. }
  11904. ee, esep := e.e, e.hh.hasElemSeparators()
  11905. ee.WriteMapStart(len(v))
  11906. if e.h.Canonical {
  11907. v2 := make([]int64, len(v))
  11908. var i uint
  11909. for k := range v {
  11910. v2[i] = int64(k)
  11911. i++
  11912. }
  11913. sort.Sort(intSlice(v2))
  11914. if esep {
  11915. for _, k2 := range v2 {
  11916. ee.WriteMapElemKey()
  11917. ee.EncodeInt(int64(int16(k2)))
  11918. ee.WriteMapElemValue()
  11919. e.encode(v[int16(k2)])
  11920. }
  11921. } else {
  11922. for _, k2 := range v2 {
  11923. ee.EncodeInt(int64(int16(k2)))
  11924. e.encode(v[int16(k2)])
  11925. }
  11926. }
  11927. } else {
  11928. if esep {
  11929. for k2, v2 := range v {
  11930. ee.WriteMapElemKey()
  11931. ee.EncodeInt(int64(k2))
  11932. ee.WriteMapElemValue()
  11933. e.encode(v2)
  11934. }
  11935. } else {
  11936. for k2, v2 := range v {
  11937. ee.EncodeInt(int64(k2))
  11938. e.encode(v2)
  11939. }
  11940. }
  11941. }
  11942. ee.WriteMapEnd()
  11943. }
  11944. func (e *Encoder) fastpathEncMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  11945. fastpathTV.EncMapInt16IntV(rv2i(rv).(map[int16]int), e)
  11946. }
  11947. func (_ fastpathT) EncMapInt16IntV(v map[int16]int, e *Encoder) {
  11948. if v == nil {
  11949. e.e.EncodeNil()
  11950. return
  11951. }
  11952. ee, esep := e.e, e.hh.hasElemSeparators()
  11953. ee.WriteMapStart(len(v))
  11954. if e.h.Canonical {
  11955. v2 := make([]int64, len(v))
  11956. var i uint
  11957. for k := range v {
  11958. v2[i] = int64(k)
  11959. i++
  11960. }
  11961. sort.Sort(intSlice(v2))
  11962. if esep {
  11963. for _, k2 := range v2 {
  11964. ee.WriteMapElemKey()
  11965. ee.EncodeInt(int64(int16(k2)))
  11966. ee.WriteMapElemValue()
  11967. ee.EncodeInt(int64(v[int16(k2)]))
  11968. }
  11969. } else {
  11970. for _, k2 := range v2 {
  11971. ee.EncodeInt(int64(int16(k2)))
  11972. ee.EncodeInt(int64(v[int16(k2)]))
  11973. }
  11974. }
  11975. } else {
  11976. if esep {
  11977. for k2, v2 := range v {
  11978. ee.WriteMapElemKey()
  11979. ee.EncodeInt(int64(k2))
  11980. ee.WriteMapElemValue()
  11981. ee.EncodeInt(int64(v2))
  11982. }
  11983. } else {
  11984. for k2, v2 := range v {
  11985. ee.EncodeInt(int64(k2))
  11986. ee.EncodeInt(int64(v2))
  11987. }
  11988. }
  11989. }
  11990. ee.WriteMapEnd()
  11991. }
  11992. func (e *Encoder) fastpathEncMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  11993. fastpathTV.EncMapInt16Int8V(rv2i(rv).(map[int16]int8), e)
  11994. }
  11995. func (_ fastpathT) EncMapInt16Int8V(v map[int16]int8, e *Encoder) {
  11996. if v == nil {
  11997. e.e.EncodeNil()
  11998. return
  11999. }
  12000. ee, esep := e.e, e.hh.hasElemSeparators()
  12001. ee.WriteMapStart(len(v))
  12002. if e.h.Canonical {
  12003. v2 := make([]int64, len(v))
  12004. var i uint
  12005. for k := range v {
  12006. v2[i] = int64(k)
  12007. i++
  12008. }
  12009. sort.Sort(intSlice(v2))
  12010. if esep {
  12011. for _, k2 := range v2 {
  12012. ee.WriteMapElemKey()
  12013. ee.EncodeInt(int64(int16(k2)))
  12014. ee.WriteMapElemValue()
  12015. ee.EncodeInt(int64(v[int16(k2)]))
  12016. }
  12017. } else {
  12018. for _, k2 := range v2 {
  12019. ee.EncodeInt(int64(int16(k2)))
  12020. ee.EncodeInt(int64(v[int16(k2)]))
  12021. }
  12022. }
  12023. } else {
  12024. if esep {
  12025. for k2, v2 := range v {
  12026. ee.WriteMapElemKey()
  12027. ee.EncodeInt(int64(k2))
  12028. ee.WriteMapElemValue()
  12029. ee.EncodeInt(int64(v2))
  12030. }
  12031. } else {
  12032. for k2, v2 := range v {
  12033. ee.EncodeInt(int64(k2))
  12034. ee.EncodeInt(int64(v2))
  12035. }
  12036. }
  12037. }
  12038. ee.WriteMapEnd()
  12039. }
  12040. func (e *Encoder) fastpathEncMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  12041. fastpathTV.EncMapInt16Int16V(rv2i(rv).(map[int16]int16), e)
  12042. }
  12043. func (_ fastpathT) EncMapInt16Int16V(v map[int16]int16, e *Encoder) {
  12044. if v == nil {
  12045. e.e.EncodeNil()
  12046. return
  12047. }
  12048. ee, esep := e.e, e.hh.hasElemSeparators()
  12049. ee.WriteMapStart(len(v))
  12050. if e.h.Canonical {
  12051. v2 := make([]int64, len(v))
  12052. var i uint
  12053. for k := range v {
  12054. v2[i] = int64(k)
  12055. i++
  12056. }
  12057. sort.Sort(intSlice(v2))
  12058. if esep {
  12059. for _, k2 := range v2 {
  12060. ee.WriteMapElemKey()
  12061. ee.EncodeInt(int64(int16(k2)))
  12062. ee.WriteMapElemValue()
  12063. ee.EncodeInt(int64(v[int16(k2)]))
  12064. }
  12065. } else {
  12066. for _, k2 := range v2 {
  12067. ee.EncodeInt(int64(int16(k2)))
  12068. ee.EncodeInt(int64(v[int16(k2)]))
  12069. }
  12070. }
  12071. } else {
  12072. if esep {
  12073. for k2, v2 := range v {
  12074. ee.WriteMapElemKey()
  12075. ee.EncodeInt(int64(k2))
  12076. ee.WriteMapElemValue()
  12077. ee.EncodeInt(int64(v2))
  12078. }
  12079. } else {
  12080. for k2, v2 := range v {
  12081. ee.EncodeInt(int64(k2))
  12082. ee.EncodeInt(int64(v2))
  12083. }
  12084. }
  12085. }
  12086. ee.WriteMapEnd()
  12087. }
  12088. func (e *Encoder) fastpathEncMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  12089. fastpathTV.EncMapInt16Int32V(rv2i(rv).(map[int16]int32), e)
  12090. }
  12091. func (_ fastpathT) EncMapInt16Int32V(v map[int16]int32, e *Encoder) {
  12092. if v == nil {
  12093. e.e.EncodeNil()
  12094. return
  12095. }
  12096. ee, esep := e.e, e.hh.hasElemSeparators()
  12097. ee.WriteMapStart(len(v))
  12098. if e.h.Canonical {
  12099. v2 := make([]int64, len(v))
  12100. var i uint
  12101. for k := range v {
  12102. v2[i] = int64(k)
  12103. i++
  12104. }
  12105. sort.Sort(intSlice(v2))
  12106. if esep {
  12107. for _, k2 := range v2 {
  12108. ee.WriteMapElemKey()
  12109. ee.EncodeInt(int64(int16(k2)))
  12110. ee.WriteMapElemValue()
  12111. ee.EncodeInt(int64(v[int16(k2)]))
  12112. }
  12113. } else {
  12114. for _, k2 := range v2 {
  12115. ee.EncodeInt(int64(int16(k2)))
  12116. ee.EncodeInt(int64(v[int16(k2)]))
  12117. }
  12118. }
  12119. } else {
  12120. if esep {
  12121. for k2, v2 := range v {
  12122. ee.WriteMapElemKey()
  12123. ee.EncodeInt(int64(k2))
  12124. ee.WriteMapElemValue()
  12125. ee.EncodeInt(int64(v2))
  12126. }
  12127. } else {
  12128. for k2, v2 := range v {
  12129. ee.EncodeInt(int64(k2))
  12130. ee.EncodeInt(int64(v2))
  12131. }
  12132. }
  12133. }
  12134. ee.WriteMapEnd()
  12135. }
  12136. func (e *Encoder) fastpathEncMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  12137. fastpathTV.EncMapInt16Int64V(rv2i(rv).(map[int16]int64), e)
  12138. }
  12139. func (_ fastpathT) EncMapInt16Int64V(v map[int16]int64, e *Encoder) {
  12140. if v == nil {
  12141. e.e.EncodeNil()
  12142. return
  12143. }
  12144. ee, esep := e.e, e.hh.hasElemSeparators()
  12145. ee.WriteMapStart(len(v))
  12146. if e.h.Canonical {
  12147. v2 := make([]int64, len(v))
  12148. var i uint
  12149. for k := range v {
  12150. v2[i] = int64(k)
  12151. i++
  12152. }
  12153. sort.Sort(intSlice(v2))
  12154. if esep {
  12155. for _, k2 := range v2 {
  12156. ee.WriteMapElemKey()
  12157. ee.EncodeInt(int64(int16(k2)))
  12158. ee.WriteMapElemValue()
  12159. ee.EncodeInt(int64(v[int16(k2)]))
  12160. }
  12161. } else {
  12162. for _, k2 := range v2 {
  12163. ee.EncodeInt(int64(int16(k2)))
  12164. ee.EncodeInt(int64(v[int16(k2)]))
  12165. }
  12166. }
  12167. } else {
  12168. if esep {
  12169. for k2, v2 := range v {
  12170. ee.WriteMapElemKey()
  12171. ee.EncodeInt(int64(k2))
  12172. ee.WriteMapElemValue()
  12173. ee.EncodeInt(int64(v2))
  12174. }
  12175. } else {
  12176. for k2, v2 := range v {
  12177. ee.EncodeInt(int64(k2))
  12178. ee.EncodeInt(int64(v2))
  12179. }
  12180. }
  12181. }
  12182. ee.WriteMapEnd()
  12183. }
  12184. func (e *Encoder) fastpathEncMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  12185. fastpathTV.EncMapInt16Float32V(rv2i(rv).(map[int16]float32), e)
  12186. }
  12187. func (_ fastpathT) EncMapInt16Float32V(v map[int16]float32, e *Encoder) {
  12188. if v == nil {
  12189. e.e.EncodeNil()
  12190. return
  12191. }
  12192. ee, esep := e.e, e.hh.hasElemSeparators()
  12193. ee.WriteMapStart(len(v))
  12194. if e.h.Canonical {
  12195. v2 := make([]int64, len(v))
  12196. var i uint
  12197. for k := range v {
  12198. v2[i] = int64(k)
  12199. i++
  12200. }
  12201. sort.Sort(intSlice(v2))
  12202. if esep {
  12203. for _, k2 := range v2 {
  12204. ee.WriteMapElemKey()
  12205. ee.EncodeInt(int64(int16(k2)))
  12206. ee.WriteMapElemValue()
  12207. ee.EncodeFloat32(v[int16(k2)])
  12208. }
  12209. } else {
  12210. for _, k2 := range v2 {
  12211. ee.EncodeInt(int64(int16(k2)))
  12212. ee.EncodeFloat32(v[int16(k2)])
  12213. }
  12214. }
  12215. } else {
  12216. if esep {
  12217. for k2, v2 := range v {
  12218. ee.WriteMapElemKey()
  12219. ee.EncodeInt(int64(k2))
  12220. ee.WriteMapElemValue()
  12221. ee.EncodeFloat32(v2)
  12222. }
  12223. } else {
  12224. for k2, v2 := range v {
  12225. ee.EncodeInt(int64(k2))
  12226. ee.EncodeFloat32(v2)
  12227. }
  12228. }
  12229. }
  12230. ee.WriteMapEnd()
  12231. }
  12232. func (e *Encoder) fastpathEncMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  12233. fastpathTV.EncMapInt16Float64V(rv2i(rv).(map[int16]float64), e)
  12234. }
  12235. func (_ fastpathT) EncMapInt16Float64V(v map[int16]float64, e *Encoder) {
  12236. if v == nil {
  12237. e.e.EncodeNil()
  12238. return
  12239. }
  12240. ee, esep := e.e, e.hh.hasElemSeparators()
  12241. ee.WriteMapStart(len(v))
  12242. if e.h.Canonical {
  12243. v2 := make([]int64, len(v))
  12244. var i uint
  12245. for k := range v {
  12246. v2[i] = int64(k)
  12247. i++
  12248. }
  12249. sort.Sort(intSlice(v2))
  12250. if esep {
  12251. for _, k2 := range v2 {
  12252. ee.WriteMapElemKey()
  12253. ee.EncodeInt(int64(int16(k2)))
  12254. ee.WriteMapElemValue()
  12255. ee.EncodeFloat64(v[int16(k2)])
  12256. }
  12257. } else {
  12258. for _, k2 := range v2 {
  12259. ee.EncodeInt(int64(int16(k2)))
  12260. ee.EncodeFloat64(v[int16(k2)])
  12261. }
  12262. }
  12263. } else {
  12264. if esep {
  12265. for k2, v2 := range v {
  12266. ee.WriteMapElemKey()
  12267. ee.EncodeInt(int64(k2))
  12268. ee.WriteMapElemValue()
  12269. ee.EncodeFloat64(v2)
  12270. }
  12271. } else {
  12272. for k2, v2 := range v {
  12273. ee.EncodeInt(int64(k2))
  12274. ee.EncodeFloat64(v2)
  12275. }
  12276. }
  12277. }
  12278. ee.WriteMapEnd()
  12279. }
  12280. func (e *Encoder) fastpathEncMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  12281. fastpathTV.EncMapInt16BoolV(rv2i(rv).(map[int16]bool), e)
  12282. }
  12283. func (_ fastpathT) EncMapInt16BoolV(v map[int16]bool, e *Encoder) {
  12284. if v == nil {
  12285. e.e.EncodeNil()
  12286. return
  12287. }
  12288. ee, esep := e.e, e.hh.hasElemSeparators()
  12289. ee.WriteMapStart(len(v))
  12290. if e.h.Canonical {
  12291. v2 := make([]int64, len(v))
  12292. var i uint
  12293. for k := range v {
  12294. v2[i] = int64(k)
  12295. i++
  12296. }
  12297. sort.Sort(intSlice(v2))
  12298. if esep {
  12299. for _, k2 := range v2 {
  12300. ee.WriteMapElemKey()
  12301. ee.EncodeInt(int64(int16(k2)))
  12302. ee.WriteMapElemValue()
  12303. ee.EncodeBool(v[int16(k2)])
  12304. }
  12305. } else {
  12306. for _, k2 := range v2 {
  12307. ee.EncodeInt(int64(int16(k2)))
  12308. ee.EncodeBool(v[int16(k2)])
  12309. }
  12310. }
  12311. } else {
  12312. if esep {
  12313. for k2, v2 := range v {
  12314. ee.WriteMapElemKey()
  12315. ee.EncodeInt(int64(k2))
  12316. ee.WriteMapElemValue()
  12317. ee.EncodeBool(v2)
  12318. }
  12319. } else {
  12320. for k2, v2 := range v {
  12321. ee.EncodeInt(int64(k2))
  12322. ee.EncodeBool(v2)
  12323. }
  12324. }
  12325. }
  12326. ee.WriteMapEnd()
  12327. }
  12328. func (e *Encoder) fastpathEncMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  12329. fastpathTV.EncMapInt32IntfV(rv2i(rv).(map[int32]interface{}), e)
  12330. }
  12331. func (_ fastpathT) EncMapInt32IntfV(v map[int32]interface{}, e *Encoder) {
  12332. if v == nil {
  12333. e.e.EncodeNil()
  12334. return
  12335. }
  12336. ee, esep := e.e, e.hh.hasElemSeparators()
  12337. ee.WriteMapStart(len(v))
  12338. if e.h.Canonical {
  12339. v2 := make([]int64, len(v))
  12340. var i uint
  12341. for k := range v {
  12342. v2[i] = int64(k)
  12343. i++
  12344. }
  12345. sort.Sort(intSlice(v2))
  12346. if esep {
  12347. for _, k2 := range v2 {
  12348. ee.WriteMapElemKey()
  12349. ee.EncodeInt(int64(int32(k2)))
  12350. ee.WriteMapElemValue()
  12351. e.encode(v[int32(k2)])
  12352. }
  12353. } else {
  12354. for _, k2 := range v2 {
  12355. ee.EncodeInt(int64(int32(k2)))
  12356. e.encode(v[int32(k2)])
  12357. }
  12358. }
  12359. } else {
  12360. if esep {
  12361. for k2, v2 := range v {
  12362. ee.WriteMapElemKey()
  12363. ee.EncodeInt(int64(k2))
  12364. ee.WriteMapElemValue()
  12365. e.encode(v2)
  12366. }
  12367. } else {
  12368. for k2, v2 := range v {
  12369. ee.EncodeInt(int64(k2))
  12370. e.encode(v2)
  12371. }
  12372. }
  12373. }
  12374. ee.WriteMapEnd()
  12375. }
  12376. func (e *Encoder) fastpathEncMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  12377. fastpathTV.EncMapInt32StringV(rv2i(rv).(map[int32]string), e)
  12378. }
  12379. func (_ fastpathT) EncMapInt32StringV(v map[int32]string, e *Encoder) {
  12380. if v == nil {
  12381. e.e.EncodeNil()
  12382. return
  12383. }
  12384. ee, esep := e.e, e.hh.hasElemSeparators()
  12385. ee.WriteMapStart(len(v))
  12386. if e.h.Canonical {
  12387. v2 := make([]int64, len(v))
  12388. var i uint
  12389. for k := range v {
  12390. v2[i] = int64(k)
  12391. i++
  12392. }
  12393. sort.Sort(intSlice(v2))
  12394. if esep {
  12395. for _, k2 := range v2 {
  12396. ee.WriteMapElemKey()
  12397. ee.EncodeInt(int64(int32(k2)))
  12398. ee.WriteMapElemValue()
  12399. ee.EncodeStringEnc(cUTF8, v[int32(k2)])
  12400. }
  12401. } else {
  12402. for _, k2 := range v2 {
  12403. ee.EncodeInt(int64(int32(k2)))
  12404. ee.EncodeStringEnc(cUTF8, v[int32(k2)])
  12405. }
  12406. }
  12407. } else {
  12408. if esep {
  12409. for k2, v2 := range v {
  12410. ee.WriteMapElemKey()
  12411. ee.EncodeInt(int64(k2))
  12412. ee.WriteMapElemValue()
  12413. ee.EncodeStringEnc(cUTF8, v2)
  12414. }
  12415. } else {
  12416. for k2, v2 := range v {
  12417. ee.EncodeInt(int64(k2))
  12418. ee.EncodeStringEnc(cUTF8, v2)
  12419. }
  12420. }
  12421. }
  12422. ee.WriteMapEnd()
  12423. }
  12424. func (e *Encoder) fastpathEncMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  12425. fastpathTV.EncMapInt32UintV(rv2i(rv).(map[int32]uint), e)
  12426. }
  12427. func (_ fastpathT) EncMapInt32UintV(v map[int32]uint, e *Encoder) {
  12428. if v == nil {
  12429. e.e.EncodeNil()
  12430. return
  12431. }
  12432. ee, esep := e.e, e.hh.hasElemSeparators()
  12433. ee.WriteMapStart(len(v))
  12434. if e.h.Canonical {
  12435. v2 := make([]int64, len(v))
  12436. var i uint
  12437. for k := range v {
  12438. v2[i] = int64(k)
  12439. i++
  12440. }
  12441. sort.Sort(intSlice(v2))
  12442. if esep {
  12443. for _, k2 := range v2 {
  12444. ee.WriteMapElemKey()
  12445. ee.EncodeInt(int64(int32(k2)))
  12446. ee.WriteMapElemValue()
  12447. ee.EncodeUint(uint64(v[int32(k2)]))
  12448. }
  12449. } else {
  12450. for _, k2 := range v2 {
  12451. ee.EncodeInt(int64(int32(k2)))
  12452. ee.EncodeUint(uint64(v[int32(k2)]))
  12453. }
  12454. }
  12455. } else {
  12456. if esep {
  12457. for k2, v2 := range v {
  12458. ee.WriteMapElemKey()
  12459. ee.EncodeInt(int64(k2))
  12460. ee.WriteMapElemValue()
  12461. ee.EncodeUint(uint64(v2))
  12462. }
  12463. } else {
  12464. for k2, v2 := range v {
  12465. ee.EncodeInt(int64(k2))
  12466. ee.EncodeUint(uint64(v2))
  12467. }
  12468. }
  12469. }
  12470. ee.WriteMapEnd()
  12471. }
  12472. func (e *Encoder) fastpathEncMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  12473. fastpathTV.EncMapInt32Uint8V(rv2i(rv).(map[int32]uint8), e)
  12474. }
  12475. func (_ fastpathT) EncMapInt32Uint8V(v map[int32]uint8, e *Encoder) {
  12476. if v == nil {
  12477. e.e.EncodeNil()
  12478. return
  12479. }
  12480. ee, esep := e.e, e.hh.hasElemSeparators()
  12481. ee.WriteMapStart(len(v))
  12482. if e.h.Canonical {
  12483. v2 := make([]int64, len(v))
  12484. var i uint
  12485. for k := range v {
  12486. v2[i] = int64(k)
  12487. i++
  12488. }
  12489. sort.Sort(intSlice(v2))
  12490. if esep {
  12491. for _, k2 := range v2 {
  12492. ee.WriteMapElemKey()
  12493. ee.EncodeInt(int64(int32(k2)))
  12494. ee.WriteMapElemValue()
  12495. ee.EncodeUint(uint64(v[int32(k2)]))
  12496. }
  12497. } else {
  12498. for _, k2 := range v2 {
  12499. ee.EncodeInt(int64(int32(k2)))
  12500. ee.EncodeUint(uint64(v[int32(k2)]))
  12501. }
  12502. }
  12503. } else {
  12504. if esep {
  12505. for k2, v2 := range v {
  12506. ee.WriteMapElemKey()
  12507. ee.EncodeInt(int64(k2))
  12508. ee.WriteMapElemValue()
  12509. ee.EncodeUint(uint64(v2))
  12510. }
  12511. } else {
  12512. for k2, v2 := range v {
  12513. ee.EncodeInt(int64(k2))
  12514. ee.EncodeUint(uint64(v2))
  12515. }
  12516. }
  12517. }
  12518. ee.WriteMapEnd()
  12519. }
  12520. func (e *Encoder) fastpathEncMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  12521. fastpathTV.EncMapInt32Uint16V(rv2i(rv).(map[int32]uint16), e)
  12522. }
  12523. func (_ fastpathT) EncMapInt32Uint16V(v map[int32]uint16, e *Encoder) {
  12524. if v == nil {
  12525. e.e.EncodeNil()
  12526. return
  12527. }
  12528. ee, esep := e.e, e.hh.hasElemSeparators()
  12529. ee.WriteMapStart(len(v))
  12530. if e.h.Canonical {
  12531. v2 := make([]int64, len(v))
  12532. var i uint
  12533. for k := range v {
  12534. v2[i] = int64(k)
  12535. i++
  12536. }
  12537. sort.Sort(intSlice(v2))
  12538. if esep {
  12539. for _, k2 := range v2 {
  12540. ee.WriteMapElemKey()
  12541. ee.EncodeInt(int64(int32(k2)))
  12542. ee.WriteMapElemValue()
  12543. ee.EncodeUint(uint64(v[int32(k2)]))
  12544. }
  12545. } else {
  12546. for _, k2 := range v2 {
  12547. ee.EncodeInt(int64(int32(k2)))
  12548. ee.EncodeUint(uint64(v[int32(k2)]))
  12549. }
  12550. }
  12551. } else {
  12552. if esep {
  12553. for k2, v2 := range v {
  12554. ee.WriteMapElemKey()
  12555. ee.EncodeInt(int64(k2))
  12556. ee.WriteMapElemValue()
  12557. ee.EncodeUint(uint64(v2))
  12558. }
  12559. } else {
  12560. for k2, v2 := range v {
  12561. ee.EncodeInt(int64(k2))
  12562. ee.EncodeUint(uint64(v2))
  12563. }
  12564. }
  12565. }
  12566. ee.WriteMapEnd()
  12567. }
  12568. func (e *Encoder) fastpathEncMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  12569. fastpathTV.EncMapInt32Uint32V(rv2i(rv).(map[int32]uint32), e)
  12570. }
  12571. func (_ fastpathT) EncMapInt32Uint32V(v map[int32]uint32, e *Encoder) {
  12572. if v == nil {
  12573. e.e.EncodeNil()
  12574. return
  12575. }
  12576. ee, esep := e.e, e.hh.hasElemSeparators()
  12577. ee.WriteMapStart(len(v))
  12578. if e.h.Canonical {
  12579. v2 := make([]int64, len(v))
  12580. var i uint
  12581. for k := range v {
  12582. v2[i] = int64(k)
  12583. i++
  12584. }
  12585. sort.Sort(intSlice(v2))
  12586. if esep {
  12587. for _, k2 := range v2 {
  12588. ee.WriteMapElemKey()
  12589. ee.EncodeInt(int64(int32(k2)))
  12590. ee.WriteMapElemValue()
  12591. ee.EncodeUint(uint64(v[int32(k2)]))
  12592. }
  12593. } else {
  12594. for _, k2 := range v2 {
  12595. ee.EncodeInt(int64(int32(k2)))
  12596. ee.EncodeUint(uint64(v[int32(k2)]))
  12597. }
  12598. }
  12599. } else {
  12600. if esep {
  12601. for k2, v2 := range v {
  12602. ee.WriteMapElemKey()
  12603. ee.EncodeInt(int64(k2))
  12604. ee.WriteMapElemValue()
  12605. ee.EncodeUint(uint64(v2))
  12606. }
  12607. } else {
  12608. for k2, v2 := range v {
  12609. ee.EncodeInt(int64(k2))
  12610. ee.EncodeUint(uint64(v2))
  12611. }
  12612. }
  12613. }
  12614. ee.WriteMapEnd()
  12615. }
  12616. func (e *Encoder) fastpathEncMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  12617. fastpathTV.EncMapInt32Uint64V(rv2i(rv).(map[int32]uint64), e)
  12618. }
  12619. func (_ fastpathT) EncMapInt32Uint64V(v map[int32]uint64, e *Encoder) {
  12620. if v == nil {
  12621. e.e.EncodeNil()
  12622. return
  12623. }
  12624. ee, esep := e.e, e.hh.hasElemSeparators()
  12625. ee.WriteMapStart(len(v))
  12626. if e.h.Canonical {
  12627. v2 := make([]int64, len(v))
  12628. var i uint
  12629. for k := range v {
  12630. v2[i] = int64(k)
  12631. i++
  12632. }
  12633. sort.Sort(intSlice(v2))
  12634. if esep {
  12635. for _, k2 := range v2 {
  12636. ee.WriteMapElemKey()
  12637. ee.EncodeInt(int64(int32(k2)))
  12638. ee.WriteMapElemValue()
  12639. ee.EncodeUint(uint64(v[int32(k2)]))
  12640. }
  12641. } else {
  12642. for _, k2 := range v2 {
  12643. ee.EncodeInt(int64(int32(k2)))
  12644. ee.EncodeUint(uint64(v[int32(k2)]))
  12645. }
  12646. }
  12647. } else {
  12648. if esep {
  12649. for k2, v2 := range v {
  12650. ee.WriteMapElemKey()
  12651. ee.EncodeInt(int64(k2))
  12652. ee.WriteMapElemValue()
  12653. ee.EncodeUint(uint64(v2))
  12654. }
  12655. } else {
  12656. for k2, v2 := range v {
  12657. ee.EncodeInt(int64(k2))
  12658. ee.EncodeUint(uint64(v2))
  12659. }
  12660. }
  12661. }
  12662. ee.WriteMapEnd()
  12663. }
  12664. func (e *Encoder) fastpathEncMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  12665. fastpathTV.EncMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), e)
  12666. }
  12667. func (_ fastpathT) EncMapInt32UintptrV(v map[int32]uintptr, e *Encoder) {
  12668. if v == nil {
  12669. e.e.EncodeNil()
  12670. return
  12671. }
  12672. ee, esep := e.e, e.hh.hasElemSeparators()
  12673. ee.WriteMapStart(len(v))
  12674. if e.h.Canonical {
  12675. v2 := make([]int64, len(v))
  12676. var i uint
  12677. for k := range v {
  12678. v2[i] = int64(k)
  12679. i++
  12680. }
  12681. sort.Sort(intSlice(v2))
  12682. if esep {
  12683. for _, k2 := range v2 {
  12684. ee.WriteMapElemKey()
  12685. ee.EncodeInt(int64(int32(k2)))
  12686. ee.WriteMapElemValue()
  12687. e.encode(v[int32(k2)])
  12688. }
  12689. } else {
  12690. for _, k2 := range v2 {
  12691. ee.EncodeInt(int64(int32(k2)))
  12692. e.encode(v[int32(k2)])
  12693. }
  12694. }
  12695. } else {
  12696. if esep {
  12697. for k2, v2 := range v {
  12698. ee.WriteMapElemKey()
  12699. ee.EncodeInt(int64(k2))
  12700. ee.WriteMapElemValue()
  12701. e.encode(v2)
  12702. }
  12703. } else {
  12704. for k2, v2 := range v {
  12705. ee.EncodeInt(int64(k2))
  12706. e.encode(v2)
  12707. }
  12708. }
  12709. }
  12710. ee.WriteMapEnd()
  12711. }
  12712. func (e *Encoder) fastpathEncMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  12713. fastpathTV.EncMapInt32IntV(rv2i(rv).(map[int32]int), e)
  12714. }
  12715. func (_ fastpathT) EncMapInt32IntV(v map[int32]int, e *Encoder) {
  12716. if v == nil {
  12717. e.e.EncodeNil()
  12718. return
  12719. }
  12720. ee, esep := e.e, e.hh.hasElemSeparators()
  12721. ee.WriteMapStart(len(v))
  12722. if e.h.Canonical {
  12723. v2 := make([]int64, len(v))
  12724. var i uint
  12725. for k := range v {
  12726. v2[i] = int64(k)
  12727. i++
  12728. }
  12729. sort.Sort(intSlice(v2))
  12730. if esep {
  12731. for _, k2 := range v2 {
  12732. ee.WriteMapElemKey()
  12733. ee.EncodeInt(int64(int32(k2)))
  12734. ee.WriteMapElemValue()
  12735. ee.EncodeInt(int64(v[int32(k2)]))
  12736. }
  12737. } else {
  12738. for _, k2 := range v2 {
  12739. ee.EncodeInt(int64(int32(k2)))
  12740. ee.EncodeInt(int64(v[int32(k2)]))
  12741. }
  12742. }
  12743. } else {
  12744. if esep {
  12745. for k2, v2 := range v {
  12746. ee.WriteMapElemKey()
  12747. ee.EncodeInt(int64(k2))
  12748. ee.WriteMapElemValue()
  12749. ee.EncodeInt(int64(v2))
  12750. }
  12751. } else {
  12752. for k2, v2 := range v {
  12753. ee.EncodeInt(int64(k2))
  12754. ee.EncodeInt(int64(v2))
  12755. }
  12756. }
  12757. }
  12758. ee.WriteMapEnd()
  12759. }
  12760. func (e *Encoder) fastpathEncMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  12761. fastpathTV.EncMapInt32Int8V(rv2i(rv).(map[int32]int8), e)
  12762. }
  12763. func (_ fastpathT) EncMapInt32Int8V(v map[int32]int8, e *Encoder) {
  12764. if v == nil {
  12765. e.e.EncodeNil()
  12766. return
  12767. }
  12768. ee, esep := e.e, e.hh.hasElemSeparators()
  12769. ee.WriteMapStart(len(v))
  12770. if e.h.Canonical {
  12771. v2 := make([]int64, len(v))
  12772. var i uint
  12773. for k := range v {
  12774. v2[i] = int64(k)
  12775. i++
  12776. }
  12777. sort.Sort(intSlice(v2))
  12778. if esep {
  12779. for _, k2 := range v2 {
  12780. ee.WriteMapElemKey()
  12781. ee.EncodeInt(int64(int32(k2)))
  12782. ee.WriteMapElemValue()
  12783. ee.EncodeInt(int64(v[int32(k2)]))
  12784. }
  12785. } else {
  12786. for _, k2 := range v2 {
  12787. ee.EncodeInt(int64(int32(k2)))
  12788. ee.EncodeInt(int64(v[int32(k2)]))
  12789. }
  12790. }
  12791. } else {
  12792. if esep {
  12793. for k2, v2 := range v {
  12794. ee.WriteMapElemKey()
  12795. ee.EncodeInt(int64(k2))
  12796. ee.WriteMapElemValue()
  12797. ee.EncodeInt(int64(v2))
  12798. }
  12799. } else {
  12800. for k2, v2 := range v {
  12801. ee.EncodeInt(int64(k2))
  12802. ee.EncodeInt(int64(v2))
  12803. }
  12804. }
  12805. }
  12806. ee.WriteMapEnd()
  12807. }
  12808. func (e *Encoder) fastpathEncMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  12809. fastpathTV.EncMapInt32Int16V(rv2i(rv).(map[int32]int16), e)
  12810. }
  12811. func (_ fastpathT) EncMapInt32Int16V(v map[int32]int16, e *Encoder) {
  12812. if v == nil {
  12813. e.e.EncodeNil()
  12814. return
  12815. }
  12816. ee, esep := e.e, e.hh.hasElemSeparators()
  12817. ee.WriteMapStart(len(v))
  12818. if e.h.Canonical {
  12819. v2 := make([]int64, len(v))
  12820. var i uint
  12821. for k := range v {
  12822. v2[i] = int64(k)
  12823. i++
  12824. }
  12825. sort.Sort(intSlice(v2))
  12826. if esep {
  12827. for _, k2 := range v2 {
  12828. ee.WriteMapElemKey()
  12829. ee.EncodeInt(int64(int32(k2)))
  12830. ee.WriteMapElemValue()
  12831. ee.EncodeInt(int64(v[int32(k2)]))
  12832. }
  12833. } else {
  12834. for _, k2 := range v2 {
  12835. ee.EncodeInt(int64(int32(k2)))
  12836. ee.EncodeInt(int64(v[int32(k2)]))
  12837. }
  12838. }
  12839. } else {
  12840. if esep {
  12841. for k2, v2 := range v {
  12842. ee.WriteMapElemKey()
  12843. ee.EncodeInt(int64(k2))
  12844. ee.WriteMapElemValue()
  12845. ee.EncodeInt(int64(v2))
  12846. }
  12847. } else {
  12848. for k2, v2 := range v {
  12849. ee.EncodeInt(int64(k2))
  12850. ee.EncodeInt(int64(v2))
  12851. }
  12852. }
  12853. }
  12854. ee.WriteMapEnd()
  12855. }
  12856. func (e *Encoder) fastpathEncMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  12857. fastpathTV.EncMapInt32Int32V(rv2i(rv).(map[int32]int32), e)
  12858. }
  12859. func (_ fastpathT) EncMapInt32Int32V(v map[int32]int32, e *Encoder) {
  12860. if v == nil {
  12861. e.e.EncodeNil()
  12862. return
  12863. }
  12864. ee, esep := e.e, e.hh.hasElemSeparators()
  12865. ee.WriteMapStart(len(v))
  12866. if e.h.Canonical {
  12867. v2 := make([]int64, len(v))
  12868. var i uint
  12869. for k := range v {
  12870. v2[i] = int64(k)
  12871. i++
  12872. }
  12873. sort.Sort(intSlice(v2))
  12874. if esep {
  12875. for _, k2 := range v2 {
  12876. ee.WriteMapElemKey()
  12877. ee.EncodeInt(int64(int32(k2)))
  12878. ee.WriteMapElemValue()
  12879. ee.EncodeInt(int64(v[int32(k2)]))
  12880. }
  12881. } else {
  12882. for _, k2 := range v2 {
  12883. ee.EncodeInt(int64(int32(k2)))
  12884. ee.EncodeInt(int64(v[int32(k2)]))
  12885. }
  12886. }
  12887. } else {
  12888. if esep {
  12889. for k2, v2 := range v {
  12890. ee.WriteMapElemKey()
  12891. ee.EncodeInt(int64(k2))
  12892. ee.WriteMapElemValue()
  12893. ee.EncodeInt(int64(v2))
  12894. }
  12895. } else {
  12896. for k2, v2 := range v {
  12897. ee.EncodeInt(int64(k2))
  12898. ee.EncodeInt(int64(v2))
  12899. }
  12900. }
  12901. }
  12902. ee.WriteMapEnd()
  12903. }
  12904. func (e *Encoder) fastpathEncMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  12905. fastpathTV.EncMapInt32Int64V(rv2i(rv).(map[int32]int64), e)
  12906. }
  12907. func (_ fastpathT) EncMapInt32Int64V(v map[int32]int64, e *Encoder) {
  12908. if v == nil {
  12909. e.e.EncodeNil()
  12910. return
  12911. }
  12912. ee, esep := e.e, e.hh.hasElemSeparators()
  12913. ee.WriteMapStart(len(v))
  12914. if e.h.Canonical {
  12915. v2 := make([]int64, len(v))
  12916. var i uint
  12917. for k := range v {
  12918. v2[i] = int64(k)
  12919. i++
  12920. }
  12921. sort.Sort(intSlice(v2))
  12922. if esep {
  12923. for _, k2 := range v2 {
  12924. ee.WriteMapElemKey()
  12925. ee.EncodeInt(int64(int32(k2)))
  12926. ee.WriteMapElemValue()
  12927. ee.EncodeInt(int64(v[int32(k2)]))
  12928. }
  12929. } else {
  12930. for _, k2 := range v2 {
  12931. ee.EncodeInt(int64(int32(k2)))
  12932. ee.EncodeInt(int64(v[int32(k2)]))
  12933. }
  12934. }
  12935. } else {
  12936. if esep {
  12937. for k2, v2 := range v {
  12938. ee.WriteMapElemKey()
  12939. ee.EncodeInt(int64(k2))
  12940. ee.WriteMapElemValue()
  12941. ee.EncodeInt(int64(v2))
  12942. }
  12943. } else {
  12944. for k2, v2 := range v {
  12945. ee.EncodeInt(int64(k2))
  12946. ee.EncodeInt(int64(v2))
  12947. }
  12948. }
  12949. }
  12950. ee.WriteMapEnd()
  12951. }
  12952. func (e *Encoder) fastpathEncMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  12953. fastpathTV.EncMapInt32Float32V(rv2i(rv).(map[int32]float32), e)
  12954. }
  12955. func (_ fastpathT) EncMapInt32Float32V(v map[int32]float32, e *Encoder) {
  12956. if v == nil {
  12957. e.e.EncodeNil()
  12958. return
  12959. }
  12960. ee, esep := e.e, e.hh.hasElemSeparators()
  12961. ee.WriteMapStart(len(v))
  12962. if e.h.Canonical {
  12963. v2 := make([]int64, len(v))
  12964. var i uint
  12965. for k := range v {
  12966. v2[i] = int64(k)
  12967. i++
  12968. }
  12969. sort.Sort(intSlice(v2))
  12970. if esep {
  12971. for _, k2 := range v2 {
  12972. ee.WriteMapElemKey()
  12973. ee.EncodeInt(int64(int32(k2)))
  12974. ee.WriteMapElemValue()
  12975. ee.EncodeFloat32(v[int32(k2)])
  12976. }
  12977. } else {
  12978. for _, k2 := range v2 {
  12979. ee.EncodeInt(int64(int32(k2)))
  12980. ee.EncodeFloat32(v[int32(k2)])
  12981. }
  12982. }
  12983. } else {
  12984. if esep {
  12985. for k2, v2 := range v {
  12986. ee.WriteMapElemKey()
  12987. ee.EncodeInt(int64(k2))
  12988. ee.WriteMapElemValue()
  12989. ee.EncodeFloat32(v2)
  12990. }
  12991. } else {
  12992. for k2, v2 := range v {
  12993. ee.EncodeInt(int64(k2))
  12994. ee.EncodeFloat32(v2)
  12995. }
  12996. }
  12997. }
  12998. ee.WriteMapEnd()
  12999. }
  13000. func (e *Encoder) fastpathEncMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  13001. fastpathTV.EncMapInt32Float64V(rv2i(rv).(map[int32]float64), e)
  13002. }
  13003. func (_ fastpathT) EncMapInt32Float64V(v map[int32]float64, e *Encoder) {
  13004. if v == nil {
  13005. e.e.EncodeNil()
  13006. return
  13007. }
  13008. ee, esep := e.e, e.hh.hasElemSeparators()
  13009. ee.WriteMapStart(len(v))
  13010. if e.h.Canonical {
  13011. v2 := make([]int64, len(v))
  13012. var i uint
  13013. for k := range v {
  13014. v2[i] = int64(k)
  13015. i++
  13016. }
  13017. sort.Sort(intSlice(v2))
  13018. if esep {
  13019. for _, k2 := range v2 {
  13020. ee.WriteMapElemKey()
  13021. ee.EncodeInt(int64(int32(k2)))
  13022. ee.WriteMapElemValue()
  13023. ee.EncodeFloat64(v[int32(k2)])
  13024. }
  13025. } else {
  13026. for _, k2 := range v2 {
  13027. ee.EncodeInt(int64(int32(k2)))
  13028. ee.EncodeFloat64(v[int32(k2)])
  13029. }
  13030. }
  13031. } else {
  13032. if esep {
  13033. for k2, v2 := range v {
  13034. ee.WriteMapElemKey()
  13035. ee.EncodeInt(int64(k2))
  13036. ee.WriteMapElemValue()
  13037. ee.EncodeFloat64(v2)
  13038. }
  13039. } else {
  13040. for k2, v2 := range v {
  13041. ee.EncodeInt(int64(k2))
  13042. ee.EncodeFloat64(v2)
  13043. }
  13044. }
  13045. }
  13046. ee.WriteMapEnd()
  13047. }
  13048. func (e *Encoder) fastpathEncMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  13049. fastpathTV.EncMapInt32BoolV(rv2i(rv).(map[int32]bool), e)
  13050. }
  13051. func (_ fastpathT) EncMapInt32BoolV(v map[int32]bool, e *Encoder) {
  13052. if v == nil {
  13053. e.e.EncodeNil()
  13054. return
  13055. }
  13056. ee, esep := e.e, e.hh.hasElemSeparators()
  13057. ee.WriteMapStart(len(v))
  13058. if e.h.Canonical {
  13059. v2 := make([]int64, len(v))
  13060. var i uint
  13061. for k := range v {
  13062. v2[i] = int64(k)
  13063. i++
  13064. }
  13065. sort.Sort(intSlice(v2))
  13066. if esep {
  13067. for _, k2 := range v2 {
  13068. ee.WriteMapElemKey()
  13069. ee.EncodeInt(int64(int32(k2)))
  13070. ee.WriteMapElemValue()
  13071. ee.EncodeBool(v[int32(k2)])
  13072. }
  13073. } else {
  13074. for _, k2 := range v2 {
  13075. ee.EncodeInt(int64(int32(k2)))
  13076. ee.EncodeBool(v[int32(k2)])
  13077. }
  13078. }
  13079. } else {
  13080. if esep {
  13081. for k2, v2 := range v {
  13082. ee.WriteMapElemKey()
  13083. ee.EncodeInt(int64(k2))
  13084. ee.WriteMapElemValue()
  13085. ee.EncodeBool(v2)
  13086. }
  13087. } else {
  13088. for k2, v2 := range v {
  13089. ee.EncodeInt(int64(k2))
  13090. ee.EncodeBool(v2)
  13091. }
  13092. }
  13093. }
  13094. ee.WriteMapEnd()
  13095. }
  13096. func (e *Encoder) fastpathEncMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  13097. fastpathTV.EncMapInt64IntfV(rv2i(rv).(map[int64]interface{}), e)
  13098. }
  13099. func (_ fastpathT) EncMapInt64IntfV(v map[int64]interface{}, e *Encoder) {
  13100. if v == nil {
  13101. e.e.EncodeNil()
  13102. return
  13103. }
  13104. ee, esep := e.e, e.hh.hasElemSeparators()
  13105. ee.WriteMapStart(len(v))
  13106. if e.h.Canonical {
  13107. v2 := make([]int64, len(v))
  13108. var i uint
  13109. for k := range v {
  13110. v2[i] = int64(k)
  13111. i++
  13112. }
  13113. sort.Sort(intSlice(v2))
  13114. if esep {
  13115. for _, k2 := range v2 {
  13116. ee.WriteMapElemKey()
  13117. ee.EncodeInt(int64(int64(k2)))
  13118. ee.WriteMapElemValue()
  13119. e.encode(v[int64(k2)])
  13120. }
  13121. } else {
  13122. for _, k2 := range v2 {
  13123. ee.EncodeInt(int64(int64(k2)))
  13124. e.encode(v[int64(k2)])
  13125. }
  13126. }
  13127. } else {
  13128. if esep {
  13129. for k2, v2 := range v {
  13130. ee.WriteMapElemKey()
  13131. ee.EncodeInt(int64(k2))
  13132. ee.WriteMapElemValue()
  13133. e.encode(v2)
  13134. }
  13135. } else {
  13136. for k2, v2 := range v {
  13137. ee.EncodeInt(int64(k2))
  13138. e.encode(v2)
  13139. }
  13140. }
  13141. }
  13142. ee.WriteMapEnd()
  13143. }
  13144. func (e *Encoder) fastpathEncMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  13145. fastpathTV.EncMapInt64StringV(rv2i(rv).(map[int64]string), e)
  13146. }
  13147. func (_ fastpathT) EncMapInt64StringV(v map[int64]string, e *Encoder) {
  13148. if v == nil {
  13149. e.e.EncodeNil()
  13150. return
  13151. }
  13152. ee, esep := e.e, e.hh.hasElemSeparators()
  13153. ee.WriteMapStart(len(v))
  13154. if e.h.Canonical {
  13155. v2 := make([]int64, len(v))
  13156. var i uint
  13157. for k := range v {
  13158. v2[i] = int64(k)
  13159. i++
  13160. }
  13161. sort.Sort(intSlice(v2))
  13162. if esep {
  13163. for _, k2 := range v2 {
  13164. ee.WriteMapElemKey()
  13165. ee.EncodeInt(int64(int64(k2)))
  13166. ee.WriteMapElemValue()
  13167. ee.EncodeStringEnc(cUTF8, v[int64(k2)])
  13168. }
  13169. } else {
  13170. for _, k2 := range v2 {
  13171. ee.EncodeInt(int64(int64(k2)))
  13172. ee.EncodeStringEnc(cUTF8, v[int64(k2)])
  13173. }
  13174. }
  13175. } else {
  13176. if esep {
  13177. for k2, v2 := range v {
  13178. ee.WriteMapElemKey()
  13179. ee.EncodeInt(int64(k2))
  13180. ee.WriteMapElemValue()
  13181. ee.EncodeStringEnc(cUTF8, v2)
  13182. }
  13183. } else {
  13184. for k2, v2 := range v {
  13185. ee.EncodeInt(int64(k2))
  13186. ee.EncodeStringEnc(cUTF8, v2)
  13187. }
  13188. }
  13189. }
  13190. ee.WriteMapEnd()
  13191. }
  13192. func (e *Encoder) fastpathEncMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  13193. fastpathTV.EncMapInt64UintV(rv2i(rv).(map[int64]uint), e)
  13194. }
  13195. func (_ fastpathT) EncMapInt64UintV(v map[int64]uint, e *Encoder) {
  13196. if v == nil {
  13197. e.e.EncodeNil()
  13198. return
  13199. }
  13200. ee, esep := e.e, e.hh.hasElemSeparators()
  13201. ee.WriteMapStart(len(v))
  13202. if e.h.Canonical {
  13203. v2 := make([]int64, len(v))
  13204. var i uint
  13205. for k := range v {
  13206. v2[i] = int64(k)
  13207. i++
  13208. }
  13209. sort.Sort(intSlice(v2))
  13210. if esep {
  13211. for _, k2 := range v2 {
  13212. ee.WriteMapElemKey()
  13213. ee.EncodeInt(int64(int64(k2)))
  13214. ee.WriteMapElemValue()
  13215. ee.EncodeUint(uint64(v[int64(k2)]))
  13216. }
  13217. } else {
  13218. for _, k2 := range v2 {
  13219. ee.EncodeInt(int64(int64(k2)))
  13220. ee.EncodeUint(uint64(v[int64(k2)]))
  13221. }
  13222. }
  13223. } else {
  13224. if esep {
  13225. for k2, v2 := range v {
  13226. ee.WriteMapElemKey()
  13227. ee.EncodeInt(int64(k2))
  13228. ee.WriteMapElemValue()
  13229. ee.EncodeUint(uint64(v2))
  13230. }
  13231. } else {
  13232. for k2, v2 := range v {
  13233. ee.EncodeInt(int64(k2))
  13234. ee.EncodeUint(uint64(v2))
  13235. }
  13236. }
  13237. }
  13238. ee.WriteMapEnd()
  13239. }
  13240. func (e *Encoder) fastpathEncMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  13241. fastpathTV.EncMapInt64Uint8V(rv2i(rv).(map[int64]uint8), e)
  13242. }
  13243. func (_ fastpathT) EncMapInt64Uint8V(v map[int64]uint8, e *Encoder) {
  13244. if v == nil {
  13245. e.e.EncodeNil()
  13246. return
  13247. }
  13248. ee, esep := e.e, e.hh.hasElemSeparators()
  13249. ee.WriteMapStart(len(v))
  13250. if e.h.Canonical {
  13251. v2 := make([]int64, len(v))
  13252. var i uint
  13253. for k := range v {
  13254. v2[i] = int64(k)
  13255. i++
  13256. }
  13257. sort.Sort(intSlice(v2))
  13258. if esep {
  13259. for _, k2 := range v2 {
  13260. ee.WriteMapElemKey()
  13261. ee.EncodeInt(int64(int64(k2)))
  13262. ee.WriteMapElemValue()
  13263. ee.EncodeUint(uint64(v[int64(k2)]))
  13264. }
  13265. } else {
  13266. for _, k2 := range v2 {
  13267. ee.EncodeInt(int64(int64(k2)))
  13268. ee.EncodeUint(uint64(v[int64(k2)]))
  13269. }
  13270. }
  13271. } else {
  13272. if esep {
  13273. for k2, v2 := range v {
  13274. ee.WriteMapElemKey()
  13275. ee.EncodeInt(int64(k2))
  13276. ee.WriteMapElemValue()
  13277. ee.EncodeUint(uint64(v2))
  13278. }
  13279. } else {
  13280. for k2, v2 := range v {
  13281. ee.EncodeInt(int64(k2))
  13282. ee.EncodeUint(uint64(v2))
  13283. }
  13284. }
  13285. }
  13286. ee.WriteMapEnd()
  13287. }
  13288. func (e *Encoder) fastpathEncMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  13289. fastpathTV.EncMapInt64Uint16V(rv2i(rv).(map[int64]uint16), e)
  13290. }
  13291. func (_ fastpathT) EncMapInt64Uint16V(v map[int64]uint16, e *Encoder) {
  13292. if v == nil {
  13293. e.e.EncodeNil()
  13294. return
  13295. }
  13296. ee, esep := e.e, e.hh.hasElemSeparators()
  13297. ee.WriteMapStart(len(v))
  13298. if e.h.Canonical {
  13299. v2 := make([]int64, len(v))
  13300. var i uint
  13301. for k := range v {
  13302. v2[i] = int64(k)
  13303. i++
  13304. }
  13305. sort.Sort(intSlice(v2))
  13306. if esep {
  13307. for _, k2 := range v2 {
  13308. ee.WriteMapElemKey()
  13309. ee.EncodeInt(int64(int64(k2)))
  13310. ee.WriteMapElemValue()
  13311. ee.EncodeUint(uint64(v[int64(k2)]))
  13312. }
  13313. } else {
  13314. for _, k2 := range v2 {
  13315. ee.EncodeInt(int64(int64(k2)))
  13316. ee.EncodeUint(uint64(v[int64(k2)]))
  13317. }
  13318. }
  13319. } else {
  13320. if esep {
  13321. for k2, v2 := range v {
  13322. ee.WriteMapElemKey()
  13323. ee.EncodeInt(int64(k2))
  13324. ee.WriteMapElemValue()
  13325. ee.EncodeUint(uint64(v2))
  13326. }
  13327. } else {
  13328. for k2, v2 := range v {
  13329. ee.EncodeInt(int64(k2))
  13330. ee.EncodeUint(uint64(v2))
  13331. }
  13332. }
  13333. }
  13334. ee.WriteMapEnd()
  13335. }
  13336. func (e *Encoder) fastpathEncMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  13337. fastpathTV.EncMapInt64Uint32V(rv2i(rv).(map[int64]uint32), e)
  13338. }
  13339. func (_ fastpathT) EncMapInt64Uint32V(v map[int64]uint32, e *Encoder) {
  13340. if v == nil {
  13341. e.e.EncodeNil()
  13342. return
  13343. }
  13344. ee, esep := e.e, e.hh.hasElemSeparators()
  13345. ee.WriteMapStart(len(v))
  13346. if e.h.Canonical {
  13347. v2 := make([]int64, len(v))
  13348. var i uint
  13349. for k := range v {
  13350. v2[i] = int64(k)
  13351. i++
  13352. }
  13353. sort.Sort(intSlice(v2))
  13354. if esep {
  13355. for _, k2 := range v2 {
  13356. ee.WriteMapElemKey()
  13357. ee.EncodeInt(int64(int64(k2)))
  13358. ee.WriteMapElemValue()
  13359. ee.EncodeUint(uint64(v[int64(k2)]))
  13360. }
  13361. } else {
  13362. for _, k2 := range v2 {
  13363. ee.EncodeInt(int64(int64(k2)))
  13364. ee.EncodeUint(uint64(v[int64(k2)]))
  13365. }
  13366. }
  13367. } else {
  13368. if esep {
  13369. for k2, v2 := range v {
  13370. ee.WriteMapElemKey()
  13371. ee.EncodeInt(int64(k2))
  13372. ee.WriteMapElemValue()
  13373. ee.EncodeUint(uint64(v2))
  13374. }
  13375. } else {
  13376. for k2, v2 := range v {
  13377. ee.EncodeInt(int64(k2))
  13378. ee.EncodeUint(uint64(v2))
  13379. }
  13380. }
  13381. }
  13382. ee.WriteMapEnd()
  13383. }
  13384. func (e *Encoder) fastpathEncMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  13385. fastpathTV.EncMapInt64Uint64V(rv2i(rv).(map[int64]uint64), e)
  13386. }
  13387. func (_ fastpathT) EncMapInt64Uint64V(v map[int64]uint64, e *Encoder) {
  13388. if v == nil {
  13389. e.e.EncodeNil()
  13390. return
  13391. }
  13392. ee, esep := e.e, e.hh.hasElemSeparators()
  13393. ee.WriteMapStart(len(v))
  13394. if e.h.Canonical {
  13395. v2 := make([]int64, len(v))
  13396. var i uint
  13397. for k := range v {
  13398. v2[i] = int64(k)
  13399. i++
  13400. }
  13401. sort.Sort(intSlice(v2))
  13402. if esep {
  13403. for _, k2 := range v2 {
  13404. ee.WriteMapElemKey()
  13405. ee.EncodeInt(int64(int64(k2)))
  13406. ee.WriteMapElemValue()
  13407. ee.EncodeUint(uint64(v[int64(k2)]))
  13408. }
  13409. } else {
  13410. for _, k2 := range v2 {
  13411. ee.EncodeInt(int64(int64(k2)))
  13412. ee.EncodeUint(uint64(v[int64(k2)]))
  13413. }
  13414. }
  13415. } else {
  13416. if esep {
  13417. for k2, v2 := range v {
  13418. ee.WriteMapElemKey()
  13419. ee.EncodeInt(int64(k2))
  13420. ee.WriteMapElemValue()
  13421. ee.EncodeUint(uint64(v2))
  13422. }
  13423. } else {
  13424. for k2, v2 := range v {
  13425. ee.EncodeInt(int64(k2))
  13426. ee.EncodeUint(uint64(v2))
  13427. }
  13428. }
  13429. }
  13430. ee.WriteMapEnd()
  13431. }
  13432. func (e *Encoder) fastpathEncMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  13433. fastpathTV.EncMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), e)
  13434. }
  13435. func (_ fastpathT) EncMapInt64UintptrV(v map[int64]uintptr, e *Encoder) {
  13436. if v == nil {
  13437. e.e.EncodeNil()
  13438. return
  13439. }
  13440. ee, esep := e.e, e.hh.hasElemSeparators()
  13441. ee.WriteMapStart(len(v))
  13442. if e.h.Canonical {
  13443. v2 := make([]int64, len(v))
  13444. var i uint
  13445. for k := range v {
  13446. v2[i] = int64(k)
  13447. i++
  13448. }
  13449. sort.Sort(intSlice(v2))
  13450. if esep {
  13451. for _, k2 := range v2 {
  13452. ee.WriteMapElemKey()
  13453. ee.EncodeInt(int64(int64(k2)))
  13454. ee.WriteMapElemValue()
  13455. e.encode(v[int64(k2)])
  13456. }
  13457. } else {
  13458. for _, k2 := range v2 {
  13459. ee.EncodeInt(int64(int64(k2)))
  13460. e.encode(v[int64(k2)])
  13461. }
  13462. }
  13463. } else {
  13464. if esep {
  13465. for k2, v2 := range v {
  13466. ee.WriteMapElemKey()
  13467. ee.EncodeInt(int64(k2))
  13468. ee.WriteMapElemValue()
  13469. e.encode(v2)
  13470. }
  13471. } else {
  13472. for k2, v2 := range v {
  13473. ee.EncodeInt(int64(k2))
  13474. e.encode(v2)
  13475. }
  13476. }
  13477. }
  13478. ee.WriteMapEnd()
  13479. }
  13480. func (e *Encoder) fastpathEncMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  13481. fastpathTV.EncMapInt64IntV(rv2i(rv).(map[int64]int), e)
  13482. }
  13483. func (_ fastpathT) EncMapInt64IntV(v map[int64]int, e *Encoder) {
  13484. if v == nil {
  13485. e.e.EncodeNil()
  13486. return
  13487. }
  13488. ee, esep := e.e, e.hh.hasElemSeparators()
  13489. ee.WriteMapStart(len(v))
  13490. if e.h.Canonical {
  13491. v2 := make([]int64, len(v))
  13492. var i uint
  13493. for k := range v {
  13494. v2[i] = int64(k)
  13495. i++
  13496. }
  13497. sort.Sort(intSlice(v2))
  13498. if esep {
  13499. for _, k2 := range v2 {
  13500. ee.WriteMapElemKey()
  13501. ee.EncodeInt(int64(int64(k2)))
  13502. ee.WriteMapElemValue()
  13503. ee.EncodeInt(int64(v[int64(k2)]))
  13504. }
  13505. } else {
  13506. for _, k2 := range v2 {
  13507. ee.EncodeInt(int64(int64(k2)))
  13508. ee.EncodeInt(int64(v[int64(k2)]))
  13509. }
  13510. }
  13511. } else {
  13512. if esep {
  13513. for k2, v2 := range v {
  13514. ee.WriteMapElemKey()
  13515. ee.EncodeInt(int64(k2))
  13516. ee.WriteMapElemValue()
  13517. ee.EncodeInt(int64(v2))
  13518. }
  13519. } else {
  13520. for k2, v2 := range v {
  13521. ee.EncodeInt(int64(k2))
  13522. ee.EncodeInt(int64(v2))
  13523. }
  13524. }
  13525. }
  13526. ee.WriteMapEnd()
  13527. }
  13528. func (e *Encoder) fastpathEncMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  13529. fastpathTV.EncMapInt64Int8V(rv2i(rv).(map[int64]int8), e)
  13530. }
  13531. func (_ fastpathT) EncMapInt64Int8V(v map[int64]int8, e *Encoder) {
  13532. if v == nil {
  13533. e.e.EncodeNil()
  13534. return
  13535. }
  13536. ee, esep := e.e, e.hh.hasElemSeparators()
  13537. ee.WriteMapStart(len(v))
  13538. if e.h.Canonical {
  13539. v2 := make([]int64, len(v))
  13540. var i uint
  13541. for k := range v {
  13542. v2[i] = int64(k)
  13543. i++
  13544. }
  13545. sort.Sort(intSlice(v2))
  13546. if esep {
  13547. for _, k2 := range v2 {
  13548. ee.WriteMapElemKey()
  13549. ee.EncodeInt(int64(int64(k2)))
  13550. ee.WriteMapElemValue()
  13551. ee.EncodeInt(int64(v[int64(k2)]))
  13552. }
  13553. } else {
  13554. for _, k2 := range v2 {
  13555. ee.EncodeInt(int64(int64(k2)))
  13556. ee.EncodeInt(int64(v[int64(k2)]))
  13557. }
  13558. }
  13559. } else {
  13560. if esep {
  13561. for k2, v2 := range v {
  13562. ee.WriteMapElemKey()
  13563. ee.EncodeInt(int64(k2))
  13564. ee.WriteMapElemValue()
  13565. ee.EncodeInt(int64(v2))
  13566. }
  13567. } else {
  13568. for k2, v2 := range v {
  13569. ee.EncodeInt(int64(k2))
  13570. ee.EncodeInt(int64(v2))
  13571. }
  13572. }
  13573. }
  13574. ee.WriteMapEnd()
  13575. }
  13576. func (e *Encoder) fastpathEncMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  13577. fastpathTV.EncMapInt64Int16V(rv2i(rv).(map[int64]int16), e)
  13578. }
  13579. func (_ fastpathT) EncMapInt64Int16V(v map[int64]int16, e *Encoder) {
  13580. if v == nil {
  13581. e.e.EncodeNil()
  13582. return
  13583. }
  13584. ee, esep := e.e, e.hh.hasElemSeparators()
  13585. ee.WriteMapStart(len(v))
  13586. if e.h.Canonical {
  13587. v2 := make([]int64, len(v))
  13588. var i uint
  13589. for k := range v {
  13590. v2[i] = int64(k)
  13591. i++
  13592. }
  13593. sort.Sort(intSlice(v2))
  13594. if esep {
  13595. for _, k2 := range v2 {
  13596. ee.WriteMapElemKey()
  13597. ee.EncodeInt(int64(int64(k2)))
  13598. ee.WriteMapElemValue()
  13599. ee.EncodeInt(int64(v[int64(k2)]))
  13600. }
  13601. } else {
  13602. for _, k2 := range v2 {
  13603. ee.EncodeInt(int64(int64(k2)))
  13604. ee.EncodeInt(int64(v[int64(k2)]))
  13605. }
  13606. }
  13607. } else {
  13608. if esep {
  13609. for k2, v2 := range v {
  13610. ee.WriteMapElemKey()
  13611. ee.EncodeInt(int64(k2))
  13612. ee.WriteMapElemValue()
  13613. ee.EncodeInt(int64(v2))
  13614. }
  13615. } else {
  13616. for k2, v2 := range v {
  13617. ee.EncodeInt(int64(k2))
  13618. ee.EncodeInt(int64(v2))
  13619. }
  13620. }
  13621. }
  13622. ee.WriteMapEnd()
  13623. }
  13624. func (e *Encoder) fastpathEncMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  13625. fastpathTV.EncMapInt64Int32V(rv2i(rv).(map[int64]int32), e)
  13626. }
  13627. func (_ fastpathT) EncMapInt64Int32V(v map[int64]int32, e *Encoder) {
  13628. if v == nil {
  13629. e.e.EncodeNil()
  13630. return
  13631. }
  13632. ee, esep := e.e, e.hh.hasElemSeparators()
  13633. ee.WriteMapStart(len(v))
  13634. if e.h.Canonical {
  13635. v2 := make([]int64, len(v))
  13636. var i uint
  13637. for k := range v {
  13638. v2[i] = int64(k)
  13639. i++
  13640. }
  13641. sort.Sort(intSlice(v2))
  13642. if esep {
  13643. for _, k2 := range v2 {
  13644. ee.WriteMapElemKey()
  13645. ee.EncodeInt(int64(int64(k2)))
  13646. ee.WriteMapElemValue()
  13647. ee.EncodeInt(int64(v[int64(k2)]))
  13648. }
  13649. } else {
  13650. for _, k2 := range v2 {
  13651. ee.EncodeInt(int64(int64(k2)))
  13652. ee.EncodeInt(int64(v[int64(k2)]))
  13653. }
  13654. }
  13655. } else {
  13656. if esep {
  13657. for k2, v2 := range v {
  13658. ee.WriteMapElemKey()
  13659. ee.EncodeInt(int64(k2))
  13660. ee.WriteMapElemValue()
  13661. ee.EncodeInt(int64(v2))
  13662. }
  13663. } else {
  13664. for k2, v2 := range v {
  13665. ee.EncodeInt(int64(k2))
  13666. ee.EncodeInt(int64(v2))
  13667. }
  13668. }
  13669. }
  13670. ee.WriteMapEnd()
  13671. }
  13672. func (e *Encoder) fastpathEncMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  13673. fastpathTV.EncMapInt64Int64V(rv2i(rv).(map[int64]int64), e)
  13674. }
  13675. func (_ fastpathT) EncMapInt64Int64V(v map[int64]int64, e *Encoder) {
  13676. if v == nil {
  13677. e.e.EncodeNil()
  13678. return
  13679. }
  13680. ee, esep := e.e, e.hh.hasElemSeparators()
  13681. ee.WriteMapStart(len(v))
  13682. if e.h.Canonical {
  13683. v2 := make([]int64, len(v))
  13684. var i uint
  13685. for k := range v {
  13686. v2[i] = int64(k)
  13687. i++
  13688. }
  13689. sort.Sort(intSlice(v2))
  13690. if esep {
  13691. for _, k2 := range v2 {
  13692. ee.WriteMapElemKey()
  13693. ee.EncodeInt(int64(int64(k2)))
  13694. ee.WriteMapElemValue()
  13695. ee.EncodeInt(int64(v[int64(k2)]))
  13696. }
  13697. } else {
  13698. for _, k2 := range v2 {
  13699. ee.EncodeInt(int64(int64(k2)))
  13700. ee.EncodeInt(int64(v[int64(k2)]))
  13701. }
  13702. }
  13703. } else {
  13704. if esep {
  13705. for k2, v2 := range v {
  13706. ee.WriteMapElemKey()
  13707. ee.EncodeInt(int64(k2))
  13708. ee.WriteMapElemValue()
  13709. ee.EncodeInt(int64(v2))
  13710. }
  13711. } else {
  13712. for k2, v2 := range v {
  13713. ee.EncodeInt(int64(k2))
  13714. ee.EncodeInt(int64(v2))
  13715. }
  13716. }
  13717. }
  13718. ee.WriteMapEnd()
  13719. }
  13720. func (e *Encoder) fastpathEncMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  13721. fastpathTV.EncMapInt64Float32V(rv2i(rv).(map[int64]float32), e)
  13722. }
  13723. func (_ fastpathT) EncMapInt64Float32V(v map[int64]float32, e *Encoder) {
  13724. if v == nil {
  13725. e.e.EncodeNil()
  13726. return
  13727. }
  13728. ee, esep := e.e, e.hh.hasElemSeparators()
  13729. ee.WriteMapStart(len(v))
  13730. if e.h.Canonical {
  13731. v2 := make([]int64, len(v))
  13732. var i uint
  13733. for k := range v {
  13734. v2[i] = int64(k)
  13735. i++
  13736. }
  13737. sort.Sort(intSlice(v2))
  13738. if esep {
  13739. for _, k2 := range v2 {
  13740. ee.WriteMapElemKey()
  13741. ee.EncodeInt(int64(int64(k2)))
  13742. ee.WriteMapElemValue()
  13743. ee.EncodeFloat32(v[int64(k2)])
  13744. }
  13745. } else {
  13746. for _, k2 := range v2 {
  13747. ee.EncodeInt(int64(int64(k2)))
  13748. ee.EncodeFloat32(v[int64(k2)])
  13749. }
  13750. }
  13751. } else {
  13752. if esep {
  13753. for k2, v2 := range v {
  13754. ee.WriteMapElemKey()
  13755. ee.EncodeInt(int64(k2))
  13756. ee.WriteMapElemValue()
  13757. ee.EncodeFloat32(v2)
  13758. }
  13759. } else {
  13760. for k2, v2 := range v {
  13761. ee.EncodeInt(int64(k2))
  13762. ee.EncodeFloat32(v2)
  13763. }
  13764. }
  13765. }
  13766. ee.WriteMapEnd()
  13767. }
  13768. func (e *Encoder) fastpathEncMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  13769. fastpathTV.EncMapInt64Float64V(rv2i(rv).(map[int64]float64), e)
  13770. }
  13771. func (_ fastpathT) EncMapInt64Float64V(v map[int64]float64, e *Encoder) {
  13772. if v == nil {
  13773. e.e.EncodeNil()
  13774. return
  13775. }
  13776. ee, esep := e.e, e.hh.hasElemSeparators()
  13777. ee.WriteMapStart(len(v))
  13778. if e.h.Canonical {
  13779. v2 := make([]int64, len(v))
  13780. var i uint
  13781. for k := range v {
  13782. v2[i] = int64(k)
  13783. i++
  13784. }
  13785. sort.Sort(intSlice(v2))
  13786. if esep {
  13787. for _, k2 := range v2 {
  13788. ee.WriteMapElemKey()
  13789. ee.EncodeInt(int64(int64(k2)))
  13790. ee.WriteMapElemValue()
  13791. ee.EncodeFloat64(v[int64(k2)])
  13792. }
  13793. } else {
  13794. for _, k2 := range v2 {
  13795. ee.EncodeInt(int64(int64(k2)))
  13796. ee.EncodeFloat64(v[int64(k2)])
  13797. }
  13798. }
  13799. } else {
  13800. if esep {
  13801. for k2, v2 := range v {
  13802. ee.WriteMapElemKey()
  13803. ee.EncodeInt(int64(k2))
  13804. ee.WriteMapElemValue()
  13805. ee.EncodeFloat64(v2)
  13806. }
  13807. } else {
  13808. for k2, v2 := range v {
  13809. ee.EncodeInt(int64(k2))
  13810. ee.EncodeFloat64(v2)
  13811. }
  13812. }
  13813. }
  13814. ee.WriteMapEnd()
  13815. }
  13816. func (e *Encoder) fastpathEncMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  13817. fastpathTV.EncMapInt64BoolV(rv2i(rv).(map[int64]bool), e)
  13818. }
  13819. func (_ fastpathT) EncMapInt64BoolV(v map[int64]bool, e *Encoder) {
  13820. if v == nil {
  13821. e.e.EncodeNil()
  13822. return
  13823. }
  13824. ee, esep := e.e, e.hh.hasElemSeparators()
  13825. ee.WriteMapStart(len(v))
  13826. if e.h.Canonical {
  13827. v2 := make([]int64, len(v))
  13828. var i uint
  13829. for k := range v {
  13830. v2[i] = int64(k)
  13831. i++
  13832. }
  13833. sort.Sort(intSlice(v2))
  13834. if esep {
  13835. for _, k2 := range v2 {
  13836. ee.WriteMapElemKey()
  13837. ee.EncodeInt(int64(int64(k2)))
  13838. ee.WriteMapElemValue()
  13839. ee.EncodeBool(v[int64(k2)])
  13840. }
  13841. } else {
  13842. for _, k2 := range v2 {
  13843. ee.EncodeInt(int64(int64(k2)))
  13844. ee.EncodeBool(v[int64(k2)])
  13845. }
  13846. }
  13847. } else {
  13848. if esep {
  13849. for k2, v2 := range v {
  13850. ee.WriteMapElemKey()
  13851. ee.EncodeInt(int64(k2))
  13852. ee.WriteMapElemValue()
  13853. ee.EncodeBool(v2)
  13854. }
  13855. } else {
  13856. for k2, v2 := range v {
  13857. ee.EncodeInt(int64(k2))
  13858. ee.EncodeBool(v2)
  13859. }
  13860. }
  13861. }
  13862. ee.WriteMapEnd()
  13863. }
  13864. func (e *Encoder) fastpathEncMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  13865. fastpathTV.EncMapBoolIntfV(rv2i(rv).(map[bool]interface{}), e)
  13866. }
  13867. func (_ fastpathT) EncMapBoolIntfV(v map[bool]interface{}, e *Encoder) {
  13868. if v == nil {
  13869. e.e.EncodeNil()
  13870. return
  13871. }
  13872. ee, esep := e.e, e.hh.hasElemSeparators()
  13873. ee.WriteMapStart(len(v))
  13874. if e.h.Canonical {
  13875. v2 := make([]bool, len(v))
  13876. var i uint
  13877. for k := range v {
  13878. v2[i] = bool(k)
  13879. i++
  13880. }
  13881. sort.Sort(boolSlice(v2))
  13882. if esep {
  13883. for _, k2 := range v2 {
  13884. ee.WriteMapElemKey()
  13885. ee.EncodeBool(bool(k2))
  13886. ee.WriteMapElemValue()
  13887. e.encode(v[bool(k2)])
  13888. }
  13889. } else {
  13890. for _, k2 := range v2 {
  13891. ee.EncodeBool(bool(k2))
  13892. e.encode(v[bool(k2)])
  13893. }
  13894. }
  13895. } else {
  13896. if esep {
  13897. for k2, v2 := range v {
  13898. ee.WriteMapElemKey()
  13899. ee.EncodeBool(k2)
  13900. ee.WriteMapElemValue()
  13901. e.encode(v2)
  13902. }
  13903. } else {
  13904. for k2, v2 := range v {
  13905. ee.EncodeBool(k2)
  13906. e.encode(v2)
  13907. }
  13908. }
  13909. }
  13910. ee.WriteMapEnd()
  13911. }
  13912. func (e *Encoder) fastpathEncMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  13913. fastpathTV.EncMapBoolStringV(rv2i(rv).(map[bool]string), e)
  13914. }
  13915. func (_ fastpathT) EncMapBoolStringV(v map[bool]string, e *Encoder) {
  13916. if v == nil {
  13917. e.e.EncodeNil()
  13918. return
  13919. }
  13920. ee, esep := e.e, e.hh.hasElemSeparators()
  13921. ee.WriteMapStart(len(v))
  13922. if e.h.Canonical {
  13923. v2 := make([]bool, len(v))
  13924. var i uint
  13925. for k := range v {
  13926. v2[i] = bool(k)
  13927. i++
  13928. }
  13929. sort.Sort(boolSlice(v2))
  13930. if esep {
  13931. for _, k2 := range v2 {
  13932. ee.WriteMapElemKey()
  13933. ee.EncodeBool(bool(k2))
  13934. ee.WriteMapElemValue()
  13935. ee.EncodeStringEnc(cUTF8, v[bool(k2)])
  13936. }
  13937. } else {
  13938. for _, k2 := range v2 {
  13939. ee.EncodeBool(bool(k2))
  13940. ee.EncodeStringEnc(cUTF8, v[bool(k2)])
  13941. }
  13942. }
  13943. } else {
  13944. if esep {
  13945. for k2, v2 := range v {
  13946. ee.WriteMapElemKey()
  13947. ee.EncodeBool(k2)
  13948. ee.WriteMapElemValue()
  13949. ee.EncodeStringEnc(cUTF8, v2)
  13950. }
  13951. } else {
  13952. for k2, v2 := range v {
  13953. ee.EncodeBool(k2)
  13954. ee.EncodeStringEnc(cUTF8, v2)
  13955. }
  13956. }
  13957. }
  13958. ee.WriteMapEnd()
  13959. }
  13960. func (e *Encoder) fastpathEncMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  13961. fastpathTV.EncMapBoolUintV(rv2i(rv).(map[bool]uint), e)
  13962. }
  13963. func (_ fastpathT) EncMapBoolUintV(v map[bool]uint, e *Encoder) {
  13964. if v == nil {
  13965. e.e.EncodeNil()
  13966. return
  13967. }
  13968. ee, esep := e.e, e.hh.hasElemSeparators()
  13969. ee.WriteMapStart(len(v))
  13970. if e.h.Canonical {
  13971. v2 := make([]bool, len(v))
  13972. var i uint
  13973. for k := range v {
  13974. v2[i] = bool(k)
  13975. i++
  13976. }
  13977. sort.Sort(boolSlice(v2))
  13978. if esep {
  13979. for _, k2 := range v2 {
  13980. ee.WriteMapElemKey()
  13981. ee.EncodeBool(bool(k2))
  13982. ee.WriteMapElemValue()
  13983. ee.EncodeUint(uint64(v[bool(k2)]))
  13984. }
  13985. } else {
  13986. for _, k2 := range v2 {
  13987. ee.EncodeBool(bool(k2))
  13988. ee.EncodeUint(uint64(v[bool(k2)]))
  13989. }
  13990. }
  13991. } else {
  13992. if esep {
  13993. for k2, v2 := range v {
  13994. ee.WriteMapElemKey()
  13995. ee.EncodeBool(k2)
  13996. ee.WriteMapElemValue()
  13997. ee.EncodeUint(uint64(v2))
  13998. }
  13999. } else {
  14000. for k2, v2 := range v {
  14001. ee.EncodeBool(k2)
  14002. ee.EncodeUint(uint64(v2))
  14003. }
  14004. }
  14005. }
  14006. ee.WriteMapEnd()
  14007. }
  14008. func (e *Encoder) fastpathEncMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  14009. fastpathTV.EncMapBoolUint8V(rv2i(rv).(map[bool]uint8), e)
  14010. }
  14011. func (_ fastpathT) EncMapBoolUint8V(v map[bool]uint8, e *Encoder) {
  14012. if v == nil {
  14013. e.e.EncodeNil()
  14014. return
  14015. }
  14016. ee, esep := e.e, e.hh.hasElemSeparators()
  14017. ee.WriteMapStart(len(v))
  14018. if e.h.Canonical {
  14019. v2 := make([]bool, len(v))
  14020. var i uint
  14021. for k := range v {
  14022. v2[i] = bool(k)
  14023. i++
  14024. }
  14025. sort.Sort(boolSlice(v2))
  14026. if esep {
  14027. for _, k2 := range v2 {
  14028. ee.WriteMapElemKey()
  14029. ee.EncodeBool(bool(k2))
  14030. ee.WriteMapElemValue()
  14031. ee.EncodeUint(uint64(v[bool(k2)]))
  14032. }
  14033. } else {
  14034. for _, k2 := range v2 {
  14035. ee.EncodeBool(bool(k2))
  14036. ee.EncodeUint(uint64(v[bool(k2)]))
  14037. }
  14038. }
  14039. } else {
  14040. if esep {
  14041. for k2, v2 := range v {
  14042. ee.WriteMapElemKey()
  14043. ee.EncodeBool(k2)
  14044. ee.WriteMapElemValue()
  14045. ee.EncodeUint(uint64(v2))
  14046. }
  14047. } else {
  14048. for k2, v2 := range v {
  14049. ee.EncodeBool(k2)
  14050. ee.EncodeUint(uint64(v2))
  14051. }
  14052. }
  14053. }
  14054. ee.WriteMapEnd()
  14055. }
  14056. func (e *Encoder) fastpathEncMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  14057. fastpathTV.EncMapBoolUint16V(rv2i(rv).(map[bool]uint16), e)
  14058. }
  14059. func (_ fastpathT) EncMapBoolUint16V(v map[bool]uint16, e *Encoder) {
  14060. if v == nil {
  14061. e.e.EncodeNil()
  14062. return
  14063. }
  14064. ee, esep := e.e, e.hh.hasElemSeparators()
  14065. ee.WriteMapStart(len(v))
  14066. if e.h.Canonical {
  14067. v2 := make([]bool, len(v))
  14068. var i uint
  14069. for k := range v {
  14070. v2[i] = bool(k)
  14071. i++
  14072. }
  14073. sort.Sort(boolSlice(v2))
  14074. if esep {
  14075. for _, k2 := range v2 {
  14076. ee.WriteMapElemKey()
  14077. ee.EncodeBool(bool(k2))
  14078. ee.WriteMapElemValue()
  14079. ee.EncodeUint(uint64(v[bool(k2)]))
  14080. }
  14081. } else {
  14082. for _, k2 := range v2 {
  14083. ee.EncodeBool(bool(k2))
  14084. ee.EncodeUint(uint64(v[bool(k2)]))
  14085. }
  14086. }
  14087. } else {
  14088. if esep {
  14089. for k2, v2 := range v {
  14090. ee.WriteMapElemKey()
  14091. ee.EncodeBool(k2)
  14092. ee.WriteMapElemValue()
  14093. ee.EncodeUint(uint64(v2))
  14094. }
  14095. } else {
  14096. for k2, v2 := range v {
  14097. ee.EncodeBool(k2)
  14098. ee.EncodeUint(uint64(v2))
  14099. }
  14100. }
  14101. }
  14102. ee.WriteMapEnd()
  14103. }
  14104. func (e *Encoder) fastpathEncMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  14105. fastpathTV.EncMapBoolUint32V(rv2i(rv).(map[bool]uint32), e)
  14106. }
  14107. func (_ fastpathT) EncMapBoolUint32V(v map[bool]uint32, e *Encoder) {
  14108. if v == nil {
  14109. e.e.EncodeNil()
  14110. return
  14111. }
  14112. ee, esep := e.e, e.hh.hasElemSeparators()
  14113. ee.WriteMapStart(len(v))
  14114. if e.h.Canonical {
  14115. v2 := make([]bool, len(v))
  14116. var i uint
  14117. for k := range v {
  14118. v2[i] = bool(k)
  14119. i++
  14120. }
  14121. sort.Sort(boolSlice(v2))
  14122. if esep {
  14123. for _, k2 := range v2 {
  14124. ee.WriteMapElemKey()
  14125. ee.EncodeBool(bool(k2))
  14126. ee.WriteMapElemValue()
  14127. ee.EncodeUint(uint64(v[bool(k2)]))
  14128. }
  14129. } else {
  14130. for _, k2 := range v2 {
  14131. ee.EncodeBool(bool(k2))
  14132. ee.EncodeUint(uint64(v[bool(k2)]))
  14133. }
  14134. }
  14135. } else {
  14136. if esep {
  14137. for k2, v2 := range v {
  14138. ee.WriteMapElemKey()
  14139. ee.EncodeBool(k2)
  14140. ee.WriteMapElemValue()
  14141. ee.EncodeUint(uint64(v2))
  14142. }
  14143. } else {
  14144. for k2, v2 := range v {
  14145. ee.EncodeBool(k2)
  14146. ee.EncodeUint(uint64(v2))
  14147. }
  14148. }
  14149. }
  14150. ee.WriteMapEnd()
  14151. }
  14152. func (e *Encoder) fastpathEncMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  14153. fastpathTV.EncMapBoolUint64V(rv2i(rv).(map[bool]uint64), e)
  14154. }
  14155. func (_ fastpathT) EncMapBoolUint64V(v map[bool]uint64, e *Encoder) {
  14156. if v == nil {
  14157. e.e.EncodeNil()
  14158. return
  14159. }
  14160. ee, esep := e.e, e.hh.hasElemSeparators()
  14161. ee.WriteMapStart(len(v))
  14162. if e.h.Canonical {
  14163. v2 := make([]bool, len(v))
  14164. var i uint
  14165. for k := range v {
  14166. v2[i] = bool(k)
  14167. i++
  14168. }
  14169. sort.Sort(boolSlice(v2))
  14170. if esep {
  14171. for _, k2 := range v2 {
  14172. ee.WriteMapElemKey()
  14173. ee.EncodeBool(bool(k2))
  14174. ee.WriteMapElemValue()
  14175. ee.EncodeUint(uint64(v[bool(k2)]))
  14176. }
  14177. } else {
  14178. for _, k2 := range v2 {
  14179. ee.EncodeBool(bool(k2))
  14180. ee.EncodeUint(uint64(v[bool(k2)]))
  14181. }
  14182. }
  14183. } else {
  14184. if esep {
  14185. for k2, v2 := range v {
  14186. ee.WriteMapElemKey()
  14187. ee.EncodeBool(k2)
  14188. ee.WriteMapElemValue()
  14189. ee.EncodeUint(uint64(v2))
  14190. }
  14191. } else {
  14192. for k2, v2 := range v {
  14193. ee.EncodeBool(k2)
  14194. ee.EncodeUint(uint64(v2))
  14195. }
  14196. }
  14197. }
  14198. ee.WriteMapEnd()
  14199. }
  14200. func (e *Encoder) fastpathEncMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  14201. fastpathTV.EncMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), e)
  14202. }
  14203. func (_ fastpathT) EncMapBoolUintptrV(v map[bool]uintptr, e *Encoder) {
  14204. if v == nil {
  14205. e.e.EncodeNil()
  14206. return
  14207. }
  14208. ee, esep := e.e, e.hh.hasElemSeparators()
  14209. ee.WriteMapStart(len(v))
  14210. if e.h.Canonical {
  14211. v2 := make([]bool, len(v))
  14212. var i uint
  14213. for k := range v {
  14214. v2[i] = bool(k)
  14215. i++
  14216. }
  14217. sort.Sort(boolSlice(v2))
  14218. if esep {
  14219. for _, k2 := range v2 {
  14220. ee.WriteMapElemKey()
  14221. ee.EncodeBool(bool(k2))
  14222. ee.WriteMapElemValue()
  14223. e.encode(v[bool(k2)])
  14224. }
  14225. } else {
  14226. for _, k2 := range v2 {
  14227. ee.EncodeBool(bool(k2))
  14228. e.encode(v[bool(k2)])
  14229. }
  14230. }
  14231. } else {
  14232. if esep {
  14233. for k2, v2 := range v {
  14234. ee.WriteMapElemKey()
  14235. ee.EncodeBool(k2)
  14236. ee.WriteMapElemValue()
  14237. e.encode(v2)
  14238. }
  14239. } else {
  14240. for k2, v2 := range v {
  14241. ee.EncodeBool(k2)
  14242. e.encode(v2)
  14243. }
  14244. }
  14245. }
  14246. ee.WriteMapEnd()
  14247. }
  14248. func (e *Encoder) fastpathEncMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  14249. fastpathTV.EncMapBoolIntV(rv2i(rv).(map[bool]int), e)
  14250. }
  14251. func (_ fastpathT) EncMapBoolIntV(v map[bool]int, e *Encoder) {
  14252. if v == nil {
  14253. e.e.EncodeNil()
  14254. return
  14255. }
  14256. ee, esep := e.e, e.hh.hasElemSeparators()
  14257. ee.WriteMapStart(len(v))
  14258. if e.h.Canonical {
  14259. v2 := make([]bool, len(v))
  14260. var i uint
  14261. for k := range v {
  14262. v2[i] = bool(k)
  14263. i++
  14264. }
  14265. sort.Sort(boolSlice(v2))
  14266. if esep {
  14267. for _, k2 := range v2 {
  14268. ee.WriteMapElemKey()
  14269. ee.EncodeBool(bool(k2))
  14270. ee.WriteMapElemValue()
  14271. ee.EncodeInt(int64(v[bool(k2)]))
  14272. }
  14273. } else {
  14274. for _, k2 := range v2 {
  14275. ee.EncodeBool(bool(k2))
  14276. ee.EncodeInt(int64(v[bool(k2)]))
  14277. }
  14278. }
  14279. } else {
  14280. if esep {
  14281. for k2, v2 := range v {
  14282. ee.WriteMapElemKey()
  14283. ee.EncodeBool(k2)
  14284. ee.WriteMapElemValue()
  14285. ee.EncodeInt(int64(v2))
  14286. }
  14287. } else {
  14288. for k2, v2 := range v {
  14289. ee.EncodeBool(k2)
  14290. ee.EncodeInt(int64(v2))
  14291. }
  14292. }
  14293. }
  14294. ee.WriteMapEnd()
  14295. }
  14296. func (e *Encoder) fastpathEncMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  14297. fastpathTV.EncMapBoolInt8V(rv2i(rv).(map[bool]int8), e)
  14298. }
  14299. func (_ fastpathT) EncMapBoolInt8V(v map[bool]int8, e *Encoder) {
  14300. if v == nil {
  14301. e.e.EncodeNil()
  14302. return
  14303. }
  14304. ee, esep := e.e, e.hh.hasElemSeparators()
  14305. ee.WriteMapStart(len(v))
  14306. if e.h.Canonical {
  14307. v2 := make([]bool, len(v))
  14308. var i uint
  14309. for k := range v {
  14310. v2[i] = bool(k)
  14311. i++
  14312. }
  14313. sort.Sort(boolSlice(v2))
  14314. if esep {
  14315. for _, k2 := range v2 {
  14316. ee.WriteMapElemKey()
  14317. ee.EncodeBool(bool(k2))
  14318. ee.WriteMapElemValue()
  14319. ee.EncodeInt(int64(v[bool(k2)]))
  14320. }
  14321. } else {
  14322. for _, k2 := range v2 {
  14323. ee.EncodeBool(bool(k2))
  14324. ee.EncodeInt(int64(v[bool(k2)]))
  14325. }
  14326. }
  14327. } else {
  14328. if esep {
  14329. for k2, v2 := range v {
  14330. ee.WriteMapElemKey()
  14331. ee.EncodeBool(k2)
  14332. ee.WriteMapElemValue()
  14333. ee.EncodeInt(int64(v2))
  14334. }
  14335. } else {
  14336. for k2, v2 := range v {
  14337. ee.EncodeBool(k2)
  14338. ee.EncodeInt(int64(v2))
  14339. }
  14340. }
  14341. }
  14342. ee.WriteMapEnd()
  14343. }
  14344. func (e *Encoder) fastpathEncMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  14345. fastpathTV.EncMapBoolInt16V(rv2i(rv).(map[bool]int16), e)
  14346. }
  14347. func (_ fastpathT) EncMapBoolInt16V(v map[bool]int16, e *Encoder) {
  14348. if v == nil {
  14349. e.e.EncodeNil()
  14350. return
  14351. }
  14352. ee, esep := e.e, e.hh.hasElemSeparators()
  14353. ee.WriteMapStart(len(v))
  14354. if e.h.Canonical {
  14355. v2 := make([]bool, len(v))
  14356. var i uint
  14357. for k := range v {
  14358. v2[i] = bool(k)
  14359. i++
  14360. }
  14361. sort.Sort(boolSlice(v2))
  14362. if esep {
  14363. for _, k2 := range v2 {
  14364. ee.WriteMapElemKey()
  14365. ee.EncodeBool(bool(k2))
  14366. ee.WriteMapElemValue()
  14367. ee.EncodeInt(int64(v[bool(k2)]))
  14368. }
  14369. } else {
  14370. for _, k2 := range v2 {
  14371. ee.EncodeBool(bool(k2))
  14372. ee.EncodeInt(int64(v[bool(k2)]))
  14373. }
  14374. }
  14375. } else {
  14376. if esep {
  14377. for k2, v2 := range v {
  14378. ee.WriteMapElemKey()
  14379. ee.EncodeBool(k2)
  14380. ee.WriteMapElemValue()
  14381. ee.EncodeInt(int64(v2))
  14382. }
  14383. } else {
  14384. for k2, v2 := range v {
  14385. ee.EncodeBool(k2)
  14386. ee.EncodeInt(int64(v2))
  14387. }
  14388. }
  14389. }
  14390. ee.WriteMapEnd()
  14391. }
  14392. func (e *Encoder) fastpathEncMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  14393. fastpathTV.EncMapBoolInt32V(rv2i(rv).(map[bool]int32), e)
  14394. }
  14395. func (_ fastpathT) EncMapBoolInt32V(v map[bool]int32, e *Encoder) {
  14396. if v == nil {
  14397. e.e.EncodeNil()
  14398. return
  14399. }
  14400. ee, esep := e.e, e.hh.hasElemSeparators()
  14401. ee.WriteMapStart(len(v))
  14402. if e.h.Canonical {
  14403. v2 := make([]bool, len(v))
  14404. var i uint
  14405. for k := range v {
  14406. v2[i] = bool(k)
  14407. i++
  14408. }
  14409. sort.Sort(boolSlice(v2))
  14410. if esep {
  14411. for _, k2 := range v2 {
  14412. ee.WriteMapElemKey()
  14413. ee.EncodeBool(bool(k2))
  14414. ee.WriteMapElemValue()
  14415. ee.EncodeInt(int64(v[bool(k2)]))
  14416. }
  14417. } else {
  14418. for _, k2 := range v2 {
  14419. ee.EncodeBool(bool(k2))
  14420. ee.EncodeInt(int64(v[bool(k2)]))
  14421. }
  14422. }
  14423. } else {
  14424. if esep {
  14425. for k2, v2 := range v {
  14426. ee.WriteMapElemKey()
  14427. ee.EncodeBool(k2)
  14428. ee.WriteMapElemValue()
  14429. ee.EncodeInt(int64(v2))
  14430. }
  14431. } else {
  14432. for k2, v2 := range v {
  14433. ee.EncodeBool(k2)
  14434. ee.EncodeInt(int64(v2))
  14435. }
  14436. }
  14437. }
  14438. ee.WriteMapEnd()
  14439. }
  14440. func (e *Encoder) fastpathEncMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  14441. fastpathTV.EncMapBoolInt64V(rv2i(rv).(map[bool]int64), e)
  14442. }
  14443. func (_ fastpathT) EncMapBoolInt64V(v map[bool]int64, e *Encoder) {
  14444. if v == nil {
  14445. e.e.EncodeNil()
  14446. return
  14447. }
  14448. ee, esep := e.e, e.hh.hasElemSeparators()
  14449. ee.WriteMapStart(len(v))
  14450. if e.h.Canonical {
  14451. v2 := make([]bool, len(v))
  14452. var i uint
  14453. for k := range v {
  14454. v2[i] = bool(k)
  14455. i++
  14456. }
  14457. sort.Sort(boolSlice(v2))
  14458. if esep {
  14459. for _, k2 := range v2 {
  14460. ee.WriteMapElemKey()
  14461. ee.EncodeBool(bool(k2))
  14462. ee.WriteMapElemValue()
  14463. ee.EncodeInt(int64(v[bool(k2)]))
  14464. }
  14465. } else {
  14466. for _, k2 := range v2 {
  14467. ee.EncodeBool(bool(k2))
  14468. ee.EncodeInt(int64(v[bool(k2)]))
  14469. }
  14470. }
  14471. } else {
  14472. if esep {
  14473. for k2, v2 := range v {
  14474. ee.WriteMapElemKey()
  14475. ee.EncodeBool(k2)
  14476. ee.WriteMapElemValue()
  14477. ee.EncodeInt(int64(v2))
  14478. }
  14479. } else {
  14480. for k2, v2 := range v {
  14481. ee.EncodeBool(k2)
  14482. ee.EncodeInt(int64(v2))
  14483. }
  14484. }
  14485. }
  14486. ee.WriteMapEnd()
  14487. }
  14488. func (e *Encoder) fastpathEncMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  14489. fastpathTV.EncMapBoolFloat32V(rv2i(rv).(map[bool]float32), e)
  14490. }
  14491. func (_ fastpathT) EncMapBoolFloat32V(v map[bool]float32, e *Encoder) {
  14492. if v == nil {
  14493. e.e.EncodeNil()
  14494. return
  14495. }
  14496. ee, esep := e.e, e.hh.hasElemSeparators()
  14497. ee.WriteMapStart(len(v))
  14498. if e.h.Canonical {
  14499. v2 := make([]bool, len(v))
  14500. var i uint
  14501. for k := range v {
  14502. v2[i] = bool(k)
  14503. i++
  14504. }
  14505. sort.Sort(boolSlice(v2))
  14506. if esep {
  14507. for _, k2 := range v2 {
  14508. ee.WriteMapElemKey()
  14509. ee.EncodeBool(bool(k2))
  14510. ee.WriteMapElemValue()
  14511. ee.EncodeFloat32(v[bool(k2)])
  14512. }
  14513. } else {
  14514. for _, k2 := range v2 {
  14515. ee.EncodeBool(bool(k2))
  14516. ee.EncodeFloat32(v[bool(k2)])
  14517. }
  14518. }
  14519. } else {
  14520. if esep {
  14521. for k2, v2 := range v {
  14522. ee.WriteMapElemKey()
  14523. ee.EncodeBool(k2)
  14524. ee.WriteMapElemValue()
  14525. ee.EncodeFloat32(v2)
  14526. }
  14527. } else {
  14528. for k2, v2 := range v {
  14529. ee.EncodeBool(k2)
  14530. ee.EncodeFloat32(v2)
  14531. }
  14532. }
  14533. }
  14534. ee.WriteMapEnd()
  14535. }
  14536. func (e *Encoder) fastpathEncMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  14537. fastpathTV.EncMapBoolFloat64V(rv2i(rv).(map[bool]float64), e)
  14538. }
  14539. func (_ fastpathT) EncMapBoolFloat64V(v map[bool]float64, e *Encoder) {
  14540. if v == nil {
  14541. e.e.EncodeNil()
  14542. return
  14543. }
  14544. ee, esep := e.e, e.hh.hasElemSeparators()
  14545. ee.WriteMapStart(len(v))
  14546. if e.h.Canonical {
  14547. v2 := make([]bool, len(v))
  14548. var i uint
  14549. for k := range v {
  14550. v2[i] = bool(k)
  14551. i++
  14552. }
  14553. sort.Sort(boolSlice(v2))
  14554. if esep {
  14555. for _, k2 := range v2 {
  14556. ee.WriteMapElemKey()
  14557. ee.EncodeBool(bool(k2))
  14558. ee.WriteMapElemValue()
  14559. ee.EncodeFloat64(v[bool(k2)])
  14560. }
  14561. } else {
  14562. for _, k2 := range v2 {
  14563. ee.EncodeBool(bool(k2))
  14564. ee.EncodeFloat64(v[bool(k2)])
  14565. }
  14566. }
  14567. } else {
  14568. if esep {
  14569. for k2, v2 := range v {
  14570. ee.WriteMapElemKey()
  14571. ee.EncodeBool(k2)
  14572. ee.WriteMapElemValue()
  14573. ee.EncodeFloat64(v2)
  14574. }
  14575. } else {
  14576. for k2, v2 := range v {
  14577. ee.EncodeBool(k2)
  14578. ee.EncodeFloat64(v2)
  14579. }
  14580. }
  14581. }
  14582. ee.WriteMapEnd()
  14583. }
  14584. func (e *Encoder) fastpathEncMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  14585. fastpathTV.EncMapBoolBoolV(rv2i(rv).(map[bool]bool), e)
  14586. }
  14587. func (_ fastpathT) EncMapBoolBoolV(v map[bool]bool, e *Encoder) {
  14588. if v == nil {
  14589. e.e.EncodeNil()
  14590. return
  14591. }
  14592. ee, esep := e.e, e.hh.hasElemSeparators()
  14593. ee.WriteMapStart(len(v))
  14594. if e.h.Canonical {
  14595. v2 := make([]bool, len(v))
  14596. var i uint
  14597. for k := range v {
  14598. v2[i] = bool(k)
  14599. i++
  14600. }
  14601. sort.Sort(boolSlice(v2))
  14602. if esep {
  14603. for _, k2 := range v2 {
  14604. ee.WriteMapElemKey()
  14605. ee.EncodeBool(bool(k2))
  14606. ee.WriteMapElemValue()
  14607. ee.EncodeBool(v[bool(k2)])
  14608. }
  14609. } else {
  14610. for _, k2 := range v2 {
  14611. ee.EncodeBool(bool(k2))
  14612. ee.EncodeBool(v[bool(k2)])
  14613. }
  14614. }
  14615. } else {
  14616. if esep {
  14617. for k2, v2 := range v {
  14618. ee.WriteMapElemKey()
  14619. ee.EncodeBool(k2)
  14620. ee.WriteMapElemValue()
  14621. ee.EncodeBool(v2)
  14622. }
  14623. } else {
  14624. for k2, v2 := range v {
  14625. ee.EncodeBool(k2)
  14626. ee.EncodeBool(v2)
  14627. }
  14628. }
  14629. }
  14630. ee.WriteMapEnd()
  14631. }
  14632. // -- decode
  14633. // -- -- fast path type switch
  14634. func fastpathDecodeTypeSwitch(iv interface{}, d *Decoder) bool {
  14635. var changed bool
  14636. switch v := iv.(type) {
  14637. case []interface{}:
  14638. var v2 []interface{}
  14639. v2, changed = fastpathTV.DecSliceIntfV(v, false, d)
  14640. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14641. copy(v, v2)
  14642. }
  14643. case *[]interface{}:
  14644. var v2 []interface{}
  14645. v2, changed = fastpathTV.DecSliceIntfV(*v, true, d)
  14646. if changed {
  14647. *v = v2
  14648. }
  14649. case []string:
  14650. var v2 []string
  14651. v2, changed = fastpathTV.DecSliceStringV(v, false, d)
  14652. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14653. copy(v, v2)
  14654. }
  14655. case *[]string:
  14656. var v2 []string
  14657. v2, changed = fastpathTV.DecSliceStringV(*v, true, d)
  14658. if changed {
  14659. *v = v2
  14660. }
  14661. case []float32:
  14662. var v2 []float32
  14663. v2, changed = fastpathTV.DecSliceFloat32V(v, false, d)
  14664. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14665. copy(v, v2)
  14666. }
  14667. case *[]float32:
  14668. var v2 []float32
  14669. v2, changed = fastpathTV.DecSliceFloat32V(*v, true, d)
  14670. if changed {
  14671. *v = v2
  14672. }
  14673. case []float64:
  14674. var v2 []float64
  14675. v2, changed = fastpathTV.DecSliceFloat64V(v, false, d)
  14676. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14677. copy(v, v2)
  14678. }
  14679. case *[]float64:
  14680. var v2 []float64
  14681. v2, changed = fastpathTV.DecSliceFloat64V(*v, true, d)
  14682. if changed {
  14683. *v = v2
  14684. }
  14685. case []uint:
  14686. var v2 []uint
  14687. v2, changed = fastpathTV.DecSliceUintV(v, false, d)
  14688. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14689. copy(v, v2)
  14690. }
  14691. case *[]uint:
  14692. var v2 []uint
  14693. v2, changed = fastpathTV.DecSliceUintV(*v, true, d)
  14694. if changed {
  14695. *v = v2
  14696. }
  14697. case []uint16:
  14698. var v2 []uint16
  14699. v2, changed = fastpathTV.DecSliceUint16V(v, false, d)
  14700. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14701. copy(v, v2)
  14702. }
  14703. case *[]uint16:
  14704. var v2 []uint16
  14705. v2, changed = fastpathTV.DecSliceUint16V(*v, true, d)
  14706. if changed {
  14707. *v = v2
  14708. }
  14709. case []uint32:
  14710. var v2 []uint32
  14711. v2, changed = fastpathTV.DecSliceUint32V(v, false, d)
  14712. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14713. copy(v, v2)
  14714. }
  14715. case *[]uint32:
  14716. var v2 []uint32
  14717. v2, changed = fastpathTV.DecSliceUint32V(*v, true, d)
  14718. if changed {
  14719. *v = v2
  14720. }
  14721. case []uint64:
  14722. var v2 []uint64
  14723. v2, changed = fastpathTV.DecSliceUint64V(v, false, d)
  14724. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14725. copy(v, v2)
  14726. }
  14727. case *[]uint64:
  14728. var v2 []uint64
  14729. v2, changed = fastpathTV.DecSliceUint64V(*v, true, d)
  14730. if changed {
  14731. *v = v2
  14732. }
  14733. case []uintptr:
  14734. var v2 []uintptr
  14735. v2, changed = fastpathTV.DecSliceUintptrV(v, false, d)
  14736. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14737. copy(v, v2)
  14738. }
  14739. case *[]uintptr:
  14740. var v2 []uintptr
  14741. v2, changed = fastpathTV.DecSliceUintptrV(*v, true, d)
  14742. if changed {
  14743. *v = v2
  14744. }
  14745. case []int:
  14746. var v2 []int
  14747. v2, changed = fastpathTV.DecSliceIntV(v, false, d)
  14748. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14749. copy(v, v2)
  14750. }
  14751. case *[]int:
  14752. var v2 []int
  14753. v2, changed = fastpathTV.DecSliceIntV(*v, true, d)
  14754. if changed {
  14755. *v = v2
  14756. }
  14757. case []int8:
  14758. var v2 []int8
  14759. v2, changed = fastpathTV.DecSliceInt8V(v, false, d)
  14760. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14761. copy(v, v2)
  14762. }
  14763. case *[]int8:
  14764. var v2 []int8
  14765. v2, changed = fastpathTV.DecSliceInt8V(*v, true, d)
  14766. if changed {
  14767. *v = v2
  14768. }
  14769. case []int16:
  14770. var v2 []int16
  14771. v2, changed = fastpathTV.DecSliceInt16V(v, false, d)
  14772. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14773. copy(v, v2)
  14774. }
  14775. case *[]int16:
  14776. var v2 []int16
  14777. v2, changed = fastpathTV.DecSliceInt16V(*v, true, d)
  14778. if changed {
  14779. *v = v2
  14780. }
  14781. case []int32:
  14782. var v2 []int32
  14783. v2, changed = fastpathTV.DecSliceInt32V(v, false, d)
  14784. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14785. copy(v, v2)
  14786. }
  14787. case *[]int32:
  14788. var v2 []int32
  14789. v2, changed = fastpathTV.DecSliceInt32V(*v, true, d)
  14790. if changed {
  14791. *v = v2
  14792. }
  14793. case []int64:
  14794. var v2 []int64
  14795. v2, changed = fastpathTV.DecSliceInt64V(v, false, d)
  14796. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14797. copy(v, v2)
  14798. }
  14799. case *[]int64:
  14800. var v2 []int64
  14801. v2, changed = fastpathTV.DecSliceInt64V(*v, true, d)
  14802. if changed {
  14803. *v = v2
  14804. }
  14805. case []bool:
  14806. var v2 []bool
  14807. v2, changed = fastpathTV.DecSliceBoolV(v, false, d)
  14808. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  14809. copy(v, v2)
  14810. }
  14811. case *[]bool:
  14812. var v2 []bool
  14813. v2, changed = fastpathTV.DecSliceBoolV(*v, true, d)
  14814. if changed {
  14815. *v = v2
  14816. }
  14817. case map[interface{}]interface{}:
  14818. fastpathTV.DecMapIntfIntfV(v, false, d)
  14819. case *map[interface{}]interface{}:
  14820. var v2 map[interface{}]interface{}
  14821. v2, changed = fastpathTV.DecMapIntfIntfV(*v, true, d)
  14822. if changed {
  14823. *v = v2
  14824. }
  14825. case map[interface{}]string:
  14826. fastpathTV.DecMapIntfStringV(v, false, d)
  14827. case *map[interface{}]string:
  14828. var v2 map[interface{}]string
  14829. v2, changed = fastpathTV.DecMapIntfStringV(*v, true, d)
  14830. if changed {
  14831. *v = v2
  14832. }
  14833. case map[interface{}]uint:
  14834. fastpathTV.DecMapIntfUintV(v, false, d)
  14835. case *map[interface{}]uint:
  14836. var v2 map[interface{}]uint
  14837. v2, changed = fastpathTV.DecMapIntfUintV(*v, true, d)
  14838. if changed {
  14839. *v = v2
  14840. }
  14841. case map[interface{}]uint8:
  14842. fastpathTV.DecMapIntfUint8V(v, false, d)
  14843. case *map[interface{}]uint8:
  14844. var v2 map[interface{}]uint8
  14845. v2, changed = fastpathTV.DecMapIntfUint8V(*v, true, d)
  14846. if changed {
  14847. *v = v2
  14848. }
  14849. case map[interface{}]uint16:
  14850. fastpathTV.DecMapIntfUint16V(v, false, d)
  14851. case *map[interface{}]uint16:
  14852. var v2 map[interface{}]uint16
  14853. v2, changed = fastpathTV.DecMapIntfUint16V(*v, true, d)
  14854. if changed {
  14855. *v = v2
  14856. }
  14857. case map[interface{}]uint32:
  14858. fastpathTV.DecMapIntfUint32V(v, false, d)
  14859. case *map[interface{}]uint32:
  14860. var v2 map[interface{}]uint32
  14861. v2, changed = fastpathTV.DecMapIntfUint32V(*v, true, d)
  14862. if changed {
  14863. *v = v2
  14864. }
  14865. case map[interface{}]uint64:
  14866. fastpathTV.DecMapIntfUint64V(v, false, d)
  14867. case *map[interface{}]uint64:
  14868. var v2 map[interface{}]uint64
  14869. v2, changed = fastpathTV.DecMapIntfUint64V(*v, true, d)
  14870. if changed {
  14871. *v = v2
  14872. }
  14873. case map[interface{}]uintptr:
  14874. fastpathTV.DecMapIntfUintptrV(v, false, d)
  14875. case *map[interface{}]uintptr:
  14876. var v2 map[interface{}]uintptr
  14877. v2, changed = fastpathTV.DecMapIntfUintptrV(*v, true, d)
  14878. if changed {
  14879. *v = v2
  14880. }
  14881. case map[interface{}]int:
  14882. fastpathTV.DecMapIntfIntV(v, false, d)
  14883. case *map[interface{}]int:
  14884. var v2 map[interface{}]int
  14885. v2, changed = fastpathTV.DecMapIntfIntV(*v, true, d)
  14886. if changed {
  14887. *v = v2
  14888. }
  14889. case map[interface{}]int8:
  14890. fastpathTV.DecMapIntfInt8V(v, false, d)
  14891. case *map[interface{}]int8:
  14892. var v2 map[interface{}]int8
  14893. v2, changed = fastpathTV.DecMapIntfInt8V(*v, true, d)
  14894. if changed {
  14895. *v = v2
  14896. }
  14897. case map[interface{}]int16:
  14898. fastpathTV.DecMapIntfInt16V(v, false, d)
  14899. case *map[interface{}]int16:
  14900. var v2 map[interface{}]int16
  14901. v2, changed = fastpathTV.DecMapIntfInt16V(*v, true, d)
  14902. if changed {
  14903. *v = v2
  14904. }
  14905. case map[interface{}]int32:
  14906. fastpathTV.DecMapIntfInt32V(v, false, d)
  14907. case *map[interface{}]int32:
  14908. var v2 map[interface{}]int32
  14909. v2, changed = fastpathTV.DecMapIntfInt32V(*v, true, d)
  14910. if changed {
  14911. *v = v2
  14912. }
  14913. case map[interface{}]int64:
  14914. fastpathTV.DecMapIntfInt64V(v, false, d)
  14915. case *map[interface{}]int64:
  14916. var v2 map[interface{}]int64
  14917. v2, changed = fastpathTV.DecMapIntfInt64V(*v, true, d)
  14918. if changed {
  14919. *v = v2
  14920. }
  14921. case map[interface{}]float32:
  14922. fastpathTV.DecMapIntfFloat32V(v, false, d)
  14923. case *map[interface{}]float32:
  14924. var v2 map[interface{}]float32
  14925. v2, changed = fastpathTV.DecMapIntfFloat32V(*v, true, d)
  14926. if changed {
  14927. *v = v2
  14928. }
  14929. case map[interface{}]float64:
  14930. fastpathTV.DecMapIntfFloat64V(v, false, d)
  14931. case *map[interface{}]float64:
  14932. var v2 map[interface{}]float64
  14933. v2, changed = fastpathTV.DecMapIntfFloat64V(*v, true, d)
  14934. if changed {
  14935. *v = v2
  14936. }
  14937. case map[interface{}]bool:
  14938. fastpathTV.DecMapIntfBoolV(v, false, d)
  14939. case *map[interface{}]bool:
  14940. var v2 map[interface{}]bool
  14941. v2, changed = fastpathTV.DecMapIntfBoolV(*v, true, d)
  14942. if changed {
  14943. *v = v2
  14944. }
  14945. case map[string]interface{}:
  14946. fastpathTV.DecMapStringIntfV(v, false, d)
  14947. case *map[string]interface{}:
  14948. var v2 map[string]interface{}
  14949. v2, changed = fastpathTV.DecMapStringIntfV(*v, true, d)
  14950. if changed {
  14951. *v = v2
  14952. }
  14953. case map[string]string:
  14954. fastpathTV.DecMapStringStringV(v, false, d)
  14955. case *map[string]string:
  14956. var v2 map[string]string
  14957. v2, changed = fastpathTV.DecMapStringStringV(*v, true, d)
  14958. if changed {
  14959. *v = v2
  14960. }
  14961. case map[string]uint:
  14962. fastpathTV.DecMapStringUintV(v, false, d)
  14963. case *map[string]uint:
  14964. var v2 map[string]uint
  14965. v2, changed = fastpathTV.DecMapStringUintV(*v, true, d)
  14966. if changed {
  14967. *v = v2
  14968. }
  14969. case map[string]uint8:
  14970. fastpathTV.DecMapStringUint8V(v, false, d)
  14971. case *map[string]uint8:
  14972. var v2 map[string]uint8
  14973. v2, changed = fastpathTV.DecMapStringUint8V(*v, true, d)
  14974. if changed {
  14975. *v = v2
  14976. }
  14977. case map[string]uint16:
  14978. fastpathTV.DecMapStringUint16V(v, false, d)
  14979. case *map[string]uint16:
  14980. var v2 map[string]uint16
  14981. v2, changed = fastpathTV.DecMapStringUint16V(*v, true, d)
  14982. if changed {
  14983. *v = v2
  14984. }
  14985. case map[string]uint32:
  14986. fastpathTV.DecMapStringUint32V(v, false, d)
  14987. case *map[string]uint32:
  14988. var v2 map[string]uint32
  14989. v2, changed = fastpathTV.DecMapStringUint32V(*v, true, d)
  14990. if changed {
  14991. *v = v2
  14992. }
  14993. case map[string]uint64:
  14994. fastpathTV.DecMapStringUint64V(v, false, d)
  14995. case *map[string]uint64:
  14996. var v2 map[string]uint64
  14997. v2, changed = fastpathTV.DecMapStringUint64V(*v, true, d)
  14998. if changed {
  14999. *v = v2
  15000. }
  15001. case map[string]uintptr:
  15002. fastpathTV.DecMapStringUintptrV(v, false, d)
  15003. case *map[string]uintptr:
  15004. var v2 map[string]uintptr
  15005. v2, changed = fastpathTV.DecMapStringUintptrV(*v, true, d)
  15006. if changed {
  15007. *v = v2
  15008. }
  15009. case map[string]int:
  15010. fastpathTV.DecMapStringIntV(v, false, d)
  15011. case *map[string]int:
  15012. var v2 map[string]int
  15013. v2, changed = fastpathTV.DecMapStringIntV(*v, true, d)
  15014. if changed {
  15015. *v = v2
  15016. }
  15017. case map[string]int8:
  15018. fastpathTV.DecMapStringInt8V(v, false, d)
  15019. case *map[string]int8:
  15020. var v2 map[string]int8
  15021. v2, changed = fastpathTV.DecMapStringInt8V(*v, true, d)
  15022. if changed {
  15023. *v = v2
  15024. }
  15025. case map[string]int16:
  15026. fastpathTV.DecMapStringInt16V(v, false, d)
  15027. case *map[string]int16:
  15028. var v2 map[string]int16
  15029. v2, changed = fastpathTV.DecMapStringInt16V(*v, true, d)
  15030. if changed {
  15031. *v = v2
  15032. }
  15033. case map[string]int32:
  15034. fastpathTV.DecMapStringInt32V(v, false, d)
  15035. case *map[string]int32:
  15036. var v2 map[string]int32
  15037. v2, changed = fastpathTV.DecMapStringInt32V(*v, true, d)
  15038. if changed {
  15039. *v = v2
  15040. }
  15041. case map[string]int64:
  15042. fastpathTV.DecMapStringInt64V(v, false, d)
  15043. case *map[string]int64:
  15044. var v2 map[string]int64
  15045. v2, changed = fastpathTV.DecMapStringInt64V(*v, true, d)
  15046. if changed {
  15047. *v = v2
  15048. }
  15049. case map[string]float32:
  15050. fastpathTV.DecMapStringFloat32V(v, false, d)
  15051. case *map[string]float32:
  15052. var v2 map[string]float32
  15053. v2, changed = fastpathTV.DecMapStringFloat32V(*v, true, d)
  15054. if changed {
  15055. *v = v2
  15056. }
  15057. case map[string]float64:
  15058. fastpathTV.DecMapStringFloat64V(v, false, d)
  15059. case *map[string]float64:
  15060. var v2 map[string]float64
  15061. v2, changed = fastpathTV.DecMapStringFloat64V(*v, true, d)
  15062. if changed {
  15063. *v = v2
  15064. }
  15065. case map[string]bool:
  15066. fastpathTV.DecMapStringBoolV(v, false, d)
  15067. case *map[string]bool:
  15068. var v2 map[string]bool
  15069. v2, changed = fastpathTV.DecMapStringBoolV(*v, true, d)
  15070. if changed {
  15071. *v = v2
  15072. }
  15073. case map[float32]interface{}:
  15074. fastpathTV.DecMapFloat32IntfV(v, false, d)
  15075. case *map[float32]interface{}:
  15076. var v2 map[float32]interface{}
  15077. v2, changed = fastpathTV.DecMapFloat32IntfV(*v, true, d)
  15078. if changed {
  15079. *v = v2
  15080. }
  15081. case map[float32]string:
  15082. fastpathTV.DecMapFloat32StringV(v, false, d)
  15083. case *map[float32]string:
  15084. var v2 map[float32]string
  15085. v2, changed = fastpathTV.DecMapFloat32StringV(*v, true, d)
  15086. if changed {
  15087. *v = v2
  15088. }
  15089. case map[float32]uint:
  15090. fastpathTV.DecMapFloat32UintV(v, false, d)
  15091. case *map[float32]uint:
  15092. var v2 map[float32]uint
  15093. v2, changed = fastpathTV.DecMapFloat32UintV(*v, true, d)
  15094. if changed {
  15095. *v = v2
  15096. }
  15097. case map[float32]uint8:
  15098. fastpathTV.DecMapFloat32Uint8V(v, false, d)
  15099. case *map[float32]uint8:
  15100. var v2 map[float32]uint8
  15101. v2, changed = fastpathTV.DecMapFloat32Uint8V(*v, true, d)
  15102. if changed {
  15103. *v = v2
  15104. }
  15105. case map[float32]uint16:
  15106. fastpathTV.DecMapFloat32Uint16V(v, false, d)
  15107. case *map[float32]uint16:
  15108. var v2 map[float32]uint16
  15109. v2, changed = fastpathTV.DecMapFloat32Uint16V(*v, true, d)
  15110. if changed {
  15111. *v = v2
  15112. }
  15113. case map[float32]uint32:
  15114. fastpathTV.DecMapFloat32Uint32V(v, false, d)
  15115. case *map[float32]uint32:
  15116. var v2 map[float32]uint32
  15117. v2, changed = fastpathTV.DecMapFloat32Uint32V(*v, true, d)
  15118. if changed {
  15119. *v = v2
  15120. }
  15121. case map[float32]uint64:
  15122. fastpathTV.DecMapFloat32Uint64V(v, false, d)
  15123. case *map[float32]uint64:
  15124. var v2 map[float32]uint64
  15125. v2, changed = fastpathTV.DecMapFloat32Uint64V(*v, true, d)
  15126. if changed {
  15127. *v = v2
  15128. }
  15129. case map[float32]uintptr:
  15130. fastpathTV.DecMapFloat32UintptrV(v, false, d)
  15131. case *map[float32]uintptr:
  15132. var v2 map[float32]uintptr
  15133. v2, changed = fastpathTV.DecMapFloat32UintptrV(*v, true, d)
  15134. if changed {
  15135. *v = v2
  15136. }
  15137. case map[float32]int:
  15138. fastpathTV.DecMapFloat32IntV(v, false, d)
  15139. case *map[float32]int:
  15140. var v2 map[float32]int
  15141. v2, changed = fastpathTV.DecMapFloat32IntV(*v, true, d)
  15142. if changed {
  15143. *v = v2
  15144. }
  15145. case map[float32]int8:
  15146. fastpathTV.DecMapFloat32Int8V(v, false, d)
  15147. case *map[float32]int8:
  15148. var v2 map[float32]int8
  15149. v2, changed = fastpathTV.DecMapFloat32Int8V(*v, true, d)
  15150. if changed {
  15151. *v = v2
  15152. }
  15153. case map[float32]int16:
  15154. fastpathTV.DecMapFloat32Int16V(v, false, d)
  15155. case *map[float32]int16:
  15156. var v2 map[float32]int16
  15157. v2, changed = fastpathTV.DecMapFloat32Int16V(*v, true, d)
  15158. if changed {
  15159. *v = v2
  15160. }
  15161. case map[float32]int32:
  15162. fastpathTV.DecMapFloat32Int32V(v, false, d)
  15163. case *map[float32]int32:
  15164. var v2 map[float32]int32
  15165. v2, changed = fastpathTV.DecMapFloat32Int32V(*v, true, d)
  15166. if changed {
  15167. *v = v2
  15168. }
  15169. case map[float32]int64:
  15170. fastpathTV.DecMapFloat32Int64V(v, false, d)
  15171. case *map[float32]int64:
  15172. var v2 map[float32]int64
  15173. v2, changed = fastpathTV.DecMapFloat32Int64V(*v, true, d)
  15174. if changed {
  15175. *v = v2
  15176. }
  15177. case map[float32]float32:
  15178. fastpathTV.DecMapFloat32Float32V(v, false, d)
  15179. case *map[float32]float32:
  15180. var v2 map[float32]float32
  15181. v2, changed = fastpathTV.DecMapFloat32Float32V(*v, true, d)
  15182. if changed {
  15183. *v = v2
  15184. }
  15185. case map[float32]float64:
  15186. fastpathTV.DecMapFloat32Float64V(v, false, d)
  15187. case *map[float32]float64:
  15188. var v2 map[float32]float64
  15189. v2, changed = fastpathTV.DecMapFloat32Float64V(*v, true, d)
  15190. if changed {
  15191. *v = v2
  15192. }
  15193. case map[float32]bool:
  15194. fastpathTV.DecMapFloat32BoolV(v, false, d)
  15195. case *map[float32]bool:
  15196. var v2 map[float32]bool
  15197. v2, changed = fastpathTV.DecMapFloat32BoolV(*v, true, d)
  15198. if changed {
  15199. *v = v2
  15200. }
  15201. case map[float64]interface{}:
  15202. fastpathTV.DecMapFloat64IntfV(v, false, d)
  15203. case *map[float64]interface{}:
  15204. var v2 map[float64]interface{}
  15205. v2, changed = fastpathTV.DecMapFloat64IntfV(*v, true, d)
  15206. if changed {
  15207. *v = v2
  15208. }
  15209. case map[float64]string:
  15210. fastpathTV.DecMapFloat64StringV(v, false, d)
  15211. case *map[float64]string:
  15212. var v2 map[float64]string
  15213. v2, changed = fastpathTV.DecMapFloat64StringV(*v, true, d)
  15214. if changed {
  15215. *v = v2
  15216. }
  15217. case map[float64]uint:
  15218. fastpathTV.DecMapFloat64UintV(v, false, d)
  15219. case *map[float64]uint:
  15220. var v2 map[float64]uint
  15221. v2, changed = fastpathTV.DecMapFloat64UintV(*v, true, d)
  15222. if changed {
  15223. *v = v2
  15224. }
  15225. case map[float64]uint8:
  15226. fastpathTV.DecMapFloat64Uint8V(v, false, d)
  15227. case *map[float64]uint8:
  15228. var v2 map[float64]uint8
  15229. v2, changed = fastpathTV.DecMapFloat64Uint8V(*v, true, d)
  15230. if changed {
  15231. *v = v2
  15232. }
  15233. case map[float64]uint16:
  15234. fastpathTV.DecMapFloat64Uint16V(v, false, d)
  15235. case *map[float64]uint16:
  15236. var v2 map[float64]uint16
  15237. v2, changed = fastpathTV.DecMapFloat64Uint16V(*v, true, d)
  15238. if changed {
  15239. *v = v2
  15240. }
  15241. case map[float64]uint32:
  15242. fastpathTV.DecMapFloat64Uint32V(v, false, d)
  15243. case *map[float64]uint32:
  15244. var v2 map[float64]uint32
  15245. v2, changed = fastpathTV.DecMapFloat64Uint32V(*v, true, d)
  15246. if changed {
  15247. *v = v2
  15248. }
  15249. case map[float64]uint64:
  15250. fastpathTV.DecMapFloat64Uint64V(v, false, d)
  15251. case *map[float64]uint64:
  15252. var v2 map[float64]uint64
  15253. v2, changed = fastpathTV.DecMapFloat64Uint64V(*v, true, d)
  15254. if changed {
  15255. *v = v2
  15256. }
  15257. case map[float64]uintptr:
  15258. fastpathTV.DecMapFloat64UintptrV(v, false, d)
  15259. case *map[float64]uintptr:
  15260. var v2 map[float64]uintptr
  15261. v2, changed = fastpathTV.DecMapFloat64UintptrV(*v, true, d)
  15262. if changed {
  15263. *v = v2
  15264. }
  15265. case map[float64]int:
  15266. fastpathTV.DecMapFloat64IntV(v, false, d)
  15267. case *map[float64]int:
  15268. var v2 map[float64]int
  15269. v2, changed = fastpathTV.DecMapFloat64IntV(*v, true, d)
  15270. if changed {
  15271. *v = v2
  15272. }
  15273. case map[float64]int8:
  15274. fastpathTV.DecMapFloat64Int8V(v, false, d)
  15275. case *map[float64]int8:
  15276. var v2 map[float64]int8
  15277. v2, changed = fastpathTV.DecMapFloat64Int8V(*v, true, d)
  15278. if changed {
  15279. *v = v2
  15280. }
  15281. case map[float64]int16:
  15282. fastpathTV.DecMapFloat64Int16V(v, false, d)
  15283. case *map[float64]int16:
  15284. var v2 map[float64]int16
  15285. v2, changed = fastpathTV.DecMapFloat64Int16V(*v, true, d)
  15286. if changed {
  15287. *v = v2
  15288. }
  15289. case map[float64]int32:
  15290. fastpathTV.DecMapFloat64Int32V(v, false, d)
  15291. case *map[float64]int32:
  15292. var v2 map[float64]int32
  15293. v2, changed = fastpathTV.DecMapFloat64Int32V(*v, true, d)
  15294. if changed {
  15295. *v = v2
  15296. }
  15297. case map[float64]int64:
  15298. fastpathTV.DecMapFloat64Int64V(v, false, d)
  15299. case *map[float64]int64:
  15300. var v2 map[float64]int64
  15301. v2, changed = fastpathTV.DecMapFloat64Int64V(*v, true, d)
  15302. if changed {
  15303. *v = v2
  15304. }
  15305. case map[float64]float32:
  15306. fastpathTV.DecMapFloat64Float32V(v, false, d)
  15307. case *map[float64]float32:
  15308. var v2 map[float64]float32
  15309. v2, changed = fastpathTV.DecMapFloat64Float32V(*v, true, d)
  15310. if changed {
  15311. *v = v2
  15312. }
  15313. case map[float64]float64:
  15314. fastpathTV.DecMapFloat64Float64V(v, false, d)
  15315. case *map[float64]float64:
  15316. var v2 map[float64]float64
  15317. v2, changed = fastpathTV.DecMapFloat64Float64V(*v, true, d)
  15318. if changed {
  15319. *v = v2
  15320. }
  15321. case map[float64]bool:
  15322. fastpathTV.DecMapFloat64BoolV(v, false, d)
  15323. case *map[float64]bool:
  15324. var v2 map[float64]bool
  15325. v2, changed = fastpathTV.DecMapFloat64BoolV(*v, true, d)
  15326. if changed {
  15327. *v = v2
  15328. }
  15329. case map[uint]interface{}:
  15330. fastpathTV.DecMapUintIntfV(v, false, d)
  15331. case *map[uint]interface{}:
  15332. var v2 map[uint]interface{}
  15333. v2, changed = fastpathTV.DecMapUintIntfV(*v, true, d)
  15334. if changed {
  15335. *v = v2
  15336. }
  15337. case map[uint]string:
  15338. fastpathTV.DecMapUintStringV(v, false, d)
  15339. case *map[uint]string:
  15340. var v2 map[uint]string
  15341. v2, changed = fastpathTV.DecMapUintStringV(*v, true, d)
  15342. if changed {
  15343. *v = v2
  15344. }
  15345. case map[uint]uint:
  15346. fastpathTV.DecMapUintUintV(v, false, d)
  15347. case *map[uint]uint:
  15348. var v2 map[uint]uint
  15349. v2, changed = fastpathTV.DecMapUintUintV(*v, true, d)
  15350. if changed {
  15351. *v = v2
  15352. }
  15353. case map[uint]uint8:
  15354. fastpathTV.DecMapUintUint8V(v, false, d)
  15355. case *map[uint]uint8:
  15356. var v2 map[uint]uint8
  15357. v2, changed = fastpathTV.DecMapUintUint8V(*v, true, d)
  15358. if changed {
  15359. *v = v2
  15360. }
  15361. case map[uint]uint16:
  15362. fastpathTV.DecMapUintUint16V(v, false, d)
  15363. case *map[uint]uint16:
  15364. var v2 map[uint]uint16
  15365. v2, changed = fastpathTV.DecMapUintUint16V(*v, true, d)
  15366. if changed {
  15367. *v = v2
  15368. }
  15369. case map[uint]uint32:
  15370. fastpathTV.DecMapUintUint32V(v, false, d)
  15371. case *map[uint]uint32:
  15372. var v2 map[uint]uint32
  15373. v2, changed = fastpathTV.DecMapUintUint32V(*v, true, d)
  15374. if changed {
  15375. *v = v2
  15376. }
  15377. case map[uint]uint64:
  15378. fastpathTV.DecMapUintUint64V(v, false, d)
  15379. case *map[uint]uint64:
  15380. var v2 map[uint]uint64
  15381. v2, changed = fastpathTV.DecMapUintUint64V(*v, true, d)
  15382. if changed {
  15383. *v = v2
  15384. }
  15385. case map[uint]uintptr:
  15386. fastpathTV.DecMapUintUintptrV(v, false, d)
  15387. case *map[uint]uintptr:
  15388. var v2 map[uint]uintptr
  15389. v2, changed = fastpathTV.DecMapUintUintptrV(*v, true, d)
  15390. if changed {
  15391. *v = v2
  15392. }
  15393. case map[uint]int:
  15394. fastpathTV.DecMapUintIntV(v, false, d)
  15395. case *map[uint]int:
  15396. var v2 map[uint]int
  15397. v2, changed = fastpathTV.DecMapUintIntV(*v, true, d)
  15398. if changed {
  15399. *v = v2
  15400. }
  15401. case map[uint]int8:
  15402. fastpathTV.DecMapUintInt8V(v, false, d)
  15403. case *map[uint]int8:
  15404. var v2 map[uint]int8
  15405. v2, changed = fastpathTV.DecMapUintInt8V(*v, true, d)
  15406. if changed {
  15407. *v = v2
  15408. }
  15409. case map[uint]int16:
  15410. fastpathTV.DecMapUintInt16V(v, false, d)
  15411. case *map[uint]int16:
  15412. var v2 map[uint]int16
  15413. v2, changed = fastpathTV.DecMapUintInt16V(*v, true, d)
  15414. if changed {
  15415. *v = v2
  15416. }
  15417. case map[uint]int32:
  15418. fastpathTV.DecMapUintInt32V(v, false, d)
  15419. case *map[uint]int32:
  15420. var v2 map[uint]int32
  15421. v2, changed = fastpathTV.DecMapUintInt32V(*v, true, d)
  15422. if changed {
  15423. *v = v2
  15424. }
  15425. case map[uint]int64:
  15426. fastpathTV.DecMapUintInt64V(v, false, d)
  15427. case *map[uint]int64:
  15428. var v2 map[uint]int64
  15429. v2, changed = fastpathTV.DecMapUintInt64V(*v, true, d)
  15430. if changed {
  15431. *v = v2
  15432. }
  15433. case map[uint]float32:
  15434. fastpathTV.DecMapUintFloat32V(v, false, d)
  15435. case *map[uint]float32:
  15436. var v2 map[uint]float32
  15437. v2, changed = fastpathTV.DecMapUintFloat32V(*v, true, d)
  15438. if changed {
  15439. *v = v2
  15440. }
  15441. case map[uint]float64:
  15442. fastpathTV.DecMapUintFloat64V(v, false, d)
  15443. case *map[uint]float64:
  15444. var v2 map[uint]float64
  15445. v2, changed = fastpathTV.DecMapUintFloat64V(*v, true, d)
  15446. if changed {
  15447. *v = v2
  15448. }
  15449. case map[uint]bool:
  15450. fastpathTV.DecMapUintBoolV(v, false, d)
  15451. case *map[uint]bool:
  15452. var v2 map[uint]bool
  15453. v2, changed = fastpathTV.DecMapUintBoolV(*v, true, d)
  15454. if changed {
  15455. *v = v2
  15456. }
  15457. case map[uint8]interface{}:
  15458. fastpathTV.DecMapUint8IntfV(v, false, d)
  15459. case *map[uint8]interface{}:
  15460. var v2 map[uint8]interface{}
  15461. v2, changed = fastpathTV.DecMapUint8IntfV(*v, true, d)
  15462. if changed {
  15463. *v = v2
  15464. }
  15465. case map[uint8]string:
  15466. fastpathTV.DecMapUint8StringV(v, false, d)
  15467. case *map[uint8]string:
  15468. var v2 map[uint8]string
  15469. v2, changed = fastpathTV.DecMapUint8StringV(*v, true, d)
  15470. if changed {
  15471. *v = v2
  15472. }
  15473. case map[uint8]uint:
  15474. fastpathTV.DecMapUint8UintV(v, false, d)
  15475. case *map[uint8]uint:
  15476. var v2 map[uint8]uint
  15477. v2, changed = fastpathTV.DecMapUint8UintV(*v, true, d)
  15478. if changed {
  15479. *v = v2
  15480. }
  15481. case map[uint8]uint8:
  15482. fastpathTV.DecMapUint8Uint8V(v, false, d)
  15483. case *map[uint8]uint8:
  15484. var v2 map[uint8]uint8
  15485. v2, changed = fastpathTV.DecMapUint8Uint8V(*v, true, d)
  15486. if changed {
  15487. *v = v2
  15488. }
  15489. case map[uint8]uint16:
  15490. fastpathTV.DecMapUint8Uint16V(v, false, d)
  15491. case *map[uint8]uint16:
  15492. var v2 map[uint8]uint16
  15493. v2, changed = fastpathTV.DecMapUint8Uint16V(*v, true, d)
  15494. if changed {
  15495. *v = v2
  15496. }
  15497. case map[uint8]uint32:
  15498. fastpathTV.DecMapUint8Uint32V(v, false, d)
  15499. case *map[uint8]uint32:
  15500. var v2 map[uint8]uint32
  15501. v2, changed = fastpathTV.DecMapUint8Uint32V(*v, true, d)
  15502. if changed {
  15503. *v = v2
  15504. }
  15505. case map[uint8]uint64:
  15506. fastpathTV.DecMapUint8Uint64V(v, false, d)
  15507. case *map[uint8]uint64:
  15508. var v2 map[uint8]uint64
  15509. v2, changed = fastpathTV.DecMapUint8Uint64V(*v, true, d)
  15510. if changed {
  15511. *v = v2
  15512. }
  15513. case map[uint8]uintptr:
  15514. fastpathTV.DecMapUint8UintptrV(v, false, d)
  15515. case *map[uint8]uintptr:
  15516. var v2 map[uint8]uintptr
  15517. v2, changed = fastpathTV.DecMapUint8UintptrV(*v, true, d)
  15518. if changed {
  15519. *v = v2
  15520. }
  15521. case map[uint8]int:
  15522. fastpathTV.DecMapUint8IntV(v, false, d)
  15523. case *map[uint8]int:
  15524. var v2 map[uint8]int
  15525. v2, changed = fastpathTV.DecMapUint8IntV(*v, true, d)
  15526. if changed {
  15527. *v = v2
  15528. }
  15529. case map[uint8]int8:
  15530. fastpathTV.DecMapUint8Int8V(v, false, d)
  15531. case *map[uint8]int8:
  15532. var v2 map[uint8]int8
  15533. v2, changed = fastpathTV.DecMapUint8Int8V(*v, true, d)
  15534. if changed {
  15535. *v = v2
  15536. }
  15537. case map[uint8]int16:
  15538. fastpathTV.DecMapUint8Int16V(v, false, d)
  15539. case *map[uint8]int16:
  15540. var v2 map[uint8]int16
  15541. v2, changed = fastpathTV.DecMapUint8Int16V(*v, true, d)
  15542. if changed {
  15543. *v = v2
  15544. }
  15545. case map[uint8]int32:
  15546. fastpathTV.DecMapUint8Int32V(v, false, d)
  15547. case *map[uint8]int32:
  15548. var v2 map[uint8]int32
  15549. v2, changed = fastpathTV.DecMapUint8Int32V(*v, true, d)
  15550. if changed {
  15551. *v = v2
  15552. }
  15553. case map[uint8]int64:
  15554. fastpathTV.DecMapUint8Int64V(v, false, d)
  15555. case *map[uint8]int64:
  15556. var v2 map[uint8]int64
  15557. v2, changed = fastpathTV.DecMapUint8Int64V(*v, true, d)
  15558. if changed {
  15559. *v = v2
  15560. }
  15561. case map[uint8]float32:
  15562. fastpathTV.DecMapUint8Float32V(v, false, d)
  15563. case *map[uint8]float32:
  15564. var v2 map[uint8]float32
  15565. v2, changed = fastpathTV.DecMapUint8Float32V(*v, true, d)
  15566. if changed {
  15567. *v = v2
  15568. }
  15569. case map[uint8]float64:
  15570. fastpathTV.DecMapUint8Float64V(v, false, d)
  15571. case *map[uint8]float64:
  15572. var v2 map[uint8]float64
  15573. v2, changed = fastpathTV.DecMapUint8Float64V(*v, true, d)
  15574. if changed {
  15575. *v = v2
  15576. }
  15577. case map[uint8]bool:
  15578. fastpathTV.DecMapUint8BoolV(v, false, d)
  15579. case *map[uint8]bool:
  15580. var v2 map[uint8]bool
  15581. v2, changed = fastpathTV.DecMapUint8BoolV(*v, true, d)
  15582. if changed {
  15583. *v = v2
  15584. }
  15585. case map[uint16]interface{}:
  15586. fastpathTV.DecMapUint16IntfV(v, false, d)
  15587. case *map[uint16]interface{}:
  15588. var v2 map[uint16]interface{}
  15589. v2, changed = fastpathTV.DecMapUint16IntfV(*v, true, d)
  15590. if changed {
  15591. *v = v2
  15592. }
  15593. case map[uint16]string:
  15594. fastpathTV.DecMapUint16StringV(v, false, d)
  15595. case *map[uint16]string:
  15596. var v2 map[uint16]string
  15597. v2, changed = fastpathTV.DecMapUint16StringV(*v, true, d)
  15598. if changed {
  15599. *v = v2
  15600. }
  15601. case map[uint16]uint:
  15602. fastpathTV.DecMapUint16UintV(v, false, d)
  15603. case *map[uint16]uint:
  15604. var v2 map[uint16]uint
  15605. v2, changed = fastpathTV.DecMapUint16UintV(*v, true, d)
  15606. if changed {
  15607. *v = v2
  15608. }
  15609. case map[uint16]uint8:
  15610. fastpathTV.DecMapUint16Uint8V(v, false, d)
  15611. case *map[uint16]uint8:
  15612. var v2 map[uint16]uint8
  15613. v2, changed = fastpathTV.DecMapUint16Uint8V(*v, true, d)
  15614. if changed {
  15615. *v = v2
  15616. }
  15617. case map[uint16]uint16:
  15618. fastpathTV.DecMapUint16Uint16V(v, false, d)
  15619. case *map[uint16]uint16:
  15620. var v2 map[uint16]uint16
  15621. v2, changed = fastpathTV.DecMapUint16Uint16V(*v, true, d)
  15622. if changed {
  15623. *v = v2
  15624. }
  15625. case map[uint16]uint32:
  15626. fastpathTV.DecMapUint16Uint32V(v, false, d)
  15627. case *map[uint16]uint32:
  15628. var v2 map[uint16]uint32
  15629. v2, changed = fastpathTV.DecMapUint16Uint32V(*v, true, d)
  15630. if changed {
  15631. *v = v2
  15632. }
  15633. case map[uint16]uint64:
  15634. fastpathTV.DecMapUint16Uint64V(v, false, d)
  15635. case *map[uint16]uint64:
  15636. var v2 map[uint16]uint64
  15637. v2, changed = fastpathTV.DecMapUint16Uint64V(*v, true, d)
  15638. if changed {
  15639. *v = v2
  15640. }
  15641. case map[uint16]uintptr:
  15642. fastpathTV.DecMapUint16UintptrV(v, false, d)
  15643. case *map[uint16]uintptr:
  15644. var v2 map[uint16]uintptr
  15645. v2, changed = fastpathTV.DecMapUint16UintptrV(*v, true, d)
  15646. if changed {
  15647. *v = v2
  15648. }
  15649. case map[uint16]int:
  15650. fastpathTV.DecMapUint16IntV(v, false, d)
  15651. case *map[uint16]int:
  15652. var v2 map[uint16]int
  15653. v2, changed = fastpathTV.DecMapUint16IntV(*v, true, d)
  15654. if changed {
  15655. *v = v2
  15656. }
  15657. case map[uint16]int8:
  15658. fastpathTV.DecMapUint16Int8V(v, false, d)
  15659. case *map[uint16]int8:
  15660. var v2 map[uint16]int8
  15661. v2, changed = fastpathTV.DecMapUint16Int8V(*v, true, d)
  15662. if changed {
  15663. *v = v2
  15664. }
  15665. case map[uint16]int16:
  15666. fastpathTV.DecMapUint16Int16V(v, false, d)
  15667. case *map[uint16]int16:
  15668. var v2 map[uint16]int16
  15669. v2, changed = fastpathTV.DecMapUint16Int16V(*v, true, d)
  15670. if changed {
  15671. *v = v2
  15672. }
  15673. case map[uint16]int32:
  15674. fastpathTV.DecMapUint16Int32V(v, false, d)
  15675. case *map[uint16]int32:
  15676. var v2 map[uint16]int32
  15677. v2, changed = fastpathTV.DecMapUint16Int32V(*v, true, d)
  15678. if changed {
  15679. *v = v2
  15680. }
  15681. case map[uint16]int64:
  15682. fastpathTV.DecMapUint16Int64V(v, false, d)
  15683. case *map[uint16]int64:
  15684. var v2 map[uint16]int64
  15685. v2, changed = fastpathTV.DecMapUint16Int64V(*v, true, d)
  15686. if changed {
  15687. *v = v2
  15688. }
  15689. case map[uint16]float32:
  15690. fastpathTV.DecMapUint16Float32V(v, false, d)
  15691. case *map[uint16]float32:
  15692. var v2 map[uint16]float32
  15693. v2, changed = fastpathTV.DecMapUint16Float32V(*v, true, d)
  15694. if changed {
  15695. *v = v2
  15696. }
  15697. case map[uint16]float64:
  15698. fastpathTV.DecMapUint16Float64V(v, false, d)
  15699. case *map[uint16]float64:
  15700. var v2 map[uint16]float64
  15701. v2, changed = fastpathTV.DecMapUint16Float64V(*v, true, d)
  15702. if changed {
  15703. *v = v2
  15704. }
  15705. case map[uint16]bool:
  15706. fastpathTV.DecMapUint16BoolV(v, false, d)
  15707. case *map[uint16]bool:
  15708. var v2 map[uint16]bool
  15709. v2, changed = fastpathTV.DecMapUint16BoolV(*v, true, d)
  15710. if changed {
  15711. *v = v2
  15712. }
  15713. case map[uint32]interface{}:
  15714. fastpathTV.DecMapUint32IntfV(v, false, d)
  15715. case *map[uint32]interface{}:
  15716. var v2 map[uint32]interface{}
  15717. v2, changed = fastpathTV.DecMapUint32IntfV(*v, true, d)
  15718. if changed {
  15719. *v = v2
  15720. }
  15721. case map[uint32]string:
  15722. fastpathTV.DecMapUint32StringV(v, false, d)
  15723. case *map[uint32]string:
  15724. var v2 map[uint32]string
  15725. v2, changed = fastpathTV.DecMapUint32StringV(*v, true, d)
  15726. if changed {
  15727. *v = v2
  15728. }
  15729. case map[uint32]uint:
  15730. fastpathTV.DecMapUint32UintV(v, false, d)
  15731. case *map[uint32]uint:
  15732. var v2 map[uint32]uint
  15733. v2, changed = fastpathTV.DecMapUint32UintV(*v, true, d)
  15734. if changed {
  15735. *v = v2
  15736. }
  15737. case map[uint32]uint8:
  15738. fastpathTV.DecMapUint32Uint8V(v, false, d)
  15739. case *map[uint32]uint8:
  15740. var v2 map[uint32]uint8
  15741. v2, changed = fastpathTV.DecMapUint32Uint8V(*v, true, d)
  15742. if changed {
  15743. *v = v2
  15744. }
  15745. case map[uint32]uint16:
  15746. fastpathTV.DecMapUint32Uint16V(v, false, d)
  15747. case *map[uint32]uint16:
  15748. var v2 map[uint32]uint16
  15749. v2, changed = fastpathTV.DecMapUint32Uint16V(*v, true, d)
  15750. if changed {
  15751. *v = v2
  15752. }
  15753. case map[uint32]uint32:
  15754. fastpathTV.DecMapUint32Uint32V(v, false, d)
  15755. case *map[uint32]uint32:
  15756. var v2 map[uint32]uint32
  15757. v2, changed = fastpathTV.DecMapUint32Uint32V(*v, true, d)
  15758. if changed {
  15759. *v = v2
  15760. }
  15761. case map[uint32]uint64:
  15762. fastpathTV.DecMapUint32Uint64V(v, false, d)
  15763. case *map[uint32]uint64:
  15764. var v2 map[uint32]uint64
  15765. v2, changed = fastpathTV.DecMapUint32Uint64V(*v, true, d)
  15766. if changed {
  15767. *v = v2
  15768. }
  15769. case map[uint32]uintptr:
  15770. fastpathTV.DecMapUint32UintptrV(v, false, d)
  15771. case *map[uint32]uintptr:
  15772. var v2 map[uint32]uintptr
  15773. v2, changed = fastpathTV.DecMapUint32UintptrV(*v, true, d)
  15774. if changed {
  15775. *v = v2
  15776. }
  15777. case map[uint32]int:
  15778. fastpathTV.DecMapUint32IntV(v, false, d)
  15779. case *map[uint32]int:
  15780. var v2 map[uint32]int
  15781. v2, changed = fastpathTV.DecMapUint32IntV(*v, true, d)
  15782. if changed {
  15783. *v = v2
  15784. }
  15785. case map[uint32]int8:
  15786. fastpathTV.DecMapUint32Int8V(v, false, d)
  15787. case *map[uint32]int8:
  15788. var v2 map[uint32]int8
  15789. v2, changed = fastpathTV.DecMapUint32Int8V(*v, true, d)
  15790. if changed {
  15791. *v = v2
  15792. }
  15793. case map[uint32]int16:
  15794. fastpathTV.DecMapUint32Int16V(v, false, d)
  15795. case *map[uint32]int16:
  15796. var v2 map[uint32]int16
  15797. v2, changed = fastpathTV.DecMapUint32Int16V(*v, true, d)
  15798. if changed {
  15799. *v = v2
  15800. }
  15801. case map[uint32]int32:
  15802. fastpathTV.DecMapUint32Int32V(v, false, d)
  15803. case *map[uint32]int32:
  15804. var v2 map[uint32]int32
  15805. v2, changed = fastpathTV.DecMapUint32Int32V(*v, true, d)
  15806. if changed {
  15807. *v = v2
  15808. }
  15809. case map[uint32]int64:
  15810. fastpathTV.DecMapUint32Int64V(v, false, d)
  15811. case *map[uint32]int64:
  15812. var v2 map[uint32]int64
  15813. v2, changed = fastpathTV.DecMapUint32Int64V(*v, true, d)
  15814. if changed {
  15815. *v = v2
  15816. }
  15817. case map[uint32]float32:
  15818. fastpathTV.DecMapUint32Float32V(v, false, d)
  15819. case *map[uint32]float32:
  15820. var v2 map[uint32]float32
  15821. v2, changed = fastpathTV.DecMapUint32Float32V(*v, true, d)
  15822. if changed {
  15823. *v = v2
  15824. }
  15825. case map[uint32]float64:
  15826. fastpathTV.DecMapUint32Float64V(v, false, d)
  15827. case *map[uint32]float64:
  15828. var v2 map[uint32]float64
  15829. v2, changed = fastpathTV.DecMapUint32Float64V(*v, true, d)
  15830. if changed {
  15831. *v = v2
  15832. }
  15833. case map[uint32]bool:
  15834. fastpathTV.DecMapUint32BoolV(v, false, d)
  15835. case *map[uint32]bool:
  15836. var v2 map[uint32]bool
  15837. v2, changed = fastpathTV.DecMapUint32BoolV(*v, true, d)
  15838. if changed {
  15839. *v = v2
  15840. }
  15841. case map[uint64]interface{}:
  15842. fastpathTV.DecMapUint64IntfV(v, false, d)
  15843. case *map[uint64]interface{}:
  15844. var v2 map[uint64]interface{}
  15845. v2, changed = fastpathTV.DecMapUint64IntfV(*v, true, d)
  15846. if changed {
  15847. *v = v2
  15848. }
  15849. case map[uint64]string:
  15850. fastpathTV.DecMapUint64StringV(v, false, d)
  15851. case *map[uint64]string:
  15852. var v2 map[uint64]string
  15853. v2, changed = fastpathTV.DecMapUint64StringV(*v, true, d)
  15854. if changed {
  15855. *v = v2
  15856. }
  15857. case map[uint64]uint:
  15858. fastpathTV.DecMapUint64UintV(v, false, d)
  15859. case *map[uint64]uint:
  15860. var v2 map[uint64]uint
  15861. v2, changed = fastpathTV.DecMapUint64UintV(*v, true, d)
  15862. if changed {
  15863. *v = v2
  15864. }
  15865. case map[uint64]uint8:
  15866. fastpathTV.DecMapUint64Uint8V(v, false, d)
  15867. case *map[uint64]uint8:
  15868. var v2 map[uint64]uint8
  15869. v2, changed = fastpathTV.DecMapUint64Uint8V(*v, true, d)
  15870. if changed {
  15871. *v = v2
  15872. }
  15873. case map[uint64]uint16:
  15874. fastpathTV.DecMapUint64Uint16V(v, false, d)
  15875. case *map[uint64]uint16:
  15876. var v2 map[uint64]uint16
  15877. v2, changed = fastpathTV.DecMapUint64Uint16V(*v, true, d)
  15878. if changed {
  15879. *v = v2
  15880. }
  15881. case map[uint64]uint32:
  15882. fastpathTV.DecMapUint64Uint32V(v, false, d)
  15883. case *map[uint64]uint32:
  15884. var v2 map[uint64]uint32
  15885. v2, changed = fastpathTV.DecMapUint64Uint32V(*v, true, d)
  15886. if changed {
  15887. *v = v2
  15888. }
  15889. case map[uint64]uint64:
  15890. fastpathTV.DecMapUint64Uint64V(v, false, d)
  15891. case *map[uint64]uint64:
  15892. var v2 map[uint64]uint64
  15893. v2, changed = fastpathTV.DecMapUint64Uint64V(*v, true, d)
  15894. if changed {
  15895. *v = v2
  15896. }
  15897. case map[uint64]uintptr:
  15898. fastpathTV.DecMapUint64UintptrV(v, false, d)
  15899. case *map[uint64]uintptr:
  15900. var v2 map[uint64]uintptr
  15901. v2, changed = fastpathTV.DecMapUint64UintptrV(*v, true, d)
  15902. if changed {
  15903. *v = v2
  15904. }
  15905. case map[uint64]int:
  15906. fastpathTV.DecMapUint64IntV(v, false, d)
  15907. case *map[uint64]int:
  15908. var v2 map[uint64]int
  15909. v2, changed = fastpathTV.DecMapUint64IntV(*v, true, d)
  15910. if changed {
  15911. *v = v2
  15912. }
  15913. case map[uint64]int8:
  15914. fastpathTV.DecMapUint64Int8V(v, false, d)
  15915. case *map[uint64]int8:
  15916. var v2 map[uint64]int8
  15917. v2, changed = fastpathTV.DecMapUint64Int8V(*v, true, d)
  15918. if changed {
  15919. *v = v2
  15920. }
  15921. case map[uint64]int16:
  15922. fastpathTV.DecMapUint64Int16V(v, false, d)
  15923. case *map[uint64]int16:
  15924. var v2 map[uint64]int16
  15925. v2, changed = fastpathTV.DecMapUint64Int16V(*v, true, d)
  15926. if changed {
  15927. *v = v2
  15928. }
  15929. case map[uint64]int32:
  15930. fastpathTV.DecMapUint64Int32V(v, false, d)
  15931. case *map[uint64]int32:
  15932. var v2 map[uint64]int32
  15933. v2, changed = fastpathTV.DecMapUint64Int32V(*v, true, d)
  15934. if changed {
  15935. *v = v2
  15936. }
  15937. case map[uint64]int64:
  15938. fastpathTV.DecMapUint64Int64V(v, false, d)
  15939. case *map[uint64]int64:
  15940. var v2 map[uint64]int64
  15941. v2, changed = fastpathTV.DecMapUint64Int64V(*v, true, d)
  15942. if changed {
  15943. *v = v2
  15944. }
  15945. case map[uint64]float32:
  15946. fastpathTV.DecMapUint64Float32V(v, false, d)
  15947. case *map[uint64]float32:
  15948. var v2 map[uint64]float32
  15949. v2, changed = fastpathTV.DecMapUint64Float32V(*v, true, d)
  15950. if changed {
  15951. *v = v2
  15952. }
  15953. case map[uint64]float64:
  15954. fastpathTV.DecMapUint64Float64V(v, false, d)
  15955. case *map[uint64]float64:
  15956. var v2 map[uint64]float64
  15957. v2, changed = fastpathTV.DecMapUint64Float64V(*v, true, d)
  15958. if changed {
  15959. *v = v2
  15960. }
  15961. case map[uint64]bool:
  15962. fastpathTV.DecMapUint64BoolV(v, false, d)
  15963. case *map[uint64]bool:
  15964. var v2 map[uint64]bool
  15965. v2, changed = fastpathTV.DecMapUint64BoolV(*v, true, d)
  15966. if changed {
  15967. *v = v2
  15968. }
  15969. case map[uintptr]interface{}:
  15970. fastpathTV.DecMapUintptrIntfV(v, false, d)
  15971. case *map[uintptr]interface{}:
  15972. var v2 map[uintptr]interface{}
  15973. v2, changed = fastpathTV.DecMapUintptrIntfV(*v, true, d)
  15974. if changed {
  15975. *v = v2
  15976. }
  15977. case map[uintptr]string:
  15978. fastpathTV.DecMapUintptrStringV(v, false, d)
  15979. case *map[uintptr]string:
  15980. var v2 map[uintptr]string
  15981. v2, changed = fastpathTV.DecMapUintptrStringV(*v, true, d)
  15982. if changed {
  15983. *v = v2
  15984. }
  15985. case map[uintptr]uint:
  15986. fastpathTV.DecMapUintptrUintV(v, false, d)
  15987. case *map[uintptr]uint:
  15988. var v2 map[uintptr]uint
  15989. v2, changed = fastpathTV.DecMapUintptrUintV(*v, true, d)
  15990. if changed {
  15991. *v = v2
  15992. }
  15993. case map[uintptr]uint8:
  15994. fastpathTV.DecMapUintptrUint8V(v, false, d)
  15995. case *map[uintptr]uint8:
  15996. var v2 map[uintptr]uint8
  15997. v2, changed = fastpathTV.DecMapUintptrUint8V(*v, true, d)
  15998. if changed {
  15999. *v = v2
  16000. }
  16001. case map[uintptr]uint16:
  16002. fastpathTV.DecMapUintptrUint16V(v, false, d)
  16003. case *map[uintptr]uint16:
  16004. var v2 map[uintptr]uint16
  16005. v2, changed = fastpathTV.DecMapUintptrUint16V(*v, true, d)
  16006. if changed {
  16007. *v = v2
  16008. }
  16009. case map[uintptr]uint32:
  16010. fastpathTV.DecMapUintptrUint32V(v, false, d)
  16011. case *map[uintptr]uint32:
  16012. var v2 map[uintptr]uint32
  16013. v2, changed = fastpathTV.DecMapUintptrUint32V(*v, true, d)
  16014. if changed {
  16015. *v = v2
  16016. }
  16017. case map[uintptr]uint64:
  16018. fastpathTV.DecMapUintptrUint64V(v, false, d)
  16019. case *map[uintptr]uint64:
  16020. var v2 map[uintptr]uint64
  16021. v2, changed = fastpathTV.DecMapUintptrUint64V(*v, true, d)
  16022. if changed {
  16023. *v = v2
  16024. }
  16025. case map[uintptr]uintptr:
  16026. fastpathTV.DecMapUintptrUintptrV(v, false, d)
  16027. case *map[uintptr]uintptr:
  16028. var v2 map[uintptr]uintptr
  16029. v2, changed = fastpathTV.DecMapUintptrUintptrV(*v, true, d)
  16030. if changed {
  16031. *v = v2
  16032. }
  16033. case map[uintptr]int:
  16034. fastpathTV.DecMapUintptrIntV(v, false, d)
  16035. case *map[uintptr]int:
  16036. var v2 map[uintptr]int
  16037. v2, changed = fastpathTV.DecMapUintptrIntV(*v, true, d)
  16038. if changed {
  16039. *v = v2
  16040. }
  16041. case map[uintptr]int8:
  16042. fastpathTV.DecMapUintptrInt8V(v, false, d)
  16043. case *map[uintptr]int8:
  16044. var v2 map[uintptr]int8
  16045. v2, changed = fastpathTV.DecMapUintptrInt8V(*v, true, d)
  16046. if changed {
  16047. *v = v2
  16048. }
  16049. case map[uintptr]int16:
  16050. fastpathTV.DecMapUintptrInt16V(v, false, d)
  16051. case *map[uintptr]int16:
  16052. var v2 map[uintptr]int16
  16053. v2, changed = fastpathTV.DecMapUintptrInt16V(*v, true, d)
  16054. if changed {
  16055. *v = v2
  16056. }
  16057. case map[uintptr]int32:
  16058. fastpathTV.DecMapUintptrInt32V(v, false, d)
  16059. case *map[uintptr]int32:
  16060. var v2 map[uintptr]int32
  16061. v2, changed = fastpathTV.DecMapUintptrInt32V(*v, true, d)
  16062. if changed {
  16063. *v = v2
  16064. }
  16065. case map[uintptr]int64:
  16066. fastpathTV.DecMapUintptrInt64V(v, false, d)
  16067. case *map[uintptr]int64:
  16068. var v2 map[uintptr]int64
  16069. v2, changed = fastpathTV.DecMapUintptrInt64V(*v, true, d)
  16070. if changed {
  16071. *v = v2
  16072. }
  16073. case map[uintptr]float32:
  16074. fastpathTV.DecMapUintptrFloat32V(v, false, d)
  16075. case *map[uintptr]float32:
  16076. var v2 map[uintptr]float32
  16077. v2, changed = fastpathTV.DecMapUintptrFloat32V(*v, true, d)
  16078. if changed {
  16079. *v = v2
  16080. }
  16081. case map[uintptr]float64:
  16082. fastpathTV.DecMapUintptrFloat64V(v, false, d)
  16083. case *map[uintptr]float64:
  16084. var v2 map[uintptr]float64
  16085. v2, changed = fastpathTV.DecMapUintptrFloat64V(*v, true, d)
  16086. if changed {
  16087. *v = v2
  16088. }
  16089. case map[uintptr]bool:
  16090. fastpathTV.DecMapUintptrBoolV(v, false, d)
  16091. case *map[uintptr]bool:
  16092. var v2 map[uintptr]bool
  16093. v2, changed = fastpathTV.DecMapUintptrBoolV(*v, true, d)
  16094. if changed {
  16095. *v = v2
  16096. }
  16097. case map[int]interface{}:
  16098. fastpathTV.DecMapIntIntfV(v, false, d)
  16099. case *map[int]interface{}:
  16100. var v2 map[int]interface{}
  16101. v2, changed = fastpathTV.DecMapIntIntfV(*v, true, d)
  16102. if changed {
  16103. *v = v2
  16104. }
  16105. case map[int]string:
  16106. fastpathTV.DecMapIntStringV(v, false, d)
  16107. case *map[int]string:
  16108. var v2 map[int]string
  16109. v2, changed = fastpathTV.DecMapIntStringV(*v, true, d)
  16110. if changed {
  16111. *v = v2
  16112. }
  16113. case map[int]uint:
  16114. fastpathTV.DecMapIntUintV(v, false, d)
  16115. case *map[int]uint:
  16116. var v2 map[int]uint
  16117. v2, changed = fastpathTV.DecMapIntUintV(*v, true, d)
  16118. if changed {
  16119. *v = v2
  16120. }
  16121. case map[int]uint8:
  16122. fastpathTV.DecMapIntUint8V(v, false, d)
  16123. case *map[int]uint8:
  16124. var v2 map[int]uint8
  16125. v2, changed = fastpathTV.DecMapIntUint8V(*v, true, d)
  16126. if changed {
  16127. *v = v2
  16128. }
  16129. case map[int]uint16:
  16130. fastpathTV.DecMapIntUint16V(v, false, d)
  16131. case *map[int]uint16:
  16132. var v2 map[int]uint16
  16133. v2, changed = fastpathTV.DecMapIntUint16V(*v, true, d)
  16134. if changed {
  16135. *v = v2
  16136. }
  16137. case map[int]uint32:
  16138. fastpathTV.DecMapIntUint32V(v, false, d)
  16139. case *map[int]uint32:
  16140. var v2 map[int]uint32
  16141. v2, changed = fastpathTV.DecMapIntUint32V(*v, true, d)
  16142. if changed {
  16143. *v = v2
  16144. }
  16145. case map[int]uint64:
  16146. fastpathTV.DecMapIntUint64V(v, false, d)
  16147. case *map[int]uint64:
  16148. var v2 map[int]uint64
  16149. v2, changed = fastpathTV.DecMapIntUint64V(*v, true, d)
  16150. if changed {
  16151. *v = v2
  16152. }
  16153. case map[int]uintptr:
  16154. fastpathTV.DecMapIntUintptrV(v, false, d)
  16155. case *map[int]uintptr:
  16156. var v2 map[int]uintptr
  16157. v2, changed = fastpathTV.DecMapIntUintptrV(*v, true, d)
  16158. if changed {
  16159. *v = v2
  16160. }
  16161. case map[int]int:
  16162. fastpathTV.DecMapIntIntV(v, false, d)
  16163. case *map[int]int:
  16164. var v2 map[int]int
  16165. v2, changed = fastpathTV.DecMapIntIntV(*v, true, d)
  16166. if changed {
  16167. *v = v2
  16168. }
  16169. case map[int]int8:
  16170. fastpathTV.DecMapIntInt8V(v, false, d)
  16171. case *map[int]int8:
  16172. var v2 map[int]int8
  16173. v2, changed = fastpathTV.DecMapIntInt8V(*v, true, d)
  16174. if changed {
  16175. *v = v2
  16176. }
  16177. case map[int]int16:
  16178. fastpathTV.DecMapIntInt16V(v, false, d)
  16179. case *map[int]int16:
  16180. var v2 map[int]int16
  16181. v2, changed = fastpathTV.DecMapIntInt16V(*v, true, d)
  16182. if changed {
  16183. *v = v2
  16184. }
  16185. case map[int]int32:
  16186. fastpathTV.DecMapIntInt32V(v, false, d)
  16187. case *map[int]int32:
  16188. var v2 map[int]int32
  16189. v2, changed = fastpathTV.DecMapIntInt32V(*v, true, d)
  16190. if changed {
  16191. *v = v2
  16192. }
  16193. case map[int]int64:
  16194. fastpathTV.DecMapIntInt64V(v, false, d)
  16195. case *map[int]int64:
  16196. var v2 map[int]int64
  16197. v2, changed = fastpathTV.DecMapIntInt64V(*v, true, d)
  16198. if changed {
  16199. *v = v2
  16200. }
  16201. case map[int]float32:
  16202. fastpathTV.DecMapIntFloat32V(v, false, d)
  16203. case *map[int]float32:
  16204. var v2 map[int]float32
  16205. v2, changed = fastpathTV.DecMapIntFloat32V(*v, true, d)
  16206. if changed {
  16207. *v = v2
  16208. }
  16209. case map[int]float64:
  16210. fastpathTV.DecMapIntFloat64V(v, false, d)
  16211. case *map[int]float64:
  16212. var v2 map[int]float64
  16213. v2, changed = fastpathTV.DecMapIntFloat64V(*v, true, d)
  16214. if changed {
  16215. *v = v2
  16216. }
  16217. case map[int]bool:
  16218. fastpathTV.DecMapIntBoolV(v, false, d)
  16219. case *map[int]bool:
  16220. var v2 map[int]bool
  16221. v2, changed = fastpathTV.DecMapIntBoolV(*v, true, d)
  16222. if changed {
  16223. *v = v2
  16224. }
  16225. case map[int8]interface{}:
  16226. fastpathTV.DecMapInt8IntfV(v, false, d)
  16227. case *map[int8]interface{}:
  16228. var v2 map[int8]interface{}
  16229. v2, changed = fastpathTV.DecMapInt8IntfV(*v, true, d)
  16230. if changed {
  16231. *v = v2
  16232. }
  16233. case map[int8]string:
  16234. fastpathTV.DecMapInt8StringV(v, false, d)
  16235. case *map[int8]string:
  16236. var v2 map[int8]string
  16237. v2, changed = fastpathTV.DecMapInt8StringV(*v, true, d)
  16238. if changed {
  16239. *v = v2
  16240. }
  16241. case map[int8]uint:
  16242. fastpathTV.DecMapInt8UintV(v, false, d)
  16243. case *map[int8]uint:
  16244. var v2 map[int8]uint
  16245. v2, changed = fastpathTV.DecMapInt8UintV(*v, true, d)
  16246. if changed {
  16247. *v = v2
  16248. }
  16249. case map[int8]uint8:
  16250. fastpathTV.DecMapInt8Uint8V(v, false, d)
  16251. case *map[int8]uint8:
  16252. var v2 map[int8]uint8
  16253. v2, changed = fastpathTV.DecMapInt8Uint8V(*v, true, d)
  16254. if changed {
  16255. *v = v2
  16256. }
  16257. case map[int8]uint16:
  16258. fastpathTV.DecMapInt8Uint16V(v, false, d)
  16259. case *map[int8]uint16:
  16260. var v2 map[int8]uint16
  16261. v2, changed = fastpathTV.DecMapInt8Uint16V(*v, true, d)
  16262. if changed {
  16263. *v = v2
  16264. }
  16265. case map[int8]uint32:
  16266. fastpathTV.DecMapInt8Uint32V(v, false, d)
  16267. case *map[int8]uint32:
  16268. var v2 map[int8]uint32
  16269. v2, changed = fastpathTV.DecMapInt8Uint32V(*v, true, d)
  16270. if changed {
  16271. *v = v2
  16272. }
  16273. case map[int8]uint64:
  16274. fastpathTV.DecMapInt8Uint64V(v, false, d)
  16275. case *map[int8]uint64:
  16276. var v2 map[int8]uint64
  16277. v2, changed = fastpathTV.DecMapInt8Uint64V(*v, true, d)
  16278. if changed {
  16279. *v = v2
  16280. }
  16281. case map[int8]uintptr:
  16282. fastpathTV.DecMapInt8UintptrV(v, false, d)
  16283. case *map[int8]uintptr:
  16284. var v2 map[int8]uintptr
  16285. v2, changed = fastpathTV.DecMapInt8UintptrV(*v, true, d)
  16286. if changed {
  16287. *v = v2
  16288. }
  16289. case map[int8]int:
  16290. fastpathTV.DecMapInt8IntV(v, false, d)
  16291. case *map[int8]int:
  16292. var v2 map[int8]int
  16293. v2, changed = fastpathTV.DecMapInt8IntV(*v, true, d)
  16294. if changed {
  16295. *v = v2
  16296. }
  16297. case map[int8]int8:
  16298. fastpathTV.DecMapInt8Int8V(v, false, d)
  16299. case *map[int8]int8:
  16300. var v2 map[int8]int8
  16301. v2, changed = fastpathTV.DecMapInt8Int8V(*v, true, d)
  16302. if changed {
  16303. *v = v2
  16304. }
  16305. case map[int8]int16:
  16306. fastpathTV.DecMapInt8Int16V(v, false, d)
  16307. case *map[int8]int16:
  16308. var v2 map[int8]int16
  16309. v2, changed = fastpathTV.DecMapInt8Int16V(*v, true, d)
  16310. if changed {
  16311. *v = v2
  16312. }
  16313. case map[int8]int32:
  16314. fastpathTV.DecMapInt8Int32V(v, false, d)
  16315. case *map[int8]int32:
  16316. var v2 map[int8]int32
  16317. v2, changed = fastpathTV.DecMapInt8Int32V(*v, true, d)
  16318. if changed {
  16319. *v = v2
  16320. }
  16321. case map[int8]int64:
  16322. fastpathTV.DecMapInt8Int64V(v, false, d)
  16323. case *map[int8]int64:
  16324. var v2 map[int8]int64
  16325. v2, changed = fastpathTV.DecMapInt8Int64V(*v, true, d)
  16326. if changed {
  16327. *v = v2
  16328. }
  16329. case map[int8]float32:
  16330. fastpathTV.DecMapInt8Float32V(v, false, d)
  16331. case *map[int8]float32:
  16332. var v2 map[int8]float32
  16333. v2, changed = fastpathTV.DecMapInt8Float32V(*v, true, d)
  16334. if changed {
  16335. *v = v2
  16336. }
  16337. case map[int8]float64:
  16338. fastpathTV.DecMapInt8Float64V(v, false, d)
  16339. case *map[int8]float64:
  16340. var v2 map[int8]float64
  16341. v2, changed = fastpathTV.DecMapInt8Float64V(*v, true, d)
  16342. if changed {
  16343. *v = v2
  16344. }
  16345. case map[int8]bool:
  16346. fastpathTV.DecMapInt8BoolV(v, false, d)
  16347. case *map[int8]bool:
  16348. var v2 map[int8]bool
  16349. v2, changed = fastpathTV.DecMapInt8BoolV(*v, true, d)
  16350. if changed {
  16351. *v = v2
  16352. }
  16353. case map[int16]interface{}:
  16354. fastpathTV.DecMapInt16IntfV(v, false, d)
  16355. case *map[int16]interface{}:
  16356. var v2 map[int16]interface{}
  16357. v2, changed = fastpathTV.DecMapInt16IntfV(*v, true, d)
  16358. if changed {
  16359. *v = v2
  16360. }
  16361. case map[int16]string:
  16362. fastpathTV.DecMapInt16StringV(v, false, d)
  16363. case *map[int16]string:
  16364. var v2 map[int16]string
  16365. v2, changed = fastpathTV.DecMapInt16StringV(*v, true, d)
  16366. if changed {
  16367. *v = v2
  16368. }
  16369. case map[int16]uint:
  16370. fastpathTV.DecMapInt16UintV(v, false, d)
  16371. case *map[int16]uint:
  16372. var v2 map[int16]uint
  16373. v2, changed = fastpathTV.DecMapInt16UintV(*v, true, d)
  16374. if changed {
  16375. *v = v2
  16376. }
  16377. case map[int16]uint8:
  16378. fastpathTV.DecMapInt16Uint8V(v, false, d)
  16379. case *map[int16]uint8:
  16380. var v2 map[int16]uint8
  16381. v2, changed = fastpathTV.DecMapInt16Uint8V(*v, true, d)
  16382. if changed {
  16383. *v = v2
  16384. }
  16385. case map[int16]uint16:
  16386. fastpathTV.DecMapInt16Uint16V(v, false, d)
  16387. case *map[int16]uint16:
  16388. var v2 map[int16]uint16
  16389. v2, changed = fastpathTV.DecMapInt16Uint16V(*v, true, d)
  16390. if changed {
  16391. *v = v2
  16392. }
  16393. case map[int16]uint32:
  16394. fastpathTV.DecMapInt16Uint32V(v, false, d)
  16395. case *map[int16]uint32:
  16396. var v2 map[int16]uint32
  16397. v2, changed = fastpathTV.DecMapInt16Uint32V(*v, true, d)
  16398. if changed {
  16399. *v = v2
  16400. }
  16401. case map[int16]uint64:
  16402. fastpathTV.DecMapInt16Uint64V(v, false, d)
  16403. case *map[int16]uint64:
  16404. var v2 map[int16]uint64
  16405. v2, changed = fastpathTV.DecMapInt16Uint64V(*v, true, d)
  16406. if changed {
  16407. *v = v2
  16408. }
  16409. case map[int16]uintptr:
  16410. fastpathTV.DecMapInt16UintptrV(v, false, d)
  16411. case *map[int16]uintptr:
  16412. var v2 map[int16]uintptr
  16413. v2, changed = fastpathTV.DecMapInt16UintptrV(*v, true, d)
  16414. if changed {
  16415. *v = v2
  16416. }
  16417. case map[int16]int:
  16418. fastpathTV.DecMapInt16IntV(v, false, d)
  16419. case *map[int16]int:
  16420. var v2 map[int16]int
  16421. v2, changed = fastpathTV.DecMapInt16IntV(*v, true, d)
  16422. if changed {
  16423. *v = v2
  16424. }
  16425. case map[int16]int8:
  16426. fastpathTV.DecMapInt16Int8V(v, false, d)
  16427. case *map[int16]int8:
  16428. var v2 map[int16]int8
  16429. v2, changed = fastpathTV.DecMapInt16Int8V(*v, true, d)
  16430. if changed {
  16431. *v = v2
  16432. }
  16433. case map[int16]int16:
  16434. fastpathTV.DecMapInt16Int16V(v, false, d)
  16435. case *map[int16]int16:
  16436. var v2 map[int16]int16
  16437. v2, changed = fastpathTV.DecMapInt16Int16V(*v, true, d)
  16438. if changed {
  16439. *v = v2
  16440. }
  16441. case map[int16]int32:
  16442. fastpathTV.DecMapInt16Int32V(v, false, d)
  16443. case *map[int16]int32:
  16444. var v2 map[int16]int32
  16445. v2, changed = fastpathTV.DecMapInt16Int32V(*v, true, d)
  16446. if changed {
  16447. *v = v2
  16448. }
  16449. case map[int16]int64:
  16450. fastpathTV.DecMapInt16Int64V(v, false, d)
  16451. case *map[int16]int64:
  16452. var v2 map[int16]int64
  16453. v2, changed = fastpathTV.DecMapInt16Int64V(*v, true, d)
  16454. if changed {
  16455. *v = v2
  16456. }
  16457. case map[int16]float32:
  16458. fastpathTV.DecMapInt16Float32V(v, false, d)
  16459. case *map[int16]float32:
  16460. var v2 map[int16]float32
  16461. v2, changed = fastpathTV.DecMapInt16Float32V(*v, true, d)
  16462. if changed {
  16463. *v = v2
  16464. }
  16465. case map[int16]float64:
  16466. fastpathTV.DecMapInt16Float64V(v, false, d)
  16467. case *map[int16]float64:
  16468. var v2 map[int16]float64
  16469. v2, changed = fastpathTV.DecMapInt16Float64V(*v, true, d)
  16470. if changed {
  16471. *v = v2
  16472. }
  16473. case map[int16]bool:
  16474. fastpathTV.DecMapInt16BoolV(v, false, d)
  16475. case *map[int16]bool:
  16476. var v2 map[int16]bool
  16477. v2, changed = fastpathTV.DecMapInt16BoolV(*v, true, d)
  16478. if changed {
  16479. *v = v2
  16480. }
  16481. case map[int32]interface{}:
  16482. fastpathTV.DecMapInt32IntfV(v, false, d)
  16483. case *map[int32]interface{}:
  16484. var v2 map[int32]interface{}
  16485. v2, changed = fastpathTV.DecMapInt32IntfV(*v, true, d)
  16486. if changed {
  16487. *v = v2
  16488. }
  16489. case map[int32]string:
  16490. fastpathTV.DecMapInt32StringV(v, false, d)
  16491. case *map[int32]string:
  16492. var v2 map[int32]string
  16493. v2, changed = fastpathTV.DecMapInt32StringV(*v, true, d)
  16494. if changed {
  16495. *v = v2
  16496. }
  16497. case map[int32]uint:
  16498. fastpathTV.DecMapInt32UintV(v, false, d)
  16499. case *map[int32]uint:
  16500. var v2 map[int32]uint
  16501. v2, changed = fastpathTV.DecMapInt32UintV(*v, true, d)
  16502. if changed {
  16503. *v = v2
  16504. }
  16505. case map[int32]uint8:
  16506. fastpathTV.DecMapInt32Uint8V(v, false, d)
  16507. case *map[int32]uint8:
  16508. var v2 map[int32]uint8
  16509. v2, changed = fastpathTV.DecMapInt32Uint8V(*v, true, d)
  16510. if changed {
  16511. *v = v2
  16512. }
  16513. case map[int32]uint16:
  16514. fastpathTV.DecMapInt32Uint16V(v, false, d)
  16515. case *map[int32]uint16:
  16516. var v2 map[int32]uint16
  16517. v2, changed = fastpathTV.DecMapInt32Uint16V(*v, true, d)
  16518. if changed {
  16519. *v = v2
  16520. }
  16521. case map[int32]uint32:
  16522. fastpathTV.DecMapInt32Uint32V(v, false, d)
  16523. case *map[int32]uint32:
  16524. var v2 map[int32]uint32
  16525. v2, changed = fastpathTV.DecMapInt32Uint32V(*v, true, d)
  16526. if changed {
  16527. *v = v2
  16528. }
  16529. case map[int32]uint64:
  16530. fastpathTV.DecMapInt32Uint64V(v, false, d)
  16531. case *map[int32]uint64:
  16532. var v2 map[int32]uint64
  16533. v2, changed = fastpathTV.DecMapInt32Uint64V(*v, true, d)
  16534. if changed {
  16535. *v = v2
  16536. }
  16537. case map[int32]uintptr:
  16538. fastpathTV.DecMapInt32UintptrV(v, false, d)
  16539. case *map[int32]uintptr:
  16540. var v2 map[int32]uintptr
  16541. v2, changed = fastpathTV.DecMapInt32UintptrV(*v, true, d)
  16542. if changed {
  16543. *v = v2
  16544. }
  16545. case map[int32]int:
  16546. fastpathTV.DecMapInt32IntV(v, false, d)
  16547. case *map[int32]int:
  16548. var v2 map[int32]int
  16549. v2, changed = fastpathTV.DecMapInt32IntV(*v, true, d)
  16550. if changed {
  16551. *v = v2
  16552. }
  16553. case map[int32]int8:
  16554. fastpathTV.DecMapInt32Int8V(v, false, d)
  16555. case *map[int32]int8:
  16556. var v2 map[int32]int8
  16557. v2, changed = fastpathTV.DecMapInt32Int8V(*v, true, d)
  16558. if changed {
  16559. *v = v2
  16560. }
  16561. case map[int32]int16:
  16562. fastpathTV.DecMapInt32Int16V(v, false, d)
  16563. case *map[int32]int16:
  16564. var v2 map[int32]int16
  16565. v2, changed = fastpathTV.DecMapInt32Int16V(*v, true, d)
  16566. if changed {
  16567. *v = v2
  16568. }
  16569. case map[int32]int32:
  16570. fastpathTV.DecMapInt32Int32V(v, false, d)
  16571. case *map[int32]int32:
  16572. var v2 map[int32]int32
  16573. v2, changed = fastpathTV.DecMapInt32Int32V(*v, true, d)
  16574. if changed {
  16575. *v = v2
  16576. }
  16577. case map[int32]int64:
  16578. fastpathTV.DecMapInt32Int64V(v, false, d)
  16579. case *map[int32]int64:
  16580. var v2 map[int32]int64
  16581. v2, changed = fastpathTV.DecMapInt32Int64V(*v, true, d)
  16582. if changed {
  16583. *v = v2
  16584. }
  16585. case map[int32]float32:
  16586. fastpathTV.DecMapInt32Float32V(v, false, d)
  16587. case *map[int32]float32:
  16588. var v2 map[int32]float32
  16589. v2, changed = fastpathTV.DecMapInt32Float32V(*v, true, d)
  16590. if changed {
  16591. *v = v2
  16592. }
  16593. case map[int32]float64:
  16594. fastpathTV.DecMapInt32Float64V(v, false, d)
  16595. case *map[int32]float64:
  16596. var v2 map[int32]float64
  16597. v2, changed = fastpathTV.DecMapInt32Float64V(*v, true, d)
  16598. if changed {
  16599. *v = v2
  16600. }
  16601. case map[int32]bool:
  16602. fastpathTV.DecMapInt32BoolV(v, false, d)
  16603. case *map[int32]bool:
  16604. var v2 map[int32]bool
  16605. v2, changed = fastpathTV.DecMapInt32BoolV(*v, true, d)
  16606. if changed {
  16607. *v = v2
  16608. }
  16609. case map[int64]interface{}:
  16610. fastpathTV.DecMapInt64IntfV(v, false, d)
  16611. case *map[int64]interface{}:
  16612. var v2 map[int64]interface{}
  16613. v2, changed = fastpathTV.DecMapInt64IntfV(*v, true, d)
  16614. if changed {
  16615. *v = v2
  16616. }
  16617. case map[int64]string:
  16618. fastpathTV.DecMapInt64StringV(v, false, d)
  16619. case *map[int64]string:
  16620. var v2 map[int64]string
  16621. v2, changed = fastpathTV.DecMapInt64StringV(*v, true, d)
  16622. if changed {
  16623. *v = v2
  16624. }
  16625. case map[int64]uint:
  16626. fastpathTV.DecMapInt64UintV(v, false, d)
  16627. case *map[int64]uint:
  16628. var v2 map[int64]uint
  16629. v2, changed = fastpathTV.DecMapInt64UintV(*v, true, d)
  16630. if changed {
  16631. *v = v2
  16632. }
  16633. case map[int64]uint8:
  16634. fastpathTV.DecMapInt64Uint8V(v, false, d)
  16635. case *map[int64]uint8:
  16636. var v2 map[int64]uint8
  16637. v2, changed = fastpathTV.DecMapInt64Uint8V(*v, true, d)
  16638. if changed {
  16639. *v = v2
  16640. }
  16641. case map[int64]uint16:
  16642. fastpathTV.DecMapInt64Uint16V(v, false, d)
  16643. case *map[int64]uint16:
  16644. var v2 map[int64]uint16
  16645. v2, changed = fastpathTV.DecMapInt64Uint16V(*v, true, d)
  16646. if changed {
  16647. *v = v2
  16648. }
  16649. case map[int64]uint32:
  16650. fastpathTV.DecMapInt64Uint32V(v, false, d)
  16651. case *map[int64]uint32:
  16652. var v2 map[int64]uint32
  16653. v2, changed = fastpathTV.DecMapInt64Uint32V(*v, true, d)
  16654. if changed {
  16655. *v = v2
  16656. }
  16657. case map[int64]uint64:
  16658. fastpathTV.DecMapInt64Uint64V(v, false, d)
  16659. case *map[int64]uint64:
  16660. var v2 map[int64]uint64
  16661. v2, changed = fastpathTV.DecMapInt64Uint64V(*v, true, d)
  16662. if changed {
  16663. *v = v2
  16664. }
  16665. case map[int64]uintptr:
  16666. fastpathTV.DecMapInt64UintptrV(v, false, d)
  16667. case *map[int64]uintptr:
  16668. var v2 map[int64]uintptr
  16669. v2, changed = fastpathTV.DecMapInt64UintptrV(*v, true, d)
  16670. if changed {
  16671. *v = v2
  16672. }
  16673. case map[int64]int:
  16674. fastpathTV.DecMapInt64IntV(v, false, d)
  16675. case *map[int64]int:
  16676. var v2 map[int64]int
  16677. v2, changed = fastpathTV.DecMapInt64IntV(*v, true, d)
  16678. if changed {
  16679. *v = v2
  16680. }
  16681. case map[int64]int8:
  16682. fastpathTV.DecMapInt64Int8V(v, false, d)
  16683. case *map[int64]int8:
  16684. var v2 map[int64]int8
  16685. v2, changed = fastpathTV.DecMapInt64Int8V(*v, true, d)
  16686. if changed {
  16687. *v = v2
  16688. }
  16689. case map[int64]int16:
  16690. fastpathTV.DecMapInt64Int16V(v, false, d)
  16691. case *map[int64]int16:
  16692. var v2 map[int64]int16
  16693. v2, changed = fastpathTV.DecMapInt64Int16V(*v, true, d)
  16694. if changed {
  16695. *v = v2
  16696. }
  16697. case map[int64]int32:
  16698. fastpathTV.DecMapInt64Int32V(v, false, d)
  16699. case *map[int64]int32:
  16700. var v2 map[int64]int32
  16701. v2, changed = fastpathTV.DecMapInt64Int32V(*v, true, d)
  16702. if changed {
  16703. *v = v2
  16704. }
  16705. case map[int64]int64:
  16706. fastpathTV.DecMapInt64Int64V(v, false, d)
  16707. case *map[int64]int64:
  16708. var v2 map[int64]int64
  16709. v2, changed = fastpathTV.DecMapInt64Int64V(*v, true, d)
  16710. if changed {
  16711. *v = v2
  16712. }
  16713. case map[int64]float32:
  16714. fastpathTV.DecMapInt64Float32V(v, false, d)
  16715. case *map[int64]float32:
  16716. var v2 map[int64]float32
  16717. v2, changed = fastpathTV.DecMapInt64Float32V(*v, true, d)
  16718. if changed {
  16719. *v = v2
  16720. }
  16721. case map[int64]float64:
  16722. fastpathTV.DecMapInt64Float64V(v, false, d)
  16723. case *map[int64]float64:
  16724. var v2 map[int64]float64
  16725. v2, changed = fastpathTV.DecMapInt64Float64V(*v, true, d)
  16726. if changed {
  16727. *v = v2
  16728. }
  16729. case map[int64]bool:
  16730. fastpathTV.DecMapInt64BoolV(v, false, d)
  16731. case *map[int64]bool:
  16732. var v2 map[int64]bool
  16733. v2, changed = fastpathTV.DecMapInt64BoolV(*v, true, d)
  16734. if changed {
  16735. *v = v2
  16736. }
  16737. case map[bool]interface{}:
  16738. fastpathTV.DecMapBoolIntfV(v, false, d)
  16739. case *map[bool]interface{}:
  16740. var v2 map[bool]interface{}
  16741. v2, changed = fastpathTV.DecMapBoolIntfV(*v, true, d)
  16742. if changed {
  16743. *v = v2
  16744. }
  16745. case map[bool]string:
  16746. fastpathTV.DecMapBoolStringV(v, false, d)
  16747. case *map[bool]string:
  16748. var v2 map[bool]string
  16749. v2, changed = fastpathTV.DecMapBoolStringV(*v, true, d)
  16750. if changed {
  16751. *v = v2
  16752. }
  16753. case map[bool]uint:
  16754. fastpathTV.DecMapBoolUintV(v, false, d)
  16755. case *map[bool]uint:
  16756. var v2 map[bool]uint
  16757. v2, changed = fastpathTV.DecMapBoolUintV(*v, true, d)
  16758. if changed {
  16759. *v = v2
  16760. }
  16761. case map[bool]uint8:
  16762. fastpathTV.DecMapBoolUint8V(v, false, d)
  16763. case *map[bool]uint8:
  16764. var v2 map[bool]uint8
  16765. v2, changed = fastpathTV.DecMapBoolUint8V(*v, true, d)
  16766. if changed {
  16767. *v = v2
  16768. }
  16769. case map[bool]uint16:
  16770. fastpathTV.DecMapBoolUint16V(v, false, d)
  16771. case *map[bool]uint16:
  16772. var v2 map[bool]uint16
  16773. v2, changed = fastpathTV.DecMapBoolUint16V(*v, true, d)
  16774. if changed {
  16775. *v = v2
  16776. }
  16777. case map[bool]uint32:
  16778. fastpathTV.DecMapBoolUint32V(v, false, d)
  16779. case *map[bool]uint32:
  16780. var v2 map[bool]uint32
  16781. v2, changed = fastpathTV.DecMapBoolUint32V(*v, true, d)
  16782. if changed {
  16783. *v = v2
  16784. }
  16785. case map[bool]uint64:
  16786. fastpathTV.DecMapBoolUint64V(v, false, d)
  16787. case *map[bool]uint64:
  16788. var v2 map[bool]uint64
  16789. v2, changed = fastpathTV.DecMapBoolUint64V(*v, true, d)
  16790. if changed {
  16791. *v = v2
  16792. }
  16793. case map[bool]uintptr:
  16794. fastpathTV.DecMapBoolUintptrV(v, false, d)
  16795. case *map[bool]uintptr:
  16796. var v2 map[bool]uintptr
  16797. v2, changed = fastpathTV.DecMapBoolUintptrV(*v, true, d)
  16798. if changed {
  16799. *v = v2
  16800. }
  16801. case map[bool]int:
  16802. fastpathTV.DecMapBoolIntV(v, false, d)
  16803. case *map[bool]int:
  16804. var v2 map[bool]int
  16805. v2, changed = fastpathTV.DecMapBoolIntV(*v, true, d)
  16806. if changed {
  16807. *v = v2
  16808. }
  16809. case map[bool]int8:
  16810. fastpathTV.DecMapBoolInt8V(v, false, d)
  16811. case *map[bool]int8:
  16812. var v2 map[bool]int8
  16813. v2, changed = fastpathTV.DecMapBoolInt8V(*v, true, d)
  16814. if changed {
  16815. *v = v2
  16816. }
  16817. case map[bool]int16:
  16818. fastpathTV.DecMapBoolInt16V(v, false, d)
  16819. case *map[bool]int16:
  16820. var v2 map[bool]int16
  16821. v2, changed = fastpathTV.DecMapBoolInt16V(*v, true, d)
  16822. if changed {
  16823. *v = v2
  16824. }
  16825. case map[bool]int32:
  16826. fastpathTV.DecMapBoolInt32V(v, false, d)
  16827. case *map[bool]int32:
  16828. var v2 map[bool]int32
  16829. v2, changed = fastpathTV.DecMapBoolInt32V(*v, true, d)
  16830. if changed {
  16831. *v = v2
  16832. }
  16833. case map[bool]int64:
  16834. fastpathTV.DecMapBoolInt64V(v, false, d)
  16835. case *map[bool]int64:
  16836. var v2 map[bool]int64
  16837. v2, changed = fastpathTV.DecMapBoolInt64V(*v, true, d)
  16838. if changed {
  16839. *v = v2
  16840. }
  16841. case map[bool]float32:
  16842. fastpathTV.DecMapBoolFloat32V(v, false, d)
  16843. case *map[bool]float32:
  16844. var v2 map[bool]float32
  16845. v2, changed = fastpathTV.DecMapBoolFloat32V(*v, true, d)
  16846. if changed {
  16847. *v = v2
  16848. }
  16849. case map[bool]float64:
  16850. fastpathTV.DecMapBoolFloat64V(v, false, d)
  16851. case *map[bool]float64:
  16852. var v2 map[bool]float64
  16853. v2, changed = fastpathTV.DecMapBoolFloat64V(*v, true, d)
  16854. if changed {
  16855. *v = v2
  16856. }
  16857. case map[bool]bool:
  16858. fastpathTV.DecMapBoolBoolV(v, false, d)
  16859. case *map[bool]bool:
  16860. var v2 map[bool]bool
  16861. v2, changed = fastpathTV.DecMapBoolBoolV(*v, true, d)
  16862. if changed {
  16863. *v = v2
  16864. }
  16865. default:
  16866. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  16867. return false
  16868. }
  16869. return true
  16870. }
  16871. func fastpathDecodeSetZeroTypeSwitch(iv interface{}) bool {
  16872. switch v := iv.(type) {
  16873. case *[]interface{}:
  16874. *v = nil
  16875. case *[]string:
  16876. *v = nil
  16877. case *[]float32:
  16878. *v = nil
  16879. case *[]float64:
  16880. *v = nil
  16881. case *[]uint:
  16882. *v = nil
  16883. case *[]uint8:
  16884. *v = nil
  16885. case *[]uint16:
  16886. *v = nil
  16887. case *[]uint32:
  16888. *v = nil
  16889. case *[]uint64:
  16890. *v = nil
  16891. case *[]uintptr:
  16892. *v = nil
  16893. case *[]int:
  16894. *v = nil
  16895. case *[]int8:
  16896. *v = nil
  16897. case *[]int16:
  16898. *v = nil
  16899. case *[]int32:
  16900. *v = nil
  16901. case *[]int64:
  16902. *v = nil
  16903. case *[]bool:
  16904. *v = nil
  16905. case *map[interface{}]interface{}:
  16906. *v = nil
  16907. case *map[interface{}]string:
  16908. *v = nil
  16909. case *map[interface{}]uint:
  16910. *v = nil
  16911. case *map[interface{}]uint8:
  16912. *v = nil
  16913. case *map[interface{}]uint16:
  16914. *v = nil
  16915. case *map[interface{}]uint32:
  16916. *v = nil
  16917. case *map[interface{}]uint64:
  16918. *v = nil
  16919. case *map[interface{}]uintptr:
  16920. *v = nil
  16921. case *map[interface{}]int:
  16922. *v = nil
  16923. case *map[interface{}]int8:
  16924. *v = nil
  16925. case *map[interface{}]int16:
  16926. *v = nil
  16927. case *map[interface{}]int32:
  16928. *v = nil
  16929. case *map[interface{}]int64:
  16930. *v = nil
  16931. case *map[interface{}]float32:
  16932. *v = nil
  16933. case *map[interface{}]float64:
  16934. *v = nil
  16935. case *map[interface{}]bool:
  16936. *v = nil
  16937. case *map[string]interface{}:
  16938. *v = nil
  16939. case *map[string]string:
  16940. *v = nil
  16941. case *map[string]uint:
  16942. *v = nil
  16943. case *map[string]uint8:
  16944. *v = nil
  16945. case *map[string]uint16:
  16946. *v = nil
  16947. case *map[string]uint32:
  16948. *v = nil
  16949. case *map[string]uint64:
  16950. *v = nil
  16951. case *map[string]uintptr:
  16952. *v = nil
  16953. case *map[string]int:
  16954. *v = nil
  16955. case *map[string]int8:
  16956. *v = nil
  16957. case *map[string]int16:
  16958. *v = nil
  16959. case *map[string]int32:
  16960. *v = nil
  16961. case *map[string]int64:
  16962. *v = nil
  16963. case *map[string]float32:
  16964. *v = nil
  16965. case *map[string]float64:
  16966. *v = nil
  16967. case *map[string]bool:
  16968. *v = nil
  16969. case *map[float32]interface{}:
  16970. *v = nil
  16971. case *map[float32]string:
  16972. *v = nil
  16973. case *map[float32]uint:
  16974. *v = nil
  16975. case *map[float32]uint8:
  16976. *v = nil
  16977. case *map[float32]uint16:
  16978. *v = nil
  16979. case *map[float32]uint32:
  16980. *v = nil
  16981. case *map[float32]uint64:
  16982. *v = nil
  16983. case *map[float32]uintptr:
  16984. *v = nil
  16985. case *map[float32]int:
  16986. *v = nil
  16987. case *map[float32]int8:
  16988. *v = nil
  16989. case *map[float32]int16:
  16990. *v = nil
  16991. case *map[float32]int32:
  16992. *v = nil
  16993. case *map[float32]int64:
  16994. *v = nil
  16995. case *map[float32]float32:
  16996. *v = nil
  16997. case *map[float32]float64:
  16998. *v = nil
  16999. case *map[float32]bool:
  17000. *v = nil
  17001. case *map[float64]interface{}:
  17002. *v = nil
  17003. case *map[float64]string:
  17004. *v = nil
  17005. case *map[float64]uint:
  17006. *v = nil
  17007. case *map[float64]uint8:
  17008. *v = nil
  17009. case *map[float64]uint16:
  17010. *v = nil
  17011. case *map[float64]uint32:
  17012. *v = nil
  17013. case *map[float64]uint64:
  17014. *v = nil
  17015. case *map[float64]uintptr:
  17016. *v = nil
  17017. case *map[float64]int:
  17018. *v = nil
  17019. case *map[float64]int8:
  17020. *v = nil
  17021. case *map[float64]int16:
  17022. *v = nil
  17023. case *map[float64]int32:
  17024. *v = nil
  17025. case *map[float64]int64:
  17026. *v = nil
  17027. case *map[float64]float32:
  17028. *v = nil
  17029. case *map[float64]float64:
  17030. *v = nil
  17031. case *map[float64]bool:
  17032. *v = nil
  17033. case *map[uint]interface{}:
  17034. *v = nil
  17035. case *map[uint]string:
  17036. *v = nil
  17037. case *map[uint]uint:
  17038. *v = nil
  17039. case *map[uint]uint8:
  17040. *v = nil
  17041. case *map[uint]uint16:
  17042. *v = nil
  17043. case *map[uint]uint32:
  17044. *v = nil
  17045. case *map[uint]uint64:
  17046. *v = nil
  17047. case *map[uint]uintptr:
  17048. *v = nil
  17049. case *map[uint]int:
  17050. *v = nil
  17051. case *map[uint]int8:
  17052. *v = nil
  17053. case *map[uint]int16:
  17054. *v = nil
  17055. case *map[uint]int32:
  17056. *v = nil
  17057. case *map[uint]int64:
  17058. *v = nil
  17059. case *map[uint]float32:
  17060. *v = nil
  17061. case *map[uint]float64:
  17062. *v = nil
  17063. case *map[uint]bool:
  17064. *v = nil
  17065. case *map[uint8]interface{}:
  17066. *v = nil
  17067. case *map[uint8]string:
  17068. *v = nil
  17069. case *map[uint8]uint:
  17070. *v = nil
  17071. case *map[uint8]uint8:
  17072. *v = nil
  17073. case *map[uint8]uint16:
  17074. *v = nil
  17075. case *map[uint8]uint32:
  17076. *v = nil
  17077. case *map[uint8]uint64:
  17078. *v = nil
  17079. case *map[uint8]uintptr:
  17080. *v = nil
  17081. case *map[uint8]int:
  17082. *v = nil
  17083. case *map[uint8]int8:
  17084. *v = nil
  17085. case *map[uint8]int16:
  17086. *v = nil
  17087. case *map[uint8]int32:
  17088. *v = nil
  17089. case *map[uint8]int64:
  17090. *v = nil
  17091. case *map[uint8]float32:
  17092. *v = nil
  17093. case *map[uint8]float64:
  17094. *v = nil
  17095. case *map[uint8]bool:
  17096. *v = nil
  17097. case *map[uint16]interface{}:
  17098. *v = nil
  17099. case *map[uint16]string:
  17100. *v = nil
  17101. case *map[uint16]uint:
  17102. *v = nil
  17103. case *map[uint16]uint8:
  17104. *v = nil
  17105. case *map[uint16]uint16:
  17106. *v = nil
  17107. case *map[uint16]uint32:
  17108. *v = nil
  17109. case *map[uint16]uint64:
  17110. *v = nil
  17111. case *map[uint16]uintptr:
  17112. *v = nil
  17113. case *map[uint16]int:
  17114. *v = nil
  17115. case *map[uint16]int8:
  17116. *v = nil
  17117. case *map[uint16]int16:
  17118. *v = nil
  17119. case *map[uint16]int32:
  17120. *v = nil
  17121. case *map[uint16]int64:
  17122. *v = nil
  17123. case *map[uint16]float32:
  17124. *v = nil
  17125. case *map[uint16]float64:
  17126. *v = nil
  17127. case *map[uint16]bool:
  17128. *v = nil
  17129. case *map[uint32]interface{}:
  17130. *v = nil
  17131. case *map[uint32]string:
  17132. *v = nil
  17133. case *map[uint32]uint:
  17134. *v = nil
  17135. case *map[uint32]uint8:
  17136. *v = nil
  17137. case *map[uint32]uint16:
  17138. *v = nil
  17139. case *map[uint32]uint32:
  17140. *v = nil
  17141. case *map[uint32]uint64:
  17142. *v = nil
  17143. case *map[uint32]uintptr:
  17144. *v = nil
  17145. case *map[uint32]int:
  17146. *v = nil
  17147. case *map[uint32]int8:
  17148. *v = nil
  17149. case *map[uint32]int16:
  17150. *v = nil
  17151. case *map[uint32]int32:
  17152. *v = nil
  17153. case *map[uint32]int64:
  17154. *v = nil
  17155. case *map[uint32]float32:
  17156. *v = nil
  17157. case *map[uint32]float64:
  17158. *v = nil
  17159. case *map[uint32]bool:
  17160. *v = nil
  17161. case *map[uint64]interface{}:
  17162. *v = nil
  17163. case *map[uint64]string:
  17164. *v = nil
  17165. case *map[uint64]uint:
  17166. *v = nil
  17167. case *map[uint64]uint8:
  17168. *v = nil
  17169. case *map[uint64]uint16:
  17170. *v = nil
  17171. case *map[uint64]uint32:
  17172. *v = nil
  17173. case *map[uint64]uint64:
  17174. *v = nil
  17175. case *map[uint64]uintptr:
  17176. *v = nil
  17177. case *map[uint64]int:
  17178. *v = nil
  17179. case *map[uint64]int8:
  17180. *v = nil
  17181. case *map[uint64]int16:
  17182. *v = nil
  17183. case *map[uint64]int32:
  17184. *v = nil
  17185. case *map[uint64]int64:
  17186. *v = nil
  17187. case *map[uint64]float32:
  17188. *v = nil
  17189. case *map[uint64]float64:
  17190. *v = nil
  17191. case *map[uint64]bool:
  17192. *v = nil
  17193. case *map[uintptr]interface{}:
  17194. *v = nil
  17195. case *map[uintptr]string:
  17196. *v = nil
  17197. case *map[uintptr]uint:
  17198. *v = nil
  17199. case *map[uintptr]uint8:
  17200. *v = nil
  17201. case *map[uintptr]uint16:
  17202. *v = nil
  17203. case *map[uintptr]uint32:
  17204. *v = nil
  17205. case *map[uintptr]uint64:
  17206. *v = nil
  17207. case *map[uintptr]uintptr:
  17208. *v = nil
  17209. case *map[uintptr]int:
  17210. *v = nil
  17211. case *map[uintptr]int8:
  17212. *v = nil
  17213. case *map[uintptr]int16:
  17214. *v = nil
  17215. case *map[uintptr]int32:
  17216. *v = nil
  17217. case *map[uintptr]int64:
  17218. *v = nil
  17219. case *map[uintptr]float32:
  17220. *v = nil
  17221. case *map[uintptr]float64:
  17222. *v = nil
  17223. case *map[uintptr]bool:
  17224. *v = nil
  17225. case *map[int]interface{}:
  17226. *v = nil
  17227. case *map[int]string:
  17228. *v = nil
  17229. case *map[int]uint:
  17230. *v = nil
  17231. case *map[int]uint8:
  17232. *v = nil
  17233. case *map[int]uint16:
  17234. *v = nil
  17235. case *map[int]uint32:
  17236. *v = nil
  17237. case *map[int]uint64:
  17238. *v = nil
  17239. case *map[int]uintptr:
  17240. *v = nil
  17241. case *map[int]int:
  17242. *v = nil
  17243. case *map[int]int8:
  17244. *v = nil
  17245. case *map[int]int16:
  17246. *v = nil
  17247. case *map[int]int32:
  17248. *v = nil
  17249. case *map[int]int64:
  17250. *v = nil
  17251. case *map[int]float32:
  17252. *v = nil
  17253. case *map[int]float64:
  17254. *v = nil
  17255. case *map[int]bool:
  17256. *v = nil
  17257. case *map[int8]interface{}:
  17258. *v = nil
  17259. case *map[int8]string:
  17260. *v = nil
  17261. case *map[int8]uint:
  17262. *v = nil
  17263. case *map[int8]uint8:
  17264. *v = nil
  17265. case *map[int8]uint16:
  17266. *v = nil
  17267. case *map[int8]uint32:
  17268. *v = nil
  17269. case *map[int8]uint64:
  17270. *v = nil
  17271. case *map[int8]uintptr:
  17272. *v = nil
  17273. case *map[int8]int:
  17274. *v = nil
  17275. case *map[int8]int8:
  17276. *v = nil
  17277. case *map[int8]int16:
  17278. *v = nil
  17279. case *map[int8]int32:
  17280. *v = nil
  17281. case *map[int8]int64:
  17282. *v = nil
  17283. case *map[int8]float32:
  17284. *v = nil
  17285. case *map[int8]float64:
  17286. *v = nil
  17287. case *map[int8]bool:
  17288. *v = nil
  17289. case *map[int16]interface{}:
  17290. *v = nil
  17291. case *map[int16]string:
  17292. *v = nil
  17293. case *map[int16]uint:
  17294. *v = nil
  17295. case *map[int16]uint8:
  17296. *v = nil
  17297. case *map[int16]uint16:
  17298. *v = nil
  17299. case *map[int16]uint32:
  17300. *v = nil
  17301. case *map[int16]uint64:
  17302. *v = nil
  17303. case *map[int16]uintptr:
  17304. *v = nil
  17305. case *map[int16]int:
  17306. *v = nil
  17307. case *map[int16]int8:
  17308. *v = nil
  17309. case *map[int16]int16:
  17310. *v = nil
  17311. case *map[int16]int32:
  17312. *v = nil
  17313. case *map[int16]int64:
  17314. *v = nil
  17315. case *map[int16]float32:
  17316. *v = nil
  17317. case *map[int16]float64:
  17318. *v = nil
  17319. case *map[int16]bool:
  17320. *v = nil
  17321. case *map[int32]interface{}:
  17322. *v = nil
  17323. case *map[int32]string:
  17324. *v = nil
  17325. case *map[int32]uint:
  17326. *v = nil
  17327. case *map[int32]uint8:
  17328. *v = nil
  17329. case *map[int32]uint16:
  17330. *v = nil
  17331. case *map[int32]uint32:
  17332. *v = nil
  17333. case *map[int32]uint64:
  17334. *v = nil
  17335. case *map[int32]uintptr:
  17336. *v = nil
  17337. case *map[int32]int:
  17338. *v = nil
  17339. case *map[int32]int8:
  17340. *v = nil
  17341. case *map[int32]int16:
  17342. *v = nil
  17343. case *map[int32]int32:
  17344. *v = nil
  17345. case *map[int32]int64:
  17346. *v = nil
  17347. case *map[int32]float32:
  17348. *v = nil
  17349. case *map[int32]float64:
  17350. *v = nil
  17351. case *map[int32]bool:
  17352. *v = nil
  17353. case *map[int64]interface{}:
  17354. *v = nil
  17355. case *map[int64]string:
  17356. *v = nil
  17357. case *map[int64]uint:
  17358. *v = nil
  17359. case *map[int64]uint8:
  17360. *v = nil
  17361. case *map[int64]uint16:
  17362. *v = nil
  17363. case *map[int64]uint32:
  17364. *v = nil
  17365. case *map[int64]uint64:
  17366. *v = nil
  17367. case *map[int64]uintptr:
  17368. *v = nil
  17369. case *map[int64]int:
  17370. *v = nil
  17371. case *map[int64]int8:
  17372. *v = nil
  17373. case *map[int64]int16:
  17374. *v = nil
  17375. case *map[int64]int32:
  17376. *v = nil
  17377. case *map[int64]int64:
  17378. *v = nil
  17379. case *map[int64]float32:
  17380. *v = nil
  17381. case *map[int64]float64:
  17382. *v = nil
  17383. case *map[int64]bool:
  17384. *v = nil
  17385. case *map[bool]interface{}:
  17386. *v = nil
  17387. case *map[bool]string:
  17388. *v = nil
  17389. case *map[bool]uint:
  17390. *v = nil
  17391. case *map[bool]uint8:
  17392. *v = nil
  17393. case *map[bool]uint16:
  17394. *v = nil
  17395. case *map[bool]uint32:
  17396. *v = nil
  17397. case *map[bool]uint64:
  17398. *v = nil
  17399. case *map[bool]uintptr:
  17400. *v = nil
  17401. case *map[bool]int:
  17402. *v = nil
  17403. case *map[bool]int8:
  17404. *v = nil
  17405. case *map[bool]int16:
  17406. *v = nil
  17407. case *map[bool]int32:
  17408. *v = nil
  17409. case *map[bool]int64:
  17410. *v = nil
  17411. case *map[bool]float32:
  17412. *v = nil
  17413. case *map[bool]float64:
  17414. *v = nil
  17415. case *map[bool]bool:
  17416. *v = nil
  17417. default:
  17418. _ = v // workaround https://github.com/golang/go/issues/12927 seen in go1.4
  17419. return false
  17420. }
  17421. return true
  17422. }
  17423. // -- -- fast path functions
  17424. func (d *Decoder) fastpathDecSliceIntfR(f *codecFnInfo, rv reflect.Value) {
  17425. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17426. vp := rv2i(rv).(*[]interface{})
  17427. v, changed := fastpathTV.DecSliceIntfV(*vp, !array, d)
  17428. if changed {
  17429. *vp = v
  17430. }
  17431. } else {
  17432. v := rv2i(rv).([]interface{})
  17433. v2, changed := fastpathTV.DecSliceIntfV(v, !array, d)
  17434. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17435. copy(v, v2)
  17436. }
  17437. }
  17438. }
  17439. func (f fastpathT) DecSliceIntfX(vp *[]interface{}, d *Decoder) {
  17440. v, changed := f.DecSliceIntfV(*vp, true, d)
  17441. if changed {
  17442. *vp = v
  17443. }
  17444. }
  17445. func (_ fastpathT) DecSliceIntfV(v []interface{}, canChange bool, d *Decoder) (_ []interface{}, changed bool) {
  17446. dd := d.d
  17447. slh, containerLenS := d.decSliceHelperStart()
  17448. if containerLenS == 0 {
  17449. if canChange {
  17450. if v == nil {
  17451. v = []interface{}{}
  17452. } else if len(v) != 0 {
  17453. v = v[:0]
  17454. }
  17455. changed = true
  17456. }
  17457. slh.End()
  17458. return v, changed
  17459. }
  17460. d.depthIncr()
  17461. hasLen := containerLenS > 0
  17462. var xlen int
  17463. if hasLen && canChange {
  17464. if containerLenS > cap(v) {
  17465. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17466. if xlen <= cap(v) {
  17467. v = v[:uint(xlen)]
  17468. } else {
  17469. v = make([]interface{}, uint(xlen))
  17470. }
  17471. changed = true
  17472. } else if containerLenS != len(v) {
  17473. v = v[:containerLenS]
  17474. changed = true
  17475. }
  17476. }
  17477. var j int
  17478. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17479. if j == 0 && len(v) == 0 && canChange {
  17480. if hasLen {
  17481. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17482. } else {
  17483. xlen = 8
  17484. }
  17485. v = make([]interface{}, uint(xlen))
  17486. changed = true
  17487. }
  17488. // if indefinite, etc, then expand the slice if necessary
  17489. var decodeIntoBlank bool
  17490. if j >= len(v) {
  17491. if canChange {
  17492. v = append(v, nil)
  17493. changed = true
  17494. } else {
  17495. d.arrayCannotExpand(len(v), j+1)
  17496. decodeIntoBlank = true
  17497. }
  17498. }
  17499. slh.ElemContainerState(j)
  17500. if decodeIntoBlank {
  17501. d.swallow()
  17502. } else if dd.TryDecodeAsNil() {
  17503. v[uint(j)] = nil
  17504. } else {
  17505. d.decode(&v[uint(j)])
  17506. }
  17507. }
  17508. if canChange {
  17509. if j < len(v) {
  17510. v = v[:uint(j)]
  17511. changed = true
  17512. } else if j == 0 && v == nil {
  17513. v = make([]interface{}, 0)
  17514. changed = true
  17515. }
  17516. }
  17517. slh.End()
  17518. d.depthDecr()
  17519. return v, changed
  17520. }
  17521. func (d *Decoder) fastpathDecSliceStringR(f *codecFnInfo, rv reflect.Value) {
  17522. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17523. vp := rv2i(rv).(*[]string)
  17524. v, changed := fastpathTV.DecSliceStringV(*vp, !array, d)
  17525. if changed {
  17526. *vp = v
  17527. }
  17528. } else {
  17529. v := rv2i(rv).([]string)
  17530. v2, changed := fastpathTV.DecSliceStringV(v, !array, d)
  17531. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17532. copy(v, v2)
  17533. }
  17534. }
  17535. }
  17536. func (f fastpathT) DecSliceStringX(vp *[]string, d *Decoder) {
  17537. v, changed := f.DecSliceStringV(*vp, true, d)
  17538. if changed {
  17539. *vp = v
  17540. }
  17541. }
  17542. func (_ fastpathT) DecSliceStringV(v []string, canChange bool, d *Decoder) (_ []string, changed bool) {
  17543. dd := d.d
  17544. slh, containerLenS := d.decSliceHelperStart()
  17545. if containerLenS == 0 {
  17546. if canChange {
  17547. if v == nil {
  17548. v = []string{}
  17549. } else if len(v) != 0 {
  17550. v = v[:0]
  17551. }
  17552. changed = true
  17553. }
  17554. slh.End()
  17555. return v, changed
  17556. }
  17557. d.depthIncr()
  17558. hasLen := containerLenS > 0
  17559. var xlen int
  17560. if hasLen && canChange {
  17561. if containerLenS > cap(v) {
  17562. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17563. if xlen <= cap(v) {
  17564. v = v[:uint(xlen)]
  17565. } else {
  17566. v = make([]string, uint(xlen))
  17567. }
  17568. changed = true
  17569. } else if containerLenS != len(v) {
  17570. v = v[:containerLenS]
  17571. changed = true
  17572. }
  17573. }
  17574. var j int
  17575. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17576. if j == 0 && len(v) == 0 && canChange {
  17577. if hasLen {
  17578. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 16)
  17579. } else {
  17580. xlen = 8
  17581. }
  17582. v = make([]string, uint(xlen))
  17583. changed = true
  17584. }
  17585. // if indefinite, etc, then expand the slice if necessary
  17586. var decodeIntoBlank bool
  17587. if j >= len(v) {
  17588. if canChange {
  17589. v = append(v, "")
  17590. changed = true
  17591. } else {
  17592. d.arrayCannotExpand(len(v), j+1)
  17593. decodeIntoBlank = true
  17594. }
  17595. }
  17596. slh.ElemContainerState(j)
  17597. if decodeIntoBlank {
  17598. d.swallow()
  17599. } else if dd.TryDecodeAsNil() {
  17600. v[uint(j)] = ""
  17601. } else {
  17602. v[uint(j)] = dd.DecodeString()
  17603. }
  17604. }
  17605. if canChange {
  17606. if j < len(v) {
  17607. v = v[:uint(j)]
  17608. changed = true
  17609. } else if j == 0 && v == nil {
  17610. v = make([]string, 0)
  17611. changed = true
  17612. }
  17613. }
  17614. slh.End()
  17615. d.depthDecr()
  17616. return v, changed
  17617. }
  17618. func (d *Decoder) fastpathDecSliceFloat32R(f *codecFnInfo, rv reflect.Value) {
  17619. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17620. vp := rv2i(rv).(*[]float32)
  17621. v, changed := fastpathTV.DecSliceFloat32V(*vp, !array, d)
  17622. if changed {
  17623. *vp = v
  17624. }
  17625. } else {
  17626. v := rv2i(rv).([]float32)
  17627. v2, changed := fastpathTV.DecSliceFloat32V(v, !array, d)
  17628. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17629. copy(v, v2)
  17630. }
  17631. }
  17632. }
  17633. func (f fastpathT) DecSliceFloat32X(vp *[]float32, d *Decoder) {
  17634. v, changed := f.DecSliceFloat32V(*vp, true, d)
  17635. if changed {
  17636. *vp = v
  17637. }
  17638. }
  17639. func (_ fastpathT) DecSliceFloat32V(v []float32, canChange bool, d *Decoder) (_ []float32, changed bool) {
  17640. dd := d.d
  17641. slh, containerLenS := d.decSliceHelperStart()
  17642. if containerLenS == 0 {
  17643. if canChange {
  17644. if v == nil {
  17645. v = []float32{}
  17646. } else if len(v) != 0 {
  17647. v = v[:0]
  17648. }
  17649. changed = true
  17650. }
  17651. slh.End()
  17652. return v, changed
  17653. }
  17654. d.depthIncr()
  17655. hasLen := containerLenS > 0
  17656. var xlen int
  17657. if hasLen && canChange {
  17658. if containerLenS > cap(v) {
  17659. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17660. if xlen <= cap(v) {
  17661. v = v[:uint(xlen)]
  17662. } else {
  17663. v = make([]float32, uint(xlen))
  17664. }
  17665. changed = true
  17666. } else if containerLenS != len(v) {
  17667. v = v[:containerLenS]
  17668. changed = true
  17669. }
  17670. }
  17671. var j int
  17672. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17673. if j == 0 && len(v) == 0 && canChange {
  17674. if hasLen {
  17675. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  17676. } else {
  17677. xlen = 8
  17678. }
  17679. v = make([]float32, uint(xlen))
  17680. changed = true
  17681. }
  17682. // if indefinite, etc, then expand the slice if necessary
  17683. var decodeIntoBlank bool
  17684. if j >= len(v) {
  17685. if canChange {
  17686. v = append(v, 0)
  17687. changed = true
  17688. } else {
  17689. d.arrayCannotExpand(len(v), j+1)
  17690. decodeIntoBlank = true
  17691. }
  17692. }
  17693. slh.ElemContainerState(j)
  17694. if decodeIntoBlank {
  17695. d.swallow()
  17696. } else if dd.TryDecodeAsNil() {
  17697. v[uint(j)] = 0
  17698. } else {
  17699. v[uint(j)] = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  17700. }
  17701. }
  17702. if canChange {
  17703. if j < len(v) {
  17704. v = v[:uint(j)]
  17705. changed = true
  17706. } else if j == 0 && v == nil {
  17707. v = make([]float32, 0)
  17708. changed = true
  17709. }
  17710. }
  17711. slh.End()
  17712. d.depthDecr()
  17713. return v, changed
  17714. }
  17715. func (d *Decoder) fastpathDecSliceFloat64R(f *codecFnInfo, rv reflect.Value) {
  17716. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17717. vp := rv2i(rv).(*[]float64)
  17718. v, changed := fastpathTV.DecSliceFloat64V(*vp, !array, d)
  17719. if changed {
  17720. *vp = v
  17721. }
  17722. } else {
  17723. v := rv2i(rv).([]float64)
  17724. v2, changed := fastpathTV.DecSliceFloat64V(v, !array, d)
  17725. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17726. copy(v, v2)
  17727. }
  17728. }
  17729. }
  17730. func (f fastpathT) DecSliceFloat64X(vp *[]float64, d *Decoder) {
  17731. v, changed := f.DecSliceFloat64V(*vp, true, d)
  17732. if changed {
  17733. *vp = v
  17734. }
  17735. }
  17736. func (_ fastpathT) DecSliceFloat64V(v []float64, canChange bool, d *Decoder) (_ []float64, changed bool) {
  17737. dd := d.d
  17738. slh, containerLenS := d.decSliceHelperStart()
  17739. if containerLenS == 0 {
  17740. if canChange {
  17741. if v == nil {
  17742. v = []float64{}
  17743. } else if len(v) != 0 {
  17744. v = v[:0]
  17745. }
  17746. changed = true
  17747. }
  17748. slh.End()
  17749. return v, changed
  17750. }
  17751. d.depthIncr()
  17752. hasLen := containerLenS > 0
  17753. var xlen int
  17754. if hasLen && canChange {
  17755. if containerLenS > cap(v) {
  17756. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17757. if xlen <= cap(v) {
  17758. v = v[:uint(xlen)]
  17759. } else {
  17760. v = make([]float64, uint(xlen))
  17761. }
  17762. changed = true
  17763. } else if containerLenS != len(v) {
  17764. v = v[:containerLenS]
  17765. changed = true
  17766. }
  17767. }
  17768. var j int
  17769. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17770. if j == 0 && len(v) == 0 && canChange {
  17771. if hasLen {
  17772. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17773. } else {
  17774. xlen = 8
  17775. }
  17776. v = make([]float64, uint(xlen))
  17777. changed = true
  17778. }
  17779. // if indefinite, etc, then expand the slice if necessary
  17780. var decodeIntoBlank bool
  17781. if j >= len(v) {
  17782. if canChange {
  17783. v = append(v, 0)
  17784. changed = true
  17785. } else {
  17786. d.arrayCannotExpand(len(v), j+1)
  17787. decodeIntoBlank = true
  17788. }
  17789. }
  17790. slh.ElemContainerState(j)
  17791. if decodeIntoBlank {
  17792. d.swallow()
  17793. } else if dd.TryDecodeAsNil() {
  17794. v[uint(j)] = 0
  17795. } else {
  17796. v[uint(j)] = dd.DecodeFloat64()
  17797. }
  17798. }
  17799. if canChange {
  17800. if j < len(v) {
  17801. v = v[:uint(j)]
  17802. changed = true
  17803. } else if j == 0 && v == nil {
  17804. v = make([]float64, 0)
  17805. changed = true
  17806. }
  17807. }
  17808. slh.End()
  17809. d.depthDecr()
  17810. return v, changed
  17811. }
  17812. func (d *Decoder) fastpathDecSliceUintR(f *codecFnInfo, rv reflect.Value) {
  17813. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17814. vp := rv2i(rv).(*[]uint)
  17815. v, changed := fastpathTV.DecSliceUintV(*vp, !array, d)
  17816. if changed {
  17817. *vp = v
  17818. }
  17819. } else {
  17820. v := rv2i(rv).([]uint)
  17821. v2, changed := fastpathTV.DecSliceUintV(v, !array, d)
  17822. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17823. copy(v, v2)
  17824. }
  17825. }
  17826. }
  17827. func (f fastpathT) DecSliceUintX(vp *[]uint, d *Decoder) {
  17828. v, changed := f.DecSliceUintV(*vp, true, d)
  17829. if changed {
  17830. *vp = v
  17831. }
  17832. }
  17833. func (_ fastpathT) DecSliceUintV(v []uint, canChange bool, d *Decoder) (_ []uint, changed bool) {
  17834. dd := d.d
  17835. slh, containerLenS := d.decSliceHelperStart()
  17836. if containerLenS == 0 {
  17837. if canChange {
  17838. if v == nil {
  17839. v = []uint{}
  17840. } else if len(v) != 0 {
  17841. v = v[:0]
  17842. }
  17843. changed = true
  17844. }
  17845. slh.End()
  17846. return v, changed
  17847. }
  17848. d.depthIncr()
  17849. hasLen := containerLenS > 0
  17850. var xlen int
  17851. if hasLen && canChange {
  17852. if containerLenS > cap(v) {
  17853. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17854. if xlen <= cap(v) {
  17855. v = v[:uint(xlen)]
  17856. } else {
  17857. v = make([]uint, uint(xlen))
  17858. }
  17859. changed = true
  17860. } else if containerLenS != len(v) {
  17861. v = v[:containerLenS]
  17862. changed = true
  17863. }
  17864. }
  17865. var j int
  17866. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17867. if j == 0 && len(v) == 0 && canChange {
  17868. if hasLen {
  17869. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  17870. } else {
  17871. xlen = 8
  17872. }
  17873. v = make([]uint, uint(xlen))
  17874. changed = true
  17875. }
  17876. // if indefinite, etc, then expand the slice if necessary
  17877. var decodeIntoBlank bool
  17878. if j >= len(v) {
  17879. if canChange {
  17880. v = append(v, 0)
  17881. changed = true
  17882. } else {
  17883. d.arrayCannotExpand(len(v), j+1)
  17884. decodeIntoBlank = true
  17885. }
  17886. }
  17887. slh.ElemContainerState(j)
  17888. if decodeIntoBlank {
  17889. d.swallow()
  17890. } else if dd.TryDecodeAsNil() {
  17891. v[uint(j)] = 0
  17892. } else {
  17893. v[uint(j)] = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  17894. }
  17895. }
  17896. if canChange {
  17897. if j < len(v) {
  17898. v = v[:uint(j)]
  17899. changed = true
  17900. } else if j == 0 && v == nil {
  17901. v = make([]uint, 0)
  17902. changed = true
  17903. }
  17904. }
  17905. slh.End()
  17906. d.depthDecr()
  17907. return v, changed
  17908. }
  17909. func (d *Decoder) fastpathDecSliceUint8R(f *codecFnInfo, rv reflect.Value) {
  17910. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  17911. vp := rv2i(rv).(*[]uint8)
  17912. v, changed := fastpathTV.DecSliceUint8V(*vp, !array, d)
  17913. if changed {
  17914. *vp = v
  17915. }
  17916. } else {
  17917. v := rv2i(rv).([]uint8)
  17918. v2, changed := fastpathTV.DecSliceUint8V(v, !array, d)
  17919. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  17920. copy(v, v2)
  17921. }
  17922. }
  17923. }
  17924. func (f fastpathT) DecSliceUint8X(vp *[]uint8, d *Decoder) {
  17925. v, changed := f.DecSliceUint8V(*vp, true, d)
  17926. if changed {
  17927. *vp = v
  17928. }
  17929. }
  17930. func (_ fastpathT) DecSliceUint8V(v []uint8, canChange bool, d *Decoder) (_ []uint8, changed bool) {
  17931. dd := d.d
  17932. slh, containerLenS := d.decSliceHelperStart()
  17933. if containerLenS == 0 {
  17934. if canChange {
  17935. if v == nil {
  17936. v = []uint8{}
  17937. } else if len(v) != 0 {
  17938. v = v[:0]
  17939. }
  17940. changed = true
  17941. }
  17942. slh.End()
  17943. return v, changed
  17944. }
  17945. d.depthIncr()
  17946. hasLen := containerLenS > 0
  17947. var xlen int
  17948. if hasLen && canChange {
  17949. if containerLenS > cap(v) {
  17950. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17951. if xlen <= cap(v) {
  17952. v = v[:uint(xlen)]
  17953. } else {
  17954. v = make([]uint8, uint(xlen))
  17955. }
  17956. changed = true
  17957. } else if containerLenS != len(v) {
  17958. v = v[:containerLenS]
  17959. changed = true
  17960. }
  17961. }
  17962. var j int
  17963. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  17964. if j == 0 && len(v) == 0 && canChange {
  17965. if hasLen {
  17966. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  17967. } else {
  17968. xlen = 8
  17969. }
  17970. v = make([]uint8, uint(xlen))
  17971. changed = true
  17972. }
  17973. // if indefinite, etc, then expand the slice if necessary
  17974. var decodeIntoBlank bool
  17975. if j >= len(v) {
  17976. if canChange {
  17977. v = append(v, 0)
  17978. changed = true
  17979. } else {
  17980. d.arrayCannotExpand(len(v), j+1)
  17981. decodeIntoBlank = true
  17982. }
  17983. }
  17984. slh.ElemContainerState(j)
  17985. if decodeIntoBlank {
  17986. d.swallow()
  17987. } else if dd.TryDecodeAsNil() {
  17988. v[uint(j)] = 0
  17989. } else {
  17990. v[uint(j)] = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  17991. }
  17992. }
  17993. if canChange {
  17994. if j < len(v) {
  17995. v = v[:uint(j)]
  17996. changed = true
  17997. } else if j == 0 && v == nil {
  17998. v = make([]uint8, 0)
  17999. changed = true
  18000. }
  18001. }
  18002. slh.End()
  18003. d.depthDecr()
  18004. return v, changed
  18005. }
  18006. func (d *Decoder) fastpathDecSliceUint16R(f *codecFnInfo, rv reflect.Value) {
  18007. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18008. vp := rv2i(rv).(*[]uint16)
  18009. v, changed := fastpathTV.DecSliceUint16V(*vp, !array, d)
  18010. if changed {
  18011. *vp = v
  18012. }
  18013. } else {
  18014. v := rv2i(rv).([]uint16)
  18015. v2, changed := fastpathTV.DecSliceUint16V(v, !array, d)
  18016. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18017. copy(v, v2)
  18018. }
  18019. }
  18020. }
  18021. func (f fastpathT) DecSliceUint16X(vp *[]uint16, d *Decoder) {
  18022. v, changed := f.DecSliceUint16V(*vp, true, d)
  18023. if changed {
  18024. *vp = v
  18025. }
  18026. }
  18027. func (_ fastpathT) DecSliceUint16V(v []uint16, canChange bool, d *Decoder) (_ []uint16, changed bool) {
  18028. dd := d.d
  18029. slh, containerLenS := d.decSliceHelperStart()
  18030. if containerLenS == 0 {
  18031. if canChange {
  18032. if v == nil {
  18033. v = []uint16{}
  18034. } else if len(v) != 0 {
  18035. v = v[:0]
  18036. }
  18037. changed = true
  18038. }
  18039. slh.End()
  18040. return v, changed
  18041. }
  18042. d.depthIncr()
  18043. hasLen := containerLenS > 0
  18044. var xlen int
  18045. if hasLen && canChange {
  18046. if containerLenS > cap(v) {
  18047. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18048. if xlen <= cap(v) {
  18049. v = v[:uint(xlen)]
  18050. } else {
  18051. v = make([]uint16, uint(xlen))
  18052. }
  18053. changed = true
  18054. } else if containerLenS != len(v) {
  18055. v = v[:containerLenS]
  18056. changed = true
  18057. }
  18058. }
  18059. var j int
  18060. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18061. if j == 0 && len(v) == 0 && canChange {
  18062. if hasLen {
  18063. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18064. } else {
  18065. xlen = 8
  18066. }
  18067. v = make([]uint16, uint(xlen))
  18068. changed = true
  18069. }
  18070. // if indefinite, etc, then expand the slice if necessary
  18071. var decodeIntoBlank bool
  18072. if j >= len(v) {
  18073. if canChange {
  18074. v = append(v, 0)
  18075. changed = true
  18076. } else {
  18077. d.arrayCannotExpand(len(v), j+1)
  18078. decodeIntoBlank = true
  18079. }
  18080. }
  18081. slh.ElemContainerState(j)
  18082. if decodeIntoBlank {
  18083. d.swallow()
  18084. } else if dd.TryDecodeAsNil() {
  18085. v[uint(j)] = 0
  18086. } else {
  18087. v[uint(j)] = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  18088. }
  18089. }
  18090. if canChange {
  18091. if j < len(v) {
  18092. v = v[:uint(j)]
  18093. changed = true
  18094. } else if j == 0 && v == nil {
  18095. v = make([]uint16, 0)
  18096. changed = true
  18097. }
  18098. }
  18099. slh.End()
  18100. d.depthDecr()
  18101. return v, changed
  18102. }
  18103. func (d *Decoder) fastpathDecSliceUint32R(f *codecFnInfo, rv reflect.Value) {
  18104. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18105. vp := rv2i(rv).(*[]uint32)
  18106. v, changed := fastpathTV.DecSliceUint32V(*vp, !array, d)
  18107. if changed {
  18108. *vp = v
  18109. }
  18110. } else {
  18111. v := rv2i(rv).([]uint32)
  18112. v2, changed := fastpathTV.DecSliceUint32V(v, !array, d)
  18113. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18114. copy(v, v2)
  18115. }
  18116. }
  18117. }
  18118. func (f fastpathT) DecSliceUint32X(vp *[]uint32, d *Decoder) {
  18119. v, changed := f.DecSliceUint32V(*vp, true, d)
  18120. if changed {
  18121. *vp = v
  18122. }
  18123. }
  18124. func (_ fastpathT) DecSliceUint32V(v []uint32, canChange bool, d *Decoder) (_ []uint32, changed bool) {
  18125. dd := d.d
  18126. slh, containerLenS := d.decSliceHelperStart()
  18127. if containerLenS == 0 {
  18128. if canChange {
  18129. if v == nil {
  18130. v = []uint32{}
  18131. } else if len(v) != 0 {
  18132. v = v[:0]
  18133. }
  18134. changed = true
  18135. }
  18136. slh.End()
  18137. return v, changed
  18138. }
  18139. d.depthIncr()
  18140. hasLen := containerLenS > 0
  18141. var xlen int
  18142. if hasLen && canChange {
  18143. if containerLenS > cap(v) {
  18144. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18145. if xlen <= cap(v) {
  18146. v = v[:uint(xlen)]
  18147. } else {
  18148. v = make([]uint32, uint(xlen))
  18149. }
  18150. changed = true
  18151. } else if containerLenS != len(v) {
  18152. v = v[:containerLenS]
  18153. changed = true
  18154. }
  18155. }
  18156. var j int
  18157. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18158. if j == 0 && len(v) == 0 && canChange {
  18159. if hasLen {
  18160. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18161. } else {
  18162. xlen = 8
  18163. }
  18164. v = make([]uint32, uint(xlen))
  18165. changed = true
  18166. }
  18167. // if indefinite, etc, then expand the slice if necessary
  18168. var decodeIntoBlank bool
  18169. if j >= len(v) {
  18170. if canChange {
  18171. v = append(v, 0)
  18172. changed = true
  18173. } else {
  18174. d.arrayCannotExpand(len(v), j+1)
  18175. decodeIntoBlank = true
  18176. }
  18177. }
  18178. slh.ElemContainerState(j)
  18179. if decodeIntoBlank {
  18180. d.swallow()
  18181. } else if dd.TryDecodeAsNil() {
  18182. v[uint(j)] = 0
  18183. } else {
  18184. v[uint(j)] = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  18185. }
  18186. }
  18187. if canChange {
  18188. if j < len(v) {
  18189. v = v[:uint(j)]
  18190. changed = true
  18191. } else if j == 0 && v == nil {
  18192. v = make([]uint32, 0)
  18193. changed = true
  18194. }
  18195. }
  18196. slh.End()
  18197. d.depthDecr()
  18198. return v, changed
  18199. }
  18200. func (d *Decoder) fastpathDecSliceUint64R(f *codecFnInfo, rv reflect.Value) {
  18201. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18202. vp := rv2i(rv).(*[]uint64)
  18203. v, changed := fastpathTV.DecSliceUint64V(*vp, !array, d)
  18204. if changed {
  18205. *vp = v
  18206. }
  18207. } else {
  18208. v := rv2i(rv).([]uint64)
  18209. v2, changed := fastpathTV.DecSliceUint64V(v, !array, d)
  18210. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18211. copy(v, v2)
  18212. }
  18213. }
  18214. }
  18215. func (f fastpathT) DecSliceUint64X(vp *[]uint64, d *Decoder) {
  18216. v, changed := f.DecSliceUint64V(*vp, true, d)
  18217. if changed {
  18218. *vp = v
  18219. }
  18220. }
  18221. func (_ fastpathT) DecSliceUint64V(v []uint64, canChange bool, d *Decoder) (_ []uint64, changed bool) {
  18222. dd := d.d
  18223. slh, containerLenS := d.decSliceHelperStart()
  18224. if containerLenS == 0 {
  18225. if canChange {
  18226. if v == nil {
  18227. v = []uint64{}
  18228. } else if len(v) != 0 {
  18229. v = v[:0]
  18230. }
  18231. changed = true
  18232. }
  18233. slh.End()
  18234. return v, changed
  18235. }
  18236. d.depthIncr()
  18237. hasLen := containerLenS > 0
  18238. var xlen int
  18239. if hasLen && canChange {
  18240. if containerLenS > cap(v) {
  18241. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18242. if xlen <= cap(v) {
  18243. v = v[:uint(xlen)]
  18244. } else {
  18245. v = make([]uint64, uint(xlen))
  18246. }
  18247. changed = true
  18248. } else if containerLenS != len(v) {
  18249. v = v[:containerLenS]
  18250. changed = true
  18251. }
  18252. }
  18253. var j int
  18254. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18255. if j == 0 && len(v) == 0 && canChange {
  18256. if hasLen {
  18257. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18258. } else {
  18259. xlen = 8
  18260. }
  18261. v = make([]uint64, uint(xlen))
  18262. changed = true
  18263. }
  18264. // if indefinite, etc, then expand the slice if necessary
  18265. var decodeIntoBlank bool
  18266. if j >= len(v) {
  18267. if canChange {
  18268. v = append(v, 0)
  18269. changed = true
  18270. } else {
  18271. d.arrayCannotExpand(len(v), j+1)
  18272. decodeIntoBlank = true
  18273. }
  18274. }
  18275. slh.ElemContainerState(j)
  18276. if decodeIntoBlank {
  18277. d.swallow()
  18278. } else if dd.TryDecodeAsNil() {
  18279. v[uint(j)] = 0
  18280. } else {
  18281. v[uint(j)] = dd.DecodeUint64()
  18282. }
  18283. }
  18284. if canChange {
  18285. if j < len(v) {
  18286. v = v[:uint(j)]
  18287. changed = true
  18288. } else if j == 0 && v == nil {
  18289. v = make([]uint64, 0)
  18290. changed = true
  18291. }
  18292. }
  18293. slh.End()
  18294. d.depthDecr()
  18295. return v, changed
  18296. }
  18297. func (d *Decoder) fastpathDecSliceUintptrR(f *codecFnInfo, rv reflect.Value) {
  18298. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18299. vp := rv2i(rv).(*[]uintptr)
  18300. v, changed := fastpathTV.DecSliceUintptrV(*vp, !array, d)
  18301. if changed {
  18302. *vp = v
  18303. }
  18304. } else {
  18305. v := rv2i(rv).([]uintptr)
  18306. v2, changed := fastpathTV.DecSliceUintptrV(v, !array, d)
  18307. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18308. copy(v, v2)
  18309. }
  18310. }
  18311. }
  18312. func (f fastpathT) DecSliceUintptrX(vp *[]uintptr, d *Decoder) {
  18313. v, changed := f.DecSliceUintptrV(*vp, true, d)
  18314. if changed {
  18315. *vp = v
  18316. }
  18317. }
  18318. func (_ fastpathT) DecSliceUintptrV(v []uintptr, canChange bool, d *Decoder) (_ []uintptr, changed bool) {
  18319. dd := d.d
  18320. slh, containerLenS := d.decSliceHelperStart()
  18321. if containerLenS == 0 {
  18322. if canChange {
  18323. if v == nil {
  18324. v = []uintptr{}
  18325. } else if len(v) != 0 {
  18326. v = v[:0]
  18327. }
  18328. changed = true
  18329. }
  18330. slh.End()
  18331. return v, changed
  18332. }
  18333. d.depthIncr()
  18334. hasLen := containerLenS > 0
  18335. var xlen int
  18336. if hasLen && canChange {
  18337. if containerLenS > cap(v) {
  18338. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18339. if xlen <= cap(v) {
  18340. v = v[:uint(xlen)]
  18341. } else {
  18342. v = make([]uintptr, uint(xlen))
  18343. }
  18344. changed = true
  18345. } else if containerLenS != len(v) {
  18346. v = v[:containerLenS]
  18347. changed = true
  18348. }
  18349. }
  18350. var j int
  18351. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18352. if j == 0 && len(v) == 0 && canChange {
  18353. if hasLen {
  18354. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18355. } else {
  18356. xlen = 8
  18357. }
  18358. v = make([]uintptr, uint(xlen))
  18359. changed = true
  18360. }
  18361. // if indefinite, etc, then expand the slice if necessary
  18362. var decodeIntoBlank bool
  18363. if j >= len(v) {
  18364. if canChange {
  18365. v = append(v, 0)
  18366. changed = true
  18367. } else {
  18368. d.arrayCannotExpand(len(v), j+1)
  18369. decodeIntoBlank = true
  18370. }
  18371. }
  18372. slh.ElemContainerState(j)
  18373. if decodeIntoBlank {
  18374. d.swallow()
  18375. } else if dd.TryDecodeAsNil() {
  18376. v[uint(j)] = 0
  18377. } else {
  18378. v[uint(j)] = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  18379. }
  18380. }
  18381. if canChange {
  18382. if j < len(v) {
  18383. v = v[:uint(j)]
  18384. changed = true
  18385. } else if j == 0 && v == nil {
  18386. v = make([]uintptr, 0)
  18387. changed = true
  18388. }
  18389. }
  18390. slh.End()
  18391. d.depthDecr()
  18392. return v, changed
  18393. }
  18394. func (d *Decoder) fastpathDecSliceIntR(f *codecFnInfo, rv reflect.Value) {
  18395. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18396. vp := rv2i(rv).(*[]int)
  18397. v, changed := fastpathTV.DecSliceIntV(*vp, !array, d)
  18398. if changed {
  18399. *vp = v
  18400. }
  18401. } else {
  18402. v := rv2i(rv).([]int)
  18403. v2, changed := fastpathTV.DecSliceIntV(v, !array, d)
  18404. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18405. copy(v, v2)
  18406. }
  18407. }
  18408. }
  18409. func (f fastpathT) DecSliceIntX(vp *[]int, d *Decoder) {
  18410. v, changed := f.DecSliceIntV(*vp, true, d)
  18411. if changed {
  18412. *vp = v
  18413. }
  18414. }
  18415. func (_ fastpathT) DecSliceIntV(v []int, canChange bool, d *Decoder) (_ []int, changed bool) {
  18416. dd := d.d
  18417. slh, containerLenS := d.decSliceHelperStart()
  18418. if containerLenS == 0 {
  18419. if canChange {
  18420. if v == nil {
  18421. v = []int{}
  18422. } else if len(v) != 0 {
  18423. v = v[:0]
  18424. }
  18425. changed = true
  18426. }
  18427. slh.End()
  18428. return v, changed
  18429. }
  18430. d.depthIncr()
  18431. hasLen := containerLenS > 0
  18432. var xlen int
  18433. if hasLen && canChange {
  18434. if containerLenS > cap(v) {
  18435. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18436. if xlen <= cap(v) {
  18437. v = v[:uint(xlen)]
  18438. } else {
  18439. v = make([]int, uint(xlen))
  18440. }
  18441. changed = true
  18442. } else if containerLenS != len(v) {
  18443. v = v[:containerLenS]
  18444. changed = true
  18445. }
  18446. }
  18447. var j int
  18448. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18449. if j == 0 && len(v) == 0 && canChange {
  18450. if hasLen {
  18451. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18452. } else {
  18453. xlen = 8
  18454. }
  18455. v = make([]int, uint(xlen))
  18456. changed = true
  18457. }
  18458. // if indefinite, etc, then expand the slice if necessary
  18459. var decodeIntoBlank bool
  18460. if j >= len(v) {
  18461. if canChange {
  18462. v = append(v, 0)
  18463. changed = true
  18464. } else {
  18465. d.arrayCannotExpand(len(v), j+1)
  18466. decodeIntoBlank = true
  18467. }
  18468. }
  18469. slh.ElemContainerState(j)
  18470. if decodeIntoBlank {
  18471. d.swallow()
  18472. } else if dd.TryDecodeAsNil() {
  18473. v[uint(j)] = 0
  18474. } else {
  18475. v[uint(j)] = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  18476. }
  18477. }
  18478. if canChange {
  18479. if j < len(v) {
  18480. v = v[:uint(j)]
  18481. changed = true
  18482. } else if j == 0 && v == nil {
  18483. v = make([]int, 0)
  18484. changed = true
  18485. }
  18486. }
  18487. slh.End()
  18488. d.depthDecr()
  18489. return v, changed
  18490. }
  18491. func (d *Decoder) fastpathDecSliceInt8R(f *codecFnInfo, rv reflect.Value) {
  18492. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18493. vp := rv2i(rv).(*[]int8)
  18494. v, changed := fastpathTV.DecSliceInt8V(*vp, !array, d)
  18495. if changed {
  18496. *vp = v
  18497. }
  18498. } else {
  18499. v := rv2i(rv).([]int8)
  18500. v2, changed := fastpathTV.DecSliceInt8V(v, !array, d)
  18501. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18502. copy(v, v2)
  18503. }
  18504. }
  18505. }
  18506. func (f fastpathT) DecSliceInt8X(vp *[]int8, d *Decoder) {
  18507. v, changed := f.DecSliceInt8V(*vp, true, d)
  18508. if changed {
  18509. *vp = v
  18510. }
  18511. }
  18512. func (_ fastpathT) DecSliceInt8V(v []int8, canChange bool, d *Decoder) (_ []int8, changed bool) {
  18513. dd := d.d
  18514. slh, containerLenS := d.decSliceHelperStart()
  18515. if containerLenS == 0 {
  18516. if canChange {
  18517. if v == nil {
  18518. v = []int8{}
  18519. } else if len(v) != 0 {
  18520. v = v[:0]
  18521. }
  18522. changed = true
  18523. }
  18524. slh.End()
  18525. return v, changed
  18526. }
  18527. d.depthIncr()
  18528. hasLen := containerLenS > 0
  18529. var xlen int
  18530. if hasLen && canChange {
  18531. if containerLenS > cap(v) {
  18532. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18533. if xlen <= cap(v) {
  18534. v = v[:uint(xlen)]
  18535. } else {
  18536. v = make([]int8, uint(xlen))
  18537. }
  18538. changed = true
  18539. } else if containerLenS != len(v) {
  18540. v = v[:containerLenS]
  18541. changed = true
  18542. }
  18543. }
  18544. var j int
  18545. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18546. if j == 0 && len(v) == 0 && canChange {
  18547. if hasLen {
  18548. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18549. } else {
  18550. xlen = 8
  18551. }
  18552. v = make([]int8, uint(xlen))
  18553. changed = true
  18554. }
  18555. // if indefinite, etc, then expand the slice if necessary
  18556. var decodeIntoBlank bool
  18557. if j >= len(v) {
  18558. if canChange {
  18559. v = append(v, 0)
  18560. changed = true
  18561. } else {
  18562. d.arrayCannotExpand(len(v), j+1)
  18563. decodeIntoBlank = true
  18564. }
  18565. }
  18566. slh.ElemContainerState(j)
  18567. if decodeIntoBlank {
  18568. d.swallow()
  18569. } else if dd.TryDecodeAsNil() {
  18570. v[uint(j)] = 0
  18571. } else {
  18572. v[uint(j)] = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  18573. }
  18574. }
  18575. if canChange {
  18576. if j < len(v) {
  18577. v = v[:uint(j)]
  18578. changed = true
  18579. } else if j == 0 && v == nil {
  18580. v = make([]int8, 0)
  18581. changed = true
  18582. }
  18583. }
  18584. slh.End()
  18585. d.depthDecr()
  18586. return v, changed
  18587. }
  18588. func (d *Decoder) fastpathDecSliceInt16R(f *codecFnInfo, rv reflect.Value) {
  18589. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18590. vp := rv2i(rv).(*[]int16)
  18591. v, changed := fastpathTV.DecSliceInt16V(*vp, !array, d)
  18592. if changed {
  18593. *vp = v
  18594. }
  18595. } else {
  18596. v := rv2i(rv).([]int16)
  18597. v2, changed := fastpathTV.DecSliceInt16V(v, !array, d)
  18598. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18599. copy(v, v2)
  18600. }
  18601. }
  18602. }
  18603. func (f fastpathT) DecSliceInt16X(vp *[]int16, d *Decoder) {
  18604. v, changed := f.DecSliceInt16V(*vp, true, d)
  18605. if changed {
  18606. *vp = v
  18607. }
  18608. }
  18609. func (_ fastpathT) DecSliceInt16V(v []int16, canChange bool, d *Decoder) (_ []int16, changed bool) {
  18610. dd := d.d
  18611. slh, containerLenS := d.decSliceHelperStart()
  18612. if containerLenS == 0 {
  18613. if canChange {
  18614. if v == nil {
  18615. v = []int16{}
  18616. } else if len(v) != 0 {
  18617. v = v[:0]
  18618. }
  18619. changed = true
  18620. }
  18621. slh.End()
  18622. return v, changed
  18623. }
  18624. d.depthIncr()
  18625. hasLen := containerLenS > 0
  18626. var xlen int
  18627. if hasLen && canChange {
  18628. if containerLenS > cap(v) {
  18629. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18630. if xlen <= cap(v) {
  18631. v = v[:uint(xlen)]
  18632. } else {
  18633. v = make([]int16, uint(xlen))
  18634. }
  18635. changed = true
  18636. } else if containerLenS != len(v) {
  18637. v = v[:containerLenS]
  18638. changed = true
  18639. }
  18640. }
  18641. var j int
  18642. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18643. if j == 0 && len(v) == 0 && canChange {
  18644. if hasLen {
  18645. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 2)
  18646. } else {
  18647. xlen = 8
  18648. }
  18649. v = make([]int16, uint(xlen))
  18650. changed = true
  18651. }
  18652. // if indefinite, etc, then expand the slice if necessary
  18653. var decodeIntoBlank bool
  18654. if j >= len(v) {
  18655. if canChange {
  18656. v = append(v, 0)
  18657. changed = true
  18658. } else {
  18659. d.arrayCannotExpand(len(v), j+1)
  18660. decodeIntoBlank = true
  18661. }
  18662. }
  18663. slh.ElemContainerState(j)
  18664. if decodeIntoBlank {
  18665. d.swallow()
  18666. } else if dd.TryDecodeAsNil() {
  18667. v[uint(j)] = 0
  18668. } else {
  18669. v[uint(j)] = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  18670. }
  18671. }
  18672. if canChange {
  18673. if j < len(v) {
  18674. v = v[:uint(j)]
  18675. changed = true
  18676. } else if j == 0 && v == nil {
  18677. v = make([]int16, 0)
  18678. changed = true
  18679. }
  18680. }
  18681. slh.End()
  18682. d.depthDecr()
  18683. return v, changed
  18684. }
  18685. func (d *Decoder) fastpathDecSliceInt32R(f *codecFnInfo, rv reflect.Value) {
  18686. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18687. vp := rv2i(rv).(*[]int32)
  18688. v, changed := fastpathTV.DecSliceInt32V(*vp, !array, d)
  18689. if changed {
  18690. *vp = v
  18691. }
  18692. } else {
  18693. v := rv2i(rv).([]int32)
  18694. v2, changed := fastpathTV.DecSliceInt32V(v, !array, d)
  18695. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18696. copy(v, v2)
  18697. }
  18698. }
  18699. }
  18700. func (f fastpathT) DecSliceInt32X(vp *[]int32, d *Decoder) {
  18701. v, changed := f.DecSliceInt32V(*vp, true, d)
  18702. if changed {
  18703. *vp = v
  18704. }
  18705. }
  18706. func (_ fastpathT) DecSliceInt32V(v []int32, canChange bool, d *Decoder) (_ []int32, changed bool) {
  18707. dd := d.d
  18708. slh, containerLenS := d.decSliceHelperStart()
  18709. if containerLenS == 0 {
  18710. if canChange {
  18711. if v == nil {
  18712. v = []int32{}
  18713. } else if len(v) != 0 {
  18714. v = v[:0]
  18715. }
  18716. changed = true
  18717. }
  18718. slh.End()
  18719. return v, changed
  18720. }
  18721. d.depthIncr()
  18722. hasLen := containerLenS > 0
  18723. var xlen int
  18724. if hasLen && canChange {
  18725. if containerLenS > cap(v) {
  18726. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18727. if xlen <= cap(v) {
  18728. v = v[:uint(xlen)]
  18729. } else {
  18730. v = make([]int32, uint(xlen))
  18731. }
  18732. changed = true
  18733. } else if containerLenS != len(v) {
  18734. v = v[:containerLenS]
  18735. changed = true
  18736. }
  18737. }
  18738. var j int
  18739. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18740. if j == 0 && len(v) == 0 && canChange {
  18741. if hasLen {
  18742. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 4)
  18743. } else {
  18744. xlen = 8
  18745. }
  18746. v = make([]int32, uint(xlen))
  18747. changed = true
  18748. }
  18749. // if indefinite, etc, then expand the slice if necessary
  18750. var decodeIntoBlank bool
  18751. if j >= len(v) {
  18752. if canChange {
  18753. v = append(v, 0)
  18754. changed = true
  18755. } else {
  18756. d.arrayCannotExpand(len(v), j+1)
  18757. decodeIntoBlank = true
  18758. }
  18759. }
  18760. slh.ElemContainerState(j)
  18761. if decodeIntoBlank {
  18762. d.swallow()
  18763. } else if dd.TryDecodeAsNil() {
  18764. v[uint(j)] = 0
  18765. } else {
  18766. v[uint(j)] = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  18767. }
  18768. }
  18769. if canChange {
  18770. if j < len(v) {
  18771. v = v[:uint(j)]
  18772. changed = true
  18773. } else if j == 0 && v == nil {
  18774. v = make([]int32, 0)
  18775. changed = true
  18776. }
  18777. }
  18778. slh.End()
  18779. d.depthDecr()
  18780. return v, changed
  18781. }
  18782. func (d *Decoder) fastpathDecSliceInt64R(f *codecFnInfo, rv reflect.Value) {
  18783. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18784. vp := rv2i(rv).(*[]int64)
  18785. v, changed := fastpathTV.DecSliceInt64V(*vp, !array, d)
  18786. if changed {
  18787. *vp = v
  18788. }
  18789. } else {
  18790. v := rv2i(rv).([]int64)
  18791. v2, changed := fastpathTV.DecSliceInt64V(v, !array, d)
  18792. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18793. copy(v, v2)
  18794. }
  18795. }
  18796. }
  18797. func (f fastpathT) DecSliceInt64X(vp *[]int64, d *Decoder) {
  18798. v, changed := f.DecSliceInt64V(*vp, true, d)
  18799. if changed {
  18800. *vp = v
  18801. }
  18802. }
  18803. func (_ fastpathT) DecSliceInt64V(v []int64, canChange bool, d *Decoder) (_ []int64, changed bool) {
  18804. dd := d.d
  18805. slh, containerLenS := d.decSliceHelperStart()
  18806. if containerLenS == 0 {
  18807. if canChange {
  18808. if v == nil {
  18809. v = []int64{}
  18810. } else if len(v) != 0 {
  18811. v = v[:0]
  18812. }
  18813. changed = true
  18814. }
  18815. slh.End()
  18816. return v, changed
  18817. }
  18818. d.depthIncr()
  18819. hasLen := containerLenS > 0
  18820. var xlen int
  18821. if hasLen && canChange {
  18822. if containerLenS > cap(v) {
  18823. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18824. if xlen <= cap(v) {
  18825. v = v[:uint(xlen)]
  18826. } else {
  18827. v = make([]int64, uint(xlen))
  18828. }
  18829. changed = true
  18830. } else if containerLenS != len(v) {
  18831. v = v[:containerLenS]
  18832. changed = true
  18833. }
  18834. }
  18835. var j int
  18836. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18837. if j == 0 && len(v) == 0 && canChange {
  18838. if hasLen {
  18839. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 8)
  18840. } else {
  18841. xlen = 8
  18842. }
  18843. v = make([]int64, uint(xlen))
  18844. changed = true
  18845. }
  18846. // if indefinite, etc, then expand the slice if necessary
  18847. var decodeIntoBlank bool
  18848. if j >= len(v) {
  18849. if canChange {
  18850. v = append(v, 0)
  18851. changed = true
  18852. } else {
  18853. d.arrayCannotExpand(len(v), j+1)
  18854. decodeIntoBlank = true
  18855. }
  18856. }
  18857. slh.ElemContainerState(j)
  18858. if decodeIntoBlank {
  18859. d.swallow()
  18860. } else if dd.TryDecodeAsNil() {
  18861. v[uint(j)] = 0
  18862. } else {
  18863. v[uint(j)] = dd.DecodeInt64()
  18864. }
  18865. }
  18866. if canChange {
  18867. if j < len(v) {
  18868. v = v[:uint(j)]
  18869. changed = true
  18870. } else if j == 0 && v == nil {
  18871. v = make([]int64, 0)
  18872. changed = true
  18873. }
  18874. }
  18875. slh.End()
  18876. d.depthDecr()
  18877. return v, changed
  18878. }
  18879. func (d *Decoder) fastpathDecSliceBoolR(f *codecFnInfo, rv reflect.Value) {
  18880. if array := f.seq == seqTypeArray; !array && rv.Kind() == reflect.Ptr {
  18881. vp := rv2i(rv).(*[]bool)
  18882. v, changed := fastpathTV.DecSliceBoolV(*vp, !array, d)
  18883. if changed {
  18884. *vp = v
  18885. }
  18886. } else {
  18887. v := rv2i(rv).([]bool)
  18888. v2, changed := fastpathTV.DecSliceBoolV(v, !array, d)
  18889. if changed && len(v) > 0 && len(v2) > 0 && !(len(v2) == len(v) && &v2[0] == &v[0]) {
  18890. copy(v, v2)
  18891. }
  18892. }
  18893. }
  18894. func (f fastpathT) DecSliceBoolX(vp *[]bool, d *Decoder) {
  18895. v, changed := f.DecSliceBoolV(*vp, true, d)
  18896. if changed {
  18897. *vp = v
  18898. }
  18899. }
  18900. func (_ fastpathT) DecSliceBoolV(v []bool, canChange bool, d *Decoder) (_ []bool, changed bool) {
  18901. dd := d.d
  18902. slh, containerLenS := d.decSliceHelperStart()
  18903. if containerLenS == 0 {
  18904. if canChange {
  18905. if v == nil {
  18906. v = []bool{}
  18907. } else if len(v) != 0 {
  18908. v = v[:0]
  18909. }
  18910. changed = true
  18911. }
  18912. slh.End()
  18913. return v, changed
  18914. }
  18915. d.depthIncr()
  18916. hasLen := containerLenS > 0
  18917. var xlen int
  18918. if hasLen && canChange {
  18919. if containerLenS > cap(v) {
  18920. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18921. if xlen <= cap(v) {
  18922. v = v[:uint(xlen)]
  18923. } else {
  18924. v = make([]bool, uint(xlen))
  18925. }
  18926. changed = true
  18927. } else if containerLenS != len(v) {
  18928. v = v[:containerLenS]
  18929. changed = true
  18930. }
  18931. }
  18932. var j int
  18933. for j = 0; (hasLen && j < containerLenS) || !(hasLen || dd.CheckBreak()); j++ {
  18934. if j == 0 && len(v) == 0 && canChange {
  18935. if hasLen {
  18936. xlen = decInferLen(containerLenS, d.h.MaxInitLen, 1)
  18937. } else {
  18938. xlen = 8
  18939. }
  18940. v = make([]bool, uint(xlen))
  18941. changed = true
  18942. }
  18943. // if indefinite, etc, then expand the slice if necessary
  18944. var decodeIntoBlank bool
  18945. if j >= len(v) {
  18946. if canChange {
  18947. v = append(v, false)
  18948. changed = true
  18949. } else {
  18950. d.arrayCannotExpand(len(v), j+1)
  18951. decodeIntoBlank = true
  18952. }
  18953. }
  18954. slh.ElemContainerState(j)
  18955. if decodeIntoBlank {
  18956. d.swallow()
  18957. } else if dd.TryDecodeAsNil() {
  18958. v[uint(j)] = false
  18959. } else {
  18960. v[uint(j)] = dd.DecodeBool()
  18961. }
  18962. }
  18963. if canChange {
  18964. if j < len(v) {
  18965. v = v[:uint(j)]
  18966. changed = true
  18967. } else if j == 0 && v == nil {
  18968. v = make([]bool, 0)
  18969. changed = true
  18970. }
  18971. }
  18972. slh.End()
  18973. d.depthDecr()
  18974. return v, changed
  18975. }
  18976. func (d *Decoder) fastpathDecMapIntfIntfR(f *codecFnInfo, rv reflect.Value) {
  18977. if rv.Kind() == reflect.Ptr {
  18978. vp := rv2i(rv).(*map[interface{}]interface{})
  18979. v, changed := fastpathTV.DecMapIntfIntfV(*vp, true, d)
  18980. if changed {
  18981. *vp = v
  18982. }
  18983. } else {
  18984. fastpathTV.DecMapIntfIntfV(rv2i(rv).(map[interface{}]interface{}), false, d)
  18985. }
  18986. }
  18987. func (f fastpathT) DecMapIntfIntfX(vp *map[interface{}]interface{}, d *Decoder) {
  18988. v, changed := f.DecMapIntfIntfV(*vp, true, d)
  18989. if changed {
  18990. *vp = v
  18991. }
  18992. }
  18993. func (_ fastpathT) DecMapIntfIntfV(v map[interface{}]interface{}, canChange bool,
  18994. d *Decoder) (_ map[interface{}]interface{}, changed bool) {
  18995. dd, esep := d.d, d.hh.hasElemSeparators()
  18996. containerLen := dd.ReadMapStart()
  18997. if canChange && v == nil {
  18998. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  18999. v = make(map[interface{}]interface{}, xlen)
  19000. changed = true
  19001. }
  19002. if containerLen == 0 {
  19003. dd.ReadMapEnd()
  19004. return v, changed
  19005. }
  19006. d.depthIncr()
  19007. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  19008. var mk interface{}
  19009. var mv interface{}
  19010. hasLen := containerLen > 0
  19011. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19012. if esep {
  19013. dd.ReadMapElemKey()
  19014. }
  19015. mk = nil
  19016. d.decode(&mk)
  19017. if bv, bok := mk.([]byte); bok {
  19018. mk = d.string(bv)
  19019. }
  19020. if esep {
  19021. dd.ReadMapElemValue()
  19022. }
  19023. if dd.TryDecodeAsNil() {
  19024. if v == nil {
  19025. } else if d.h.DeleteOnNilMapValue {
  19026. delete(v, mk)
  19027. } else {
  19028. v[mk] = nil
  19029. }
  19030. continue
  19031. }
  19032. if mapGet {
  19033. mv = v[mk]
  19034. } else {
  19035. mv = nil
  19036. }
  19037. d.decode(&mv)
  19038. if v != nil {
  19039. v[mk] = mv
  19040. }
  19041. }
  19042. dd.ReadMapEnd()
  19043. d.depthDecr()
  19044. return v, changed
  19045. }
  19046. func (d *Decoder) fastpathDecMapIntfStringR(f *codecFnInfo, rv reflect.Value) {
  19047. if rv.Kind() == reflect.Ptr {
  19048. vp := rv2i(rv).(*map[interface{}]string)
  19049. v, changed := fastpathTV.DecMapIntfStringV(*vp, true, d)
  19050. if changed {
  19051. *vp = v
  19052. }
  19053. } else {
  19054. fastpathTV.DecMapIntfStringV(rv2i(rv).(map[interface{}]string), false, d)
  19055. }
  19056. }
  19057. func (f fastpathT) DecMapIntfStringX(vp *map[interface{}]string, d *Decoder) {
  19058. v, changed := f.DecMapIntfStringV(*vp, true, d)
  19059. if changed {
  19060. *vp = v
  19061. }
  19062. }
  19063. func (_ fastpathT) DecMapIntfStringV(v map[interface{}]string, canChange bool,
  19064. d *Decoder) (_ map[interface{}]string, changed bool) {
  19065. dd, esep := d.d, d.hh.hasElemSeparators()
  19066. containerLen := dd.ReadMapStart()
  19067. if canChange && v == nil {
  19068. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  19069. v = make(map[interface{}]string, xlen)
  19070. changed = true
  19071. }
  19072. if containerLen == 0 {
  19073. dd.ReadMapEnd()
  19074. return v, changed
  19075. }
  19076. d.depthIncr()
  19077. var mk interface{}
  19078. var mv string
  19079. hasLen := containerLen > 0
  19080. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19081. if esep {
  19082. dd.ReadMapElemKey()
  19083. }
  19084. mk = nil
  19085. d.decode(&mk)
  19086. if bv, bok := mk.([]byte); bok {
  19087. mk = d.string(bv)
  19088. }
  19089. if esep {
  19090. dd.ReadMapElemValue()
  19091. }
  19092. if dd.TryDecodeAsNil() {
  19093. if v == nil {
  19094. } else if d.h.DeleteOnNilMapValue {
  19095. delete(v, mk)
  19096. } else {
  19097. v[mk] = ""
  19098. }
  19099. continue
  19100. }
  19101. mv = dd.DecodeString()
  19102. if v != nil {
  19103. v[mk] = mv
  19104. }
  19105. }
  19106. dd.ReadMapEnd()
  19107. d.depthDecr()
  19108. return v, changed
  19109. }
  19110. func (d *Decoder) fastpathDecMapIntfUintR(f *codecFnInfo, rv reflect.Value) {
  19111. if rv.Kind() == reflect.Ptr {
  19112. vp := rv2i(rv).(*map[interface{}]uint)
  19113. v, changed := fastpathTV.DecMapIntfUintV(*vp, true, d)
  19114. if changed {
  19115. *vp = v
  19116. }
  19117. } else {
  19118. fastpathTV.DecMapIntfUintV(rv2i(rv).(map[interface{}]uint), false, d)
  19119. }
  19120. }
  19121. func (f fastpathT) DecMapIntfUintX(vp *map[interface{}]uint, d *Decoder) {
  19122. v, changed := f.DecMapIntfUintV(*vp, true, d)
  19123. if changed {
  19124. *vp = v
  19125. }
  19126. }
  19127. func (_ fastpathT) DecMapIntfUintV(v map[interface{}]uint, canChange bool,
  19128. d *Decoder) (_ map[interface{}]uint, changed bool) {
  19129. dd, esep := d.d, d.hh.hasElemSeparators()
  19130. containerLen := dd.ReadMapStart()
  19131. if canChange && v == nil {
  19132. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19133. v = make(map[interface{}]uint, xlen)
  19134. changed = true
  19135. }
  19136. if containerLen == 0 {
  19137. dd.ReadMapEnd()
  19138. return v, changed
  19139. }
  19140. d.depthIncr()
  19141. var mk interface{}
  19142. var mv uint
  19143. hasLen := containerLen > 0
  19144. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19145. if esep {
  19146. dd.ReadMapElemKey()
  19147. }
  19148. mk = nil
  19149. d.decode(&mk)
  19150. if bv, bok := mk.([]byte); bok {
  19151. mk = d.string(bv)
  19152. }
  19153. if esep {
  19154. dd.ReadMapElemValue()
  19155. }
  19156. if dd.TryDecodeAsNil() {
  19157. if v == nil {
  19158. } else if d.h.DeleteOnNilMapValue {
  19159. delete(v, mk)
  19160. } else {
  19161. v[mk] = 0
  19162. }
  19163. continue
  19164. }
  19165. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19166. if v != nil {
  19167. v[mk] = mv
  19168. }
  19169. }
  19170. dd.ReadMapEnd()
  19171. d.depthDecr()
  19172. return v, changed
  19173. }
  19174. func (d *Decoder) fastpathDecMapIntfUint8R(f *codecFnInfo, rv reflect.Value) {
  19175. if rv.Kind() == reflect.Ptr {
  19176. vp := rv2i(rv).(*map[interface{}]uint8)
  19177. v, changed := fastpathTV.DecMapIntfUint8V(*vp, true, d)
  19178. if changed {
  19179. *vp = v
  19180. }
  19181. } else {
  19182. fastpathTV.DecMapIntfUint8V(rv2i(rv).(map[interface{}]uint8), false, d)
  19183. }
  19184. }
  19185. func (f fastpathT) DecMapIntfUint8X(vp *map[interface{}]uint8, d *Decoder) {
  19186. v, changed := f.DecMapIntfUint8V(*vp, true, d)
  19187. if changed {
  19188. *vp = v
  19189. }
  19190. }
  19191. func (_ fastpathT) DecMapIntfUint8V(v map[interface{}]uint8, canChange bool,
  19192. d *Decoder) (_ map[interface{}]uint8, changed bool) {
  19193. dd, esep := d.d, d.hh.hasElemSeparators()
  19194. containerLen := dd.ReadMapStart()
  19195. if canChange && v == nil {
  19196. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19197. v = make(map[interface{}]uint8, xlen)
  19198. changed = true
  19199. }
  19200. if containerLen == 0 {
  19201. dd.ReadMapEnd()
  19202. return v, changed
  19203. }
  19204. d.depthIncr()
  19205. var mk interface{}
  19206. var mv uint8
  19207. hasLen := containerLen > 0
  19208. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19209. if esep {
  19210. dd.ReadMapElemKey()
  19211. }
  19212. mk = nil
  19213. d.decode(&mk)
  19214. if bv, bok := mk.([]byte); bok {
  19215. mk = d.string(bv)
  19216. }
  19217. if esep {
  19218. dd.ReadMapElemValue()
  19219. }
  19220. if dd.TryDecodeAsNil() {
  19221. if v == nil {
  19222. } else if d.h.DeleteOnNilMapValue {
  19223. delete(v, mk)
  19224. } else {
  19225. v[mk] = 0
  19226. }
  19227. continue
  19228. }
  19229. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  19230. if v != nil {
  19231. v[mk] = mv
  19232. }
  19233. }
  19234. dd.ReadMapEnd()
  19235. d.depthDecr()
  19236. return v, changed
  19237. }
  19238. func (d *Decoder) fastpathDecMapIntfUint16R(f *codecFnInfo, rv reflect.Value) {
  19239. if rv.Kind() == reflect.Ptr {
  19240. vp := rv2i(rv).(*map[interface{}]uint16)
  19241. v, changed := fastpathTV.DecMapIntfUint16V(*vp, true, d)
  19242. if changed {
  19243. *vp = v
  19244. }
  19245. } else {
  19246. fastpathTV.DecMapIntfUint16V(rv2i(rv).(map[interface{}]uint16), false, d)
  19247. }
  19248. }
  19249. func (f fastpathT) DecMapIntfUint16X(vp *map[interface{}]uint16, d *Decoder) {
  19250. v, changed := f.DecMapIntfUint16V(*vp, true, d)
  19251. if changed {
  19252. *vp = v
  19253. }
  19254. }
  19255. func (_ fastpathT) DecMapIntfUint16V(v map[interface{}]uint16, canChange bool,
  19256. d *Decoder) (_ map[interface{}]uint16, changed bool) {
  19257. dd, esep := d.d, d.hh.hasElemSeparators()
  19258. containerLen := dd.ReadMapStart()
  19259. if canChange && v == nil {
  19260. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19261. v = make(map[interface{}]uint16, xlen)
  19262. changed = true
  19263. }
  19264. if containerLen == 0 {
  19265. dd.ReadMapEnd()
  19266. return v, changed
  19267. }
  19268. d.depthIncr()
  19269. var mk interface{}
  19270. var mv uint16
  19271. hasLen := containerLen > 0
  19272. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19273. if esep {
  19274. dd.ReadMapElemKey()
  19275. }
  19276. mk = nil
  19277. d.decode(&mk)
  19278. if bv, bok := mk.([]byte); bok {
  19279. mk = d.string(bv)
  19280. }
  19281. if esep {
  19282. dd.ReadMapElemValue()
  19283. }
  19284. if dd.TryDecodeAsNil() {
  19285. if v == nil {
  19286. } else if d.h.DeleteOnNilMapValue {
  19287. delete(v, mk)
  19288. } else {
  19289. v[mk] = 0
  19290. }
  19291. continue
  19292. }
  19293. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  19294. if v != nil {
  19295. v[mk] = mv
  19296. }
  19297. }
  19298. dd.ReadMapEnd()
  19299. d.depthDecr()
  19300. return v, changed
  19301. }
  19302. func (d *Decoder) fastpathDecMapIntfUint32R(f *codecFnInfo, rv reflect.Value) {
  19303. if rv.Kind() == reflect.Ptr {
  19304. vp := rv2i(rv).(*map[interface{}]uint32)
  19305. v, changed := fastpathTV.DecMapIntfUint32V(*vp, true, d)
  19306. if changed {
  19307. *vp = v
  19308. }
  19309. } else {
  19310. fastpathTV.DecMapIntfUint32V(rv2i(rv).(map[interface{}]uint32), false, d)
  19311. }
  19312. }
  19313. func (f fastpathT) DecMapIntfUint32X(vp *map[interface{}]uint32, d *Decoder) {
  19314. v, changed := f.DecMapIntfUint32V(*vp, true, d)
  19315. if changed {
  19316. *vp = v
  19317. }
  19318. }
  19319. func (_ fastpathT) DecMapIntfUint32V(v map[interface{}]uint32, canChange bool,
  19320. d *Decoder) (_ map[interface{}]uint32, changed bool) {
  19321. dd, esep := d.d, d.hh.hasElemSeparators()
  19322. containerLen := dd.ReadMapStart()
  19323. if canChange && v == nil {
  19324. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19325. v = make(map[interface{}]uint32, xlen)
  19326. changed = true
  19327. }
  19328. if containerLen == 0 {
  19329. dd.ReadMapEnd()
  19330. return v, changed
  19331. }
  19332. d.depthIncr()
  19333. var mk interface{}
  19334. var mv uint32
  19335. hasLen := containerLen > 0
  19336. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19337. if esep {
  19338. dd.ReadMapElemKey()
  19339. }
  19340. mk = nil
  19341. d.decode(&mk)
  19342. if bv, bok := mk.([]byte); bok {
  19343. mk = d.string(bv)
  19344. }
  19345. if esep {
  19346. dd.ReadMapElemValue()
  19347. }
  19348. if dd.TryDecodeAsNil() {
  19349. if v == nil {
  19350. } else if d.h.DeleteOnNilMapValue {
  19351. delete(v, mk)
  19352. } else {
  19353. v[mk] = 0
  19354. }
  19355. continue
  19356. }
  19357. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  19358. if v != nil {
  19359. v[mk] = mv
  19360. }
  19361. }
  19362. dd.ReadMapEnd()
  19363. d.depthDecr()
  19364. return v, changed
  19365. }
  19366. func (d *Decoder) fastpathDecMapIntfUint64R(f *codecFnInfo, rv reflect.Value) {
  19367. if rv.Kind() == reflect.Ptr {
  19368. vp := rv2i(rv).(*map[interface{}]uint64)
  19369. v, changed := fastpathTV.DecMapIntfUint64V(*vp, true, d)
  19370. if changed {
  19371. *vp = v
  19372. }
  19373. } else {
  19374. fastpathTV.DecMapIntfUint64V(rv2i(rv).(map[interface{}]uint64), false, d)
  19375. }
  19376. }
  19377. func (f fastpathT) DecMapIntfUint64X(vp *map[interface{}]uint64, d *Decoder) {
  19378. v, changed := f.DecMapIntfUint64V(*vp, true, d)
  19379. if changed {
  19380. *vp = v
  19381. }
  19382. }
  19383. func (_ fastpathT) DecMapIntfUint64V(v map[interface{}]uint64, canChange bool,
  19384. d *Decoder) (_ map[interface{}]uint64, changed bool) {
  19385. dd, esep := d.d, d.hh.hasElemSeparators()
  19386. containerLen := dd.ReadMapStart()
  19387. if canChange && v == nil {
  19388. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19389. v = make(map[interface{}]uint64, xlen)
  19390. changed = true
  19391. }
  19392. if containerLen == 0 {
  19393. dd.ReadMapEnd()
  19394. return v, changed
  19395. }
  19396. d.depthIncr()
  19397. var mk interface{}
  19398. var mv uint64
  19399. hasLen := containerLen > 0
  19400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19401. if esep {
  19402. dd.ReadMapElemKey()
  19403. }
  19404. mk = nil
  19405. d.decode(&mk)
  19406. if bv, bok := mk.([]byte); bok {
  19407. mk = d.string(bv)
  19408. }
  19409. if esep {
  19410. dd.ReadMapElemValue()
  19411. }
  19412. if dd.TryDecodeAsNil() {
  19413. if v == nil {
  19414. } else if d.h.DeleteOnNilMapValue {
  19415. delete(v, mk)
  19416. } else {
  19417. v[mk] = 0
  19418. }
  19419. continue
  19420. }
  19421. mv = dd.DecodeUint64()
  19422. if v != nil {
  19423. v[mk] = mv
  19424. }
  19425. }
  19426. dd.ReadMapEnd()
  19427. d.depthDecr()
  19428. return v, changed
  19429. }
  19430. func (d *Decoder) fastpathDecMapIntfUintptrR(f *codecFnInfo, rv reflect.Value) {
  19431. if rv.Kind() == reflect.Ptr {
  19432. vp := rv2i(rv).(*map[interface{}]uintptr)
  19433. v, changed := fastpathTV.DecMapIntfUintptrV(*vp, true, d)
  19434. if changed {
  19435. *vp = v
  19436. }
  19437. } else {
  19438. fastpathTV.DecMapIntfUintptrV(rv2i(rv).(map[interface{}]uintptr), false, d)
  19439. }
  19440. }
  19441. func (f fastpathT) DecMapIntfUintptrX(vp *map[interface{}]uintptr, d *Decoder) {
  19442. v, changed := f.DecMapIntfUintptrV(*vp, true, d)
  19443. if changed {
  19444. *vp = v
  19445. }
  19446. }
  19447. func (_ fastpathT) DecMapIntfUintptrV(v map[interface{}]uintptr, canChange bool,
  19448. d *Decoder) (_ map[interface{}]uintptr, changed bool) {
  19449. dd, esep := d.d, d.hh.hasElemSeparators()
  19450. containerLen := dd.ReadMapStart()
  19451. if canChange && v == nil {
  19452. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19453. v = make(map[interface{}]uintptr, xlen)
  19454. changed = true
  19455. }
  19456. if containerLen == 0 {
  19457. dd.ReadMapEnd()
  19458. return v, changed
  19459. }
  19460. d.depthIncr()
  19461. var mk interface{}
  19462. var mv uintptr
  19463. hasLen := containerLen > 0
  19464. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19465. if esep {
  19466. dd.ReadMapElemKey()
  19467. }
  19468. mk = nil
  19469. d.decode(&mk)
  19470. if bv, bok := mk.([]byte); bok {
  19471. mk = d.string(bv)
  19472. }
  19473. if esep {
  19474. dd.ReadMapElemValue()
  19475. }
  19476. if dd.TryDecodeAsNil() {
  19477. if v == nil {
  19478. } else if d.h.DeleteOnNilMapValue {
  19479. delete(v, mk)
  19480. } else {
  19481. v[mk] = 0
  19482. }
  19483. continue
  19484. }
  19485. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  19486. if v != nil {
  19487. v[mk] = mv
  19488. }
  19489. }
  19490. dd.ReadMapEnd()
  19491. d.depthDecr()
  19492. return v, changed
  19493. }
  19494. func (d *Decoder) fastpathDecMapIntfIntR(f *codecFnInfo, rv reflect.Value) {
  19495. if rv.Kind() == reflect.Ptr {
  19496. vp := rv2i(rv).(*map[interface{}]int)
  19497. v, changed := fastpathTV.DecMapIntfIntV(*vp, true, d)
  19498. if changed {
  19499. *vp = v
  19500. }
  19501. } else {
  19502. fastpathTV.DecMapIntfIntV(rv2i(rv).(map[interface{}]int), false, d)
  19503. }
  19504. }
  19505. func (f fastpathT) DecMapIntfIntX(vp *map[interface{}]int, d *Decoder) {
  19506. v, changed := f.DecMapIntfIntV(*vp, true, d)
  19507. if changed {
  19508. *vp = v
  19509. }
  19510. }
  19511. func (_ fastpathT) DecMapIntfIntV(v map[interface{}]int, canChange bool,
  19512. d *Decoder) (_ map[interface{}]int, changed bool) {
  19513. dd, esep := d.d, d.hh.hasElemSeparators()
  19514. containerLen := dd.ReadMapStart()
  19515. if canChange && v == nil {
  19516. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19517. v = make(map[interface{}]int, xlen)
  19518. changed = true
  19519. }
  19520. if containerLen == 0 {
  19521. dd.ReadMapEnd()
  19522. return v, changed
  19523. }
  19524. d.depthIncr()
  19525. var mk interface{}
  19526. var mv int
  19527. hasLen := containerLen > 0
  19528. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19529. if esep {
  19530. dd.ReadMapElemKey()
  19531. }
  19532. mk = nil
  19533. d.decode(&mk)
  19534. if bv, bok := mk.([]byte); bok {
  19535. mk = d.string(bv)
  19536. }
  19537. if esep {
  19538. dd.ReadMapElemValue()
  19539. }
  19540. if dd.TryDecodeAsNil() {
  19541. if v == nil {
  19542. } else if d.h.DeleteOnNilMapValue {
  19543. delete(v, mk)
  19544. } else {
  19545. v[mk] = 0
  19546. }
  19547. continue
  19548. }
  19549. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  19550. if v != nil {
  19551. v[mk] = mv
  19552. }
  19553. }
  19554. dd.ReadMapEnd()
  19555. d.depthDecr()
  19556. return v, changed
  19557. }
  19558. func (d *Decoder) fastpathDecMapIntfInt8R(f *codecFnInfo, rv reflect.Value) {
  19559. if rv.Kind() == reflect.Ptr {
  19560. vp := rv2i(rv).(*map[interface{}]int8)
  19561. v, changed := fastpathTV.DecMapIntfInt8V(*vp, true, d)
  19562. if changed {
  19563. *vp = v
  19564. }
  19565. } else {
  19566. fastpathTV.DecMapIntfInt8V(rv2i(rv).(map[interface{}]int8), false, d)
  19567. }
  19568. }
  19569. func (f fastpathT) DecMapIntfInt8X(vp *map[interface{}]int8, d *Decoder) {
  19570. v, changed := f.DecMapIntfInt8V(*vp, true, d)
  19571. if changed {
  19572. *vp = v
  19573. }
  19574. }
  19575. func (_ fastpathT) DecMapIntfInt8V(v map[interface{}]int8, canChange bool,
  19576. d *Decoder) (_ map[interface{}]int8, changed bool) {
  19577. dd, esep := d.d, d.hh.hasElemSeparators()
  19578. containerLen := dd.ReadMapStart()
  19579. if canChange && v == nil {
  19580. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19581. v = make(map[interface{}]int8, xlen)
  19582. changed = true
  19583. }
  19584. if containerLen == 0 {
  19585. dd.ReadMapEnd()
  19586. return v, changed
  19587. }
  19588. d.depthIncr()
  19589. var mk interface{}
  19590. var mv int8
  19591. hasLen := containerLen > 0
  19592. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19593. if esep {
  19594. dd.ReadMapElemKey()
  19595. }
  19596. mk = nil
  19597. d.decode(&mk)
  19598. if bv, bok := mk.([]byte); bok {
  19599. mk = d.string(bv)
  19600. }
  19601. if esep {
  19602. dd.ReadMapElemValue()
  19603. }
  19604. if dd.TryDecodeAsNil() {
  19605. if v == nil {
  19606. } else if d.h.DeleteOnNilMapValue {
  19607. delete(v, mk)
  19608. } else {
  19609. v[mk] = 0
  19610. }
  19611. continue
  19612. }
  19613. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  19614. if v != nil {
  19615. v[mk] = mv
  19616. }
  19617. }
  19618. dd.ReadMapEnd()
  19619. d.depthDecr()
  19620. return v, changed
  19621. }
  19622. func (d *Decoder) fastpathDecMapIntfInt16R(f *codecFnInfo, rv reflect.Value) {
  19623. if rv.Kind() == reflect.Ptr {
  19624. vp := rv2i(rv).(*map[interface{}]int16)
  19625. v, changed := fastpathTV.DecMapIntfInt16V(*vp, true, d)
  19626. if changed {
  19627. *vp = v
  19628. }
  19629. } else {
  19630. fastpathTV.DecMapIntfInt16V(rv2i(rv).(map[interface{}]int16), false, d)
  19631. }
  19632. }
  19633. func (f fastpathT) DecMapIntfInt16X(vp *map[interface{}]int16, d *Decoder) {
  19634. v, changed := f.DecMapIntfInt16V(*vp, true, d)
  19635. if changed {
  19636. *vp = v
  19637. }
  19638. }
  19639. func (_ fastpathT) DecMapIntfInt16V(v map[interface{}]int16, canChange bool,
  19640. d *Decoder) (_ map[interface{}]int16, changed bool) {
  19641. dd, esep := d.d, d.hh.hasElemSeparators()
  19642. containerLen := dd.ReadMapStart()
  19643. if canChange && v == nil {
  19644. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  19645. v = make(map[interface{}]int16, xlen)
  19646. changed = true
  19647. }
  19648. if containerLen == 0 {
  19649. dd.ReadMapEnd()
  19650. return v, changed
  19651. }
  19652. d.depthIncr()
  19653. var mk interface{}
  19654. var mv int16
  19655. hasLen := containerLen > 0
  19656. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19657. if esep {
  19658. dd.ReadMapElemKey()
  19659. }
  19660. mk = nil
  19661. d.decode(&mk)
  19662. if bv, bok := mk.([]byte); bok {
  19663. mk = d.string(bv)
  19664. }
  19665. if esep {
  19666. dd.ReadMapElemValue()
  19667. }
  19668. if dd.TryDecodeAsNil() {
  19669. if v == nil {
  19670. } else if d.h.DeleteOnNilMapValue {
  19671. delete(v, mk)
  19672. } else {
  19673. v[mk] = 0
  19674. }
  19675. continue
  19676. }
  19677. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  19678. if v != nil {
  19679. v[mk] = mv
  19680. }
  19681. }
  19682. dd.ReadMapEnd()
  19683. d.depthDecr()
  19684. return v, changed
  19685. }
  19686. func (d *Decoder) fastpathDecMapIntfInt32R(f *codecFnInfo, rv reflect.Value) {
  19687. if rv.Kind() == reflect.Ptr {
  19688. vp := rv2i(rv).(*map[interface{}]int32)
  19689. v, changed := fastpathTV.DecMapIntfInt32V(*vp, true, d)
  19690. if changed {
  19691. *vp = v
  19692. }
  19693. } else {
  19694. fastpathTV.DecMapIntfInt32V(rv2i(rv).(map[interface{}]int32), false, d)
  19695. }
  19696. }
  19697. func (f fastpathT) DecMapIntfInt32X(vp *map[interface{}]int32, d *Decoder) {
  19698. v, changed := f.DecMapIntfInt32V(*vp, true, d)
  19699. if changed {
  19700. *vp = v
  19701. }
  19702. }
  19703. func (_ fastpathT) DecMapIntfInt32V(v map[interface{}]int32, canChange bool,
  19704. d *Decoder) (_ map[interface{}]int32, changed bool) {
  19705. dd, esep := d.d, d.hh.hasElemSeparators()
  19706. containerLen := dd.ReadMapStart()
  19707. if canChange && v == nil {
  19708. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19709. v = make(map[interface{}]int32, xlen)
  19710. changed = true
  19711. }
  19712. if containerLen == 0 {
  19713. dd.ReadMapEnd()
  19714. return v, changed
  19715. }
  19716. d.depthIncr()
  19717. var mk interface{}
  19718. var mv int32
  19719. hasLen := containerLen > 0
  19720. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19721. if esep {
  19722. dd.ReadMapElemKey()
  19723. }
  19724. mk = nil
  19725. d.decode(&mk)
  19726. if bv, bok := mk.([]byte); bok {
  19727. mk = d.string(bv)
  19728. }
  19729. if esep {
  19730. dd.ReadMapElemValue()
  19731. }
  19732. if dd.TryDecodeAsNil() {
  19733. if v == nil {
  19734. } else if d.h.DeleteOnNilMapValue {
  19735. delete(v, mk)
  19736. } else {
  19737. v[mk] = 0
  19738. }
  19739. continue
  19740. }
  19741. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  19742. if v != nil {
  19743. v[mk] = mv
  19744. }
  19745. }
  19746. dd.ReadMapEnd()
  19747. d.depthDecr()
  19748. return v, changed
  19749. }
  19750. func (d *Decoder) fastpathDecMapIntfInt64R(f *codecFnInfo, rv reflect.Value) {
  19751. if rv.Kind() == reflect.Ptr {
  19752. vp := rv2i(rv).(*map[interface{}]int64)
  19753. v, changed := fastpathTV.DecMapIntfInt64V(*vp, true, d)
  19754. if changed {
  19755. *vp = v
  19756. }
  19757. } else {
  19758. fastpathTV.DecMapIntfInt64V(rv2i(rv).(map[interface{}]int64), false, d)
  19759. }
  19760. }
  19761. func (f fastpathT) DecMapIntfInt64X(vp *map[interface{}]int64, d *Decoder) {
  19762. v, changed := f.DecMapIntfInt64V(*vp, true, d)
  19763. if changed {
  19764. *vp = v
  19765. }
  19766. }
  19767. func (_ fastpathT) DecMapIntfInt64V(v map[interface{}]int64, canChange bool,
  19768. d *Decoder) (_ map[interface{}]int64, changed bool) {
  19769. dd, esep := d.d, d.hh.hasElemSeparators()
  19770. containerLen := dd.ReadMapStart()
  19771. if canChange && v == nil {
  19772. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19773. v = make(map[interface{}]int64, xlen)
  19774. changed = true
  19775. }
  19776. if containerLen == 0 {
  19777. dd.ReadMapEnd()
  19778. return v, changed
  19779. }
  19780. d.depthIncr()
  19781. var mk interface{}
  19782. var mv int64
  19783. hasLen := containerLen > 0
  19784. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19785. if esep {
  19786. dd.ReadMapElemKey()
  19787. }
  19788. mk = nil
  19789. d.decode(&mk)
  19790. if bv, bok := mk.([]byte); bok {
  19791. mk = d.string(bv)
  19792. }
  19793. if esep {
  19794. dd.ReadMapElemValue()
  19795. }
  19796. if dd.TryDecodeAsNil() {
  19797. if v == nil {
  19798. } else if d.h.DeleteOnNilMapValue {
  19799. delete(v, mk)
  19800. } else {
  19801. v[mk] = 0
  19802. }
  19803. continue
  19804. }
  19805. mv = dd.DecodeInt64()
  19806. if v != nil {
  19807. v[mk] = mv
  19808. }
  19809. }
  19810. dd.ReadMapEnd()
  19811. d.depthDecr()
  19812. return v, changed
  19813. }
  19814. func (d *Decoder) fastpathDecMapIntfFloat32R(f *codecFnInfo, rv reflect.Value) {
  19815. if rv.Kind() == reflect.Ptr {
  19816. vp := rv2i(rv).(*map[interface{}]float32)
  19817. v, changed := fastpathTV.DecMapIntfFloat32V(*vp, true, d)
  19818. if changed {
  19819. *vp = v
  19820. }
  19821. } else {
  19822. fastpathTV.DecMapIntfFloat32V(rv2i(rv).(map[interface{}]float32), false, d)
  19823. }
  19824. }
  19825. func (f fastpathT) DecMapIntfFloat32X(vp *map[interface{}]float32, d *Decoder) {
  19826. v, changed := f.DecMapIntfFloat32V(*vp, true, d)
  19827. if changed {
  19828. *vp = v
  19829. }
  19830. }
  19831. func (_ fastpathT) DecMapIntfFloat32V(v map[interface{}]float32, canChange bool,
  19832. d *Decoder) (_ map[interface{}]float32, changed bool) {
  19833. dd, esep := d.d, d.hh.hasElemSeparators()
  19834. containerLen := dd.ReadMapStart()
  19835. if canChange && v == nil {
  19836. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  19837. v = make(map[interface{}]float32, xlen)
  19838. changed = true
  19839. }
  19840. if containerLen == 0 {
  19841. dd.ReadMapEnd()
  19842. return v, changed
  19843. }
  19844. d.depthIncr()
  19845. var mk interface{}
  19846. var mv float32
  19847. hasLen := containerLen > 0
  19848. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19849. if esep {
  19850. dd.ReadMapElemKey()
  19851. }
  19852. mk = nil
  19853. d.decode(&mk)
  19854. if bv, bok := mk.([]byte); bok {
  19855. mk = d.string(bv)
  19856. }
  19857. if esep {
  19858. dd.ReadMapElemValue()
  19859. }
  19860. if dd.TryDecodeAsNil() {
  19861. if v == nil {
  19862. } else if d.h.DeleteOnNilMapValue {
  19863. delete(v, mk)
  19864. } else {
  19865. v[mk] = 0
  19866. }
  19867. continue
  19868. }
  19869. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  19870. if v != nil {
  19871. v[mk] = mv
  19872. }
  19873. }
  19874. dd.ReadMapEnd()
  19875. d.depthDecr()
  19876. return v, changed
  19877. }
  19878. func (d *Decoder) fastpathDecMapIntfFloat64R(f *codecFnInfo, rv reflect.Value) {
  19879. if rv.Kind() == reflect.Ptr {
  19880. vp := rv2i(rv).(*map[interface{}]float64)
  19881. v, changed := fastpathTV.DecMapIntfFloat64V(*vp, true, d)
  19882. if changed {
  19883. *vp = v
  19884. }
  19885. } else {
  19886. fastpathTV.DecMapIntfFloat64V(rv2i(rv).(map[interface{}]float64), false, d)
  19887. }
  19888. }
  19889. func (f fastpathT) DecMapIntfFloat64X(vp *map[interface{}]float64, d *Decoder) {
  19890. v, changed := f.DecMapIntfFloat64V(*vp, true, d)
  19891. if changed {
  19892. *vp = v
  19893. }
  19894. }
  19895. func (_ fastpathT) DecMapIntfFloat64V(v map[interface{}]float64, canChange bool,
  19896. d *Decoder) (_ map[interface{}]float64, changed bool) {
  19897. dd, esep := d.d, d.hh.hasElemSeparators()
  19898. containerLen := dd.ReadMapStart()
  19899. if canChange && v == nil {
  19900. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  19901. v = make(map[interface{}]float64, xlen)
  19902. changed = true
  19903. }
  19904. if containerLen == 0 {
  19905. dd.ReadMapEnd()
  19906. return v, changed
  19907. }
  19908. d.depthIncr()
  19909. var mk interface{}
  19910. var mv float64
  19911. hasLen := containerLen > 0
  19912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19913. if esep {
  19914. dd.ReadMapElemKey()
  19915. }
  19916. mk = nil
  19917. d.decode(&mk)
  19918. if bv, bok := mk.([]byte); bok {
  19919. mk = d.string(bv)
  19920. }
  19921. if esep {
  19922. dd.ReadMapElemValue()
  19923. }
  19924. if dd.TryDecodeAsNil() {
  19925. if v == nil {
  19926. } else if d.h.DeleteOnNilMapValue {
  19927. delete(v, mk)
  19928. } else {
  19929. v[mk] = 0
  19930. }
  19931. continue
  19932. }
  19933. mv = dd.DecodeFloat64()
  19934. if v != nil {
  19935. v[mk] = mv
  19936. }
  19937. }
  19938. dd.ReadMapEnd()
  19939. d.depthDecr()
  19940. return v, changed
  19941. }
  19942. func (d *Decoder) fastpathDecMapIntfBoolR(f *codecFnInfo, rv reflect.Value) {
  19943. if rv.Kind() == reflect.Ptr {
  19944. vp := rv2i(rv).(*map[interface{}]bool)
  19945. v, changed := fastpathTV.DecMapIntfBoolV(*vp, true, d)
  19946. if changed {
  19947. *vp = v
  19948. }
  19949. } else {
  19950. fastpathTV.DecMapIntfBoolV(rv2i(rv).(map[interface{}]bool), false, d)
  19951. }
  19952. }
  19953. func (f fastpathT) DecMapIntfBoolX(vp *map[interface{}]bool, d *Decoder) {
  19954. v, changed := f.DecMapIntfBoolV(*vp, true, d)
  19955. if changed {
  19956. *vp = v
  19957. }
  19958. }
  19959. func (_ fastpathT) DecMapIntfBoolV(v map[interface{}]bool, canChange bool,
  19960. d *Decoder) (_ map[interface{}]bool, changed bool) {
  19961. dd, esep := d.d, d.hh.hasElemSeparators()
  19962. containerLen := dd.ReadMapStart()
  19963. if canChange && v == nil {
  19964. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  19965. v = make(map[interface{}]bool, xlen)
  19966. changed = true
  19967. }
  19968. if containerLen == 0 {
  19969. dd.ReadMapEnd()
  19970. return v, changed
  19971. }
  19972. d.depthIncr()
  19973. var mk interface{}
  19974. var mv bool
  19975. hasLen := containerLen > 0
  19976. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  19977. if esep {
  19978. dd.ReadMapElemKey()
  19979. }
  19980. mk = nil
  19981. d.decode(&mk)
  19982. if bv, bok := mk.([]byte); bok {
  19983. mk = d.string(bv)
  19984. }
  19985. if esep {
  19986. dd.ReadMapElemValue()
  19987. }
  19988. if dd.TryDecodeAsNil() {
  19989. if v == nil {
  19990. } else if d.h.DeleteOnNilMapValue {
  19991. delete(v, mk)
  19992. } else {
  19993. v[mk] = false
  19994. }
  19995. continue
  19996. }
  19997. mv = dd.DecodeBool()
  19998. if v != nil {
  19999. v[mk] = mv
  20000. }
  20001. }
  20002. dd.ReadMapEnd()
  20003. d.depthDecr()
  20004. return v, changed
  20005. }
  20006. func (d *Decoder) fastpathDecMapStringIntfR(f *codecFnInfo, rv reflect.Value) {
  20007. if rv.Kind() == reflect.Ptr {
  20008. vp := rv2i(rv).(*map[string]interface{})
  20009. v, changed := fastpathTV.DecMapStringIntfV(*vp, true, d)
  20010. if changed {
  20011. *vp = v
  20012. }
  20013. } else {
  20014. fastpathTV.DecMapStringIntfV(rv2i(rv).(map[string]interface{}), false, d)
  20015. }
  20016. }
  20017. func (f fastpathT) DecMapStringIntfX(vp *map[string]interface{}, d *Decoder) {
  20018. v, changed := f.DecMapStringIntfV(*vp, true, d)
  20019. if changed {
  20020. *vp = v
  20021. }
  20022. }
  20023. func (_ fastpathT) DecMapStringIntfV(v map[string]interface{}, canChange bool,
  20024. d *Decoder) (_ map[string]interface{}, changed bool) {
  20025. dd, esep := d.d, d.hh.hasElemSeparators()
  20026. containerLen := dd.ReadMapStart()
  20027. if canChange && v == nil {
  20028. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20029. v = make(map[string]interface{}, xlen)
  20030. changed = true
  20031. }
  20032. if containerLen == 0 {
  20033. dd.ReadMapEnd()
  20034. return v, changed
  20035. }
  20036. d.depthIncr()
  20037. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  20038. var mk string
  20039. var mv interface{}
  20040. hasLen := containerLen > 0
  20041. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20042. if esep {
  20043. dd.ReadMapElemKey()
  20044. }
  20045. mk = dd.DecodeString()
  20046. if esep {
  20047. dd.ReadMapElemValue()
  20048. }
  20049. if dd.TryDecodeAsNil() {
  20050. if v == nil {
  20051. } else if d.h.DeleteOnNilMapValue {
  20052. delete(v, mk)
  20053. } else {
  20054. v[mk] = nil
  20055. }
  20056. continue
  20057. }
  20058. if mapGet {
  20059. mv = v[mk]
  20060. } else {
  20061. mv = nil
  20062. }
  20063. d.decode(&mv)
  20064. if v != nil {
  20065. v[mk] = mv
  20066. }
  20067. }
  20068. dd.ReadMapEnd()
  20069. d.depthDecr()
  20070. return v, changed
  20071. }
  20072. func (d *Decoder) fastpathDecMapStringStringR(f *codecFnInfo, rv reflect.Value) {
  20073. if rv.Kind() == reflect.Ptr {
  20074. vp := rv2i(rv).(*map[string]string)
  20075. v, changed := fastpathTV.DecMapStringStringV(*vp, true, d)
  20076. if changed {
  20077. *vp = v
  20078. }
  20079. } else {
  20080. fastpathTV.DecMapStringStringV(rv2i(rv).(map[string]string), false, d)
  20081. }
  20082. }
  20083. func (f fastpathT) DecMapStringStringX(vp *map[string]string, d *Decoder) {
  20084. v, changed := f.DecMapStringStringV(*vp, true, d)
  20085. if changed {
  20086. *vp = v
  20087. }
  20088. }
  20089. func (_ fastpathT) DecMapStringStringV(v map[string]string, canChange bool,
  20090. d *Decoder) (_ map[string]string, changed bool) {
  20091. dd, esep := d.d, d.hh.hasElemSeparators()
  20092. containerLen := dd.ReadMapStart()
  20093. if canChange && v == nil {
  20094. xlen := decInferLen(containerLen, d.h.MaxInitLen, 32)
  20095. v = make(map[string]string, xlen)
  20096. changed = true
  20097. }
  20098. if containerLen == 0 {
  20099. dd.ReadMapEnd()
  20100. return v, changed
  20101. }
  20102. d.depthIncr()
  20103. var mk string
  20104. var mv string
  20105. hasLen := containerLen > 0
  20106. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20107. if esep {
  20108. dd.ReadMapElemKey()
  20109. }
  20110. mk = dd.DecodeString()
  20111. if esep {
  20112. dd.ReadMapElemValue()
  20113. }
  20114. if dd.TryDecodeAsNil() {
  20115. if v == nil {
  20116. } else if d.h.DeleteOnNilMapValue {
  20117. delete(v, mk)
  20118. } else {
  20119. v[mk] = ""
  20120. }
  20121. continue
  20122. }
  20123. mv = dd.DecodeString()
  20124. if v != nil {
  20125. v[mk] = mv
  20126. }
  20127. }
  20128. dd.ReadMapEnd()
  20129. d.depthDecr()
  20130. return v, changed
  20131. }
  20132. func (d *Decoder) fastpathDecMapStringUintR(f *codecFnInfo, rv reflect.Value) {
  20133. if rv.Kind() == reflect.Ptr {
  20134. vp := rv2i(rv).(*map[string]uint)
  20135. v, changed := fastpathTV.DecMapStringUintV(*vp, true, d)
  20136. if changed {
  20137. *vp = v
  20138. }
  20139. } else {
  20140. fastpathTV.DecMapStringUintV(rv2i(rv).(map[string]uint), false, d)
  20141. }
  20142. }
  20143. func (f fastpathT) DecMapStringUintX(vp *map[string]uint, d *Decoder) {
  20144. v, changed := f.DecMapStringUintV(*vp, true, d)
  20145. if changed {
  20146. *vp = v
  20147. }
  20148. }
  20149. func (_ fastpathT) DecMapStringUintV(v map[string]uint, canChange bool,
  20150. d *Decoder) (_ map[string]uint, changed bool) {
  20151. dd, esep := d.d, d.hh.hasElemSeparators()
  20152. containerLen := dd.ReadMapStart()
  20153. if canChange && v == nil {
  20154. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20155. v = make(map[string]uint, xlen)
  20156. changed = true
  20157. }
  20158. if containerLen == 0 {
  20159. dd.ReadMapEnd()
  20160. return v, changed
  20161. }
  20162. d.depthIncr()
  20163. var mk string
  20164. var mv uint
  20165. hasLen := containerLen > 0
  20166. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20167. if esep {
  20168. dd.ReadMapElemKey()
  20169. }
  20170. mk = dd.DecodeString()
  20171. if esep {
  20172. dd.ReadMapElemValue()
  20173. }
  20174. if dd.TryDecodeAsNil() {
  20175. if v == nil {
  20176. } else if d.h.DeleteOnNilMapValue {
  20177. delete(v, mk)
  20178. } else {
  20179. v[mk] = 0
  20180. }
  20181. continue
  20182. }
  20183. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20184. if v != nil {
  20185. v[mk] = mv
  20186. }
  20187. }
  20188. dd.ReadMapEnd()
  20189. d.depthDecr()
  20190. return v, changed
  20191. }
  20192. func (d *Decoder) fastpathDecMapStringUint8R(f *codecFnInfo, rv reflect.Value) {
  20193. if rv.Kind() == reflect.Ptr {
  20194. vp := rv2i(rv).(*map[string]uint8)
  20195. v, changed := fastpathTV.DecMapStringUint8V(*vp, true, d)
  20196. if changed {
  20197. *vp = v
  20198. }
  20199. } else {
  20200. fastpathTV.DecMapStringUint8V(rv2i(rv).(map[string]uint8), false, d)
  20201. }
  20202. }
  20203. func (f fastpathT) DecMapStringUint8X(vp *map[string]uint8, d *Decoder) {
  20204. v, changed := f.DecMapStringUint8V(*vp, true, d)
  20205. if changed {
  20206. *vp = v
  20207. }
  20208. }
  20209. func (_ fastpathT) DecMapStringUint8V(v map[string]uint8, canChange bool,
  20210. d *Decoder) (_ map[string]uint8, changed bool) {
  20211. dd, esep := d.d, d.hh.hasElemSeparators()
  20212. containerLen := dd.ReadMapStart()
  20213. if canChange && v == nil {
  20214. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20215. v = make(map[string]uint8, xlen)
  20216. changed = true
  20217. }
  20218. if containerLen == 0 {
  20219. dd.ReadMapEnd()
  20220. return v, changed
  20221. }
  20222. d.depthIncr()
  20223. var mk string
  20224. var mv uint8
  20225. hasLen := containerLen > 0
  20226. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20227. if esep {
  20228. dd.ReadMapElemKey()
  20229. }
  20230. mk = dd.DecodeString()
  20231. if esep {
  20232. dd.ReadMapElemValue()
  20233. }
  20234. if dd.TryDecodeAsNil() {
  20235. if v == nil {
  20236. } else if d.h.DeleteOnNilMapValue {
  20237. delete(v, mk)
  20238. } else {
  20239. v[mk] = 0
  20240. }
  20241. continue
  20242. }
  20243. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  20244. if v != nil {
  20245. v[mk] = mv
  20246. }
  20247. }
  20248. dd.ReadMapEnd()
  20249. d.depthDecr()
  20250. return v, changed
  20251. }
  20252. func (d *Decoder) fastpathDecMapStringUint16R(f *codecFnInfo, rv reflect.Value) {
  20253. if rv.Kind() == reflect.Ptr {
  20254. vp := rv2i(rv).(*map[string]uint16)
  20255. v, changed := fastpathTV.DecMapStringUint16V(*vp, true, d)
  20256. if changed {
  20257. *vp = v
  20258. }
  20259. } else {
  20260. fastpathTV.DecMapStringUint16V(rv2i(rv).(map[string]uint16), false, d)
  20261. }
  20262. }
  20263. func (f fastpathT) DecMapStringUint16X(vp *map[string]uint16, d *Decoder) {
  20264. v, changed := f.DecMapStringUint16V(*vp, true, d)
  20265. if changed {
  20266. *vp = v
  20267. }
  20268. }
  20269. func (_ fastpathT) DecMapStringUint16V(v map[string]uint16, canChange bool,
  20270. d *Decoder) (_ map[string]uint16, changed bool) {
  20271. dd, esep := d.d, d.hh.hasElemSeparators()
  20272. containerLen := dd.ReadMapStart()
  20273. if canChange && v == nil {
  20274. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20275. v = make(map[string]uint16, xlen)
  20276. changed = true
  20277. }
  20278. if containerLen == 0 {
  20279. dd.ReadMapEnd()
  20280. return v, changed
  20281. }
  20282. d.depthIncr()
  20283. var mk string
  20284. var mv uint16
  20285. hasLen := containerLen > 0
  20286. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20287. if esep {
  20288. dd.ReadMapElemKey()
  20289. }
  20290. mk = dd.DecodeString()
  20291. if esep {
  20292. dd.ReadMapElemValue()
  20293. }
  20294. if dd.TryDecodeAsNil() {
  20295. if v == nil {
  20296. } else if d.h.DeleteOnNilMapValue {
  20297. delete(v, mk)
  20298. } else {
  20299. v[mk] = 0
  20300. }
  20301. continue
  20302. }
  20303. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  20304. if v != nil {
  20305. v[mk] = mv
  20306. }
  20307. }
  20308. dd.ReadMapEnd()
  20309. d.depthDecr()
  20310. return v, changed
  20311. }
  20312. func (d *Decoder) fastpathDecMapStringUint32R(f *codecFnInfo, rv reflect.Value) {
  20313. if rv.Kind() == reflect.Ptr {
  20314. vp := rv2i(rv).(*map[string]uint32)
  20315. v, changed := fastpathTV.DecMapStringUint32V(*vp, true, d)
  20316. if changed {
  20317. *vp = v
  20318. }
  20319. } else {
  20320. fastpathTV.DecMapStringUint32V(rv2i(rv).(map[string]uint32), false, d)
  20321. }
  20322. }
  20323. func (f fastpathT) DecMapStringUint32X(vp *map[string]uint32, d *Decoder) {
  20324. v, changed := f.DecMapStringUint32V(*vp, true, d)
  20325. if changed {
  20326. *vp = v
  20327. }
  20328. }
  20329. func (_ fastpathT) DecMapStringUint32V(v map[string]uint32, canChange bool,
  20330. d *Decoder) (_ map[string]uint32, changed bool) {
  20331. dd, esep := d.d, d.hh.hasElemSeparators()
  20332. containerLen := dd.ReadMapStart()
  20333. if canChange && v == nil {
  20334. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20335. v = make(map[string]uint32, xlen)
  20336. changed = true
  20337. }
  20338. if containerLen == 0 {
  20339. dd.ReadMapEnd()
  20340. return v, changed
  20341. }
  20342. d.depthIncr()
  20343. var mk string
  20344. var mv uint32
  20345. hasLen := containerLen > 0
  20346. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20347. if esep {
  20348. dd.ReadMapElemKey()
  20349. }
  20350. mk = dd.DecodeString()
  20351. if esep {
  20352. dd.ReadMapElemValue()
  20353. }
  20354. if dd.TryDecodeAsNil() {
  20355. if v == nil {
  20356. } else if d.h.DeleteOnNilMapValue {
  20357. delete(v, mk)
  20358. } else {
  20359. v[mk] = 0
  20360. }
  20361. continue
  20362. }
  20363. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  20364. if v != nil {
  20365. v[mk] = mv
  20366. }
  20367. }
  20368. dd.ReadMapEnd()
  20369. d.depthDecr()
  20370. return v, changed
  20371. }
  20372. func (d *Decoder) fastpathDecMapStringUint64R(f *codecFnInfo, rv reflect.Value) {
  20373. if rv.Kind() == reflect.Ptr {
  20374. vp := rv2i(rv).(*map[string]uint64)
  20375. v, changed := fastpathTV.DecMapStringUint64V(*vp, true, d)
  20376. if changed {
  20377. *vp = v
  20378. }
  20379. } else {
  20380. fastpathTV.DecMapStringUint64V(rv2i(rv).(map[string]uint64), false, d)
  20381. }
  20382. }
  20383. func (f fastpathT) DecMapStringUint64X(vp *map[string]uint64, d *Decoder) {
  20384. v, changed := f.DecMapStringUint64V(*vp, true, d)
  20385. if changed {
  20386. *vp = v
  20387. }
  20388. }
  20389. func (_ fastpathT) DecMapStringUint64V(v map[string]uint64, canChange bool,
  20390. d *Decoder) (_ map[string]uint64, changed bool) {
  20391. dd, esep := d.d, d.hh.hasElemSeparators()
  20392. containerLen := dd.ReadMapStart()
  20393. if canChange && v == nil {
  20394. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20395. v = make(map[string]uint64, xlen)
  20396. changed = true
  20397. }
  20398. if containerLen == 0 {
  20399. dd.ReadMapEnd()
  20400. return v, changed
  20401. }
  20402. d.depthIncr()
  20403. var mk string
  20404. var mv uint64
  20405. hasLen := containerLen > 0
  20406. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20407. if esep {
  20408. dd.ReadMapElemKey()
  20409. }
  20410. mk = dd.DecodeString()
  20411. if esep {
  20412. dd.ReadMapElemValue()
  20413. }
  20414. if dd.TryDecodeAsNil() {
  20415. if v == nil {
  20416. } else if d.h.DeleteOnNilMapValue {
  20417. delete(v, mk)
  20418. } else {
  20419. v[mk] = 0
  20420. }
  20421. continue
  20422. }
  20423. mv = dd.DecodeUint64()
  20424. if v != nil {
  20425. v[mk] = mv
  20426. }
  20427. }
  20428. dd.ReadMapEnd()
  20429. d.depthDecr()
  20430. return v, changed
  20431. }
  20432. func (d *Decoder) fastpathDecMapStringUintptrR(f *codecFnInfo, rv reflect.Value) {
  20433. if rv.Kind() == reflect.Ptr {
  20434. vp := rv2i(rv).(*map[string]uintptr)
  20435. v, changed := fastpathTV.DecMapStringUintptrV(*vp, true, d)
  20436. if changed {
  20437. *vp = v
  20438. }
  20439. } else {
  20440. fastpathTV.DecMapStringUintptrV(rv2i(rv).(map[string]uintptr), false, d)
  20441. }
  20442. }
  20443. func (f fastpathT) DecMapStringUintptrX(vp *map[string]uintptr, d *Decoder) {
  20444. v, changed := f.DecMapStringUintptrV(*vp, true, d)
  20445. if changed {
  20446. *vp = v
  20447. }
  20448. }
  20449. func (_ fastpathT) DecMapStringUintptrV(v map[string]uintptr, canChange bool,
  20450. d *Decoder) (_ map[string]uintptr, changed bool) {
  20451. dd, esep := d.d, d.hh.hasElemSeparators()
  20452. containerLen := dd.ReadMapStart()
  20453. if canChange && v == nil {
  20454. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20455. v = make(map[string]uintptr, xlen)
  20456. changed = true
  20457. }
  20458. if containerLen == 0 {
  20459. dd.ReadMapEnd()
  20460. return v, changed
  20461. }
  20462. d.depthIncr()
  20463. var mk string
  20464. var mv uintptr
  20465. hasLen := containerLen > 0
  20466. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20467. if esep {
  20468. dd.ReadMapElemKey()
  20469. }
  20470. mk = dd.DecodeString()
  20471. if esep {
  20472. dd.ReadMapElemValue()
  20473. }
  20474. if dd.TryDecodeAsNil() {
  20475. if v == nil {
  20476. } else if d.h.DeleteOnNilMapValue {
  20477. delete(v, mk)
  20478. } else {
  20479. v[mk] = 0
  20480. }
  20481. continue
  20482. }
  20483. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  20484. if v != nil {
  20485. v[mk] = mv
  20486. }
  20487. }
  20488. dd.ReadMapEnd()
  20489. d.depthDecr()
  20490. return v, changed
  20491. }
  20492. func (d *Decoder) fastpathDecMapStringIntR(f *codecFnInfo, rv reflect.Value) {
  20493. if rv.Kind() == reflect.Ptr {
  20494. vp := rv2i(rv).(*map[string]int)
  20495. v, changed := fastpathTV.DecMapStringIntV(*vp, true, d)
  20496. if changed {
  20497. *vp = v
  20498. }
  20499. } else {
  20500. fastpathTV.DecMapStringIntV(rv2i(rv).(map[string]int), false, d)
  20501. }
  20502. }
  20503. func (f fastpathT) DecMapStringIntX(vp *map[string]int, d *Decoder) {
  20504. v, changed := f.DecMapStringIntV(*vp, true, d)
  20505. if changed {
  20506. *vp = v
  20507. }
  20508. }
  20509. func (_ fastpathT) DecMapStringIntV(v map[string]int, canChange bool,
  20510. d *Decoder) (_ map[string]int, changed bool) {
  20511. dd, esep := d.d, d.hh.hasElemSeparators()
  20512. containerLen := dd.ReadMapStart()
  20513. if canChange && v == nil {
  20514. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20515. v = make(map[string]int, xlen)
  20516. changed = true
  20517. }
  20518. if containerLen == 0 {
  20519. dd.ReadMapEnd()
  20520. return v, changed
  20521. }
  20522. d.depthIncr()
  20523. var mk string
  20524. var mv int
  20525. hasLen := containerLen > 0
  20526. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20527. if esep {
  20528. dd.ReadMapElemKey()
  20529. }
  20530. mk = dd.DecodeString()
  20531. if esep {
  20532. dd.ReadMapElemValue()
  20533. }
  20534. if dd.TryDecodeAsNil() {
  20535. if v == nil {
  20536. } else if d.h.DeleteOnNilMapValue {
  20537. delete(v, mk)
  20538. } else {
  20539. v[mk] = 0
  20540. }
  20541. continue
  20542. }
  20543. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  20544. if v != nil {
  20545. v[mk] = mv
  20546. }
  20547. }
  20548. dd.ReadMapEnd()
  20549. d.depthDecr()
  20550. return v, changed
  20551. }
  20552. func (d *Decoder) fastpathDecMapStringInt8R(f *codecFnInfo, rv reflect.Value) {
  20553. if rv.Kind() == reflect.Ptr {
  20554. vp := rv2i(rv).(*map[string]int8)
  20555. v, changed := fastpathTV.DecMapStringInt8V(*vp, true, d)
  20556. if changed {
  20557. *vp = v
  20558. }
  20559. } else {
  20560. fastpathTV.DecMapStringInt8V(rv2i(rv).(map[string]int8), false, d)
  20561. }
  20562. }
  20563. func (f fastpathT) DecMapStringInt8X(vp *map[string]int8, d *Decoder) {
  20564. v, changed := f.DecMapStringInt8V(*vp, true, d)
  20565. if changed {
  20566. *vp = v
  20567. }
  20568. }
  20569. func (_ fastpathT) DecMapStringInt8V(v map[string]int8, canChange bool,
  20570. d *Decoder) (_ map[string]int8, changed bool) {
  20571. dd, esep := d.d, d.hh.hasElemSeparators()
  20572. containerLen := dd.ReadMapStart()
  20573. if canChange && v == nil {
  20574. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20575. v = make(map[string]int8, xlen)
  20576. changed = true
  20577. }
  20578. if containerLen == 0 {
  20579. dd.ReadMapEnd()
  20580. return v, changed
  20581. }
  20582. d.depthIncr()
  20583. var mk string
  20584. var mv int8
  20585. hasLen := containerLen > 0
  20586. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20587. if esep {
  20588. dd.ReadMapElemKey()
  20589. }
  20590. mk = dd.DecodeString()
  20591. if esep {
  20592. dd.ReadMapElemValue()
  20593. }
  20594. if dd.TryDecodeAsNil() {
  20595. if v == nil {
  20596. } else if d.h.DeleteOnNilMapValue {
  20597. delete(v, mk)
  20598. } else {
  20599. v[mk] = 0
  20600. }
  20601. continue
  20602. }
  20603. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  20604. if v != nil {
  20605. v[mk] = mv
  20606. }
  20607. }
  20608. dd.ReadMapEnd()
  20609. d.depthDecr()
  20610. return v, changed
  20611. }
  20612. func (d *Decoder) fastpathDecMapStringInt16R(f *codecFnInfo, rv reflect.Value) {
  20613. if rv.Kind() == reflect.Ptr {
  20614. vp := rv2i(rv).(*map[string]int16)
  20615. v, changed := fastpathTV.DecMapStringInt16V(*vp, true, d)
  20616. if changed {
  20617. *vp = v
  20618. }
  20619. } else {
  20620. fastpathTV.DecMapStringInt16V(rv2i(rv).(map[string]int16), false, d)
  20621. }
  20622. }
  20623. func (f fastpathT) DecMapStringInt16X(vp *map[string]int16, d *Decoder) {
  20624. v, changed := f.DecMapStringInt16V(*vp, true, d)
  20625. if changed {
  20626. *vp = v
  20627. }
  20628. }
  20629. func (_ fastpathT) DecMapStringInt16V(v map[string]int16, canChange bool,
  20630. d *Decoder) (_ map[string]int16, changed bool) {
  20631. dd, esep := d.d, d.hh.hasElemSeparators()
  20632. containerLen := dd.ReadMapStart()
  20633. if canChange && v == nil {
  20634. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  20635. v = make(map[string]int16, xlen)
  20636. changed = true
  20637. }
  20638. if containerLen == 0 {
  20639. dd.ReadMapEnd()
  20640. return v, changed
  20641. }
  20642. d.depthIncr()
  20643. var mk string
  20644. var mv int16
  20645. hasLen := containerLen > 0
  20646. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20647. if esep {
  20648. dd.ReadMapElemKey()
  20649. }
  20650. mk = dd.DecodeString()
  20651. if esep {
  20652. dd.ReadMapElemValue()
  20653. }
  20654. if dd.TryDecodeAsNil() {
  20655. if v == nil {
  20656. } else if d.h.DeleteOnNilMapValue {
  20657. delete(v, mk)
  20658. } else {
  20659. v[mk] = 0
  20660. }
  20661. continue
  20662. }
  20663. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  20664. if v != nil {
  20665. v[mk] = mv
  20666. }
  20667. }
  20668. dd.ReadMapEnd()
  20669. d.depthDecr()
  20670. return v, changed
  20671. }
  20672. func (d *Decoder) fastpathDecMapStringInt32R(f *codecFnInfo, rv reflect.Value) {
  20673. if rv.Kind() == reflect.Ptr {
  20674. vp := rv2i(rv).(*map[string]int32)
  20675. v, changed := fastpathTV.DecMapStringInt32V(*vp, true, d)
  20676. if changed {
  20677. *vp = v
  20678. }
  20679. } else {
  20680. fastpathTV.DecMapStringInt32V(rv2i(rv).(map[string]int32), false, d)
  20681. }
  20682. }
  20683. func (f fastpathT) DecMapStringInt32X(vp *map[string]int32, d *Decoder) {
  20684. v, changed := f.DecMapStringInt32V(*vp, true, d)
  20685. if changed {
  20686. *vp = v
  20687. }
  20688. }
  20689. func (_ fastpathT) DecMapStringInt32V(v map[string]int32, canChange bool,
  20690. d *Decoder) (_ map[string]int32, changed bool) {
  20691. dd, esep := d.d, d.hh.hasElemSeparators()
  20692. containerLen := dd.ReadMapStart()
  20693. if canChange && v == nil {
  20694. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20695. v = make(map[string]int32, xlen)
  20696. changed = true
  20697. }
  20698. if containerLen == 0 {
  20699. dd.ReadMapEnd()
  20700. return v, changed
  20701. }
  20702. d.depthIncr()
  20703. var mk string
  20704. var mv int32
  20705. hasLen := containerLen > 0
  20706. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20707. if esep {
  20708. dd.ReadMapElemKey()
  20709. }
  20710. mk = dd.DecodeString()
  20711. if esep {
  20712. dd.ReadMapElemValue()
  20713. }
  20714. if dd.TryDecodeAsNil() {
  20715. if v == nil {
  20716. } else if d.h.DeleteOnNilMapValue {
  20717. delete(v, mk)
  20718. } else {
  20719. v[mk] = 0
  20720. }
  20721. continue
  20722. }
  20723. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  20724. if v != nil {
  20725. v[mk] = mv
  20726. }
  20727. }
  20728. dd.ReadMapEnd()
  20729. d.depthDecr()
  20730. return v, changed
  20731. }
  20732. func (d *Decoder) fastpathDecMapStringInt64R(f *codecFnInfo, rv reflect.Value) {
  20733. if rv.Kind() == reflect.Ptr {
  20734. vp := rv2i(rv).(*map[string]int64)
  20735. v, changed := fastpathTV.DecMapStringInt64V(*vp, true, d)
  20736. if changed {
  20737. *vp = v
  20738. }
  20739. } else {
  20740. fastpathTV.DecMapStringInt64V(rv2i(rv).(map[string]int64), false, d)
  20741. }
  20742. }
  20743. func (f fastpathT) DecMapStringInt64X(vp *map[string]int64, d *Decoder) {
  20744. v, changed := f.DecMapStringInt64V(*vp, true, d)
  20745. if changed {
  20746. *vp = v
  20747. }
  20748. }
  20749. func (_ fastpathT) DecMapStringInt64V(v map[string]int64, canChange bool,
  20750. d *Decoder) (_ map[string]int64, changed bool) {
  20751. dd, esep := d.d, d.hh.hasElemSeparators()
  20752. containerLen := dd.ReadMapStart()
  20753. if canChange && v == nil {
  20754. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20755. v = make(map[string]int64, xlen)
  20756. changed = true
  20757. }
  20758. if containerLen == 0 {
  20759. dd.ReadMapEnd()
  20760. return v, changed
  20761. }
  20762. d.depthIncr()
  20763. var mk string
  20764. var mv int64
  20765. hasLen := containerLen > 0
  20766. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20767. if esep {
  20768. dd.ReadMapElemKey()
  20769. }
  20770. mk = dd.DecodeString()
  20771. if esep {
  20772. dd.ReadMapElemValue()
  20773. }
  20774. if dd.TryDecodeAsNil() {
  20775. if v == nil {
  20776. } else if d.h.DeleteOnNilMapValue {
  20777. delete(v, mk)
  20778. } else {
  20779. v[mk] = 0
  20780. }
  20781. continue
  20782. }
  20783. mv = dd.DecodeInt64()
  20784. if v != nil {
  20785. v[mk] = mv
  20786. }
  20787. }
  20788. dd.ReadMapEnd()
  20789. d.depthDecr()
  20790. return v, changed
  20791. }
  20792. func (d *Decoder) fastpathDecMapStringFloat32R(f *codecFnInfo, rv reflect.Value) {
  20793. if rv.Kind() == reflect.Ptr {
  20794. vp := rv2i(rv).(*map[string]float32)
  20795. v, changed := fastpathTV.DecMapStringFloat32V(*vp, true, d)
  20796. if changed {
  20797. *vp = v
  20798. }
  20799. } else {
  20800. fastpathTV.DecMapStringFloat32V(rv2i(rv).(map[string]float32), false, d)
  20801. }
  20802. }
  20803. func (f fastpathT) DecMapStringFloat32X(vp *map[string]float32, d *Decoder) {
  20804. v, changed := f.DecMapStringFloat32V(*vp, true, d)
  20805. if changed {
  20806. *vp = v
  20807. }
  20808. }
  20809. func (_ fastpathT) DecMapStringFloat32V(v map[string]float32, canChange bool,
  20810. d *Decoder) (_ map[string]float32, changed bool) {
  20811. dd, esep := d.d, d.hh.hasElemSeparators()
  20812. containerLen := dd.ReadMapStart()
  20813. if canChange && v == nil {
  20814. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20815. v = make(map[string]float32, xlen)
  20816. changed = true
  20817. }
  20818. if containerLen == 0 {
  20819. dd.ReadMapEnd()
  20820. return v, changed
  20821. }
  20822. d.depthIncr()
  20823. var mk string
  20824. var mv float32
  20825. hasLen := containerLen > 0
  20826. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20827. if esep {
  20828. dd.ReadMapElemKey()
  20829. }
  20830. mk = dd.DecodeString()
  20831. if esep {
  20832. dd.ReadMapElemValue()
  20833. }
  20834. if dd.TryDecodeAsNil() {
  20835. if v == nil {
  20836. } else if d.h.DeleteOnNilMapValue {
  20837. delete(v, mk)
  20838. } else {
  20839. v[mk] = 0
  20840. }
  20841. continue
  20842. }
  20843. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  20844. if v != nil {
  20845. v[mk] = mv
  20846. }
  20847. }
  20848. dd.ReadMapEnd()
  20849. d.depthDecr()
  20850. return v, changed
  20851. }
  20852. func (d *Decoder) fastpathDecMapStringFloat64R(f *codecFnInfo, rv reflect.Value) {
  20853. if rv.Kind() == reflect.Ptr {
  20854. vp := rv2i(rv).(*map[string]float64)
  20855. v, changed := fastpathTV.DecMapStringFloat64V(*vp, true, d)
  20856. if changed {
  20857. *vp = v
  20858. }
  20859. } else {
  20860. fastpathTV.DecMapStringFloat64V(rv2i(rv).(map[string]float64), false, d)
  20861. }
  20862. }
  20863. func (f fastpathT) DecMapStringFloat64X(vp *map[string]float64, d *Decoder) {
  20864. v, changed := f.DecMapStringFloat64V(*vp, true, d)
  20865. if changed {
  20866. *vp = v
  20867. }
  20868. }
  20869. func (_ fastpathT) DecMapStringFloat64V(v map[string]float64, canChange bool,
  20870. d *Decoder) (_ map[string]float64, changed bool) {
  20871. dd, esep := d.d, d.hh.hasElemSeparators()
  20872. containerLen := dd.ReadMapStart()
  20873. if canChange && v == nil {
  20874. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  20875. v = make(map[string]float64, xlen)
  20876. changed = true
  20877. }
  20878. if containerLen == 0 {
  20879. dd.ReadMapEnd()
  20880. return v, changed
  20881. }
  20882. d.depthIncr()
  20883. var mk string
  20884. var mv float64
  20885. hasLen := containerLen > 0
  20886. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20887. if esep {
  20888. dd.ReadMapElemKey()
  20889. }
  20890. mk = dd.DecodeString()
  20891. if esep {
  20892. dd.ReadMapElemValue()
  20893. }
  20894. if dd.TryDecodeAsNil() {
  20895. if v == nil {
  20896. } else if d.h.DeleteOnNilMapValue {
  20897. delete(v, mk)
  20898. } else {
  20899. v[mk] = 0
  20900. }
  20901. continue
  20902. }
  20903. mv = dd.DecodeFloat64()
  20904. if v != nil {
  20905. v[mk] = mv
  20906. }
  20907. }
  20908. dd.ReadMapEnd()
  20909. d.depthDecr()
  20910. return v, changed
  20911. }
  20912. func (d *Decoder) fastpathDecMapStringBoolR(f *codecFnInfo, rv reflect.Value) {
  20913. if rv.Kind() == reflect.Ptr {
  20914. vp := rv2i(rv).(*map[string]bool)
  20915. v, changed := fastpathTV.DecMapStringBoolV(*vp, true, d)
  20916. if changed {
  20917. *vp = v
  20918. }
  20919. } else {
  20920. fastpathTV.DecMapStringBoolV(rv2i(rv).(map[string]bool), false, d)
  20921. }
  20922. }
  20923. func (f fastpathT) DecMapStringBoolX(vp *map[string]bool, d *Decoder) {
  20924. v, changed := f.DecMapStringBoolV(*vp, true, d)
  20925. if changed {
  20926. *vp = v
  20927. }
  20928. }
  20929. func (_ fastpathT) DecMapStringBoolV(v map[string]bool, canChange bool,
  20930. d *Decoder) (_ map[string]bool, changed bool) {
  20931. dd, esep := d.d, d.hh.hasElemSeparators()
  20932. containerLen := dd.ReadMapStart()
  20933. if canChange && v == nil {
  20934. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  20935. v = make(map[string]bool, xlen)
  20936. changed = true
  20937. }
  20938. if containerLen == 0 {
  20939. dd.ReadMapEnd()
  20940. return v, changed
  20941. }
  20942. d.depthIncr()
  20943. var mk string
  20944. var mv bool
  20945. hasLen := containerLen > 0
  20946. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  20947. if esep {
  20948. dd.ReadMapElemKey()
  20949. }
  20950. mk = dd.DecodeString()
  20951. if esep {
  20952. dd.ReadMapElemValue()
  20953. }
  20954. if dd.TryDecodeAsNil() {
  20955. if v == nil {
  20956. } else if d.h.DeleteOnNilMapValue {
  20957. delete(v, mk)
  20958. } else {
  20959. v[mk] = false
  20960. }
  20961. continue
  20962. }
  20963. mv = dd.DecodeBool()
  20964. if v != nil {
  20965. v[mk] = mv
  20966. }
  20967. }
  20968. dd.ReadMapEnd()
  20969. d.depthDecr()
  20970. return v, changed
  20971. }
  20972. func (d *Decoder) fastpathDecMapFloat32IntfR(f *codecFnInfo, rv reflect.Value) {
  20973. if rv.Kind() == reflect.Ptr {
  20974. vp := rv2i(rv).(*map[float32]interface{})
  20975. v, changed := fastpathTV.DecMapFloat32IntfV(*vp, true, d)
  20976. if changed {
  20977. *vp = v
  20978. }
  20979. } else {
  20980. fastpathTV.DecMapFloat32IntfV(rv2i(rv).(map[float32]interface{}), false, d)
  20981. }
  20982. }
  20983. func (f fastpathT) DecMapFloat32IntfX(vp *map[float32]interface{}, d *Decoder) {
  20984. v, changed := f.DecMapFloat32IntfV(*vp, true, d)
  20985. if changed {
  20986. *vp = v
  20987. }
  20988. }
  20989. func (_ fastpathT) DecMapFloat32IntfV(v map[float32]interface{}, canChange bool,
  20990. d *Decoder) (_ map[float32]interface{}, changed bool) {
  20991. dd, esep := d.d, d.hh.hasElemSeparators()
  20992. containerLen := dd.ReadMapStart()
  20993. if canChange && v == nil {
  20994. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  20995. v = make(map[float32]interface{}, xlen)
  20996. changed = true
  20997. }
  20998. if containerLen == 0 {
  20999. dd.ReadMapEnd()
  21000. return v, changed
  21001. }
  21002. d.depthIncr()
  21003. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21004. var mk float32
  21005. var mv interface{}
  21006. hasLen := containerLen > 0
  21007. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21008. if esep {
  21009. dd.ReadMapElemKey()
  21010. }
  21011. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21012. if esep {
  21013. dd.ReadMapElemValue()
  21014. }
  21015. if dd.TryDecodeAsNil() {
  21016. if v == nil {
  21017. } else if d.h.DeleteOnNilMapValue {
  21018. delete(v, mk)
  21019. } else {
  21020. v[mk] = nil
  21021. }
  21022. continue
  21023. }
  21024. if mapGet {
  21025. mv = v[mk]
  21026. } else {
  21027. mv = nil
  21028. }
  21029. d.decode(&mv)
  21030. if v != nil {
  21031. v[mk] = mv
  21032. }
  21033. }
  21034. dd.ReadMapEnd()
  21035. d.depthDecr()
  21036. return v, changed
  21037. }
  21038. func (d *Decoder) fastpathDecMapFloat32StringR(f *codecFnInfo, rv reflect.Value) {
  21039. if rv.Kind() == reflect.Ptr {
  21040. vp := rv2i(rv).(*map[float32]string)
  21041. v, changed := fastpathTV.DecMapFloat32StringV(*vp, true, d)
  21042. if changed {
  21043. *vp = v
  21044. }
  21045. } else {
  21046. fastpathTV.DecMapFloat32StringV(rv2i(rv).(map[float32]string), false, d)
  21047. }
  21048. }
  21049. func (f fastpathT) DecMapFloat32StringX(vp *map[float32]string, d *Decoder) {
  21050. v, changed := f.DecMapFloat32StringV(*vp, true, d)
  21051. if changed {
  21052. *vp = v
  21053. }
  21054. }
  21055. func (_ fastpathT) DecMapFloat32StringV(v map[float32]string, canChange bool,
  21056. d *Decoder) (_ map[float32]string, changed bool) {
  21057. dd, esep := d.d, d.hh.hasElemSeparators()
  21058. containerLen := dd.ReadMapStart()
  21059. if canChange && v == nil {
  21060. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  21061. v = make(map[float32]string, xlen)
  21062. changed = true
  21063. }
  21064. if containerLen == 0 {
  21065. dd.ReadMapEnd()
  21066. return v, changed
  21067. }
  21068. d.depthIncr()
  21069. var mk float32
  21070. var mv string
  21071. hasLen := containerLen > 0
  21072. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21073. if esep {
  21074. dd.ReadMapElemKey()
  21075. }
  21076. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21077. if esep {
  21078. dd.ReadMapElemValue()
  21079. }
  21080. if dd.TryDecodeAsNil() {
  21081. if v == nil {
  21082. } else if d.h.DeleteOnNilMapValue {
  21083. delete(v, mk)
  21084. } else {
  21085. v[mk] = ""
  21086. }
  21087. continue
  21088. }
  21089. mv = dd.DecodeString()
  21090. if v != nil {
  21091. v[mk] = mv
  21092. }
  21093. }
  21094. dd.ReadMapEnd()
  21095. d.depthDecr()
  21096. return v, changed
  21097. }
  21098. func (d *Decoder) fastpathDecMapFloat32UintR(f *codecFnInfo, rv reflect.Value) {
  21099. if rv.Kind() == reflect.Ptr {
  21100. vp := rv2i(rv).(*map[float32]uint)
  21101. v, changed := fastpathTV.DecMapFloat32UintV(*vp, true, d)
  21102. if changed {
  21103. *vp = v
  21104. }
  21105. } else {
  21106. fastpathTV.DecMapFloat32UintV(rv2i(rv).(map[float32]uint), false, d)
  21107. }
  21108. }
  21109. func (f fastpathT) DecMapFloat32UintX(vp *map[float32]uint, d *Decoder) {
  21110. v, changed := f.DecMapFloat32UintV(*vp, true, d)
  21111. if changed {
  21112. *vp = v
  21113. }
  21114. }
  21115. func (_ fastpathT) DecMapFloat32UintV(v map[float32]uint, canChange bool,
  21116. d *Decoder) (_ map[float32]uint, changed bool) {
  21117. dd, esep := d.d, d.hh.hasElemSeparators()
  21118. containerLen := dd.ReadMapStart()
  21119. if canChange && v == nil {
  21120. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21121. v = make(map[float32]uint, xlen)
  21122. changed = true
  21123. }
  21124. if containerLen == 0 {
  21125. dd.ReadMapEnd()
  21126. return v, changed
  21127. }
  21128. d.depthIncr()
  21129. var mk float32
  21130. var mv uint
  21131. hasLen := containerLen > 0
  21132. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21133. if esep {
  21134. dd.ReadMapElemKey()
  21135. }
  21136. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21137. if esep {
  21138. dd.ReadMapElemValue()
  21139. }
  21140. if dd.TryDecodeAsNil() {
  21141. if v == nil {
  21142. } else if d.h.DeleteOnNilMapValue {
  21143. delete(v, mk)
  21144. } else {
  21145. v[mk] = 0
  21146. }
  21147. continue
  21148. }
  21149. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21150. if v != nil {
  21151. v[mk] = mv
  21152. }
  21153. }
  21154. dd.ReadMapEnd()
  21155. d.depthDecr()
  21156. return v, changed
  21157. }
  21158. func (d *Decoder) fastpathDecMapFloat32Uint8R(f *codecFnInfo, rv reflect.Value) {
  21159. if rv.Kind() == reflect.Ptr {
  21160. vp := rv2i(rv).(*map[float32]uint8)
  21161. v, changed := fastpathTV.DecMapFloat32Uint8V(*vp, true, d)
  21162. if changed {
  21163. *vp = v
  21164. }
  21165. } else {
  21166. fastpathTV.DecMapFloat32Uint8V(rv2i(rv).(map[float32]uint8), false, d)
  21167. }
  21168. }
  21169. func (f fastpathT) DecMapFloat32Uint8X(vp *map[float32]uint8, d *Decoder) {
  21170. v, changed := f.DecMapFloat32Uint8V(*vp, true, d)
  21171. if changed {
  21172. *vp = v
  21173. }
  21174. }
  21175. func (_ fastpathT) DecMapFloat32Uint8V(v map[float32]uint8, canChange bool,
  21176. d *Decoder) (_ map[float32]uint8, changed bool) {
  21177. dd, esep := d.d, d.hh.hasElemSeparators()
  21178. containerLen := dd.ReadMapStart()
  21179. if canChange && v == nil {
  21180. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21181. v = make(map[float32]uint8, xlen)
  21182. changed = true
  21183. }
  21184. if containerLen == 0 {
  21185. dd.ReadMapEnd()
  21186. return v, changed
  21187. }
  21188. d.depthIncr()
  21189. var mk float32
  21190. var mv uint8
  21191. hasLen := containerLen > 0
  21192. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21193. if esep {
  21194. dd.ReadMapElemKey()
  21195. }
  21196. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21197. if esep {
  21198. dd.ReadMapElemValue()
  21199. }
  21200. if dd.TryDecodeAsNil() {
  21201. if v == nil {
  21202. } else if d.h.DeleteOnNilMapValue {
  21203. delete(v, mk)
  21204. } else {
  21205. v[mk] = 0
  21206. }
  21207. continue
  21208. }
  21209. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  21210. if v != nil {
  21211. v[mk] = mv
  21212. }
  21213. }
  21214. dd.ReadMapEnd()
  21215. d.depthDecr()
  21216. return v, changed
  21217. }
  21218. func (d *Decoder) fastpathDecMapFloat32Uint16R(f *codecFnInfo, rv reflect.Value) {
  21219. if rv.Kind() == reflect.Ptr {
  21220. vp := rv2i(rv).(*map[float32]uint16)
  21221. v, changed := fastpathTV.DecMapFloat32Uint16V(*vp, true, d)
  21222. if changed {
  21223. *vp = v
  21224. }
  21225. } else {
  21226. fastpathTV.DecMapFloat32Uint16V(rv2i(rv).(map[float32]uint16), false, d)
  21227. }
  21228. }
  21229. func (f fastpathT) DecMapFloat32Uint16X(vp *map[float32]uint16, d *Decoder) {
  21230. v, changed := f.DecMapFloat32Uint16V(*vp, true, d)
  21231. if changed {
  21232. *vp = v
  21233. }
  21234. }
  21235. func (_ fastpathT) DecMapFloat32Uint16V(v map[float32]uint16, canChange bool,
  21236. d *Decoder) (_ map[float32]uint16, changed bool) {
  21237. dd, esep := d.d, d.hh.hasElemSeparators()
  21238. containerLen := dd.ReadMapStart()
  21239. if canChange && v == nil {
  21240. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21241. v = make(map[float32]uint16, xlen)
  21242. changed = true
  21243. }
  21244. if containerLen == 0 {
  21245. dd.ReadMapEnd()
  21246. return v, changed
  21247. }
  21248. d.depthIncr()
  21249. var mk float32
  21250. var mv uint16
  21251. hasLen := containerLen > 0
  21252. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21253. if esep {
  21254. dd.ReadMapElemKey()
  21255. }
  21256. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21257. if esep {
  21258. dd.ReadMapElemValue()
  21259. }
  21260. if dd.TryDecodeAsNil() {
  21261. if v == nil {
  21262. } else if d.h.DeleteOnNilMapValue {
  21263. delete(v, mk)
  21264. } else {
  21265. v[mk] = 0
  21266. }
  21267. continue
  21268. }
  21269. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  21270. if v != nil {
  21271. v[mk] = mv
  21272. }
  21273. }
  21274. dd.ReadMapEnd()
  21275. d.depthDecr()
  21276. return v, changed
  21277. }
  21278. func (d *Decoder) fastpathDecMapFloat32Uint32R(f *codecFnInfo, rv reflect.Value) {
  21279. if rv.Kind() == reflect.Ptr {
  21280. vp := rv2i(rv).(*map[float32]uint32)
  21281. v, changed := fastpathTV.DecMapFloat32Uint32V(*vp, true, d)
  21282. if changed {
  21283. *vp = v
  21284. }
  21285. } else {
  21286. fastpathTV.DecMapFloat32Uint32V(rv2i(rv).(map[float32]uint32), false, d)
  21287. }
  21288. }
  21289. func (f fastpathT) DecMapFloat32Uint32X(vp *map[float32]uint32, d *Decoder) {
  21290. v, changed := f.DecMapFloat32Uint32V(*vp, true, d)
  21291. if changed {
  21292. *vp = v
  21293. }
  21294. }
  21295. func (_ fastpathT) DecMapFloat32Uint32V(v map[float32]uint32, canChange bool,
  21296. d *Decoder) (_ map[float32]uint32, changed bool) {
  21297. dd, esep := d.d, d.hh.hasElemSeparators()
  21298. containerLen := dd.ReadMapStart()
  21299. if canChange && v == nil {
  21300. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21301. v = make(map[float32]uint32, xlen)
  21302. changed = true
  21303. }
  21304. if containerLen == 0 {
  21305. dd.ReadMapEnd()
  21306. return v, changed
  21307. }
  21308. d.depthIncr()
  21309. var mk float32
  21310. var mv uint32
  21311. hasLen := containerLen > 0
  21312. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21313. if esep {
  21314. dd.ReadMapElemKey()
  21315. }
  21316. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21317. if esep {
  21318. dd.ReadMapElemValue()
  21319. }
  21320. if dd.TryDecodeAsNil() {
  21321. if v == nil {
  21322. } else if d.h.DeleteOnNilMapValue {
  21323. delete(v, mk)
  21324. } else {
  21325. v[mk] = 0
  21326. }
  21327. continue
  21328. }
  21329. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  21330. if v != nil {
  21331. v[mk] = mv
  21332. }
  21333. }
  21334. dd.ReadMapEnd()
  21335. d.depthDecr()
  21336. return v, changed
  21337. }
  21338. func (d *Decoder) fastpathDecMapFloat32Uint64R(f *codecFnInfo, rv reflect.Value) {
  21339. if rv.Kind() == reflect.Ptr {
  21340. vp := rv2i(rv).(*map[float32]uint64)
  21341. v, changed := fastpathTV.DecMapFloat32Uint64V(*vp, true, d)
  21342. if changed {
  21343. *vp = v
  21344. }
  21345. } else {
  21346. fastpathTV.DecMapFloat32Uint64V(rv2i(rv).(map[float32]uint64), false, d)
  21347. }
  21348. }
  21349. func (f fastpathT) DecMapFloat32Uint64X(vp *map[float32]uint64, d *Decoder) {
  21350. v, changed := f.DecMapFloat32Uint64V(*vp, true, d)
  21351. if changed {
  21352. *vp = v
  21353. }
  21354. }
  21355. func (_ fastpathT) DecMapFloat32Uint64V(v map[float32]uint64, canChange bool,
  21356. d *Decoder) (_ map[float32]uint64, changed bool) {
  21357. dd, esep := d.d, d.hh.hasElemSeparators()
  21358. containerLen := dd.ReadMapStart()
  21359. if canChange && v == nil {
  21360. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21361. v = make(map[float32]uint64, xlen)
  21362. changed = true
  21363. }
  21364. if containerLen == 0 {
  21365. dd.ReadMapEnd()
  21366. return v, changed
  21367. }
  21368. d.depthIncr()
  21369. var mk float32
  21370. var mv uint64
  21371. hasLen := containerLen > 0
  21372. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21373. if esep {
  21374. dd.ReadMapElemKey()
  21375. }
  21376. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21377. if esep {
  21378. dd.ReadMapElemValue()
  21379. }
  21380. if dd.TryDecodeAsNil() {
  21381. if v == nil {
  21382. } else if d.h.DeleteOnNilMapValue {
  21383. delete(v, mk)
  21384. } else {
  21385. v[mk] = 0
  21386. }
  21387. continue
  21388. }
  21389. mv = dd.DecodeUint64()
  21390. if v != nil {
  21391. v[mk] = mv
  21392. }
  21393. }
  21394. dd.ReadMapEnd()
  21395. d.depthDecr()
  21396. return v, changed
  21397. }
  21398. func (d *Decoder) fastpathDecMapFloat32UintptrR(f *codecFnInfo, rv reflect.Value) {
  21399. if rv.Kind() == reflect.Ptr {
  21400. vp := rv2i(rv).(*map[float32]uintptr)
  21401. v, changed := fastpathTV.DecMapFloat32UintptrV(*vp, true, d)
  21402. if changed {
  21403. *vp = v
  21404. }
  21405. } else {
  21406. fastpathTV.DecMapFloat32UintptrV(rv2i(rv).(map[float32]uintptr), false, d)
  21407. }
  21408. }
  21409. func (f fastpathT) DecMapFloat32UintptrX(vp *map[float32]uintptr, d *Decoder) {
  21410. v, changed := f.DecMapFloat32UintptrV(*vp, true, d)
  21411. if changed {
  21412. *vp = v
  21413. }
  21414. }
  21415. func (_ fastpathT) DecMapFloat32UintptrV(v map[float32]uintptr, canChange bool,
  21416. d *Decoder) (_ map[float32]uintptr, changed bool) {
  21417. dd, esep := d.d, d.hh.hasElemSeparators()
  21418. containerLen := dd.ReadMapStart()
  21419. if canChange && v == nil {
  21420. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21421. v = make(map[float32]uintptr, xlen)
  21422. changed = true
  21423. }
  21424. if containerLen == 0 {
  21425. dd.ReadMapEnd()
  21426. return v, changed
  21427. }
  21428. d.depthIncr()
  21429. var mk float32
  21430. var mv uintptr
  21431. hasLen := containerLen > 0
  21432. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21433. if esep {
  21434. dd.ReadMapElemKey()
  21435. }
  21436. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21437. if esep {
  21438. dd.ReadMapElemValue()
  21439. }
  21440. if dd.TryDecodeAsNil() {
  21441. if v == nil {
  21442. } else if d.h.DeleteOnNilMapValue {
  21443. delete(v, mk)
  21444. } else {
  21445. v[mk] = 0
  21446. }
  21447. continue
  21448. }
  21449. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  21450. if v != nil {
  21451. v[mk] = mv
  21452. }
  21453. }
  21454. dd.ReadMapEnd()
  21455. d.depthDecr()
  21456. return v, changed
  21457. }
  21458. func (d *Decoder) fastpathDecMapFloat32IntR(f *codecFnInfo, rv reflect.Value) {
  21459. if rv.Kind() == reflect.Ptr {
  21460. vp := rv2i(rv).(*map[float32]int)
  21461. v, changed := fastpathTV.DecMapFloat32IntV(*vp, true, d)
  21462. if changed {
  21463. *vp = v
  21464. }
  21465. } else {
  21466. fastpathTV.DecMapFloat32IntV(rv2i(rv).(map[float32]int), false, d)
  21467. }
  21468. }
  21469. func (f fastpathT) DecMapFloat32IntX(vp *map[float32]int, d *Decoder) {
  21470. v, changed := f.DecMapFloat32IntV(*vp, true, d)
  21471. if changed {
  21472. *vp = v
  21473. }
  21474. }
  21475. func (_ fastpathT) DecMapFloat32IntV(v map[float32]int, canChange bool,
  21476. d *Decoder) (_ map[float32]int, changed bool) {
  21477. dd, esep := d.d, d.hh.hasElemSeparators()
  21478. containerLen := dd.ReadMapStart()
  21479. if canChange && v == nil {
  21480. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21481. v = make(map[float32]int, xlen)
  21482. changed = true
  21483. }
  21484. if containerLen == 0 {
  21485. dd.ReadMapEnd()
  21486. return v, changed
  21487. }
  21488. d.depthIncr()
  21489. var mk float32
  21490. var mv int
  21491. hasLen := containerLen > 0
  21492. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21493. if esep {
  21494. dd.ReadMapElemKey()
  21495. }
  21496. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21497. if esep {
  21498. dd.ReadMapElemValue()
  21499. }
  21500. if dd.TryDecodeAsNil() {
  21501. if v == nil {
  21502. } else if d.h.DeleteOnNilMapValue {
  21503. delete(v, mk)
  21504. } else {
  21505. v[mk] = 0
  21506. }
  21507. continue
  21508. }
  21509. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  21510. if v != nil {
  21511. v[mk] = mv
  21512. }
  21513. }
  21514. dd.ReadMapEnd()
  21515. d.depthDecr()
  21516. return v, changed
  21517. }
  21518. func (d *Decoder) fastpathDecMapFloat32Int8R(f *codecFnInfo, rv reflect.Value) {
  21519. if rv.Kind() == reflect.Ptr {
  21520. vp := rv2i(rv).(*map[float32]int8)
  21521. v, changed := fastpathTV.DecMapFloat32Int8V(*vp, true, d)
  21522. if changed {
  21523. *vp = v
  21524. }
  21525. } else {
  21526. fastpathTV.DecMapFloat32Int8V(rv2i(rv).(map[float32]int8), false, d)
  21527. }
  21528. }
  21529. func (f fastpathT) DecMapFloat32Int8X(vp *map[float32]int8, d *Decoder) {
  21530. v, changed := f.DecMapFloat32Int8V(*vp, true, d)
  21531. if changed {
  21532. *vp = v
  21533. }
  21534. }
  21535. func (_ fastpathT) DecMapFloat32Int8V(v map[float32]int8, canChange bool,
  21536. d *Decoder) (_ map[float32]int8, changed bool) {
  21537. dd, esep := d.d, d.hh.hasElemSeparators()
  21538. containerLen := dd.ReadMapStart()
  21539. if canChange && v == nil {
  21540. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21541. v = make(map[float32]int8, xlen)
  21542. changed = true
  21543. }
  21544. if containerLen == 0 {
  21545. dd.ReadMapEnd()
  21546. return v, changed
  21547. }
  21548. d.depthIncr()
  21549. var mk float32
  21550. var mv int8
  21551. hasLen := containerLen > 0
  21552. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21553. if esep {
  21554. dd.ReadMapElemKey()
  21555. }
  21556. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21557. if esep {
  21558. dd.ReadMapElemValue()
  21559. }
  21560. if dd.TryDecodeAsNil() {
  21561. if v == nil {
  21562. } else if d.h.DeleteOnNilMapValue {
  21563. delete(v, mk)
  21564. } else {
  21565. v[mk] = 0
  21566. }
  21567. continue
  21568. }
  21569. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  21570. if v != nil {
  21571. v[mk] = mv
  21572. }
  21573. }
  21574. dd.ReadMapEnd()
  21575. d.depthDecr()
  21576. return v, changed
  21577. }
  21578. func (d *Decoder) fastpathDecMapFloat32Int16R(f *codecFnInfo, rv reflect.Value) {
  21579. if rv.Kind() == reflect.Ptr {
  21580. vp := rv2i(rv).(*map[float32]int16)
  21581. v, changed := fastpathTV.DecMapFloat32Int16V(*vp, true, d)
  21582. if changed {
  21583. *vp = v
  21584. }
  21585. } else {
  21586. fastpathTV.DecMapFloat32Int16V(rv2i(rv).(map[float32]int16), false, d)
  21587. }
  21588. }
  21589. func (f fastpathT) DecMapFloat32Int16X(vp *map[float32]int16, d *Decoder) {
  21590. v, changed := f.DecMapFloat32Int16V(*vp, true, d)
  21591. if changed {
  21592. *vp = v
  21593. }
  21594. }
  21595. func (_ fastpathT) DecMapFloat32Int16V(v map[float32]int16, canChange bool,
  21596. d *Decoder) (_ map[float32]int16, changed bool) {
  21597. dd, esep := d.d, d.hh.hasElemSeparators()
  21598. containerLen := dd.ReadMapStart()
  21599. if canChange && v == nil {
  21600. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  21601. v = make(map[float32]int16, xlen)
  21602. changed = true
  21603. }
  21604. if containerLen == 0 {
  21605. dd.ReadMapEnd()
  21606. return v, changed
  21607. }
  21608. d.depthIncr()
  21609. var mk float32
  21610. var mv int16
  21611. hasLen := containerLen > 0
  21612. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21613. if esep {
  21614. dd.ReadMapElemKey()
  21615. }
  21616. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21617. if esep {
  21618. dd.ReadMapElemValue()
  21619. }
  21620. if dd.TryDecodeAsNil() {
  21621. if v == nil {
  21622. } else if d.h.DeleteOnNilMapValue {
  21623. delete(v, mk)
  21624. } else {
  21625. v[mk] = 0
  21626. }
  21627. continue
  21628. }
  21629. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  21630. if v != nil {
  21631. v[mk] = mv
  21632. }
  21633. }
  21634. dd.ReadMapEnd()
  21635. d.depthDecr()
  21636. return v, changed
  21637. }
  21638. func (d *Decoder) fastpathDecMapFloat32Int32R(f *codecFnInfo, rv reflect.Value) {
  21639. if rv.Kind() == reflect.Ptr {
  21640. vp := rv2i(rv).(*map[float32]int32)
  21641. v, changed := fastpathTV.DecMapFloat32Int32V(*vp, true, d)
  21642. if changed {
  21643. *vp = v
  21644. }
  21645. } else {
  21646. fastpathTV.DecMapFloat32Int32V(rv2i(rv).(map[float32]int32), false, d)
  21647. }
  21648. }
  21649. func (f fastpathT) DecMapFloat32Int32X(vp *map[float32]int32, d *Decoder) {
  21650. v, changed := f.DecMapFloat32Int32V(*vp, true, d)
  21651. if changed {
  21652. *vp = v
  21653. }
  21654. }
  21655. func (_ fastpathT) DecMapFloat32Int32V(v map[float32]int32, canChange bool,
  21656. d *Decoder) (_ map[float32]int32, changed bool) {
  21657. dd, esep := d.d, d.hh.hasElemSeparators()
  21658. containerLen := dd.ReadMapStart()
  21659. if canChange && v == nil {
  21660. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21661. v = make(map[float32]int32, xlen)
  21662. changed = true
  21663. }
  21664. if containerLen == 0 {
  21665. dd.ReadMapEnd()
  21666. return v, changed
  21667. }
  21668. d.depthIncr()
  21669. var mk float32
  21670. var mv int32
  21671. hasLen := containerLen > 0
  21672. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21673. if esep {
  21674. dd.ReadMapElemKey()
  21675. }
  21676. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21677. if esep {
  21678. dd.ReadMapElemValue()
  21679. }
  21680. if dd.TryDecodeAsNil() {
  21681. if v == nil {
  21682. } else if d.h.DeleteOnNilMapValue {
  21683. delete(v, mk)
  21684. } else {
  21685. v[mk] = 0
  21686. }
  21687. continue
  21688. }
  21689. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  21690. if v != nil {
  21691. v[mk] = mv
  21692. }
  21693. }
  21694. dd.ReadMapEnd()
  21695. d.depthDecr()
  21696. return v, changed
  21697. }
  21698. func (d *Decoder) fastpathDecMapFloat32Int64R(f *codecFnInfo, rv reflect.Value) {
  21699. if rv.Kind() == reflect.Ptr {
  21700. vp := rv2i(rv).(*map[float32]int64)
  21701. v, changed := fastpathTV.DecMapFloat32Int64V(*vp, true, d)
  21702. if changed {
  21703. *vp = v
  21704. }
  21705. } else {
  21706. fastpathTV.DecMapFloat32Int64V(rv2i(rv).(map[float32]int64), false, d)
  21707. }
  21708. }
  21709. func (f fastpathT) DecMapFloat32Int64X(vp *map[float32]int64, d *Decoder) {
  21710. v, changed := f.DecMapFloat32Int64V(*vp, true, d)
  21711. if changed {
  21712. *vp = v
  21713. }
  21714. }
  21715. func (_ fastpathT) DecMapFloat32Int64V(v map[float32]int64, canChange bool,
  21716. d *Decoder) (_ map[float32]int64, changed bool) {
  21717. dd, esep := d.d, d.hh.hasElemSeparators()
  21718. containerLen := dd.ReadMapStart()
  21719. if canChange && v == nil {
  21720. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21721. v = make(map[float32]int64, xlen)
  21722. changed = true
  21723. }
  21724. if containerLen == 0 {
  21725. dd.ReadMapEnd()
  21726. return v, changed
  21727. }
  21728. d.depthIncr()
  21729. var mk float32
  21730. var mv int64
  21731. hasLen := containerLen > 0
  21732. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21733. if esep {
  21734. dd.ReadMapElemKey()
  21735. }
  21736. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21737. if esep {
  21738. dd.ReadMapElemValue()
  21739. }
  21740. if dd.TryDecodeAsNil() {
  21741. if v == nil {
  21742. } else if d.h.DeleteOnNilMapValue {
  21743. delete(v, mk)
  21744. } else {
  21745. v[mk] = 0
  21746. }
  21747. continue
  21748. }
  21749. mv = dd.DecodeInt64()
  21750. if v != nil {
  21751. v[mk] = mv
  21752. }
  21753. }
  21754. dd.ReadMapEnd()
  21755. d.depthDecr()
  21756. return v, changed
  21757. }
  21758. func (d *Decoder) fastpathDecMapFloat32Float32R(f *codecFnInfo, rv reflect.Value) {
  21759. if rv.Kind() == reflect.Ptr {
  21760. vp := rv2i(rv).(*map[float32]float32)
  21761. v, changed := fastpathTV.DecMapFloat32Float32V(*vp, true, d)
  21762. if changed {
  21763. *vp = v
  21764. }
  21765. } else {
  21766. fastpathTV.DecMapFloat32Float32V(rv2i(rv).(map[float32]float32), false, d)
  21767. }
  21768. }
  21769. func (f fastpathT) DecMapFloat32Float32X(vp *map[float32]float32, d *Decoder) {
  21770. v, changed := f.DecMapFloat32Float32V(*vp, true, d)
  21771. if changed {
  21772. *vp = v
  21773. }
  21774. }
  21775. func (_ fastpathT) DecMapFloat32Float32V(v map[float32]float32, canChange bool,
  21776. d *Decoder) (_ map[float32]float32, changed bool) {
  21777. dd, esep := d.d, d.hh.hasElemSeparators()
  21778. containerLen := dd.ReadMapStart()
  21779. if canChange && v == nil {
  21780. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  21781. v = make(map[float32]float32, xlen)
  21782. changed = true
  21783. }
  21784. if containerLen == 0 {
  21785. dd.ReadMapEnd()
  21786. return v, changed
  21787. }
  21788. d.depthIncr()
  21789. var mk float32
  21790. var mv float32
  21791. hasLen := containerLen > 0
  21792. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21793. if esep {
  21794. dd.ReadMapElemKey()
  21795. }
  21796. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21797. if esep {
  21798. dd.ReadMapElemValue()
  21799. }
  21800. if dd.TryDecodeAsNil() {
  21801. if v == nil {
  21802. } else if d.h.DeleteOnNilMapValue {
  21803. delete(v, mk)
  21804. } else {
  21805. v[mk] = 0
  21806. }
  21807. continue
  21808. }
  21809. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21810. if v != nil {
  21811. v[mk] = mv
  21812. }
  21813. }
  21814. dd.ReadMapEnd()
  21815. d.depthDecr()
  21816. return v, changed
  21817. }
  21818. func (d *Decoder) fastpathDecMapFloat32Float64R(f *codecFnInfo, rv reflect.Value) {
  21819. if rv.Kind() == reflect.Ptr {
  21820. vp := rv2i(rv).(*map[float32]float64)
  21821. v, changed := fastpathTV.DecMapFloat32Float64V(*vp, true, d)
  21822. if changed {
  21823. *vp = v
  21824. }
  21825. } else {
  21826. fastpathTV.DecMapFloat32Float64V(rv2i(rv).(map[float32]float64), false, d)
  21827. }
  21828. }
  21829. func (f fastpathT) DecMapFloat32Float64X(vp *map[float32]float64, d *Decoder) {
  21830. v, changed := f.DecMapFloat32Float64V(*vp, true, d)
  21831. if changed {
  21832. *vp = v
  21833. }
  21834. }
  21835. func (_ fastpathT) DecMapFloat32Float64V(v map[float32]float64, canChange bool,
  21836. d *Decoder) (_ map[float32]float64, changed bool) {
  21837. dd, esep := d.d, d.hh.hasElemSeparators()
  21838. containerLen := dd.ReadMapStart()
  21839. if canChange && v == nil {
  21840. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  21841. v = make(map[float32]float64, xlen)
  21842. changed = true
  21843. }
  21844. if containerLen == 0 {
  21845. dd.ReadMapEnd()
  21846. return v, changed
  21847. }
  21848. d.depthIncr()
  21849. var mk float32
  21850. var mv float64
  21851. hasLen := containerLen > 0
  21852. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21853. if esep {
  21854. dd.ReadMapElemKey()
  21855. }
  21856. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21857. if esep {
  21858. dd.ReadMapElemValue()
  21859. }
  21860. if dd.TryDecodeAsNil() {
  21861. if v == nil {
  21862. } else if d.h.DeleteOnNilMapValue {
  21863. delete(v, mk)
  21864. } else {
  21865. v[mk] = 0
  21866. }
  21867. continue
  21868. }
  21869. mv = dd.DecodeFloat64()
  21870. if v != nil {
  21871. v[mk] = mv
  21872. }
  21873. }
  21874. dd.ReadMapEnd()
  21875. d.depthDecr()
  21876. return v, changed
  21877. }
  21878. func (d *Decoder) fastpathDecMapFloat32BoolR(f *codecFnInfo, rv reflect.Value) {
  21879. if rv.Kind() == reflect.Ptr {
  21880. vp := rv2i(rv).(*map[float32]bool)
  21881. v, changed := fastpathTV.DecMapFloat32BoolV(*vp, true, d)
  21882. if changed {
  21883. *vp = v
  21884. }
  21885. } else {
  21886. fastpathTV.DecMapFloat32BoolV(rv2i(rv).(map[float32]bool), false, d)
  21887. }
  21888. }
  21889. func (f fastpathT) DecMapFloat32BoolX(vp *map[float32]bool, d *Decoder) {
  21890. v, changed := f.DecMapFloat32BoolV(*vp, true, d)
  21891. if changed {
  21892. *vp = v
  21893. }
  21894. }
  21895. func (_ fastpathT) DecMapFloat32BoolV(v map[float32]bool, canChange bool,
  21896. d *Decoder) (_ map[float32]bool, changed bool) {
  21897. dd, esep := d.d, d.hh.hasElemSeparators()
  21898. containerLen := dd.ReadMapStart()
  21899. if canChange && v == nil {
  21900. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  21901. v = make(map[float32]bool, xlen)
  21902. changed = true
  21903. }
  21904. if containerLen == 0 {
  21905. dd.ReadMapEnd()
  21906. return v, changed
  21907. }
  21908. d.depthIncr()
  21909. var mk float32
  21910. var mv bool
  21911. hasLen := containerLen > 0
  21912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21913. if esep {
  21914. dd.ReadMapElemKey()
  21915. }
  21916. mk = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  21917. if esep {
  21918. dd.ReadMapElemValue()
  21919. }
  21920. if dd.TryDecodeAsNil() {
  21921. if v == nil {
  21922. } else if d.h.DeleteOnNilMapValue {
  21923. delete(v, mk)
  21924. } else {
  21925. v[mk] = false
  21926. }
  21927. continue
  21928. }
  21929. mv = dd.DecodeBool()
  21930. if v != nil {
  21931. v[mk] = mv
  21932. }
  21933. }
  21934. dd.ReadMapEnd()
  21935. d.depthDecr()
  21936. return v, changed
  21937. }
  21938. func (d *Decoder) fastpathDecMapFloat64IntfR(f *codecFnInfo, rv reflect.Value) {
  21939. if rv.Kind() == reflect.Ptr {
  21940. vp := rv2i(rv).(*map[float64]interface{})
  21941. v, changed := fastpathTV.DecMapFloat64IntfV(*vp, true, d)
  21942. if changed {
  21943. *vp = v
  21944. }
  21945. } else {
  21946. fastpathTV.DecMapFloat64IntfV(rv2i(rv).(map[float64]interface{}), false, d)
  21947. }
  21948. }
  21949. func (f fastpathT) DecMapFloat64IntfX(vp *map[float64]interface{}, d *Decoder) {
  21950. v, changed := f.DecMapFloat64IntfV(*vp, true, d)
  21951. if changed {
  21952. *vp = v
  21953. }
  21954. }
  21955. func (_ fastpathT) DecMapFloat64IntfV(v map[float64]interface{}, canChange bool,
  21956. d *Decoder) (_ map[float64]interface{}, changed bool) {
  21957. dd, esep := d.d, d.hh.hasElemSeparators()
  21958. containerLen := dd.ReadMapStart()
  21959. if canChange && v == nil {
  21960. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  21961. v = make(map[float64]interface{}, xlen)
  21962. changed = true
  21963. }
  21964. if containerLen == 0 {
  21965. dd.ReadMapEnd()
  21966. return v, changed
  21967. }
  21968. d.depthIncr()
  21969. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  21970. var mk float64
  21971. var mv interface{}
  21972. hasLen := containerLen > 0
  21973. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  21974. if esep {
  21975. dd.ReadMapElemKey()
  21976. }
  21977. mk = dd.DecodeFloat64()
  21978. if esep {
  21979. dd.ReadMapElemValue()
  21980. }
  21981. if dd.TryDecodeAsNil() {
  21982. if v == nil {
  21983. } else if d.h.DeleteOnNilMapValue {
  21984. delete(v, mk)
  21985. } else {
  21986. v[mk] = nil
  21987. }
  21988. continue
  21989. }
  21990. if mapGet {
  21991. mv = v[mk]
  21992. } else {
  21993. mv = nil
  21994. }
  21995. d.decode(&mv)
  21996. if v != nil {
  21997. v[mk] = mv
  21998. }
  21999. }
  22000. dd.ReadMapEnd()
  22001. d.depthDecr()
  22002. return v, changed
  22003. }
  22004. func (d *Decoder) fastpathDecMapFloat64StringR(f *codecFnInfo, rv reflect.Value) {
  22005. if rv.Kind() == reflect.Ptr {
  22006. vp := rv2i(rv).(*map[float64]string)
  22007. v, changed := fastpathTV.DecMapFloat64StringV(*vp, true, d)
  22008. if changed {
  22009. *vp = v
  22010. }
  22011. } else {
  22012. fastpathTV.DecMapFloat64StringV(rv2i(rv).(map[float64]string), false, d)
  22013. }
  22014. }
  22015. func (f fastpathT) DecMapFloat64StringX(vp *map[float64]string, d *Decoder) {
  22016. v, changed := f.DecMapFloat64StringV(*vp, true, d)
  22017. if changed {
  22018. *vp = v
  22019. }
  22020. }
  22021. func (_ fastpathT) DecMapFloat64StringV(v map[float64]string, canChange bool,
  22022. d *Decoder) (_ map[float64]string, changed bool) {
  22023. dd, esep := d.d, d.hh.hasElemSeparators()
  22024. containerLen := dd.ReadMapStart()
  22025. if canChange && v == nil {
  22026. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22027. v = make(map[float64]string, xlen)
  22028. changed = true
  22029. }
  22030. if containerLen == 0 {
  22031. dd.ReadMapEnd()
  22032. return v, changed
  22033. }
  22034. d.depthIncr()
  22035. var mk float64
  22036. var mv string
  22037. hasLen := containerLen > 0
  22038. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22039. if esep {
  22040. dd.ReadMapElemKey()
  22041. }
  22042. mk = dd.DecodeFloat64()
  22043. if esep {
  22044. dd.ReadMapElemValue()
  22045. }
  22046. if dd.TryDecodeAsNil() {
  22047. if v == nil {
  22048. } else if d.h.DeleteOnNilMapValue {
  22049. delete(v, mk)
  22050. } else {
  22051. v[mk] = ""
  22052. }
  22053. continue
  22054. }
  22055. mv = dd.DecodeString()
  22056. if v != nil {
  22057. v[mk] = mv
  22058. }
  22059. }
  22060. dd.ReadMapEnd()
  22061. d.depthDecr()
  22062. return v, changed
  22063. }
  22064. func (d *Decoder) fastpathDecMapFloat64UintR(f *codecFnInfo, rv reflect.Value) {
  22065. if rv.Kind() == reflect.Ptr {
  22066. vp := rv2i(rv).(*map[float64]uint)
  22067. v, changed := fastpathTV.DecMapFloat64UintV(*vp, true, d)
  22068. if changed {
  22069. *vp = v
  22070. }
  22071. } else {
  22072. fastpathTV.DecMapFloat64UintV(rv2i(rv).(map[float64]uint), false, d)
  22073. }
  22074. }
  22075. func (f fastpathT) DecMapFloat64UintX(vp *map[float64]uint, d *Decoder) {
  22076. v, changed := f.DecMapFloat64UintV(*vp, true, d)
  22077. if changed {
  22078. *vp = v
  22079. }
  22080. }
  22081. func (_ fastpathT) DecMapFloat64UintV(v map[float64]uint, canChange bool,
  22082. d *Decoder) (_ map[float64]uint, changed bool) {
  22083. dd, esep := d.d, d.hh.hasElemSeparators()
  22084. containerLen := dd.ReadMapStart()
  22085. if canChange && v == nil {
  22086. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22087. v = make(map[float64]uint, xlen)
  22088. changed = true
  22089. }
  22090. if containerLen == 0 {
  22091. dd.ReadMapEnd()
  22092. return v, changed
  22093. }
  22094. d.depthIncr()
  22095. var mk float64
  22096. var mv uint
  22097. hasLen := containerLen > 0
  22098. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22099. if esep {
  22100. dd.ReadMapElemKey()
  22101. }
  22102. mk = dd.DecodeFloat64()
  22103. if esep {
  22104. dd.ReadMapElemValue()
  22105. }
  22106. if dd.TryDecodeAsNil() {
  22107. if v == nil {
  22108. } else if d.h.DeleteOnNilMapValue {
  22109. delete(v, mk)
  22110. } else {
  22111. v[mk] = 0
  22112. }
  22113. continue
  22114. }
  22115. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22116. if v != nil {
  22117. v[mk] = mv
  22118. }
  22119. }
  22120. dd.ReadMapEnd()
  22121. d.depthDecr()
  22122. return v, changed
  22123. }
  22124. func (d *Decoder) fastpathDecMapFloat64Uint8R(f *codecFnInfo, rv reflect.Value) {
  22125. if rv.Kind() == reflect.Ptr {
  22126. vp := rv2i(rv).(*map[float64]uint8)
  22127. v, changed := fastpathTV.DecMapFloat64Uint8V(*vp, true, d)
  22128. if changed {
  22129. *vp = v
  22130. }
  22131. } else {
  22132. fastpathTV.DecMapFloat64Uint8V(rv2i(rv).(map[float64]uint8), false, d)
  22133. }
  22134. }
  22135. func (f fastpathT) DecMapFloat64Uint8X(vp *map[float64]uint8, d *Decoder) {
  22136. v, changed := f.DecMapFloat64Uint8V(*vp, true, d)
  22137. if changed {
  22138. *vp = v
  22139. }
  22140. }
  22141. func (_ fastpathT) DecMapFloat64Uint8V(v map[float64]uint8, canChange bool,
  22142. d *Decoder) (_ map[float64]uint8, changed bool) {
  22143. dd, esep := d.d, d.hh.hasElemSeparators()
  22144. containerLen := dd.ReadMapStart()
  22145. if canChange && v == nil {
  22146. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22147. v = make(map[float64]uint8, xlen)
  22148. changed = true
  22149. }
  22150. if containerLen == 0 {
  22151. dd.ReadMapEnd()
  22152. return v, changed
  22153. }
  22154. d.depthIncr()
  22155. var mk float64
  22156. var mv uint8
  22157. hasLen := containerLen > 0
  22158. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22159. if esep {
  22160. dd.ReadMapElemKey()
  22161. }
  22162. mk = dd.DecodeFloat64()
  22163. if esep {
  22164. dd.ReadMapElemValue()
  22165. }
  22166. if dd.TryDecodeAsNil() {
  22167. if v == nil {
  22168. } else if d.h.DeleteOnNilMapValue {
  22169. delete(v, mk)
  22170. } else {
  22171. v[mk] = 0
  22172. }
  22173. continue
  22174. }
  22175. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  22176. if v != nil {
  22177. v[mk] = mv
  22178. }
  22179. }
  22180. dd.ReadMapEnd()
  22181. d.depthDecr()
  22182. return v, changed
  22183. }
  22184. func (d *Decoder) fastpathDecMapFloat64Uint16R(f *codecFnInfo, rv reflect.Value) {
  22185. if rv.Kind() == reflect.Ptr {
  22186. vp := rv2i(rv).(*map[float64]uint16)
  22187. v, changed := fastpathTV.DecMapFloat64Uint16V(*vp, true, d)
  22188. if changed {
  22189. *vp = v
  22190. }
  22191. } else {
  22192. fastpathTV.DecMapFloat64Uint16V(rv2i(rv).(map[float64]uint16), false, d)
  22193. }
  22194. }
  22195. func (f fastpathT) DecMapFloat64Uint16X(vp *map[float64]uint16, d *Decoder) {
  22196. v, changed := f.DecMapFloat64Uint16V(*vp, true, d)
  22197. if changed {
  22198. *vp = v
  22199. }
  22200. }
  22201. func (_ fastpathT) DecMapFloat64Uint16V(v map[float64]uint16, canChange bool,
  22202. d *Decoder) (_ map[float64]uint16, changed bool) {
  22203. dd, esep := d.d, d.hh.hasElemSeparators()
  22204. containerLen := dd.ReadMapStart()
  22205. if canChange && v == nil {
  22206. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22207. v = make(map[float64]uint16, xlen)
  22208. changed = true
  22209. }
  22210. if containerLen == 0 {
  22211. dd.ReadMapEnd()
  22212. return v, changed
  22213. }
  22214. d.depthIncr()
  22215. var mk float64
  22216. var mv uint16
  22217. hasLen := containerLen > 0
  22218. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22219. if esep {
  22220. dd.ReadMapElemKey()
  22221. }
  22222. mk = dd.DecodeFloat64()
  22223. if esep {
  22224. dd.ReadMapElemValue()
  22225. }
  22226. if dd.TryDecodeAsNil() {
  22227. if v == nil {
  22228. } else if d.h.DeleteOnNilMapValue {
  22229. delete(v, mk)
  22230. } else {
  22231. v[mk] = 0
  22232. }
  22233. continue
  22234. }
  22235. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  22236. if v != nil {
  22237. v[mk] = mv
  22238. }
  22239. }
  22240. dd.ReadMapEnd()
  22241. d.depthDecr()
  22242. return v, changed
  22243. }
  22244. func (d *Decoder) fastpathDecMapFloat64Uint32R(f *codecFnInfo, rv reflect.Value) {
  22245. if rv.Kind() == reflect.Ptr {
  22246. vp := rv2i(rv).(*map[float64]uint32)
  22247. v, changed := fastpathTV.DecMapFloat64Uint32V(*vp, true, d)
  22248. if changed {
  22249. *vp = v
  22250. }
  22251. } else {
  22252. fastpathTV.DecMapFloat64Uint32V(rv2i(rv).(map[float64]uint32), false, d)
  22253. }
  22254. }
  22255. func (f fastpathT) DecMapFloat64Uint32X(vp *map[float64]uint32, d *Decoder) {
  22256. v, changed := f.DecMapFloat64Uint32V(*vp, true, d)
  22257. if changed {
  22258. *vp = v
  22259. }
  22260. }
  22261. func (_ fastpathT) DecMapFloat64Uint32V(v map[float64]uint32, canChange bool,
  22262. d *Decoder) (_ map[float64]uint32, changed bool) {
  22263. dd, esep := d.d, d.hh.hasElemSeparators()
  22264. containerLen := dd.ReadMapStart()
  22265. if canChange && v == nil {
  22266. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22267. v = make(map[float64]uint32, xlen)
  22268. changed = true
  22269. }
  22270. if containerLen == 0 {
  22271. dd.ReadMapEnd()
  22272. return v, changed
  22273. }
  22274. d.depthIncr()
  22275. var mk float64
  22276. var mv uint32
  22277. hasLen := containerLen > 0
  22278. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22279. if esep {
  22280. dd.ReadMapElemKey()
  22281. }
  22282. mk = dd.DecodeFloat64()
  22283. if esep {
  22284. dd.ReadMapElemValue()
  22285. }
  22286. if dd.TryDecodeAsNil() {
  22287. if v == nil {
  22288. } else if d.h.DeleteOnNilMapValue {
  22289. delete(v, mk)
  22290. } else {
  22291. v[mk] = 0
  22292. }
  22293. continue
  22294. }
  22295. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  22296. if v != nil {
  22297. v[mk] = mv
  22298. }
  22299. }
  22300. dd.ReadMapEnd()
  22301. d.depthDecr()
  22302. return v, changed
  22303. }
  22304. func (d *Decoder) fastpathDecMapFloat64Uint64R(f *codecFnInfo, rv reflect.Value) {
  22305. if rv.Kind() == reflect.Ptr {
  22306. vp := rv2i(rv).(*map[float64]uint64)
  22307. v, changed := fastpathTV.DecMapFloat64Uint64V(*vp, true, d)
  22308. if changed {
  22309. *vp = v
  22310. }
  22311. } else {
  22312. fastpathTV.DecMapFloat64Uint64V(rv2i(rv).(map[float64]uint64), false, d)
  22313. }
  22314. }
  22315. func (f fastpathT) DecMapFloat64Uint64X(vp *map[float64]uint64, d *Decoder) {
  22316. v, changed := f.DecMapFloat64Uint64V(*vp, true, d)
  22317. if changed {
  22318. *vp = v
  22319. }
  22320. }
  22321. func (_ fastpathT) DecMapFloat64Uint64V(v map[float64]uint64, canChange bool,
  22322. d *Decoder) (_ map[float64]uint64, changed bool) {
  22323. dd, esep := d.d, d.hh.hasElemSeparators()
  22324. containerLen := dd.ReadMapStart()
  22325. if canChange && v == nil {
  22326. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22327. v = make(map[float64]uint64, xlen)
  22328. changed = true
  22329. }
  22330. if containerLen == 0 {
  22331. dd.ReadMapEnd()
  22332. return v, changed
  22333. }
  22334. d.depthIncr()
  22335. var mk float64
  22336. var mv uint64
  22337. hasLen := containerLen > 0
  22338. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22339. if esep {
  22340. dd.ReadMapElemKey()
  22341. }
  22342. mk = dd.DecodeFloat64()
  22343. if esep {
  22344. dd.ReadMapElemValue()
  22345. }
  22346. if dd.TryDecodeAsNil() {
  22347. if v == nil {
  22348. } else if d.h.DeleteOnNilMapValue {
  22349. delete(v, mk)
  22350. } else {
  22351. v[mk] = 0
  22352. }
  22353. continue
  22354. }
  22355. mv = dd.DecodeUint64()
  22356. if v != nil {
  22357. v[mk] = mv
  22358. }
  22359. }
  22360. dd.ReadMapEnd()
  22361. d.depthDecr()
  22362. return v, changed
  22363. }
  22364. func (d *Decoder) fastpathDecMapFloat64UintptrR(f *codecFnInfo, rv reflect.Value) {
  22365. if rv.Kind() == reflect.Ptr {
  22366. vp := rv2i(rv).(*map[float64]uintptr)
  22367. v, changed := fastpathTV.DecMapFloat64UintptrV(*vp, true, d)
  22368. if changed {
  22369. *vp = v
  22370. }
  22371. } else {
  22372. fastpathTV.DecMapFloat64UintptrV(rv2i(rv).(map[float64]uintptr), false, d)
  22373. }
  22374. }
  22375. func (f fastpathT) DecMapFloat64UintptrX(vp *map[float64]uintptr, d *Decoder) {
  22376. v, changed := f.DecMapFloat64UintptrV(*vp, true, d)
  22377. if changed {
  22378. *vp = v
  22379. }
  22380. }
  22381. func (_ fastpathT) DecMapFloat64UintptrV(v map[float64]uintptr, canChange bool,
  22382. d *Decoder) (_ map[float64]uintptr, changed bool) {
  22383. dd, esep := d.d, d.hh.hasElemSeparators()
  22384. containerLen := dd.ReadMapStart()
  22385. if canChange && v == nil {
  22386. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22387. v = make(map[float64]uintptr, xlen)
  22388. changed = true
  22389. }
  22390. if containerLen == 0 {
  22391. dd.ReadMapEnd()
  22392. return v, changed
  22393. }
  22394. d.depthIncr()
  22395. var mk float64
  22396. var mv uintptr
  22397. hasLen := containerLen > 0
  22398. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22399. if esep {
  22400. dd.ReadMapElemKey()
  22401. }
  22402. mk = dd.DecodeFloat64()
  22403. if esep {
  22404. dd.ReadMapElemValue()
  22405. }
  22406. if dd.TryDecodeAsNil() {
  22407. if v == nil {
  22408. } else if d.h.DeleteOnNilMapValue {
  22409. delete(v, mk)
  22410. } else {
  22411. v[mk] = 0
  22412. }
  22413. continue
  22414. }
  22415. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22416. if v != nil {
  22417. v[mk] = mv
  22418. }
  22419. }
  22420. dd.ReadMapEnd()
  22421. d.depthDecr()
  22422. return v, changed
  22423. }
  22424. func (d *Decoder) fastpathDecMapFloat64IntR(f *codecFnInfo, rv reflect.Value) {
  22425. if rv.Kind() == reflect.Ptr {
  22426. vp := rv2i(rv).(*map[float64]int)
  22427. v, changed := fastpathTV.DecMapFloat64IntV(*vp, true, d)
  22428. if changed {
  22429. *vp = v
  22430. }
  22431. } else {
  22432. fastpathTV.DecMapFloat64IntV(rv2i(rv).(map[float64]int), false, d)
  22433. }
  22434. }
  22435. func (f fastpathT) DecMapFloat64IntX(vp *map[float64]int, d *Decoder) {
  22436. v, changed := f.DecMapFloat64IntV(*vp, true, d)
  22437. if changed {
  22438. *vp = v
  22439. }
  22440. }
  22441. func (_ fastpathT) DecMapFloat64IntV(v map[float64]int, canChange bool,
  22442. d *Decoder) (_ map[float64]int, changed bool) {
  22443. dd, esep := d.d, d.hh.hasElemSeparators()
  22444. containerLen := dd.ReadMapStart()
  22445. if canChange && v == nil {
  22446. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22447. v = make(map[float64]int, xlen)
  22448. changed = true
  22449. }
  22450. if containerLen == 0 {
  22451. dd.ReadMapEnd()
  22452. return v, changed
  22453. }
  22454. d.depthIncr()
  22455. var mk float64
  22456. var mv int
  22457. hasLen := containerLen > 0
  22458. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22459. if esep {
  22460. dd.ReadMapElemKey()
  22461. }
  22462. mk = dd.DecodeFloat64()
  22463. if esep {
  22464. dd.ReadMapElemValue()
  22465. }
  22466. if dd.TryDecodeAsNil() {
  22467. if v == nil {
  22468. } else if d.h.DeleteOnNilMapValue {
  22469. delete(v, mk)
  22470. } else {
  22471. v[mk] = 0
  22472. }
  22473. continue
  22474. }
  22475. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  22476. if v != nil {
  22477. v[mk] = mv
  22478. }
  22479. }
  22480. dd.ReadMapEnd()
  22481. d.depthDecr()
  22482. return v, changed
  22483. }
  22484. func (d *Decoder) fastpathDecMapFloat64Int8R(f *codecFnInfo, rv reflect.Value) {
  22485. if rv.Kind() == reflect.Ptr {
  22486. vp := rv2i(rv).(*map[float64]int8)
  22487. v, changed := fastpathTV.DecMapFloat64Int8V(*vp, true, d)
  22488. if changed {
  22489. *vp = v
  22490. }
  22491. } else {
  22492. fastpathTV.DecMapFloat64Int8V(rv2i(rv).(map[float64]int8), false, d)
  22493. }
  22494. }
  22495. func (f fastpathT) DecMapFloat64Int8X(vp *map[float64]int8, d *Decoder) {
  22496. v, changed := f.DecMapFloat64Int8V(*vp, true, d)
  22497. if changed {
  22498. *vp = v
  22499. }
  22500. }
  22501. func (_ fastpathT) DecMapFloat64Int8V(v map[float64]int8, canChange bool,
  22502. d *Decoder) (_ map[float64]int8, changed bool) {
  22503. dd, esep := d.d, d.hh.hasElemSeparators()
  22504. containerLen := dd.ReadMapStart()
  22505. if canChange && v == nil {
  22506. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22507. v = make(map[float64]int8, xlen)
  22508. changed = true
  22509. }
  22510. if containerLen == 0 {
  22511. dd.ReadMapEnd()
  22512. return v, changed
  22513. }
  22514. d.depthIncr()
  22515. var mk float64
  22516. var mv int8
  22517. hasLen := containerLen > 0
  22518. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22519. if esep {
  22520. dd.ReadMapElemKey()
  22521. }
  22522. mk = dd.DecodeFloat64()
  22523. if esep {
  22524. dd.ReadMapElemValue()
  22525. }
  22526. if dd.TryDecodeAsNil() {
  22527. if v == nil {
  22528. } else if d.h.DeleteOnNilMapValue {
  22529. delete(v, mk)
  22530. } else {
  22531. v[mk] = 0
  22532. }
  22533. continue
  22534. }
  22535. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  22536. if v != nil {
  22537. v[mk] = mv
  22538. }
  22539. }
  22540. dd.ReadMapEnd()
  22541. d.depthDecr()
  22542. return v, changed
  22543. }
  22544. func (d *Decoder) fastpathDecMapFloat64Int16R(f *codecFnInfo, rv reflect.Value) {
  22545. if rv.Kind() == reflect.Ptr {
  22546. vp := rv2i(rv).(*map[float64]int16)
  22547. v, changed := fastpathTV.DecMapFloat64Int16V(*vp, true, d)
  22548. if changed {
  22549. *vp = v
  22550. }
  22551. } else {
  22552. fastpathTV.DecMapFloat64Int16V(rv2i(rv).(map[float64]int16), false, d)
  22553. }
  22554. }
  22555. func (f fastpathT) DecMapFloat64Int16X(vp *map[float64]int16, d *Decoder) {
  22556. v, changed := f.DecMapFloat64Int16V(*vp, true, d)
  22557. if changed {
  22558. *vp = v
  22559. }
  22560. }
  22561. func (_ fastpathT) DecMapFloat64Int16V(v map[float64]int16, canChange bool,
  22562. d *Decoder) (_ map[float64]int16, changed bool) {
  22563. dd, esep := d.d, d.hh.hasElemSeparators()
  22564. containerLen := dd.ReadMapStart()
  22565. if canChange && v == nil {
  22566. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  22567. v = make(map[float64]int16, xlen)
  22568. changed = true
  22569. }
  22570. if containerLen == 0 {
  22571. dd.ReadMapEnd()
  22572. return v, changed
  22573. }
  22574. d.depthIncr()
  22575. var mk float64
  22576. var mv int16
  22577. hasLen := containerLen > 0
  22578. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22579. if esep {
  22580. dd.ReadMapElemKey()
  22581. }
  22582. mk = dd.DecodeFloat64()
  22583. if esep {
  22584. dd.ReadMapElemValue()
  22585. }
  22586. if dd.TryDecodeAsNil() {
  22587. if v == nil {
  22588. } else if d.h.DeleteOnNilMapValue {
  22589. delete(v, mk)
  22590. } else {
  22591. v[mk] = 0
  22592. }
  22593. continue
  22594. }
  22595. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  22596. if v != nil {
  22597. v[mk] = mv
  22598. }
  22599. }
  22600. dd.ReadMapEnd()
  22601. d.depthDecr()
  22602. return v, changed
  22603. }
  22604. func (d *Decoder) fastpathDecMapFloat64Int32R(f *codecFnInfo, rv reflect.Value) {
  22605. if rv.Kind() == reflect.Ptr {
  22606. vp := rv2i(rv).(*map[float64]int32)
  22607. v, changed := fastpathTV.DecMapFloat64Int32V(*vp, true, d)
  22608. if changed {
  22609. *vp = v
  22610. }
  22611. } else {
  22612. fastpathTV.DecMapFloat64Int32V(rv2i(rv).(map[float64]int32), false, d)
  22613. }
  22614. }
  22615. func (f fastpathT) DecMapFloat64Int32X(vp *map[float64]int32, d *Decoder) {
  22616. v, changed := f.DecMapFloat64Int32V(*vp, true, d)
  22617. if changed {
  22618. *vp = v
  22619. }
  22620. }
  22621. func (_ fastpathT) DecMapFloat64Int32V(v map[float64]int32, canChange bool,
  22622. d *Decoder) (_ map[float64]int32, changed bool) {
  22623. dd, esep := d.d, d.hh.hasElemSeparators()
  22624. containerLen := dd.ReadMapStart()
  22625. if canChange && v == nil {
  22626. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22627. v = make(map[float64]int32, xlen)
  22628. changed = true
  22629. }
  22630. if containerLen == 0 {
  22631. dd.ReadMapEnd()
  22632. return v, changed
  22633. }
  22634. d.depthIncr()
  22635. var mk float64
  22636. var mv int32
  22637. hasLen := containerLen > 0
  22638. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22639. if esep {
  22640. dd.ReadMapElemKey()
  22641. }
  22642. mk = dd.DecodeFloat64()
  22643. if esep {
  22644. dd.ReadMapElemValue()
  22645. }
  22646. if dd.TryDecodeAsNil() {
  22647. if v == nil {
  22648. } else if d.h.DeleteOnNilMapValue {
  22649. delete(v, mk)
  22650. } else {
  22651. v[mk] = 0
  22652. }
  22653. continue
  22654. }
  22655. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  22656. if v != nil {
  22657. v[mk] = mv
  22658. }
  22659. }
  22660. dd.ReadMapEnd()
  22661. d.depthDecr()
  22662. return v, changed
  22663. }
  22664. func (d *Decoder) fastpathDecMapFloat64Int64R(f *codecFnInfo, rv reflect.Value) {
  22665. if rv.Kind() == reflect.Ptr {
  22666. vp := rv2i(rv).(*map[float64]int64)
  22667. v, changed := fastpathTV.DecMapFloat64Int64V(*vp, true, d)
  22668. if changed {
  22669. *vp = v
  22670. }
  22671. } else {
  22672. fastpathTV.DecMapFloat64Int64V(rv2i(rv).(map[float64]int64), false, d)
  22673. }
  22674. }
  22675. func (f fastpathT) DecMapFloat64Int64X(vp *map[float64]int64, d *Decoder) {
  22676. v, changed := f.DecMapFloat64Int64V(*vp, true, d)
  22677. if changed {
  22678. *vp = v
  22679. }
  22680. }
  22681. func (_ fastpathT) DecMapFloat64Int64V(v map[float64]int64, canChange bool,
  22682. d *Decoder) (_ map[float64]int64, changed bool) {
  22683. dd, esep := d.d, d.hh.hasElemSeparators()
  22684. containerLen := dd.ReadMapStart()
  22685. if canChange && v == nil {
  22686. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22687. v = make(map[float64]int64, xlen)
  22688. changed = true
  22689. }
  22690. if containerLen == 0 {
  22691. dd.ReadMapEnd()
  22692. return v, changed
  22693. }
  22694. d.depthIncr()
  22695. var mk float64
  22696. var mv int64
  22697. hasLen := containerLen > 0
  22698. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22699. if esep {
  22700. dd.ReadMapElemKey()
  22701. }
  22702. mk = dd.DecodeFloat64()
  22703. if esep {
  22704. dd.ReadMapElemValue()
  22705. }
  22706. if dd.TryDecodeAsNil() {
  22707. if v == nil {
  22708. } else if d.h.DeleteOnNilMapValue {
  22709. delete(v, mk)
  22710. } else {
  22711. v[mk] = 0
  22712. }
  22713. continue
  22714. }
  22715. mv = dd.DecodeInt64()
  22716. if v != nil {
  22717. v[mk] = mv
  22718. }
  22719. }
  22720. dd.ReadMapEnd()
  22721. d.depthDecr()
  22722. return v, changed
  22723. }
  22724. func (d *Decoder) fastpathDecMapFloat64Float32R(f *codecFnInfo, rv reflect.Value) {
  22725. if rv.Kind() == reflect.Ptr {
  22726. vp := rv2i(rv).(*map[float64]float32)
  22727. v, changed := fastpathTV.DecMapFloat64Float32V(*vp, true, d)
  22728. if changed {
  22729. *vp = v
  22730. }
  22731. } else {
  22732. fastpathTV.DecMapFloat64Float32V(rv2i(rv).(map[float64]float32), false, d)
  22733. }
  22734. }
  22735. func (f fastpathT) DecMapFloat64Float32X(vp *map[float64]float32, d *Decoder) {
  22736. v, changed := f.DecMapFloat64Float32V(*vp, true, d)
  22737. if changed {
  22738. *vp = v
  22739. }
  22740. }
  22741. func (_ fastpathT) DecMapFloat64Float32V(v map[float64]float32, canChange bool,
  22742. d *Decoder) (_ map[float64]float32, changed bool) {
  22743. dd, esep := d.d, d.hh.hasElemSeparators()
  22744. containerLen := dd.ReadMapStart()
  22745. if canChange && v == nil {
  22746. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  22747. v = make(map[float64]float32, xlen)
  22748. changed = true
  22749. }
  22750. if containerLen == 0 {
  22751. dd.ReadMapEnd()
  22752. return v, changed
  22753. }
  22754. d.depthIncr()
  22755. var mk float64
  22756. var mv float32
  22757. hasLen := containerLen > 0
  22758. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22759. if esep {
  22760. dd.ReadMapElemKey()
  22761. }
  22762. mk = dd.DecodeFloat64()
  22763. if esep {
  22764. dd.ReadMapElemValue()
  22765. }
  22766. if dd.TryDecodeAsNil() {
  22767. if v == nil {
  22768. } else if d.h.DeleteOnNilMapValue {
  22769. delete(v, mk)
  22770. } else {
  22771. v[mk] = 0
  22772. }
  22773. continue
  22774. }
  22775. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  22776. if v != nil {
  22777. v[mk] = mv
  22778. }
  22779. }
  22780. dd.ReadMapEnd()
  22781. d.depthDecr()
  22782. return v, changed
  22783. }
  22784. func (d *Decoder) fastpathDecMapFloat64Float64R(f *codecFnInfo, rv reflect.Value) {
  22785. if rv.Kind() == reflect.Ptr {
  22786. vp := rv2i(rv).(*map[float64]float64)
  22787. v, changed := fastpathTV.DecMapFloat64Float64V(*vp, true, d)
  22788. if changed {
  22789. *vp = v
  22790. }
  22791. } else {
  22792. fastpathTV.DecMapFloat64Float64V(rv2i(rv).(map[float64]float64), false, d)
  22793. }
  22794. }
  22795. func (f fastpathT) DecMapFloat64Float64X(vp *map[float64]float64, d *Decoder) {
  22796. v, changed := f.DecMapFloat64Float64V(*vp, true, d)
  22797. if changed {
  22798. *vp = v
  22799. }
  22800. }
  22801. func (_ fastpathT) DecMapFloat64Float64V(v map[float64]float64, canChange bool,
  22802. d *Decoder) (_ map[float64]float64, changed bool) {
  22803. dd, esep := d.d, d.hh.hasElemSeparators()
  22804. containerLen := dd.ReadMapStart()
  22805. if canChange && v == nil {
  22806. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  22807. v = make(map[float64]float64, xlen)
  22808. changed = true
  22809. }
  22810. if containerLen == 0 {
  22811. dd.ReadMapEnd()
  22812. return v, changed
  22813. }
  22814. d.depthIncr()
  22815. var mk float64
  22816. var mv float64
  22817. hasLen := containerLen > 0
  22818. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22819. if esep {
  22820. dd.ReadMapElemKey()
  22821. }
  22822. mk = dd.DecodeFloat64()
  22823. if esep {
  22824. dd.ReadMapElemValue()
  22825. }
  22826. if dd.TryDecodeAsNil() {
  22827. if v == nil {
  22828. } else if d.h.DeleteOnNilMapValue {
  22829. delete(v, mk)
  22830. } else {
  22831. v[mk] = 0
  22832. }
  22833. continue
  22834. }
  22835. mv = dd.DecodeFloat64()
  22836. if v != nil {
  22837. v[mk] = mv
  22838. }
  22839. }
  22840. dd.ReadMapEnd()
  22841. d.depthDecr()
  22842. return v, changed
  22843. }
  22844. func (d *Decoder) fastpathDecMapFloat64BoolR(f *codecFnInfo, rv reflect.Value) {
  22845. if rv.Kind() == reflect.Ptr {
  22846. vp := rv2i(rv).(*map[float64]bool)
  22847. v, changed := fastpathTV.DecMapFloat64BoolV(*vp, true, d)
  22848. if changed {
  22849. *vp = v
  22850. }
  22851. } else {
  22852. fastpathTV.DecMapFloat64BoolV(rv2i(rv).(map[float64]bool), false, d)
  22853. }
  22854. }
  22855. func (f fastpathT) DecMapFloat64BoolX(vp *map[float64]bool, d *Decoder) {
  22856. v, changed := f.DecMapFloat64BoolV(*vp, true, d)
  22857. if changed {
  22858. *vp = v
  22859. }
  22860. }
  22861. func (_ fastpathT) DecMapFloat64BoolV(v map[float64]bool, canChange bool,
  22862. d *Decoder) (_ map[float64]bool, changed bool) {
  22863. dd, esep := d.d, d.hh.hasElemSeparators()
  22864. containerLen := dd.ReadMapStart()
  22865. if canChange && v == nil {
  22866. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  22867. v = make(map[float64]bool, xlen)
  22868. changed = true
  22869. }
  22870. if containerLen == 0 {
  22871. dd.ReadMapEnd()
  22872. return v, changed
  22873. }
  22874. d.depthIncr()
  22875. var mk float64
  22876. var mv bool
  22877. hasLen := containerLen > 0
  22878. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22879. if esep {
  22880. dd.ReadMapElemKey()
  22881. }
  22882. mk = dd.DecodeFloat64()
  22883. if esep {
  22884. dd.ReadMapElemValue()
  22885. }
  22886. if dd.TryDecodeAsNil() {
  22887. if v == nil {
  22888. } else if d.h.DeleteOnNilMapValue {
  22889. delete(v, mk)
  22890. } else {
  22891. v[mk] = false
  22892. }
  22893. continue
  22894. }
  22895. mv = dd.DecodeBool()
  22896. if v != nil {
  22897. v[mk] = mv
  22898. }
  22899. }
  22900. dd.ReadMapEnd()
  22901. d.depthDecr()
  22902. return v, changed
  22903. }
  22904. func (d *Decoder) fastpathDecMapUintIntfR(f *codecFnInfo, rv reflect.Value) {
  22905. if rv.Kind() == reflect.Ptr {
  22906. vp := rv2i(rv).(*map[uint]interface{})
  22907. v, changed := fastpathTV.DecMapUintIntfV(*vp, true, d)
  22908. if changed {
  22909. *vp = v
  22910. }
  22911. } else {
  22912. fastpathTV.DecMapUintIntfV(rv2i(rv).(map[uint]interface{}), false, d)
  22913. }
  22914. }
  22915. func (f fastpathT) DecMapUintIntfX(vp *map[uint]interface{}, d *Decoder) {
  22916. v, changed := f.DecMapUintIntfV(*vp, true, d)
  22917. if changed {
  22918. *vp = v
  22919. }
  22920. }
  22921. func (_ fastpathT) DecMapUintIntfV(v map[uint]interface{}, canChange bool,
  22922. d *Decoder) (_ map[uint]interface{}, changed bool) {
  22923. dd, esep := d.d, d.hh.hasElemSeparators()
  22924. containerLen := dd.ReadMapStart()
  22925. if canChange && v == nil {
  22926. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22927. v = make(map[uint]interface{}, xlen)
  22928. changed = true
  22929. }
  22930. if containerLen == 0 {
  22931. dd.ReadMapEnd()
  22932. return v, changed
  22933. }
  22934. d.depthIncr()
  22935. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  22936. var mk uint
  22937. var mv interface{}
  22938. hasLen := containerLen > 0
  22939. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  22940. if esep {
  22941. dd.ReadMapElemKey()
  22942. }
  22943. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  22944. if esep {
  22945. dd.ReadMapElemValue()
  22946. }
  22947. if dd.TryDecodeAsNil() {
  22948. if v == nil {
  22949. } else if d.h.DeleteOnNilMapValue {
  22950. delete(v, mk)
  22951. } else {
  22952. v[mk] = nil
  22953. }
  22954. continue
  22955. }
  22956. if mapGet {
  22957. mv = v[mk]
  22958. } else {
  22959. mv = nil
  22960. }
  22961. d.decode(&mv)
  22962. if v != nil {
  22963. v[mk] = mv
  22964. }
  22965. }
  22966. dd.ReadMapEnd()
  22967. d.depthDecr()
  22968. return v, changed
  22969. }
  22970. func (d *Decoder) fastpathDecMapUintStringR(f *codecFnInfo, rv reflect.Value) {
  22971. if rv.Kind() == reflect.Ptr {
  22972. vp := rv2i(rv).(*map[uint]string)
  22973. v, changed := fastpathTV.DecMapUintStringV(*vp, true, d)
  22974. if changed {
  22975. *vp = v
  22976. }
  22977. } else {
  22978. fastpathTV.DecMapUintStringV(rv2i(rv).(map[uint]string), false, d)
  22979. }
  22980. }
  22981. func (f fastpathT) DecMapUintStringX(vp *map[uint]string, d *Decoder) {
  22982. v, changed := f.DecMapUintStringV(*vp, true, d)
  22983. if changed {
  22984. *vp = v
  22985. }
  22986. }
  22987. func (_ fastpathT) DecMapUintStringV(v map[uint]string, canChange bool,
  22988. d *Decoder) (_ map[uint]string, changed bool) {
  22989. dd, esep := d.d, d.hh.hasElemSeparators()
  22990. containerLen := dd.ReadMapStart()
  22991. if canChange && v == nil {
  22992. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  22993. v = make(map[uint]string, xlen)
  22994. changed = true
  22995. }
  22996. if containerLen == 0 {
  22997. dd.ReadMapEnd()
  22998. return v, changed
  22999. }
  23000. d.depthIncr()
  23001. var mk uint
  23002. var mv string
  23003. hasLen := containerLen > 0
  23004. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23005. if esep {
  23006. dd.ReadMapElemKey()
  23007. }
  23008. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23009. if esep {
  23010. dd.ReadMapElemValue()
  23011. }
  23012. if dd.TryDecodeAsNil() {
  23013. if v == nil {
  23014. } else if d.h.DeleteOnNilMapValue {
  23015. delete(v, mk)
  23016. } else {
  23017. v[mk] = ""
  23018. }
  23019. continue
  23020. }
  23021. mv = dd.DecodeString()
  23022. if v != nil {
  23023. v[mk] = mv
  23024. }
  23025. }
  23026. dd.ReadMapEnd()
  23027. d.depthDecr()
  23028. return v, changed
  23029. }
  23030. func (d *Decoder) fastpathDecMapUintUintR(f *codecFnInfo, rv reflect.Value) {
  23031. if rv.Kind() == reflect.Ptr {
  23032. vp := rv2i(rv).(*map[uint]uint)
  23033. v, changed := fastpathTV.DecMapUintUintV(*vp, true, d)
  23034. if changed {
  23035. *vp = v
  23036. }
  23037. } else {
  23038. fastpathTV.DecMapUintUintV(rv2i(rv).(map[uint]uint), false, d)
  23039. }
  23040. }
  23041. func (f fastpathT) DecMapUintUintX(vp *map[uint]uint, d *Decoder) {
  23042. v, changed := f.DecMapUintUintV(*vp, true, d)
  23043. if changed {
  23044. *vp = v
  23045. }
  23046. }
  23047. func (_ fastpathT) DecMapUintUintV(v map[uint]uint, canChange bool,
  23048. d *Decoder) (_ map[uint]uint, changed bool) {
  23049. dd, esep := d.d, d.hh.hasElemSeparators()
  23050. containerLen := dd.ReadMapStart()
  23051. if canChange && v == nil {
  23052. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23053. v = make(map[uint]uint, xlen)
  23054. changed = true
  23055. }
  23056. if containerLen == 0 {
  23057. dd.ReadMapEnd()
  23058. return v, changed
  23059. }
  23060. d.depthIncr()
  23061. var mk uint
  23062. var mv uint
  23063. hasLen := containerLen > 0
  23064. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23065. if esep {
  23066. dd.ReadMapElemKey()
  23067. }
  23068. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23069. if esep {
  23070. dd.ReadMapElemValue()
  23071. }
  23072. if dd.TryDecodeAsNil() {
  23073. if v == nil {
  23074. } else if d.h.DeleteOnNilMapValue {
  23075. delete(v, mk)
  23076. } else {
  23077. v[mk] = 0
  23078. }
  23079. continue
  23080. }
  23081. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23082. if v != nil {
  23083. v[mk] = mv
  23084. }
  23085. }
  23086. dd.ReadMapEnd()
  23087. d.depthDecr()
  23088. return v, changed
  23089. }
  23090. func (d *Decoder) fastpathDecMapUintUint8R(f *codecFnInfo, rv reflect.Value) {
  23091. if rv.Kind() == reflect.Ptr {
  23092. vp := rv2i(rv).(*map[uint]uint8)
  23093. v, changed := fastpathTV.DecMapUintUint8V(*vp, true, d)
  23094. if changed {
  23095. *vp = v
  23096. }
  23097. } else {
  23098. fastpathTV.DecMapUintUint8V(rv2i(rv).(map[uint]uint8), false, d)
  23099. }
  23100. }
  23101. func (f fastpathT) DecMapUintUint8X(vp *map[uint]uint8, d *Decoder) {
  23102. v, changed := f.DecMapUintUint8V(*vp, true, d)
  23103. if changed {
  23104. *vp = v
  23105. }
  23106. }
  23107. func (_ fastpathT) DecMapUintUint8V(v map[uint]uint8, canChange bool,
  23108. d *Decoder) (_ map[uint]uint8, changed bool) {
  23109. dd, esep := d.d, d.hh.hasElemSeparators()
  23110. containerLen := dd.ReadMapStart()
  23111. if canChange && v == nil {
  23112. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23113. v = make(map[uint]uint8, xlen)
  23114. changed = true
  23115. }
  23116. if containerLen == 0 {
  23117. dd.ReadMapEnd()
  23118. return v, changed
  23119. }
  23120. d.depthIncr()
  23121. var mk uint
  23122. var mv uint8
  23123. hasLen := containerLen > 0
  23124. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23125. if esep {
  23126. dd.ReadMapElemKey()
  23127. }
  23128. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23129. if esep {
  23130. dd.ReadMapElemValue()
  23131. }
  23132. if dd.TryDecodeAsNil() {
  23133. if v == nil {
  23134. } else if d.h.DeleteOnNilMapValue {
  23135. delete(v, mk)
  23136. } else {
  23137. v[mk] = 0
  23138. }
  23139. continue
  23140. }
  23141. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23142. if v != nil {
  23143. v[mk] = mv
  23144. }
  23145. }
  23146. dd.ReadMapEnd()
  23147. d.depthDecr()
  23148. return v, changed
  23149. }
  23150. func (d *Decoder) fastpathDecMapUintUint16R(f *codecFnInfo, rv reflect.Value) {
  23151. if rv.Kind() == reflect.Ptr {
  23152. vp := rv2i(rv).(*map[uint]uint16)
  23153. v, changed := fastpathTV.DecMapUintUint16V(*vp, true, d)
  23154. if changed {
  23155. *vp = v
  23156. }
  23157. } else {
  23158. fastpathTV.DecMapUintUint16V(rv2i(rv).(map[uint]uint16), false, d)
  23159. }
  23160. }
  23161. func (f fastpathT) DecMapUintUint16X(vp *map[uint]uint16, d *Decoder) {
  23162. v, changed := f.DecMapUintUint16V(*vp, true, d)
  23163. if changed {
  23164. *vp = v
  23165. }
  23166. }
  23167. func (_ fastpathT) DecMapUintUint16V(v map[uint]uint16, canChange bool,
  23168. d *Decoder) (_ map[uint]uint16, changed bool) {
  23169. dd, esep := d.d, d.hh.hasElemSeparators()
  23170. containerLen := dd.ReadMapStart()
  23171. if canChange && v == nil {
  23172. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23173. v = make(map[uint]uint16, xlen)
  23174. changed = true
  23175. }
  23176. if containerLen == 0 {
  23177. dd.ReadMapEnd()
  23178. return v, changed
  23179. }
  23180. d.depthIncr()
  23181. var mk uint
  23182. var mv uint16
  23183. hasLen := containerLen > 0
  23184. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23185. if esep {
  23186. dd.ReadMapElemKey()
  23187. }
  23188. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23189. if esep {
  23190. dd.ReadMapElemValue()
  23191. }
  23192. if dd.TryDecodeAsNil() {
  23193. if v == nil {
  23194. } else if d.h.DeleteOnNilMapValue {
  23195. delete(v, mk)
  23196. } else {
  23197. v[mk] = 0
  23198. }
  23199. continue
  23200. }
  23201. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  23202. if v != nil {
  23203. v[mk] = mv
  23204. }
  23205. }
  23206. dd.ReadMapEnd()
  23207. d.depthDecr()
  23208. return v, changed
  23209. }
  23210. func (d *Decoder) fastpathDecMapUintUint32R(f *codecFnInfo, rv reflect.Value) {
  23211. if rv.Kind() == reflect.Ptr {
  23212. vp := rv2i(rv).(*map[uint]uint32)
  23213. v, changed := fastpathTV.DecMapUintUint32V(*vp, true, d)
  23214. if changed {
  23215. *vp = v
  23216. }
  23217. } else {
  23218. fastpathTV.DecMapUintUint32V(rv2i(rv).(map[uint]uint32), false, d)
  23219. }
  23220. }
  23221. func (f fastpathT) DecMapUintUint32X(vp *map[uint]uint32, d *Decoder) {
  23222. v, changed := f.DecMapUintUint32V(*vp, true, d)
  23223. if changed {
  23224. *vp = v
  23225. }
  23226. }
  23227. func (_ fastpathT) DecMapUintUint32V(v map[uint]uint32, canChange bool,
  23228. d *Decoder) (_ map[uint]uint32, changed bool) {
  23229. dd, esep := d.d, d.hh.hasElemSeparators()
  23230. containerLen := dd.ReadMapStart()
  23231. if canChange && v == nil {
  23232. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23233. v = make(map[uint]uint32, xlen)
  23234. changed = true
  23235. }
  23236. if containerLen == 0 {
  23237. dd.ReadMapEnd()
  23238. return v, changed
  23239. }
  23240. d.depthIncr()
  23241. var mk uint
  23242. var mv uint32
  23243. hasLen := containerLen > 0
  23244. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23245. if esep {
  23246. dd.ReadMapElemKey()
  23247. }
  23248. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23249. if esep {
  23250. dd.ReadMapElemValue()
  23251. }
  23252. if dd.TryDecodeAsNil() {
  23253. if v == nil {
  23254. } else if d.h.DeleteOnNilMapValue {
  23255. delete(v, mk)
  23256. } else {
  23257. v[mk] = 0
  23258. }
  23259. continue
  23260. }
  23261. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  23262. if v != nil {
  23263. v[mk] = mv
  23264. }
  23265. }
  23266. dd.ReadMapEnd()
  23267. d.depthDecr()
  23268. return v, changed
  23269. }
  23270. func (d *Decoder) fastpathDecMapUintUint64R(f *codecFnInfo, rv reflect.Value) {
  23271. if rv.Kind() == reflect.Ptr {
  23272. vp := rv2i(rv).(*map[uint]uint64)
  23273. v, changed := fastpathTV.DecMapUintUint64V(*vp, true, d)
  23274. if changed {
  23275. *vp = v
  23276. }
  23277. } else {
  23278. fastpathTV.DecMapUintUint64V(rv2i(rv).(map[uint]uint64), false, d)
  23279. }
  23280. }
  23281. func (f fastpathT) DecMapUintUint64X(vp *map[uint]uint64, d *Decoder) {
  23282. v, changed := f.DecMapUintUint64V(*vp, true, d)
  23283. if changed {
  23284. *vp = v
  23285. }
  23286. }
  23287. func (_ fastpathT) DecMapUintUint64V(v map[uint]uint64, canChange bool,
  23288. d *Decoder) (_ map[uint]uint64, changed bool) {
  23289. dd, esep := d.d, d.hh.hasElemSeparators()
  23290. containerLen := dd.ReadMapStart()
  23291. if canChange && v == nil {
  23292. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23293. v = make(map[uint]uint64, xlen)
  23294. changed = true
  23295. }
  23296. if containerLen == 0 {
  23297. dd.ReadMapEnd()
  23298. return v, changed
  23299. }
  23300. d.depthIncr()
  23301. var mk uint
  23302. var mv uint64
  23303. hasLen := containerLen > 0
  23304. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23305. if esep {
  23306. dd.ReadMapElemKey()
  23307. }
  23308. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23309. if esep {
  23310. dd.ReadMapElemValue()
  23311. }
  23312. if dd.TryDecodeAsNil() {
  23313. if v == nil {
  23314. } else if d.h.DeleteOnNilMapValue {
  23315. delete(v, mk)
  23316. } else {
  23317. v[mk] = 0
  23318. }
  23319. continue
  23320. }
  23321. mv = dd.DecodeUint64()
  23322. if v != nil {
  23323. v[mk] = mv
  23324. }
  23325. }
  23326. dd.ReadMapEnd()
  23327. d.depthDecr()
  23328. return v, changed
  23329. }
  23330. func (d *Decoder) fastpathDecMapUintUintptrR(f *codecFnInfo, rv reflect.Value) {
  23331. if rv.Kind() == reflect.Ptr {
  23332. vp := rv2i(rv).(*map[uint]uintptr)
  23333. v, changed := fastpathTV.DecMapUintUintptrV(*vp, true, d)
  23334. if changed {
  23335. *vp = v
  23336. }
  23337. } else {
  23338. fastpathTV.DecMapUintUintptrV(rv2i(rv).(map[uint]uintptr), false, d)
  23339. }
  23340. }
  23341. func (f fastpathT) DecMapUintUintptrX(vp *map[uint]uintptr, d *Decoder) {
  23342. v, changed := f.DecMapUintUintptrV(*vp, true, d)
  23343. if changed {
  23344. *vp = v
  23345. }
  23346. }
  23347. func (_ fastpathT) DecMapUintUintptrV(v map[uint]uintptr, canChange bool,
  23348. d *Decoder) (_ map[uint]uintptr, changed bool) {
  23349. dd, esep := d.d, d.hh.hasElemSeparators()
  23350. containerLen := dd.ReadMapStart()
  23351. if canChange && v == nil {
  23352. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23353. v = make(map[uint]uintptr, xlen)
  23354. changed = true
  23355. }
  23356. if containerLen == 0 {
  23357. dd.ReadMapEnd()
  23358. return v, changed
  23359. }
  23360. d.depthIncr()
  23361. var mk uint
  23362. var mv uintptr
  23363. hasLen := containerLen > 0
  23364. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23365. if esep {
  23366. dd.ReadMapElemKey()
  23367. }
  23368. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23369. if esep {
  23370. dd.ReadMapElemValue()
  23371. }
  23372. if dd.TryDecodeAsNil() {
  23373. if v == nil {
  23374. } else if d.h.DeleteOnNilMapValue {
  23375. delete(v, mk)
  23376. } else {
  23377. v[mk] = 0
  23378. }
  23379. continue
  23380. }
  23381. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23382. if v != nil {
  23383. v[mk] = mv
  23384. }
  23385. }
  23386. dd.ReadMapEnd()
  23387. d.depthDecr()
  23388. return v, changed
  23389. }
  23390. func (d *Decoder) fastpathDecMapUintIntR(f *codecFnInfo, rv reflect.Value) {
  23391. if rv.Kind() == reflect.Ptr {
  23392. vp := rv2i(rv).(*map[uint]int)
  23393. v, changed := fastpathTV.DecMapUintIntV(*vp, true, d)
  23394. if changed {
  23395. *vp = v
  23396. }
  23397. } else {
  23398. fastpathTV.DecMapUintIntV(rv2i(rv).(map[uint]int), false, d)
  23399. }
  23400. }
  23401. func (f fastpathT) DecMapUintIntX(vp *map[uint]int, d *Decoder) {
  23402. v, changed := f.DecMapUintIntV(*vp, true, d)
  23403. if changed {
  23404. *vp = v
  23405. }
  23406. }
  23407. func (_ fastpathT) DecMapUintIntV(v map[uint]int, canChange bool,
  23408. d *Decoder) (_ map[uint]int, changed bool) {
  23409. dd, esep := d.d, d.hh.hasElemSeparators()
  23410. containerLen := dd.ReadMapStart()
  23411. if canChange && v == nil {
  23412. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23413. v = make(map[uint]int, xlen)
  23414. changed = true
  23415. }
  23416. if containerLen == 0 {
  23417. dd.ReadMapEnd()
  23418. return v, changed
  23419. }
  23420. d.depthIncr()
  23421. var mk uint
  23422. var mv int
  23423. hasLen := containerLen > 0
  23424. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23425. if esep {
  23426. dd.ReadMapElemKey()
  23427. }
  23428. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23429. if esep {
  23430. dd.ReadMapElemValue()
  23431. }
  23432. if dd.TryDecodeAsNil() {
  23433. if v == nil {
  23434. } else if d.h.DeleteOnNilMapValue {
  23435. delete(v, mk)
  23436. } else {
  23437. v[mk] = 0
  23438. }
  23439. continue
  23440. }
  23441. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  23442. if v != nil {
  23443. v[mk] = mv
  23444. }
  23445. }
  23446. dd.ReadMapEnd()
  23447. d.depthDecr()
  23448. return v, changed
  23449. }
  23450. func (d *Decoder) fastpathDecMapUintInt8R(f *codecFnInfo, rv reflect.Value) {
  23451. if rv.Kind() == reflect.Ptr {
  23452. vp := rv2i(rv).(*map[uint]int8)
  23453. v, changed := fastpathTV.DecMapUintInt8V(*vp, true, d)
  23454. if changed {
  23455. *vp = v
  23456. }
  23457. } else {
  23458. fastpathTV.DecMapUintInt8V(rv2i(rv).(map[uint]int8), false, d)
  23459. }
  23460. }
  23461. func (f fastpathT) DecMapUintInt8X(vp *map[uint]int8, d *Decoder) {
  23462. v, changed := f.DecMapUintInt8V(*vp, true, d)
  23463. if changed {
  23464. *vp = v
  23465. }
  23466. }
  23467. func (_ fastpathT) DecMapUintInt8V(v map[uint]int8, canChange bool,
  23468. d *Decoder) (_ map[uint]int8, changed bool) {
  23469. dd, esep := d.d, d.hh.hasElemSeparators()
  23470. containerLen := dd.ReadMapStart()
  23471. if canChange && v == nil {
  23472. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23473. v = make(map[uint]int8, xlen)
  23474. changed = true
  23475. }
  23476. if containerLen == 0 {
  23477. dd.ReadMapEnd()
  23478. return v, changed
  23479. }
  23480. d.depthIncr()
  23481. var mk uint
  23482. var mv int8
  23483. hasLen := containerLen > 0
  23484. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23485. if esep {
  23486. dd.ReadMapElemKey()
  23487. }
  23488. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23489. if esep {
  23490. dd.ReadMapElemValue()
  23491. }
  23492. if dd.TryDecodeAsNil() {
  23493. if v == nil {
  23494. } else if d.h.DeleteOnNilMapValue {
  23495. delete(v, mk)
  23496. } else {
  23497. v[mk] = 0
  23498. }
  23499. continue
  23500. }
  23501. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  23502. if v != nil {
  23503. v[mk] = mv
  23504. }
  23505. }
  23506. dd.ReadMapEnd()
  23507. d.depthDecr()
  23508. return v, changed
  23509. }
  23510. func (d *Decoder) fastpathDecMapUintInt16R(f *codecFnInfo, rv reflect.Value) {
  23511. if rv.Kind() == reflect.Ptr {
  23512. vp := rv2i(rv).(*map[uint]int16)
  23513. v, changed := fastpathTV.DecMapUintInt16V(*vp, true, d)
  23514. if changed {
  23515. *vp = v
  23516. }
  23517. } else {
  23518. fastpathTV.DecMapUintInt16V(rv2i(rv).(map[uint]int16), false, d)
  23519. }
  23520. }
  23521. func (f fastpathT) DecMapUintInt16X(vp *map[uint]int16, d *Decoder) {
  23522. v, changed := f.DecMapUintInt16V(*vp, true, d)
  23523. if changed {
  23524. *vp = v
  23525. }
  23526. }
  23527. func (_ fastpathT) DecMapUintInt16V(v map[uint]int16, canChange bool,
  23528. d *Decoder) (_ map[uint]int16, changed bool) {
  23529. dd, esep := d.d, d.hh.hasElemSeparators()
  23530. containerLen := dd.ReadMapStart()
  23531. if canChange && v == nil {
  23532. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  23533. v = make(map[uint]int16, xlen)
  23534. changed = true
  23535. }
  23536. if containerLen == 0 {
  23537. dd.ReadMapEnd()
  23538. return v, changed
  23539. }
  23540. d.depthIncr()
  23541. var mk uint
  23542. var mv int16
  23543. hasLen := containerLen > 0
  23544. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23545. if esep {
  23546. dd.ReadMapElemKey()
  23547. }
  23548. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23549. if esep {
  23550. dd.ReadMapElemValue()
  23551. }
  23552. if dd.TryDecodeAsNil() {
  23553. if v == nil {
  23554. } else if d.h.DeleteOnNilMapValue {
  23555. delete(v, mk)
  23556. } else {
  23557. v[mk] = 0
  23558. }
  23559. continue
  23560. }
  23561. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  23562. if v != nil {
  23563. v[mk] = mv
  23564. }
  23565. }
  23566. dd.ReadMapEnd()
  23567. d.depthDecr()
  23568. return v, changed
  23569. }
  23570. func (d *Decoder) fastpathDecMapUintInt32R(f *codecFnInfo, rv reflect.Value) {
  23571. if rv.Kind() == reflect.Ptr {
  23572. vp := rv2i(rv).(*map[uint]int32)
  23573. v, changed := fastpathTV.DecMapUintInt32V(*vp, true, d)
  23574. if changed {
  23575. *vp = v
  23576. }
  23577. } else {
  23578. fastpathTV.DecMapUintInt32V(rv2i(rv).(map[uint]int32), false, d)
  23579. }
  23580. }
  23581. func (f fastpathT) DecMapUintInt32X(vp *map[uint]int32, d *Decoder) {
  23582. v, changed := f.DecMapUintInt32V(*vp, true, d)
  23583. if changed {
  23584. *vp = v
  23585. }
  23586. }
  23587. func (_ fastpathT) DecMapUintInt32V(v map[uint]int32, canChange bool,
  23588. d *Decoder) (_ map[uint]int32, changed bool) {
  23589. dd, esep := d.d, d.hh.hasElemSeparators()
  23590. containerLen := dd.ReadMapStart()
  23591. if canChange && v == nil {
  23592. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23593. v = make(map[uint]int32, xlen)
  23594. changed = true
  23595. }
  23596. if containerLen == 0 {
  23597. dd.ReadMapEnd()
  23598. return v, changed
  23599. }
  23600. d.depthIncr()
  23601. var mk uint
  23602. var mv int32
  23603. hasLen := containerLen > 0
  23604. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23605. if esep {
  23606. dd.ReadMapElemKey()
  23607. }
  23608. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23609. if esep {
  23610. dd.ReadMapElemValue()
  23611. }
  23612. if dd.TryDecodeAsNil() {
  23613. if v == nil {
  23614. } else if d.h.DeleteOnNilMapValue {
  23615. delete(v, mk)
  23616. } else {
  23617. v[mk] = 0
  23618. }
  23619. continue
  23620. }
  23621. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  23622. if v != nil {
  23623. v[mk] = mv
  23624. }
  23625. }
  23626. dd.ReadMapEnd()
  23627. d.depthDecr()
  23628. return v, changed
  23629. }
  23630. func (d *Decoder) fastpathDecMapUintInt64R(f *codecFnInfo, rv reflect.Value) {
  23631. if rv.Kind() == reflect.Ptr {
  23632. vp := rv2i(rv).(*map[uint]int64)
  23633. v, changed := fastpathTV.DecMapUintInt64V(*vp, true, d)
  23634. if changed {
  23635. *vp = v
  23636. }
  23637. } else {
  23638. fastpathTV.DecMapUintInt64V(rv2i(rv).(map[uint]int64), false, d)
  23639. }
  23640. }
  23641. func (f fastpathT) DecMapUintInt64X(vp *map[uint]int64, d *Decoder) {
  23642. v, changed := f.DecMapUintInt64V(*vp, true, d)
  23643. if changed {
  23644. *vp = v
  23645. }
  23646. }
  23647. func (_ fastpathT) DecMapUintInt64V(v map[uint]int64, canChange bool,
  23648. d *Decoder) (_ map[uint]int64, changed bool) {
  23649. dd, esep := d.d, d.hh.hasElemSeparators()
  23650. containerLen := dd.ReadMapStart()
  23651. if canChange && v == nil {
  23652. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23653. v = make(map[uint]int64, xlen)
  23654. changed = true
  23655. }
  23656. if containerLen == 0 {
  23657. dd.ReadMapEnd()
  23658. return v, changed
  23659. }
  23660. d.depthIncr()
  23661. var mk uint
  23662. var mv int64
  23663. hasLen := containerLen > 0
  23664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23665. if esep {
  23666. dd.ReadMapElemKey()
  23667. }
  23668. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23669. if esep {
  23670. dd.ReadMapElemValue()
  23671. }
  23672. if dd.TryDecodeAsNil() {
  23673. if v == nil {
  23674. } else if d.h.DeleteOnNilMapValue {
  23675. delete(v, mk)
  23676. } else {
  23677. v[mk] = 0
  23678. }
  23679. continue
  23680. }
  23681. mv = dd.DecodeInt64()
  23682. if v != nil {
  23683. v[mk] = mv
  23684. }
  23685. }
  23686. dd.ReadMapEnd()
  23687. d.depthDecr()
  23688. return v, changed
  23689. }
  23690. func (d *Decoder) fastpathDecMapUintFloat32R(f *codecFnInfo, rv reflect.Value) {
  23691. if rv.Kind() == reflect.Ptr {
  23692. vp := rv2i(rv).(*map[uint]float32)
  23693. v, changed := fastpathTV.DecMapUintFloat32V(*vp, true, d)
  23694. if changed {
  23695. *vp = v
  23696. }
  23697. } else {
  23698. fastpathTV.DecMapUintFloat32V(rv2i(rv).(map[uint]float32), false, d)
  23699. }
  23700. }
  23701. func (f fastpathT) DecMapUintFloat32X(vp *map[uint]float32, d *Decoder) {
  23702. v, changed := f.DecMapUintFloat32V(*vp, true, d)
  23703. if changed {
  23704. *vp = v
  23705. }
  23706. }
  23707. func (_ fastpathT) DecMapUintFloat32V(v map[uint]float32, canChange bool,
  23708. d *Decoder) (_ map[uint]float32, changed bool) {
  23709. dd, esep := d.d, d.hh.hasElemSeparators()
  23710. containerLen := dd.ReadMapStart()
  23711. if canChange && v == nil {
  23712. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  23713. v = make(map[uint]float32, xlen)
  23714. changed = true
  23715. }
  23716. if containerLen == 0 {
  23717. dd.ReadMapEnd()
  23718. return v, changed
  23719. }
  23720. d.depthIncr()
  23721. var mk uint
  23722. var mv float32
  23723. hasLen := containerLen > 0
  23724. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23725. if esep {
  23726. dd.ReadMapElemKey()
  23727. }
  23728. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23729. if esep {
  23730. dd.ReadMapElemValue()
  23731. }
  23732. if dd.TryDecodeAsNil() {
  23733. if v == nil {
  23734. } else if d.h.DeleteOnNilMapValue {
  23735. delete(v, mk)
  23736. } else {
  23737. v[mk] = 0
  23738. }
  23739. continue
  23740. }
  23741. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  23742. if v != nil {
  23743. v[mk] = mv
  23744. }
  23745. }
  23746. dd.ReadMapEnd()
  23747. d.depthDecr()
  23748. return v, changed
  23749. }
  23750. func (d *Decoder) fastpathDecMapUintFloat64R(f *codecFnInfo, rv reflect.Value) {
  23751. if rv.Kind() == reflect.Ptr {
  23752. vp := rv2i(rv).(*map[uint]float64)
  23753. v, changed := fastpathTV.DecMapUintFloat64V(*vp, true, d)
  23754. if changed {
  23755. *vp = v
  23756. }
  23757. } else {
  23758. fastpathTV.DecMapUintFloat64V(rv2i(rv).(map[uint]float64), false, d)
  23759. }
  23760. }
  23761. func (f fastpathT) DecMapUintFloat64X(vp *map[uint]float64, d *Decoder) {
  23762. v, changed := f.DecMapUintFloat64V(*vp, true, d)
  23763. if changed {
  23764. *vp = v
  23765. }
  23766. }
  23767. func (_ fastpathT) DecMapUintFloat64V(v map[uint]float64, canChange bool,
  23768. d *Decoder) (_ map[uint]float64, changed bool) {
  23769. dd, esep := d.d, d.hh.hasElemSeparators()
  23770. containerLen := dd.ReadMapStart()
  23771. if canChange && v == nil {
  23772. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  23773. v = make(map[uint]float64, xlen)
  23774. changed = true
  23775. }
  23776. if containerLen == 0 {
  23777. dd.ReadMapEnd()
  23778. return v, changed
  23779. }
  23780. d.depthIncr()
  23781. var mk uint
  23782. var mv float64
  23783. hasLen := containerLen > 0
  23784. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23785. if esep {
  23786. dd.ReadMapElemKey()
  23787. }
  23788. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23789. if esep {
  23790. dd.ReadMapElemValue()
  23791. }
  23792. if dd.TryDecodeAsNil() {
  23793. if v == nil {
  23794. } else if d.h.DeleteOnNilMapValue {
  23795. delete(v, mk)
  23796. } else {
  23797. v[mk] = 0
  23798. }
  23799. continue
  23800. }
  23801. mv = dd.DecodeFloat64()
  23802. if v != nil {
  23803. v[mk] = mv
  23804. }
  23805. }
  23806. dd.ReadMapEnd()
  23807. d.depthDecr()
  23808. return v, changed
  23809. }
  23810. func (d *Decoder) fastpathDecMapUintBoolR(f *codecFnInfo, rv reflect.Value) {
  23811. if rv.Kind() == reflect.Ptr {
  23812. vp := rv2i(rv).(*map[uint]bool)
  23813. v, changed := fastpathTV.DecMapUintBoolV(*vp, true, d)
  23814. if changed {
  23815. *vp = v
  23816. }
  23817. } else {
  23818. fastpathTV.DecMapUintBoolV(rv2i(rv).(map[uint]bool), false, d)
  23819. }
  23820. }
  23821. func (f fastpathT) DecMapUintBoolX(vp *map[uint]bool, d *Decoder) {
  23822. v, changed := f.DecMapUintBoolV(*vp, true, d)
  23823. if changed {
  23824. *vp = v
  23825. }
  23826. }
  23827. func (_ fastpathT) DecMapUintBoolV(v map[uint]bool, canChange bool,
  23828. d *Decoder) (_ map[uint]bool, changed bool) {
  23829. dd, esep := d.d, d.hh.hasElemSeparators()
  23830. containerLen := dd.ReadMapStart()
  23831. if canChange && v == nil {
  23832. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  23833. v = make(map[uint]bool, xlen)
  23834. changed = true
  23835. }
  23836. if containerLen == 0 {
  23837. dd.ReadMapEnd()
  23838. return v, changed
  23839. }
  23840. d.depthIncr()
  23841. var mk uint
  23842. var mv bool
  23843. hasLen := containerLen > 0
  23844. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23845. if esep {
  23846. dd.ReadMapElemKey()
  23847. }
  23848. mk = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  23849. if esep {
  23850. dd.ReadMapElemValue()
  23851. }
  23852. if dd.TryDecodeAsNil() {
  23853. if v == nil {
  23854. } else if d.h.DeleteOnNilMapValue {
  23855. delete(v, mk)
  23856. } else {
  23857. v[mk] = false
  23858. }
  23859. continue
  23860. }
  23861. mv = dd.DecodeBool()
  23862. if v != nil {
  23863. v[mk] = mv
  23864. }
  23865. }
  23866. dd.ReadMapEnd()
  23867. d.depthDecr()
  23868. return v, changed
  23869. }
  23870. func (d *Decoder) fastpathDecMapUint8IntfR(f *codecFnInfo, rv reflect.Value) {
  23871. if rv.Kind() == reflect.Ptr {
  23872. vp := rv2i(rv).(*map[uint8]interface{})
  23873. v, changed := fastpathTV.DecMapUint8IntfV(*vp, true, d)
  23874. if changed {
  23875. *vp = v
  23876. }
  23877. } else {
  23878. fastpathTV.DecMapUint8IntfV(rv2i(rv).(map[uint8]interface{}), false, d)
  23879. }
  23880. }
  23881. func (f fastpathT) DecMapUint8IntfX(vp *map[uint8]interface{}, d *Decoder) {
  23882. v, changed := f.DecMapUint8IntfV(*vp, true, d)
  23883. if changed {
  23884. *vp = v
  23885. }
  23886. }
  23887. func (_ fastpathT) DecMapUint8IntfV(v map[uint8]interface{}, canChange bool,
  23888. d *Decoder) (_ map[uint8]interface{}, changed bool) {
  23889. dd, esep := d.d, d.hh.hasElemSeparators()
  23890. containerLen := dd.ReadMapStart()
  23891. if canChange && v == nil {
  23892. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23893. v = make(map[uint8]interface{}, xlen)
  23894. changed = true
  23895. }
  23896. if containerLen == 0 {
  23897. dd.ReadMapEnd()
  23898. return v, changed
  23899. }
  23900. d.depthIncr()
  23901. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  23902. var mk uint8
  23903. var mv interface{}
  23904. hasLen := containerLen > 0
  23905. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23906. if esep {
  23907. dd.ReadMapElemKey()
  23908. }
  23909. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23910. if esep {
  23911. dd.ReadMapElemValue()
  23912. }
  23913. if dd.TryDecodeAsNil() {
  23914. if v == nil {
  23915. } else if d.h.DeleteOnNilMapValue {
  23916. delete(v, mk)
  23917. } else {
  23918. v[mk] = nil
  23919. }
  23920. continue
  23921. }
  23922. if mapGet {
  23923. mv = v[mk]
  23924. } else {
  23925. mv = nil
  23926. }
  23927. d.decode(&mv)
  23928. if v != nil {
  23929. v[mk] = mv
  23930. }
  23931. }
  23932. dd.ReadMapEnd()
  23933. d.depthDecr()
  23934. return v, changed
  23935. }
  23936. func (d *Decoder) fastpathDecMapUint8StringR(f *codecFnInfo, rv reflect.Value) {
  23937. if rv.Kind() == reflect.Ptr {
  23938. vp := rv2i(rv).(*map[uint8]string)
  23939. v, changed := fastpathTV.DecMapUint8StringV(*vp, true, d)
  23940. if changed {
  23941. *vp = v
  23942. }
  23943. } else {
  23944. fastpathTV.DecMapUint8StringV(rv2i(rv).(map[uint8]string), false, d)
  23945. }
  23946. }
  23947. func (f fastpathT) DecMapUint8StringX(vp *map[uint8]string, d *Decoder) {
  23948. v, changed := f.DecMapUint8StringV(*vp, true, d)
  23949. if changed {
  23950. *vp = v
  23951. }
  23952. }
  23953. func (_ fastpathT) DecMapUint8StringV(v map[uint8]string, canChange bool,
  23954. d *Decoder) (_ map[uint8]string, changed bool) {
  23955. dd, esep := d.d, d.hh.hasElemSeparators()
  23956. containerLen := dd.ReadMapStart()
  23957. if canChange && v == nil {
  23958. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  23959. v = make(map[uint8]string, xlen)
  23960. changed = true
  23961. }
  23962. if containerLen == 0 {
  23963. dd.ReadMapEnd()
  23964. return v, changed
  23965. }
  23966. d.depthIncr()
  23967. var mk uint8
  23968. var mv string
  23969. hasLen := containerLen > 0
  23970. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  23971. if esep {
  23972. dd.ReadMapElemKey()
  23973. }
  23974. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  23975. if esep {
  23976. dd.ReadMapElemValue()
  23977. }
  23978. if dd.TryDecodeAsNil() {
  23979. if v == nil {
  23980. } else if d.h.DeleteOnNilMapValue {
  23981. delete(v, mk)
  23982. } else {
  23983. v[mk] = ""
  23984. }
  23985. continue
  23986. }
  23987. mv = dd.DecodeString()
  23988. if v != nil {
  23989. v[mk] = mv
  23990. }
  23991. }
  23992. dd.ReadMapEnd()
  23993. d.depthDecr()
  23994. return v, changed
  23995. }
  23996. func (d *Decoder) fastpathDecMapUint8UintR(f *codecFnInfo, rv reflect.Value) {
  23997. if rv.Kind() == reflect.Ptr {
  23998. vp := rv2i(rv).(*map[uint8]uint)
  23999. v, changed := fastpathTV.DecMapUint8UintV(*vp, true, d)
  24000. if changed {
  24001. *vp = v
  24002. }
  24003. } else {
  24004. fastpathTV.DecMapUint8UintV(rv2i(rv).(map[uint8]uint), false, d)
  24005. }
  24006. }
  24007. func (f fastpathT) DecMapUint8UintX(vp *map[uint8]uint, d *Decoder) {
  24008. v, changed := f.DecMapUint8UintV(*vp, true, d)
  24009. if changed {
  24010. *vp = v
  24011. }
  24012. }
  24013. func (_ fastpathT) DecMapUint8UintV(v map[uint8]uint, canChange bool,
  24014. d *Decoder) (_ map[uint8]uint, changed bool) {
  24015. dd, esep := d.d, d.hh.hasElemSeparators()
  24016. containerLen := dd.ReadMapStart()
  24017. if canChange && v == nil {
  24018. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24019. v = make(map[uint8]uint, xlen)
  24020. changed = true
  24021. }
  24022. if containerLen == 0 {
  24023. dd.ReadMapEnd()
  24024. return v, changed
  24025. }
  24026. d.depthIncr()
  24027. var mk uint8
  24028. var mv uint
  24029. hasLen := containerLen > 0
  24030. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24031. if esep {
  24032. dd.ReadMapElemKey()
  24033. }
  24034. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24035. if esep {
  24036. dd.ReadMapElemValue()
  24037. }
  24038. if dd.TryDecodeAsNil() {
  24039. if v == nil {
  24040. } else if d.h.DeleteOnNilMapValue {
  24041. delete(v, mk)
  24042. } else {
  24043. v[mk] = 0
  24044. }
  24045. continue
  24046. }
  24047. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24048. if v != nil {
  24049. v[mk] = mv
  24050. }
  24051. }
  24052. dd.ReadMapEnd()
  24053. d.depthDecr()
  24054. return v, changed
  24055. }
  24056. func (d *Decoder) fastpathDecMapUint8Uint8R(f *codecFnInfo, rv reflect.Value) {
  24057. if rv.Kind() == reflect.Ptr {
  24058. vp := rv2i(rv).(*map[uint8]uint8)
  24059. v, changed := fastpathTV.DecMapUint8Uint8V(*vp, true, d)
  24060. if changed {
  24061. *vp = v
  24062. }
  24063. } else {
  24064. fastpathTV.DecMapUint8Uint8V(rv2i(rv).(map[uint8]uint8), false, d)
  24065. }
  24066. }
  24067. func (f fastpathT) DecMapUint8Uint8X(vp *map[uint8]uint8, d *Decoder) {
  24068. v, changed := f.DecMapUint8Uint8V(*vp, true, d)
  24069. if changed {
  24070. *vp = v
  24071. }
  24072. }
  24073. func (_ fastpathT) DecMapUint8Uint8V(v map[uint8]uint8, canChange bool,
  24074. d *Decoder) (_ map[uint8]uint8, changed bool) {
  24075. dd, esep := d.d, d.hh.hasElemSeparators()
  24076. containerLen := dd.ReadMapStart()
  24077. if canChange && v == nil {
  24078. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24079. v = make(map[uint8]uint8, xlen)
  24080. changed = true
  24081. }
  24082. if containerLen == 0 {
  24083. dd.ReadMapEnd()
  24084. return v, changed
  24085. }
  24086. d.depthIncr()
  24087. var mk uint8
  24088. var mv uint8
  24089. hasLen := containerLen > 0
  24090. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24091. if esep {
  24092. dd.ReadMapElemKey()
  24093. }
  24094. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24095. if esep {
  24096. dd.ReadMapElemValue()
  24097. }
  24098. if dd.TryDecodeAsNil() {
  24099. if v == nil {
  24100. } else if d.h.DeleteOnNilMapValue {
  24101. delete(v, mk)
  24102. } else {
  24103. v[mk] = 0
  24104. }
  24105. continue
  24106. }
  24107. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24108. if v != nil {
  24109. v[mk] = mv
  24110. }
  24111. }
  24112. dd.ReadMapEnd()
  24113. d.depthDecr()
  24114. return v, changed
  24115. }
  24116. func (d *Decoder) fastpathDecMapUint8Uint16R(f *codecFnInfo, rv reflect.Value) {
  24117. if rv.Kind() == reflect.Ptr {
  24118. vp := rv2i(rv).(*map[uint8]uint16)
  24119. v, changed := fastpathTV.DecMapUint8Uint16V(*vp, true, d)
  24120. if changed {
  24121. *vp = v
  24122. }
  24123. } else {
  24124. fastpathTV.DecMapUint8Uint16V(rv2i(rv).(map[uint8]uint16), false, d)
  24125. }
  24126. }
  24127. func (f fastpathT) DecMapUint8Uint16X(vp *map[uint8]uint16, d *Decoder) {
  24128. v, changed := f.DecMapUint8Uint16V(*vp, true, d)
  24129. if changed {
  24130. *vp = v
  24131. }
  24132. }
  24133. func (_ fastpathT) DecMapUint8Uint16V(v map[uint8]uint16, canChange bool,
  24134. d *Decoder) (_ map[uint8]uint16, changed bool) {
  24135. dd, esep := d.d, d.hh.hasElemSeparators()
  24136. containerLen := dd.ReadMapStart()
  24137. if canChange && v == nil {
  24138. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24139. v = make(map[uint8]uint16, xlen)
  24140. changed = true
  24141. }
  24142. if containerLen == 0 {
  24143. dd.ReadMapEnd()
  24144. return v, changed
  24145. }
  24146. d.depthIncr()
  24147. var mk uint8
  24148. var mv uint16
  24149. hasLen := containerLen > 0
  24150. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24151. if esep {
  24152. dd.ReadMapElemKey()
  24153. }
  24154. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24155. if esep {
  24156. dd.ReadMapElemValue()
  24157. }
  24158. if dd.TryDecodeAsNil() {
  24159. if v == nil {
  24160. } else if d.h.DeleteOnNilMapValue {
  24161. delete(v, mk)
  24162. } else {
  24163. v[mk] = 0
  24164. }
  24165. continue
  24166. }
  24167. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24168. if v != nil {
  24169. v[mk] = mv
  24170. }
  24171. }
  24172. dd.ReadMapEnd()
  24173. d.depthDecr()
  24174. return v, changed
  24175. }
  24176. func (d *Decoder) fastpathDecMapUint8Uint32R(f *codecFnInfo, rv reflect.Value) {
  24177. if rv.Kind() == reflect.Ptr {
  24178. vp := rv2i(rv).(*map[uint8]uint32)
  24179. v, changed := fastpathTV.DecMapUint8Uint32V(*vp, true, d)
  24180. if changed {
  24181. *vp = v
  24182. }
  24183. } else {
  24184. fastpathTV.DecMapUint8Uint32V(rv2i(rv).(map[uint8]uint32), false, d)
  24185. }
  24186. }
  24187. func (f fastpathT) DecMapUint8Uint32X(vp *map[uint8]uint32, d *Decoder) {
  24188. v, changed := f.DecMapUint8Uint32V(*vp, true, d)
  24189. if changed {
  24190. *vp = v
  24191. }
  24192. }
  24193. func (_ fastpathT) DecMapUint8Uint32V(v map[uint8]uint32, canChange bool,
  24194. d *Decoder) (_ map[uint8]uint32, changed bool) {
  24195. dd, esep := d.d, d.hh.hasElemSeparators()
  24196. containerLen := dd.ReadMapStart()
  24197. if canChange && v == nil {
  24198. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24199. v = make(map[uint8]uint32, xlen)
  24200. changed = true
  24201. }
  24202. if containerLen == 0 {
  24203. dd.ReadMapEnd()
  24204. return v, changed
  24205. }
  24206. d.depthIncr()
  24207. var mk uint8
  24208. var mv uint32
  24209. hasLen := containerLen > 0
  24210. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24211. if esep {
  24212. dd.ReadMapElemKey()
  24213. }
  24214. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24215. if esep {
  24216. dd.ReadMapElemValue()
  24217. }
  24218. if dd.TryDecodeAsNil() {
  24219. if v == nil {
  24220. } else if d.h.DeleteOnNilMapValue {
  24221. delete(v, mk)
  24222. } else {
  24223. v[mk] = 0
  24224. }
  24225. continue
  24226. }
  24227. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  24228. if v != nil {
  24229. v[mk] = mv
  24230. }
  24231. }
  24232. dd.ReadMapEnd()
  24233. d.depthDecr()
  24234. return v, changed
  24235. }
  24236. func (d *Decoder) fastpathDecMapUint8Uint64R(f *codecFnInfo, rv reflect.Value) {
  24237. if rv.Kind() == reflect.Ptr {
  24238. vp := rv2i(rv).(*map[uint8]uint64)
  24239. v, changed := fastpathTV.DecMapUint8Uint64V(*vp, true, d)
  24240. if changed {
  24241. *vp = v
  24242. }
  24243. } else {
  24244. fastpathTV.DecMapUint8Uint64V(rv2i(rv).(map[uint8]uint64), false, d)
  24245. }
  24246. }
  24247. func (f fastpathT) DecMapUint8Uint64X(vp *map[uint8]uint64, d *Decoder) {
  24248. v, changed := f.DecMapUint8Uint64V(*vp, true, d)
  24249. if changed {
  24250. *vp = v
  24251. }
  24252. }
  24253. func (_ fastpathT) DecMapUint8Uint64V(v map[uint8]uint64, canChange bool,
  24254. d *Decoder) (_ map[uint8]uint64, changed bool) {
  24255. dd, esep := d.d, d.hh.hasElemSeparators()
  24256. containerLen := dd.ReadMapStart()
  24257. if canChange && v == nil {
  24258. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24259. v = make(map[uint8]uint64, xlen)
  24260. changed = true
  24261. }
  24262. if containerLen == 0 {
  24263. dd.ReadMapEnd()
  24264. return v, changed
  24265. }
  24266. d.depthIncr()
  24267. var mk uint8
  24268. var mv uint64
  24269. hasLen := containerLen > 0
  24270. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24271. if esep {
  24272. dd.ReadMapElemKey()
  24273. }
  24274. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24275. if esep {
  24276. dd.ReadMapElemValue()
  24277. }
  24278. if dd.TryDecodeAsNil() {
  24279. if v == nil {
  24280. } else if d.h.DeleteOnNilMapValue {
  24281. delete(v, mk)
  24282. } else {
  24283. v[mk] = 0
  24284. }
  24285. continue
  24286. }
  24287. mv = dd.DecodeUint64()
  24288. if v != nil {
  24289. v[mk] = mv
  24290. }
  24291. }
  24292. dd.ReadMapEnd()
  24293. d.depthDecr()
  24294. return v, changed
  24295. }
  24296. func (d *Decoder) fastpathDecMapUint8UintptrR(f *codecFnInfo, rv reflect.Value) {
  24297. if rv.Kind() == reflect.Ptr {
  24298. vp := rv2i(rv).(*map[uint8]uintptr)
  24299. v, changed := fastpathTV.DecMapUint8UintptrV(*vp, true, d)
  24300. if changed {
  24301. *vp = v
  24302. }
  24303. } else {
  24304. fastpathTV.DecMapUint8UintptrV(rv2i(rv).(map[uint8]uintptr), false, d)
  24305. }
  24306. }
  24307. func (f fastpathT) DecMapUint8UintptrX(vp *map[uint8]uintptr, d *Decoder) {
  24308. v, changed := f.DecMapUint8UintptrV(*vp, true, d)
  24309. if changed {
  24310. *vp = v
  24311. }
  24312. }
  24313. func (_ fastpathT) DecMapUint8UintptrV(v map[uint8]uintptr, canChange bool,
  24314. d *Decoder) (_ map[uint8]uintptr, changed bool) {
  24315. dd, esep := d.d, d.hh.hasElemSeparators()
  24316. containerLen := dd.ReadMapStart()
  24317. if canChange && v == nil {
  24318. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24319. v = make(map[uint8]uintptr, xlen)
  24320. changed = true
  24321. }
  24322. if containerLen == 0 {
  24323. dd.ReadMapEnd()
  24324. return v, changed
  24325. }
  24326. d.depthIncr()
  24327. var mk uint8
  24328. var mv uintptr
  24329. hasLen := containerLen > 0
  24330. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24331. if esep {
  24332. dd.ReadMapElemKey()
  24333. }
  24334. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24335. if esep {
  24336. dd.ReadMapElemValue()
  24337. }
  24338. if dd.TryDecodeAsNil() {
  24339. if v == nil {
  24340. } else if d.h.DeleteOnNilMapValue {
  24341. delete(v, mk)
  24342. } else {
  24343. v[mk] = 0
  24344. }
  24345. continue
  24346. }
  24347. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  24348. if v != nil {
  24349. v[mk] = mv
  24350. }
  24351. }
  24352. dd.ReadMapEnd()
  24353. d.depthDecr()
  24354. return v, changed
  24355. }
  24356. func (d *Decoder) fastpathDecMapUint8IntR(f *codecFnInfo, rv reflect.Value) {
  24357. if rv.Kind() == reflect.Ptr {
  24358. vp := rv2i(rv).(*map[uint8]int)
  24359. v, changed := fastpathTV.DecMapUint8IntV(*vp, true, d)
  24360. if changed {
  24361. *vp = v
  24362. }
  24363. } else {
  24364. fastpathTV.DecMapUint8IntV(rv2i(rv).(map[uint8]int), false, d)
  24365. }
  24366. }
  24367. func (f fastpathT) DecMapUint8IntX(vp *map[uint8]int, d *Decoder) {
  24368. v, changed := f.DecMapUint8IntV(*vp, true, d)
  24369. if changed {
  24370. *vp = v
  24371. }
  24372. }
  24373. func (_ fastpathT) DecMapUint8IntV(v map[uint8]int, canChange bool,
  24374. d *Decoder) (_ map[uint8]int, changed bool) {
  24375. dd, esep := d.d, d.hh.hasElemSeparators()
  24376. containerLen := dd.ReadMapStart()
  24377. if canChange && v == nil {
  24378. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24379. v = make(map[uint8]int, xlen)
  24380. changed = true
  24381. }
  24382. if containerLen == 0 {
  24383. dd.ReadMapEnd()
  24384. return v, changed
  24385. }
  24386. d.depthIncr()
  24387. var mk uint8
  24388. var mv int
  24389. hasLen := containerLen > 0
  24390. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24391. if esep {
  24392. dd.ReadMapElemKey()
  24393. }
  24394. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24395. if esep {
  24396. dd.ReadMapElemValue()
  24397. }
  24398. if dd.TryDecodeAsNil() {
  24399. if v == nil {
  24400. } else if d.h.DeleteOnNilMapValue {
  24401. delete(v, mk)
  24402. } else {
  24403. v[mk] = 0
  24404. }
  24405. continue
  24406. }
  24407. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  24408. if v != nil {
  24409. v[mk] = mv
  24410. }
  24411. }
  24412. dd.ReadMapEnd()
  24413. d.depthDecr()
  24414. return v, changed
  24415. }
  24416. func (d *Decoder) fastpathDecMapUint8Int8R(f *codecFnInfo, rv reflect.Value) {
  24417. if rv.Kind() == reflect.Ptr {
  24418. vp := rv2i(rv).(*map[uint8]int8)
  24419. v, changed := fastpathTV.DecMapUint8Int8V(*vp, true, d)
  24420. if changed {
  24421. *vp = v
  24422. }
  24423. } else {
  24424. fastpathTV.DecMapUint8Int8V(rv2i(rv).(map[uint8]int8), false, d)
  24425. }
  24426. }
  24427. func (f fastpathT) DecMapUint8Int8X(vp *map[uint8]int8, d *Decoder) {
  24428. v, changed := f.DecMapUint8Int8V(*vp, true, d)
  24429. if changed {
  24430. *vp = v
  24431. }
  24432. }
  24433. func (_ fastpathT) DecMapUint8Int8V(v map[uint8]int8, canChange bool,
  24434. d *Decoder) (_ map[uint8]int8, changed bool) {
  24435. dd, esep := d.d, d.hh.hasElemSeparators()
  24436. containerLen := dd.ReadMapStart()
  24437. if canChange && v == nil {
  24438. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24439. v = make(map[uint8]int8, xlen)
  24440. changed = true
  24441. }
  24442. if containerLen == 0 {
  24443. dd.ReadMapEnd()
  24444. return v, changed
  24445. }
  24446. d.depthIncr()
  24447. var mk uint8
  24448. var mv int8
  24449. hasLen := containerLen > 0
  24450. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24451. if esep {
  24452. dd.ReadMapElemKey()
  24453. }
  24454. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24455. if esep {
  24456. dd.ReadMapElemValue()
  24457. }
  24458. if dd.TryDecodeAsNil() {
  24459. if v == nil {
  24460. } else if d.h.DeleteOnNilMapValue {
  24461. delete(v, mk)
  24462. } else {
  24463. v[mk] = 0
  24464. }
  24465. continue
  24466. }
  24467. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  24468. if v != nil {
  24469. v[mk] = mv
  24470. }
  24471. }
  24472. dd.ReadMapEnd()
  24473. d.depthDecr()
  24474. return v, changed
  24475. }
  24476. func (d *Decoder) fastpathDecMapUint8Int16R(f *codecFnInfo, rv reflect.Value) {
  24477. if rv.Kind() == reflect.Ptr {
  24478. vp := rv2i(rv).(*map[uint8]int16)
  24479. v, changed := fastpathTV.DecMapUint8Int16V(*vp, true, d)
  24480. if changed {
  24481. *vp = v
  24482. }
  24483. } else {
  24484. fastpathTV.DecMapUint8Int16V(rv2i(rv).(map[uint8]int16), false, d)
  24485. }
  24486. }
  24487. func (f fastpathT) DecMapUint8Int16X(vp *map[uint8]int16, d *Decoder) {
  24488. v, changed := f.DecMapUint8Int16V(*vp, true, d)
  24489. if changed {
  24490. *vp = v
  24491. }
  24492. }
  24493. func (_ fastpathT) DecMapUint8Int16V(v map[uint8]int16, canChange bool,
  24494. d *Decoder) (_ map[uint8]int16, changed bool) {
  24495. dd, esep := d.d, d.hh.hasElemSeparators()
  24496. containerLen := dd.ReadMapStart()
  24497. if canChange && v == nil {
  24498. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  24499. v = make(map[uint8]int16, xlen)
  24500. changed = true
  24501. }
  24502. if containerLen == 0 {
  24503. dd.ReadMapEnd()
  24504. return v, changed
  24505. }
  24506. d.depthIncr()
  24507. var mk uint8
  24508. var mv int16
  24509. hasLen := containerLen > 0
  24510. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24511. if esep {
  24512. dd.ReadMapElemKey()
  24513. }
  24514. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24515. if esep {
  24516. dd.ReadMapElemValue()
  24517. }
  24518. if dd.TryDecodeAsNil() {
  24519. if v == nil {
  24520. } else if d.h.DeleteOnNilMapValue {
  24521. delete(v, mk)
  24522. } else {
  24523. v[mk] = 0
  24524. }
  24525. continue
  24526. }
  24527. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  24528. if v != nil {
  24529. v[mk] = mv
  24530. }
  24531. }
  24532. dd.ReadMapEnd()
  24533. d.depthDecr()
  24534. return v, changed
  24535. }
  24536. func (d *Decoder) fastpathDecMapUint8Int32R(f *codecFnInfo, rv reflect.Value) {
  24537. if rv.Kind() == reflect.Ptr {
  24538. vp := rv2i(rv).(*map[uint8]int32)
  24539. v, changed := fastpathTV.DecMapUint8Int32V(*vp, true, d)
  24540. if changed {
  24541. *vp = v
  24542. }
  24543. } else {
  24544. fastpathTV.DecMapUint8Int32V(rv2i(rv).(map[uint8]int32), false, d)
  24545. }
  24546. }
  24547. func (f fastpathT) DecMapUint8Int32X(vp *map[uint8]int32, d *Decoder) {
  24548. v, changed := f.DecMapUint8Int32V(*vp, true, d)
  24549. if changed {
  24550. *vp = v
  24551. }
  24552. }
  24553. func (_ fastpathT) DecMapUint8Int32V(v map[uint8]int32, canChange bool,
  24554. d *Decoder) (_ map[uint8]int32, changed bool) {
  24555. dd, esep := d.d, d.hh.hasElemSeparators()
  24556. containerLen := dd.ReadMapStart()
  24557. if canChange && v == nil {
  24558. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24559. v = make(map[uint8]int32, xlen)
  24560. changed = true
  24561. }
  24562. if containerLen == 0 {
  24563. dd.ReadMapEnd()
  24564. return v, changed
  24565. }
  24566. d.depthIncr()
  24567. var mk uint8
  24568. var mv int32
  24569. hasLen := containerLen > 0
  24570. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24571. if esep {
  24572. dd.ReadMapElemKey()
  24573. }
  24574. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24575. if esep {
  24576. dd.ReadMapElemValue()
  24577. }
  24578. if dd.TryDecodeAsNil() {
  24579. if v == nil {
  24580. } else if d.h.DeleteOnNilMapValue {
  24581. delete(v, mk)
  24582. } else {
  24583. v[mk] = 0
  24584. }
  24585. continue
  24586. }
  24587. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  24588. if v != nil {
  24589. v[mk] = mv
  24590. }
  24591. }
  24592. dd.ReadMapEnd()
  24593. d.depthDecr()
  24594. return v, changed
  24595. }
  24596. func (d *Decoder) fastpathDecMapUint8Int64R(f *codecFnInfo, rv reflect.Value) {
  24597. if rv.Kind() == reflect.Ptr {
  24598. vp := rv2i(rv).(*map[uint8]int64)
  24599. v, changed := fastpathTV.DecMapUint8Int64V(*vp, true, d)
  24600. if changed {
  24601. *vp = v
  24602. }
  24603. } else {
  24604. fastpathTV.DecMapUint8Int64V(rv2i(rv).(map[uint8]int64), false, d)
  24605. }
  24606. }
  24607. func (f fastpathT) DecMapUint8Int64X(vp *map[uint8]int64, d *Decoder) {
  24608. v, changed := f.DecMapUint8Int64V(*vp, true, d)
  24609. if changed {
  24610. *vp = v
  24611. }
  24612. }
  24613. func (_ fastpathT) DecMapUint8Int64V(v map[uint8]int64, canChange bool,
  24614. d *Decoder) (_ map[uint8]int64, changed bool) {
  24615. dd, esep := d.d, d.hh.hasElemSeparators()
  24616. containerLen := dd.ReadMapStart()
  24617. if canChange && v == nil {
  24618. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24619. v = make(map[uint8]int64, xlen)
  24620. changed = true
  24621. }
  24622. if containerLen == 0 {
  24623. dd.ReadMapEnd()
  24624. return v, changed
  24625. }
  24626. d.depthIncr()
  24627. var mk uint8
  24628. var mv int64
  24629. hasLen := containerLen > 0
  24630. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24631. if esep {
  24632. dd.ReadMapElemKey()
  24633. }
  24634. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24635. if esep {
  24636. dd.ReadMapElemValue()
  24637. }
  24638. if dd.TryDecodeAsNil() {
  24639. if v == nil {
  24640. } else if d.h.DeleteOnNilMapValue {
  24641. delete(v, mk)
  24642. } else {
  24643. v[mk] = 0
  24644. }
  24645. continue
  24646. }
  24647. mv = dd.DecodeInt64()
  24648. if v != nil {
  24649. v[mk] = mv
  24650. }
  24651. }
  24652. dd.ReadMapEnd()
  24653. d.depthDecr()
  24654. return v, changed
  24655. }
  24656. func (d *Decoder) fastpathDecMapUint8Float32R(f *codecFnInfo, rv reflect.Value) {
  24657. if rv.Kind() == reflect.Ptr {
  24658. vp := rv2i(rv).(*map[uint8]float32)
  24659. v, changed := fastpathTV.DecMapUint8Float32V(*vp, true, d)
  24660. if changed {
  24661. *vp = v
  24662. }
  24663. } else {
  24664. fastpathTV.DecMapUint8Float32V(rv2i(rv).(map[uint8]float32), false, d)
  24665. }
  24666. }
  24667. func (f fastpathT) DecMapUint8Float32X(vp *map[uint8]float32, d *Decoder) {
  24668. v, changed := f.DecMapUint8Float32V(*vp, true, d)
  24669. if changed {
  24670. *vp = v
  24671. }
  24672. }
  24673. func (_ fastpathT) DecMapUint8Float32V(v map[uint8]float32, canChange bool,
  24674. d *Decoder) (_ map[uint8]float32, changed bool) {
  24675. dd, esep := d.d, d.hh.hasElemSeparators()
  24676. containerLen := dd.ReadMapStart()
  24677. if canChange && v == nil {
  24678. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  24679. v = make(map[uint8]float32, xlen)
  24680. changed = true
  24681. }
  24682. if containerLen == 0 {
  24683. dd.ReadMapEnd()
  24684. return v, changed
  24685. }
  24686. d.depthIncr()
  24687. var mk uint8
  24688. var mv float32
  24689. hasLen := containerLen > 0
  24690. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24691. if esep {
  24692. dd.ReadMapElemKey()
  24693. }
  24694. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24695. if esep {
  24696. dd.ReadMapElemValue()
  24697. }
  24698. if dd.TryDecodeAsNil() {
  24699. if v == nil {
  24700. } else if d.h.DeleteOnNilMapValue {
  24701. delete(v, mk)
  24702. } else {
  24703. v[mk] = 0
  24704. }
  24705. continue
  24706. }
  24707. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  24708. if v != nil {
  24709. v[mk] = mv
  24710. }
  24711. }
  24712. dd.ReadMapEnd()
  24713. d.depthDecr()
  24714. return v, changed
  24715. }
  24716. func (d *Decoder) fastpathDecMapUint8Float64R(f *codecFnInfo, rv reflect.Value) {
  24717. if rv.Kind() == reflect.Ptr {
  24718. vp := rv2i(rv).(*map[uint8]float64)
  24719. v, changed := fastpathTV.DecMapUint8Float64V(*vp, true, d)
  24720. if changed {
  24721. *vp = v
  24722. }
  24723. } else {
  24724. fastpathTV.DecMapUint8Float64V(rv2i(rv).(map[uint8]float64), false, d)
  24725. }
  24726. }
  24727. func (f fastpathT) DecMapUint8Float64X(vp *map[uint8]float64, d *Decoder) {
  24728. v, changed := f.DecMapUint8Float64V(*vp, true, d)
  24729. if changed {
  24730. *vp = v
  24731. }
  24732. }
  24733. func (_ fastpathT) DecMapUint8Float64V(v map[uint8]float64, canChange bool,
  24734. d *Decoder) (_ map[uint8]float64, changed bool) {
  24735. dd, esep := d.d, d.hh.hasElemSeparators()
  24736. containerLen := dd.ReadMapStart()
  24737. if canChange && v == nil {
  24738. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  24739. v = make(map[uint8]float64, xlen)
  24740. changed = true
  24741. }
  24742. if containerLen == 0 {
  24743. dd.ReadMapEnd()
  24744. return v, changed
  24745. }
  24746. d.depthIncr()
  24747. var mk uint8
  24748. var mv float64
  24749. hasLen := containerLen > 0
  24750. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24751. if esep {
  24752. dd.ReadMapElemKey()
  24753. }
  24754. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24755. if esep {
  24756. dd.ReadMapElemValue()
  24757. }
  24758. if dd.TryDecodeAsNil() {
  24759. if v == nil {
  24760. } else if d.h.DeleteOnNilMapValue {
  24761. delete(v, mk)
  24762. } else {
  24763. v[mk] = 0
  24764. }
  24765. continue
  24766. }
  24767. mv = dd.DecodeFloat64()
  24768. if v != nil {
  24769. v[mk] = mv
  24770. }
  24771. }
  24772. dd.ReadMapEnd()
  24773. d.depthDecr()
  24774. return v, changed
  24775. }
  24776. func (d *Decoder) fastpathDecMapUint8BoolR(f *codecFnInfo, rv reflect.Value) {
  24777. if rv.Kind() == reflect.Ptr {
  24778. vp := rv2i(rv).(*map[uint8]bool)
  24779. v, changed := fastpathTV.DecMapUint8BoolV(*vp, true, d)
  24780. if changed {
  24781. *vp = v
  24782. }
  24783. } else {
  24784. fastpathTV.DecMapUint8BoolV(rv2i(rv).(map[uint8]bool), false, d)
  24785. }
  24786. }
  24787. func (f fastpathT) DecMapUint8BoolX(vp *map[uint8]bool, d *Decoder) {
  24788. v, changed := f.DecMapUint8BoolV(*vp, true, d)
  24789. if changed {
  24790. *vp = v
  24791. }
  24792. }
  24793. func (_ fastpathT) DecMapUint8BoolV(v map[uint8]bool, canChange bool,
  24794. d *Decoder) (_ map[uint8]bool, changed bool) {
  24795. dd, esep := d.d, d.hh.hasElemSeparators()
  24796. containerLen := dd.ReadMapStart()
  24797. if canChange && v == nil {
  24798. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  24799. v = make(map[uint8]bool, xlen)
  24800. changed = true
  24801. }
  24802. if containerLen == 0 {
  24803. dd.ReadMapEnd()
  24804. return v, changed
  24805. }
  24806. d.depthIncr()
  24807. var mk uint8
  24808. var mv bool
  24809. hasLen := containerLen > 0
  24810. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24811. if esep {
  24812. dd.ReadMapElemKey()
  24813. }
  24814. mk = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  24815. if esep {
  24816. dd.ReadMapElemValue()
  24817. }
  24818. if dd.TryDecodeAsNil() {
  24819. if v == nil {
  24820. } else if d.h.DeleteOnNilMapValue {
  24821. delete(v, mk)
  24822. } else {
  24823. v[mk] = false
  24824. }
  24825. continue
  24826. }
  24827. mv = dd.DecodeBool()
  24828. if v != nil {
  24829. v[mk] = mv
  24830. }
  24831. }
  24832. dd.ReadMapEnd()
  24833. d.depthDecr()
  24834. return v, changed
  24835. }
  24836. func (d *Decoder) fastpathDecMapUint16IntfR(f *codecFnInfo, rv reflect.Value) {
  24837. if rv.Kind() == reflect.Ptr {
  24838. vp := rv2i(rv).(*map[uint16]interface{})
  24839. v, changed := fastpathTV.DecMapUint16IntfV(*vp, true, d)
  24840. if changed {
  24841. *vp = v
  24842. }
  24843. } else {
  24844. fastpathTV.DecMapUint16IntfV(rv2i(rv).(map[uint16]interface{}), false, d)
  24845. }
  24846. }
  24847. func (f fastpathT) DecMapUint16IntfX(vp *map[uint16]interface{}, d *Decoder) {
  24848. v, changed := f.DecMapUint16IntfV(*vp, true, d)
  24849. if changed {
  24850. *vp = v
  24851. }
  24852. }
  24853. func (_ fastpathT) DecMapUint16IntfV(v map[uint16]interface{}, canChange bool,
  24854. d *Decoder) (_ map[uint16]interface{}, changed bool) {
  24855. dd, esep := d.d, d.hh.hasElemSeparators()
  24856. containerLen := dd.ReadMapStart()
  24857. if canChange && v == nil {
  24858. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24859. v = make(map[uint16]interface{}, xlen)
  24860. changed = true
  24861. }
  24862. if containerLen == 0 {
  24863. dd.ReadMapEnd()
  24864. return v, changed
  24865. }
  24866. d.depthIncr()
  24867. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  24868. var mk uint16
  24869. var mv interface{}
  24870. hasLen := containerLen > 0
  24871. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24872. if esep {
  24873. dd.ReadMapElemKey()
  24874. }
  24875. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24876. if esep {
  24877. dd.ReadMapElemValue()
  24878. }
  24879. if dd.TryDecodeAsNil() {
  24880. if v == nil {
  24881. } else if d.h.DeleteOnNilMapValue {
  24882. delete(v, mk)
  24883. } else {
  24884. v[mk] = nil
  24885. }
  24886. continue
  24887. }
  24888. if mapGet {
  24889. mv = v[mk]
  24890. } else {
  24891. mv = nil
  24892. }
  24893. d.decode(&mv)
  24894. if v != nil {
  24895. v[mk] = mv
  24896. }
  24897. }
  24898. dd.ReadMapEnd()
  24899. d.depthDecr()
  24900. return v, changed
  24901. }
  24902. func (d *Decoder) fastpathDecMapUint16StringR(f *codecFnInfo, rv reflect.Value) {
  24903. if rv.Kind() == reflect.Ptr {
  24904. vp := rv2i(rv).(*map[uint16]string)
  24905. v, changed := fastpathTV.DecMapUint16StringV(*vp, true, d)
  24906. if changed {
  24907. *vp = v
  24908. }
  24909. } else {
  24910. fastpathTV.DecMapUint16StringV(rv2i(rv).(map[uint16]string), false, d)
  24911. }
  24912. }
  24913. func (f fastpathT) DecMapUint16StringX(vp *map[uint16]string, d *Decoder) {
  24914. v, changed := f.DecMapUint16StringV(*vp, true, d)
  24915. if changed {
  24916. *vp = v
  24917. }
  24918. }
  24919. func (_ fastpathT) DecMapUint16StringV(v map[uint16]string, canChange bool,
  24920. d *Decoder) (_ map[uint16]string, changed bool) {
  24921. dd, esep := d.d, d.hh.hasElemSeparators()
  24922. containerLen := dd.ReadMapStart()
  24923. if canChange && v == nil {
  24924. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  24925. v = make(map[uint16]string, xlen)
  24926. changed = true
  24927. }
  24928. if containerLen == 0 {
  24929. dd.ReadMapEnd()
  24930. return v, changed
  24931. }
  24932. d.depthIncr()
  24933. var mk uint16
  24934. var mv string
  24935. hasLen := containerLen > 0
  24936. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24937. if esep {
  24938. dd.ReadMapElemKey()
  24939. }
  24940. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  24941. if esep {
  24942. dd.ReadMapElemValue()
  24943. }
  24944. if dd.TryDecodeAsNil() {
  24945. if v == nil {
  24946. } else if d.h.DeleteOnNilMapValue {
  24947. delete(v, mk)
  24948. } else {
  24949. v[mk] = ""
  24950. }
  24951. continue
  24952. }
  24953. mv = dd.DecodeString()
  24954. if v != nil {
  24955. v[mk] = mv
  24956. }
  24957. }
  24958. dd.ReadMapEnd()
  24959. d.depthDecr()
  24960. return v, changed
  24961. }
  24962. func (d *Decoder) fastpathDecMapUint16UintR(f *codecFnInfo, rv reflect.Value) {
  24963. if rv.Kind() == reflect.Ptr {
  24964. vp := rv2i(rv).(*map[uint16]uint)
  24965. v, changed := fastpathTV.DecMapUint16UintV(*vp, true, d)
  24966. if changed {
  24967. *vp = v
  24968. }
  24969. } else {
  24970. fastpathTV.DecMapUint16UintV(rv2i(rv).(map[uint16]uint), false, d)
  24971. }
  24972. }
  24973. func (f fastpathT) DecMapUint16UintX(vp *map[uint16]uint, d *Decoder) {
  24974. v, changed := f.DecMapUint16UintV(*vp, true, d)
  24975. if changed {
  24976. *vp = v
  24977. }
  24978. }
  24979. func (_ fastpathT) DecMapUint16UintV(v map[uint16]uint, canChange bool,
  24980. d *Decoder) (_ map[uint16]uint, changed bool) {
  24981. dd, esep := d.d, d.hh.hasElemSeparators()
  24982. containerLen := dd.ReadMapStart()
  24983. if canChange && v == nil {
  24984. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  24985. v = make(map[uint16]uint, xlen)
  24986. changed = true
  24987. }
  24988. if containerLen == 0 {
  24989. dd.ReadMapEnd()
  24990. return v, changed
  24991. }
  24992. d.depthIncr()
  24993. var mk uint16
  24994. var mv uint
  24995. hasLen := containerLen > 0
  24996. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  24997. if esep {
  24998. dd.ReadMapElemKey()
  24999. }
  25000. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25001. if esep {
  25002. dd.ReadMapElemValue()
  25003. }
  25004. if dd.TryDecodeAsNil() {
  25005. if v == nil {
  25006. } else if d.h.DeleteOnNilMapValue {
  25007. delete(v, mk)
  25008. } else {
  25009. v[mk] = 0
  25010. }
  25011. continue
  25012. }
  25013. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25014. if v != nil {
  25015. v[mk] = mv
  25016. }
  25017. }
  25018. dd.ReadMapEnd()
  25019. d.depthDecr()
  25020. return v, changed
  25021. }
  25022. func (d *Decoder) fastpathDecMapUint16Uint8R(f *codecFnInfo, rv reflect.Value) {
  25023. if rv.Kind() == reflect.Ptr {
  25024. vp := rv2i(rv).(*map[uint16]uint8)
  25025. v, changed := fastpathTV.DecMapUint16Uint8V(*vp, true, d)
  25026. if changed {
  25027. *vp = v
  25028. }
  25029. } else {
  25030. fastpathTV.DecMapUint16Uint8V(rv2i(rv).(map[uint16]uint8), false, d)
  25031. }
  25032. }
  25033. func (f fastpathT) DecMapUint16Uint8X(vp *map[uint16]uint8, d *Decoder) {
  25034. v, changed := f.DecMapUint16Uint8V(*vp, true, d)
  25035. if changed {
  25036. *vp = v
  25037. }
  25038. }
  25039. func (_ fastpathT) DecMapUint16Uint8V(v map[uint16]uint8, canChange bool,
  25040. d *Decoder) (_ map[uint16]uint8, changed bool) {
  25041. dd, esep := d.d, d.hh.hasElemSeparators()
  25042. containerLen := dd.ReadMapStart()
  25043. if canChange && v == nil {
  25044. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25045. v = make(map[uint16]uint8, xlen)
  25046. changed = true
  25047. }
  25048. if containerLen == 0 {
  25049. dd.ReadMapEnd()
  25050. return v, changed
  25051. }
  25052. d.depthIncr()
  25053. var mk uint16
  25054. var mv uint8
  25055. hasLen := containerLen > 0
  25056. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25057. if esep {
  25058. dd.ReadMapElemKey()
  25059. }
  25060. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25061. if esep {
  25062. dd.ReadMapElemValue()
  25063. }
  25064. if dd.TryDecodeAsNil() {
  25065. if v == nil {
  25066. } else if d.h.DeleteOnNilMapValue {
  25067. delete(v, mk)
  25068. } else {
  25069. v[mk] = 0
  25070. }
  25071. continue
  25072. }
  25073. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  25074. if v != nil {
  25075. v[mk] = mv
  25076. }
  25077. }
  25078. dd.ReadMapEnd()
  25079. d.depthDecr()
  25080. return v, changed
  25081. }
  25082. func (d *Decoder) fastpathDecMapUint16Uint16R(f *codecFnInfo, rv reflect.Value) {
  25083. if rv.Kind() == reflect.Ptr {
  25084. vp := rv2i(rv).(*map[uint16]uint16)
  25085. v, changed := fastpathTV.DecMapUint16Uint16V(*vp, true, d)
  25086. if changed {
  25087. *vp = v
  25088. }
  25089. } else {
  25090. fastpathTV.DecMapUint16Uint16V(rv2i(rv).(map[uint16]uint16), false, d)
  25091. }
  25092. }
  25093. func (f fastpathT) DecMapUint16Uint16X(vp *map[uint16]uint16, d *Decoder) {
  25094. v, changed := f.DecMapUint16Uint16V(*vp, true, d)
  25095. if changed {
  25096. *vp = v
  25097. }
  25098. }
  25099. func (_ fastpathT) DecMapUint16Uint16V(v map[uint16]uint16, canChange bool,
  25100. d *Decoder) (_ map[uint16]uint16, changed bool) {
  25101. dd, esep := d.d, d.hh.hasElemSeparators()
  25102. containerLen := dd.ReadMapStart()
  25103. if canChange && v == nil {
  25104. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25105. v = make(map[uint16]uint16, xlen)
  25106. changed = true
  25107. }
  25108. if containerLen == 0 {
  25109. dd.ReadMapEnd()
  25110. return v, changed
  25111. }
  25112. d.depthIncr()
  25113. var mk uint16
  25114. var mv uint16
  25115. hasLen := containerLen > 0
  25116. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25117. if esep {
  25118. dd.ReadMapElemKey()
  25119. }
  25120. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25121. if esep {
  25122. dd.ReadMapElemValue()
  25123. }
  25124. if dd.TryDecodeAsNil() {
  25125. if v == nil {
  25126. } else if d.h.DeleteOnNilMapValue {
  25127. delete(v, mk)
  25128. } else {
  25129. v[mk] = 0
  25130. }
  25131. continue
  25132. }
  25133. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25134. if v != nil {
  25135. v[mk] = mv
  25136. }
  25137. }
  25138. dd.ReadMapEnd()
  25139. d.depthDecr()
  25140. return v, changed
  25141. }
  25142. func (d *Decoder) fastpathDecMapUint16Uint32R(f *codecFnInfo, rv reflect.Value) {
  25143. if rv.Kind() == reflect.Ptr {
  25144. vp := rv2i(rv).(*map[uint16]uint32)
  25145. v, changed := fastpathTV.DecMapUint16Uint32V(*vp, true, d)
  25146. if changed {
  25147. *vp = v
  25148. }
  25149. } else {
  25150. fastpathTV.DecMapUint16Uint32V(rv2i(rv).(map[uint16]uint32), false, d)
  25151. }
  25152. }
  25153. func (f fastpathT) DecMapUint16Uint32X(vp *map[uint16]uint32, d *Decoder) {
  25154. v, changed := f.DecMapUint16Uint32V(*vp, true, d)
  25155. if changed {
  25156. *vp = v
  25157. }
  25158. }
  25159. func (_ fastpathT) DecMapUint16Uint32V(v map[uint16]uint32, canChange bool,
  25160. d *Decoder) (_ map[uint16]uint32, changed bool) {
  25161. dd, esep := d.d, d.hh.hasElemSeparators()
  25162. containerLen := dd.ReadMapStart()
  25163. if canChange && v == nil {
  25164. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25165. v = make(map[uint16]uint32, xlen)
  25166. changed = true
  25167. }
  25168. if containerLen == 0 {
  25169. dd.ReadMapEnd()
  25170. return v, changed
  25171. }
  25172. d.depthIncr()
  25173. var mk uint16
  25174. var mv uint32
  25175. hasLen := containerLen > 0
  25176. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25177. if esep {
  25178. dd.ReadMapElemKey()
  25179. }
  25180. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25181. if esep {
  25182. dd.ReadMapElemValue()
  25183. }
  25184. if dd.TryDecodeAsNil() {
  25185. if v == nil {
  25186. } else if d.h.DeleteOnNilMapValue {
  25187. delete(v, mk)
  25188. } else {
  25189. v[mk] = 0
  25190. }
  25191. continue
  25192. }
  25193. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25194. if v != nil {
  25195. v[mk] = mv
  25196. }
  25197. }
  25198. dd.ReadMapEnd()
  25199. d.depthDecr()
  25200. return v, changed
  25201. }
  25202. func (d *Decoder) fastpathDecMapUint16Uint64R(f *codecFnInfo, rv reflect.Value) {
  25203. if rv.Kind() == reflect.Ptr {
  25204. vp := rv2i(rv).(*map[uint16]uint64)
  25205. v, changed := fastpathTV.DecMapUint16Uint64V(*vp, true, d)
  25206. if changed {
  25207. *vp = v
  25208. }
  25209. } else {
  25210. fastpathTV.DecMapUint16Uint64V(rv2i(rv).(map[uint16]uint64), false, d)
  25211. }
  25212. }
  25213. func (f fastpathT) DecMapUint16Uint64X(vp *map[uint16]uint64, d *Decoder) {
  25214. v, changed := f.DecMapUint16Uint64V(*vp, true, d)
  25215. if changed {
  25216. *vp = v
  25217. }
  25218. }
  25219. func (_ fastpathT) DecMapUint16Uint64V(v map[uint16]uint64, canChange bool,
  25220. d *Decoder) (_ map[uint16]uint64, changed bool) {
  25221. dd, esep := d.d, d.hh.hasElemSeparators()
  25222. containerLen := dd.ReadMapStart()
  25223. if canChange && v == nil {
  25224. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25225. v = make(map[uint16]uint64, xlen)
  25226. changed = true
  25227. }
  25228. if containerLen == 0 {
  25229. dd.ReadMapEnd()
  25230. return v, changed
  25231. }
  25232. d.depthIncr()
  25233. var mk uint16
  25234. var mv uint64
  25235. hasLen := containerLen > 0
  25236. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25237. if esep {
  25238. dd.ReadMapElemKey()
  25239. }
  25240. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25241. if esep {
  25242. dd.ReadMapElemValue()
  25243. }
  25244. if dd.TryDecodeAsNil() {
  25245. if v == nil {
  25246. } else if d.h.DeleteOnNilMapValue {
  25247. delete(v, mk)
  25248. } else {
  25249. v[mk] = 0
  25250. }
  25251. continue
  25252. }
  25253. mv = dd.DecodeUint64()
  25254. if v != nil {
  25255. v[mk] = mv
  25256. }
  25257. }
  25258. dd.ReadMapEnd()
  25259. d.depthDecr()
  25260. return v, changed
  25261. }
  25262. func (d *Decoder) fastpathDecMapUint16UintptrR(f *codecFnInfo, rv reflect.Value) {
  25263. if rv.Kind() == reflect.Ptr {
  25264. vp := rv2i(rv).(*map[uint16]uintptr)
  25265. v, changed := fastpathTV.DecMapUint16UintptrV(*vp, true, d)
  25266. if changed {
  25267. *vp = v
  25268. }
  25269. } else {
  25270. fastpathTV.DecMapUint16UintptrV(rv2i(rv).(map[uint16]uintptr), false, d)
  25271. }
  25272. }
  25273. func (f fastpathT) DecMapUint16UintptrX(vp *map[uint16]uintptr, d *Decoder) {
  25274. v, changed := f.DecMapUint16UintptrV(*vp, true, d)
  25275. if changed {
  25276. *vp = v
  25277. }
  25278. }
  25279. func (_ fastpathT) DecMapUint16UintptrV(v map[uint16]uintptr, canChange bool,
  25280. d *Decoder) (_ map[uint16]uintptr, changed bool) {
  25281. dd, esep := d.d, d.hh.hasElemSeparators()
  25282. containerLen := dd.ReadMapStart()
  25283. if canChange && v == nil {
  25284. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25285. v = make(map[uint16]uintptr, xlen)
  25286. changed = true
  25287. }
  25288. if containerLen == 0 {
  25289. dd.ReadMapEnd()
  25290. return v, changed
  25291. }
  25292. d.depthIncr()
  25293. var mk uint16
  25294. var mv uintptr
  25295. hasLen := containerLen > 0
  25296. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25297. if esep {
  25298. dd.ReadMapElemKey()
  25299. }
  25300. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25301. if esep {
  25302. dd.ReadMapElemValue()
  25303. }
  25304. if dd.TryDecodeAsNil() {
  25305. if v == nil {
  25306. } else if d.h.DeleteOnNilMapValue {
  25307. delete(v, mk)
  25308. } else {
  25309. v[mk] = 0
  25310. }
  25311. continue
  25312. }
  25313. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25314. if v != nil {
  25315. v[mk] = mv
  25316. }
  25317. }
  25318. dd.ReadMapEnd()
  25319. d.depthDecr()
  25320. return v, changed
  25321. }
  25322. func (d *Decoder) fastpathDecMapUint16IntR(f *codecFnInfo, rv reflect.Value) {
  25323. if rv.Kind() == reflect.Ptr {
  25324. vp := rv2i(rv).(*map[uint16]int)
  25325. v, changed := fastpathTV.DecMapUint16IntV(*vp, true, d)
  25326. if changed {
  25327. *vp = v
  25328. }
  25329. } else {
  25330. fastpathTV.DecMapUint16IntV(rv2i(rv).(map[uint16]int), false, d)
  25331. }
  25332. }
  25333. func (f fastpathT) DecMapUint16IntX(vp *map[uint16]int, d *Decoder) {
  25334. v, changed := f.DecMapUint16IntV(*vp, true, d)
  25335. if changed {
  25336. *vp = v
  25337. }
  25338. }
  25339. func (_ fastpathT) DecMapUint16IntV(v map[uint16]int, canChange bool,
  25340. d *Decoder) (_ map[uint16]int, changed bool) {
  25341. dd, esep := d.d, d.hh.hasElemSeparators()
  25342. containerLen := dd.ReadMapStart()
  25343. if canChange && v == nil {
  25344. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25345. v = make(map[uint16]int, xlen)
  25346. changed = true
  25347. }
  25348. if containerLen == 0 {
  25349. dd.ReadMapEnd()
  25350. return v, changed
  25351. }
  25352. d.depthIncr()
  25353. var mk uint16
  25354. var mv int
  25355. hasLen := containerLen > 0
  25356. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25357. if esep {
  25358. dd.ReadMapElemKey()
  25359. }
  25360. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25361. if esep {
  25362. dd.ReadMapElemValue()
  25363. }
  25364. if dd.TryDecodeAsNil() {
  25365. if v == nil {
  25366. } else if d.h.DeleteOnNilMapValue {
  25367. delete(v, mk)
  25368. } else {
  25369. v[mk] = 0
  25370. }
  25371. continue
  25372. }
  25373. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  25374. if v != nil {
  25375. v[mk] = mv
  25376. }
  25377. }
  25378. dd.ReadMapEnd()
  25379. d.depthDecr()
  25380. return v, changed
  25381. }
  25382. func (d *Decoder) fastpathDecMapUint16Int8R(f *codecFnInfo, rv reflect.Value) {
  25383. if rv.Kind() == reflect.Ptr {
  25384. vp := rv2i(rv).(*map[uint16]int8)
  25385. v, changed := fastpathTV.DecMapUint16Int8V(*vp, true, d)
  25386. if changed {
  25387. *vp = v
  25388. }
  25389. } else {
  25390. fastpathTV.DecMapUint16Int8V(rv2i(rv).(map[uint16]int8), false, d)
  25391. }
  25392. }
  25393. func (f fastpathT) DecMapUint16Int8X(vp *map[uint16]int8, d *Decoder) {
  25394. v, changed := f.DecMapUint16Int8V(*vp, true, d)
  25395. if changed {
  25396. *vp = v
  25397. }
  25398. }
  25399. func (_ fastpathT) DecMapUint16Int8V(v map[uint16]int8, canChange bool,
  25400. d *Decoder) (_ map[uint16]int8, changed bool) {
  25401. dd, esep := d.d, d.hh.hasElemSeparators()
  25402. containerLen := dd.ReadMapStart()
  25403. if canChange && v == nil {
  25404. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25405. v = make(map[uint16]int8, xlen)
  25406. changed = true
  25407. }
  25408. if containerLen == 0 {
  25409. dd.ReadMapEnd()
  25410. return v, changed
  25411. }
  25412. d.depthIncr()
  25413. var mk uint16
  25414. var mv int8
  25415. hasLen := containerLen > 0
  25416. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25417. if esep {
  25418. dd.ReadMapElemKey()
  25419. }
  25420. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25421. if esep {
  25422. dd.ReadMapElemValue()
  25423. }
  25424. if dd.TryDecodeAsNil() {
  25425. if v == nil {
  25426. } else if d.h.DeleteOnNilMapValue {
  25427. delete(v, mk)
  25428. } else {
  25429. v[mk] = 0
  25430. }
  25431. continue
  25432. }
  25433. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  25434. if v != nil {
  25435. v[mk] = mv
  25436. }
  25437. }
  25438. dd.ReadMapEnd()
  25439. d.depthDecr()
  25440. return v, changed
  25441. }
  25442. func (d *Decoder) fastpathDecMapUint16Int16R(f *codecFnInfo, rv reflect.Value) {
  25443. if rv.Kind() == reflect.Ptr {
  25444. vp := rv2i(rv).(*map[uint16]int16)
  25445. v, changed := fastpathTV.DecMapUint16Int16V(*vp, true, d)
  25446. if changed {
  25447. *vp = v
  25448. }
  25449. } else {
  25450. fastpathTV.DecMapUint16Int16V(rv2i(rv).(map[uint16]int16), false, d)
  25451. }
  25452. }
  25453. func (f fastpathT) DecMapUint16Int16X(vp *map[uint16]int16, d *Decoder) {
  25454. v, changed := f.DecMapUint16Int16V(*vp, true, d)
  25455. if changed {
  25456. *vp = v
  25457. }
  25458. }
  25459. func (_ fastpathT) DecMapUint16Int16V(v map[uint16]int16, canChange bool,
  25460. d *Decoder) (_ map[uint16]int16, changed bool) {
  25461. dd, esep := d.d, d.hh.hasElemSeparators()
  25462. containerLen := dd.ReadMapStart()
  25463. if canChange && v == nil {
  25464. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  25465. v = make(map[uint16]int16, xlen)
  25466. changed = true
  25467. }
  25468. if containerLen == 0 {
  25469. dd.ReadMapEnd()
  25470. return v, changed
  25471. }
  25472. d.depthIncr()
  25473. var mk uint16
  25474. var mv int16
  25475. hasLen := containerLen > 0
  25476. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25477. if esep {
  25478. dd.ReadMapElemKey()
  25479. }
  25480. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25481. if esep {
  25482. dd.ReadMapElemValue()
  25483. }
  25484. if dd.TryDecodeAsNil() {
  25485. if v == nil {
  25486. } else if d.h.DeleteOnNilMapValue {
  25487. delete(v, mk)
  25488. } else {
  25489. v[mk] = 0
  25490. }
  25491. continue
  25492. }
  25493. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  25494. if v != nil {
  25495. v[mk] = mv
  25496. }
  25497. }
  25498. dd.ReadMapEnd()
  25499. d.depthDecr()
  25500. return v, changed
  25501. }
  25502. func (d *Decoder) fastpathDecMapUint16Int32R(f *codecFnInfo, rv reflect.Value) {
  25503. if rv.Kind() == reflect.Ptr {
  25504. vp := rv2i(rv).(*map[uint16]int32)
  25505. v, changed := fastpathTV.DecMapUint16Int32V(*vp, true, d)
  25506. if changed {
  25507. *vp = v
  25508. }
  25509. } else {
  25510. fastpathTV.DecMapUint16Int32V(rv2i(rv).(map[uint16]int32), false, d)
  25511. }
  25512. }
  25513. func (f fastpathT) DecMapUint16Int32X(vp *map[uint16]int32, d *Decoder) {
  25514. v, changed := f.DecMapUint16Int32V(*vp, true, d)
  25515. if changed {
  25516. *vp = v
  25517. }
  25518. }
  25519. func (_ fastpathT) DecMapUint16Int32V(v map[uint16]int32, canChange bool,
  25520. d *Decoder) (_ map[uint16]int32, changed bool) {
  25521. dd, esep := d.d, d.hh.hasElemSeparators()
  25522. containerLen := dd.ReadMapStart()
  25523. if canChange && v == nil {
  25524. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25525. v = make(map[uint16]int32, xlen)
  25526. changed = true
  25527. }
  25528. if containerLen == 0 {
  25529. dd.ReadMapEnd()
  25530. return v, changed
  25531. }
  25532. d.depthIncr()
  25533. var mk uint16
  25534. var mv int32
  25535. hasLen := containerLen > 0
  25536. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25537. if esep {
  25538. dd.ReadMapElemKey()
  25539. }
  25540. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25541. if esep {
  25542. dd.ReadMapElemValue()
  25543. }
  25544. if dd.TryDecodeAsNil() {
  25545. if v == nil {
  25546. } else if d.h.DeleteOnNilMapValue {
  25547. delete(v, mk)
  25548. } else {
  25549. v[mk] = 0
  25550. }
  25551. continue
  25552. }
  25553. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  25554. if v != nil {
  25555. v[mk] = mv
  25556. }
  25557. }
  25558. dd.ReadMapEnd()
  25559. d.depthDecr()
  25560. return v, changed
  25561. }
  25562. func (d *Decoder) fastpathDecMapUint16Int64R(f *codecFnInfo, rv reflect.Value) {
  25563. if rv.Kind() == reflect.Ptr {
  25564. vp := rv2i(rv).(*map[uint16]int64)
  25565. v, changed := fastpathTV.DecMapUint16Int64V(*vp, true, d)
  25566. if changed {
  25567. *vp = v
  25568. }
  25569. } else {
  25570. fastpathTV.DecMapUint16Int64V(rv2i(rv).(map[uint16]int64), false, d)
  25571. }
  25572. }
  25573. func (f fastpathT) DecMapUint16Int64X(vp *map[uint16]int64, d *Decoder) {
  25574. v, changed := f.DecMapUint16Int64V(*vp, true, d)
  25575. if changed {
  25576. *vp = v
  25577. }
  25578. }
  25579. func (_ fastpathT) DecMapUint16Int64V(v map[uint16]int64, canChange bool,
  25580. d *Decoder) (_ map[uint16]int64, changed bool) {
  25581. dd, esep := d.d, d.hh.hasElemSeparators()
  25582. containerLen := dd.ReadMapStart()
  25583. if canChange && v == nil {
  25584. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25585. v = make(map[uint16]int64, xlen)
  25586. changed = true
  25587. }
  25588. if containerLen == 0 {
  25589. dd.ReadMapEnd()
  25590. return v, changed
  25591. }
  25592. d.depthIncr()
  25593. var mk uint16
  25594. var mv int64
  25595. hasLen := containerLen > 0
  25596. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25597. if esep {
  25598. dd.ReadMapElemKey()
  25599. }
  25600. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25601. if esep {
  25602. dd.ReadMapElemValue()
  25603. }
  25604. if dd.TryDecodeAsNil() {
  25605. if v == nil {
  25606. } else if d.h.DeleteOnNilMapValue {
  25607. delete(v, mk)
  25608. } else {
  25609. v[mk] = 0
  25610. }
  25611. continue
  25612. }
  25613. mv = dd.DecodeInt64()
  25614. if v != nil {
  25615. v[mk] = mv
  25616. }
  25617. }
  25618. dd.ReadMapEnd()
  25619. d.depthDecr()
  25620. return v, changed
  25621. }
  25622. func (d *Decoder) fastpathDecMapUint16Float32R(f *codecFnInfo, rv reflect.Value) {
  25623. if rv.Kind() == reflect.Ptr {
  25624. vp := rv2i(rv).(*map[uint16]float32)
  25625. v, changed := fastpathTV.DecMapUint16Float32V(*vp, true, d)
  25626. if changed {
  25627. *vp = v
  25628. }
  25629. } else {
  25630. fastpathTV.DecMapUint16Float32V(rv2i(rv).(map[uint16]float32), false, d)
  25631. }
  25632. }
  25633. func (f fastpathT) DecMapUint16Float32X(vp *map[uint16]float32, d *Decoder) {
  25634. v, changed := f.DecMapUint16Float32V(*vp, true, d)
  25635. if changed {
  25636. *vp = v
  25637. }
  25638. }
  25639. func (_ fastpathT) DecMapUint16Float32V(v map[uint16]float32, canChange bool,
  25640. d *Decoder) (_ map[uint16]float32, changed bool) {
  25641. dd, esep := d.d, d.hh.hasElemSeparators()
  25642. containerLen := dd.ReadMapStart()
  25643. if canChange && v == nil {
  25644. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  25645. v = make(map[uint16]float32, xlen)
  25646. changed = true
  25647. }
  25648. if containerLen == 0 {
  25649. dd.ReadMapEnd()
  25650. return v, changed
  25651. }
  25652. d.depthIncr()
  25653. var mk uint16
  25654. var mv float32
  25655. hasLen := containerLen > 0
  25656. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25657. if esep {
  25658. dd.ReadMapElemKey()
  25659. }
  25660. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25661. if esep {
  25662. dd.ReadMapElemValue()
  25663. }
  25664. if dd.TryDecodeAsNil() {
  25665. if v == nil {
  25666. } else if d.h.DeleteOnNilMapValue {
  25667. delete(v, mk)
  25668. } else {
  25669. v[mk] = 0
  25670. }
  25671. continue
  25672. }
  25673. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  25674. if v != nil {
  25675. v[mk] = mv
  25676. }
  25677. }
  25678. dd.ReadMapEnd()
  25679. d.depthDecr()
  25680. return v, changed
  25681. }
  25682. func (d *Decoder) fastpathDecMapUint16Float64R(f *codecFnInfo, rv reflect.Value) {
  25683. if rv.Kind() == reflect.Ptr {
  25684. vp := rv2i(rv).(*map[uint16]float64)
  25685. v, changed := fastpathTV.DecMapUint16Float64V(*vp, true, d)
  25686. if changed {
  25687. *vp = v
  25688. }
  25689. } else {
  25690. fastpathTV.DecMapUint16Float64V(rv2i(rv).(map[uint16]float64), false, d)
  25691. }
  25692. }
  25693. func (f fastpathT) DecMapUint16Float64X(vp *map[uint16]float64, d *Decoder) {
  25694. v, changed := f.DecMapUint16Float64V(*vp, true, d)
  25695. if changed {
  25696. *vp = v
  25697. }
  25698. }
  25699. func (_ fastpathT) DecMapUint16Float64V(v map[uint16]float64, canChange bool,
  25700. d *Decoder) (_ map[uint16]float64, changed bool) {
  25701. dd, esep := d.d, d.hh.hasElemSeparators()
  25702. containerLen := dd.ReadMapStart()
  25703. if canChange && v == nil {
  25704. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  25705. v = make(map[uint16]float64, xlen)
  25706. changed = true
  25707. }
  25708. if containerLen == 0 {
  25709. dd.ReadMapEnd()
  25710. return v, changed
  25711. }
  25712. d.depthIncr()
  25713. var mk uint16
  25714. var mv float64
  25715. hasLen := containerLen > 0
  25716. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25717. if esep {
  25718. dd.ReadMapElemKey()
  25719. }
  25720. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25721. if esep {
  25722. dd.ReadMapElemValue()
  25723. }
  25724. if dd.TryDecodeAsNil() {
  25725. if v == nil {
  25726. } else if d.h.DeleteOnNilMapValue {
  25727. delete(v, mk)
  25728. } else {
  25729. v[mk] = 0
  25730. }
  25731. continue
  25732. }
  25733. mv = dd.DecodeFloat64()
  25734. if v != nil {
  25735. v[mk] = mv
  25736. }
  25737. }
  25738. dd.ReadMapEnd()
  25739. d.depthDecr()
  25740. return v, changed
  25741. }
  25742. func (d *Decoder) fastpathDecMapUint16BoolR(f *codecFnInfo, rv reflect.Value) {
  25743. if rv.Kind() == reflect.Ptr {
  25744. vp := rv2i(rv).(*map[uint16]bool)
  25745. v, changed := fastpathTV.DecMapUint16BoolV(*vp, true, d)
  25746. if changed {
  25747. *vp = v
  25748. }
  25749. } else {
  25750. fastpathTV.DecMapUint16BoolV(rv2i(rv).(map[uint16]bool), false, d)
  25751. }
  25752. }
  25753. func (f fastpathT) DecMapUint16BoolX(vp *map[uint16]bool, d *Decoder) {
  25754. v, changed := f.DecMapUint16BoolV(*vp, true, d)
  25755. if changed {
  25756. *vp = v
  25757. }
  25758. }
  25759. func (_ fastpathT) DecMapUint16BoolV(v map[uint16]bool, canChange bool,
  25760. d *Decoder) (_ map[uint16]bool, changed bool) {
  25761. dd, esep := d.d, d.hh.hasElemSeparators()
  25762. containerLen := dd.ReadMapStart()
  25763. if canChange && v == nil {
  25764. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  25765. v = make(map[uint16]bool, xlen)
  25766. changed = true
  25767. }
  25768. if containerLen == 0 {
  25769. dd.ReadMapEnd()
  25770. return v, changed
  25771. }
  25772. d.depthIncr()
  25773. var mk uint16
  25774. var mv bool
  25775. hasLen := containerLen > 0
  25776. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25777. if esep {
  25778. dd.ReadMapElemKey()
  25779. }
  25780. mk = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  25781. if esep {
  25782. dd.ReadMapElemValue()
  25783. }
  25784. if dd.TryDecodeAsNil() {
  25785. if v == nil {
  25786. } else if d.h.DeleteOnNilMapValue {
  25787. delete(v, mk)
  25788. } else {
  25789. v[mk] = false
  25790. }
  25791. continue
  25792. }
  25793. mv = dd.DecodeBool()
  25794. if v != nil {
  25795. v[mk] = mv
  25796. }
  25797. }
  25798. dd.ReadMapEnd()
  25799. d.depthDecr()
  25800. return v, changed
  25801. }
  25802. func (d *Decoder) fastpathDecMapUint32IntfR(f *codecFnInfo, rv reflect.Value) {
  25803. if rv.Kind() == reflect.Ptr {
  25804. vp := rv2i(rv).(*map[uint32]interface{})
  25805. v, changed := fastpathTV.DecMapUint32IntfV(*vp, true, d)
  25806. if changed {
  25807. *vp = v
  25808. }
  25809. } else {
  25810. fastpathTV.DecMapUint32IntfV(rv2i(rv).(map[uint32]interface{}), false, d)
  25811. }
  25812. }
  25813. func (f fastpathT) DecMapUint32IntfX(vp *map[uint32]interface{}, d *Decoder) {
  25814. v, changed := f.DecMapUint32IntfV(*vp, true, d)
  25815. if changed {
  25816. *vp = v
  25817. }
  25818. }
  25819. func (_ fastpathT) DecMapUint32IntfV(v map[uint32]interface{}, canChange bool,
  25820. d *Decoder) (_ map[uint32]interface{}, changed bool) {
  25821. dd, esep := d.d, d.hh.hasElemSeparators()
  25822. containerLen := dd.ReadMapStart()
  25823. if canChange && v == nil {
  25824. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25825. v = make(map[uint32]interface{}, xlen)
  25826. changed = true
  25827. }
  25828. if containerLen == 0 {
  25829. dd.ReadMapEnd()
  25830. return v, changed
  25831. }
  25832. d.depthIncr()
  25833. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  25834. var mk uint32
  25835. var mv interface{}
  25836. hasLen := containerLen > 0
  25837. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25838. if esep {
  25839. dd.ReadMapElemKey()
  25840. }
  25841. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25842. if esep {
  25843. dd.ReadMapElemValue()
  25844. }
  25845. if dd.TryDecodeAsNil() {
  25846. if v == nil {
  25847. } else if d.h.DeleteOnNilMapValue {
  25848. delete(v, mk)
  25849. } else {
  25850. v[mk] = nil
  25851. }
  25852. continue
  25853. }
  25854. if mapGet {
  25855. mv = v[mk]
  25856. } else {
  25857. mv = nil
  25858. }
  25859. d.decode(&mv)
  25860. if v != nil {
  25861. v[mk] = mv
  25862. }
  25863. }
  25864. dd.ReadMapEnd()
  25865. d.depthDecr()
  25866. return v, changed
  25867. }
  25868. func (d *Decoder) fastpathDecMapUint32StringR(f *codecFnInfo, rv reflect.Value) {
  25869. if rv.Kind() == reflect.Ptr {
  25870. vp := rv2i(rv).(*map[uint32]string)
  25871. v, changed := fastpathTV.DecMapUint32StringV(*vp, true, d)
  25872. if changed {
  25873. *vp = v
  25874. }
  25875. } else {
  25876. fastpathTV.DecMapUint32StringV(rv2i(rv).(map[uint32]string), false, d)
  25877. }
  25878. }
  25879. func (f fastpathT) DecMapUint32StringX(vp *map[uint32]string, d *Decoder) {
  25880. v, changed := f.DecMapUint32StringV(*vp, true, d)
  25881. if changed {
  25882. *vp = v
  25883. }
  25884. }
  25885. func (_ fastpathT) DecMapUint32StringV(v map[uint32]string, canChange bool,
  25886. d *Decoder) (_ map[uint32]string, changed bool) {
  25887. dd, esep := d.d, d.hh.hasElemSeparators()
  25888. containerLen := dd.ReadMapStart()
  25889. if canChange && v == nil {
  25890. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  25891. v = make(map[uint32]string, xlen)
  25892. changed = true
  25893. }
  25894. if containerLen == 0 {
  25895. dd.ReadMapEnd()
  25896. return v, changed
  25897. }
  25898. d.depthIncr()
  25899. var mk uint32
  25900. var mv string
  25901. hasLen := containerLen > 0
  25902. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25903. if esep {
  25904. dd.ReadMapElemKey()
  25905. }
  25906. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25907. if esep {
  25908. dd.ReadMapElemValue()
  25909. }
  25910. if dd.TryDecodeAsNil() {
  25911. if v == nil {
  25912. } else if d.h.DeleteOnNilMapValue {
  25913. delete(v, mk)
  25914. } else {
  25915. v[mk] = ""
  25916. }
  25917. continue
  25918. }
  25919. mv = dd.DecodeString()
  25920. if v != nil {
  25921. v[mk] = mv
  25922. }
  25923. }
  25924. dd.ReadMapEnd()
  25925. d.depthDecr()
  25926. return v, changed
  25927. }
  25928. func (d *Decoder) fastpathDecMapUint32UintR(f *codecFnInfo, rv reflect.Value) {
  25929. if rv.Kind() == reflect.Ptr {
  25930. vp := rv2i(rv).(*map[uint32]uint)
  25931. v, changed := fastpathTV.DecMapUint32UintV(*vp, true, d)
  25932. if changed {
  25933. *vp = v
  25934. }
  25935. } else {
  25936. fastpathTV.DecMapUint32UintV(rv2i(rv).(map[uint32]uint), false, d)
  25937. }
  25938. }
  25939. func (f fastpathT) DecMapUint32UintX(vp *map[uint32]uint, d *Decoder) {
  25940. v, changed := f.DecMapUint32UintV(*vp, true, d)
  25941. if changed {
  25942. *vp = v
  25943. }
  25944. }
  25945. func (_ fastpathT) DecMapUint32UintV(v map[uint32]uint, canChange bool,
  25946. d *Decoder) (_ map[uint32]uint, changed bool) {
  25947. dd, esep := d.d, d.hh.hasElemSeparators()
  25948. containerLen := dd.ReadMapStart()
  25949. if canChange && v == nil {
  25950. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  25951. v = make(map[uint32]uint, xlen)
  25952. changed = true
  25953. }
  25954. if containerLen == 0 {
  25955. dd.ReadMapEnd()
  25956. return v, changed
  25957. }
  25958. d.depthIncr()
  25959. var mk uint32
  25960. var mv uint
  25961. hasLen := containerLen > 0
  25962. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  25963. if esep {
  25964. dd.ReadMapElemKey()
  25965. }
  25966. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  25967. if esep {
  25968. dd.ReadMapElemValue()
  25969. }
  25970. if dd.TryDecodeAsNil() {
  25971. if v == nil {
  25972. } else if d.h.DeleteOnNilMapValue {
  25973. delete(v, mk)
  25974. } else {
  25975. v[mk] = 0
  25976. }
  25977. continue
  25978. }
  25979. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  25980. if v != nil {
  25981. v[mk] = mv
  25982. }
  25983. }
  25984. dd.ReadMapEnd()
  25985. d.depthDecr()
  25986. return v, changed
  25987. }
  25988. func (d *Decoder) fastpathDecMapUint32Uint8R(f *codecFnInfo, rv reflect.Value) {
  25989. if rv.Kind() == reflect.Ptr {
  25990. vp := rv2i(rv).(*map[uint32]uint8)
  25991. v, changed := fastpathTV.DecMapUint32Uint8V(*vp, true, d)
  25992. if changed {
  25993. *vp = v
  25994. }
  25995. } else {
  25996. fastpathTV.DecMapUint32Uint8V(rv2i(rv).(map[uint32]uint8), false, d)
  25997. }
  25998. }
  25999. func (f fastpathT) DecMapUint32Uint8X(vp *map[uint32]uint8, d *Decoder) {
  26000. v, changed := f.DecMapUint32Uint8V(*vp, true, d)
  26001. if changed {
  26002. *vp = v
  26003. }
  26004. }
  26005. func (_ fastpathT) DecMapUint32Uint8V(v map[uint32]uint8, canChange bool,
  26006. d *Decoder) (_ map[uint32]uint8, changed bool) {
  26007. dd, esep := d.d, d.hh.hasElemSeparators()
  26008. containerLen := dd.ReadMapStart()
  26009. if canChange && v == nil {
  26010. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26011. v = make(map[uint32]uint8, xlen)
  26012. changed = true
  26013. }
  26014. if containerLen == 0 {
  26015. dd.ReadMapEnd()
  26016. return v, changed
  26017. }
  26018. d.depthIncr()
  26019. var mk uint32
  26020. var mv uint8
  26021. hasLen := containerLen > 0
  26022. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26023. if esep {
  26024. dd.ReadMapElemKey()
  26025. }
  26026. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26027. if esep {
  26028. dd.ReadMapElemValue()
  26029. }
  26030. if dd.TryDecodeAsNil() {
  26031. if v == nil {
  26032. } else if d.h.DeleteOnNilMapValue {
  26033. delete(v, mk)
  26034. } else {
  26035. v[mk] = 0
  26036. }
  26037. continue
  26038. }
  26039. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  26040. if v != nil {
  26041. v[mk] = mv
  26042. }
  26043. }
  26044. dd.ReadMapEnd()
  26045. d.depthDecr()
  26046. return v, changed
  26047. }
  26048. func (d *Decoder) fastpathDecMapUint32Uint16R(f *codecFnInfo, rv reflect.Value) {
  26049. if rv.Kind() == reflect.Ptr {
  26050. vp := rv2i(rv).(*map[uint32]uint16)
  26051. v, changed := fastpathTV.DecMapUint32Uint16V(*vp, true, d)
  26052. if changed {
  26053. *vp = v
  26054. }
  26055. } else {
  26056. fastpathTV.DecMapUint32Uint16V(rv2i(rv).(map[uint32]uint16), false, d)
  26057. }
  26058. }
  26059. func (f fastpathT) DecMapUint32Uint16X(vp *map[uint32]uint16, d *Decoder) {
  26060. v, changed := f.DecMapUint32Uint16V(*vp, true, d)
  26061. if changed {
  26062. *vp = v
  26063. }
  26064. }
  26065. func (_ fastpathT) DecMapUint32Uint16V(v map[uint32]uint16, canChange bool,
  26066. d *Decoder) (_ map[uint32]uint16, changed bool) {
  26067. dd, esep := d.d, d.hh.hasElemSeparators()
  26068. containerLen := dd.ReadMapStart()
  26069. if canChange && v == nil {
  26070. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26071. v = make(map[uint32]uint16, xlen)
  26072. changed = true
  26073. }
  26074. if containerLen == 0 {
  26075. dd.ReadMapEnd()
  26076. return v, changed
  26077. }
  26078. d.depthIncr()
  26079. var mk uint32
  26080. var mv uint16
  26081. hasLen := containerLen > 0
  26082. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26083. if esep {
  26084. dd.ReadMapElemKey()
  26085. }
  26086. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26087. if esep {
  26088. dd.ReadMapElemValue()
  26089. }
  26090. if dd.TryDecodeAsNil() {
  26091. if v == nil {
  26092. } else if d.h.DeleteOnNilMapValue {
  26093. delete(v, mk)
  26094. } else {
  26095. v[mk] = 0
  26096. }
  26097. continue
  26098. }
  26099. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  26100. if v != nil {
  26101. v[mk] = mv
  26102. }
  26103. }
  26104. dd.ReadMapEnd()
  26105. d.depthDecr()
  26106. return v, changed
  26107. }
  26108. func (d *Decoder) fastpathDecMapUint32Uint32R(f *codecFnInfo, rv reflect.Value) {
  26109. if rv.Kind() == reflect.Ptr {
  26110. vp := rv2i(rv).(*map[uint32]uint32)
  26111. v, changed := fastpathTV.DecMapUint32Uint32V(*vp, true, d)
  26112. if changed {
  26113. *vp = v
  26114. }
  26115. } else {
  26116. fastpathTV.DecMapUint32Uint32V(rv2i(rv).(map[uint32]uint32), false, d)
  26117. }
  26118. }
  26119. func (f fastpathT) DecMapUint32Uint32X(vp *map[uint32]uint32, d *Decoder) {
  26120. v, changed := f.DecMapUint32Uint32V(*vp, true, d)
  26121. if changed {
  26122. *vp = v
  26123. }
  26124. }
  26125. func (_ fastpathT) DecMapUint32Uint32V(v map[uint32]uint32, canChange bool,
  26126. d *Decoder) (_ map[uint32]uint32, changed bool) {
  26127. dd, esep := d.d, d.hh.hasElemSeparators()
  26128. containerLen := dd.ReadMapStart()
  26129. if canChange && v == nil {
  26130. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26131. v = make(map[uint32]uint32, xlen)
  26132. changed = true
  26133. }
  26134. if containerLen == 0 {
  26135. dd.ReadMapEnd()
  26136. return v, changed
  26137. }
  26138. d.depthIncr()
  26139. var mk uint32
  26140. var mv uint32
  26141. hasLen := containerLen > 0
  26142. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26143. if esep {
  26144. dd.ReadMapElemKey()
  26145. }
  26146. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26147. if esep {
  26148. dd.ReadMapElemValue()
  26149. }
  26150. if dd.TryDecodeAsNil() {
  26151. if v == nil {
  26152. } else if d.h.DeleteOnNilMapValue {
  26153. delete(v, mk)
  26154. } else {
  26155. v[mk] = 0
  26156. }
  26157. continue
  26158. }
  26159. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26160. if v != nil {
  26161. v[mk] = mv
  26162. }
  26163. }
  26164. dd.ReadMapEnd()
  26165. d.depthDecr()
  26166. return v, changed
  26167. }
  26168. func (d *Decoder) fastpathDecMapUint32Uint64R(f *codecFnInfo, rv reflect.Value) {
  26169. if rv.Kind() == reflect.Ptr {
  26170. vp := rv2i(rv).(*map[uint32]uint64)
  26171. v, changed := fastpathTV.DecMapUint32Uint64V(*vp, true, d)
  26172. if changed {
  26173. *vp = v
  26174. }
  26175. } else {
  26176. fastpathTV.DecMapUint32Uint64V(rv2i(rv).(map[uint32]uint64), false, d)
  26177. }
  26178. }
  26179. func (f fastpathT) DecMapUint32Uint64X(vp *map[uint32]uint64, d *Decoder) {
  26180. v, changed := f.DecMapUint32Uint64V(*vp, true, d)
  26181. if changed {
  26182. *vp = v
  26183. }
  26184. }
  26185. func (_ fastpathT) DecMapUint32Uint64V(v map[uint32]uint64, canChange bool,
  26186. d *Decoder) (_ map[uint32]uint64, changed bool) {
  26187. dd, esep := d.d, d.hh.hasElemSeparators()
  26188. containerLen := dd.ReadMapStart()
  26189. if canChange && v == nil {
  26190. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26191. v = make(map[uint32]uint64, xlen)
  26192. changed = true
  26193. }
  26194. if containerLen == 0 {
  26195. dd.ReadMapEnd()
  26196. return v, changed
  26197. }
  26198. d.depthIncr()
  26199. var mk uint32
  26200. var mv uint64
  26201. hasLen := containerLen > 0
  26202. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26203. if esep {
  26204. dd.ReadMapElemKey()
  26205. }
  26206. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26207. if esep {
  26208. dd.ReadMapElemValue()
  26209. }
  26210. if dd.TryDecodeAsNil() {
  26211. if v == nil {
  26212. } else if d.h.DeleteOnNilMapValue {
  26213. delete(v, mk)
  26214. } else {
  26215. v[mk] = 0
  26216. }
  26217. continue
  26218. }
  26219. mv = dd.DecodeUint64()
  26220. if v != nil {
  26221. v[mk] = mv
  26222. }
  26223. }
  26224. dd.ReadMapEnd()
  26225. d.depthDecr()
  26226. return v, changed
  26227. }
  26228. func (d *Decoder) fastpathDecMapUint32UintptrR(f *codecFnInfo, rv reflect.Value) {
  26229. if rv.Kind() == reflect.Ptr {
  26230. vp := rv2i(rv).(*map[uint32]uintptr)
  26231. v, changed := fastpathTV.DecMapUint32UintptrV(*vp, true, d)
  26232. if changed {
  26233. *vp = v
  26234. }
  26235. } else {
  26236. fastpathTV.DecMapUint32UintptrV(rv2i(rv).(map[uint32]uintptr), false, d)
  26237. }
  26238. }
  26239. func (f fastpathT) DecMapUint32UintptrX(vp *map[uint32]uintptr, d *Decoder) {
  26240. v, changed := f.DecMapUint32UintptrV(*vp, true, d)
  26241. if changed {
  26242. *vp = v
  26243. }
  26244. }
  26245. func (_ fastpathT) DecMapUint32UintptrV(v map[uint32]uintptr, canChange bool,
  26246. d *Decoder) (_ map[uint32]uintptr, changed bool) {
  26247. dd, esep := d.d, d.hh.hasElemSeparators()
  26248. containerLen := dd.ReadMapStart()
  26249. if canChange && v == nil {
  26250. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26251. v = make(map[uint32]uintptr, xlen)
  26252. changed = true
  26253. }
  26254. if containerLen == 0 {
  26255. dd.ReadMapEnd()
  26256. return v, changed
  26257. }
  26258. d.depthIncr()
  26259. var mk uint32
  26260. var mv uintptr
  26261. hasLen := containerLen > 0
  26262. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26263. if esep {
  26264. dd.ReadMapElemKey()
  26265. }
  26266. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26267. if esep {
  26268. dd.ReadMapElemValue()
  26269. }
  26270. if dd.TryDecodeAsNil() {
  26271. if v == nil {
  26272. } else if d.h.DeleteOnNilMapValue {
  26273. delete(v, mk)
  26274. } else {
  26275. v[mk] = 0
  26276. }
  26277. continue
  26278. }
  26279. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26280. if v != nil {
  26281. v[mk] = mv
  26282. }
  26283. }
  26284. dd.ReadMapEnd()
  26285. d.depthDecr()
  26286. return v, changed
  26287. }
  26288. func (d *Decoder) fastpathDecMapUint32IntR(f *codecFnInfo, rv reflect.Value) {
  26289. if rv.Kind() == reflect.Ptr {
  26290. vp := rv2i(rv).(*map[uint32]int)
  26291. v, changed := fastpathTV.DecMapUint32IntV(*vp, true, d)
  26292. if changed {
  26293. *vp = v
  26294. }
  26295. } else {
  26296. fastpathTV.DecMapUint32IntV(rv2i(rv).(map[uint32]int), false, d)
  26297. }
  26298. }
  26299. func (f fastpathT) DecMapUint32IntX(vp *map[uint32]int, d *Decoder) {
  26300. v, changed := f.DecMapUint32IntV(*vp, true, d)
  26301. if changed {
  26302. *vp = v
  26303. }
  26304. }
  26305. func (_ fastpathT) DecMapUint32IntV(v map[uint32]int, canChange bool,
  26306. d *Decoder) (_ map[uint32]int, changed bool) {
  26307. dd, esep := d.d, d.hh.hasElemSeparators()
  26308. containerLen := dd.ReadMapStart()
  26309. if canChange && v == nil {
  26310. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26311. v = make(map[uint32]int, xlen)
  26312. changed = true
  26313. }
  26314. if containerLen == 0 {
  26315. dd.ReadMapEnd()
  26316. return v, changed
  26317. }
  26318. d.depthIncr()
  26319. var mk uint32
  26320. var mv int
  26321. hasLen := containerLen > 0
  26322. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26323. if esep {
  26324. dd.ReadMapElemKey()
  26325. }
  26326. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26327. if esep {
  26328. dd.ReadMapElemValue()
  26329. }
  26330. if dd.TryDecodeAsNil() {
  26331. if v == nil {
  26332. } else if d.h.DeleteOnNilMapValue {
  26333. delete(v, mk)
  26334. } else {
  26335. v[mk] = 0
  26336. }
  26337. continue
  26338. }
  26339. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  26340. if v != nil {
  26341. v[mk] = mv
  26342. }
  26343. }
  26344. dd.ReadMapEnd()
  26345. d.depthDecr()
  26346. return v, changed
  26347. }
  26348. func (d *Decoder) fastpathDecMapUint32Int8R(f *codecFnInfo, rv reflect.Value) {
  26349. if rv.Kind() == reflect.Ptr {
  26350. vp := rv2i(rv).(*map[uint32]int8)
  26351. v, changed := fastpathTV.DecMapUint32Int8V(*vp, true, d)
  26352. if changed {
  26353. *vp = v
  26354. }
  26355. } else {
  26356. fastpathTV.DecMapUint32Int8V(rv2i(rv).(map[uint32]int8), false, d)
  26357. }
  26358. }
  26359. func (f fastpathT) DecMapUint32Int8X(vp *map[uint32]int8, d *Decoder) {
  26360. v, changed := f.DecMapUint32Int8V(*vp, true, d)
  26361. if changed {
  26362. *vp = v
  26363. }
  26364. }
  26365. func (_ fastpathT) DecMapUint32Int8V(v map[uint32]int8, canChange bool,
  26366. d *Decoder) (_ map[uint32]int8, changed bool) {
  26367. dd, esep := d.d, d.hh.hasElemSeparators()
  26368. containerLen := dd.ReadMapStart()
  26369. if canChange && v == nil {
  26370. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26371. v = make(map[uint32]int8, xlen)
  26372. changed = true
  26373. }
  26374. if containerLen == 0 {
  26375. dd.ReadMapEnd()
  26376. return v, changed
  26377. }
  26378. d.depthIncr()
  26379. var mk uint32
  26380. var mv int8
  26381. hasLen := containerLen > 0
  26382. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26383. if esep {
  26384. dd.ReadMapElemKey()
  26385. }
  26386. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26387. if esep {
  26388. dd.ReadMapElemValue()
  26389. }
  26390. if dd.TryDecodeAsNil() {
  26391. if v == nil {
  26392. } else if d.h.DeleteOnNilMapValue {
  26393. delete(v, mk)
  26394. } else {
  26395. v[mk] = 0
  26396. }
  26397. continue
  26398. }
  26399. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  26400. if v != nil {
  26401. v[mk] = mv
  26402. }
  26403. }
  26404. dd.ReadMapEnd()
  26405. d.depthDecr()
  26406. return v, changed
  26407. }
  26408. func (d *Decoder) fastpathDecMapUint32Int16R(f *codecFnInfo, rv reflect.Value) {
  26409. if rv.Kind() == reflect.Ptr {
  26410. vp := rv2i(rv).(*map[uint32]int16)
  26411. v, changed := fastpathTV.DecMapUint32Int16V(*vp, true, d)
  26412. if changed {
  26413. *vp = v
  26414. }
  26415. } else {
  26416. fastpathTV.DecMapUint32Int16V(rv2i(rv).(map[uint32]int16), false, d)
  26417. }
  26418. }
  26419. func (f fastpathT) DecMapUint32Int16X(vp *map[uint32]int16, d *Decoder) {
  26420. v, changed := f.DecMapUint32Int16V(*vp, true, d)
  26421. if changed {
  26422. *vp = v
  26423. }
  26424. }
  26425. func (_ fastpathT) DecMapUint32Int16V(v map[uint32]int16, canChange bool,
  26426. d *Decoder) (_ map[uint32]int16, changed bool) {
  26427. dd, esep := d.d, d.hh.hasElemSeparators()
  26428. containerLen := dd.ReadMapStart()
  26429. if canChange && v == nil {
  26430. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  26431. v = make(map[uint32]int16, xlen)
  26432. changed = true
  26433. }
  26434. if containerLen == 0 {
  26435. dd.ReadMapEnd()
  26436. return v, changed
  26437. }
  26438. d.depthIncr()
  26439. var mk uint32
  26440. var mv int16
  26441. hasLen := containerLen > 0
  26442. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26443. if esep {
  26444. dd.ReadMapElemKey()
  26445. }
  26446. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26447. if esep {
  26448. dd.ReadMapElemValue()
  26449. }
  26450. if dd.TryDecodeAsNil() {
  26451. if v == nil {
  26452. } else if d.h.DeleteOnNilMapValue {
  26453. delete(v, mk)
  26454. } else {
  26455. v[mk] = 0
  26456. }
  26457. continue
  26458. }
  26459. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  26460. if v != nil {
  26461. v[mk] = mv
  26462. }
  26463. }
  26464. dd.ReadMapEnd()
  26465. d.depthDecr()
  26466. return v, changed
  26467. }
  26468. func (d *Decoder) fastpathDecMapUint32Int32R(f *codecFnInfo, rv reflect.Value) {
  26469. if rv.Kind() == reflect.Ptr {
  26470. vp := rv2i(rv).(*map[uint32]int32)
  26471. v, changed := fastpathTV.DecMapUint32Int32V(*vp, true, d)
  26472. if changed {
  26473. *vp = v
  26474. }
  26475. } else {
  26476. fastpathTV.DecMapUint32Int32V(rv2i(rv).(map[uint32]int32), false, d)
  26477. }
  26478. }
  26479. func (f fastpathT) DecMapUint32Int32X(vp *map[uint32]int32, d *Decoder) {
  26480. v, changed := f.DecMapUint32Int32V(*vp, true, d)
  26481. if changed {
  26482. *vp = v
  26483. }
  26484. }
  26485. func (_ fastpathT) DecMapUint32Int32V(v map[uint32]int32, canChange bool,
  26486. d *Decoder) (_ map[uint32]int32, changed bool) {
  26487. dd, esep := d.d, d.hh.hasElemSeparators()
  26488. containerLen := dd.ReadMapStart()
  26489. if canChange && v == nil {
  26490. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26491. v = make(map[uint32]int32, xlen)
  26492. changed = true
  26493. }
  26494. if containerLen == 0 {
  26495. dd.ReadMapEnd()
  26496. return v, changed
  26497. }
  26498. d.depthIncr()
  26499. var mk uint32
  26500. var mv int32
  26501. hasLen := containerLen > 0
  26502. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26503. if esep {
  26504. dd.ReadMapElemKey()
  26505. }
  26506. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26507. if esep {
  26508. dd.ReadMapElemValue()
  26509. }
  26510. if dd.TryDecodeAsNil() {
  26511. if v == nil {
  26512. } else if d.h.DeleteOnNilMapValue {
  26513. delete(v, mk)
  26514. } else {
  26515. v[mk] = 0
  26516. }
  26517. continue
  26518. }
  26519. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  26520. if v != nil {
  26521. v[mk] = mv
  26522. }
  26523. }
  26524. dd.ReadMapEnd()
  26525. d.depthDecr()
  26526. return v, changed
  26527. }
  26528. func (d *Decoder) fastpathDecMapUint32Int64R(f *codecFnInfo, rv reflect.Value) {
  26529. if rv.Kind() == reflect.Ptr {
  26530. vp := rv2i(rv).(*map[uint32]int64)
  26531. v, changed := fastpathTV.DecMapUint32Int64V(*vp, true, d)
  26532. if changed {
  26533. *vp = v
  26534. }
  26535. } else {
  26536. fastpathTV.DecMapUint32Int64V(rv2i(rv).(map[uint32]int64), false, d)
  26537. }
  26538. }
  26539. func (f fastpathT) DecMapUint32Int64X(vp *map[uint32]int64, d *Decoder) {
  26540. v, changed := f.DecMapUint32Int64V(*vp, true, d)
  26541. if changed {
  26542. *vp = v
  26543. }
  26544. }
  26545. func (_ fastpathT) DecMapUint32Int64V(v map[uint32]int64, canChange bool,
  26546. d *Decoder) (_ map[uint32]int64, changed bool) {
  26547. dd, esep := d.d, d.hh.hasElemSeparators()
  26548. containerLen := dd.ReadMapStart()
  26549. if canChange && v == nil {
  26550. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26551. v = make(map[uint32]int64, xlen)
  26552. changed = true
  26553. }
  26554. if containerLen == 0 {
  26555. dd.ReadMapEnd()
  26556. return v, changed
  26557. }
  26558. d.depthIncr()
  26559. var mk uint32
  26560. var mv int64
  26561. hasLen := containerLen > 0
  26562. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26563. if esep {
  26564. dd.ReadMapElemKey()
  26565. }
  26566. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26567. if esep {
  26568. dd.ReadMapElemValue()
  26569. }
  26570. if dd.TryDecodeAsNil() {
  26571. if v == nil {
  26572. } else if d.h.DeleteOnNilMapValue {
  26573. delete(v, mk)
  26574. } else {
  26575. v[mk] = 0
  26576. }
  26577. continue
  26578. }
  26579. mv = dd.DecodeInt64()
  26580. if v != nil {
  26581. v[mk] = mv
  26582. }
  26583. }
  26584. dd.ReadMapEnd()
  26585. d.depthDecr()
  26586. return v, changed
  26587. }
  26588. func (d *Decoder) fastpathDecMapUint32Float32R(f *codecFnInfo, rv reflect.Value) {
  26589. if rv.Kind() == reflect.Ptr {
  26590. vp := rv2i(rv).(*map[uint32]float32)
  26591. v, changed := fastpathTV.DecMapUint32Float32V(*vp, true, d)
  26592. if changed {
  26593. *vp = v
  26594. }
  26595. } else {
  26596. fastpathTV.DecMapUint32Float32V(rv2i(rv).(map[uint32]float32), false, d)
  26597. }
  26598. }
  26599. func (f fastpathT) DecMapUint32Float32X(vp *map[uint32]float32, d *Decoder) {
  26600. v, changed := f.DecMapUint32Float32V(*vp, true, d)
  26601. if changed {
  26602. *vp = v
  26603. }
  26604. }
  26605. func (_ fastpathT) DecMapUint32Float32V(v map[uint32]float32, canChange bool,
  26606. d *Decoder) (_ map[uint32]float32, changed bool) {
  26607. dd, esep := d.d, d.hh.hasElemSeparators()
  26608. containerLen := dd.ReadMapStart()
  26609. if canChange && v == nil {
  26610. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  26611. v = make(map[uint32]float32, xlen)
  26612. changed = true
  26613. }
  26614. if containerLen == 0 {
  26615. dd.ReadMapEnd()
  26616. return v, changed
  26617. }
  26618. d.depthIncr()
  26619. var mk uint32
  26620. var mv float32
  26621. hasLen := containerLen > 0
  26622. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26623. if esep {
  26624. dd.ReadMapElemKey()
  26625. }
  26626. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26627. if esep {
  26628. dd.ReadMapElemValue()
  26629. }
  26630. if dd.TryDecodeAsNil() {
  26631. if v == nil {
  26632. } else if d.h.DeleteOnNilMapValue {
  26633. delete(v, mk)
  26634. } else {
  26635. v[mk] = 0
  26636. }
  26637. continue
  26638. }
  26639. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  26640. if v != nil {
  26641. v[mk] = mv
  26642. }
  26643. }
  26644. dd.ReadMapEnd()
  26645. d.depthDecr()
  26646. return v, changed
  26647. }
  26648. func (d *Decoder) fastpathDecMapUint32Float64R(f *codecFnInfo, rv reflect.Value) {
  26649. if rv.Kind() == reflect.Ptr {
  26650. vp := rv2i(rv).(*map[uint32]float64)
  26651. v, changed := fastpathTV.DecMapUint32Float64V(*vp, true, d)
  26652. if changed {
  26653. *vp = v
  26654. }
  26655. } else {
  26656. fastpathTV.DecMapUint32Float64V(rv2i(rv).(map[uint32]float64), false, d)
  26657. }
  26658. }
  26659. func (f fastpathT) DecMapUint32Float64X(vp *map[uint32]float64, d *Decoder) {
  26660. v, changed := f.DecMapUint32Float64V(*vp, true, d)
  26661. if changed {
  26662. *vp = v
  26663. }
  26664. }
  26665. func (_ fastpathT) DecMapUint32Float64V(v map[uint32]float64, canChange bool,
  26666. d *Decoder) (_ map[uint32]float64, changed bool) {
  26667. dd, esep := d.d, d.hh.hasElemSeparators()
  26668. containerLen := dd.ReadMapStart()
  26669. if canChange && v == nil {
  26670. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  26671. v = make(map[uint32]float64, xlen)
  26672. changed = true
  26673. }
  26674. if containerLen == 0 {
  26675. dd.ReadMapEnd()
  26676. return v, changed
  26677. }
  26678. d.depthIncr()
  26679. var mk uint32
  26680. var mv float64
  26681. hasLen := containerLen > 0
  26682. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26683. if esep {
  26684. dd.ReadMapElemKey()
  26685. }
  26686. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26687. if esep {
  26688. dd.ReadMapElemValue()
  26689. }
  26690. if dd.TryDecodeAsNil() {
  26691. if v == nil {
  26692. } else if d.h.DeleteOnNilMapValue {
  26693. delete(v, mk)
  26694. } else {
  26695. v[mk] = 0
  26696. }
  26697. continue
  26698. }
  26699. mv = dd.DecodeFloat64()
  26700. if v != nil {
  26701. v[mk] = mv
  26702. }
  26703. }
  26704. dd.ReadMapEnd()
  26705. d.depthDecr()
  26706. return v, changed
  26707. }
  26708. func (d *Decoder) fastpathDecMapUint32BoolR(f *codecFnInfo, rv reflect.Value) {
  26709. if rv.Kind() == reflect.Ptr {
  26710. vp := rv2i(rv).(*map[uint32]bool)
  26711. v, changed := fastpathTV.DecMapUint32BoolV(*vp, true, d)
  26712. if changed {
  26713. *vp = v
  26714. }
  26715. } else {
  26716. fastpathTV.DecMapUint32BoolV(rv2i(rv).(map[uint32]bool), false, d)
  26717. }
  26718. }
  26719. func (f fastpathT) DecMapUint32BoolX(vp *map[uint32]bool, d *Decoder) {
  26720. v, changed := f.DecMapUint32BoolV(*vp, true, d)
  26721. if changed {
  26722. *vp = v
  26723. }
  26724. }
  26725. func (_ fastpathT) DecMapUint32BoolV(v map[uint32]bool, canChange bool,
  26726. d *Decoder) (_ map[uint32]bool, changed bool) {
  26727. dd, esep := d.d, d.hh.hasElemSeparators()
  26728. containerLen := dd.ReadMapStart()
  26729. if canChange && v == nil {
  26730. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  26731. v = make(map[uint32]bool, xlen)
  26732. changed = true
  26733. }
  26734. if containerLen == 0 {
  26735. dd.ReadMapEnd()
  26736. return v, changed
  26737. }
  26738. d.depthIncr()
  26739. var mk uint32
  26740. var mv bool
  26741. hasLen := containerLen > 0
  26742. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26743. if esep {
  26744. dd.ReadMapElemKey()
  26745. }
  26746. mk = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  26747. if esep {
  26748. dd.ReadMapElemValue()
  26749. }
  26750. if dd.TryDecodeAsNil() {
  26751. if v == nil {
  26752. } else if d.h.DeleteOnNilMapValue {
  26753. delete(v, mk)
  26754. } else {
  26755. v[mk] = false
  26756. }
  26757. continue
  26758. }
  26759. mv = dd.DecodeBool()
  26760. if v != nil {
  26761. v[mk] = mv
  26762. }
  26763. }
  26764. dd.ReadMapEnd()
  26765. d.depthDecr()
  26766. return v, changed
  26767. }
  26768. func (d *Decoder) fastpathDecMapUint64IntfR(f *codecFnInfo, rv reflect.Value) {
  26769. if rv.Kind() == reflect.Ptr {
  26770. vp := rv2i(rv).(*map[uint64]interface{})
  26771. v, changed := fastpathTV.DecMapUint64IntfV(*vp, true, d)
  26772. if changed {
  26773. *vp = v
  26774. }
  26775. } else {
  26776. fastpathTV.DecMapUint64IntfV(rv2i(rv).(map[uint64]interface{}), false, d)
  26777. }
  26778. }
  26779. func (f fastpathT) DecMapUint64IntfX(vp *map[uint64]interface{}, d *Decoder) {
  26780. v, changed := f.DecMapUint64IntfV(*vp, true, d)
  26781. if changed {
  26782. *vp = v
  26783. }
  26784. }
  26785. func (_ fastpathT) DecMapUint64IntfV(v map[uint64]interface{}, canChange bool,
  26786. d *Decoder) (_ map[uint64]interface{}, changed bool) {
  26787. dd, esep := d.d, d.hh.hasElemSeparators()
  26788. containerLen := dd.ReadMapStart()
  26789. if canChange && v == nil {
  26790. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26791. v = make(map[uint64]interface{}, xlen)
  26792. changed = true
  26793. }
  26794. if containerLen == 0 {
  26795. dd.ReadMapEnd()
  26796. return v, changed
  26797. }
  26798. d.depthIncr()
  26799. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  26800. var mk uint64
  26801. var mv interface{}
  26802. hasLen := containerLen > 0
  26803. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26804. if esep {
  26805. dd.ReadMapElemKey()
  26806. }
  26807. mk = dd.DecodeUint64()
  26808. if esep {
  26809. dd.ReadMapElemValue()
  26810. }
  26811. if dd.TryDecodeAsNil() {
  26812. if v == nil {
  26813. } else if d.h.DeleteOnNilMapValue {
  26814. delete(v, mk)
  26815. } else {
  26816. v[mk] = nil
  26817. }
  26818. continue
  26819. }
  26820. if mapGet {
  26821. mv = v[mk]
  26822. } else {
  26823. mv = nil
  26824. }
  26825. d.decode(&mv)
  26826. if v != nil {
  26827. v[mk] = mv
  26828. }
  26829. }
  26830. dd.ReadMapEnd()
  26831. d.depthDecr()
  26832. return v, changed
  26833. }
  26834. func (d *Decoder) fastpathDecMapUint64StringR(f *codecFnInfo, rv reflect.Value) {
  26835. if rv.Kind() == reflect.Ptr {
  26836. vp := rv2i(rv).(*map[uint64]string)
  26837. v, changed := fastpathTV.DecMapUint64StringV(*vp, true, d)
  26838. if changed {
  26839. *vp = v
  26840. }
  26841. } else {
  26842. fastpathTV.DecMapUint64StringV(rv2i(rv).(map[uint64]string), false, d)
  26843. }
  26844. }
  26845. func (f fastpathT) DecMapUint64StringX(vp *map[uint64]string, d *Decoder) {
  26846. v, changed := f.DecMapUint64StringV(*vp, true, d)
  26847. if changed {
  26848. *vp = v
  26849. }
  26850. }
  26851. func (_ fastpathT) DecMapUint64StringV(v map[uint64]string, canChange bool,
  26852. d *Decoder) (_ map[uint64]string, changed bool) {
  26853. dd, esep := d.d, d.hh.hasElemSeparators()
  26854. containerLen := dd.ReadMapStart()
  26855. if canChange && v == nil {
  26856. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  26857. v = make(map[uint64]string, xlen)
  26858. changed = true
  26859. }
  26860. if containerLen == 0 {
  26861. dd.ReadMapEnd()
  26862. return v, changed
  26863. }
  26864. d.depthIncr()
  26865. var mk uint64
  26866. var mv string
  26867. hasLen := containerLen > 0
  26868. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26869. if esep {
  26870. dd.ReadMapElemKey()
  26871. }
  26872. mk = dd.DecodeUint64()
  26873. if esep {
  26874. dd.ReadMapElemValue()
  26875. }
  26876. if dd.TryDecodeAsNil() {
  26877. if v == nil {
  26878. } else if d.h.DeleteOnNilMapValue {
  26879. delete(v, mk)
  26880. } else {
  26881. v[mk] = ""
  26882. }
  26883. continue
  26884. }
  26885. mv = dd.DecodeString()
  26886. if v != nil {
  26887. v[mk] = mv
  26888. }
  26889. }
  26890. dd.ReadMapEnd()
  26891. d.depthDecr()
  26892. return v, changed
  26893. }
  26894. func (d *Decoder) fastpathDecMapUint64UintR(f *codecFnInfo, rv reflect.Value) {
  26895. if rv.Kind() == reflect.Ptr {
  26896. vp := rv2i(rv).(*map[uint64]uint)
  26897. v, changed := fastpathTV.DecMapUint64UintV(*vp, true, d)
  26898. if changed {
  26899. *vp = v
  26900. }
  26901. } else {
  26902. fastpathTV.DecMapUint64UintV(rv2i(rv).(map[uint64]uint), false, d)
  26903. }
  26904. }
  26905. func (f fastpathT) DecMapUint64UintX(vp *map[uint64]uint, d *Decoder) {
  26906. v, changed := f.DecMapUint64UintV(*vp, true, d)
  26907. if changed {
  26908. *vp = v
  26909. }
  26910. }
  26911. func (_ fastpathT) DecMapUint64UintV(v map[uint64]uint, canChange bool,
  26912. d *Decoder) (_ map[uint64]uint, changed bool) {
  26913. dd, esep := d.d, d.hh.hasElemSeparators()
  26914. containerLen := dd.ReadMapStart()
  26915. if canChange && v == nil {
  26916. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  26917. v = make(map[uint64]uint, xlen)
  26918. changed = true
  26919. }
  26920. if containerLen == 0 {
  26921. dd.ReadMapEnd()
  26922. return v, changed
  26923. }
  26924. d.depthIncr()
  26925. var mk uint64
  26926. var mv uint
  26927. hasLen := containerLen > 0
  26928. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26929. if esep {
  26930. dd.ReadMapElemKey()
  26931. }
  26932. mk = dd.DecodeUint64()
  26933. if esep {
  26934. dd.ReadMapElemValue()
  26935. }
  26936. if dd.TryDecodeAsNil() {
  26937. if v == nil {
  26938. } else if d.h.DeleteOnNilMapValue {
  26939. delete(v, mk)
  26940. } else {
  26941. v[mk] = 0
  26942. }
  26943. continue
  26944. }
  26945. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  26946. if v != nil {
  26947. v[mk] = mv
  26948. }
  26949. }
  26950. dd.ReadMapEnd()
  26951. d.depthDecr()
  26952. return v, changed
  26953. }
  26954. func (d *Decoder) fastpathDecMapUint64Uint8R(f *codecFnInfo, rv reflect.Value) {
  26955. if rv.Kind() == reflect.Ptr {
  26956. vp := rv2i(rv).(*map[uint64]uint8)
  26957. v, changed := fastpathTV.DecMapUint64Uint8V(*vp, true, d)
  26958. if changed {
  26959. *vp = v
  26960. }
  26961. } else {
  26962. fastpathTV.DecMapUint64Uint8V(rv2i(rv).(map[uint64]uint8), false, d)
  26963. }
  26964. }
  26965. func (f fastpathT) DecMapUint64Uint8X(vp *map[uint64]uint8, d *Decoder) {
  26966. v, changed := f.DecMapUint64Uint8V(*vp, true, d)
  26967. if changed {
  26968. *vp = v
  26969. }
  26970. }
  26971. func (_ fastpathT) DecMapUint64Uint8V(v map[uint64]uint8, canChange bool,
  26972. d *Decoder) (_ map[uint64]uint8, changed bool) {
  26973. dd, esep := d.d, d.hh.hasElemSeparators()
  26974. containerLen := dd.ReadMapStart()
  26975. if canChange && v == nil {
  26976. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  26977. v = make(map[uint64]uint8, xlen)
  26978. changed = true
  26979. }
  26980. if containerLen == 0 {
  26981. dd.ReadMapEnd()
  26982. return v, changed
  26983. }
  26984. d.depthIncr()
  26985. var mk uint64
  26986. var mv uint8
  26987. hasLen := containerLen > 0
  26988. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  26989. if esep {
  26990. dd.ReadMapElemKey()
  26991. }
  26992. mk = dd.DecodeUint64()
  26993. if esep {
  26994. dd.ReadMapElemValue()
  26995. }
  26996. if dd.TryDecodeAsNil() {
  26997. if v == nil {
  26998. } else if d.h.DeleteOnNilMapValue {
  26999. delete(v, mk)
  27000. } else {
  27001. v[mk] = 0
  27002. }
  27003. continue
  27004. }
  27005. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27006. if v != nil {
  27007. v[mk] = mv
  27008. }
  27009. }
  27010. dd.ReadMapEnd()
  27011. d.depthDecr()
  27012. return v, changed
  27013. }
  27014. func (d *Decoder) fastpathDecMapUint64Uint16R(f *codecFnInfo, rv reflect.Value) {
  27015. if rv.Kind() == reflect.Ptr {
  27016. vp := rv2i(rv).(*map[uint64]uint16)
  27017. v, changed := fastpathTV.DecMapUint64Uint16V(*vp, true, d)
  27018. if changed {
  27019. *vp = v
  27020. }
  27021. } else {
  27022. fastpathTV.DecMapUint64Uint16V(rv2i(rv).(map[uint64]uint16), false, d)
  27023. }
  27024. }
  27025. func (f fastpathT) DecMapUint64Uint16X(vp *map[uint64]uint16, d *Decoder) {
  27026. v, changed := f.DecMapUint64Uint16V(*vp, true, d)
  27027. if changed {
  27028. *vp = v
  27029. }
  27030. }
  27031. func (_ fastpathT) DecMapUint64Uint16V(v map[uint64]uint16, canChange bool,
  27032. d *Decoder) (_ map[uint64]uint16, changed bool) {
  27033. dd, esep := d.d, d.hh.hasElemSeparators()
  27034. containerLen := dd.ReadMapStart()
  27035. if canChange && v == nil {
  27036. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27037. v = make(map[uint64]uint16, xlen)
  27038. changed = true
  27039. }
  27040. if containerLen == 0 {
  27041. dd.ReadMapEnd()
  27042. return v, changed
  27043. }
  27044. d.depthIncr()
  27045. var mk uint64
  27046. var mv uint16
  27047. hasLen := containerLen > 0
  27048. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27049. if esep {
  27050. dd.ReadMapElemKey()
  27051. }
  27052. mk = dd.DecodeUint64()
  27053. if esep {
  27054. dd.ReadMapElemValue()
  27055. }
  27056. if dd.TryDecodeAsNil() {
  27057. if v == nil {
  27058. } else if d.h.DeleteOnNilMapValue {
  27059. delete(v, mk)
  27060. } else {
  27061. v[mk] = 0
  27062. }
  27063. continue
  27064. }
  27065. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  27066. if v != nil {
  27067. v[mk] = mv
  27068. }
  27069. }
  27070. dd.ReadMapEnd()
  27071. d.depthDecr()
  27072. return v, changed
  27073. }
  27074. func (d *Decoder) fastpathDecMapUint64Uint32R(f *codecFnInfo, rv reflect.Value) {
  27075. if rv.Kind() == reflect.Ptr {
  27076. vp := rv2i(rv).(*map[uint64]uint32)
  27077. v, changed := fastpathTV.DecMapUint64Uint32V(*vp, true, d)
  27078. if changed {
  27079. *vp = v
  27080. }
  27081. } else {
  27082. fastpathTV.DecMapUint64Uint32V(rv2i(rv).(map[uint64]uint32), false, d)
  27083. }
  27084. }
  27085. func (f fastpathT) DecMapUint64Uint32X(vp *map[uint64]uint32, d *Decoder) {
  27086. v, changed := f.DecMapUint64Uint32V(*vp, true, d)
  27087. if changed {
  27088. *vp = v
  27089. }
  27090. }
  27091. func (_ fastpathT) DecMapUint64Uint32V(v map[uint64]uint32, canChange bool,
  27092. d *Decoder) (_ map[uint64]uint32, changed bool) {
  27093. dd, esep := d.d, d.hh.hasElemSeparators()
  27094. containerLen := dd.ReadMapStart()
  27095. if canChange && v == nil {
  27096. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27097. v = make(map[uint64]uint32, xlen)
  27098. changed = true
  27099. }
  27100. if containerLen == 0 {
  27101. dd.ReadMapEnd()
  27102. return v, changed
  27103. }
  27104. d.depthIncr()
  27105. var mk uint64
  27106. var mv uint32
  27107. hasLen := containerLen > 0
  27108. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27109. if esep {
  27110. dd.ReadMapElemKey()
  27111. }
  27112. mk = dd.DecodeUint64()
  27113. if esep {
  27114. dd.ReadMapElemValue()
  27115. }
  27116. if dd.TryDecodeAsNil() {
  27117. if v == nil {
  27118. } else if d.h.DeleteOnNilMapValue {
  27119. delete(v, mk)
  27120. } else {
  27121. v[mk] = 0
  27122. }
  27123. continue
  27124. }
  27125. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  27126. if v != nil {
  27127. v[mk] = mv
  27128. }
  27129. }
  27130. dd.ReadMapEnd()
  27131. d.depthDecr()
  27132. return v, changed
  27133. }
  27134. func (d *Decoder) fastpathDecMapUint64Uint64R(f *codecFnInfo, rv reflect.Value) {
  27135. if rv.Kind() == reflect.Ptr {
  27136. vp := rv2i(rv).(*map[uint64]uint64)
  27137. v, changed := fastpathTV.DecMapUint64Uint64V(*vp, true, d)
  27138. if changed {
  27139. *vp = v
  27140. }
  27141. } else {
  27142. fastpathTV.DecMapUint64Uint64V(rv2i(rv).(map[uint64]uint64), false, d)
  27143. }
  27144. }
  27145. func (f fastpathT) DecMapUint64Uint64X(vp *map[uint64]uint64, d *Decoder) {
  27146. v, changed := f.DecMapUint64Uint64V(*vp, true, d)
  27147. if changed {
  27148. *vp = v
  27149. }
  27150. }
  27151. func (_ fastpathT) DecMapUint64Uint64V(v map[uint64]uint64, canChange bool,
  27152. d *Decoder) (_ map[uint64]uint64, changed bool) {
  27153. dd, esep := d.d, d.hh.hasElemSeparators()
  27154. containerLen := dd.ReadMapStart()
  27155. if canChange && v == nil {
  27156. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27157. v = make(map[uint64]uint64, xlen)
  27158. changed = true
  27159. }
  27160. if containerLen == 0 {
  27161. dd.ReadMapEnd()
  27162. return v, changed
  27163. }
  27164. d.depthIncr()
  27165. var mk uint64
  27166. var mv uint64
  27167. hasLen := containerLen > 0
  27168. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27169. if esep {
  27170. dd.ReadMapElemKey()
  27171. }
  27172. mk = dd.DecodeUint64()
  27173. if esep {
  27174. dd.ReadMapElemValue()
  27175. }
  27176. if dd.TryDecodeAsNil() {
  27177. if v == nil {
  27178. } else if d.h.DeleteOnNilMapValue {
  27179. delete(v, mk)
  27180. } else {
  27181. v[mk] = 0
  27182. }
  27183. continue
  27184. }
  27185. mv = dd.DecodeUint64()
  27186. if v != nil {
  27187. v[mk] = mv
  27188. }
  27189. }
  27190. dd.ReadMapEnd()
  27191. d.depthDecr()
  27192. return v, changed
  27193. }
  27194. func (d *Decoder) fastpathDecMapUint64UintptrR(f *codecFnInfo, rv reflect.Value) {
  27195. if rv.Kind() == reflect.Ptr {
  27196. vp := rv2i(rv).(*map[uint64]uintptr)
  27197. v, changed := fastpathTV.DecMapUint64UintptrV(*vp, true, d)
  27198. if changed {
  27199. *vp = v
  27200. }
  27201. } else {
  27202. fastpathTV.DecMapUint64UintptrV(rv2i(rv).(map[uint64]uintptr), false, d)
  27203. }
  27204. }
  27205. func (f fastpathT) DecMapUint64UintptrX(vp *map[uint64]uintptr, d *Decoder) {
  27206. v, changed := f.DecMapUint64UintptrV(*vp, true, d)
  27207. if changed {
  27208. *vp = v
  27209. }
  27210. }
  27211. func (_ fastpathT) DecMapUint64UintptrV(v map[uint64]uintptr, canChange bool,
  27212. d *Decoder) (_ map[uint64]uintptr, changed bool) {
  27213. dd, esep := d.d, d.hh.hasElemSeparators()
  27214. containerLen := dd.ReadMapStart()
  27215. if canChange && v == nil {
  27216. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27217. v = make(map[uint64]uintptr, xlen)
  27218. changed = true
  27219. }
  27220. if containerLen == 0 {
  27221. dd.ReadMapEnd()
  27222. return v, changed
  27223. }
  27224. d.depthIncr()
  27225. var mk uint64
  27226. var mv uintptr
  27227. hasLen := containerLen > 0
  27228. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27229. if esep {
  27230. dd.ReadMapElemKey()
  27231. }
  27232. mk = dd.DecodeUint64()
  27233. if esep {
  27234. dd.ReadMapElemValue()
  27235. }
  27236. if dd.TryDecodeAsNil() {
  27237. if v == nil {
  27238. } else if d.h.DeleteOnNilMapValue {
  27239. delete(v, mk)
  27240. } else {
  27241. v[mk] = 0
  27242. }
  27243. continue
  27244. }
  27245. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27246. if v != nil {
  27247. v[mk] = mv
  27248. }
  27249. }
  27250. dd.ReadMapEnd()
  27251. d.depthDecr()
  27252. return v, changed
  27253. }
  27254. func (d *Decoder) fastpathDecMapUint64IntR(f *codecFnInfo, rv reflect.Value) {
  27255. if rv.Kind() == reflect.Ptr {
  27256. vp := rv2i(rv).(*map[uint64]int)
  27257. v, changed := fastpathTV.DecMapUint64IntV(*vp, true, d)
  27258. if changed {
  27259. *vp = v
  27260. }
  27261. } else {
  27262. fastpathTV.DecMapUint64IntV(rv2i(rv).(map[uint64]int), false, d)
  27263. }
  27264. }
  27265. func (f fastpathT) DecMapUint64IntX(vp *map[uint64]int, d *Decoder) {
  27266. v, changed := f.DecMapUint64IntV(*vp, true, d)
  27267. if changed {
  27268. *vp = v
  27269. }
  27270. }
  27271. func (_ fastpathT) DecMapUint64IntV(v map[uint64]int, canChange bool,
  27272. d *Decoder) (_ map[uint64]int, changed bool) {
  27273. dd, esep := d.d, d.hh.hasElemSeparators()
  27274. containerLen := dd.ReadMapStart()
  27275. if canChange && v == nil {
  27276. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27277. v = make(map[uint64]int, xlen)
  27278. changed = true
  27279. }
  27280. if containerLen == 0 {
  27281. dd.ReadMapEnd()
  27282. return v, changed
  27283. }
  27284. d.depthIncr()
  27285. var mk uint64
  27286. var mv int
  27287. hasLen := containerLen > 0
  27288. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27289. if esep {
  27290. dd.ReadMapElemKey()
  27291. }
  27292. mk = dd.DecodeUint64()
  27293. if esep {
  27294. dd.ReadMapElemValue()
  27295. }
  27296. if dd.TryDecodeAsNil() {
  27297. if v == nil {
  27298. } else if d.h.DeleteOnNilMapValue {
  27299. delete(v, mk)
  27300. } else {
  27301. v[mk] = 0
  27302. }
  27303. continue
  27304. }
  27305. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  27306. if v != nil {
  27307. v[mk] = mv
  27308. }
  27309. }
  27310. dd.ReadMapEnd()
  27311. d.depthDecr()
  27312. return v, changed
  27313. }
  27314. func (d *Decoder) fastpathDecMapUint64Int8R(f *codecFnInfo, rv reflect.Value) {
  27315. if rv.Kind() == reflect.Ptr {
  27316. vp := rv2i(rv).(*map[uint64]int8)
  27317. v, changed := fastpathTV.DecMapUint64Int8V(*vp, true, d)
  27318. if changed {
  27319. *vp = v
  27320. }
  27321. } else {
  27322. fastpathTV.DecMapUint64Int8V(rv2i(rv).(map[uint64]int8), false, d)
  27323. }
  27324. }
  27325. func (f fastpathT) DecMapUint64Int8X(vp *map[uint64]int8, d *Decoder) {
  27326. v, changed := f.DecMapUint64Int8V(*vp, true, d)
  27327. if changed {
  27328. *vp = v
  27329. }
  27330. }
  27331. func (_ fastpathT) DecMapUint64Int8V(v map[uint64]int8, canChange bool,
  27332. d *Decoder) (_ map[uint64]int8, changed bool) {
  27333. dd, esep := d.d, d.hh.hasElemSeparators()
  27334. containerLen := dd.ReadMapStart()
  27335. if canChange && v == nil {
  27336. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27337. v = make(map[uint64]int8, xlen)
  27338. changed = true
  27339. }
  27340. if containerLen == 0 {
  27341. dd.ReadMapEnd()
  27342. return v, changed
  27343. }
  27344. d.depthIncr()
  27345. var mk uint64
  27346. var mv int8
  27347. hasLen := containerLen > 0
  27348. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27349. if esep {
  27350. dd.ReadMapElemKey()
  27351. }
  27352. mk = dd.DecodeUint64()
  27353. if esep {
  27354. dd.ReadMapElemValue()
  27355. }
  27356. if dd.TryDecodeAsNil() {
  27357. if v == nil {
  27358. } else if d.h.DeleteOnNilMapValue {
  27359. delete(v, mk)
  27360. } else {
  27361. v[mk] = 0
  27362. }
  27363. continue
  27364. }
  27365. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  27366. if v != nil {
  27367. v[mk] = mv
  27368. }
  27369. }
  27370. dd.ReadMapEnd()
  27371. d.depthDecr()
  27372. return v, changed
  27373. }
  27374. func (d *Decoder) fastpathDecMapUint64Int16R(f *codecFnInfo, rv reflect.Value) {
  27375. if rv.Kind() == reflect.Ptr {
  27376. vp := rv2i(rv).(*map[uint64]int16)
  27377. v, changed := fastpathTV.DecMapUint64Int16V(*vp, true, d)
  27378. if changed {
  27379. *vp = v
  27380. }
  27381. } else {
  27382. fastpathTV.DecMapUint64Int16V(rv2i(rv).(map[uint64]int16), false, d)
  27383. }
  27384. }
  27385. func (f fastpathT) DecMapUint64Int16X(vp *map[uint64]int16, d *Decoder) {
  27386. v, changed := f.DecMapUint64Int16V(*vp, true, d)
  27387. if changed {
  27388. *vp = v
  27389. }
  27390. }
  27391. func (_ fastpathT) DecMapUint64Int16V(v map[uint64]int16, canChange bool,
  27392. d *Decoder) (_ map[uint64]int16, changed bool) {
  27393. dd, esep := d.d, d.hh.hasElemSeparators()
  27394. containerLen := dd.ReadMapStart()
  27395. if canChange && v == nil {
  27396. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  27397. v = make(map[uint64]int16, xlen)
  27398. changed = true
  27399. }
  27400. if containerLen == 0 {
  27401. dd.ReadMapEnd()
  27402. return v, changed
  27403. }
  27404. d.depthIncr()
  27405. var mk uint64
  27406. var mv int16
  27407. hasLen := containerLen > 0
  27408. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27409. if esep {
  27410. dd.ReadMapElemKey()
  27411. }
  27412. mk = dd.DecodeUint64()
  27413. if esep {
  27414. dd.ReadMapElemValue()
  27415. }
  27416. if dd.TryDecodeAsNil() {
  27417. if v == nil {
  27418. } else if d.h.DeleteOnNilMapValue {
  27419. delete(v, mk)
  27420. } else {
  27421. v[mk] = 0
  27422. }
  27423. continue
  27424. }
  27425. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  27426. if v != nil {
  27427. v[mk] = mv
  27428. }
  27429. }
  27430. dd.ReadMapEnd()
  27431. d.depthDecr()
  27432. return v, changed
  27433. }
  27434. func (d *Decoder) fastpathDecMapUint64Int32R(f *codecFnInfo, rv reflect.Value) {
  27435. if rv.Kind() == reflect.Ptr {
  27436. vp := rv2i(rv).(*map[uint64]int32)
  27437. v, changed := fastpathTV.DecMapUint64Int32V(*vp, true, d)
  27438. if changed {
  27439. *vp = v
  27440. }
  27441. } else {
  27442. fastpathTV.DecMapUint64Int32V(rv2i(rv).(map[uint64]int32), false, d)
  27443. }
  27444. }
  27445. func (f fastpathT) DecMapUint64Int32X(vp *map[uint64]int32, d *Decoder) {
  27446. v, changed := f.DecMapUint64Int32V(*vp, true, d)
  27447. if changed {
  27448. *vp = v
  27449. }
  27450. }
  27451. func (_ fastpathT) DecMapUint64Int32V(v map[uint64]int32, canChange bool,
  27452. d *Decoder) (_ map[uint64]int32, changed bool) {
  27453. dd, esep := d.d, d.hh.hasElemSeparators()
  27454. containerLen := dd.ReadMapStart()
  27455. if canChange && v == nil {
  27456. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27457. v = make(map[uint64]int32, xlen)
  27458. changed = true
  27459. }
  27460. if containerLen == 0 {
  27461. dd.ReadMapEnd()
  27462. return v, changed
  27463. }
  27464. d.depthIncr()
  27465. var mk uint64
  27466. var mv int32
  27467. hasLen := containerLen > 0
  27468. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27469. if esep {
  27470. dd.ReadMapElemKey()
  27471. }
  27472. mk = dd.DecodeUint64()
  27473. if esep {
  27474. dd.ReadMapElemValue()
  27475. }
  27476. if dd.TryDecodeAsNil() {
  27477. if v == nil {
  27478. } else if d.h.DeleteOnNilMapValue {
  27479. delete(v, mk)
  27480. } else {
  27481. v[mk] = 0
  27482. }
  27483. continue
  27484. }
  27485. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  27486. if v != nil {
  27487. v[mk] = mv
  27488. }
  27489. }
  27490. dd.ReadMapEnd()
  27491. d.depthDecr()
  27492. return v, changed
  27493. }
  27494. func (d *Decoder) fastpathDecMapUint64Int64R(f *codecFnInfo, rv reflect.Value) {
  27495. if rv.Kind() == reflect.Ptr {
  27496. vp := rv2i(rv).(*map[uint64]int64)
  27497. v, changed := fastpathTV.DecMapUint64Int64V(*vp, true, d)
  27498. if changed {
  27499. *vp = v
  27500. }
  27501. } else {
  27502. fastpathTV.DecMapUint64Int64V(rv2i(rv).(map[uint64]int64), false, d)
  27503. }
  27504. }
  27505. func (f fastpathT) DecMapUint64Int64X(vp *map[uint64]int64, d *Decoder) {
  27506. v, changed := f.DecMapUint64Int64V(*vp, true, d)
  27507. if changed {
  27508. *vp = v
  27509. }
  27510. }
  27511. func (_ fastpathT) DecMapUint64Int64V(v map[uint64]int64, canChange bool,
  27512. d *Decoder) (_ map[uint64]int64, changed bool) {
  27513. dd, esep := d.d, d.hh.hasElemSeparators()
  27514. containerLen := dd.ReadMapStart()
  27515. if canChange && v == nil {
  27516. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27517. v = make(map[uint64]int64, xlen)
  27518. changed = true
  27519. }
  27520. if containerLen == 0 {
  27521. dd.ReadMapEnd()
  27522. return v, changed
  27523. }
  27524. d.depthIncr()
  27525. var mk uint64
  27526. var mv int64
  27527. hasLen := containerLen > 0
  27528. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27529. if esep {
  27530. dd.ReadMapElemKey()
  27531. }
  27532. mk = dd.DecodeUint64()
  27533. if esep {
  27534. dd.ReadMapElemValue()
  27535. }
  27536. if dd.TryDecodeAsNil() {
  27537. if v == nil {
  27538. } else if d.h.DeleteOnNilMapValue {
  27539. delete(v, mk)
  27540. } else {
  27541. v[mk] = 0
  27542. }
  27543. continue
  27544. }
  27545. mv = dd.DecodeInt64()
  27546. if v != nil {
  27547. v[mk] = mv
  27548. }
  27549. }
  27550. dd.ReadMapEnd()
  27551. d.depthDecr()
  27552. return v, changed
  27553. }
  27554. func (d *Decoder) fastpathDecMapUint64Float32R(f *codecFnInfo, rv reflect.Value) {
  27555. if rv.Kind() == reflect.Ptr {
  27556. vp := rv2i(rv).(*map[uint64]float32)
  27557. v, changed := fastpathTV.DecMapUint64Float32V(*vp, true, d)
  27558. if changed {
  27559. *vp = v
  27560. }
  27561. } else {
  27562. fastpathTV.DecMapUint64Float32V(rv2i(rv).(map[uint64]float32), false, d)
  27563. }
  27564. }
  27565. func (f fastpathT) DecMapUint64Float32X(vp *map[uint64]float32, d *Decoder) {
  27566. v, changed := f.DecMapUint64Float32V(*vp, true, d)
  27567. if changed {
  27568. *vp = v
  27569. }
  27570. }
  27571. func (_ fastpathT) DecMapUint64Float32V(v map[uint64]float32, canChange bool,
  27572. d *Decoder) (_ map[uint64]float32, changed bool) {
  27573. dd, esep := d.d, d.hh.hasElemSeparators()
  27574. containerLen := dd.ReadMapStart()
  27575. if canChange && v == nil {
  27576. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  27577. v = make(map[uint64]float32, xlen)
  27578. changed = true
  27579. }
  27580. if containerLen == 0 {
  27581. dd.ReadMapEnd()
  27582. return v, changed
  27583. }
  27584. d.depthIncr()
  27585. var mk uint64
  27586. var mv float32
  27587. hasLen := containerLen > 0
  27588. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27589. if esep {
  27590. dd.ReadMapElemKey()
  27591. }
  27592. mk = dd.DecodeUint64()
  27593. if esep {
  27594. dd.ReadMapElemValue()
  27595. }
  27596. if dd.TryDecodeAsNil() {
  27597. if v == nil {
  27598. } else if d.h.DeleteOnNilMapValue {
  27599. delete(v, mk)
  27600. } else {
  27601. v[mk] = 0
  27602. }
  27603. continue
  27604. }
  27605. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  27606. if v != nil {
  27607. v[mk] = mv
  27608. }
  27609. }
  27610. dd.ReadMapEnd()
  27611. d.depthDecr()
  27612. return v, changed
  27613. }
  27614. func (d *Decoder) fastpathDecMapUint64Float64R(f *codecFnInfo, rv reflect.Value) {
  27615. if rv.Kind() == reflect.Ptr {
  27616. vp := rv2i(rv).(*map[uint64]float64)
  27617. v, changed := fastpathTV.DecMapUint64Float64V(*vp, true, d)
  27618. if changed {
  27619. *vp = v
  27620. }
  27621. } else {
  27622. fastpathTV.DecMapUint64Float64V(rv2i(rv).(map[uint64]float64), false, d)
  27623. }
  27624. }
  27625. func (f fastpathT) DecMapUint64Float64X(vp *map[uint64]float64, d *Decoder) {
  27626. v, changed := f.DecMapUint64Float64V(*vp, true, d)
  27627. if changed {
  27628. *vp = v
  27629. }
  27630. }
  27631. func (_ fastpathT) DecMapUint64Float64V(v map[uint64]float64, canChange bool,
  27632. d *Decoder) (_ map[uint64]float64, changed bool) {
  27633. dd, esep := d.d, d.hh.hasElemSeparators()
  27634. containerLen := dd.ReadMapStart()
  27635. if canChange && v == nil {
  27636. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27637. v = make(map[uint64]float64, xlen)
  27638. changed = true
  27639. }
  27640. if containerLen == 0 {
  27641. dd.ReadMapEnd()
  27642. return v, changed
  27643. }
  27644. d.depthIncr()
  27645. var mk uint64
  27646. var mv float64
  27647. hasLen := containerLen > 0
  27648. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27649. if esep {
  27650. dd.ReadMapElemKey()
  27651. }
  27652. mk = dd.DecodeUint64()
  27653. if esep {
  27654. dd.ReadMapElemValue()
  27655. }
  27656. if dd.TryDecodeAsNil() {
  27657. if v == nil {
  27658. } else if d.h.DeleteOnNilMapValue {
  27659. delete(v, mk)
  27660. } else {
  27661. v[mk] = 0
  27662. }
  27663. continue
  27664. }
  27665. mv = dd.DecodeFloat64()
  27666. if v != nil {
  27667. v[mk] = mv
  27668. }
  27669. }
  27670. dd.ReadMapEnd()
  27671. d.depthDecr()
  27672. return v, changed
  27673. }
  27674. func (d *Decoder) fastpathDecMapUint64BoolR(f *codecFnInfo, rv reflect.Value) {
  27675. if rv.Kind() == reflect.Ptr {
  27676. vp := rv2i(rv).(*map[uint64]bool)
  27677. v, changed := fastpathTV.DecMapUint64BoolV(*vp, true, d)
  27678. if changed {
  27679. *vp = v
  27680. }
  27681. } else {
  27682. fastpathTV.DecMapUint64BoolV(rv2i(rv).(map[uint64]bool), false, d)
  27683. }
  27684. }
  27685. func (f fastpathT) DecMapUint64BoolX(vp *map[uint64]bool, d *Decoder) {
  27686. v, changed := f.DecMapUint64BoolV(*vp, true, d)
  27687. if changed {
  27688. *vp = v
  27689. }
  27690. }
  27691. func (_ fastpathT) DecMapUint64BoolV(v map[uint64]bool, canChange bool,
  27692. d *Decoder) (_ map[uint64]bool, changed bool) {
  27693. dd, esep := d.d, d.hh.hasElemSeparators()
  27694. containerLen := dd.ReadMapStart()
  27695. if canChange && v == nil {
  27696. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27697. v = make(map[uint64]bool, xlen)
  27698. changed = true
  27699. }
  27700. if containerLen == 0 {
  27701. dd.ReadMapEnd()
  27702. return v, changed
  27703. }
  27704. d.depthIncr()
  27705. var mk uint64
  27706. var mv bool
  27707. hasLen := containerLen > 0
  27708. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27709. if esep {
  27710. dd.ReadMapElemKey()
  27711. }
  27712. mk = dd.DecodeUint64()
  27713. if esep {
  27714. dd.ReadMapElemValue()
  27715. }
  27716. if dd.TryDecodeAsNil() {
  27717. if v == nil {
  27718. } else if d.h.DeleteOnNilMapValue {
  27719. delete(v, mk)
  27720. } else {
  27721. v[mk] = false
  27722. }
  27723. continue
  27724. }
  27725. mv = dd.DecodeBool()
  27726. if v != nil {
  27727. v[mk] = mv
  27728. }
  27729. }
  27730. dd.ReadMapEnd()
  27731. d.depthDecr()
  27732. return v, changed
  27733. }
  27734. func (d *Decoder) fastpathDecMapUintptrIntfR(f *codecFnInfo, rv reflect.Value) {
  27735. if rv.Kind() == reflect.Ptr {
  27736. vp := rv2i(rv).(*map[uintptr]interface{})
  27737. v, changed := fastpathTV.DecMapUintptrIntfV(*vp, true, d)
  27738. if changed {
  27739. *vp = v
  27740. }
  27741. } else {
  27742. fastpathTV.DecMapUintptrIntfV(rv2i(rv).(map[uintptr]interface{}), false, d)
  27743. }
  27744. }
  27745. func (f fastpathT) DecMapUintptrIntfX(vp *map[uintptr]interface{}, d *Decoder) {
  27746. v, changed := f.DecMapUintptrIntfV(*vp, true, d)
  27747. if changed {
  27748. *vp = v
  27749. }
  27750. }
  27751. func (_ fastpathT) DecMapUintptrIntfV(v map[uintptr]interface{}, canChange bool,
  27752. d *Decoder) (_ map[uintptr]interface{}, changed bool) {
  27753. dd, esep := d.d, d.hh.hasElemSeparators()
  27754. containerLen := dd.ReadMapStart()
  27755. if canChange && v == nil {
  27756. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27757. v = make(map[uintptr]interface{}, xlen)
  27758. changed = true
  27759. }
  27760. if containerLen == 0 {
  27761. dd.ReadMapEnd()
  27762. return v, changed
  27763. }
  27764. d.depthIncr()
  27765. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  27766. var mk uintptr
  27767. var mv interface{}
  27768. hasLen := containerLen > 0
  27769. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27770. if esep {
  27771. dd.ReadMapElemKey()
  27772. }
  27773. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27774. if esep {
  27775. dd.ReadMapElemValue()
  27776. }
  27777. if dd.TryDecodeAsNil() {
  27778. if v == nil {
  27779. } else if d.h.DeleteOnNilMapValue {
  27780. delete(v, mk)
  27781. } else {
  27782. v[mk] = nil
  27783. }
  27784. continue
  27785. }
  27786. if mapGet {
  27787. mv = v[mk]
  27788. } else {
  27789. mv = nil
  27790. }
  27791. d.decode(&mv)
  27792. if v != nil {
  27793. v[mk] = mv
  27794. }
  27795. }
  27796. dd.ReadMapEnd()
  27797. d.depthDecr()
  27798. return v, changed
  27799. }
  27800. func (d *Decoder) fastpathDecMapUintptrStringR(f *codecFnInfo, rv reflect.Value) {
  27801. if rv.Kind() == reflect.Ptr {
  27802. vp := rv2i(rv).(*map[uintptr]string)
  27803. v, changed := fastpathTV.DecMapUintptrStringV(*vp, true, d)
  27804. if changed {
  27805. *vp = v
  27806. }
  27807. } else {
  27808. fastpathTV.DecMapUintptrStringV(rv2i(rv).(map[uintptr]string), false, d)
  27809. }
  27810. }
  27811. func (f fastpathT) DecMapUintptrStringX(vp *map[uintptr]string, d *Decoder) {
  27812. v, changed := f.DecMapUintptrStringV(*vp, true, d)
  27813. if changed {
  27814. *vp = v
  27815. }
  27816. }
  27817. func (_ fastpathT) DecMapUintptrStringV(v map[uintptr]string, canChange bool,
  27818. d *Decoder) (_ map[uintptr]string, changed bool) {
  27819. dd, esep := d.d, d.hh.hasElemSeparators()
  27820. containerLen := dd.ReadMapStart()
  27821. if canChange && v == nil {
  27822. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  27823. v = make(map[uintptr]string, xlen)
  27824. changed = true
  27825. }
  27826. if containerLen == 0 {
  27827. dd.ReadMapEnd()
  27828. return v, changed
  27829. }
  27830. d.depthIncr()
  27831. var mk uintptr
  27832. var mv string
  27833. hasLen := containerLen > 0
  27834. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27835. if esep {
  27836. dd.ReadMapElemKey()
  27837. }
  27838. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27839. if esep {
  27840. dd.ReadMapElemValue()
  27841. }
  27842. if dd.TryDecodeAsNil() {
  27843. if v == nil {
  27844. } else if d.h.DeleteOnNilMapValue {
  27845. delete(v, mk)
  27846. } else {
  27847. v[mk] = ""
  27848. }
  27849. continue
  27850. }
  27851. mv = dd.DecodeString()
  27852. if v != nil {
  27853. v[mk] = mv
  27854. }
  27855. }
  27856. dd.ReadMapEnd()
  27857. d.depthDecr()
  27858. return v, changed
  27859. }
  27860. func (d *Decoder) fastpathDecMapUintptrUintR(f *codecFnInfo, rv reflect.Value) {
  27861. if rv.Kind() == reflect.Ptr {
  27862. vp := rv2i(rv).(*map[uintptr]uint)
  27863. v, changed := fastpathTV.DecMapUintptrUintV(*vp, true, d)
  27864. if changed {
  27865. *vp = v
  27866. }
  27867. } else {
  27868. fastpathTV.DecMapUintptrUintV(rv2i(rv).(map[uintptr]uint), false, d)
  27869. }
  27870. }
  27871. func (f fastpathT) DecMapUintptrUintX(vp *map[uintptr]uint, d *Decoder) {
  27872. v, changed := f.DecMapUintptrUintV(*vp, true, d)
  27873. if changed {
  27874. *vp = v
  27875. }
  27876. }
  27877. func (_ fastpathT) DecMapUintptrUintV(v map[uintptr]uint, canChange bool,
  27878. d *Decoder) (_ map[uintptr]uint, changed bool) {
  27879. dd, esep := d.d, d.hh.hasElemSeparators()
  27880. containerLen := dd.ReadMapStart()
  27881. if canChange && v == nil {
  27882. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  27883. v = make(map[uintptr]uint, xlen)
  27884. changed = true
  27885. }
  27886. if containerLen == 0 {
  27887. dd.ReadMapEnd()
  27888. return v, changed
  27889. }
  27890. d.depthIncr()
  27891. var mk uintptr
  27892. var mv uint
  27893. hasLen := containerLen > 0
  27894. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27895. if esep {
  27896. dd.ReadMapElemKey()
  27897. }
  27898. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27899. if esep {
  27900. dd.ReadMapElemValue()
  27901. }
  27902. if dd.TryDecodeAsNil() {
  27903. if v == nil {
  27904. } else if d.h.DeleteOnNilMapValue {
  27905. delete(v, mk)
  27906. } else {
  27907. v[mk] = 0
  27908. }
  27909. continue
  27910. }
  27911. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27912. if v != nil {
  27913. v[mk] = mv
  27914. }
  27915. }
  27916. dd.ReadMapEnd()
  27917. d.depthDecr()
  27918. return v, changed
  27919. }
  27920. func (d *Decoder) fastpathDecMapUintptrUint8R(f *codecFnInfo, rv reflect.Value) {
  27921. if rv.Kind() == reflect.Ptr {
  27922. vp := rv2i(rv).(*map[uintptr]uint8)
  27923. v, changed := fastpathTV.DecMapUintptrUint8V(*vp, true, d)
  27924. if changed {
  27925. *vp = v
  27926. }
  27927. } else {
  27928. fastpathTV.DecMapUintptrUint8V(rv2i(rv).(map[uintptr]uint8), false, d)
  27929. }
  27930. }
  27931. func (f fastpathT) DecMapUintptrUint8X(vp *map[uintptr]uint8, d *Decoder) {
  27932. v, changed := f.DecMapUintptrUint8V(*vp, true, d)
  27933. if changed {
  27934. *vp = v
  27935. }
  27936. }
  27937. func (_ fastpathT) DecMapUintptrUint8V(v map[uintptr]uint8, canChange bool,
  27938. d *Decoder) (_ map[uintptr]uint8, changed bool) {
  27939. dd, esep := d.d, d.hh.hasElemSeparators()
  27940. containerLen := dd.ReadMapStart()
  27941. if canChange && v == nil {
  27942. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  27943. v = make(map[uintptr]uint8, xlen)
  27944. changed = true
  27945. }
  27946. if containerLen == 0 {
  27947. dd.ReadMapEnd()
  27948. return v, changed
  27949. }
  27950. d.depthIncr()
  27951. var mk uintptr
  27952. var mv uint8
  27953. hasLen := containerLen > 0
  27954. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  27955. if esep {
  27956. dd.ReadMapElemKey()
  27957. }
  27958. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  27959. if esep {
  27960. dd.ReadMapElemValue()
  27961. }
  27962. if dd.TryDecodeAsNil() {
  27963. if v == nil {
  27964. } else if d.h.DeleteOnNilMapValue {
  27965. delete(v, mk)
  27966. } else {
  27967. v[mk] = 0
  27968. }
  27969. continue
  27970. }
  27971. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  27972. if v != nil {
  27973. v[mk] = mv
  27974. }
  27975. }
  27976. dd.ReadMapEnd()
  27977. d.depthDecr()
  27978. return v, changed
  27979. }
  27980. func (d *Decoder) fastpathDecMapUintptrUint16R(f *codecFnInfo, rv reflect.Value) {
  27981. if rv.Kind() == reflect.Ptr {
  27982. vp := rv2i(rv).(*map[uintptr]uint16)
  27983. v, changed := fastpathTV.DecMapUintptrUint16V(*vp, true, d)
  27984. if changed {
  27985. *vp = v
  27986. }
  27987. } else {
  27988. fastpathTV.DecMapUintptrUint16V(rv2i(rv).(map[uintptr]uint16), false, d)
  27989. }
  27990. }
  27991. func (f fastpathT) DecMapUintptrUint16X(vp *map[uintptr]uint16, d *Decoder) {
  27992. v, changed := f.DecMapUintptrUint16V(*vp, true, d)
  27993. if changed {
  27994. *vp = v
  27995. }
  27996. }
  27997. func (_ fastpathT) DecMapUintptrUint16V(v map[uintptr]uint16, canChange bool,
  27998. d *Decoder) (_ map[uintptr]uint16, changed bool) {
  27999. dd, esep := d.d, d.hh.hasElemSeparators()
  28000. containerLen := dd.ReadMapStart()
  28001. if canChange && v == nil {
  28002. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28003. v = make(map[uintptr]uint16, xlen)
  28004. changed = true
  28005. }
  28006. if containerLen == 0 {
  28007. dd.ReadMapEnd()
  28008. return v, changed
  28009. }
  28010. d.depthIncr()
  28011. var mk uintptr
  28012. var mv uint16
  28013. hasLen := containerLen > 0
  28014. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28015. if esep {
  28016. dd.ReadMapElemKey()
  28017. }
  28018. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28019. if esep {
  28020. dd.ReadMapElemValue()
  28021. }
  28022. if dd.TryDecodeAsNil() {
  28023. if v == nil {
  28024. } else if d.h.DeleteOnNilMapValue {
  28025. delete(v, mk)
  28026. } else {
  28027. v[mk] = 0
  28028. }
  28029. continue
  28030. }
  28031. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28032. if v != nil {
  28033. v[mk] = mv
  28034. }
  28035. }
  28036. dd.ReadMapEnd()
  28037. d.depthDecr()
  28038. return v, changed
  28039. }
  28040. func (d *Decoder) fastpathDecMapUintptrUint32R(f *codecFnInfo, rv reflect.Value) {
  28041. if rv.Kind() == reflect.Ptr {
  28042. vp := rv2i(rv).(*map[uintptr]uint32)
  28043. v, changed := fastpathTV.DecMapUintptrUint32V(*vp, true, d)
  28044. if changed {
  28045. *vp = v
  28046. }
  28047. } else {
  28048. fastpathTV.DecMapUintptrUint32V(rv2i(rv).(map[uintptr]uint32), false, d)
  28049. }
  28050. }
  28051. func (f fastpathT) DecMapUintptrUint32X(vp *map[uintptr]uint32, d *Decoder) {
  28052. v, changed := f.DecMapUintptrUint32V(*vp, true, d)
  28053. if changed {
  28054. *vp = v
  28055. }
  28056. }
  28057. func (_ fastpathT) DecMapUintptrUint32V(v map[uintptr]uint32, canChange bool,
  28058. d *Decoder) (_ map[uintptr]uint32, changed bool) {
  28059. dd, esep := d.d, d.hh.hasElemSeparators()
  28060. containerLen := dd.ReadMapStart()
  28061. if canChange && v == nil {
  28062. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28063. v = make(map[uintptr]uint32, xlen)
  28064. changed = true
  28065. }
  28066. if containerLen == 0 {
  28067. dd.ReadMapEnd()
  28068. return v, changed
  28069. }
  28070. d.depthIncr()
  28071. var mk uintptr
  28072. var mv uint32
  28073. hasLen := containerLen > 0
  28074. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28075. if esep {
  28076. dd.ReadMapElemKey()
  28077. }
  28078. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28079. if esep {
  28080. dd.ReadMapElemValue()
  28081. }
  28082. if dd.TryDecodeAsNil() {
  28083. if v == nil {
  28084. } else if d.h.DeleteOnNilMapValue {
  28085. delete(v, mk)
  28086. } else {
  28087. v[mk] = 0
  28088. }
  28089. continue
  28090. }
  28091. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  28092. if v != nil {
  28093. v[mk] = mv
  28094. }
  28095. }
  28096. dd.ReadMapEnd()
  28097. d.depthDecr()
  28098. return v, changed
  28099. }
  28100. func (d *Decoder) fastpathDecMapUintptrUint64R(f *codecFnInfo, rv reflect.Value) {
  28101. if rv.Kind() == reflect.Ptr {
  28102. vp := rv2i(rv).(*map[uintptr]uint64)
  28103. v, changed := fastpathTV.DecMapUintptrUint64V(*vp, true, d)
  28104. if changed {
  28105. *vp = v
  28106. }
  28107. } else {
  28108. fastpathTV.DecMapUintptrUint64V(rv2i(rv).(map[uintptr]uint64), false, d)
  28109. }
  28110. }
  28111. func (f fastpathT) DecMapUintptrUint64X(vp *map[uintptr]uint64, d *Decoder) {
  28112. v, changed := f.DecMapUintptrUint64V(*vp, true, d)
  28113. if changed {
  28114. *vp = v
  28115. }
  28116. }
  28117. func (_ fastpathT) DecMapUintptrUint64V(v map[uintptr]uint64, canChange bool,
  28118. d *Decoder) (_ map[uintptr]uint64, changed bool) {
  28119. dd, esep := d.d, d.hh.hasElemSeparators()
  28120. containerLen := dd.ReadMapStart()
  28121. if canChange && v == nil {
  28122. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28123. v = make(map[uintptr]uint64, xlen)
  28124. changed = true
  28125. }
  28126. if containerLen == 0 {
  28127. dd.ReadMapEnd()
  28128. return v, changed
  28129. }
  28130. d.depthIncr()
  28131. var mk uintptr
  28132. var mv uint64
  28133. hasLen := containerLen > 0
  28134. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28135. if esep {
  28136. dd.ReadMapElemKey()
  28137. }
  28138. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28139. if esep {
  28140. dd.ReadMapElemValue()
  28141. }
  28142. if dd.TryDecodeAsNil() {
  28143. if v == nil {
  28144. } else if d.h.DeleteOnNilMapValue {
  28145. delete(v, mk)
  28146. } else {
  28147. v[mk] = 0
  28148. }
  28149. continue
  28150. }
  28151. mv = dd.DecodeUint64()
  28152. if v != nil {
  28153. v[mk] = mv
  28154. }
  28155. }
  28156. dd.ReadMapEnd()
  28157. d.depthDecr()
  28158. return v, changed
  28159. }
  28160. func (d *Decoder) fastpathDecMapUintptrUintptrR(f *codecFnInfo, rv reflect.Value) {
  28161. if rv.Kind() == reflect.Ptr {
  28162. vp := rv2i(rv).(*map[uintptr]uintptr)
  28163. v, changed := fastpathTV.DecMapUintptrUintptrV(*vp, true, d)
  28164. if changed {
  28165. *vp = v
  28166. }
  28167. } else {
  28168. fastpathTV.DecMapUintptrUintptrV(rv2i(rv).(map[uintptr]uintptr), false, d)
  28169. }
  28170. }
  28171. func (f fastpathT) DecMapUintptrUintptrX(vp *map[uintptr]uintptr, d *Decoder) {
  28172. v, changed := f.DecMapUintptrUintptrV(*vp, true, d)
  28173. if changed {
  28174. *vp = v
  28175. }
  28176. }
  28177. func (_ fastpathT) DecMapUintptrUintptrV(v map[uintptr]uintptr, canChange bool,
  28178. d *Decoder) (_ map[uintptr]uintptr, changed bool) {
  28179. dd, esep := d.d, d.hh.hasElemSeparators()
  28180. containerLen := dd.ReadMapStart()
  28181. if canChange && v == nil {
  28182. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28183. v = make(map[uintptr]uintptr, xlen)
  28184. changed = true
  28185. }
  28186. if containerLen == 0 {
  28187. dd.ReadMapEnd()
  28188. return v, changed
  28189. }
  28190. d.depthIncr()
  28191. var mk uintptr
  28192. var mv uintptr
  28193. hasLen := containerLen > 0
  28194. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28195. if esep {
  28196. dd.ReadMapElemKey()
  28197. }
  28198. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28199. if esep {
  28200. dd.ReadMapElemValue()
  28201. }
  28202. if dd.TryDecodeAsNil() {
  28203. if v == nil {
  28204. } else if d.h.DeleteOnNilMapValue {
  28205. delete(v, mk)
  28206. } else {
  28207. v[mk] = 0
  28208. }
  28209. continue
  28210. }
  28211. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28212. if v != nil {
  28213. v[mk] = mv
  28214. }
  28215. }
  28216. dd.ReadMapEnd()
  28217. d.depthDecr()
  28218. return v, changed
  28219. }
  28220. func (d *Decoder) fastpathDecMapUintptrIntR(f *codecFnInfo, rv reflect.Value) {
  28221. if rv.Kind() == reflect.Ptr {
  28222. vp := rv2i(rv).(*map[uintptr]int)
  28223. v, changed := fastpathTV.DecMapUintptrIntV(*vp, true, d)
  28224. if changed {
  28225. *vp = v
  28226. }
  28227. } else {
  28228. fastpathTV.DecMapUintptrIntV(rv2i(rv).(map[uintptr]int), false, d)
  28229. }
  28230. }
  28231. func (f fastpathT) DecMapUintptrIntX(vp *map[uintptr]int, d *Decoder) {
  28232. v, changed := f.DecMapUintptrIntV(*vp, true, d)
  28233. if changed {
  28234. *vp = v
  28235. }
  28236. }
  28237. func (_ fastpathT) DecMapUintptrIntV(v map[uintptr]int, canChange bool,
  28238. d *Decoder) (_ map[uintptr]int, changed bool) {
  28239. dd, esep := d.d, d.hh.hasElemSeparators()
  28240. containerLen := dd.ReadMapStart()
  28241. if canChange && v == nil {
  28242. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28243. v = make(map[uintptr]int, xlen)
  28244. changed = true
  28245. }
  28246. if containerLen == 0 {
  28247. dd.ReadMapEnd()
  28248. return v, changed
  28249. }
  28250. d.depthIncr()
  28251. var mk uintptr
  28252. var mv int
  28253. hasLen := containerLen > 0
  28254. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28255. if esep {
  28256. dd.ReadMapElemKey()
  28257. }
  28258. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28259. if esep {
  28260. dd.ReadMapElemValue()
  28261. }
  28262. if dd.TryDecodeAsNil() {
  28263. if v == nil {
  28264. } else if d.h.DeleteOnNilMapValue {
  28265. delete(v, mk)
  28266. } else {
  28267. v[mk] = 0
  28268. }
  28269. continue
  28270. }
  28271. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28272. if v != nil {
  28273. v[mk] = mv
  28274. }
  28275. }
  28276. dd.ReadMapEnd()
  28277. d.depthDecr()
  28278. return v, changed
  28279. }
  28280. func (d *Decoder) fastpathDecMapUintptrInt8R(f *codecFnInfo, rv reflect.Value) {
  28281. if rv.Kind() == reflect.Ptr {
  28282. vp := rv2i(rv).(*map[uintptr]int8)
  28283. v, changed := fastpathTV.DecMapUintptrInt8V(*vp, true, d)
  28284. if changed {
  28285. *vp = v
  28286. }
  28287. } else {
  28288. fastpathTV.DecMapUintptrInt8V(rv2i(rv).(map[uintptr]int8), false, d)
  28289. }
  28290. }
  28291. func (f fastpathT) DecMapUintptrInt8X(vp *map[uintptr]int8, d *Decoder) {
  28292. v, changed := f.DecMapUintptrInt8V(*vp, true, d)
  28293. if changed {
  28294. *vp = v
  28295. }
  28296. }
  28297. func (_ fastpathT) DecMapUintptrInt8V(v map[uintptr]int8, canChange bool,
  28298. d *Decoder) (_ map[uintptr]int8, changed bool) {
  28299. dd, esep := d.d, d.hh.hasElemSeparators()
  28300. containerLen := dd.ReadMapStart()
  28301. if canChange && v == nil {
  28302. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28303. v = make(map[uintptr]int8, xlen)
  28304. changed = true
  28305. }
  28306. if containerLen == 0 {
  28307. dd.ReadMapEnd()
  28308. return v, changed
  28309. }
  28310. d.depthIncr()
  28311. var mk uintptr
  28312. var mv int8
  28313. hasLen := containerLen > 0
  28314. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28315. if esep {
  28316. dd.ReadMapElemKey()
  28317. }
  28318. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28319. if esep {
  28320. dd.ReadMapElemValue()
  28321. }
  28322. if dd.TryDecodeAsNil() {
  28323. if v == nil {
  28324. } else if d.h.DeleteOnNilMapValue {
  28325. delete(v, mk)
  28326. } else {
  28327. v[mk] = 0
  28328. }
  28329. continue
  28330. }
  28331. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  28332. if v != nil {
  28333. v[mk] = mv
  28334. }
  28335. }
  28336. dd.ReadMapEnd()
  28337. d.depthDecr()
  28338. return v, changed
  28339. }
  28340. func (d *Decoder) fastpathDecMapUintptrInt16R(f *codecFnInfo, rv reflect.Value) {
  28341. if rv.Kind() == reflect.Ptr {
  28342. vp := rv2i(rv).(*map[uintptr]int16)
  28343. v, changed := fastpathTV.DecMapUintptrInt16V(*vp, true, d)
  28344. if changed {
  28345. *vp = v
  28346. }
  28347. } else {
  28348. fastpathTV.DecMapUintptrInt16V(rv2i(rv).(map[uintptr]int16), false, d)
  28349. }
  28350. }
  28351. func (f fastpathT) DecMapUintptrInt16X(vp *map[uintptr]int16, d *Decoder) {
  28352. v, changed := f.DecMapUintptrInt16V(*vp, true, d)
  28353. if changed {
  28354. *vp = v
  28355. }
  28356. }
  28357. func (_ fastpathT) DecMapUintptrInt16V(v map[uintptr]int16, canChange bool,
  28358. d *Decoder) (_ map[uintptr]int16, changed bool) {
  28359. dd, esep := d.d, d.hh.hasElemSeparators()
  28360. containerLen := dd.ReadMapStart()
  28361. if canChange && v == nil {
  28362. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28363. v = make(map[uintptr]int16, xlen)
  28364. changed = true
  28365. }
  28366. if containerLen == 0 {
  28367. dd.ReadMapEnd()
  28368. return v, changed
  28369. }
  28370. d.depthIncr()
  28371. var mk uintptr
  28372. var mv int16
  28373. hasLen := containerLen > 0
  28374. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28375. if esep {
  28376. dd.ReadMapElemKey()
  28377. }
  28378. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28379. if esep {
  28380. dd.ReadMapElemValue()
  28381. }
  28382. if dd.TryDecodeAsNil() {
  28383. if v == nil {
  28384. } else if d.h.DeleteOnNilMapValue {
  28385. delete(v, mk)
  28386. } else {
  28387. v[mk] = 0
  28388. }
  28389. continue
  28390. }
  28391. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  28392. if v != nil {
  28393. v[mk] = mv
  28394. }
  28395. }
  28396. dd.ReadMapEnd()
  28397. d.depthDecr()
  28398. return v, changed
  28399. }
  28400. func (d *Decoder) fastpathDecMapUintptrInt32R(f *codecFnInfo, rv reflect.Value) {
  28401. if rv.Kind() == reflect.Ptr {
  28402. vp := rv2i(rv).(*map[uintptr]int32)
  28403. v, changed := fastpathTV.DecMapUintptrInt32V(*vp, true, d)
  28404. if changed {
  28405. *vp = v
  28406. }
  28407. } else {
  28408. fastpathTV.DecMapUintptrInt32V(rv2i(rv).(map[uintptr]int32), false, d)
  28409. }
  28410. }
  28411. func (f fastpathT) DecMapUintptrInt32X(vp *map[uintptr]int32, d *Decoder) {
  28412. v, changed := f.DecMapUintptrInt32V(*vp, true, d)
  28413. if changed {
  28414. *vp = v
  28415. }
  28416. }
  28417. func (_ fastpathT) DecMapUintptrInt32V(v map[uintptr]int32, canChange bool,
  28418. d *Decoder) (_ map[uintptr]int32, changed bool) {
  28419. dd, esep := d.d, d.hh.hasElemSeparators()
  28420. containerLen := dd.ReadMapStart()
  28421. if canChange && v == nil {
  28422. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28423. v = make(map[uintptr]int32, xlen)
  28424. changed = true
  28425. }
  28426. if containerLen == 0 {
  28427. dd.ReadMapEnd()
  28428. return v, changed
  28429. }
  28430. d.depthIncr()
  28431. var mk uintptr
  28432. var mv int32
  28433. hasLen := containerLen > 0
  28434. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28435. if esep {
  28436. dd.ReadMapElemKey()
  28437. }
  28438. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28439. if esep {
  28440. dd.ReadMapElemValue()
  28441. }
  28442. if dd.TryDecodeAsNil() {
  28443. if v == nil {
  28444. } else if d.h.DeleteOnNilMapValue {
  28445. delete(v, mk)
  28446. } else {
  28447. v[mk] = 0
  28448. }
  28449. continue
  28450. }
  28451. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  28452. if v != nil {
  28453. v[mk] = mv
  28454. }
  28455. }
  28456. dd.ReadMapEnd()
  28457. d.depthDecr()
  28458. return v, changed
  28459. }
  28460. func (d *Decoder) fastpathDecMapUintptrInt64R(f *codecFnInfo, rv reflect.Value) {
  28461. if rv.Kind() == reflect.Ptr {
  28462. vp := rv2i(rv).(*map[uintptr]int64)
  28463. v, changed := fastpathTV.DecMapUintptrInt64V(*vp, true, d)
  28464. if changed {
  28465. *vp = v
  28466. }
  28467. } else {
  28468. fastpathTV.DecMapUintptrInt64V(rv2i(rv).(map[uintptr]int64), false, d)
  28469. }
  28470. }
  28471. func (f fastpathT) DecMapUintptrInt64X(vp *map[uintptr]int64, d *Decoder) {
  28472. v, changed := f.DecMapUintptrInt64V(*vp, true, d)
  28473. if changed {
  28474. *vp = v
  28475. }
  28476. }
  28477. func (_ fastpathT) DecMapUintptrInt64V(v map[uintptr]int64, canChange bool,
  28478. d *Decoder) (_ map[uintptr]int64, changed bool) {
  28479. dd, esep := d.d, d.hh.hasElemSeparators()
  28480. containerLen := dd.ReadMapStart()
  28481. if canChange && v == nil {
  28482. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28483. v = make(map[uintptr]int64, xlen)
  28484. changed = true
  28485. }
  28486. if containerLen == 0 {
  28487. dd.ReadMapEnd()
  28488. return v, changed
  28489. }
  28490. d.depthIncr()
  28491. var mk uintptr
  28492. var mv int64
  28493. hasLen := containerLen > 0
  28494. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28495. if esep {
  28496. dd.ReadMapElemKey()
  28497. }
  28498. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28499. if esep {
  28500. dd.ReadMapElemValue()
  28501. }
  28502. if dd.TryDecodeAsNil() {
  28503. if v == nil {
  28504. } else if d.h.DeleteOnNilMapValue {
  28505. delete(v, mk)
  28506. } else {
  28507. v[mk] = 0
  28508. }
  28509. continue
  28510. }
  28511. mv = dd.DecodeInt64()
  28512. if v != nil {
  28513. v[mk] = mv
  28514. }
  28515. }
  28516. dd.ReadMapEnd()
  28517. d.depthDecr()
  28518. return v, changed
  28519. }
  28520. func (d *Decoder) fastpathDecMapUintptrFloat32R(f *codecFnInfo, rv reflect.Value) {
  28521. if rv.Kind() == reflect.Ptr {
  28522. vp := rv2i(rv).(*map[uintptr]float32)
  28523. v, changed := fastpathTV.DecMapUintptrFloat32V(*vp, true, d)
  28524. if changed {
  28525. *vp = v
  28526. }
  28527. } else {
  28528. fastpathTV.DecMapUintptrFloat32V(rv2i(rv).(map[uintptr]float32), false, d)
  28529. }
  28530. }
  28531. func (f fastpathT) DecMapUintptrFloat32X(vp *map[uintptr]float32, d *Decoder) {
  28532. v, changed := f.DecMapUintptrFloat32V(*vp, true, d)
  28533. if changed {
  28534. *vp = v
  28535. }
  28536. }
  28537. func (_ fastpathT) DecMapUintptrFloat32V(v map[uintptr]float32, canChange bool,
  28538. d *Decoder) (_ map[uintptr]float32, changed bool) {
  28539. dd, esep := d.d, d.hh.hasElemSeparators()
  28540. containerLen := dd.ReadMapStart()
  28541. if canChange && v == nil {
  28542. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  28543. v = make(map[uintptr]float32, xlen)
  28544. changed = true
  28545. }
  28546. if containerLen == 0 {
  28547. dd.ReadMapEnd()
  28548. return v, changed
  28549. }
  28550. d.depthIncr()
  28551. var mk uintptr
  28552. var mv float32
  28553. hasLen := containerLen > 0
  28554. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28555. if esep {
  28556. dd.ReadMapElemKey()
  28557. }
  28558. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28559. if esep {
  28560. dd.ReadMapElemValue()
  28561. }
  28562. if dd.TryDecodeAsNil() {
  28563. if v == nil {
  28564. } else if d.h.DeleteOnNilMapValue {
  28565. delete(v, mk)
  28566. } else {
  28567. v[mk] = 0
  28568. }
  28569. continue
  28570. }
  28571. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  28572. if v != nil {
  28573. v[mk] = mv
  28574. }
  28575. }
  28576. dd.ReadMapEnd()
  28577. d.depthDecr()
  28578. return v, changed
  28579. }
  28580. func (d *Decoder) fastpathDecMapUintptrFloat64R(f *codecFnInfo, rv reflect.Value) {
  28581. if rv.Kind() == reflect.Ptr {
  28582. vp := rv2i(rv).(*map[uintptr]float64)
  28583. v, changed := fastpathTV.DecMapUintptrFloat64V(*vp, true, d)
  28584. if changed {
  28585. *vp = v
  28586. }
  28587. } else {
  28588. fastpathTV.DecMapUintptrFloat64V(rv2i(rv).(map[uintptr]float64), false, d)
  28589. }
  28590. }
  28591. func (f fastpathT) DecMapUintptrFloat64X(vp *map[uintptr]float64, d *Decoder) {
  28592. v, changed := f.DecMapUintptrFloat64V(*vp, true, d)
  28593. if changed {
  28594. *vp = v
  28595. }
  28596. }
  28597. func (_ fastpathT) DecMapUintptrFloat64V(v map[uintptr]float64, canChange bool,
  28598. d *Decoder) (_ map[uintptr]float64, changed bool) {
  28599. dd, esep := d.d, d.hh.hasElemSeparators()
  28600. containerLen := dd.ReadMapStart()
  28601. if canChange && v == nil {
  28602. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28603. v = make(map[uintptr]float64, xlen)
  28604. changed = true
  28605. }
  28606. if containerLen == 0 {
  28607. dd.ReadMapEnd()
  28608. return v, changed
  28609. }
  28610. d.depthIncr()
  28611. var mk uintptr
  28612. var mv float64
  28613. hasLen := containerLen > 0
  28614. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28615. if esep {
  28616. dd.ReadMapElemKey()
  28617. }
  28618. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28619. if esep {
  28620. dd.ReadMapElemValue()
  28621. }
  28622. if dd.TryDecodeAsNil() {
  28623. if v == nil {
  28624. } else if d.h.DeleteOnNilMapValue {
  28625. delete(v, mk)
  28626. } else {
  28627. v[mk] = 0
  28628. }
  28629. continue
  28630. }
  28631. mv = dd.DecodeFloat64()
  28632. if v != nil {
  28633. v[mk] = mv
  28634. }
  28635. }
  28636. dd.ReadMapEnd()
  28637. d.depthDecr()
  28638. return v, changed
  28639. }
  28640. func (d *Decoder) fastpathDecMapUintptrBoolR(f *codecFnInfo, rv reflect.Value) {
  28641. if rv.Kind() == reflect.Ptr {
  28642. vp := rv2i(rv).(*map[uintptr]bool)
  28643. v, changed := fastpathTV.DecMapUintptrBoolV(*vp, true, d)
  28644. if changed {
  28645. *vp = v
  28646. }
  28647. } else {
  28648. fastpathTV.DecMapUintptrBoolV(rv2i(rv).(map[uintptr]bool), false, d)
  28649. }
  28650. }
  28651. func (f fastpathT) DecMapUintptrBoolX(vp *map[uintptr]bool, d *Decoder) {
  28652. v, changed := f.DecMapUintptrBoolV(*vp, true, d)
  28653. if changed {
  28654. *vp = v
  28655. }
  28656. }
  28657. func (_ fastpathT) DecMapUintptrBoolV(v map[uintptr]bool, canChange bool,
  28658. d *Decoder) (_ map[uintptr]bool, changed bool) {
  28659. dd, esep := d.d, d.hh.hasElemSeparators()
  28660. containerLen := dd.ReadMapStart()
  28661. if canChange && v == nil {
  28662. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28663. v = make(map[uintptr]bool, xlen)
  28664. changed = true
  28665. }
  28666. if containerLen == 0 {
  28667. dd.ReadMapEnd()
  28668. return v, changed
  28669. }
  28670. d.depthIncr()
  28671. var mk uintptr
  28672. var mv bool
  28673. hasLen := containerLen > 0
  28674. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28675. if esep {
  28676. dd.ReadMapElemKey()
  28677. }
  28678. mk = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28679. if esep {
  28680. dd.ReadMapElemValue()
  28681. }
  28682. if dd.TryDecodeAsNil() {
  28683. if v == nil {
  28684. } else if d.h.DeleteOnNilMapValue {
  28685. delete(v, mk)
  28686. } else {
  28687. v[mk] = false
  28688. }
  28689. continue
  28690. }
  28691. mv = dd.DecodeBool()
  28692. if v != nil {
  28693. v[mk] = mv
  28694. }
  28695. }
  28696. dd.ReadMapEnd()
  28697. d.depthDecr()
  28698. return v, changed
  28699. }
  28700. func (d *Decoder) fastpathDecMapIntIntfR(f *codecFnInfo, rv reflect.Value) {
  28701. if rv.Kind() == reflect.Ptr {
  28702. vp := rv2i(rv).(*map[int]interface{})
  28703. v, changed := fastpathTV.DecMapIntIntfV(*vp, true, d)
  28704. if changed {
  28705. *vp = v
  28706. }
  28707. } else {
  28708. fastpathTV.DecMapIntIntfV(rv2i(rv).(map[int]interface{}), false, d)
  28709. }
  28710. }
  28711. func (f fastpathT) DecMapIntIntfX(vp *map[int]interface{}, d *Decoder) {
  28712. v, changed := f.DecMapIntIntfV(*vp, true, d)
  28713. if changed {
  28714. *vp = v
  28715. }
  28716. }
  28717. func (_ fastpathT) DecMapIntIntfV(v map[int]interface{}, canChange bool,
  28718. d *Decoder) (_ map[int]interface{}, changed bool) {
  28719. dd, esep := d.d, d.hh.hasElemSeparators()
  28720. containerLen := dd.ReadMapStart()
  28721. if canChange && v == nil {
  28722. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28723. v = make(map[int]interface{}, xlen)
  28724. changed = true
  28725. }
  28726. if containerLen == 0 {
  28727. dd.ReadMapEnd()
  28728. return v, changed
  28729. }
  28730. d.depthIncr()
  28731. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  28732. var mk int
  28733. var mv interface{}
  28734. hasLen := containerLen > 0
  28735. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28736. if esep {
  28737. dd.ReadMapElemKey()
  28738. }
  28739. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28740. if esep {
  28741. dd.ReadMapElemValue()
  28742. }
  28743. if dd.TryDecodeAsNil() {
  28744. if v == nil {
  28745. } else if d.h.DeleteOnNilMapValue {
  28746. delete(v, mk)
  28747. } else {
  28748. v[mk] = nil
  28749. }
  28750. continue
  28751. }
  28752. if mapGet {
  28753. mv = v[mk]
  28754. } else {
  28755. mv = nil
  28756. }
  28757. d.decode(&mv)
  28758. if v != nil {
  28759. v[mk] = mv
  28760. }
  28761. }
  28762. dd.ReadMapEnd()
  28763. d.depthDecr()
  28764. return v, changed
  28765. }
  28766. func (d *Decoder) fastpathDecMapIntStringR(f *codecFnInfo, rv reflect.Value) {
  28767. if rv.Kind() == reflect.Ptr {
  28768. vp := rv2i(rv).(*map[int]string)
  28769. v, changed := fastpathTV.DecMapIntStringV(*vp, true, d)
  28770. if changed {
  28771. *vp = v
  28772. }
  28773. } else {
  28774. fastpathTV.DecMapIntStringV(rv2i(rv).(map[int]string), false, d)
  28775. }
  28776. }
  28777. func (f fastpathT) DecMapIntStringX(vp *map[int]string, d *Decoder) {
  28778. v, changed := f.DecMapIntStringV(*vp, true, d)
  28779. if changed {
  28780. *vp = v
  28781. }
  28782. }
  28783. func (_ fastpathT) DecMapIntStringV(v map[int]string, canChange bool,
  28784. d *Decoder) (_ map[int]string, changed bool) {
  28785. dd, esep := d.d, d.hh.hasElemSeparators()
  28786. containerLen := dd.ReadMapStart()
  28787. if canChange && v == nil {
  28788. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  28789. v = make(map[int]string, xlen)
  28790. changed = true
  28791. }
  28792. if containerLen == 0 {
  28793. dd.ReadMapEnd()
  28794. return v, changed
  28795. }
  28796. d.depthIncr()
  28797. var mk int
  28798. var mv string
  28799. hasLen := containerLen > 0
  28800. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28801. if esep {
  28802. dd.ReadMapElemKey()
  28803. }
  28804. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28805. if esep {
  28806. dd.ReadMapElemValue()
  28807. }
  28808. if dd.TryDecodeAsNil() {
  28809. if v == nil {
  28810. } else if d.h.DeleteOnNilMapValue {
  28811. delete(v, mk)
  28812. } else {
  28813. v[mk] = ""
  28814. }
  28815. continue
  28816. }
  28817. mv = dd.DecodeString()
  28818. if v != nil {
  28819. v[mk] = mv
  28820. }
  28821. }
  28822. dd.ReadMapEnd()
  28823. d.depthDecr()
  28824. return v, changed
  28825. }
  28826. func (d *Decoder) fastpathDecMapIntUintR(f *codecFnInfo, rv reflect.Value) {
  28827. if rv.Kind() == reflect.Ptr {
  28828. vp := rv2i(rv).(*map[int]uint)
  28829. v, changed := fastpathTV.DecMapIntUintV(*vp, true, d)
  28830. if changed {
  28831. *vp = v
  28832. }
  28833. } else {
  28834. fastpathTV.DecMapIntUintV(rv2i(rv).(map[int]uint), false, d)
  28835. }
  28836. }
  28837. func (f fastpathT) DecMapIntUintX(vp *map[int]uint, d *Decoder) {
  28838. v, changed := f.DecMapIntUintV(*vp, true, d)
  28839. if changed {
  28840. *vp = v
  28841. }
  28842. }
  28843. func (_ fastpathT) DecMapIntUintV(v map[int]uint, canChange bool,
  28844. d *Decoder) (_ map[int]uint, changed bool) {
  28845. dd, esep := d.d, d.hh.hasElemSeparators()
  28846. containerLen := dd.ReadMapStart()
  28847. if canChange && v == nil {
  28848. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  28849. v = make(map[int]uint, xlen)
  28850. changed = true
  28851. }
  28852. if containerLen == 0 {
  28853. dd.ReadMapEnd()
  28854. return v, changed
  28855. }
  28856. d.depthIncr()
  28857. var mk int
  28858. var mv uint
  28859. hasLen := containerLen > 0
  28860. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28861. if esep {
  28862. dd.ReadMapElemKey()
  28863. }
  28864. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28865. if esep {
  28866. dd.ReadMapElemValue()
  28867. }
  28868. if dd.TryDecodeAsNil() {
  28869. if v == nil {
  28870. } else if d.h.DeleteOnNilMapValue {
  28871. delete(v, mk)
  28872. } else {
  28873. v[mk] = 0
  28874. }
  28875. continue
  28876. }
  28877. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  28878. if v != nil {
  28879. v[mk] = mv
  28880. }
  28881. }
  28882. dd.ReadMapEnd()
  28883. d.depthDecr()
  28884. return v, changed
  28885. }
  28886. func (d *Decoder) fastpathDecMapIntUint8R(f *codecFnInfo, rv reflect.Value) {
  28887. if rv.Kind() == reflect.Ptr {
  28888. vp := rv2i(rv).(*map[int]uint8)
  28889. v, changed := fastpathTV.DecMapIntUint8V(*vp, true, d)
  28890. if changed {
  28891. *vp = v
  28892. }
  28893. } else {
  28894. fastpathTV.DecMapIntUint8V(rv2i(rv).(map[int]uint8), false, d)
  28895. }
  28896. }
  28897. func (f fastpathT) DecMapIntUint8X(vp *map[int]uint8, d *Decoder) {
  28898. v, changed := f.DecMapIntUint8V(*vp, true, d)
  28899. if changed {
  28900. *vp = v
  28901. }
  28902. }
  28903. func (_ fastpathT) DecMapIntUint8V(v map[int]uint8, canChange bool,
  28904. d *Decoder) (_ map[int]uint8, changed bool) {
  28905. dd, esep := d.d, d.hh.hasElemSeparators()
  28906. containerLen := dd.ReadMapStart()
  28907. if canChange && v == nil {
  28908. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  28909. v = make(map[int]uint8, xlen)
  28910. changed = true
  28911. }
  28912. if containerLen == 0 {
  28913. dd.ReadMapEnd()
  28914. return v, changed
  28915. }
  28916. d.depthIncr()
  28917. var mk int
  28918. var mv uint8
  28919. hasLen := containerLen > 0
  28920. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28921. if esep {
  28922. dd.ReadMapElemKey()
  28923. }
  28924. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28925. if esep {
  28926. dd.ReadMapElemValue()
  28927. }
  28928. if dd.TryDecodeAsNil() {
  28929. if v == nil {
  28930. } else if d.h.DeleteOnNilMapValue {
  28931. delete(v, mk)
  28932. } else {
  28933. v[mk] = 0
  28934. }
  28935. continue
  28936. }
  28937. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  28938. if v != nil {
  28939. v[mk] = mv
  28940. }
  28941. }
  28942. dd.ReadMapEnd()
  28943. d.depthDecr()
  28944. return v, changed
  28945. }
  28946. func (d *Decoder) fastpathDecMapIntUint16R(f *codecFnInfo, rv reflect.Value) {
  28947. if rv.Kind() == reflect.Ptr {
  28948. vp := rv2i(rv).(*map[int]uint16)
  28949. v, changed := fastpathTV.DecMapIntUint16V(*vp, true, d)
  28950. if changed {
  28951. *vp = v
  28952. }
  28953. } else {
  28954. fastpathTV.DecMapIntUint16V(rv2i(rv).(map[int]uint16), false, d)
  28955. }
  28956. }
  28957. func (f fastpathT) DecMapIntUint16X(vp *map[int]uint16, d *Decoder) {
  28958. v, changed := f.DecMapIntUint16V(*vp, true, d)
  28959. if changed {
  28960. *vp = v
  28961. }
  28962. }
  28963. func (_ fastpathT) DecMapIntUint16V(v map[int]uint16, canChange bool,
  28964. d *Decoder) (_ map[int]uint16, changed bool) {
  28965. dd, esep := d.d, d.hh.hasElemSeparators()
  28966. containerLen := dd.ReadMapStart()
  28967. if canChange && v == nil {
  28968. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  28969. v = make(map[int]uint16, xlen)
  28970. changed = true
  28971. }
  28972. if containerLen == 0 {
  28973. dd.ReadMapEnd()
  28974. return v, changed
  28975. }
  28976. d.depthIncr()
  28977. var mk int
  28978. var mv uint16
  28979. hasLen := containerLen > 0
  28980. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  28981. if esep {
  28982. dd.ReadMapElemKey()
  28983. }
  28984. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  28985. if esep {
  28986. dd.ReadMapElemValue()
  28987. }
  28988. if dd.TryDecodeAsNil() {
  28989. if v == nil {
  28990. } else if d.h.DeleteOnNilMapValue {
  28991. delete(v, mk)
  28992. } else {
  28993. v[mk] = 0
  28994. }
  28995. continue
  28996. }
  28997. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  28998. if v != nil {
  28999. v[mk] = mv
  29000. }
  29001. }
  29002. dd.ReadMapEnd()
  29003. d.depthDecr()
  29004. return v, changed
  29005. }
  29006. func (d *Decoder) fastpathDecMapIntUint32R(f *codecFnInfo, rv reflect.Value) {
  29007. if rv.Kind() == reflect.Ptr {
  29008. vp := rv2i(rv).(*map[int]uint32)
  29009. v, changed := fastpathTV.DecMapIntUint32V(*vp, true, d)
  29010. if changed {
  29011. *vp = v
  29012. }
  29013. } else {
  29014. fastpathTV.DecMapIntUint32V(rv2i(rv).(map[int]uint32), false, d)
  29015. }
  29016. }
  29017. func (f fastpathT) DecMapIntUint32X(vp *map[int]uint32, d *Decoder) {
  29018. v, changed := f.DecMapIntUint32V(*vp, true, d)
  29019. if changed {
  29020. *vp = v
  29021. }
  29022. }
  29023. func (_ fastpathT) DecMapIntUint32V(v map[int]uint32, canChange bool,
  29024. d *Decoder) (_ map[int]uint32, changed bool) {
  29025. dd, esep := d.d, d.hh.hasElemSeparators()
  29026. containerLen := dd.ReadMapStart()
  29027. if canChange && v == nil {
  29028. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29029. v = make(map[int]uint32, xlen)
  29030. changed = true
  29031. }
  29032. if containerLen == 0 {
  29033. dd.ReadMapEnd()
  29034. return v, changed
  29035. }
  29036. d.depthIncr()
  29037. var mk int
  29038. var mv uint32
  29039. hasLen := containerLen > 0
  29040. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29041. if esep {
  29042. dd.ReadMapElemKey()
  29043. }
  29044. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29045. if esep {
  29046. dd.ReadMapElemValue()
  29047. }
  29048. if dd.TryDecodeAsNil() {
  29049. if v == nil {
  29050. } else if d.h.DeleteOnNilMapValue {
  29051. delete(v, mk)
  29052. } else {
  29053. v[mk] = 0
  29054. }
  29055. continue
  29056. }
  29057. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  29058. if v != nil {
  29059. v[mk] = mv
  29060. }
  29061. }
  29062. dd.ReadMapEnd()
  29063. d.depthDecr()
  29064. return v, changed
  29065. }
  29066. func (d *Decoder) fastpathDecMapIntUint64R(f *codecFnInfo, rv reflect.Value) {
  29067. if rv.Kind() == reflect.Ptr {
  29068. vp := rv2i(rv).(*map[int]uint64)
  29069. v, changed := fastpathTV.DecMapIntUint64V(*vp, true, d)
  29070. if changed {
  29071. *vp = v
  29072. }
  29073. } else {
  29074. fastpathTV.DecMapIntUint64V(rv2i(rv).(map[int]uint64), false, d)
  29075. }
  29076. }
  29077. func (f fastpathT) DecMapIntUint64X(vp *map[int]uint64, d *Decoder) {
  29078. v, changed := f.DecMapIntUint64V(*vp, true, d)
  29079. if changed {
  29080. *vp = v
  29081. }
  29082. }
  29083. func (_ fastpathT) DecMapIntUint64V(v map[int]uint64, canChange bool,
  29084. d *Decoder) (_ map[int]uint64, changed bool) {
  29085. dd, esep := d.d, d.hh.hasElemSeparators()
  29086. containerLen := dd.ReadMapStart()
  29087. if canChange && v == nil {
  29088. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29089. v = make(map[int]uint64, xlen)
  29090. changed = true
  29091. }
  29092. if containerLen == 0 {
  29093. dd.ReadMapEnd()
  29094. return v, changed
  29095. }
  29096. d.depthIncr()
  29097. var mk int
  29098. var mv uint64
  29099. hasLen := containerLen > 0
  29100. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29101. if esep {
  29102. dd.ReadMapElemKey()
  29103. }
  29104. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29105. if esep {
  29106. dd.ReadMapElemValue()
  29107. }
  29108. if dd.TryDecodeAsNil() {
  29109. if v == nil {
  29110. } else if d.h.DeleteOnNilMapValue {
  29111. delete(v, mk)
  29112. } else {
  29113. v[mk] = 0
  29114. }
  29115. continue
  29116. }
  29117. mv = dd.DecodeUint64()
  29118. if v != nil {
  29119. v[mk] = mv
  29120. }
  29121. }
  29122. dd.ReadMapEnd()
  29123. d.depthDecr()
  29124. return v, changed
  29125. }
  29126. func (d *Decoder) fastpathDecMapIntUintptrR(f *codecFnInfo, rv reflect.Value) {
  29127. if rv.Kind() == reflect.Ptr {
  29128. vp := rv2i(rv).(*map[int]uintptr)
  29129. v, changed := fastpathTV.DecMapIntUintptrV(*vp, true, d)
  29130. if changed {
  29131. *vp = v
  29132. }
  29133. } else {
  29134. fastpathTV.DecMapIntUintptrV(rv2i(rv).(map[int]uintptr), false, d)
  29135. }
  29136. }
  29137. func (f fastpathT) DecMapIntUintptrX(vp *map[int]uintptr, d *Decoder) {
  29138. v, changed := f.DecMapIntUintptrV(*vp, true, d)
  29139. if changed {
  29140. *vp = v
  29141. }
  29142. }
  29143. func (_ fastpathT) DecMapIntUintptrV(v map[int]uintptr, canChange bool,
  29144. d *Decoder) (_ map[int]uintptr, changed bool) {
  29145. dd, esep := d.d, d.hh.hasElemSeparators()
  29146. containerLen := dd.ReadMapStart()
  29147. if canChange && v == nil {
  29148. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29149. v = make(map[int]uintptr, xlen)
  29150. changed = true
  29151. }
  29152. if containerLen == 0 {
  29153. dd.ReadMapEnd()
  29154. return v, changed
  29155. }
  29156. d.depthIncr()
  29157. var mk int
  29158. var mv uintptr
  29159. hasLen := containerLen > 0
  29160. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29161. if esep {
  29162. dd.ReadMapElemKey()
  29163. }
  29164. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29165. if esep {
  29166. dd.ReadMapElemValue()
  29167. }
  29168. if dd.TryDecodeAsNil() {
  29169. if v == nil {
  29170. } else if d.h.DeleteOnNilMapValue {
  29171. delete(v, mk)
  29172. } else {
  29173. v[mk] = 0
  29174. }
  29175. continue
  29176. }
  29177. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29178. if v != nil {
  29179. v[mk] = mv
  29180. }
  29181. }
  29182. dd.ReadMapEnd()
  29183. d.depthDecr()
  29184. return v, changed
  29185. }
  29186. func (d *Decoder) fastpathDecMapIntIntR(f *codecFnInfo, rv reflect.Value) {
  29187. if rv.Kind() == reflect.Ptr {
  29188. vp := rv2i(rv).(*map[int]int)
  29189. v, changed := fastpathTV.DecMapIntIntV(*vp, true, d)
  29190. if changed {
  29191. *vp = v
  29192. }
  29193. } else {
  29194. fastpathTV.DecMapIntIntV(rv2i(rv).(map[int]int), false, d)
  29195. }
  29196. }
  29197. func (f fastpathT) DecMapIntIntX(vp *map[int]int, d *Decoder) {
  29198. v, changed := f.DecMapIntIntV(*vp, true, d)
  29199. if changed {
  29200. *vp = v
  29201. }
  29202. }
  29203. func (_ fastpathT) DecMapIntIntV(v map[int]int, canChange bool,
  29204. d *Decoder) (_ map[int]int, changed bool) {
  29205. dd, esep := d.d, d.hh.hasElemSeparators()
  29206. containerLen := dd.ReadMapStart()
  29207. if canChange && v == nil {
  29208. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29209. v = make(map[int]int, xlen)
  29210. changed = true
  29211. }
  29212. if containerLen == 0 {
  29213. dd.ReadMapEnd()
  29214. return v, changed
  29215. }
  29216. d.depthIncr()
  29217. var mk int
  29218. var mv int
  29219. hasLen := containerLen > 0
  29220. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29221. if esep {
  29222. dd.ReadMapElemKey()
  29223. }
  29224. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29225. if esep {
  29226. dd.ReadMapElemValue()
  29227. }
  29228. if dd.TryDecodeAsNil() {
  29229. if v == nil {
  29230. } else if d.h.DeleteOnNilMapValue {
  29231. delete(v, mk)
  29232. } else {
  29233. v[mk] = 0
  29234. }
  29235. continue
  29236. }
  29237. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29238. if v != nil {
  29239. v[mk] = mv
  29240. }
  29241. }
  29242. dd.ReadMapEnd()
  29243. d.depthDecr()
  29244. return v, changed
  29245. }
  29246. func (d *Decoder) fastpathDecMapIntInt8R(f *codecFnInfo, rv reflect.Value) {
  29247. if rv.Kind() == reflect.Ptr {
  29248. vp := rv2i(rv).(*map[int]int8)
  29249. v, changed := fastpathTV.DecMapIntInt8V(*vp, true, d)
  29250. if changed {
  29251. *vp = v
  29252. }
  29253. } else {
  29254. fastpathTV.DecMapIntInt8V(rv2i(rv).(map[int]int8), false, d)
  29255. }
  29256. }
  29257. func (f fastpathT) DecMapIntInt8X(vp *map[int]int8, d *Decoder) {
  29258. v, changed := f.DecMapIntInt8V(*vp, true, d)
  29259. if changed {
  29260. *vp = v
  29261. }
  29262. }
  29263. func (_ fastpathT) DecMapIntInt8V(v map[int]int8, canChange bool,
  29264. d *Decoder) (_ map[int]int8, changed bool) {
  29265. dd, esep := d.d, d.hh.hasElemSeparators()
  29266. containerLen := dd.ReadMapStart()
  29267. if canChange && v == nil {
  29268. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29269. v = make(map[int]int8, xlen)
  29270. changed = true
  29271. }
  29272. if containerLen == 0 {
  29273. dd.ReadMapEnd()
  29274. return v, changed
  29275. }
  29276. d.depthIncr()
  29277. var mk int
  29278. var mv int8
  29279. hasLen := containerLen > 0
  29280. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29281. if esep {
  29282. dd.ReadMapElemKey()
  29283. }
  29284. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29285. if esep {
  29286. dd.ReadMapElemValue()
  29287. }
  29288. if dd.TryDecodeAsNil() {
  29289. if v == nil {
  29290. } else if d.h.DeleteOnNilMapValue {
  29291. delete(v, mk)
  29292. } else {
  29293. v[mk] = 0
  29294. }
  29295. continue
  29296. }
  29297. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29298. if v != nil {
  29299. v[mk] = mv
  29300. }
  29301. }
  29302. dd.ReadMapEnd()
  29303. d.depthDecr()
  29304. return v, changed
  29305. }
  29306. func (d *Decoder) fastpathDecMapIntInt16R(f *codecFnInfo, rv reflect.Value) {
  29307. if rv.Kind() == reflect.Ptr {
  29308. vp := rv2i(rv).(*map[int]int16)
  29309. v, changed := fastpathTV.DecMapIntInt16V(*vp, true, d)
  29310. if changed {
  29311. *vp = v
  29312. }
  29313. } else {
  29314. fastpathTV.DecMapIntInt16V(rv2i(rv).(map[int]int16), false, d)
  29315. }
  29316. }
  29317. func (f fastpathT) DecMapIntInt16X(vp *map[int]int16, d *Decoder) {
  29318. v, changed := f.DecMapIntInt16V(*vp, true, d)
  29319. if changed {
  29320. *vp = v
  29321. }
  29322. }
  29323. func (_ fastpathT) DecMapIntInt16V(v map[int]int16, canChange bool,
  29324. d *Decoder) (_ map[int]int16, changed bool) {
  29325. dd, esep := d.d, d.hh.hasElemSeparators()
  29326. containerLen := dd.ReadMapStart()
  29327. if canChange && v == nil {
  29328. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  29329. v = make(map[int]int16, xlen)
  29330. changed = true
  29331. }
  29332. if containerLen == 0 {
  29333. dd.ReadMapEnd()
  29334. return v, changed
  29335. }
  29336. d.depthIncr()
  29337. var mk int
  29338. var mv int16
  29339. hasLen := containerLen > 0
  29340. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29341. if esep {
  29342. dd.ReadMapElemKey()
  29343. }
  29344. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29345. if esep {
  29346. dd.ReadMapElemValue()
  29347. }
  29348. if dd.TryDecodeAsNil() {
  29349. if v == nil {
  29350. } else if d.h.DeleteOnNilMapValue {
  29351. delete(v, mk)
  29352. } else {
  29353. v[mk] = 0
  29354. }
  29355. continue
  29356. }
  29357. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  29358. if v != nil {
  29359. v[mk] = mv
  29360. }
  29361. }
  29362. dd.ReadMapEnd()
  29363. d.depthDecr()
  29364. return v, changed
  29365. }
  29366. func (d *Decoder) fastpathDecMapIntInt32R(f *codecFnInfo, rv reflect.Value) {
  29367. if rv.Kind() == reflect.Ptr {
  29368. vp := rv2i(rv).(*map[int]int32)
  29369. v, changed := fastpathTV.DecMapIntInt32V(*vp, true, d)
  29370. if changed {
  29371. *vp = v
  29372. }
  29373. } else {
  29374. fastpathTV.DecMapIntInt32V(rv2i(rv).(map[int]int32), false, d)
  29375. }
  29376. }
  29377. func (f fastpathT) DecMapIntInt32X(vp *map[int]int32, d *Decoder) {
  29378. v, changed := f.DecMapIntInt32V(*vp, true, d)
  29379. if changed {
  29380. *vp = v
  29381. }
  29382. }
  29383. func (_ fastpathT) DecMapIntInt32V(v map[int]int32, canChange bool,
  29384. d *Decoder) (_ map[int]int32, changed bool) {
  29385. dd, esep := d.d, d.hh.hasElemSeparators()
  29386. containerLen := dd.ReadMapStart()
  29387. if canChange && v == nil {
  29388. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29389. v = make(map[int]int32, xlen)
  29390. changed = true
  29391. }
  29392. if containerLen == 0 {
  29393. dd.ReadMapEnd()
  29394. return v, changed
  29395. }
  29396. d.depthIncr()
  29397. var mk int
  29398. var mv int32
  29399. hasLen := containerLen > 0
  29400. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29401. if esep {
  29402. dd.ReadMapElemKey()
  29403. }
  29404. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29405. if esep {
  29406. dd.ReadMapElemValue()
  29407. }
  29408. if dd.TryDecodeAsNil() {
  29409. if v == nil {
  29410. } else if d.h.DeleteOnNilMapValue {
  29411. delete(v, mk)
  29412. } else {
  29413. v[mk] = 0
  29414. }
  29415. continue
  29416. }
  29417. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  29418. if v != nil {
  29419. v[mk] = mv
  29420. }
  29421. }
  29422. dd.ReadMapEnd()
  29423. d.depthDecr()
  29424. return v, changed
  29425. }
  29426. func (d *Decoder) fastpathDecMapIntInt64R(f *codecFnInfo, rv reflect.Value) {
  29427. if rv.Kind() == reflect.Ptr {
  29428. vp := rv2i(rv).(*map[int]int64)
  29429. v, changed := fastpathTV.DecMapIntInt64V(*vp, true, d)
  29430. if changed {
  29431. *vp = v
  29432. }
  29433. } else {
  29434. fastpathTV.DecMapIntInt64V(rv2i(rv).(map[int]int64), false, d)
  29435. }
  29436. }
  29437. func (f fastpathT) DecMapIntInt64X(vp *map[int]int64, d *Decoder) {
  29438. v, changed := f.DecMapIntInt64V(*vp, true, d)
  29439. if changed {
  29440. *vp = v
  29441. }
  29442. }
  29443. func (_ fastpathT) DecMapIntInt64V(v map[int]int64, canChange bool,
  29444. d *Decoder) (_ map[int]int64, changed bool) {
  29445. dd, esep := d.d, d.hh.hasElemSeparators()
  29446. containerLen := dd.ReadMapStart()
  29447. if canChange && v == nil {
  29448. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29449. v = make(map[int]int64, xlen)
  29450. changed = true
  29451. }
  29452. if containerLen == 0 {
  29453. dd.ReadMapEnd()
  29454. return v, changed
  29455. }
  29456. d.depthIncr()
  29457. var mk int
  29458. var mv int64
  29459. hasLen := containerLen > 0
  29460. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29461. if esep {
  29462. dd.ReadMapElemKey()
  29463. }
  29464. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29465. if esep {
  29466. dd.ReadMapElemValue()
  29467. }
  29468. if dd.TryDecodeAsNil() {
  29469. if v == nil {
  29470. } else if d.h.DeleteOnNilMapValue {
  29471. delete(v, mk)
  29472. } else {
  29473. v[mk] = 0
  29474. }
  29475. continue
  29476. }
  29477. mv = dd.DecodeInt64()
  29478. if v != nil {
  29479. v[mk] = mv
  29480. }
  29481. }
  29482. dd.ReadMapEnd()
  29483. d.depthDecr()
  29484. return v, changed
  29485. }
  29486. func (d *Decoder) fastpathDecMapIntFloat32R(f *codecFnInfo, rv reflect.Value) {
  29487. if rv.Kind() == reflect.Ptr {
  29488. vp := rv2i(rv).(*map[int]float32)
  29489. v, changed := fastpathTV.DecMapIntFloat32V(*vp, true, d)
  29490. if changed {
  29491. *vp = v
  29492. }
  29493. } else {
  29494. fastpathTV.DecMapIntFloat32V(rv2i(rv).(map[int]float32), false, d)
  29495. }
  29496. }
  29497. func (f fastpathT) DecMapIntFloat32X(vp *map[int]float32, d *Decoder) {
  29498. v, changed := f.DecMapIntFloat32V(*vp, true, d)
  29499. if changed {
  29500. *vp = v
  29501. }
  29502. }
  29503. func (_ fastpathT) DecMapIntFloat32V(v map[int]float32, canChange bool,
  29504. d *Decoder) (_ map[int]float32, changed bool) {
  29505. dd, esep := d.d, d.hh.hasElemSeparators()
  29506. containerLen := dd.ReadMapStart()
  29507. if canChange && v == nil {
  29508. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  29509. v = make(map[int]float32, xlen)
  29510. changed = true
  29511. }
  29512. if containerLen == 0 {
  29513. dd.ReadMapEnd()
  29514. return v, changed
  29515. }
  29516. d.depthIncr()
  29517. var mk int
  29518. var mv float32
  29519. hasLen := containerLen > 0
  29520. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29521. if esep {
  29522. dd.ReadMapElemKey()
  29523. }
  29524. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29525. if esep {
  29526. dd.ReadMapElemValue()
  29527. }
  29528. if dd.TryDecodeAsNil() {
  29529. if v == nil {
  29530. } else if d.h.DeleteOnNilMapValue {
  29531. delete(v, mk)
  29532. } else {
  29533. v[mk] = 0
  29534. }
  29535. continue
  29536. }
  29537. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  29538. if v != nil {
  29539. v[mk] = mv
  29540. }
  29541. }
  29542. dd.ReadMapEnd()
  29543. d.depthDecr()
  29544. return v, changed
  29545. }
  29546. func (d *Decoder) fastpathDecMapIntFloat64R(f *codecFnInfo, rv reflect.Value) {
  29547. if rv.Kind() == reflect.Ptr {
  29548. vp := rv2i(rv).(*map[int]float64)
  29549. v, changed := fastpathTV.DecMapIntFloat64V(*vp, true, d)
  29550. if changed {
  29551. *vp = v
  29552. }
  29553. } else {
  29554. fastpathTV.DecMapIntFloat64V(rv2i(rv).(map[int]float64), false, d)
  29555. }
  29556. }
  29557. func (f fastpathT) DecMapIntFloat64X(vp *map[int]float64, d *Decoder) {
  29558. v, changed := f.DecMapIntFloat64V(*vp, true, d)
  29559. if changed {
  29560. *vp = v
  29561. }
  29562. }
  29563. func (_ fastpathT) DecMapIntFloat64V(v map[int]float64, canChange bool,
  29564. d *Decoder) (_ map[int]float64, changed bool) {
  29565. dd, esep := d.d, d.hh.hasElemSeparators()
  29566. containerLen := dd.ReadMapStart()
  29567. if canChange && v == nil {
  29568. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  29569. v = make(map[int]float64, xlen)
  29570. changed = true
  29571. }
  29572. if containerLen == 0 {
  29573. dd.ReadMapEnd()
  29574. return v, changed
  29575. }
  29576. d.depthIncr()
  29577. var mk int
  29578. var mv float64
  29579. hasLen := containerLen > 0
  29580. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29581. if esep {
  29582. dd.ReadMapElemKey()
  29583. }
  29584. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29585. if esep {
  29586. dd.ReadMapElemValue()
  29587. }
  29588. if dd.TryDecodeAsNil() {
  29589. if v == nil {
  29590. } else if d.h.DeleteOnNilMapValue {
  29591. delete(v, mk)
  29592. } else {
  29593. v[mk] = 0
  29594. }
  29595. continue
  29596. }
  29597. mv = dd.DecodeFloat64()
  29598. if v != nil {
  29599. v[mk] = mv
  29600. }
  29601. }
  29602. dd.ReadMapEnd()
  29603. d.depthDecr()
  29604. return v, changed
  29605. }
  29606. func (d *Decoder) fastpathDecMapIntBoolR(f *codecFnInfo, rv reflect.Value) {
  29607. if rv.Kind() == reflect.Ptr {
  29608. vp := rv2i(rv).(*map[int]bool)
  29609. v, changed := fastpathTV.DecMapIntBoolV(*vp, true, d)
  29610. if changed {
  29611. *vp = v
  29612. }
  29613. } else {
  29614. fastpathTV.DecMapIntBoolV(rv2i(rv).(map[int]bool), false, d)
  29615. }
  29616. }
  29617. func (f fastpathT) DecMapIntBoolX(vp *map[int]bool, d *Decoder) {
  29618. v, changed := f.DecMapIntBoolV(*vp, true, d)
  29619. if changed {
  29620. *vp = v
  29621. }
  29622. }
  29623. func (_ fastpathT) DecMapIntBoolV(v map[int]bool, canChange bool,
  29624. d *Decoder) (_ map[int]bool, changed bool) {
  29625. dd, esep := d.d, d.hh.hasElemSeparators()
  29626. containerLen := dd.ReadMapStart()
  29627. if canChange && v == nil {
  29628. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29629. v = make(map[int]bool, xlen)
  29630. changed = true
  29631. }
  29632. if containerLen == 0 {
  29633. dd.ReadMapEnd()
  29634. return v, changed
  29635. }
  29636. d.depthIncr()
  29637. var mk int
  29638. var mv bool
  29639. hasLen := containerLen > 0
  29640. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29641. if esep {
  29642. dd.ReadMapElemKey()
  29643. }
  29644. mk = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  29645. if esep {
  29646. dd.ReadMapElemValue()
  29647. }
  29648. if dd.TryDecodeAsNil() {
  29649. if v == nil {
  29650. } else if d.h.DeleteOnNilMapValue {
  29651. delete(v, mk)
  29652. } else {
  29653. v[mk] = false
  29654. }
  29655. continue
  29656. }
  29657. mv = dd.DecodeBool()
  29658. if v != nil {
  29659. v[mk] = mv
  29660. }
  29661. }
  29662. dd.ReadMapEnd()
  29663. d.depthDecr()
  29664. return v, changed
  29665. }
  29666. func (d *Decoder) fastpathDecMapInt8IntfR(f *codecFnInfo, rv reflect.Value) {
  29667. if rv.Kind() == reflect.Ptr {
  29668. vp := rv2i(rv).(*map[int8]interface{})
  29669. v, changed := fastpathTV.DecMapInt8IntfV(*vp, true, d)
  29670. if changed {
  29671. *vp = v
  29672. }
  29673. } else {
  29674. fastpathTV.DecMapInt8IntfV(rv2i(rv).(map[int8]interface{}), false, d)
  29675. }
  29676. }
  29677. func (f fastpathT) DecMapInt8IntfX(vp *map[int8]interface{}, d *Decoder) {
  29678. v, changed := f.DecMapInt8IntfV(*vp, true, d)
  29679. if changed {
  29680. *vp = v
  29681. }
  29682. }
  29683. func (_ fastpathT) DecMapInt8IntfV(v map[int8]interface{}, canChange bool,
  29684. d *Decoder) (_ map[int8]interface{}, changed bool) {
  29685. dd, esep := d.d, d.hh.hasElemSeparators()
  29686. containerLen := dd.ReadMapStart()
  29687. if canChange && v == nil {
  29688. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29689. v = make(map[int8]interface{}, xlen)
  29690. changed = true
  29691. }
  29692. if containerLen == 0 {
  29693. dd.ReadMapEnd()
  29694. return v, changed
  29695. }
  29696. d.depthIncr()
  29697. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  29698. var mk int8
  29699. var mv interface{}
  29700. hasLen := containerLen > 0
  29701. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29702. if esep {
  29703. dd.ReadMapElemKey()
  29704. }
  29705. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29706. if esep {
  29707. dd.ReadMapElemValue()
  29708. }
  29709. if dd.TryDecodeAsNil() {
  29710. if v == nil {
  29711. } else if d.h.DeleteOnNilMapValue {
  29712. delete(v, mk)
  29713. } else {
  29714. v[mk] = nil
  29715. }
  29716. continue
  29717. }
  29718. if mapGet {
  29719. mv = v[mk]
  29720. } else {
  29721. mv = nil
  29722. }
  29723. d.decode(&mv)
  29724. if v != nil {
  29725. v[mk] = mv
  29726. }
  29727. }
  29728. dd.ReadMapEnd()
  29729. d.depthDecr()
  29730. return v, changed
  29731. }
  29732. func (d *Decoder) fastpathDecMapInt8StringR(f *codecFnInfo, rv reflect.Value) {
  29733. if rv.Kind() == reflect.Ptr {
  29734. vp := rv2i(rv).(*map[int8]string)
  29735. v, changed := fastpathTV.DecMapInt8StringV(*vp, true, d)
  29736. if changed {
  29737. *vp = v
  29738. }
  29739. } else {
  29740. fastpathTV.DecMapInt8StringV(rv2i(rv).(map[int8]string), false, d)
  29741. }
  29742. }
  29743. func (f fastpathT) DecMapInt8StringX(vp *map[int8]string, d *Decoder) {
  29744. v, changed := f.DecMapInt8StringV(*vp, true, d)
  29745. if changed {
  29746. *vp = v
  29747. }
  29748. }
  29749. func (_ fastpathT) DecMapInt8StringV(v map[int8]string, canChange bool,
  29750. d *Decoder) (_ map[int8]string, changed bool) {
  29751. dd, esep := d.d, d.hh.hasElemSeparators()
  29752. containerLen := dd.ReadMapStart()
  29753. if canChange && v == nil {
  29754. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  29755. v = make(map[int8]string, xlen)
  29756. changed = true
  29757. }
  29758. if containerLen == 0 {
  29759. dd.ReadMapEnd()
  29760. return v, changed
  29761. }
  29762. d.depthIncr()
  29763. var mk int8
  29764. var mv string
  29765. hasLen := containerLen > 0
  29766. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29767. if esep {
  29768. dd.ReadMapElemKey()
  29769. }
  29770. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29771. if esep {
  29772. dd.ReadMapElemValue()
  29773. }
  29774. if dd.TryDecodeAsNil() {
  29775. if v == nil {
  29776. } else if d.h.DeleteOnNilMapValue {
  29777. delete(v, mk)
  29778. } else {
  29779. v[mk] = ""
  29780. }
  29781. continue
  29782. }
  29783. mv = dd.DecodeString()
  29784. if v != nil {
  29785. v[mk] = mv
  29786. }
  29787. }
  29788. dd.ReadMapEnd()
  29789. d.depthDecr()
  29790. return v, changed
  29791. }
  29792. func (d *Decoder) fastpathDecMapInt8UintR(f *codecFnInfo, rv reflect.Value) {
  29793. if rv.Kind() == reflect.Ptr {
  29794. vp := rv2i(rv).(*map[int8]uint)
  29795. v, changed := fastpathTV.DecMapInt8UintV(*vp, true, d)
  29796. if changed {
  29797. *vp = v
  29798. }
  29799. } else {
  29800. fastpathTV.DecMapInt8UintV(rv2i(rv).(map[int8]uint), false, d)
  29801. }
  29802. }
  29803. func (f fastpathT) DecMapInt8UintX(vp *map[int8]uint, d *Decoder) {
  29804. v, changed := f.DecMapInt8UintV(*vp, true, d)
  29805. if changed {
  29806. *vp = v
  29807. }
  29808. }
  29809. func (_ fastpathT) DecMapInt8UintV(v map[int8]uint, canChange bool,
  29810. d *Decoder) (_ map[int8]uint, changed bool) {
  29811. dd, esep := d.d, d.hh.hasElemSeparators()
  29812. containerLen := dd.ReadMapStart()
  29813. if canChange && v == nil {
  29814. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  29815. v = make(map[int8]uint, xlen)
  29816. changed = true
  29817. }
  29818. if containerLen == 0 {
  29819. dd.ReadMapEnd()
  29820. return v, changed
  29821. }
  29822. d.depthIncr()
  29823. var mk int8
  29824. var mv uint
  29825. hasLen := containerLen > 0
  29826. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29827. if esep {
  29828. dd.ReadMapElemKey()
  29829. }
  29830. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29831. if esep {
  29832. dd.ReadMapElemValue()
  29833. }
  29834. if dd.TryDecodeAsNil() {
  29835. if v == nil {
  29836. } else if d.h.DeleteOnNilMapValue {
  29837. delete(v, mk)
  29838. } else {
  29839. v[mk] = 0
  29840. }
  29841. continue
  29842. }
  29843. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  29844. if v != nil {
  29845. v[mk] = mv
  29846. }
  29847. }
  29848. dd.ReadMapEnd()
  29849. d.depthDecr()
  29850. return v, changed
  29851. }
  29852. func (d *Decoder) fastpathDecMapInt8Uint8R(f *codecFnInfo, rv reflect.Value) {
  29853. if rv.Kind() == reflect.Ptr {
  29854. vp := rv2i(rv).(*map[int8]uint8)
  29855. v, changed := fastpathTV.DecMapInt8Uint8V(*vp, true, d)
  29856. if changed {
  29857. *vp = v
  29858. }
  29859. } else {
  29860. fastpathTV.DecMapInt8Uint8V(rv2i(rv).(map[int8]uint8), false, d)
  29861. }
  29862. }
  29863. func (f fastpathT) DecMapInt8Uint8X(vp *map[int8]uint8, d *Decoder) {
  29864. v, changed := f.DecMapInt8Uint8V(*vp, true, d)
  29865. if changed {
  29866. *vp = v
  29867. }
  29868. }
  29869. func (_ fastpathT) DecMapInt8Uint8V(v map[int8]uint8, canChange bool,
  29870. d *Decoder) (_ map[int8]uint8, changed bool) {
  29871. dd, esep := d.d, d.hh.hasElemSeparators()
  29872. containerLen := dd.ReadMapStart()
  29873. if canChange && v == nil {
  29874. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  29875. v = make(map[int8]uint8, xlen)
  29876. changed = true
  29877. }
  29878. if containerLen == 0 {
  29879. dd.ReadMapEnd()
  29880. return v, changed
  29881. }
  29882. d.depthIncr()
  29883. var mk int8
  29884. var mv uint8
  29885. hasLen := containerLen > 0
  29886. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29887. if esep {
  29888. dd.ReadMapElemKey()
  29889. }
  29890. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29891. if esep {
  29892. dd.ReadMapElemValue()
  29893. }
  29894. if dd.TryDecodeAsNil() {
  29895. if v == nil {
  29896. } else if d.h.DeleteOnNilMapValue {
  29897. delete(v, mk)
  29898. } else {
  29899. v[mk] = 0
  29900. }
  29901. continue
  29902. }
  29903. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  29904. if v != nil {
  29905. v[mk] = mv
  29906. }
  29907. }
  29908. dd.ReadMapEnd()
  29909. d.depthDecr()
  29910. return v, changed
  29911. }
  29912. func (d *Decoder) fastpathDecMapInt8Uint16R(f *codecFnInfo, rv reflect.Value) {
  29913. if rv.Kind() == reflect.Ptr {
  29914. vp := rv2i(rv).(*map[int8]uint16)
  29915. v, changed := fastpathTV.DecMapInt8Uint16V(*vp, true, d)
  29916. if changed {
  29917. *vp = v
  29918. }
  29919. } else {
  29920. fastpathTV.DecMapInt8Uint16V(rv2i(rv).(map[int8]uint16), false, d)
  29921. }
  29922. }
  29923. func (f fastpathT) DecMapInt8Uint16X(vp *map[int8]uint16, d *Decoder) {
  29924. v, changed := f.DecMapInt8Uint16V(*vp, true, d)
  29925. if changed {
  29926. *vp = v
  29927. }
  29928. }
  29929. func (_ fastpathT) DecMapInt8Uint16V(v map[int8]uint16, canChange bool,
  29930. d *Decoder) (_ map[int8]uint16, changed bool) {
  29931. dd, esep := d.d, d.hh.hasElemSeparators()
  29932. containerLen := dd.ReadMapStart()
  29933. if canChange && v == nil {
  29934. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  29935. v = make(map[int8]uint16, xlen)
  29936. changed = true
  29937. }
  29938. if containerLen == 0 {
  29939. dd.ReadMapEnd()
  29940. return v, changed
  29941. }
  29942. d.depthIncr()
  29943. var mk int8
  29944. var mv uint16
  29945. hasLen := containerLen > 0
  29946. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  29947. if esep {
  29948. dd.ReadMapElemKey()
  29949. }
  29950. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  29951. if esep {
  29952. dd.ReadMapElemValue()
  29953. }
  29954. if dd.TryDecodeAsNil() {
  29955. if v == nil {
  29956. } else if d.h.DeleteOnNilMapValue {
  29957. delete(v, mk)
  29958. } else {
  29959. v[mk] = 0
  29960. }
  29961. continue
  29962. }
  29963. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  29964. if v != nil {
  29965. v[mk] = mv
  29966. }
  29967. }
  29968. dd.ReadMapEnd()
  29969. d.depthDecr()
  29970. return v, changed
  29971. }
  29972. func (d *Decoder) fastpathDecMapInt8Uint32R(f *codecFnInfo, rv reflect.Value) {
  29973. if rv.Kind() == reflect.Ptr {
  29974. vp := rv2i(rv).(*map[int8]uint32)
  29975. v, changed := fastpathTV.DecMapInt8Uint32V(*vp, true, d)
  29976. if changed {
  29977. *vp = v
  29978. }
  29979. } else {
  29980. fastpathTV.DecMapInt8Uint32V(rv2i(rv).(map[int8]uint32), false, d)
  29981. }
  29982. }
  29983. func (f fastpathT) DecMapInt8Uint32X(vp *map[int8]uint32, d *Decoder) {
  29984. v, changed := f.DecMapInt8Uint32V(*vp, true, d)
  29985. if changed {
  29986. *vp = v
  29987. }
  29988. }
  29989. func (_ fastpathT) DecMapInt8Uint32V(v map[int8]uint32, canChange bool,
  29990. d *Decoder) (_ map[int8]uint32, changed bool) {
  29991. dd, esep := d.d, d.hh.hasElemSeparators()
  29992. containerLen := dd.ReadMapStart()
  29993. if canChange && v == nil {
  29994. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  29995. v = make(map[int8]uint32, xlen)
  29996. changed = true
  29997. }
  29998. if containerLen == 0 {
  29999. dd.ReadMapEnd()
  30000. return v, changed
  30001. }
  30002. d.depthIncr()
  30003. var mk int8
  30004. var mv uint32
  30005. hasLen := containerLen > 0
  30006. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30007. if esep {
  30008. dd.ReadMapElemKey()
  30009. }
  30010. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30011. if esep {
  30012. dd.ReadMapElemValue()
  30013. }
  30014. if dd.TryDecodeAsNil() {
  30015. if v == nil {
  30016. } else if d.h.DeleteOnNilMapValue {
  30017. delete(v, mk)
  30018. } else {
  30019. v[mk] = 0
  30020. }
  30021. continue
  30022. }
  30023. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30024. if v != nil {
  30025. v[mk] = mv
  30026. }
  30027. }
  30028. dd.ReadMapEnd()
  30029. d.depthDecr()
  30030. return v, changed
  30031. }
  30032. func (d *Decoder) fastpathDecMapInt8Uint64R(f *codecFnInfo, rv reflect.Value) {
  30033. if rv.Kind() == reflect.Ptr {
  30034. vp := rv2i(rv).(*map[int8]uint64)
  30035. v, changed := fastpathTV.DecMapInt8Uint64V(*vp, true, d)
  30036. if changed {
  30037. *vp = v
  30038. }
  30039. } else {
  30040. fastpathTV.DecMapInt8Uint64V(rv2i(rv).(map[int8]uint64), false, d)
  30041. }
  30042. }
  30043. func (f fastpathT) DecMapInt8Uint64X(vp *map[int8]uint64, d *Decoder) {
  30044. v, changed := f.DecMapInt8Uint64V(*vp, true, d)
  30045. if changed {
  30046. *vp = v
  30047. }
  30048. }
  30049. func (_ fastpathT) DecMapInt8Uint64V(v map[int8]uint64, canChange bool,
  30050. d *Decoder) (_ map[int8]uint64, changed bool) {
  30051. dd, esep := d.d, d.hh.hasElemSeparators()
  30052. containerLen := dd.ReadMapStart()
  30053. if canChange && v == nil {
  30054. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30055. v = make(map[int8]uint64, xlen)
  30056. changed = true
  30057. }
  30058. if containerLen == 0 {
  30059. dd.ReadMapEnd()
  30060. return v, changed
  30061. }
  30062. d.depthIncr()
  30063. var mk int8
  30064. var mv uint64
  30065. hasLen := containerLen > 0
  30066. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30067. if esep {
  30068. dd.ReadMapElemKey()
  30069. }
  30070. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30071. if esep {
  30072. dd.ReadMapElemValue()
  30073. }
  30074. if dd.TryDecodeAsNil() {
  30075. if v == nil {
  30076. } else if d.h.DeleteOnNilMapValue {
  30077. delete(v, mk)
  30078. } else {
  30079. v[mk] = 0
  30080. }
  30081. continue
  30082. }
  30083. mv = dd.DecodeUint64()
  30084. if v != nil {
  30085. v[mk] = mv
  30086. }
  30087. }
  30088. dd.ReadMapEnd()
  30089. d.depthDecr()
  30090. return v, changed
  30091. }
  30092. func (d *Decoder) fastpathDecMapInt8UintptrR(f *codecFnInfo, rv reflect.Value) {
  30093. if rv.Kind() == reflect.Ptr {
  30094. vp := rv2i(rv).(*map[int8]uintptr)
  30095. v, changed := fastpathTV.DecMapInt8UintptrV(*vp, true, d)
  30096. if changed {
  30097. *vp = v
  30098. }
  30099. } else {
  30100. fastpathTV.DecMapInt8UintptrV(rv2i(rv).(map[int8]uintptr), false, d)
  30101. }
  30102. }
  30103. func (f fastpathT) DecMapInt8UintptrX(vp *map[int8]uintptr, d *Decoder) {
  30104. v, changed := f.DecMapInt8UintptrV(*vp, true, d)
  30105. if changed {
  30106. *vp = v
  30107. }
  30108. }
  30109. func (_ fastpathT) DecMapInt8UintptrV(v map[int8]uintptr, canChange bool,
  30110. d *Decoder) (_ map[int8]uintptr, changed bool) {
  30111. dd, esep := d.d, d.hh.hasElemSeparators()
  30112. containerLen := dd.ReadMapStart()
  30113. if canChange && v == nil {
  30114. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30115. v = make(map[int8]uintptr, xlen)
  30116. changed = true
  30117. }
  30118. if containerLen == 0 {
  30119. dd.ReadMapEnd()
  30120. return v, changed
  30121. }
  30122. d.depthIncr()
  30123. var mk int8
  30124. var mv uintptr
  30125. hasLen := containerLen > 0
  30126. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30127. if esep {
  30128. dd.ReadMapElemKey()
  30129. }
  30130. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30131. if esep {
  30132. dd.ReadMapElemValue()
  30133. }
  30134. if dd.TryDecodeAsNil() {
  30135. if v == nil {
  30136. } else if d.h.DeleteOnNilMapValue {
  30137. delete(v, mk)
  30138. } else {
  30139. v[mk] = 0
  30140. }
  30141. continue
  30142. }
  30143. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30144. if v != nil {
  30145. v[mk] = mv
  30146. }
  30147. }
  30148. dd.ReadMapEnd()
  30149. d.depthDecr()
  30150. return v, changed
  30151. }
  30152. func (d *Decoder) fastpathDecMapInt8IntR(f *codecFnInfo, rv reflect.Value) {
  30153. if rv.Kind() == reflect.Ptr {
  30154. vp := rv2i(rv).(*map[int8]int)
  30155. v, changed := fastpathTV.DecMapInt8IntV(*vp, true, d)
  30156. if changed {
  30157. *vp = v
  30158. }
  30159. } else {
  30160. fastpathTV.DecMapInt8IntV(rv2i(rv).(map[int8]int), false, d)
  30161. }
  30162. }
  30163. func (f fastpathT) DecMapInt8IntX(vp *map[int8]int, d *Decoder) {
  30164. v, changed := f.DecMapInt8IntV(*vp, true, d)
  30165. if changed {
  30166. *vp = v
  30167. }
  30168. }
  30169. func (_ fastpathT) DecMapInt8IntV(v map[int8]int, canChange bool,
  30170. d *Decoder) (_ map[int8]int, changed bool) {
  30171. dd, esep := d.d, d.hh.hasElemSeparators()
  30172. containerLen := dd.ReadMapStart()
  30173. if canChange && v == nil {
  30174. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30175. v = make(map[int8]int, xlen)
  30176. changed = true
  30177. }
  30178. if containerLen == 0 {
  30179. dd.ReadMapEnd()
  30180. return v, changed
  30181. }
  30182. d.depthIncr()
  30183. var mk int8
  30184. var mv int
  30185. hasLen := containerLen > 0
  30186. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30187. if esep {
  30188. dd.ReadMapElemKey()
  30189. }
  30190. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30191. if esep {
  30192. dd.ReadMapElemValue()
  30193. }
  30194. if dd.TryDecodeAsNil() {
  30195. if v == nil {
  30196. } else if d.h.DeleteOnNilMapValue {
  30197. delete(v, mk)
  30198. } else {
  30199. v[mk] = 0
  30200. }
  30201. continue
  30202. }
  30203. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  30204. if v != nil {
  30205. v[mk] = mv
  30206. }
  30207. }
  30208. dd.ReadMapEnd()
  30209. d.depthDecr()
  30210. return v, changed
  30211. }
  30212. func (d *Decoder) fastpathDecMapInt8Int8R(f *codecFnInfo, rv reflect.Value) {
  30213. if rv.Kind() == reflect.Ptr {
  30214. vp := rv2i(rv).(*map[int8]int8)
  30215. v, changed := fastpathTV.DecMapInt8Int8V(*vp, true, d)
  30216. if changed {
  30217. *vp = v
  30218. }
  30219. } else {
  30220. fastpathTV.DecMapInt8Int8V(rv2i(rv).(map[int8]int8), false, d)
  30221. }
  30222. }
  30223. func (f fastpathT) DecMapInt8Int8X(vp *map[int8]int8, d *Decoder) {
  30224. v, changed := f.DecMapInt8Int8V(*vp, true, d)
  30225. if changed {
  30226. *vp = v
  30227. }
  30228. }
  30229. func (_ fastpathT) DecMapInt8Int8V(v map[int8]int8, canChange bool,
  30230. d *Decoder) (_ map[int8]int8, changed bool) {
  30231. dd, esep := d.d, d.hh.hasElemSeparators()
  30232. containerLen := dd.ReadMapStart()
  30233. if canChange && v == nil {
  30234. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30235. v = make(map[int8]int8, xlen)
  30236. changed = true
  30237. }
  30238. if containerLen == 0 {
  30239. dd.ReadMapEnd()
  30240. return v, changed
  30241. }
  30242. d.depthIncr()
  30243. var mk int8
  30244. var mv int8
  30245. hasLen := containerLen > 0
  30246. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30247. if esep {
  30248. dd.ReadMapElemKey()
  30249. }
  30250. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30251. if esep {
  30252. dd.ReadMapElemValue()
  30253. }
  30254. if dd.TryDecodeAsNil() {
  30255. if v == nil {
  30256. } else if d.h.DeleteOnNilMapValue {
  30257. delete(v, mk)
  30258. } else {
  30259. v[mk] = 0
  30260. }
  30261. continue
  30262. }
  30263. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30264. if v != nil {
  30265. v[mk] = mv
  30266. }
  30267. }
  30268. dd.ReadMapEnd()
  30269. d.depthDecr()
  30270. return v, changed
  30271. }
  30272. func (d *Decoder) fastpathDecMapInt8Int16R(f *codecFnInfo, rv reflect.Value) {
  30273. if rv.Kind() == reflect.Ptr {
  30274. vp := rv2i(rv).(*map[int8]int16)
  30275. v, changed := fastpathTV.DecMapInt8Int16V(*vp, true, d)
  30276. if changed {
  30277. *vp = v
  30278. }
  30279. } else {
  30280. fastpathTV.DecMapInt8Int16V(rv2i(rv).(map[int8]int16), false, d)
  30281. }
  30282. }
  30283. func (f fastpathT) DecMapInt8Int16X(vp *map[int8]int16, d *Decoder) {
  30284. v, changed := f.DecMapInt8Int16V(*vp, true, d)
  30285. if changed {
  30286. *vp = v
  30287. }
  30288. }
  30289. func (_ fastpathT) DecMapInt8Int16V(v map[int8]int16, canChange bool,
  30290. d *Decoder) (_ map[int8]int16, changed bool) {
  30291. dd, esep := d.d, d.hh.hasElemSeparators()
  30292. containerLen := dd.ReadMapStart()
  30293. if canChange && v == nil {
  30294. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30295. v = make(map[int8]int16, xlen)
  30296. changed = true
  30297. }
  30298. if containerLen == 0 {
  30299. dd.ReadMapEnd()
  30300. return v, changed
  30301. }
  30302. d.depthIncr()
  30303. var mk int8
  30304. var mv int16
  30305. hasLen := containerLen > 0
  30306. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30307. if esep {
  30308. dd.ReadMapElemKey()
  30309. }
  30310. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30311. if esep {
  30312. dd.ReadMapElemValue()
  30313. }
  30314. if dd.TryDecodeAsNil() {
  30315. if v == nil {
  30316. } else if d.h.DeleteOnNilMapValue {
  30317. delete(v, mk)
  30318. } else {
  30319. v[mk] = 0
  30320. }
  30321. continue
  30322. }
  30323. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30324. if v != nil {
  30325. v[mk] = mv
  30326. }
  30327. }
  30328. dd.ReadMapEnd()
  30329. d.depthDecr()
  30330. return v, changed
  30331. }
  30332. func (d *Decoder) fastpathDecMapInt8Int32R(f *codecFnInfo, rv reflect.Value) {
  30333. if rv.Kind() == reflect.Ptr {
  30334. vp := rv2i(rv).(*map[int8]int32)
  30335. v, changed := fastpathTV.DecMapInt8Int32V(*vp, true, d)
  30336. if changed {
  30337. *vp = v
  30338. }
  30339. } else {
  30340. fastpathTV.DecMapInt8Int32V(rv2i(rv).(map[int8]int32), false, d)
  30341. }
  30342. }
  30343. func (f fastpathT) DecMapInt8Int32X(vp *map[int8]int32, d *Decoder) {
  30344. v, changed := f.DecMapInt8Int32V(*vp, true, d)
  30345. if changed {
  30346. *vp = v
  30347. }
  30348. }
  30349. func (_ fastpathT) DecMapInt8Int32V(v map[int8]int32, canChange bool,
  30350. d *Decoder) (_ map[int8]int32, changed bool) {
  30351. dd, esep := d.d, d.hh.hasElemSeparators()
  30352. containerLen := dd.ReadMapStart()
  30353. if canChange && v == nil {
  30354. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30355. v = make(map[int8]int32, xlen)
  30356. changed = true
  30357. }
  30358. if containerLen == 0 {
  30359. dd.ReadMapEnd()
  30360. return v, changed
  30361. }
  30362. d.depthIncr()
  30363. var mk int8
  30364. var mv int32
  30365. hasLen := containerLen > 0
  30366. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30367. if esep {
  30368. dd.ReadMapElemKey()
  30369. }
  30370. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30371. if esep {
  30372. dd.ReadMapElemValue()
  30373. }
  30374. if dd.TryDecodeAsNil() {
  30375. if v == nil {
  30376. } else if d.h.DeleteOnNilMapValue {
  30377. delete(v, mk)
  30378. } else {
  30379. v[mk] = 0
  30380. }
  30381. continue
  30382. }
  30383. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  30384. if v != nil {
  30385. v[mk] = mv
  30386. }
  30387. }
  30388. dd.ReadMapEnd()
  30389. d.depthDecr()
  30390. return v, changed
  30391. }
  30392. func (d *Decoder) fastpathDecMapInt8Int64R(f *codecFnInfo, rv reflect.Value) {
  30393. if rv.Kind() == reflect.Ptr {
  30394. vp := rv2i(rv).(*map[int8]int64)
  30395. v, changed := fastpathTV.DecMapInt8Int64V(*vp, true, d)
  30396. if changed {
  30397. *vp = v
  30398. }
  30399. } else {
  30400. fastpathTV.DecMapInt8Int64V(rv2i(rv).(map[int8]int64), false, d)
  30401. }
  30402. }
  30403. func (f fastpathT) DecMapInt8Int64X(vp *map[int8]int64, d *Decoder) {
  30404. v, changed := f.DecMapInt8Int64V(*vp, true, d)
  30405. if changed {
  30406. *vp = v
  30407. }
  30408. }
  30409. func (_ fastpathT) DecMapInt8Int64V(v map[int8]int64, canChange bool,
  30410. d *Decoder) (_ map[int8]int64, changed bool) {
  30411. dd, esep := d.d, d.hh.hasElemSeparators()
  30412. containerLen := dd.ReadMapStart()
  30413. if canChange && v == nil {
  30414. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30415. v = make(map[int8]int64, xlen)
  30416. changed = true
  30417. }
  30418. if containerLen == 0 {
  30419. dd.ReadMapEnd()
  30420. return v, changed
  30421. }
  30422. d.depthIncr()
  30423. var mk int8
  30424. var mv int64
  30425. hasLen := containerLen > 0
  30426. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30427. if esep {
  30428. dd.ReadMapElemKey()
  30429. }
  30430. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30431. if esep {
  30432. dd.ReadMapElemValue()
  30433. }
  30434. if dd.TryDecodeAsNil() {
  30435. if v == nil {
  30436. } else if d.h.DeleteOnNilMapValue {
  30437. delete(v, mk)
  30438. } else {
  30439. v[mk] = 0
  30440. }
  30441. continue
  30442. }
  30443. mv = dd.DecodeInt64()
  30444. if v != nil {
  30445. v[mk] = mv
  30446. }
  30447. }
  30448. dd.ReadMapEnd()
  30449. d.depthDecr()
  30450. return v, changed
  30451. }
  30452. func (d *Decoder) fastpathDecMapInt8Float32R(f *codecFnInfo, rv reflect.Value) {
  30453. if rv.Kind() == reflect.Ptr {
  30454. vp := rv2i(rv).(*map[int8]float32)
  30455. v, changed := fastpathTV.DecMapInt8Float32V(*vp, true, d)
  30456. if changed {
  30457. *vp = v
  30458. }
  30459. } else {
  30460. fastpathTV.DecMapInt8Float32V(rv2i(rv).(map[int8]float32), false, d)
  30461. }
  30462. }
  30463. func (f fastpathT) DecMapInt8Float32X(vp *map[int8]float32, d *Decoder) {
  30464. v, changed := f.DecMapInt8Float32V(*vp, true, d)
  30465. if changed {
  30466. *vp = v
  30467. }
  30468. }
  30469. func (_ fastpathT) DecMapInt8Float32V(v map[int8]float32, canChange bool,
  30470. d *Decoder) (_ map[int8]float32, changed bool) {
  30471. dd, esep := d.d, d.hh.hasElemSeparators()
  30472. containerLen := dd.ReadMapStart()
  30473. if canChange && v == nil {
  30474. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  30475. v = make(map[int8]float32, xlen)
  30476. changed = true
  30477. }
  30478. if containerLen == 0 {
  30479. dd.ReadMapEnd()
  30480. return v, changed
  30481. }
  30482. d.depthIncr()
  30483. var mk int8
  30484. var mv float32
  30485. hasLen := containerLen > 0
  30486. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30487. if esep {
  30488. dd.ReadMapElemKey()
  30489. }
  30490. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30491. if esep {
  30492. dd.ReadMapElemValue()
  30493. }
  30494. if dd.TryDecodeAsNil() {
  30495. if v == nil {
  30496. } else if d.h.DeleteOnNilMapValue {
  30497. delete(v, mk)
  30498. } else {
  30499. v[mk] = 0
  30500. }
  30501. continue
  30502. }
  30503. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  30504. if v != nil {
  30505. v[mk] = mv
  30506. }
  30507. }
  30508. dd.ReadMapEnd()
  30509. d.depthDecr()
  30510. return v, changed
  30511. }
  30512. func (d *Decoder) fastpathDecMapInt8Float64R(f *codecFnInfo, rv reflect.Value) {
  30513. if rv.Kind() == reflect.Ptr {
  30514. vp := rv2i(rv).(*map[int8]float64)
  30515. v, changed := fastpathTV.DecMapInt8Float64V(*vp, true, d)
  30516. if changed {
  30517. *vp = v
  30518. }
  30519. } else {
  30520. fastpathTV.DecMapInt8Float64V(rv2i(rv).(map[int8]float64), false, d)
  30521. }
  30522. }
  30523. func (f fastpathT) DecMapInt8Float64X(vp *map[int8]float64, d *Decoder) {
  30524. v, changed := f.DecMapInt8Float64V(*vp, true, d)
  30525. if changed {
  30526. *vp = v
  30527. }
  30528. }
  30529. func (_ fastpathT) DecMapInt8Float64V(v map[int8]float64, canChange bool,
  30530. d *Decoder) (_ map[int8]float64, changed bool) {
  30531. dd, esep := d.d, d.hh.hasElemSeparators()
  30532. containerLen := dd.ReadMapStart()
  30533. if canChange && v == nil {
  30534. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  30535. v = make(map[int8]float64, xlen)
  30536. changed = true
  30537. }
  30538. if containerLen == 0 {
  30539. dd.ReadMapEnd()
  30540. return v, changed
  30541. }
  30542. d.depthIncr()
  30543. var mk int8
  30544. var mv float64
  30545. hasLen := containerLen > 0
  30546. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30547. if esep {
  30548. dd.ReadMapElemKey()
  30549. }
  30550. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30551. if esep {
  30552. dd.ReadMapElemValue()
  30553. }
  30554. if dd.TryDecodeAsNil() {
  30555. if v == nil {
  30556. } else if d.h.DeleteOnNilMapValue {
  30557. delete(v, mk)
  30558. } else {
  30559. v[mk] = 0
  30560. }
  30561. continue
  30562. }
  30563. mv = dd.DecodeFloat64()
  30564. if v != nil {
  30565. v[mk] = mv
  30566. }
  30567. }
  30568. dd.ReadMapEnd()
  30569. d.depthDecr()
  30570. return v, changed
  30571. }
  30572. func (d *Decoder) fastpathDecMapInt8BoolR(f *codecFnInfo, rv reflect.Value) {
  30573. if rv.Kind() == reflect.Ptr {
  30574. vp := rv2i(rv).(*map[int8]bool)
  30575. v, changed := fastpathTV.DecMapInt8BoolV(*vp, true, d)
  30576. if changed {
  30577. *vp = v
  30578. }
  30579. } else {
  30580. fastpathTV.DecMapInt8BoolV(rv2i(rv).(map[int8]bool), false, d)
  30581. }
  30582. }
  30583. func (f fastpathT) DecMapInt8BoolX(vp *map[int8]bool, d *Decoder) {
  30584. v, changed := f.DecMapInt8BoolV(*vp, true, d)
  30585. if changed {
  30586. *vp = v
  30587. }
  30588. }
  30589. func (_ fastpathT) DecMapInt8BoolV(v map[int8]bool, canChange bool,
  30590. d *Decoder) (_ map[int8]bool, changed bool) {
  30591. dd, esep := d.d, d.hh.hasElemSeparators()
  30592. containerLen := dd.ReadMapStart()
  30593. if canChange && v == nil {
  30594. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  30595. v = make(map[int8]bool, xlen)
  30596. changed = true
  30597. }
  30598. if containerLen == 0 {
  30599. dd.ReadMapEnd()
  30600. return v, changed
  30601. }
  30602. d.depthIncr()
  30603. var mk int8
  30604. var mv bool
  30605. hasLen := containerLen > 0
  30606. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30607. if esep {
  30608. dd.ReadMapElemKey()
  30609. }
  30610. mk = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  30611. if esep {
  30612. dd.ReadMapElemValue()
  30613. }
  30614. if dd.TryDecodeAsNil() {
  30615. if v == nil {
  30616. } else if d.h.DeleteOnNilMapValue {
  30617. delete(v, mk)
  30618. } else {
  30619. v[mk] = false
  30620. }
  30621. continue
  30622. }
  30623. mv = dd.DecodeBool()
  30624. if v != nil {
  30625. v[mk] = mv
  30626. }
  30627. }
  30628. dd.ReadMapEnd()
  30629. d.depthDecr()
  30630. return v, changed
  30631. }
  30632. func (d *Decoder) fastpathDecMapInt16IntfR(f *codecFnInfo, rv reflect.Value) {
  30633. if rv.Kind() == reflect.Ptr {
  30634. vp := rv2i(rv).(*map[int16]interface{})
  30635. v, changed := fastpathTV.DecMapInt16IntfV(*vp, true, d)
  30636. if changed {
  30637. *vp = v
  30638. }
  30639. } else {
  30640. fastpathTV.DecMapInt16IntfV(rv2i(rv).(map[int16]interface{}), false, d)
  30641. }
  30642. }
  30643. func (f fastpathT) DecMapInt16IntfX(vp *map[int16]interface{}, d *Decoder) {
  30644. v, changed := f.DecMapInt16IntfV(*vp, true, d)
  30645. if changed {
  30646. *vp = v
  30647. }
  30648. }
  30649. func (_ fastpathT) DecMapInt16IntfV(v map[int16]interface{}, canChange bool,
  30650. d *Decoder) (_ map[int16]interface{}, changed bool) {
  30651. dd, esep := d.d, d.hh.hasElemSeparators()
  30652. containerLen := dd.ReadMapStart()
  30653. if canChange && v == nil {
  30654. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30655. v = make(map[int16]interface{}, xlen)
  30656. changed = true
  30657. }
  30658. if containerLen == 0 {
  30659. dd.ReadMapEnd()
  30660. return v, changed
  30661. }
  30662. d.depthIncr()
  30663. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  30664. var mk int16
  30665. var mv interface{}
  30666. hasLen := containerLen > 0
  30667. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30668. if esep {
  30669. dd.ReadMapElemKey()
  30670. }
  30671. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30672. if esep {
  30673. dd.ReadMapElemValue()
  30674. }
  30675. if dd.TryDecodeAsNil() {
  30676. if v == nil {
  30677. } else if d.h.DeleteOnNilMapValue {
  30678. delete(v, mk)
  30679. } else {
  30680. v[mk] = nil
  30681. }
  30682. continue
  30683. }
  30684. if mapGet {
  30685. mv = v[mk]
  30686. } else {
  30687. mv = nil
  30688. }
  30689. d.decode(&mv)
  30690. if v != nil {
  30691. v[mk] = mv
  30692. }
  30693. }
  30694. dd.ReadMapEnd()
  30695. d.depthDecr()
  30696. return v, changed
  30697. }
  30698. func (d *Decoder) fastpathDecMapInt16StringR(f *codecFnInfo, rv reflect.Value) {
  30699. if rv.Kind() == reflect.Ptr {
  30700. vp := rv2i(rv).(*map[int16]string)
  30701. v, changed := fastpathTV.DecMapInt16StringV(*vp, true, d)
  30702. if changed {
  30703. *vp = v
  30704. }
  30705. } else {
  30706. fastpathTV.DecMapInt16StringV(rv2i(rv).(map[int16]string), false, d)
  30707. }
  30708. }
  30709. func (f fastpathT) DecMapInt16StringX(vp *map[int16]string, d *Decoder) {
  30710. v, changed := f.DecMapInt16StringV(*vp, true, d)
  30711. if changed {
  30712. *vp = v
  30713. }
  30714. }
  30715. func (_ fastpathT) DecMapInt16StringV(v map[int16]string, canChange bool,
  30716. d *Decoder) (_ map[int16]string, changed bool) {
  30717. dd, esep := d.d, d.hh.hasElemSeparators()
  30718. containerLen := dd.ReadMapStart()
  30719. if canChange && v == nil {
  30720. xlen := decInferLen(containerLen, d.h.MaxInitLen, 18)
  30721. v = make(map[int16]string, xlen)
  30722. changed = true
  30723. }
  30724. if containerLen == 0 {
  30725. dd.ReadMapEnd()
  30726. return v, changed
  30727. }
  30728. d.depthIncr()
  30729. var mk int16
  30730. var mv string
  30731. hasLen := containerLen > 0
  30732. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30733. if esep {
  30734. dd.ReadMapElemKey()
  30735. }
  30736. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30737. if esep {
  30738. dd.ReadMapElemValue()
  30739. }
  30740. if dd.TryDecodeAsNil() {
  30741. if v == nil {
  30742. } else if d.h.DeleteOnNilMapValue {
  30743. delete(v, mk)
  30744. } else {
  30745. v[mk] = ""
  30746. }
  30747. continue
  30748. }
  30749. mv = dd.DecodeString()
  30750. if v != nil {
  30751. v[mk] = mv
  30752. }
  30753. }
  30754. dd.ReadMapEnd()
  30755. d.depthDecr()
  30756. return v, changed
  30757. }
  30758. func (d *Decoder) fastpathDecMapInt16UintR(f *codecFnInfo, rv reflect.Value) {
  30759. if rv.Kind() == reflect.Ptr {
  30760. vp := rv2i(rv).(*map[int16]uint)
  30761. v, changed := fastpathTV.DecMapInt16UintV(*vp, true, d)
  30762. if changed {
  30763. *vp = v
  30764. }
  30765. } else {
  30766. fastpathTV.DecMapInt16UintV(rv2i(rv).(map[int16]uint), false, d)
  30767. }
  30768. }
  30769. func (f fastpathT) DecMapInt16UintX(vp *map[int16]uint, d *Decoder) {
  30770. v, changed := f.DecMapInt16UintV(*vp, true, d)
  30771. if changed {
  30772. *vp = v
  30773. }
  30774. }
  30775. func (_ fastpathT) DecMapInt16UintV(v map[int16]uint, canChange bool,
  30776. d *Decoder) (_ map[int16]uint, changed bool) {
  30777. dd, esep := d.d, d.hh.hasElemSeparators()
  30778. containerLen := dd.ReadMapStart()
  30779. if canChange && v == nil {
  30780. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  30781. v = make(map[int16]uint, xlen)
  30782. changed = true
  30783. }
  30784. if containerLen == 0 {
  30785. dd.ReadMapEnd()
  30786. return v, changed
  30787. }
  30788. d.depthIncr()
  30789. var mk int16
  30790. var mv uint
  30791. hasLen := containerLen > 0
  30792. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30793. if esep {
  30794. dd.ReadMapElemKey()
  30795. }
  30796. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30797. if esep {
  30798. dd.ReadMapElemValue()
  30799. }
  30800. if dd.TryDecodeAsNil() {
  30801. if v == nil {
  30802. } else if d.h.DeleteOnNilMapValue {
  30803. delete(v, mk)
  30804. } else {
  30805. v[mk] = 0
  30806. }
  30807. continue
  30808. }
  30809. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  30810. if v != nil {
  30811. v[mk] = mv
  30812. }
  30813. }
  30814. dd.ReadMapEnd()
  30815. d.depthDecr()
  30816. return v, changed
  30817. }
  30818. func (d *Decoder) fastpathDecMapInt16Uint8R(f *codecFnInfo, rv reflect.Value) {
  30819. if rv.Kind() == reflect.Ptr {
  30820. vp := rv2i(rv).(*map[int16]uint8)
  30821. v, changed := fastpathTV.DecMapInt16Uint8V(*vp, true, d)
  30822. if changed {
  30823. *vp = v
  30824. }
  30825. } else {
  30826. fastpathTV.DecMapInt16Uint8V(rv2i(rv).(map[int16]uint8), false, d)
  30827. }
  30828. }
  30829. func (f fastpathT) DecMapInt16Uint8X(vp *map[int16]uint8, d *Decoder) {
  30830. v, changed := f.DecMapInt16Uint8V(*vp, true, d)
  30831. if changed {
  30832. *vp = v
  30833. }
  30834. }
  30835. func (_ fastpathT) DecMapInt16Uint8V(v map[int16]uint8, canChange bool,
  30836. d *Decoder) (_ map[int16]uint8, changed bool) {
  30837. dd, esep := d.d, d.hh.hasElemSeparators()
  30838. containerLen := dd.ReadMapStart()
  30839. if canChange && v == nil {
  30840. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  30841. v = make(map[int16]uint8, xlen)
  30842. changed = true
  30843. }
  30844. if containerLen == 0 {
  30845. dd.ReadMapEnd()
  30846. return v, changed
  30847. }
  30848. d.depthIncr()
  30849. var mk int16
  30850. var mv uint8
  30851. hasLen := containerLen > 0
  30852. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30853. if esep {
  30854. dd.ReadMapElemKey()
  30855. }
  30856. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30857. if esep {
  30858. dd.ReadMapElemValue()
  30859. }
  30860. if dd.TryDecodeAsNil() {
  30861. if v == nil {
  30862. } else if d.h.DeleteOnNilMapValue {
  30863. delete(v, mk)
  30864. } else {
  30865. v[mk] = 0
  30866. }
  30867. continue
  30868. }
  30869. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  30870. if v != nil {
  30871. v[mk] = mv
  30872. }
  30873. }
  30874. dd.ReadMapEnd()
  30875. d.depthDecr()
  30876. return v, changed
  30877. }
  30878. func (d *Decoder) fastpathDecMapInt16Uint16R(f *codecFnInfo, rv reflect.Value) {
  30879. if rv.Kind() == reflect.Ptr {
  30880. vp := rv2i(rv).(*map[int16]uint16)
  30881. v, changed := fastpathTV.DecMapInt16Uint16V(*vp, true, d)
  30882. if changed {
  30883. *vp = v
  30884. }
  30885. } else {
  30886. fastpathTV.DecMapInt16Uint16V(rv2i(rv).(map[int16]uint16), false, d)
  30887. }
  30888. }
  30889. func (f fastpathT) DecMapInt16Uint16X(vp *map[int16]uint16, d *Decoder) {
  30890. v, changed := f.DecMapInt16Uint16V(*vp, true, d)
  30891. if changed {
  30892. *vp = v
  30893. }
  30894. }
  30895. func (_ fastpathT) DecMapInt16Uint16V(v map[int16]uint16, canChange bool,
  30896. d *Decoder) (_ map[int16]uint16, changed bool) {
  30897. dd, esep := d.d, d.hh.hasElemSeparators()
  30898. containerLen := dd.ReadMapStart()
  30899. if canChange && v == nil {
  30900. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  30901. v = make(map[int16]uint16, xlen)
  30902. changed = true
  30903. }
  30904. if containerLen == 0 {
  30905. dd.ReadMapEnd()
  30906. return v, changed
  30907. }
  30908. d.depthIncr()
  30909. var mk int16
  30910. var mv uint16
  30911. hasLen := containerLen > 0
  30912. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30913. if esep {
  30914. dd.ReadMapElemKey()
  30915. }
  30916. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30917. if esep {
  30918. dd.ReadMapElemValue()
  30919. }
  30920. if dd.TryDecodeAsNil() {
  30921. if v == nil {
  30922. } else if d.h.DeleteOnNilMapValue {
  30923. delete(v, mk)
  30924. } else {
  30925. v[mk] = 0
  30926. }
  30927. continue
  30928. }
  30929. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  30930. if v != nil {
  30931. v[mk] = mv
  30932. }
  30933. }
  30934. dd.ReadMapEnd()
  30935. d.depthDecr()
  30936. return v, changed
  30937. }
  30938. func (d *Decoder) fastpathDecMapInt16Uint32R(f *codecFnInfo, rv reflect.Value) {
  30939. if rv.Kind() == reflect.Ptr {
  30940. vp := rv2i(rv).(*map[int16]uint32)
  30941. v, changed := fastpathTV.DecMapInt16Uint32V(*vp, true, d)
  30942. if changed {
  30943. *vp = v
  30944. }
  30945. } else {
  30946. fastpathTV.DecMapInt16Uint32V(rv2i(rv).(map[int16]uint32), false, d)
  30947. }
  30948. }
  30949. func (f fastpathT) DecMapInt16Uint32X(vp *map[int16]uint32, d *Decoder) {
  30950. v, changed := f.DecMapInt16Uint32V(*vp, true, d)
  30951. if changed {
  30952. *vp = v
  30953. }
  30954. }
  30955. func (_ fastpathT) DecMapInt16Uint32V(v map[int16]uint32, canChange bool,
  30956. d *Decoder) (_ map[int16]uint32, changed bool) {
  30957. dd, esep := d.d, d.hh.hasElemSeparators()
  30958. containerLen := dd.ReadMapStart()
  30959. if canChange && v == nil {
  30960. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  30961. v = make(map[int16]uint32, xlen)
  30962. changed = true
  30963. }
  30964. if containerLen == 0 {
  30965. dd.ReadMapEnd()
  30966. return v, changed
  30967. }
  30968. d.depthIncr()
  30969. var mk int16
  30970. var mv uint32
  30971. hasLen := containerLen > 0
  30972. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  30973. if esep {
  30974. dd.ReadMapElemKey()
  30975. }
  30976. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  30977. if esep {
  30978. dd.ReadMapElemValue()
  30979. }
  30980. if dd.TryDecodeAsNil() {
  30981. if v == nil {
  30982. } else if d.h.DeleteOnNilMapValue {
  30983. delete(v, mk)
  30984. } else {
  30985. v[mk] = 0
  30986. }
  30987. continue
  30988. }
  30989. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  30990. if v != nil {
  30991. v[mk] = mv
  30992. }
  30993. }
  30994. dd.ReadMapEnd()
  30995. d.depthDecr()
  30996. return v, changed
  30997. }
  30998. func (d *Decoder) fastpathDecMapInt16Uint64R(f *codecFnInfo, rv reflect.Value) {
  30999. if rv.Kind() == reflect.Ptr {
  31000. vp := rv2i(rv).(*map[int16]uint64)
  31001. v, changed := fastpathTV.DecMapInt16Uint64V(*vp, true, d)
  31002. if changed {
  31003. *vp = v
  31004. }
  31005. } else {
  31006. fastpathTV.DecMapInt16Uint64V(rv2i(rv).(map[int16]uint64), false, d)
  31007. }
  31008. }
  31009. func (f fastpathT) DecMapInt16Uint64X(vp *map[int16]uint64, d *Decoder) {
  31010. v, changed := f.DecMapInt16Uint64V(*vp, true, d)
  31011. if changed {
  31012. *vp = v
  31013. }
  31014. }
  31015. func (_ fastpathT) DecMapInt16Uint64V(v map[int16]uint64, canChange bool,
  31016. d *Decoder) (_ map[int16]uint64, changed bool) {
  31017. dd, esep := d.d, d.hh.hasElemSeparators()
  31018. containerLen := dd.ReadMapStart()
  31019. if canChange && v == nil {
  31020. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31021. v = make(map[int16]uint64, xlen)
  31022. changed = true
  31023. }
  31024. if containerLen == 0 {
  31025. dd.ReadMapEnd()
  31026. return v, changed
  31027. }
  31028. d.depthIncr()
  31029. var mk int16
  31030. var mv uint64
  31031. hasLen := containerLen > 0
  31032. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31033. if esep {
  31034. dd.ReadMapElemKey()
  31035. }
  31036. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31037. if esep {
  31038. dd.ReadMapElemValue()
  31039. }
  31040. if dd.TryDecodeAsNil() {
  31041. if v == nil {
  31042. } else if d.h.DeleteOnNilMapValue {
  31043. delete(v, mk)
  31044. } else {
  31045. v[mk] = 0
  31046. }
  31047. continue
  31048. }
  31049. mv = dd.DecodeUint64()
  31050. if v != nil {
  31051. v[mk] = mv
  31052. }
  31053. }
  31054. dd.ReadMapEnd()
  31055. d.depthDecr()
  31056. return v, changed
  31057. }
  31058. func (d *Decoder) fastpathDecMapInt16UintptrR(f *codecFnInfo, rv reflect.Value) {
  31059. if rv.Kind() == reflect.Ptr {
  31060. vp := rv2i(rv).(*map[int16]uintptr)
  31061. v, changed := fastpathTV.DecMapInt16UintptrV(*vp, true, d)
  31062. if changed {
  31063. *vp = v
  31064. }
  31065. } else {
  31066. fastpathTV.DecMapInt16UintptrV(rv2i(rv).(map[int16]uintptr), false, d)
  31067. }
  31068. }
  31069. func (f fastpathT) DecMapInt16UintptrX(vp *map[int16]uintptr, d *Decoder) {
  31070. v, changed := f.DecMapInt16UintptrV(*vp, true, d)
  31071. if changed {
  31072. *vp = v
  31073. }
  31074. }
  31075. func (_ fastpathT) DecMapInt16UintptrV(v map[int16]uintptr, canChange bool,
  31076. d *Decoder) (_ map[int16]uintptr, changed bool) {
  31077. dd, esep := d.d, d.hh.hasElemSeparators()
  31078. containerLen := dd.ReadMapStart()
  31079. if canChange && v == nil {
  31080. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31081. v = make(map[int16]uintptr, xlen)
  31082. changed = true
  31083. }
  31084. if containerLen == 0 {
  31085. dd.ReadMapEnd()
  31086. return v, changed
  31087. }
  31088. d.depthIncr()
  31089. var mk int16
  31090. var mv uintptr
  31091. hasLen := containerLen > 0
  31092. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31093. if esep {
  31094. dd.ReadMapElemKey()
  31095. }
  31096. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31097. if esep {
  31098. dd.ReadMapElemValue()
  31099. }
  31100. if dd.TryDecodeAsNil() {
  31101. if v == nil {
  31102. } else if d.h.DeleteOnNilMapValue {
  31103. delete(v, mk)
  31104. } else {
  31105. v[mk] = 0
  31106. }
  31107. continue
  31108. }
  31109. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31110. if v != nil {
  31111. v[mk] = mv
  31112. }
  31113. }
  31114. dd.ReadMapEnd()
  31115. d.depthDecr()
  31116. return v, changed
  31117. }
  31118. func (d *Decoder) fastpathDecMapInt16IntR(f *codecFnInfo, rv reflect.Value) {
  31119. if rv.Kind() == reflect.Ptr {
  31120. vp := rv2i(rv).(*map[int16]int)
  31121. v, changed := fastpathTV.DecMapInt16IntV(*vp, true, d)
  31122. if changed {
  31123. *vp = v
  31124. }
  31125. } else {
  31126. fastpathTV.DecMapInt16IntV(rv2i(rv).(map[int16]int), false, d)
  31127. }
  31128. }
  31129. func (f fastpathT) DecMapInt16IntX(vp *map[int16]int, d *Decoder) {
  31130. v, changed := f.DecMapInt16IntV(*vp, true, d)
  31131. if changed {
  31132. *vp = v
  31133. }
  31134. }
  31135. func (_ fastpathT) DecMapInt16IntV(v map[int16]int, canChange bool,
  31136. d *Decoder) (_ map[int16]int, changed bool) {
  31137. dd, esep := d.d, d.hh.hasElemSeparators()
  31138. containerLen := dd.ReadMapStart()
  31139. if canChange && v == nil {
  31140. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31141. v = make(map[int16]int, xlen)
  31142. changed = true
  31143. }
  31144. if containerLen == 0 {
  31145. dd.ReadMapEnd()
  31146. return v, changed
  31147. }
  31148. d.depthIncr()
  31149. var mk int16
  31150. var mv int
  31151. hasLen := containerLen > 0
  31152. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31153. if esep {
  31154. dd.ReadMapElemKey()
  31155. }
  31156. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31157. if esep {
  31158. dd.ReadMapElemValue()
  31159. }
  31160. if dd.TryDecodeAsNil() {
  31161. if v == nil {
  31162. } else if d.h.DeleteOnNilMapValue {
  31163. delete(v, mk)
  31164. } else {
  31165. v[mk] = 0
  31166. }
  31167. continue
  31168. }
  31169. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  31170. if v != nil {
  31171. v[mk] = mv
  31172. }
  31173. }
  31174. dd.ReadMapEnd()
  31175. d.depthDecr()
  31176. return v, changed
  31177. }
  31178. func (d *Decoder) fastpathDecMapInt16Int8R(f *codecFnInfo, rv reflect.Value) {
  31179. if rv.Kind() == reflect.Ptr {
  31180. vp := rv2i(rv).(*map[int16]int8)
  31181. v, changed := fastpathTV.DecMapInt16Int8V(*vp, true, d)
  31182. if changed {
  31183. *vp = v
  31184. }
  31185. } else {
  31186. fastpathTV.DecMapInt16Int8V(rv2i(rv).(map[int16]int8), false, d)
  31187. }
  31188. }
  31189. func (f fastpathT) DecMapInt16Int8X(vp *map[int16]int8, d *Decoder) {
  31190. v, changed := f.DecMapInt16Int8V(*vp, true, d)
  31191. if changed {
  31192. *vp = v
  31193. }
  31194. }
  31195. func (_ fastpathT) DecMapInt16Int8V(v map[int16]int8, canChange bool,
  31196. d *Decoder) (_ map[int16]int8, changed bool) {
  31197. dd, esep := d.d, d.hh.hasElemSeparators()
  31198. containerLen := dd.ReadMapStart()
  31199. if canChange && v == nil {
  31200. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31201. v = make(map[int16]int8, xlen)
  31202. changed = true
  31203. }
  31204. if containerLen == 0 {
  31205. dd.ReadMapEnd()
  31206. return v, changed
  31207. }
  31208. d.depthIncr()
  31209. var mk int16
  31210. var mv int8
  31211. hasLen := containerLen > 0
  31212. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31213. if esep {
  31214. dd.ReadMapElemKey()
  31215. }
  31216. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31217. if esep {
  31218. dd.ReadMapElemValue()
  31219. }
  31220. if dd.TryDecodeAsNil() {
  31221. if v == nil {
  31222. } else if d.h.DeleteOnNilMapValue {
  31223. delete(v, mk)
  31224. } else {
  31225. v[mk] = 0
  31226. }
  31227. continue
  31228. }
  31229. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  31230. if v != nil {
  31231. v[mk] = mv
  31232. }
  31233. }
  31234. dd.ReadMapEnd()
  31235. d.depthDecr()
  31236. return v, changed
  31237. }
  31238. func (d *Decoder) fastpathDecMapInt16Int16R(f *codecFnInfo, rv reflect.Value) {
  31239. if rv.Kind() == reflect.Ptr {
  31240. vp := rv2i(rv).(*map[int16]int16)
  31241. v, changed := fastpathTV.DecMapInt16Int16V(*vp, true, d)
  31242. if changed {
  31243. *vp = v
  31244. }
  31245. } else {
  31246. fastpathTV.DecMapInt16Int16V(rv2i(rv).(map[int16]int16), false, d)
  31247. }
  31248. }
  31249. func (f fastpathT) DecMapInt16Int16X(vp *map[int16]int16, d *Decoder) {
  31250. v, changed := f.DecMapInt16Int16V(*vp, true, d)
  31251. if changed {
  31252. *vp = v
  31253. }
  31254. }
  31255. func (_ fastpathT) DecMapInt16Int16V(v map[int16]int16, canChange bool,
  31256. d *Decoder) (_ map[int16]int16, changed bool) {
  31257. dd, esep := d.d, d.hh.hasElemSeparators()
  31258. containerLen := dd.ReadMapStart()
  31259. if canChange && v == nil {
  31260. xlen := decInferLen(containerLen, d.h.MaxInitLen, 4)
  31261. v = make(map[int16]int16, xlen)
  31262. changed = true
  31263. }
  31264. if containerLen == 0 {
  31265. dd.ReadMapEnd()
  31266. return v, changed
  31267. }
  31268. d.depthIncr()
  31269. var mk int16
  31270. var mv int16
  31271. hasLen := containerLen > 0
  31272. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31273. if esep {
  31274. dd.ReadMapElemKey()
  31275. }
  31276. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31277. if esep {
  31278. dd.ReadMapElemValue()
  31279. }
  31280. if dd.TryDecodeAsNil() {
  31281. if v == nil {
  31282. } else if d.h.DeleteOnNilMapValue {
  31283. delete(v, mk)
  31284. } else {
  31285. v[mk] = 0
  31286. }
  31287. continue
  31288. }
  31289. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31290. if v != nil {
  31291. v[mk] = mv
  31292. }
  31293. }
  31294. dd.ReadMapEnd()
  31295. d.depthDecr()
  31296. return v, changed
  31297. }
  31298. func (d *Decoder) fastpathDecMapInt16Int32R(f *codecFnInfo, rv reflect.Value) {
  31299. if rv.Kind() == reflect.Ptr {
  31300. vp := rv2i(rv).(*map[int16]int32)
  31301. v, changed := fastpathTV.DecMapInt16Int32V(*vp, true, d)
  31302. if changed {
  31303. *vp = v
  31304. }
  31305. } else {
  31306. fastpathTV.DecMapInt16Int32V(rv2i(rv).(map[int16]int32), false, d)
  31307. }
  31308. }
  31309. func (f fastpathT) DecMapInt16Int32X(vp *map[int16]int32, d *Decoder) {
  31310. v, changed := f.DecMapInt16Int32V(*vp, true, d)
  31311. if changed {
  31312. *vp = v
  31313. }
  31314. }
  31315. func (_ fastpathT) DecMapInt16Int32V(v map[int16]int32, canChange bool,
  31316. d *Decoder) (_ map[int16]int32, changed bool) {
  31317. dd, esep := d.d, d.hh.hasElemSeparators()
  31318. containerLen := dd.ReadMapStart()
  31319. if canChange && v == nil {
  31320. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31321. v = make(map[int16]int32, xlen)
  31322. changed = true
  31323. }
  31324. if containerLen == 0 {
  31325. dd.ReadMapEnd()
  31326. return v, changed
  31327. }
  31328. d.depthIncr()
  31329. var mk int16
  31330. var mv int32
  31331. hasLen := containerLen > 0
  31332. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31333. if esep {
  31334. dd.ReadMapElemKey()
  31335. }
  31336. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31337. if esep {
  31338. dd.ReadMapElemValue()
  31339. }
  31340. if dd.TryDecodeAsNil() {
  31341. if v == nil {
  31342. } else if d.h.DeleteOnNilMapValue {
  31343. delete(v, mk)
  31344. } else {
  31345. v[mk] = 0
  31346. }
  31347. continue
  31348. }
  31349. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31350. if v != nil {
  31351. v[mk] = mv
  31352. }
  31353. }
  31354. dd.ReadMapEnd()
  31355. d.depthDecr()
  31356. return v, changed
  31357. }
  31358. func (d *Decoder) fastpathDecMapInt16Int64R(f *codecFnInfo, rv reflect.Value) {
  31359. if rv.Kind() == reflect.Ptr {
  31360. vp := rv2i(rv).(*map[int16]int64)
  31361. v, changed := fastpathTV.DecMapInt16Int64V(*vp, true, d)
  31362. if changed {
  31363. *vp = v
  31364. }
  31365. } else {
  31366. fastpathTV.DecMapInt16Int64V(rv2i(rv).(map[int16]int64), false, d)
  31367. }
  31368. }
  31369. func (f fastpathT) DecMapInt16Int64X(vp *map[int16]int64, d *Decoder) {
  31370. v, changed := f.DecMapInt16Int64V(*vp, true, d)
  31371. if changed {
  31372. *vp = v
  31373. }
  31374. }
  31375. func (_ fastpathT) DecMapInt16Int64V(v map[int16]int64, canChange bool,
  31376. d *Decoder) (_ map[int16]int64, changed bool) {
  31377. dd, esep := d.d, d.hh.hasElemSeparators()
  31378. containerLen := dd.ReadMapStart()
  31379. if canChange && v == nil {
  31380. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31381. v = make(map[int16]int64, xlen)
  31382. changed = true
  31383. }
  31384. if containerLen == 0 {
  31385. dd.ReadMapEnd()
  31386. return v, changed
  31387. }
  31388. d.depthIncr()
  31389. var mk int16
  31390. var mv int64
  31391. hasLen := containerLen > 0
  31392. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31393. if esep {
  31394. dd.ReadMapElemKey()
  31395. }
  31396. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31397. if esep {
  31398. dd.ReadMapElemValue()
  31399. }
  31400. if dd.TryDecodeAsNil() {
  31401. if v == nil {
  31402. } else if d.h.DeleteOnNilMapValue {
  31403. delete(v, mk)
  31404. } else {
  31405. v[mk] = 0
  31406. }
  31407. continue
  31408. }
  31409. mv = dd.DecodeInt64()
  31410. if v != nil {
  31411. v[mk] = mv
  31412. }
  31413. }
  31414. dd.ReadMapEnd()
  31415. d.depthDecr()
  31416. return v, changed
  31417. }
  31418. func (d *Decoder) fastpathDecMapInt16Float32R(f *codecFnInfo, rv reflect.Value) {
  31419. if rv.Kind() == reflect.Ptr {
  31420. vp := rv2i(rv).(*map[int16]float32)
  31421. v, changed := fastpathTV.DecMapInt16Float32V(*vp, true, d)
  31422. if changed {
  31423. *vp = v
  31424. }
  31425. } else {
  31426. fastpathTV.DecMapInt16Float32V(rv2i(rv).(map[int16]float32), false, d)
  31427. }
  31428. }
  31429. func (f fastpathT) DecMapInt16Float32X(vp *map[int16]float32, d *Decoder) {
  31430. v, changed := f.DecMapInt16Float32V(*vp, true, d)
  31431. if changed {
  31432. *vp = v
  31433. }
  31434. }
  31435. func (_ fastpathT) DecMapInt16Float32V(v map[int16]float32, canChange bool,
  31436. d *Decoder) (_ map[int16]float32, changed bool) {
  31437. dd, esep := d.d, d.hh.hasElemSeparators()
  31438. containerLen := dd.ReadMapStart()
  31439. if canChange && v == nil {
  31440. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31441. v = make(map[int16]float32, xlen)
  31442. changed = true
  31443. }
  31444. if containerLen == 0 {
  31445. dd.ReadMapEnd()
  31446. return v, changed
  31447. }
  31448. d.depthIncr()
  31449. var mk int16
  31450. var mv float32
  31451. hasLen := containerLen > 0
  31452. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31453. if esep {
  31454. dd.ReadMapElemKey()
  31455. }
  31456. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31457. if esep {
  31458. dd.ReadMapElemValue()
  31459. }
  31460. if dd.TryDecodeAsNil() {
  31461. if v == nil {
  31462. } else if d.h.DeleteOnNilMapValue {
  31463. delete(v, mk)
  31464. } else {
  31465. v[mk] = 0
  31466. }
  31467. continue
  31468. }
  31469. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  31470. if v != nil {
  31471. v[mk] = mv
  31472. }
  31473. }
  31474. dd.ReadMapEnd()
  31475. d.depthDecr()
  31476. return v, changed
  31477. }
  31478. func (d *Decoder) fastpathDecMapInt16Float64R(f *codecFnInfo, rv reflect.Value) {
  31479. if rv.Kind() == reflect.Ptr {
  31480. vp := rv2i(rv).(*map[int16]float64)
  31481. v, changed := fastpathTV.DecMapInt16Float64V(*vp, true, d)
  31482. if changed {
  31483. *vp = v
  31484. }
  31485. } else {
  31486. fastpathTV.DecMapInt16Float64V(rv2i(rv).(map[int16]float64), false, d)
  31487. }
  31488. }
  31489. func (f fastpathT) DecMapInt16Float64X(vp *map[int16]float64, d *Decoder) {
  31490. v, changed := f.DecMapInt16Float64V(*vp, true, d)
  31491. if changed {
  31492. *vp = v
  31493. }
  31494. }
  31495. func (_ fastpathT) DecMapInt16Float64V(v map[int16]float64, canChange bool,
  31496. d *Decoder) (_ map[int16]float64, changed bool) {
  31497. dd, esep := d.d, d.hh.hasElemSeparators()
  31498. containerLen := dd.ReadMapStart()
  31499. if canChange && v == nil {
  31500. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  31501. v = make(map[int16]float64, xlen)
  31502. changed = true
  31503. }
  31504. if containerLen == 0 {
  31505. dd.ReadMapEnd()
  31506. return v, changed
  31507. }
  31508. d.depthIncr()
  31509. var mk int16
  31510. var mv float64
  31511. hasLen := containerLen > 0
  31512. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31513. if esep {
  31514. dd.ReadMapElemKey()
  31515. }
  31516. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31517. if esep {
  31518. dd.ReadMapElemValue()
  31519. }
  31520. if dd.TryDecodeAsNil() {
  31521. if v == nil {
  31522. } else if d.h.DeleteOnNilMapValue {
  31523. delete(v, mk)
  31524. } else {
  31525. v[mk] = 0
  31526. }
  31527. continue
  31528. }
  31529. mv = dd.DecodeFloat64()
  31530. if v != nil {
  31531. v[mk] = mv
  31532. }
  31533. }
  31534. dd.ReadMapEnd()
  31535. d.depthDecr()
  31536. return v, changed
  31537. }
  31538. func (d *Decoder) fastpathDecMapInt16BoolR(f *codecFnInfo, rv reflect.Value) {
  31539. if rv.Kind() == reflect.Ptr {
  31540. vp := rv2i(rv).(*map[int16]bool)
  31541. v, changed := fastpathTV.DecMapInt16BoolV(*vp, true, d)
  31542. if changed {
  31543. *vp = v
  31544. }
  31545. } else {
  31546. fastpathTV.DecMapInt16BoolV(rv2i(rv).(map[int16]bool), false, d)
  31547. }
  31548. }
  31549. func (f fastpathT) DecMapInt16BoolX(vp *map[int16]bool, d *Decoder) {
  31550. v, changed := f.DecMapInt16BoolV(*vp, true, d)
  31551. if changed {
  31552. *vp = v
  31553. }
  31554. }
  31555. func (_ fastpathT) DecMapInt16BoolV(v map[int16]bool, canChange bool,
  31556. d *Decoder) (_ map[int16]bool, changed bool) {
  31557. dd, esep := d.d, d.hh.hasElemSeparators()
  31558. containerLen := dd.ReadMapStart()
  31559. if canChange && v == nil {
  31560. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  31561. v = make(map[int16]bool, xlen)
  31562. changed = true
  31563. }
  31564. if containerLen == 0 {
  31565. dd.ReadMapEnd()
  31566. return v, changed
  31567. }
  31568. d.depthIncr()
  31569. var mk int16
  31570. var mv bool
  31571. hasLen := containerLen > 0
  31572. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31573. if esep {
  31574. dd.ReadMapElemKey()
  31575. }
  31576. mk = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  31577. if esep {
  31578. dd.ReadMapElemValue()
  31579. }
  31580. if dd.TryDecodeAsNil() {
  31581. if v == nil {
  31582. } else if d.h.DeleteOnNilMapValue {
  31583. delete(v, mk)
  31584. } else {
  31585. v[mk] = false
  31586. }
  31587. continue
  31588. }
  31589. mv = dd.DecodeBool()
  31590. if v != nil {
  31591. v[mk] = mv
  31592. }
  31593. }
  31594. dd.ReadMapEnd()
  31595. d.depthDecr()
  31596. return v, changed
  31597. }
  31598. func (d *Decoder) fastpathDecMapInt32IntfR(f *codecFnInfo, rv reflect.Value) {
  31599. if rv.Kind() == reflect.Ptr {
  31600. vp := rv2i(rv).(*map[int32]interface{})
  31601. v, changed := fastpathTV.DecMapInt32IntfV(*vp, true, d)
  31602. if changed {
  31603. *vp = v
  31604. }
  31605. } else {
  31606. fastpathTV.DecMapInt32IntfV(rv2i(rv).(map[int32]interface{}), false, d)
  31607. }
  31608. }
  31609. func (f fastpathT) DecMapInt32IntfX(vp *map[int32]interface{}, d *Decoder) {
  31610. v, changed := f.DecMapInt32IntfV(*vp, true, d)
  31611. if changed {
  31612. *vp = v
  31613. }
  31614. }
  31615. func (_ fastpathT) DecMapInt32IntfV(v map[int32]interface{}, canChange bool,
  31616. d *Decoder) (_ map[int32]interface{}, changed bool) {
  31617. dd, esep := d.d, d.hh.hasElemSeparators()
  31618. containerLen := dd.ReadMapStart()
  31619. if canChange && v == nil {
  31620. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31621. v = make(map[int32]interface{}, xlen)
  31622. changed = true
  31623. }
  31624. if containerLen == 0 {
  31625. dd.ReadMapEnd()
  31626. return v, changed
  31627. }
  31628. d.depthIncr()
  31629. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  31630. var mk int32
  31631. var mv interface{}
  31632. hasLen := containerLen > 0
  31633. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31634. if esep {
  31635. dd.ReadMapElemKey()
  31636. }
  31637. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31638. if esep {
  31639. dd.ReadMapElemValue()
  31640. }
  31641. if dd.TryDecodeAsNil() {
  31642. if v == nil {
  31643. } else if d.h.DeleteOnNilMapValue {
  31644. delete(v, mk)
  31645. } else {
  31646. v[mk] = nil
  31647. }
  31648. continue
  31649. }
  31650. if mapGet {
  31651. mv = v[mk]
  31652. } else {
  31653. mv = nil
  31654. }
  31655. d.decode(&mv)
  31656. if v != nil {
  31657. v[mk] = mv
  31658. }
  31659. }
  31660. dd.ReadMapEnd()
  31661. d.depthDecr()
  31662. return v, changed
  31663. }
  31664. func (d *Decoder) fastpathDecMapInt32StringR(f *codecFnInfo, rv reflect.Value) {
  31665. if rv.Kind() == reflect.Ptr {
  31666. vp := rv2i(rv).(*map[int32]string)
  31667. v, changed := fastpathTV.DecMapInt32StringV(*vp, true, d)
  31668. if changed {
  31669. *vp = v
  31670. }
  31671. } else {
  31672. fastpathTV.DecMapInt32StringV(rv2i(rv).(map[int32]string), false, d)
  31673. }
  31674. }
  31675. func (f fastpathT) DecMapInt32StringX(vp *map[int32]string, d *Decoder) {
  31676. v, changed := f.DecMapInt32StringV(*vp, true, d)
  31677. if changed {
  31678. *vp = v
  31679. }
  31680. }
  31681. func (_ fastpathT) DecMapInt32StringV(v map[int32]string, canChange bool,
  31682. d *Decoder) (_ map[int32]string, changed bool) {
  31683. dd, esep := d.d, d.hh.hasElemSeparators()
  31684. containerLen := dd.ReadMapStart()
  31685. if canChange && v == nil {
  31686. xlen := decInferLen(containerLen, d.h.MaxInitLen, 20)
  31687. v = make(map[int32]string, xlen)
  31688. changed = true
  31689. }
  31690. if containerLen == 0 {
  31691. dd.ReadMapEnd()
  31692. return v, changed
  31693. }
  31694. d.depthIncr()
  31695. var mk int32
  31696. var mv string
  31697. hasLen := containerLen > 0
  31698. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31699. if esep {
  31700. dd.ReadMapElemKey()
  31701. }
  31702. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31703. if esep {
  31704. dd.ReadMapElemValue()
  31705. }
  31706. if dd.TryDecodeAsNil() {
  31707. if v == nil {
  31708. } else if d.h.DeleteOnNilMapValue {
  31709. delete(v, mk)
  31710. } else {
  31711. v[mk] = ""
  31712. }
  31713. continue
  31714. }
  31715. mv = dd.DecodeString()
  31716. if v != nil {
  31717. v[mk] = mv
  31718. }
  31719. }
  31720. dd.ReadMapEnd()
  31721. d.depthDecr()
  31722. return v, changed
  31723. }
  31724. func (d *Decoder) fastpathDecMapInt32UintR(f *codecFnInfo, rv reflect.Value) {
  31725. if rv.Kind() == reflect.Ptr {
  31726. vp := rv2i(rv).(*map[int32]uint)
  31727. v, changed := fastpathTV.DecMapInt32UintV(*vp, true, d)
  31728. if changed {
  31729. *vp = v
  31730. }
  31731. } else {
  31732. fastpathTV.DecMapInt32UintV(rv2i(rv).(map[int32]uint), false, d)
  31733. }
  31734. }
  31735. func (f fastpathT) DecMapInt32UintX(vp *map[int32]uint, d *Decoder) {
  31736. v, changed := f.DecMapInt32UintV(*vp, true, d)
  31737. if changed {
  31738. *vp = v
  31739. }
  31740. }
  31741. func (_ fastpathT) DecMapInt32UintV(v map[int32]uint, canChange bool,
  31742. d *Decoder) (_ map[int32]uint, changed bool) {
  31743. dd, esep := d.d, d.hh.hasElemSeparators()
  31744. containerLen := dd.ReadMapStart()
  31745. if canChange && v == nil {
  31746. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31747. v = make(map[int32]uint, xlen)
  31748. changed = true
  31749. }
  31750. if containerLen == 0 {
  31751. dd.ReadMapEnd()
  31752. return v, changed
  31753. }
  31754. d.depthIncr()
  31755. var mk int32
  31756. var mv uint
  31757. hasLen := containerLen > 0
  31758. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31759. if esep {
  31760. dd.ReadMapElemKey()
  31761. }
  31762. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31763. if esep {
  31764. dd.ReadMapElemValue()
  31765. }
  31766. if dd.TryDecodeAsNil() {
  31767. if v == nil {
  31768. } else if d.h.DeleteOnNilMapValue {
  31769. delete(v, mk)
  31770. } else {
  31771. v[mk] = 0
  31772. }
  31773. continue
  31774. }
  31775. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  31776. if v != nil {
  31777. v[mk] = mv
  31778. }
  31779. }
  31780. dd.ReadMapEnd()
  31781. d.depthDecr()
  31782. return v, changed
  31783. }
  31784. func (d *Decoder) fastpathDecMapInt32Uint8R(f *codecFnInfo, rv reflect.Value) {
  31785. if rv.Kind() == reflect.Ptr {
  31786. vp := rv2i(rv).(*map[int32]uint8)
  31787. v, changed := fastpathTV.DecMapInt32Uint8V(*vp, true, d)
  31788. if changed {
  31789. *vp = v
  31790. }
  31791. } else {
  31792. fastpathTV.DecMapInt32Uint8V(rv2i(rv).(map[int32]uint8), false, d)
  31793. }
  31794. }
  31795. func (f fastpathT) DecMapInt32Uint8X(vp *map[int32]uint8, d *Decoder) {
  31796. v, changed := f.DecMapInt32Uint8V(*vp, true, d)
  31797. if changed {
  31798. *vp = v
  31799. }
  31800. }
  31801. func (_ fastpathT) DecMapInt32Uint8V(v map[int32]uint8, canChange bool,
  31802. d *Decoder) (_ map[int32]uint8, changed bool) {
  31803. dd, esep := d.d, d.hh.hasElemSeparators()
  31804. containerLen := dd.ReadMapStart()
  31805. if canChange && v == nil {
  31806. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  31807. v = make(map[int32]uint8, xlen)
  31808. changed = true
  31809. }
  31810. if containerLen == 0 {
  31811. dd.ReadMapEnd()
  31812. return v, changed
  31813. }
  31814. d.depthIncr()
  31815. var mk int32
  31816. var mv uint8
  31817. hasLen := containerLen > 0
  31818. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31819. if esep {
  31820. dd.ReadMapElemKey()
  31821. }
  31822. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31823. if esep {
  31824. dd.ReadMapElemValue()
  31825. }
  31826. if dd.TryDecodeAsNil() {
  31827. if v == nil {
  31828. } else if d.h.DeleteOnNilMapValue {
  31829. delete(v, mk)
  31830. } else {
  31831. v[mk] = 0
  31832. }
  31833. continue
  31834. }
  31835. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  31836. if v != nil {
  31837. v[mk] = mv
  31838. }
  31839. }
  31840. dd.ReadMapEnd()
  31841. d.depthDecr()
  31842. return v, changed
  31843. }
  31844. func (d *Decoder) fastpathDecMapInt32Uint16R(f *codecFnInfo, rv reflect.Value) {
  31845. if rv.Kind() == reflect.Ptr {
  31846. vp := rv2i(rv).(*map[int32]uint16)
  31847. v, changed := fastpathTV.DecMapInt32Uint16V(*vp, true, d)
  31848. if changed {
  31849. *vp = v
  31850. }
  31851. } else {
  31852. fastpathTV.DecMapInt32Uint16V(rv2i(rv).(map[int32]uint16), false, d)
  31853. }
  31854. }
  31855. func (f fastpathT) DecMapInt32Uint16X(vp *map[int32]uint16, d *Decoder) {
  31856. v, changed := f.DecMapInt32Uint16V(*vp, true, d)
  31857. if changed {
  31858. *vp = v
  31859. }
  31860. }
  31861. func (_ fastpathT) DecMapInt32Uint16V(v map[int32]uint16, canChange bool,
  31862. d *Decoder) (_ map[int32]uint16, changed bool) {
  31863. dd, esep := d.d, d.hh.hasElemSeparators()
  31864. containerLen := dd.ReadMapStart()
  31865. if canChange && v == nil {
  31866. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  31867. v = make(map[int32]uint16, xlen)
  31868. changed = true
  31869. }
  31870. if containerLen == 0 {
  31871. dd.ReadMapEnd()
  31872. return v, changed
  31873. }
  31874. d.depthIncr()
  31875. var mk int32
  31876. var mv uint16
  31877. hasLen := containerLen > 0
  31878. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31879. if esep {
  31880. dd.ReadMapElemKey()
  31881. }
  31882. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31883. if esep {
  31884. dd.ReadMapElemValue()
  31885. }
  31886. if dd.TryDecodeAsNil() {
  31887. if v == nil {
  31888. } else if d.h.DeleteOnNilMapValue {
  31889. delete(v, mk)
  31890. } else {
  31891. v[mk] = 0
  31892. }
  31893. continue
  31894. }
  31895. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  31896. if v != nil {
  31897. v[mk] = mv
  31898. }
  31899. }
  31900. dd.ReadMapEnd()
  31901. d.depthDecr()
  31902. return v, changed
  31903. }
  31904. func (d *Decoder) fastpathDecMapInt32Uint32R(f *codecFnInfo, rv reflect.Value) {
  31905. if rv.Kind() == reflect.Ptr {
  31906. vp := rv2i(rv).(*map[int32]uint32)
  31907. v, changed := fastpathTV.DecMapInt32Uint32V(*vp, true, d)
  31908. if changed {
  31909. *vp = v
  31910. }
  31911. } else {
  31912. fastpathTV.DecMapInt32Uint32V(rv2i(rv).(map[int32]uint32), false, d)
  31913. }
  31914. }
  31915. func (f fastpathT) DecMapInt32Uint32X(vp *map[int32]uint32, d *Decoder) {
  31916. v, changed := f.DecMapInt32Uint32V(*vp, true, d)
  31917. if changed {
  31918. *vp = v
  31919. }
  31920. }
  31921. func (_ fastpathT) DecMapInt32Uint32V(v map[int32]uint32, canChange bool,
  31922. d *Decoder) (_ map[int32]uint32, changed bool) {
  31923. dd, esep := d.d, d.hh.hasElemSeparators()
  31924. containerLen := dd.ReadMapStart()
  31925. if canChange && v == nil {
  31926. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  31927. v = make(map[int32]uint32, xlen)
  31928. changed = true
  31929. }
  31930. if containerLen == 0 {
  31931. dd.ReadMapEnd()
  31932. return v, changed
  31933. }
  31934. d.depthIncr()
  31935. var mk int32
  31936. var mv uint32
  31937. hasLen := containerLen > 0
  31938. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31939. if esep {
  31940. dd.ReadMapElemKey()
  31941. }
  31942. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  31943. if esep {
  31944. dd.ReadMapElemValue()
  31945. }
  31946. if dd.TryDecodeAsNil() {
  31947. if v == nil {
  31948. } else if d.h.DeleteOnNilMapValue {
  31949. delete(v, mk)
  31950. } else {
  31951. v[mk] = 0
  31952. }
  31953. continue
  31954. }
  31955. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  31956. if v != nil {
  31957. v[mk] = mv
  31958. }
  31959. }
  31960. dd.ReadMapEnd()
  31961. d.depthDecr()
  31962. return v, changed
  31963. }
  31964. func (d *Decoder) fastpathDecMapInt32Uint64R(f *codecFnInfo, rv reflect.Value) {
  31965. if rv.Kind() == reflect.Ptr {
  31966. vp := rv2i(rv).(*map[int32]uint64)
  31967. v, changed := fastpathTV.DecMapInt32Uint64V(*vp, true, d)
  31968. if changed {
  31969. *vp = v
  31970. }
  31971. } else {
  31972. fastpathTV.DecMapInt32Uint64V(rv2i(rv).(map[int32]uint64), false, d)
  31973. }
  31974. }
  31975. func (f fastpathT) DecMapInt32Uint64X(vp *map[int32]uint64, d *Decoder) {
  31976. v, changed := f.DecMapInt32Uint64V(*vp, true, d)
  31977. if changed {
  31978. *vp = v
  31979. }
  31980. }
  31981. func (_ fastpathT) DecMapInt32Uint64V(v map[int32]uint64, canChange bool,
  31982. d *Decoder) (_ map[int32]uint64, changed bool) {
  31983. dd, esep := d.d, d.hh.hasElemSeparators()
  31984. containerLen := dd.ReadMapStart()
  31985. if canChange && v == nil {
  31986. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  31987. v = make(map[int32]uint64, xlen)
  31988. changed = true
  31989. }
  31990. if containerLen == 0 {
  31991. dd.ReadMapEnd()
  31992. return v, changed
  31993. }
  31994. d.depthIncr()
  31995. var mk int32
  31996. var mv uint64
  31997. hasLen := containerLen > 0
  31998. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  31999. if esep {
  32000. dd.ReadMapElemKey()
  32001. }
  32002. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32003. if esep {
  32004. dd.ReadMapElemValue()
  32005. }
  32006. if dd.TryDecodeAsNil() {
  32007. if v == nil {
  32008. } else if d.h.DeleteOnNilMapValue {
  32009. delete(v, mk)
  32010. } else {
  32011. v[mk] = 0
  32012. }
  32013. continue
  32014. }
  32015. mv = dd.DecodeUint64()
  32016. if v != nil {
  32017. v[mk] = mv
  32018. }
  32019. }
  32020. dd.ReadMapEnd()
  32021. d.depthDecr()
  32022. return v, changed
  32023. }
  32024. func (d *Decoder) fastpathDecMapInt32UintptrR(f *codecFnInfo, rv reflect.Value) {
  32025. if rv.Kind() == reflect.Ptr {
  32026. vp := rv2i(rv).(*map[int32]uintptr)
  32027. v, changed := fastpathTV.DecMapInt32UintptrV(*vp, true, d)
  32028. if changed {
  32029. *vp = v
  32030. }
  32031. } else {
  32032. fastpathTV.DecMapInt32UintptrV(rv2i(rv).(map[int32]uintptr), false, d)
  32033. }
  32034. }
  32035. func (f fastpathT) DecMapInt32UintptrX(vp *map[int32]uintptr, d *Decoder) {
  32036. v, changed := f.DecMapInt32UintptrV(*vp, true, d)
  32037. if changed {
  32038. *vp = v
  32039. }
  32040. }
  32041. func (_ fastpathT) DecMapInt32UintptrV(v map[int32]uintptr, canChange bool,
  32042. d *Decoder) (_ map[int32]uintptr, changed bool) {
  32043. dd, esep := d.d, d.hh.hasElemSeparators()
  32044. containerLen := dd.ReadMapStart()
  32045. if canChange && v == nil {
  32046. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32047. v = make(map[int32]uintptr, xlen)
  32048. changed = true
  32049. }
  32050. if containerLen == 0 {
  32051. dd.ReadMapEnd()
  32052. return v, changed
  32053. }
  32054. d.depthIncr()
  32055. var mk int32
  32056. var mv uintptr
  32057. hasLen := containerLen > 0
  32058. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32059. if esep {
  32060. dd.ReadMapElemKey()
  32061. }
  32062. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32063. if esep {
  32064. dd.ReadMapElemValue()
  32065. }
  32066. if dd.TryDecodeAsNil() {
  32067. if v == nil {
  32068. } else if d.h.DeleteOnNilMapValue {
  32069. delete(v, mk)
  32070. } else {
  32071. v[mk] = 0
  32072. }
  32073. continue
  32074. }
  32075. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32076. if v != nil {
  32077. v[mk] = mv
  32078. }
  32079. }
  32080. dd.ReadMapEnd()
  32081. d.depthDecr()
  32082. return v, changed
  32083. }
  32084. func (d *Decoder) fastpathDecMapInt32IntR(f *codecFnInfo, rv reflect.Value) {
  32085. if rv.Kind() == reflect.Ptr {
  32086. vp := rv2i(rv).(*map[int32]int)
  32087. v, changed := fastpathTV.DecMapInt32IntV(*vp, true, d)
  32088. if changed {
  32089. *vp = v
  32090. }
  32091. } else {
  32092. fastpathTV.DecMapInt32IntV(rv2i(rv).(map[int32]int), false, d)
  32093. }
  32094. }
  32095. func (f fastpathT) DecMapInt32IntX(vp *map[int32]int, d *Decoder) {
  32096. v, changed := f.DecMapInt32IntV(*vp, true, d)
  32097. if changed {
  32098. *vp = v
  32099. }
  32100. }
  32101. func (_ fastpathT) DecMapInt32IntV(v map[int32]int, canChange bool,
  32102. d *Decoder) (_ map[int32]int, changed bool) {
  32103. dd, esep := d.d, d.hh.hasElemSeparators()
  32104. containerLen := dd.ReadMapStart()
  32105. if canChange && v == nil {
  32106. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32107. v = make(map[int32]int, xlen)
  32108. changed = true
  32109. }
  32110. if containerLen == 0 {
  32111. dd.ReadMapEnd()
  32112. return v, changed
  32113. }
  32114. d.depthIncr()
  32115. var mk int32
  32116. var mv int
  32117. hasLen := containerLen > 0
  32118. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32119. if esep {
  32120. dd.ReadMapElemKey()
  32121. }
  32122. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32123. if esep {
  32124. dd.ReadMapElemValue()
  32125. }
  32126. if dd.TryDecodeAsNil() {
  32127. if v == nil {
  32128. } else if d.h.DeleteOnNilMapValue {
  32129. delete(v, mk)
  32130. } else {
  32131. v[mk] = 0
  32132. }
  32133. continue
  32134. }
  32135. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  32136. if v != nil {
  32137. v[mk] = mv
  32138. }
  32139. }
  32140. dd.ReadMapEnd()
  32141. d.depthDecr()
  32142. return v, changed
  32143. }
  32144. func (d *Decoder) fastpathDecMapInt32Int8R(f *codecFnInfo, rv reflect.Value) {
  32145. if rv.Kind() == reflect.Ptr {
  32146. vp := rv2i(rv).(*map[int32]int8)
  32147. v, changed := fastpathTV.DecMapInt32Int8V(*vp, true, d)
  32148. if changed {
  32149. *vp = v
  32150. }
  32151. } else {
  32152. fastpathTV.DecMapInt32Int8V(rv2i(rv).(map[int32]int8), false, d)
  32153. }
  32154. }
  32155. func (f fastpathT) DecMapInt32Int8X(vp *map[int32]int8, d *Decoder) {
  32156. v, changed := f.DecMapInt32Int8V(*vp, true, d)
  32157. if changed {
  32158. *vp = v
  32159. }
  32160. }
  32161. func (_ fastpathT) DecMapInt32Int8V(v map[int32]int8, canChange bool,
  32162. d *Decoder) (_ map[int32]int8, changed bool) {
  32163. dd, esep := d.d, d.hh.hasElemSeparators()
  32164. containerLen := dd.ReadMapStart()
  32165. if canChange && v == nil {
  32166. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32167. v = make(map[int32]int8, xlen)
  32168. changed = true
  32169. }
  32170. if containerLen == 0 {
  32171. dd.ReadMapEnd()
  32172. return v, changed
  32173. }
  32174. d.depthIncr()
  32175. var mk int32
  32176. var mv int8
  32177. hasLen := containerLen > 0
  32178. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32179. if esep {
  32180. dd.ReadMapElemKey()
  32181. }
  32182. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32183. if esep {
  32184. dd.ReadMapElemValue()
  32185. }
  32186. if dd.TryDecodeAsNil() {
  32187. if v == nil {
  32188. } else if d.h.DeleteOnNilMapValue {
  32189. delete(v, mk)
  32190. } else {
  32191. v[mk] = 0
  32192. }
  32193. continue
  32194. }
  32195. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  32196. if v != nil {
  32197. v[mk] = mv
  32198. }
  32199. }
  32200. dd.ReadMapEnd()
  32201. d.depthDecr()
  32202. return v, changed
  32203. }
  32204. func (d *Decoder) fastpathDecMapInt32Int16R(f *codecFnInfo, rv reflect.Value) {
  32205. if rv.Kind() == reflect.Ptr {
  32206. vp := rv2i(rv).(*map[int32]int16)
  32207. v, changed := fastpathTV.DecMapInt32Int16V(*vp, true, d)
  32208. if changed {
  32209. *vp = v
  32210. }
  32211. } else {
  32212. fastpathTV.DecMapInt32Int16V(rv2i(rv).(map[int32]int16), false, d)
  32213. }
  32214. }
  32215. func (f fastpathT) DecMapInt32Int16X(vp *map[int32]int16, d *Decoder) {
  32216. v, changed := f.DecMapInt32Int16V(*vp, true, d)
  32217. if changed {
  32218. *vp = v
  32219. }
  32220. }
  32221. func (_ fastpathT) DecMapInt32Int16V(v map[int32]int16, canChange bool,
  32222. d *Decoder) (_ map[int32]int16, changed bool) {
  32223. dd, esep := d.d, d.hh.hasElemSeparators()
  32224. containerLen := dd.ReadMapStart()
  32225. if canChange && v == nil {
  32226. xlen := decInferLen(containerLen, d.h.MaxInitLen, 6)
  32227. v = make(map[int32]int16, xlen)
  32228. changed = true
  32229. }
  32230. if containerLen == 0 {
  32231. dd.ReadMapEnd()
  32232. return v, changed
  32233. }
  32234. d.depthIncr()
  32235. var mk int32
  32236. var mv int16
  32237. hasLen := containerLen > 0
  32238. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32239. if esep {
  32240. dd.ReadMapElemKey()
  32241. }
  32242. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32243. if esep {
  32244. dd.ReadMapElemValue()
  32245. }
  32246. if dd.TryDecodeAsNil() {
  32247. if v == nil {
  32248. } else if d.h.DeleteOnNilMapValue {
  32249. delete(v, mk)
  32250. } else {
  32251. v[mk] = 0
  32252. }
  32253. continue
  32254. }
  32255. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  32256. if v != nil {
  32257. v[mk] = mv
  32258. }
  32259. }
  32260. dd.ReadMapEnd()
  32261. d.depthDecr()
  32262. return v, changed
  32263. }
  32264. func (d *Decoder) fastpathDecMapInt32Int32R(f *codecFnInfo, rv reflect.Value) {
  32265. if rv.Kind() == reflect.Ptr {
  32266. vp := rv2i(rv).(*map[int32]int32)
  32267. v, changed := fastpathTV.DecMapInt32Int32V(*vp, true, d)
  32268. if changed {
  32269. *vp = v
  32270. }
  32271. } else {
  32272. fastpathTV.DecMapInt32Int32V(rv2i(rv).(map[int32]int32), false, d)
  32273. }
  32274. }
  32275. func (f fastpathT) DecMapInt32Int32X(vp *map[int32]int32, d *Decoder) {
  32276. v, changed := f.DecMapInt32Int32V(*vp, true, d)
  32277. if changed {
  32278. *vp = v
  32279. }
  32280. }
  32281. func (_ fastpathT) DecMapInt32Int32V(v map[int32]int32, canChange bool,
  32282. d *Decoder) (_ map[int32]int32, changed bool) {
  32283. dd, esep := d.d, d.hh.hasElemSeparators()
  32284. containerLen := dd.ReadMapStart()
  32285. if canChange && v == nil {
  32286. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  32287. v = make(map[int32]int32, xlen)
  32288. changed = true
  32289. }
  32290. if containerLen == 0 {
  32291. dd.ReadMapEnd()
  32292. return v, changed
  32293. }
  32294. d.depthIncr()
  32295. var mk int32
  32296. var mv int32
  32297. hasLen := containerLen > 0
  32298. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32299. if esep {
  32300. dd.ReadMapElemKey()
  32301. }
  32302. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32303. if esep {
  32304. dd.ReadMapElemValue()
  32305. }
  32306. if dd.TryDecodeAsNil() {
  32307. if v == nil {
  32308. } else if d.h.DeleteOnNilMapValue {
  32309. delete(v, mk)
  32310. } else {
  32311. v[mk] = 0
  32312. }
  32313. continue
  32314. }
  32315. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32316. if v != nil {
  32317. v[mk] = mv
  32318. }
  32319. }
  32320. dd.ReadMapEnd()
  32321. d.depthDecr()
  32322. return v, changed
  32323. }
  32324. func (d *Decoder) fastpathDecMapInt32Int64R(f *codecFnInfo, rv reflect.Value) {
  32325. if rv.Kind() == reflect.Ptr {
  32326. vp := rv2i(rv).(*map[int32]int64)
  32327. v, changed := fastpathTV.DecMapInt32Int64V(*vp, true, d)
  32328. if changed {
  32329. *vp = v
  32330. }
  32331. } else {
  32332. fastpathTV.DecMapInt32Int64V(rv2i(rv).(map[int32]int64), false, d)
  32333. }
  32334. }
  32335. func (f fastpathT) DecMapInt32Int64X(vp *map[int32]int64, d *Decoder) {
  32336. v, changed := f.DecMapInt32Int64V(*vp, true, d)
  32337. if changed {
  32338. *vp = v
  32339. }
  32340. }
  32341. func (_ fastpathT) DecMapInt32Int64V(v map[int32]int64, canChange bool,
  32342. d *Decoder) (_ map[int32]int64, changed bool) {
  32343. dd, esep := d.d, d.hh.hasElemSeparators()
  32344. containerLen := dd.ReadMapStart()
  32345. if canChange && v == nil {
  32346. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32347. v = make(map[int32]int64, xlen)
  32348. changed = true
  32349. }
  32350. if containerLen == 0 {
  32351. dd.ReadMapEnd()
  32352. return v, changed
  32353. }
  32354. d.depthIncr()
  32355. var mk int32
  32356. var mv int64
  32357. hasLen := containerLen > 0
  32358. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32359. if esep {
  32360. dd.ReadMapElemKey()
  32361. }
  32362. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32363. if esep {
  32364. dd.ReadMapElemValue()
  32365. }
  32366. if dd.TryDecodeAsNil() {
  32367. if v == nil {
  32368. } else if d.h.DeleteOnNilMapValue {
  32369. delete(v, mk)
  32370. } else {
  32371. v[mk] = 0
  32372. }
  32373. continue
  32374. }
  32375. mv = dd.DecodeInt64()
  32376. if v != nil {
  32377. v[mk] = mv
  32378. }
  32379. }
  32380. dd.ReadMapEnd()
  32381. d.depthDecr()
  32382. return v, changed
  32383. }
  32384. func (d *Decoder) fastpathDecMapInt32Float32R(f *codecFnInfo, rv reflect.Value) {
  32385. if rv.Kind() == reflect.Ptr {
  32386. vp := rv2i(rv).(*map[int32]float32)
  32387. v, changed := fastpathTV.DecMapInt32Float32V(*vp, true, d)
  32388. if changed {
  32389. *vp = v
  32390. }
  32391. } else {
  32392. fastpathTV.DecMapInt32Float32V(rv2i(rv).(map[int32]float32), false, d)
  32393. }
  32394. }
  32395. func (f fastpathT) DecMapInt32Float32X(vp *map[int32]float32, d *Decoder) {
  32396. v, changed := f.DecMapInt32Float32V(*vp, true, d)
  32397. if changed {
  32398. *vp = v
  32399. }
  32400. }
  32401. func (_ fastpathT) DecMapInt32Float32V(v map[int32]float32, canChange bool,
  32402. d *Decoder) (_ map[int32]float32, changed bool) {
  32403. dd, esep := d.d, d.hh.hasElemSeparators()
  32404. containerLen := dd.ReadMapStart()
  32405. if canChange && v == nil {
  32406. xlen := decInferLen(containerLen, d.h.MaxInitLen, 8)
  32407. v = make(map[int32]float32, xlen)
  32408. changed = true
  32409. }
  32410. if containerLen == 0 {
  32411. dd.ReadMapEnd()
  32412. return v, changed
  32413. }
  32414. d.depthIncr()
  32415. var mk int32
  32416. var mv float32
  32417. hasLen := containerLen > 0
  32418. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32419. if esep {
  32420. dd.ReadMapElemKey()
  32421. }
  32422. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32423. if esep {
  32424. dd.ReadMapElemValue()
  32425. }
  32426. if dd.TryDecodeAsNil() {
  32427. if v == nil {
  32428. } else if d.h.DeleteOnNilMapValue {
  32429. delete(v, mk)
  32430. } else {
  32431. v[mk] = 0
  32432. }
  32433. continue
  32434. }
  32435. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  32436. if v != nil {
  32437. v[mk] = mv
  32438. }
  32439. }
  32440. dd.ReadMapEnd()
  32441. d.depthDecr()
  32442. return v, changed
  32443. }
  32444. func (d *Decoder) fastpathDecMapInt32Float64R(f *codecFnInfo, rv reflect.Value) {
  32445. if rv.Kind() == reflect.Ptr {
  32446. vp := rv2i(rv).(*map[int32]float64)
  32447. v, changed := fastpathTV.DecMapInt32Float64V(*vp, true, d)
  32448. if changed {
  32449. *vp = v
  32450. }
  32451. } else {
  32452. fastpathTV.DecMapInt32Float64V(rv2i(rv).(map[int32]float64), false, d)
  32453. }
  32454. }
  32455. func (f fastpathT) DecMapInt32Float64X(vp *map[int32]float64, d *Decoder) {
  32456. v, changed := f.DecMapInt32Float64V(*vp, true, d)
  32457. if changed {
  32458. *vp = v
  32459. }
  32460. }
  32461. func (_ fastpathT) DecMapInt32Float64V(v map[int32]float64, canChange bool,
  32462. d *Decoder) (_ map[int32]float64, changed bool) {
  32463. dd, esep := d.d, d.hh.hasElemSeparators()
  32464. containerLen := dd.ReadMapStart()
  32465. if canChange && v == nil {
  32466. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32467. v = make(map[int32]float64, xlen)
  32468. changed = true
  32469. }
  32470. if containerLen == 0 {
  32471. dd.ReadMapEnd()
  32472. return v, changed
  32473. }
  32474. d.depthIncr()
  32475. var mk int32
  32476. var mv float64
  32477. hasLen := containerLen > 0
  32478. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32479. if esep {
  32480. dd.ReadMapElemKey()
  32481. }
  32482. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32483. if esep {
  32484. dd.ReadMapElemValue()
  32485. }
  32486. if dd.TryDecodeAsNil() {
  32487. if v == nil {
  32488. } else if d.h.DeleteOnNilMapValue {
  32489. delete(v, mk)
  32490. } else {
  32491. v[mk] = 0
  32492. }
  32493. continue
  32494. }
  32495. mv = dd.DecodeFloat64()
  32496. if v != nil {
  32497. v[mk] = mv
  32498. }
  32499. }
  32500. dd.ReadMapEnd()
  32501. d.depthDecr()
  32502. return v, changed
  32503. }
  32504. func (d *Decoder) fastpathDecMapInt32BoolR(f *codecFnInfo, rv reflect.Value) {
  32505. if rv.Kind() == reflect.Ptr {
  32506. vp := rv2i(rv).(*map[int32]bool)
  32507. v, changed := fastpathTV.DecMapInt32BoolV(*vp, true, d)
  32508. if changed {
  32509. *vp = v
  32510. }
  32511. } else {
  32512. fastpathTV.DecMapInt32BoolV(rv2i(rv).(map[int32]bool), false, d)
  32513. }
  32514. }
  32515. func (f fastpathT) DecMapInt32BoolX(vp *map[int32]bool, d *Decoder) {
  32516. v, changed := f.DecMapInt32BoolV(*vp, true, d)
  32517. if changed {
  32518. *vp = v
  32519. }
  32520. }
  32521. func (_ fastpathT) DecMapInt32BoolV(v map[int32]bool, canChange bool,
  32522. d *Decoder) (_ map[int32]bool, changed bool) {
  32523. dd, esep := d.d, d.hh.hasElemSeparators()
  32524. containerLen := dd.ReadMapStart()
  32525. if canChange && v == nil {
  32526. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  32527. v = make(map[int32]bool, xlen)
  32528. changed = true
  32529. }
  32530. if containerLen == 0 {
  32531. dd.ReadMapEnd()
  32532. return v, changed
  32533. }
  32534. d.depthIncr()
  32535. var mk int32
  32536. var mv bool
  32537. hasLen := containerLen > 0
  32538. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32539. if esep {
  32540. dd.ReadMapElemKey()
  32541. }
  32542. mk = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  32543. if esep {
  32544. dd.ReadMapElemValue()
  32545. }
  32546. if dd.TryDecodeAsNil() {
  32547. if v == nil {
  32548. } else if d.h.DeleteOnNilMapValue {
  32549. delete(v, mk)
  32550. } else {
  32551. v[mk] = false
  32552. }
  32553. continue
  32554. }
  32555. mv = dd.DecodeBool()
  32556. if v != nil {
  32557. v[mk] = mv
  32558. }
  32559. }
  32560. dd.ReadMapEnd()
  32561. d.depthDecr()
  32562. return v, changed
  32563. }
  32564. func (d *Decoder) fastpathDecMapInt64IntfR(f *codecFnInfo, rv reflect.Value) {
  32565. if rv.Kind() == reflect.Ptr {
  32566. vp := rv2i(rv).(*map[int64]interface{})
  32567. v, changed := fastpathTV.DecMapInt64IntfV(*vp, true, d)
  32568. if changed {
  32569. *vp = v
  32570. }
  32571. } else {
  32572. fastpathTV.DecMapInt64IntfV(rv2i(rv).(map[int64]interface{}), false, d)
  32573. }
  32574. }
  32575. func (f fastpathT) DecMapInt64IntfX(vp *map[int64]interface{}, d *Decoder) {
  32576. v, changed := f.DecMapInt64IntfV(*vp, true, d)
  32577. if changed {
  32578. *vp = v
  32579. }
  32580. }
  32581. func (_ fastpathT) DecMapInt64IntfV(v map[int64]interface{}, canChange bool,
  32582. d *Decoder) (_ map[int64]interface{}, changed bool) {
  32583. dd, esep := d.d, d.hh.hasElemSeparators()
  32584. containerLen := dd.ReadMapStart()
  32585. if canChange && v == nil {
  32586. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32587. v = make(map[int64]interface{}, xlen)
  32588. changed = true
  32589. }
  32590. if containerLen == 0 {
  32591. dd.ReadMapEnd()
  32592. return v, changed
  32593. }
  32594. d.depthIncr()
  32595. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  32596. var mk int64
  32597. var mv interface{}
  32598. hasLen := containerLen > 0
  32599. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32600. if esep {
  32601. dd.ReadMapElemKey()
  32602. }
  32603. mk = dd.DecodeInt64()
  32604. if esep {
  32605. dd.ReadMapElemValue()
  32606. }
  32607. if dd.TryDecodeAsNil() {
  32608. if v == nil {
  32609. } else if d.h.DeleteOnNilMapValue {
  32610. delete(v, mk)
  32611. } else {
  32612. v[mk] = nil
  32613. }
  32614. continue
  32615. }
  32616. if mapGet {
  32617. mv = v[mk]
  32618. } else {
  32619. mv = nil
  32620. }
  32621. d.decode(&mv)
  32622. if v != nil {
  32623. v[mk] = mv
  32624. }
  32625. }
  32626. dd.ReadMapEnd()
  32627. d.depthDecr()
  32628. return v, changed
  32629. }
  32630. func (d *Decoder) fastpathDecMapInt64StringR(f *codecFnInfo, rv reflect.Value) {
  32631. if rv.Kind() == reflect.Ptr {
  32632. vp := rv2i(rv).(*map[int64]string)
  32633. v, changed := fastpathTV.DecMapInt64StringV(*vp, true, d)
  32634. if changed {
  32635. *vp = v
  32636. }
  32637. } else {
  32638. fastpathTV.DecMapInt64StringV(rv2i(rv).(map[int64]string), false, d)
  32639. }
  32640. }
  32641. func (f fastpathT) DecMapInt64StringX(vp *map[int64]string, d *Decoder) {
  32642. v, changed := f.DecMapInt64StringV(*vp, true, d)
  32643. if changed {
  32644. *vp = v
  32645. }
  32646. }
  32647. func (_ fastpathT) DecMapInt64StringV(v map[int64]string, canChange bool,
  32648. d *Decoder) (_ map[int64]string, changed bool) {
  32649. dd, esep := d.d, d.hh.hasElemSeparators()
  32650. containerLen := dd.ReadMapStart()
  32651. if canChange && v == nil {
  32652. xlen := decInferLen(containerLen, d.h.MaxInitLen, 24)
  32653. v = make(map[int64]string, xlen)
  32654. changed = true
  32655. }
  32656. if containerLen == 0 {
  32657. dd.ReadMapEnd()
  32658. return v, changed
  32659. }
  32660. d.depthIncr()
  32661. var mk int64
  32662. var mv string
  32663. hasLen := containerLen > 0
  32664. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32665. if esep {
  32666. dd.ReadMapElemKey()
  32667. }
  32668. mk = dd.DecodeInt64()
  32669. if esep {
  32670. dd.ReadMapElemValue()
  32671. }
  32672. if dd.TryDecodeAsNil() {
  32673. if v == nil {
  32674. } else if d.h.DeleteOnNilMapValue {
  32675. delete(v, mk)
  32676. } else {
  32677. v[mk] = ""
  32678. }
  32679. continue
  32680. }
  32681. mv = dd.DecodeString()
  32682. if v != nil {
  32683. v[mk] = mv
  32684. }
  32685. }
  32686. dd.ReadMapEnd()
  32687. d.depthDecr()
  32688. return v, changed
  32689. }
  32690. func (d *Decoder) fastpathDecMapInt64UintR(f *codecFnInfo, rv reflect.Value) {
  32691. if rv.Kind() == reflect.Ptr {
  32692. vp := rv2i(rv).(*map[int64]uint)
  32693. v, changed := fastpathTV.DecMapInt64UintV(*vp, true, d)
  32694. if changed {
  32695. *vp = v
  32696. }
  32697. } else {
  32698. fastpathTV.DecMapInt64UintV(rv2i(rv).(map[int64]uint), false, d)
  32699. }
  32700. }
  32701. func (f fastpathT) DecMapInt64UintX(vp *map[int64]uint, d *Decoder) {
  32702. v, changed := f.DecMapInt64UintV(*vp, true, d)
  32703. if changed {
  32704. *vp = v
  32705. }
  32706. }
  32707. func (_ fastpathT) DecMapInt64UintV(v map[int64]uint, canChange bool,
  32708. d *Decoder) (_ map[int64]uint, changed bool) {
  32709. dd, esep := d.d, d.hh.hasElemSeparators()
  32710. containerLen := dd.ReadMapStart()
  32711. if canChange && v == nil {
  32712. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32713. v = make(map[int64]uint, xlen)
  32714. changed = true
  32715. }
  32716. if containerLen == 0 {
  32717. dd.ReadMapEnd()
  32718. return v, changed
  32719. }
  32720. d.depthIncr()
  32721. var mk int64
  32722. var mv uint
  32723. hasLen := containerLen > 0
  32724. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32725. if esep {
  32726. dd.ReadMapElemKey()
  32727. }
  32728. mk = dd.DecodeInt64()
  32729. if esep {
  32730. dd.ReadMapElemValue()
  32731. }
  32732. if dd.TryDecodeAsNil() {
  32733. if v == nil {
  32734. } else if d.h.DeleteOnNilMapValue {
  32735. delete(v, mk)
  32736. } else {
  32737. v[mk] = 0
  32738. }
  32739. continue
  32740. }
  32741. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  32742. if v != nil {
  32743. v[mk] = mv
  32744. }
  32745. }
  32746. dd.ReadMapEnd()
  32747. d.depthDecr()
  32748. return v, changed
  32749. }
  32750. func (d *Decoder) fastpathDecMapInt64Uint8R(f *codecFnInfo, rv reflect.Value) {
  32751. if rv.Kind() == reflect.Ptr {
  32752. vp := rv2i(rv).(*map[int64]uint8)
  32753. v, changed := fastpathTV.DecMapInt64Uint8V(*vp, true, d)
  32754. if changed {
  32755. *vp = v
  32756. }
  32757. } else {
  32758. fastpathTV.DecMapInt64Uint8V(rv2i(rv).(map[int64]uint8), false, d)
  32759. }
  32760. }
  32761. func (f fastpathT) DecMapInt64Uint8X(vp *map[int64]uint8, d *Decoder) {
  32762. v, changed := f.DecMapInt64Uint8V(*vp, true, d)
  32763. if changed {
  32764. *vp = v
  32765. }
  32766. }
  32767. func (_ fastpathT) DecMapInt64Uint8V(v map[int64]uint8, canChange bool,
  32768. d *Decoder) (_ map[int64]uint8, changed bool) {
  32769. dd, esep := d.d, d.hh.hasElemSeparators()
  32770. containerLen := dd.ReadMapStart()
  32771. if canChange && v == nil {
  32772. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  32773. v = make(map[int64]uint8, xlen)
  32774. changed = true
  32775. }
  32776. if containerLen == 0 {
  32777. dd.ReadMapEnd()
  32778. return v, changed
  32779. }
  32780. d.depthIncr()
  32781. var mk int64
  32782. var mv uint8
  32783. hasLen := containerLen > 0
  32784. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32785. if esep {
  32786. dd.ReadMapElemKey()
  32787. }
  32788. mk = dd.DecodeInt64()
  32789. if esep {
  32790. dd.ReadMapElemValue()
  32791. }
  32792. if dd.TryDecodeAsNil() {
  32793. if v == nil {
  32794. } else if d.h.DeleteOnNilMapValue {
  32795. delete(v, mk)
  32796. } else {
  32797. v[mk] = 0
  32798. }
  32799. continue
  32800. }
  32801. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  32802. if v != nil {
  32803. v[mk] = mv
  32804. }
  32805. }
  32806. dd.ReadMapEnd()
  32807. d.depthDecr()
  32808. return v, changed
  32809. }
  32810. func (d *Decoder) fastpathDecMapInt64Uint16R(f *codecFnInfo, rv reflect.Value) {
  32811. if rv.Kind() == reflect.Ptr {
  32812. vp := rv2i(rv).(*map[int64]uint16)
  32813. v, changed := fastpathTV.DecMapInt64Uint16V(*vp, true, d)
  32814. if changed {
  32815. *vp = v
  32816. }
  32817. } else {
  32818. fastpathTV.DecMapInt64Uint16V(rv2i(rv).(map[int64]uint16), false, d)
  32819. }
  32820. }
  32821. func (f fastpathT) DecMapInt64Uint16X(vp *map[int64]uint16, d *Decoder) {
  32822. v, changed := f.DecMapInt64Uint16V(*vp, true, d)
  32823. if changed {
  32824. *vp = v
  32825. }
  32826. }
  32827. func (_ fastpathT) DecMapInt64Uint16V(v map[int64]uint16, canChange bool,
  32828. d *Decoder) (_ map[int64]uint16, changed bool) {
  32829. dd, esep := d.d, d.hh.hasElemSeparators()
  32830. containerLen := dd.ReadMapStart()
  32831. if canChange && v == nil {
  32832. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  32833. v = make(map[int64]uint16, xlen)
  32834. changed = true
  32835. }
  32836. if containerLen == 0 {
  32837. dd.ReadMapEnd()
  32838. return v, changed
  32839. }
  32840. d.depthIncr()
  32841. var mk int64
  32842. var mv uint16
  32843. hasLen := containerLen > 0
  32844. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32845. if esep {
  32846. dd.ReadMapElemKey()
  32847. }
  32848. mk = dd.DecodeInt64()
  32849. if esep {
  32850. dd.ReadMapElemValue()
  32851. }
  32852. if dd.TryDecodeAsNil() {
  32853. if v == nil {
  32854. } else if d.h.DeleteOnNilMapValue {
  32855. delete(v, mk)
  32856. } else {
  32857. v[mk] = 0
  32858. }
  32859. continue
  32860. }
  32861. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  32862. if v != nil {
  32863. v[mk] = mv
  32864. }
  32865. }
  32866. dd.ReadMapEnd()
  32867. d.depthDecr()
  32868. return v, changed
  32869. }
  32870. func (d *Decoder) fastpathDecMapInt64Uint32R(f *codecFnInfo, rv reflect.Value) {
  32871. if rv.Kind() == reflect.Ptr {
  32872. vp := rv2i(rv).(*map[int64]uint32)
  32873. v, changed := fastpathTV.DecMapInt64Uint32V(*vp, true, d)
  32874. if changed {
  32875. *vp = v
  32876. }
  32877. } else {
  32878. fastpathTV.DecMapInt64Uint32V(rv2i(rv).(map[int64]uint32), false, d)
  32879. }
  32880. }
  32881. func (f fastpathT) DecMapInt64Uint32X(vp *map[int64]uint32, d *Decoder) {
  32882. v, changed := f.DecMapInt64Uint32V(*vp, true, d)
  32883. if changed {
  32884. *vp = v
  32885. }
  32886. }
  32887. func (_ fastpathT) DecMapInt64Uint32V(v map[int64]uint32, canChange bool,
  32888. d *Decoder) (_ map[int64]uint32, changed bool) {
  32889. dd, esep := d.d, d.hh.hasElemSeparators()
  32890. containerLen := dd.ReadMapStart()
  32891. if canChange && v == nil {
  32892. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  32893. v = make(map[int64]uint32, xlen)
  32894. changed = true
  32895. }
  32896. if containerLen == 0 {
  32897. dd.ReadMapEnd()
  32898. return v, changed
  32899. }
  32900. d.depthIncr()
  32901. var mk int64
  32902. var mv uint32
  32903. hasLen := containerLen > 0
  32904. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32905. if esep {
  32906. dd.ReadMapElemKey()
  32907. }
  32908. mk = dd.DecodeInt64()
  32909. if esep {
  32910. dd.ReadMapElemValue()
  32911. }
  32912. if dd.TryDecodeAsNil() {
  32913. if v == nil {
  32914. } else if d.h.DeleteOnNilMapValue {
  32915. delete(v, mk)
  32916. } else {
  32917. v[mk] = 0
  32918. }
  32919. continue
  32920. }
  32921. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  32922. if v != nil {
  32923. v[mk] = mv
  32924. }
  32925. }
  32926. dd.ReadMapEnd()
  32927. d.depthDecr()
  32928. return v, changed
  32929. }
  32930. func (d *Decoder) fastpathDecMapInt64Uint64R(f *codecFnInfo, rv reflect.Value) {
  32931. if rv.Kind() == reflect.Ptr {
  32932. vp := rv2i(rv).(*map[int64]uint64)
  32933. v, changed := fastpathTV.DecMapInt64Uint64V(*vp, true, d)
  32934. if changed {
  32935. *vp = v
  32936. }
  32937. } else {
  32938. fastpathTV.DecMapInt64Uint64V(rv2i(rv).(map[int64]uint64), false, d)
  32939. }
  32940. }
  32941. func (f fastpathT) DecMapInt64Uint64X(vp *map[int64]uint64, d *Decoder) {
  32942. v, changed := f.DecMapInt64Uint64V(*vp, true, d)
  32943. if changed {
  32944. *vp = v
  32945. }
  32946. }
  32947. func (_ fastpathT) DecMapInt64Uint64V(v map[int64]uint64, canChange bool,
  32948. d *Decoder) (_ map[int64]uint64, changed bool) {
  32949. dd, esep := d.d, d.hh.hasElemSeparators()
  32950. containerLen := dd.ReadMapStart()
  32951. if canChange && v == nil {
  32952. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  32953. v = make(map[int64]uint64, xlen)
  32954. changed = true
  32955. }
  32956. if containerLen == 0 {
  32957. dd.ReadMapEnd()
  32958. return v, changed
  32959. }
  32960. d.depthIncr()
  32961. var mk int64
  32962. var mv uint64
  32963. hasLen := containerLen > 0
  32964. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  32965. if esep {
  32966. dd.ReadMapElemKey()
  32967. }
  32968. mk = dd.DecodeInt64()
  32969. if esep {
  32970. dd.ReadMapElemValue()
  32971. }
  32972. if dd.TryDecodeAsNil() {
  32973. if v == nil {
  32974. } else if d.h.DeleteOnNilMapValue {
  32975. delete(v, mk)
  32976. } else {
  32977. v[mk] = 0
  32978. }
  32979. continue
  32980. }
  32981. mv = dd.DecodeUint64()
  32982. if v != nil {
  32983. v[mk] = mv
  32984. }
  32985. }
  32986. dd.ReadMapEnd()
  32987. d.depthDecr()
  32988. return v, changed
  32989. }
  32990. func (d *Decoder) fastpathDecMapInt64UintptrR(f *codecFnInfo, rv reflect.Value) {
  32991. if rv.Kind() == reflect.Ptr {
  32992. vp := rv2i(rv).(*map[int64]uintptr)
  32993. v, changed := fastpathTV.DecMapInt64UintptrV(*vp, true, d)
  32994. if changed {
  32995. *vp = v
  32996. }
  32997. } else {
  32998. fastpathTV.DecMapInt64UintptrV(rv2i(rv).(map[int64]uintptr), false, d)
  32999. }
  33000. }
  33001. func (f fastpathT) DecMapInt64UintptrX(vp *map[int64]uintptr, d *Decoder) {
  33002. v, changed := f.DecMapInt64UintptrV(*vp, true, d)
  33003. if changed {
  33004. *vp = v
  33005. }
  33006. }
  33007. func (_ fastpathT) DecMapInt64UintptrV(v map[int64]uintptr, canChange bool,
  33008. d *Decoder) (_ map[int64]uintptr, changed bool) {
  33009. dd, esep := d.d, d.hh.hasElemSeparators()
  33010. containerLen := dd.ReadMapStart()
  33011. if canChange && v == nil {
  33012. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33013. v = make(map[int64]uintptr, xlen)
  33014. changed = true
  33015. }
  33016. if containerLen == 0 {
  33017. dd.ReadMapEnd()
  33018. return v, changed
  33019. }
  33020. d.depthIncr()
  33021. var mk int64
  33022. var mv uintptr
  33023. hasLen := containerLen > 0
  33024. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33025. if esep {
  33026. dd.ReadMapElemKey()
  33027. }
  33028. mk = dd.DecodeInt64()
  33029. if esep {
  33030. dd.ReadMapElemValue()
  33031. }
  33032. if dd.TryDecodeAsNil() {
  33033. if v == nil {
  33034. } else if d.h.DeleteOnNilMapValue {
  33035. delete(v, mk)
  33036. } else {
  33037. v[mk] = 0
  33038. }
  33039. continue
  33040. }
  33041. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33042. if v != nil {
  33043. v[mk] = mv
  33044. }
  33045. }
  33046. dd.ReadMapEnd()
  33047. d.depthDecr()
  33048. return v, changed
  33049. }
  33050. func (d *Decoder) fastpathDecMapInt64IntR(f *codecFnInfo, rv reflect.Value) {
  33051. if rv.Kind() == reflect.Ptr {
  33052. vp := rv2i(rv).(*map[int64]int)
  33053. v, changed := fastpathTV.DecMapInt64IntV(*vp, true, d)
  33054. if changed {
  33055. *vp = v
  33056. }
  33057. } else {
  33058. fastpathTV.DecMapInt64IntV(rv2i(rv).(map[int64]int), false, d)
  33059. }
  33060. }
  33061. func (f fastpathT) DecMapInt64IntX(vp *map[int64]int, d *Decoder) {
  33062. v, changed := f.DecMapInt64IntV(*vp, true, d)
  33063. if changed {
  33064. *vp = v
  33065. }
  33066. }
  33067. func (_ fastpathT) DecMapInt64IntV(v map[int64]int, canChange bool,
  33068. d *Decoder) (_ map[int64]int, changed bool) {
  33069. dd, esep := d.d, d.hh.hasElemSeparators()
  33070. containerLen := dd.ReadMapStart()
  33071. if canChange && v == nil {
  33072. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33073. v = make(map[int64]int, xlen)
  33074. changed = true
  33075. }
  33076. if containerLen == 0 {
  33077. dd.ReadMapEnd()
  33078. return v, changed
  33079. }
  33080. d.depthIncr()
  33081. var mk int64
  33082. var mv int
  33083. hasLen := containerLen > 0
  33084. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33085. if esep {
  33086. dd.ReadMapElemKey()
  33087. }
  33088. mk = dd.DecodeInt64()
  33089. if esep {
  33090. dd.ReadMapElemValue()
  33091. }
  33092. if dd.TryDecodeAsNil() {
  33093. if v == nil {
  33094. } else if d.h.DeleteOnNilMapValue {
  33095. delete(v, mk)
  33096. } else {
  33097. v[mk] = 0
  33098. }
  33099. continue
  33100. }
  33101. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  33102. if v != nil {
  33103. v[mk] = mv
  33104. }
  33105. }
  33106. dd.ReadMapEnd()
  33107. d.depthDecr()
  33108. return v, changed
  33109. }
  33110. func (d *Decoder) fastpathDecMapInt64Int8R(f *codecFnInfo, rv reflect.Value) {
  33111. if rv.Kind() == reflect.Ptr {
  33112. vp := rv2i(rv).(*map[int64]int8)
  33113. v, changed := fastpathTV.DecMapInt64Int8V(*vp, true, d)
  33114. if changed {
  33115. *vp = v
  33116. }
  33117. } else {
  33118. fastpathTV.DecMapInt64Int8V(rv2i(rv).(map[int64]int8), false, d)
  33119. }
  33120. }
  33121. func (f fastpathT) DecMapInt64Int8X(vp *map[int64]int8, d *Decoder) {
  33122. v, changed := f.DecMapInt64Int8V(*vp, true, d)
  33123. if changed {
  33124. *vp = v
  33125. }
  33126. }
  33127. func (_ fastpathT) DecMapInt64Int8V(v map[int64]int8, canChange bool,
  33128. d *Decoder) (_ map[int64]int8, changed bool) {
  33129. dd, esep := d.d, d.hh.hasElemSeparators()
  33130. containerLen := dd.ReadMapStart()
  33131. if canChange && v == nil {
  33132. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33133. v = make(map[int64]int8, xlen)
  33134. changed = true
  33135. }
  33136. if containerLen == 0 {
  33137. dd.ReadMapEnd()
  33138. return v, changed
  33139. }
  33140. d.depthIncr()
  33141. var mk int64
  33142. var mv int8
  33143. hasLen := containerLen > 0
  33144. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33145. if esep {
  33146. dd.ReadMapElemKey()
  33147. }
  33148. mk = dd.DecodeInt64()
  33149. if esep {
  33150. dd.ReadMapElemValue()
  33151. }
  33152. if dd.TryDecodeAsNil() {
  33153. if v == nil {
  33154. } else if d.h.DeleteOnNilMapValue {
  33155. delete(v, mk)
  33156. } else {
  33157. v[mk] = 0
  33158. }
  33159. continue
  33160. }
  33161. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  33162. if v != nil {
  33163. v[mk] = mv
  33164. }
  33165. }
  33166. dd.ReadMapEnd()
  33167. d.depthDecr()
  33168. return v, changed
  33169. }
  33170. func (d *Decoder) fastpathDecMapInt64Int16R(f *codecFnInfo, rv reflect.Value) {
  33171. if rv.Kind() == reflect.Ptr {
  33172. vp := rv2i(rv).(*map[int64]int16)
  33173. v, changed := fastpathTV.DecMapInt64Int16V(*vp, true, d)
  33174. if changed {
  33175. *vp = v
  33176. }
  33177. } else {
  33178. fastpathTV.DecMapInt64Int16V(rv2i(rv).(map[int64]int16), false, d)
  33179. }
  33180. }
  33181. func (f fastpathT) DecMapInt64Int16X(vp *map[int64]int16, d *Decoder) {
  33182. v, changed := f.DecMapInt64Int16V(*vp, true, d)
  33183. if changed {
  33184. *vp = v
  33185. }
  33186. }
  33187. func (_ fastpathT) DecMapInt64Int16V(v map[int64]int16, canChange bool,
  33188. d *Decoder) (_ map[int64]int16, changed bool) {
  33189. dd, esep := d.d, d.hh.hasElemSeparators()
  33190. containerLen := dd.ReadMapStart()
  33191. if canChange && v == nil {
  33192. xlen := decInferLen(containerLen, d.h.MaxInitLen, 10)
  33193. v = make(map[int64]int16, xlen)
  33194. changed = true
  33195. }
  33196. if containerLen == 0 {
  33197. dd.ReadMapEnd()
  33198. return v, changed
  33199. }
  33200. d.depthIncr()
  33201. var mk int64
  33202. var mv int16
  33203. hasLen := containerLen > 0
  33204. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33205. if esep {
  33206. dd.ReadMapElemKey()
  33207. }
  33208. mk = dd.DecodeInt64()
  33209. if esep {
  33210. dd.ReadMapElemValue()
  33211. }
  33212. if dd.TryDecodeAsNil() {
  33213. if v == nil {
  33214. } else if d.h.DeleteOnNilMapValue {
  33215. delete(v, mk)
  33216. } else {
  33217. v[mk] = 0
  33218. }
  33219. continue
  33220. }
  33221. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  33222. if v != nil {
  33223. v[mk] = mv
  33224. }
  33225. }
  33226. dd.ReadMapEnd()
  33227. d.depthDecr()
  33228. return v, changed
  33229. }
  33230. func (d *Decoder) fastpathDecMapInt64Int32R(f *codecFnInfo, rv reflect.Value) {
  33231. if rv.Kind() == reflect.Ptr {
  33232. vp := rv2i(rv).(*map[int64]int32)
  33233. v, changed := fastpathTV.DecMapInt64Int32V(*vp, true, d)
  33234. if changed {
  33235. *vp = v
  33236. }
  33237. } else {
  33238. fastpathTV.DecMapInt64Int32V(rv2i(rv).(map[int64]int32), false, d)
  33239. }
  33240. }
  33241. func (f fastpathT) DecMapInt64Int32X(vp *map[int64]int32, d *Decoder) {
  33242. v, changed := f.DecMapInt64Int32V(*vp, true, d)
  33243. if changed {
  33244. *vp = v
  33245. }
  33246. }
  33247. func (_ fastpathT) DecMapInt64Int32V(v map[int64]int32, canChange bool,
  33248. d *Decoder) (_ map[int64]int32, changed bool) {
  33249. dd, esep := d.d, d.hh.hasElemSeparators()
  33250. containerLen := dd.ReadMapStart()
  33251. if canChange && v == nil {
  33252. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33253. v = make(map[int64]int32, xlen)
  33254. changed = true
  33255. }
  33256. if containerLen == 0 {
  33257. dd.ReadMapEnd()
  33258. return v, changed
  33259. }
  33260. d.depthIncr()
  33261. var mk int64
  33262. var mv int32
  33263. hasLen := containerLen > 0
  33264. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33265. if esep {
  33266. dd.ReadMapElemKey()
  33267. }
  33268. mk = dd.DecodeInt64()
  33269. if esep {
  33270. dd.ReadMapElemValue()
  33271. }
  33272. if dd.TryDecodeAsNil() {
  33273. if v == nil {
  33274. } else if d.h.DeleteOnNilMapValue {
  33275. delete(v, mk)
  33276. } else {
  33277. v[mk] = 0
  33278. }
  33279. continue
  33280. }
  33281. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  33282. if v != nil {
  33283. v[mk] = mv
  33284. }
  33285. }
  33286. dd.ReadMapEnd()
  33287. d.depthDecr()
  33288. return v, changed
  33289. }
  33290. func (d *Decoder) fastpathDecMapInt64Int64R(f *codecFnInfo, rv reflect.Value) {
  33291. if rv.Kind() == reflect.Ptr {
  33292. vp := rv2i(rv).(*map[int64]int64)
  33293. v, changed := fastpathTV.DecMapInt64Int64V(*vp, true, d)
  33294. if changed {
  33295. *vp = v
  33296. }
  33297. } else {
  33298. fastpathTV.DecMapInt64Int64V(rv2i(rv).(map[int64]int64), false, d)
  33299. }
  33300. }
  33301. func (f fastpathT) DecMapInt64Int64X(vp *map[int64]int64, d *Decoder) {
  33302. v, changed := f.DecMapInt64Int64V(*vp, true, d)
  33303. if changed {
  33304. *vp = v
  33305. }
  33306. }
  33307. func (_ fastpathT) DecMapInt64Int64V(v map[int64]int64, canChange bool,
  33308. d *Decoder) (_ map[int64]int64, changed bool) {
  33309. dd, esep := d.d, d.hh.hasElemSeparators()
  33310. containerLen := dd.ReadMapStart()
  33311. if canChange && v == nil {
  33312. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33313. v = make(map[int64]int64, xlen)
  33314. changed = true
  33315. }
  33316. if containerLen == 0 {
  33317. dd.ReadMapEnd()
  33318. return v, changed
  33319. }
  33320. d.depthIncr()
  33321. var mk int64
  33322. var mv int64
  33323. hasLen := containerLen > 0
  33324. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33325. if esep {
  33326. dd.ReadMapElemKey()
  33327. }
  33328. mk = dd.DecodeInt64()
  33329. if esep {
  33330. dd.ReadMapElemValue()
  33331. }
  33332. if dd.TryDecodeAsNil() {
  33333. if v == nil {
  33334. } else if d.h.DeleteOnNilMapValue {
  33335. delete(v, mk)
  33336. } else {
  33337. v[mk] = 0
  33338. }
  33339. continue
  33340. }
  33341. mv = dd.DecodeInt64()
  33342. if v != nil {
  33343. v[mk] = mv
  33344. }
  33345. }
  33346. dd.ReadMapEnd()
  33347. d.depthDecr()
  33348. return v, changed
  33349. }
  33350. func (d *Decoder) fastpathDecMapInt64Float32R(f *codecFnInfo, rv reflect.Value) {
  33351. if rv.Kind() == reflect.Ptr {
  33352. vp := rv2i(rv).(*map[int64]float32)
  33353. v, changed := fastpathTV.DecMapInt64Float32V(*vp, true, d)
  33354. if changed {
  33355. *vp = v
  33356. }
  33357. } else {
  33358. fastpathTV.DecMapInt64Float32V(rv2i(rv).(map[int64]float32), false, d)
  33359. }
  33360. }
  33361. func (f fastpathT) DecMapInt64Float32X(vp *map[int64]float32, d *Decoder) {
  33362. v, changed := f.DecMapInt64Float32V(*vp, true, d)
  33363. if changed {
  33364. *vp = v
  33365. }
  33366. }
  33367. func (_ fastpathT) DecMapInt64Float32V(v map[int64]float32, canChange bool,
  33368. d *Decoder) (_ map[int64]float32, changed bool) {
  33369. dd, esep := d.d, d.hh.hasElemSeparators()
  33370. containerLen := dd.ReadMapStart()
  33371. if canChange && v == nil {
  33372. xlen := decInferLen(containerLen, d.h.MaxInitLen, 12)
  33373. v = make(map[int64]float32, xlen)
  33374. changed = true
  33375. }
  33376. if containerLen == 0 {
  33377. dd.ReadMapEnd()
  33378. return v, changed
  33379. }
  33380. d.depthIncr()
  33381. var mk int64
  33382. var mv float32
  33383. hasLen := containerLen > 0
  33384. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33385. if esep {
  33386. dd.ReadMapElemKey()
  33387. }
  33388. mk = dd.DecodeInt64()
  33389. if esep {
  33390. dd.ReadMapElemValue()
  33391. }
  33392. if dd.TryDecodeAsNil() {
  33393. if v == nil {
  33394. } else if d.h.DeleteOnNilMapValue {
  33395. delete(v, mk)
  33396. } else {
  33397. v[mk] = 0
  33398. }
  33399. continue
  33400. }
  33401. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  33402. if v != nil {
  33403. v[mk] = mv
  33404. }
  33405. }
  33406. dd.ReadMapEnd()
  33407. d.depthDecr()
  33408. return v, changed
  33409. }
  33410. func (d *Decoder) fastpathDecMapInt64Float64R(f *codecFnInfo, rv reflect.Value) {
  33411. if rv.Kind() == reflect.Ptr {
  33412. vp := rv2i(rv).(*map[int64]float64)
  33413. v, changed := fastpathTV.DecMapInt64Float64V(*vp, true, d)
  33414. if changed {
  33415. *vp = v
  33416. }
  33417. } else {
  33418. fastpathTV.DecMapInt64Float64V(rv2i(rv).(map[int64]float64), false, d)
  33419. }
  33420. }
  33421. func (f fastpathT) DecMapInt64Float64X(vp *map[int64]float64, d *Decoder) {
  33422. v, changed := f.DecMapInt64Float64V(*vp, true, d)
  33423. if changed {
  33424. *vp = v
  33425. }
  33426. }
  33427. func (_ fastpathT) DecMapInt64Float64V(v map[int64]float64, canChange bool,
  33428. d *Decoder) (_ map[int64]float64, changed bool) {
  33429. dd, esep := d.d, d.hh.hasElemSeparators()
  33430. containerLen := dd.ReadMapStart()
  33431. if canChange && v == nil {
  33432. xlen := decInferLen(containerLen, d.h.MaxInitLen, 16)
  33433. v = make(map[int64]float64, xlen)
  33434. changed = true
  33435. }
  33436. if containerLen == 0 {
  33437. dd.ReadMapEnd()
  33438. return v, changed
  33439. }
  33440. d.depthIncr()
  33441. var mk int64
  33442. var mv float64
  33443. hasLen := containerLen > 0
  33444. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33445. if esep {
  33446. dd.ReadMapElemKey()
  33447. }
  33448. mk = dd.DecodeInt64()
  33449. if esep {
  33450. dd.ReadMapElemValue()
  33451. }
  33452. if dd.TryDecodeAsNil() {
  33453. if v == nil {
  33454. } else if d.h.DeleteOnNilMapValue {
  33455. delete(v, mk)
  33456. } else {
  33457. v[mk] = 0
  33458. }
  33459. continue
  33460. }
  33461. mv = dd.DecodeFloat64()
  33462. if v != nil {
  33463. v[mk] = mv
  33464. }
  33465. }
  33466. dd.ReadMapEnd()
  33467. d.depthDecr()
  33468. return v, changed
  33469. }
  33470. func (d *Decoder) fastpathDecMapInt64BoolR(f *codecFnInfo, rv reflect.Value) {
  33471. if rv.Kind() == reflect.Ptr {
  33472. vp := rv2i(rv).(*map[int64]bool)
  33473. v, changed := fastpathTV.DecMapInt64BoolV(*vp, true, d)
  33474. if changed {
  33475. *vp = v
  33476. }
  33477. } else {
  33478. fastpathTV.DecMapInt64BoolV(rv2i(rv).(map[int64]bool), false, d)
  33479. }
  33480. }
  33481. func (f fastpathT) DecMapInt64BoolX(vp *map[int64]bool, d *Decoder) {
  33482. v, changed := f.DecMapInt64BoolV(*vp, true, d)
  33483. if changed {
  33484. *vp = v
  33485. }
  33486. }
  33487. func (_ fastpathT) DecMapInt64BoolV(v map[int64]bool, canChange bool,
  33488. d *Decoder) (_ map[int64]bool, changed bool) {
  33489. dd, esep := d.d, d.hh.hasElemSeparators()
  33490. containerLen := dd.ReadMapStart()
  33491. if canChange && v == nil {
  33492. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33493. v = make(map[int64]bool, xlen)
  33494. changed = true
  33495. }
  33496. if containerLen == 0 {
  33497. dd.ReadMapEnd()
  33498. return v, changed
  33499. }
  33500. d.depthIncr()
  33501. var mk int64
  33502. var mv bool
  33503. hasLen := containerLen > 0
  33504. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33505. if esep {
  33506. dd.ReadMapElemKey()
  33507. }
  33508. mk = dd.DecodeInt64()
  33509. if esep {
  33510. dd.ReadMapElemValue()
  33511. }
  33512. if dd.TryDecodeAsNil() {
  33513. if v == nil {
  33514. } else if d.h.DeleteOnNilMapValue {
  33515. delete(v, mk)
  33516. } else {
  33517. v[mk] = false
  33518. }
  33519. continue
  33520. }
  33521. mv = dd.DecodeBool()
  33522. if v != nil {
  33523. v[mk] = mv
  33524. }
  33525. }
  33526. dd.ReadMapEnd()
  33527. d.depthDecr()
  33528. return v, changed
  33529. }
  33530. func (d *Decoder) fastpathDecMapBoolIntfR(f *codecFnInfo, rv reflect.Value) {
  33531. if rv.Kind() == reflect.Ptr {
  33532. vp := rv2i(rv).(*map[bool]interface{})
  33533. v, changed := fastpathTV.DecMapBoolIntfV(*vp, true, d)
  33534. if changed {
  33535. *vp = v
  33536. }
  33537. } else {
  33538. fastpathTV.DecMapBoolIntfV(rv2i(rv).(map[bool]interface{}), false, d)
  33539. }
  33540. }
  33541. func (f fastpathT) DecMapBoolIntfX(vp *map[bool]interface{}, d *Decoder) {
  33542. v, changed := f.DecMapBoolIntfV(*vp, true, d)
  33543. if changed {
  33544. *vp = v
  33545. }
  33546. }
  33547. func (_ fastpathT) DecMapBoolIntfV(v map[bool]interface{}, canChange bool,
  33548. d *Decoder) (_ map[bool]interface{}, changed bool) {
  33549. dd, esep := d.d, d.hh.hasElemSeparators()
  33550. containerLen := dd.ReadMapStart()
  33551. if canChange && v == nil {
  33552. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33553. v = make(map[bool]interface{}, xlen)
  33554. changed = true
  33555. }
  33556. if containerLen == 0 {
  33557. dd.ReadMapEnd()
  33558. return v, changed
  33559. }
  33560. d.depthIncr()
  33561. mapGet := v != nil && !d.h.MapValueReset && !d.h.InterfaceReset
  33562. var mk bool
  33563. var mv interface{}
  33564. hasLen := containerLen > 0
  33565. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33566. if esep {
  33567. dd.ReadMapElemKey()
  33568. }
  33569. mk = dd.DecodeBool()
  33570. if esep {
  33571. dd.ReadMapElemValue()
  33572. }
  33573. if dd.TryDecodeAsNil() {
  33574. if v == nil {
  33575. } else if d.h.DeleteOnNilMapValue {
  33576. delete(v, mk)
  33577. } else {
  33578. v[mk] = nil
  33579. }
  33580. continue
  33581. }
  33582. if mapGet {
  33583. mv = v[mk]
  33584. } else {
  33585. mv = nil
  33586. }
  33587. d.decode(&mv)
  33588. if v != nil {
  33589. v[mk] = mv
  33590. }
  33591. }
  33592. dd.ReadMapEnd()
  33593. d.depthDecr()
  33594. return v, changed
  33595. }
  33596. func (d *Decoder) fastpathDecMapBoolStringR(f *codecFnInfo, rv reflect.Value) {
  33597. if rv.Kind() == reflect.Ptr {
  33598. vp := rv2i(rv).(*map[bool]string)
  33599. v, changed := fastpathTV.DecMapBoolStringV(*vp, true, d)
  33600. if changed {
  33601. *vp = v
  33602. }
  33603. } else {
  33604. fastpathTV.DecMapBoolStringV(rv2i(rv).(map[bool]string), false, d)
  33605. }
  33606. }
  33607. func (f fastpathT) DecMapBoolStringX(vp *map[bool]string, d *Decoder) {
  33608. v, changed := f.DecMapBoolStringV(*vp, true, d)
  33609. if changed {
  33610. *vp = v
  33611. }
  33612. }
  33613. func (_ fastpathT) DecMapBoolStringV(v map[bool]string, canChange bool,
  33614. d *Decoder) (_ map[bool]string, changed bool) {
  33615. dd, esep := d.d, d.hh.hasElemSeparators()
  33616. containerLen := dd.ReadMapStart()
  33617. if canChange && v == nil {
  33618. xlen := decInferLen(containerLen, d.h.MaxInitLen, 17)
  33619. v = make(map[bool]string, xlen)
  33620. changed = true
  33621. }
  33622. if containerLen == 0 {
  33623. dd.ReadMapEnd()
  33624. return v, changed
  33625. }
  33626. d.depthIncr()
  33627. var mk bool
  33628. var mv string
  33629. hasLen := containerLen > 0
  33630. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33631. if esep {
  33632. dd.ReadMapElemKey()
  33633. }
  33634. mk = dd.DecodeBool()
  33635. if esep {
  33636. dd.ReadMapElemValue()
  33637. }
  33638. if dd.TryDecodeAsNil() {
  33639. if v == nil {
  33640. } else if d.h.DeleteOnNilMapValue {
  33641. delete(v, mk)
  33642. } else {
  33643. v[mk] = ""
  33644. }
  33645. continue
  33646. }
  33647. mv = dd.DecodeString()
  33648. if v != nil {
  33649. v[mk] = mv
  33650. }
  33651. }
  33652. dd.ReadMapEnd()
  33653. d.depthDecr()
  33654. return v, changed
  33655. }
  33656. func (d *Decoder) fastpathDecMapBoolUintR(f *codecFnInfo, rv reflect.Value) {
  33657. if rv.Kind() == reflect.Ptr {
  33658. vp := rv2i(rv).(*map[bool]uint)
  33659. v, changed := fastpathTV.DecMapBoolUintV(*vp, true, d)
  33660. if changed {
  33661. *vp = v
  33662. }
  33663. } else {
  33664. fastpathTV.DecMapBoolUintV(rv2i(rv).(map[bool]uint), false, d)
  33665. }
  33666. }
  33667. func (f fastpathT) DecMapBoolUintX(vp *map[bool]uint, d *Decoder) {
  33668. v, changed := f.DecMapBoolUintV(*vp, true, d)
  33669. if changed {
  33670. *vp = v
  33671. }
  33672. }
  33673. func (_ fastpathT) DecMapBoolUintV(v map[bool]uint, canChange bool,
  33674. d *Decoder) (_ map[bool]uint, changed bool) {
  33675. dd, esep := d.d, d.hh.hasElemSeparators()
  33676. containerLen := dd.ReadMapStart()
  33677. if canChange && v == nil {
  33678. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33679. v = make(map[bool]uint, xlen)
  33680. changed = true
  33681. }
  33682. if containerLen == 0 {
  33683. dd.ReadMapEnd()
  33684. return v, changed
  33685. }
  33686. d.depthIncr()
  33687. var mk bool
  33688. var mv uint
  33689. hasLen := containerLen > 0
  33690. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33691. if esep {
  33692. dd.ReadMapElemKey()
  33693. }
  33694. mk = dd.DecodeBool()
  33695. if esep {
  33696. dd.ReadMapElemValue()
  33697. }
  33698. if dd.TryDecodeAsNil() {
  33699. if v == nil {
  33700. } else if d.h.DeleteOnNilMapValue {
  33701. delete(v, mk)
  33702. } else {
  33703. v[mk] = 0
  33704. }
  33705. continue
  33706. }
  33707. mv = uint(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  33708. if v != nil {
  33709. v[mk] = mv
  33710. }
  33711. }
  33712. dd.ReadMapEnd()
  33713. d.depthDecr()
  33714. return v, changed
  33715. }
  33716. func (d *Decoder) fastpathDecMapBoolUint8R(f *codecFnInfo, rv reflect.Value) {
  33717. if rv.Kind() == reflect.Ptr {
  33718. vp := rv2i(rv).(*map[bool]uint8)
  33719. v, changed := fastpathTV.DecMapBoolUint8V(*vp, true, d)
  33720. if changed {
  33721. *vp = v
  33722. }
  33723. } else {
  33724. fastpathTV.DecMapBoolUint8V(rv2i(rv).(map[bool]uint8), false, d)
  33725. }
  33726. }
  33727. func (f fastpathT) DecMapBoolUint8X(vp *map[bool]uint8, d *Decoder) {
  33728. v, changed := f.DecMapBoolUint8V(*vp, true, d)
  33729. if changed {
  33730. *vp = v
  33731. }
  33732. }
  33733. func (_ fastpathT) DecMapBoolUint8V(v map[bool]uint8, canChange bool,
  33734. d *Decoder) (_ map[bool]uint8, changed bool) {
  33735. dd, esep := d.d, d.hh.hasElemSeparators()
  33736. containerLen := dd.ReadMapStart()
  33737. if canChange && v == nil {
  33738. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  33739. v = make(map[bool]uint8, xlen)
  33740. changed = true
  33741. }
  33742. if containerLen == 0 {
  33743. dd.ReadMapEnd()
  33744. return v, changed
  33745. }
  33746. d.depthIncr()
  33747. var mk bool
  33748. var mv uint8
  33749. hasLen := containerLen > 0
  33750. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33751. if esep {
  33752. dd.ReadMapElemKey()
  33753. }
  33754. mk = dd.DecodeBool()
  33755. if esep {
  33756. dd.ReadMapElemValue()
  33757. }
  33758. if dd.TryDecodeAsNil() {
  33759. if v == nil {
  33760. } else if d.h.DeleteOnNilMapValue {
  33761. delete(v, mk)
  33762. } else {
  33763. v[mk] = 0
  33764. }
  33765. continue
  33766. }
  33767. mv = uint8(chkOvf.UintV(dd.DecodeUint64(), 8))
  33768. if v != nil {
  33769. v[mk] = mv
  33770. }
  33771. }
  33772. dd.ReadMapEnd()
  33773. d.depthDecr()
  33774. return v, changed
  33775. }
  33776. func (d *Decoder) fastpathDecMapBoolUint16R(f *codecFnInfo, rv reflect.Value) {
  33777. if rv.Kind() == reflect.Ptr {
  33778. vp := rv2i(rv).(*map[bool]uint16)
  33779. v, changed := fastpathTV.DecMapBoolUint16V(*vp, true, d)
  33780. if changed {
  33781. *vp = v
  33782. }
  33783. } else {
  33784. fastpathTV.DecMapBoolUint16V(rv2i(rv).(map[bool]uint16), false, d)
  33785. }
  33786. }
  33787. func (f fastpathT) DecMapBoolUint16X(vp *map[bool]uint16, d *Decoder) {
  33788. v, changed := f.DecMapBoolUint16V(*vp, true, d)
  33789. if changed {
  33790. *vp = v
  33791. }
  33792. }
  33793. func (_ fastpathT) DecMapBoolUint16V(v map[bool]uint16, canChange bool,
  33794. d *Decoder) (_ map[bool]uint16, changed bool) {
  33795. dd, esep := d.d, d.hh.hasElemSeparators()
  33796. containerLen := dd.ReadMapStart()
  33797. if canChange && v == nil {
  33798. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  33799. v = make(map[bool]uint16, xlen)
  33800. changed = true
  33801. }
  33802. if containerLen == 0 {
  33803. dd.ReadMapEnd()
  33804. return v, changed
  33805. }
  33806. d.depthIncr()
  33807. var mk bool
  33808. var mv uint16
  33809. hasLen := containerLen > 0
  33810. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33811. if esep {
  33812. dd.ReadMapElemKey()
  33813. }
  33814. mk = dd.DecodeBool()
  33815. if esep {
  33816. dd.ReadMapElemValue()
  33817. }
  33818. if dd.TryDecodeAsNil() {
  33819. if v == nil {
  33820. } else if d.h.DeleteOnNilMapValue {
  33821. delete(v, mk)
  33822. } else {
  33823. v[mk] = 0
  33824. }
  33825. continue
  33826. }
  33827. mv = uint16(chkOvf.UintV(dd.DecodeUint64(), 16))
  33828. if v != nil {
  33829. v[mk] = mv
  33830. }
  33831. }
  33832. dd.ReadMapEnd()
  33833. d.depthDecr()
  33834. return v, changed
  33835. }
  33836. func (d *Decoder) fastpathDecMapBoolUint32R(f *codecFnInfo, rv reflect.Value) {
  33837. if rv.Kind() == reflect.Ptr {
  33838. vp := rv2i(rv).(*map[bool]uint32)
  33839. v, changed := fastpathTV.DecMapBoolUint32V(*vp, true, d)
  33840. if changed {
  33841. *vp = v
  33842. }
  33843. } else {
  33844. fastpathTV.DecMapBoolUint32V(rv2i(rv).(map[bool]uint32), false, d)
  33845. }
  33846. }
  33847. func (f fastpathT) DecMapBoolUint32X(vp *map[bool]uint32, d *Decoder) {
  33848. v, changed := f.DecMapBoolUint32V(*vp, true, d)
  33849. if changed {
  33850. *vp = v
  33851. }
  33852. }
  33853. func (_ fastpathT) DecMapBoolUint32V(v map[bool]uint32, canChange bool,
  33854. d *Decoder) (_ map[bool]uint32, changed bool) {
  33855. dd, esep := d.d, d.hh.hasElemSeparators()
  33856. containerLen := dd.ReadMapStart()
  33857. if canChange && v == nil {
  33858. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  33859. v = make(map[bool]uint32, xlen)
  33860. changed = true
  33861. }
  33862. if containerLen == 0 {
  33863. dd.ReadMapEnd()
  33864. return v, changed
  33865. }
  33866. d.depthIncr()
  33867. var mk bool
  33868. var mv uint32
  33869. hasLen := containerLen > 0
  33870. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33871. if esep {
  33872. dd.ReadMapElemKey()
  33873. }
  33874. mk = dd.DecodeBool()
  33875. if esep {
  33876. dd.ReadMapElemValue()
  33877. }
  33878. if dd.TryDecodeAsNil() {
  33879. if v == nil {
  33880. } else if d.h.DeleteOnNilMapValue {
  33881. delete(v, mk)
  33882. } else {
  33883. v[mk] = 0
  33884. }
  33885. continue
  33886. }
  33887. mv = uint32(chkOvf.UintV(dd.DecodeUint64(), 32))
  33888. if v != nil {
  33889. v[mk] = mv
  33890. }
  33891. }
  33892. dd.ReadMapEnd()
  33893. d.depthDecr()
  33894. return v, changed
  33895. }
  33896. func (d *Decoder) fastpathDecMapBoolUint64R(f *codecFnInfo, rv reflect.Value) {
  33897. if rv.Kind() == reflect.Ptr {
  33898. vp := rv2i(rv).(*map[bool]uint64)
  33899. v, changed := fastpathTV.DecMapBoolUint64V(*vp, true, d)
  33900. if changed {
  33901. *vp = v
  33902. }
  33903. } else {
  33904. fastpathTV.DecMapBoolUint64V(rv2i(rv).(map[bool]uint64), false, d)
  33905. }
  33906. }
  33907. func (f fastpathT) DecMapBoolUint64X(vp *map[bool]uint64, d *Decoder) {
  33908. v, changed := f.DecMapBoolUint64V(*vp, true, d)
  33909. if changed {
  33910. *vp = v
  33911. }
  33912. }
  33913. func (_ fastpathT) DecMapBoolUint64V(v map[bool]uint64, canChange bool,
  33914. d *Decoder) (_ map[bool]uint64, changed bool) {
  33915. dd, esep := d.d, d.hh.hasElemSeparators()
  33916. containerLen := dd.ReadMapStart()
  33917. if canChange && v == nil {
  33918. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33919. v = make(map[bool]uint64, xlen)
  33920. changed = true
  33921. }
  33922. if containerLen == 0 {
  33923. dd.ReadMapEnd()
  33924. return v, changed
  33925. }
  33926. d.depthIncr()
  33927. var mk bool
  33928. var mv uint64
  33929. hasLen := containerLen > 0
  33930. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33931. if esep {
  33932. dd.ReadMapElemKey()
  33933. }
  33934. mk = dd.DecodeBool()
  33935. if esep {
  33936. dd.ReadMapElemValue()
  33937. }
  33938. if dd.TryDecodeAsNil() {
  33939. if v == nil {
  33940. } else if d.h.DeleteOnNilMapValue {
  33941. delete(v, mk)
  33942. } else {
  33943. v[mk] = 0
  33944. }
  33945. continue
  33946. }
  33947. mv = dd.DecodeUint64()
  33948. if v != nil {
  33949. v[mk] = mv
  33950. }
  33951. }
  33952. dd.ReadMapEnd()
  33953. d.depthDecr()
  33954. return v, changed
  33955. }
  33956. func (d *Decoder) fastpathDecMapBoolUintptrR(f *codecFnInfo, rv reflect.Value) {
  33957. if rv.Kind() == reflect.Ptr {
  33958. vp := rv2i(rv).(*map[bool]uintptr)
  33959. v, changed := fastpathTV.DecMapBoolUintptrV(*vp, true, d)
  33960. if changed {
  33961. *vp = v
  33962. }
  33963. } else {
  33964. fastpathTV.DecMapBoolUintptrV(rv2i(rv).(map[bool]uintptr), false, d)
  33965. }
  33966. }
  33967. func (f fastpathT) DecMapBoolUintptrX(vp *map[bool]uintptr, d *Decoder) {
  33968. v, changed := f.DecMapBoolUintptrV(*vp, true, d)
  33969. if changed {
  33970. *vp = v
  33971. }
  33972. }
  33973. func (_ fastpathT) DecMapBoolUintptrV(v map[bool]uintptr, canChange bool,
  33974. d *Decoder) (_ map[bool]uintptr, changed bool) {
  33975. dd, esep := d.d, d.hh.hasElemSeparators()
  33976. containerLen := dd.ReadMapStart()
  33977. if canChange && v == nil {
  33978. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  33979. v = make(map[bool]uintptr, xlen)
  33980. changed = true
  33981. }
  33982. if containerLen == 0 {
  33983. dd.ReadMapEnd()
  33984. return v, changed
  33985. }
  33986. d.depthIncr()
  33987. var mk bool
  33988. var mv uintptr
  33989. hasLen := containerLen > 0
  33990. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  33991. if esep {
  33992. dd.ReadMapElemKey()
  33993. }
  33994. mk = dd.DecodeBool()
  33995. if esep {
  33996. dd.ReadMapElemValue()
  33997. }
  33998. if dd.TryDecodeAsNil() {
  33999. if v == nil {
  34000. } else if d.h.DeleteOnNilMapValue {
  34001. delete(v, mk)
  34002. } else {
  34003. v[mk] = 0
  34004. }
  34005. continue
  34006. }
  34007. mv = uintptr(chkOvf.UintV(dd.DecodeUint64(), uintBitsize))
  34008. if v != nil {
  34009. v[mk] = mv
  34010. }
  34011. }
  34012. dd.ReadMapEnd()
  34013. d.depthDecr()
  34014. return v, changed
  34015. }
  34016. func (d *Decoder) fastpathDecMapBoolIntR(f *codecFnInfo, rv reflect.Value) {
  34017. if rv.Kind() == reflect.Ptr {
  34018. vp := rv2i(rv).(*map[bool]int)
  34019. v, changed := fastpathTV.DecMapBoolIntV(*vp, true, d)
  34020. if changed {
  34021. *vp = v
  34022. }
  34023. } else {
  34024. fastpathTV.DecMapBoolIntV(rv2i(rv).(map[bool]int), false, d)
  34025. }
  34026. }
  34027. func (f fastpathT) DecMapBoolIntX(vp *map[bool]int, d *Decoder) {
  34028. v, changed := f.DecMapBoolIntV(*vp, true, d)
  34029. if changed {
  34030. *vp = v
  34031. }
  34032. }
  34033. func (_ fastpathT) DecMapBoolIntV(v map[bool]int, canChange bool,
  34034. d *Decoder) (_ map[bool]int, changed bool) {
  34035. dd, esep := d.d, d.hh.hasElemSeparators()
  34036. containerLen := dd.ReadMapStart()
  34037. if canChange && v == nil {
  34038. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34039. v = make(map[bool]int, xlen)
  34040. changed = true
  34041. }
  34042. if containerLen == 0 {
  34043. dd.ReadMapEnd()
  34044. return v, changed
  34045. }
  34046. d.depthIncr()
  34047. var mk bool
  34048. var mv int
  34049. hasLen := containerLen > 0
  34050. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34051. if esep {
  34052. dd.ReadMapElemKey()
  34053. }
  34054. mk = dd.DecodeBool()
  34055. if esep {
  34056. dd.ReadMapElemValue()
  34057. }
  34058. if dd.TryDecodeAsNil() {
  34059. if v == nil {
  34060. } else if d.h.DeleteOnNilMapValue {
  34061. delete(v, mk)
  34062. } else {
  34063. v[mk] = 0
  34064. }
  34065. continue
  34066. }
  34067. mv = int(chkOvf.IntV(dd.DecodeInt64(), intBitsize))
  34068. if v != nil {
  34069. v[mk] = mv
  34070. }
  34071. }
  34072. dd.ReadMapEnd()
  34073. d.depthDecr()
  34074. return v, changed
  34075. }
  34076. func (d *Decoder) fastpathDecMapBoolInt8R(f *codecFnInfo, rv reflect.Value) {
  34077. if rv.Kind() == reflect.Ptr {
  34078. vp := rv2i(rv).(*map[bool]int8)
  34079. v, changed := fastpathTV.DecMapBoolInt8V(*vp, true, d)
  34080. if changed {
  34081. *vp = v
  34082. }
  34083. } else {
  34084. fastpathTV.DecMapBoolInt8V(rv2i(rv).(map[bool]int8), false, d)
  34085. }
  34086. }
  34087. func (f fastpathT) DecMapBoolInt8X(vp *map[bool]int8, d *Decoder) {
  34088. v, changed := f.DecMapBoolInt8V(*vp, true, d)
  34089. if changed {
  34090. *vp = v
  34091. }
  34092. }
  34093. func (_ fastpathT) DecMapBoolInt8V(v map[bool]int8, canChange bool,
  34094. d *Decoder) (_ map[bool]int8, changed bool) {
  34095. dd, esep := d.d, d.hh.hasElemSeparators()
  34096. containerLen := dd.ReadMapStart()
  34097. if canChange && v == nil {
  34098. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  34099. v = make(map[bool]int8, xlen)
  34100. changed = true
  34101. }
  34102. if containerLen == 0 {
  34103. dd.ReadMapEnd()
  34104. return v, changed
  34105. }
  34106. d.depthIncr()
  34107. var mk bool
  34108. var mv int8
  34109. hasLen := containerLen > 0
  34110. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34111. if esep {
  34112. dd.ReadMapElemKey()
  34113. }
  34114. mk = dd.DecodeBool()
  34115. if esep {
  34116. dd.ReadMapElemValue()
  34117. }
  34118. if dd.TryDecodeAsNil() {
  34119. if v == nil {
  34120. } else if d.h.DeleteOnNilMapValue {
  34121. delete(v, mk)
  34122. } else {
  34123. v[mk] = 0
  34124. }
  34125. continue
  34126. }
  34127. mv = int8(chkOvf.IntV(dd.DecodeInt64(), 8))
  34128. if v != nil {
  34129. v[mk] = mv
  34130. }
  34131. }
  34132. dd.ReadMapEnd()
  34133. d.depthDecr()
  34134. return v, changed
  34135. }
  34136. func (d *Decoder) fastpathDecMapBoolInt16R(f *codecFnInfo, rv reflect.Value) {
  34137. if rv.Kind() == reflect.Ptr {
  34138. vp := rv2i(rv).(*map[bool]int16)
  34139. v, changed := fastpathTV.DecMapBoolInt16V(*vp, true, d)
  34140. if changed {
  34141. *vp = v
  34142. }
  34143. } else {
  34144. fastpathTV.DecMapBoolInt16V(rv2i(rv).(map[bool]int16), false, d)
  34145. }
  34146. }
  34147. func (f fastpathT) DecMapBoolInt16X(vp *map[bool]int16, d *Decoder) {
  34148. v, changed := f.DecMapBoolInt16V(*vp, true, d)
  34149. if changed {
  34150. *vp = v
  34151. }
  34152. }
  34153. func (_ fastpathT) DecMapBoolInt16V(v map[bool]int16, canChange bool,
  34154. d *Decoder) (_ map[bool]int16, changed bool) {
  34155. dd, esep := d.d, d.hh.hasElemSeparators()
  34156. containerLen := dd.ReadMapStart()
  34157. if canChange && v == nil {
  34158. xlen := decInferLen(containerLen, d.h.MaxInitLen, 3)
  34159. v = make(map[bool]int16, xlen)
  34160. changed = true
  34161. }
  34162. if containerLen == 0 {
  34163. dd.ReadMapEnd()
  34164. return v, changed
  34165. }
  34166. d.depthIncr()
  34167. var mk bool
  34168. var mv int16
  34169. hasLen := containerLen > 0
  34170. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34171. if esep {
  34172. dd.ReadMapElemKey()
  34173. }
  34174. mk = dd.DecodeBool()
  34175. if esep {
  34176. dd.ReadMapElemValue()
  34177. }
  34178. if dd.TryDecodeAsNil() {
  34179. if v == nil {
  34180. } else if d.h.DeleteOnNilMapValue {
  34181. delete(v, mk)
  34182. } else {
  34183. v[mk] = 0
  34184. }
  34185. continue
  34186. }
  34187. mv = int16(chkOvf.IntV(dd.DecodeInt64(), 16))
  34188. if v != nil {
  34189. v[mk] = mv
  34190. }
  34191. }
  34192. dd.ReadMapEnd()
  34193. d.depthDecr()
  34194. return v, changed
  34195. }
  34196. func (d *Decoder) fastpathDecMapBoolInt32R(f *codecFnInfo, rv reflect.Value) {
  34197. if rv.Kind() == reflect.Ptr {
  34198. vp := rv2i(rv).(*map[bool]int32)
  34199. v, changed := fastpathTV.DecMapBoolInt32V(*vp, true, d)
  34200. if changed {
  34201. *vp = v
  34202. }
  34203. } else {
  34204. fastpathTV.DecMapBoolInt32V(rv2i(rv).(map[bool]int32), false, d)
  34205. }
  34206. }
  34207. func (f fastpathT) DecMapBoolInt32X(vp *map[bool]int32, d *Decoder) {
  34208. v, changed := f.DecMapBoolInt32V(*vp, true, d)
  34209. if changed {
  34210. *vp = v
  34211. }
  34212. }
  34213. func (_ fastpathT) DecMapBoolInt32V(v map[bool]int32, canChange bool,
  34214. d *Decoder) (_ map[bool]int32, changed bool) {
  34215. dd, esep := d.d, d.hh.hasElemSeparators()
  34216. containerLen := dd.ReadMapStart()
  34217. if canChange && v == nil {
  34218. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34219. v = make(map[bool]int32, xlen)
  34220. changed = true
  34221. }
  34222. if containerLen == 0 {
  34223. dd.ReadMapEnd()
  34224. return v, changed
  34225. }
  34226. d.depthIncr()
  34227. var mk bool
  34228. var mv int32
  34229. hasLen := containerLen > 0
  34230. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34231. if esep {
  34232. dd.ReadMapElemKey()
  34233. }
  34234. mk = dd.DecodeBool()
  34235. if esep {
  34236. dd.ReadMapElemValue()
  34237. }
  34238. if dd.TryDecodeAsNil() {
  34239. if v == nil {
  34240. } else if d.h.DeleteOnNilMapValue {
  34241. delete(v, mk)
  34242. } else {
  34243. v[mk] = 0
  34244. }
  34245. continue
  34246. }
  34247. mv = int32(chkOvf.IntV(dd.DecodeInt64(), 32))
  34248. if v != nil {
  34249. v[mk] = mv
  34250. }
  34251. }
  34252. dd.ReadMapEnd()
  34253. d.depthDecr()
  34254. return v, changed
  34255. }
  34256. func (d *Decoder) fastpathDecMapBoolInt64R(f *codecFnInfo, rv reflect.Value) {
  34257. if rv.Kind() == reflect.Ptr {
  34258. vp := rv2i(rv).(*map[bool]int64)
  34259. v, changed := fastpathTV.DecMapBoolInt64V(*vp, true, d)
  34260. if changed {
  34261. *vp = v
  34262. }
  34263. } else {
  34264. fastpathTV.DecMapBoolInt64V(rv2i(rv).(map[bool]int64), false, d)
  34265. }
  34266. }
  34267. func (f fastpathT) DecMapBoolInt64X(vp *map[bool]int64, d *Decoder) {
  34268. v, changed := f.DecMapBoolInt64V(*vp, true, d)
  34269. if changed {
  34270. *vp = v
  34271. }
  34272. }
  34273. func (_ fastpathT) DecMapBoolInt64V(v map[bool]int64, canChange bool,
  34274. d *Decoder) (_ map[bool]int64, changed bool) {
  34275. dd, esep := d.d, d.hh.hasElemSeparators()
  34276. containerLen := dd.ReadMapStart()
  34277. if canChange && v == nil {
  34278. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34279. v = make(map[bool]int64, xlen)
  34280. changed = true
  34281. }
  34282. if containerLen == 0 {
  34283. dd.ReadMapEnd()
  34284. return v, changed
  34285. }
  34286. d.depthIncr()
  34287. var mk bool
  34288. var mv int64
  34289. hasLen := containerLen > 0
  34290. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34291. if esep {
  34292. dd.ReadMapElemKey()
  34293. }
  34294. mk = dd.DecodeBool()
  34295. if esep {
  34296. dd.ReadMapElemValue()
  34297. }
  34298. if dd.TryDecodeAsNil() {
  34299. if v == nil {
  34300. } else if d.h.DeleteOnNilMapValue {
  34301. delete(v, mk)
  34302. } else {
  34303. v[mk] = 0
  34304. }
  34305. continue
  34306. }
  34307. mv = dd.DecodeInt64()
  34308. if v != nil {
  34309. v[mk] = mv
  34310. }
  34311. }
  34312. dd.ReadMapEnd()
  34313. d.depthDecr()
  34314. return v, changed
  34315. }
  34316. func (d *Decoder) fastpathDecMapBoolFloat32R(f *codecFnInfo, rv reflect.Value) {
  34317. if rv.Kind() == reflect.Ptr {
  34318. vp := rv2i(rv).(*map[bool]float32)
  34319. v, changed := fastpathTV.DecMapBoolFloat32V(*vp, true, d)
  34320. if changed {
  34321. *vp = v
  34322. }
  34323. } else {
  34324. fastpathTV.DecMapBoolFloat32V(rv2i(rv).(map[bool]float32), false, d)
  34325. }
  34326. }
  34327. func (f fastpathT) DecMapBoolFloat32X(vp *map[bool]float32, d *Decoder) {
  34328. v, changed := f.DecMapBoolFloat32V(*vp, true, d)
  34329. if changed {
  34330. *vp = v
  34331. }
  34332. }
  34333. func (_ fastpathT) DecMapBoolFloat32V(v map[bool]float32, canChange bool,
  34334. d *Decoder) (_ map[bool]float32, changed bool) {
  34335. dd, esep := d.d, d.hh.hasElemSeparators()
  34336. containerLen := dd.ReadMapStart()
  34337. if canChange && v == nil {
  34338. xlen := decInferLen(containerLen, d.h.MaxInitLen, 5)
  34339. v = make(map[bool]float32, xlen)
  34340. changed = true
  34341. }
  34342. if containerLen == 0 {
  34343. dd.ReadMapEnd()
  34344. return v, changed
  34345. }
  34346. d.depthIncr()
  34347. var mk bool
  34348. var mv float32
  34349. hasLen := containerLen > 0
  34350. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34351. if esep {
  34352. dd.ReadMapElemKey()
  34353. }
  34354. mk = dd.DecodeBool()
  34355. if esep {
  34356. dd.ReadMapElemValue()
  34357. }
  34358. if dd.TryDecodeAsNil() {
  34359. if v == nil {
  34360. } else if d.h.DeleteOnNilMapValue {
  34361. delete(v, mk)
  34362. } else {
  34363. v[mk] = 0
  34364. }
  34365. continue
  34366. }
  34367. mv = float32(chkOvf.Float32V(dd.DecodeFloat64()))
  34368. if v != nil {
  34369. v[mk] = mv
  34370. }
  34371. }
  34372. dd.ReadMapEnd()
  34373. d.depthDecr()
  34374. return v, changed
  34375. }
  34376. func (d *Decoder) fastpathDecMapBoolFloat64R(f *codecFnInfo, rv reflect.Value) {
  34377. if rv.Kind() == reflect.Ptr {
  34378. vp := rv2i(rv).(*map[bool]float64)
  34379. v, changed := fastpathTV.DecMapBoolFloat64V(*vp, true, d)
  34380. if changed {
  34381. *vp = v
  34382. }
  34383. } else {
  34384. fastpathTV.DecMapBoolFloat64V(rv2i(rv).(map[bool]float64), false, d)
  34385. }
  34386. }
  34387. func (f fastpathT) DecMapBoolFloat64X(vp *map[bool]float64, d *Decoder) {
  34388. v, changed := f.DecMapBoolFloat64V(*vp, true, d)
  34389. if changed {
  34390. *vp = v
  34391. }
  34392. }
  34393. func (_ fastpathT) DecMapBoolFloat64V(v map[bool]float64, canChange bool,
  34394. d *Decoder) (_ map[bool]float64, changed bool) {
  34395. dd, esep := d.d, d.hh.hasElemSeparators()
  34396. containerLen := dd.ReadMapStart()
  34397. if canChange && v == nil {
  34398. xlen := decInferLen(containerLen, d.h.MaxInitLen, 9)
  34399. v = make(map[bool]float64, xlen)
  34400. changed = true
  34401. }
  34402. if containerLen == 0 {
  34403. dd.ReadMapEnd()
  34404. return v, changed
  34405. }
  34406. d.depthIncr()
  34407. var mk bool
  34408. var mv float64
  34409. hasLen := containerLen > 0
  34410. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34411. if esep {
  34412. dd.ReadMapElemKey()
  34413. }
  34414. mk = dd.DecodeBool()
  34415. if esep {
  34416. dd.ReadMapElemValue()
  34417. }
  34418. if dd.TryDecodeAsNil() {
  34419. if v == nil {
  34420. } else if d.h.DeleteOnNilMapValue {
  34421. delete(v, mk)
  34422. } else {
  34423. v[mk] = 0
  34424. }
  34425. continue
  34426. }
  34427. mv = dd.DecodeFloat64()
  34428. if v != nil {
  34429. v[mk] = mv
  34430. }
  34431. }
  34432. dd.ReadMapEnd()
  34433. d.depthDecr()
  34434. return v, changed
  34435. }
  34436. func (d *Decoder) fastpathDecMapBoolBoolR(f *codecFnInfo, rv reflect.Value) {
  34437. if rv.Kind() == reflect.Ptr {
  34438. vp := rv2i(rv).(*map[bool]bool)
  34439. v, changed := fastpathTV.DecMapBoolBoolV(*vp, true, d)
  34440. if changed {
  34441. *vp = v
  34442. }
  34443. } else {
  34444. fastpathTV.DecMapBoolBoolV(rv2i(rv).(map[bool]bool), false, d)
  34445. }
  34446. }
  34447. func (f fastpathT) DecMapBoolBoolX(vp *map[bool]bool, d *Decoder) {
  34448. v, changed := f.DecMapBoolBoolV(*vp, true, d)
  34449. if changed {
  34450. *vp = v
  34451. }
  34452. }
  34453. func (_ fastpathT) DecMapBoolBoolV(v map[bool]bool, canChange bool,
  34454. d *Decoder) (_ map[bool]bool, changed bool) {
  34455. dd, esep := d.d, d.hh.hasElemSeparators()
  34456. containerLen := dd.ReadMapStart()
  34457. if canChange && v == nil {
  34458. xlen := decInferLen(containerLen, d.h.MaxInitLen, 2)
  34459. v = make(map[bool]bool, xlen)
  34460. changed = true
  34461. }
  34462. if containerLen == 0 {
  34463. dd.ReadMapEnd()
  34464. return v, changed
  34465. }
  34466. d.depthIncr()
  34467. var mk bool
  34468. var mv bool
  34469. hasLen := containerLen > 0
  34470. for j := 0; (hasLen && j < containerLen) || !(hasLen || dd.CheckBreak()); j++ {
  34471. if esep {
  34472. dd.ReadMapElemKey()
  34473. }
  34474. mk = dd.DecodeBool()
  34475. if esep {
  34476. dd.ReadMapElemValue()
  34477. }
  34478. if dd.TryDecodeAsNil() {
  34479. if v == nil {
  34480. } else if d.h.DeleteOnNilMapValue {
  34481. delete(v, mk)
  34482. } else {
  34483. v[mk] = false
  34484. }
  34485. continue
  34486. }
  34487. mv = dd.DecodeBool()
  34488. if v != nil {
  34489. v[mk] = mv
  34490. }
  34491. }
  34492. dd.ReadMapEnd()
  34493. d.depthDecr()
  34494. return v, changed
  34495. }